diff --git a/assets/index-9ac01363.js b/assets/index-9ac01363.js new file mode 100644 index 0000000..df82576 --- /dev/null +++ b/assets/index-9ac01363.js @@ -0,0 +1,202 @@ +function W4(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var Qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ds(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $t(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var G4={exports:{}},Qh={},K4={exports:{}},je={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var su=Symbol.for("react.element"),MP=Symbol.for("react.portal"),OP=Symbol.for("react.fragment"),NP=Symbol.for("react.strict_mode"),LP=Symbol.for("react.profiler"),DP=Symbol.for("react.provider"),BP=Symbol.for("react.context"),jP=Symbol.for("react.forward_ref"),$P=Symbol.for("react.suspense"),FP=Symbol.for("react.memo"),UP=Symbol.for("react.lazy"),Zb=Symbol.iterator;function zP(t){return t===null||typeof t!="object"?null:(t=Zb&&t[Zb]||t["@@iterator"],typeof t=="function"?t:null)}var Y4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q4=Object.assign,J4={};function Yl(t,e,r){this.props=t,this.context=e,this.refs=J4,this.updater=r||Y4}Yl.prototype.isReactComponent={};Yl.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Yl.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function X4(){}X4.prototype=Yl.prototype;function im(t,e,r){this.props=t,this.context=e,this.refs=J4,this.updater=r||Y4}var sm=im.prototype=new X4;sm.constructor=im;Q4(sm,Yl.prototype);sm.isPureReactComponent=!0;var e2=Array.isArray,Z4=Object.prototype.hasOwnProperty,om={current:null},e6={key:!0,ref:!0,__self:!0,__source:!0};function t6(t,e,r){var n,i={},s=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Z4.call(e,n)&&!e6.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1>>1,m=T[C];if(0>>1;Ci(A,j))$i(V,A)?(T[C]=V,T[$]=j,C=$):(T[C]=A,T[F]=j,C=F);else if($i(V,j))T[C]=V,T[$]=j,C=$;else break e}}return N}function i(T,N){var j=T.sortIndex-N.sortIndex;return j!==0?j:T.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],f=1,u=null,d=3,v=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(T){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=T)n(c),N.sortIndex=N.expirationTime,e(l,N);else break;N=r(c)}}function P(T){if(y=!1,E(T),!g)if(r(l)!==null)g=!0,k(O);else{var N=r(c);N!==null&&I(P,N.startTime-T)}}function O(T,N){g=!1,y&&(y=!1,x(L),L=-1),v=!0;var j=d;try{for(E(N),u=r(l);u!==null&&(!(u.expirationTime>N)||T&&!G());){var C=u.callback;if(typeof C=="function"){u.callback=null,d=u.priorityLevel;var m=C(u.expirationTime<=N);N=t.unstable_now(),typeof m=="function"?u.callback=m:u===r(l)&&n(l),E(N)}else n(l);u=r(l)}if(u!==null)var R=!0;else{var F=r(c);F!==null&&I(P,F.startTime-N),R=!1}return R}finally{u=null,d=j,v=!1}}var D=!1,_=null,L=-1,z=5,H=-1;function G(){return!(t.unstable_now()-HT||125C?(T.sortIndex=j,e(c,T),r(l)===null&&T===r(c)&&(y?(x(L),L=-1):y=!0,I(P,j-C))):(T.sortIndex=m,e(l,T),g||v||(g=!0,k(O))),T},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(T){var N=d;return function(){var j=d;d=N;try{return T.apply(this,arguments)}finally{d=j}}}})(a6);o6.exports=a6;var ZP=o6.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var eT=p,Mn=ZP;function fe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ty=Object.prototype.hasOwnProperty,tT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,r2={},n2={};function rT(t){return ty.call(n2,t)?!0:ty.call(r2,t)?!1:tT.test(t)?n2[t]=!0:(r2[t]=!0,!1)}function nT(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function iT(t,e,r,n){if(e===null||typeof e>"u"||nT(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function an(t,e,r,n,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Br={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Br[t]=new an(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Br[e]=new an(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Br[t]=new an(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Br[t]=new an(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Br[t]=new an(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Br[t]=new an(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Br[t]=new an(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Br[t]=new an(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Br[t]=new an(t,5,!1,t.toLowerCase(),null,!1,!1)});var lm=/[\-:]([a-z])/g;function cm(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(lm,cm);Br[e]=new an(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(lm,cm);Br[e]=new an(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(lm,cm);Br[e]=new an(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Br[t]=new an(t,1,!1,t.toLowerCase(),null,!1,!1)});Br.xlinkHref=new an("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Br[t]=new an(t,1,!1,t.toLowerCase(),null,!0,!0)});function fm(t,e,r,n){var i=Br.hasOwnProperty(e)?Br[e]:null;(i!==null?i.type!==0:n||!(2a||i[o]!==s[a]){var l=` +`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{p1=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Wc(t):""}function sT(t){switch(t.tag){case 5:return Wc(t.type);case 16:return Wc("Lazy");case 13:return Wc("Suspense");case 19:return Wc("SuspenseList");case 0:case 2:case 15:return t=m1(t.type,!1),t;case 11:return t=m1(t.type.render,!1),t;case 1:return t=m1(t.type,!0),t;default:return""}}function sy(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ya:return"Fragment";case Ka:return"Portal";case ry:return"Profiler";case um:return"StrictMode";case ny:return"Suspense";case iy:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case f6:return(t.displayName||"Context")+".Consumer";case c6:return(t._context.displayName||"Context")+".Provider";case dm:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case hm:return e=t.displayName||null,e!==null?e:sy(t.type)||"Memo";case Js:e=t._payload,t=t._init;try{return sy(t(e))}catch{}}return null}function oT(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sy(e);case 8:return e===um?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ao(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function d6(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function aT(t){var e=d6(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ru(t){t._valueTracker||(t._valueTracker=aT(t))}function h6(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=d6(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Vd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function oy(t,e){var r=e.checked;return Yt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function s2(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Ao(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function v6(t,e){e=e.checked,e!=null&&fm(t,"checked",e,!1)}function ay(t,e){v6(t,e);var r=Ao(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ly(t,e.type,r):e.hasOwnProperty("defaultValue")&&ly(t,e.type,Ao(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function o2(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function ly(t,e,r){(e!=="number"||Vd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Gc=Array.isArray;function vl(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=_u.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Af(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Xc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lT=["Webkit","ms","Moz","O"];Object.keys(Xc).forEach(function(t){lT.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Xc[e]=Xc[t]})});function g6(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Xc.hasOwnProperty(t)&&Xc[t]?(""+e).trim():e+"px"}function x6(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=g6(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var cT=Yt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uy(t,e){if(e){if(cT[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(fe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(fe(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(fe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(fe(62))}}function dy(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hy=null;function vm(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var vy=null,yl=null,pl=null;function c2(t){if(t=lu(t)){if(typeof vy!="function")throw Error(fe(280));var e=t.stateNode;e&&(e=t0(e),vy(t.stateNode,t.type,e))}}function b6(t){yl?pl?pl.push(t):pl=[t]:yl=t}function w6(){if(yl){var t=yl,e=pl;if(pl=yl=null,c2(t),e)for(t=0;t>>=0,t===0?32:31-(bT(t)/wT|0)|0}var Iu=64,Mu=4194304;function Kc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Gd(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=Kc(a):(s&=o,s!==0&&(n=Kc(s)))}else o=r&~i,o!==0?n=Kc(o):s!==0&&(n=Kc(s));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function ou(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Si(e),t[e]=r}function CT(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=ef),g2=String.fromCharCode(32),x2=!1;function U6(t,e){switch(t){case"keyup":return ZT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z6(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Qa=!1;function tR(t,e){switch(t){case"compositionend":return z6(e);case"keypress":return e.which!==32?null:(x2=!0,g2);case"textInput":return t=e.data,t===g2&&x2?null:t;default:return null}}function rR(t,e){if(Qa)return t==="compositionend"||!Em&&U6(t,e)?(t=$6(),xd=xm=no=null,Qa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=A2(r)}}function W6(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?W6(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function G6(){for(var t=window,e=Vd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Vd(t.document)}return e}function Am(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function uR(t){var e=G6(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&W6(r.ownerDocument.documentElement,r)){if(n!==null&&Am(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!t.extend&&s>n&&(i=n,n=s,s=i),i=S2(r,s);var o=S2(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ja=null,by=null,rf=null,wy=!1;function C2(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wy||Ja==null||Ja!==Vd(n)||(n=Ja,"selectionStart"in n&&Am(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),rf&&Rf(rf,n)||(rf=n,n=Qd(by,"onSelect"),0el||(t.current=Py[el],Py[el]=null,el--)}function It(t,e){el++,Py[el]=t.current,t.current=e}var So={},Qr=Lo(So),vn=Lo(!1),da=So;function Rl(t,e){var r=t.type.contextTypes;if(!r)return So;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=e[s];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function yn(t){return t=t.childContextTypes,t!=null}function Xd(){Bt(vn),Bt(Qr)}function M2(t,e,r){if(Qr.current!==So)throw Error(fe(168));It(Qr,e),It(vn,r)}function r5(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(fe(108,oT(t)||"Unknown",i));return Yt({},r,n)}function Zd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||So,da=Qr.current,It(Qr,t),It(vn,vn.current),!0}function O2(t,e,r){var n=t.stateNode;if(!n)throw Error(fe(169));r?(t=r5(t,e,da),n.__reactInternalMemoizedMergedChildContext=t,Bt(vn),Bt(Qr),It(Qr,t)):Bt(vn),It(vn,r)}var ps=null,r0=!1,I1=!1;function n5(t){ps===null?ps=[t]:ps.push(t)}function AR(t){r0=!0,n5(t)}function Do(){if(!I1&&ps!==null){I1=!0;var t=0,e=vt;try{var r=ps;for(vt=1;t>=o,i-=o,xs=1<<32-Si(e)+i|r<L?(z=_,_=null):z=_.sibling;var H=d(x,_,E[L],P);if(H===null){_===null&&(_=z);break}t&&_&&H.alternate===null&&e(x,_),b=s(H,b,L),D===null?O=H:D.sibling=H,D=H,_=z}if(L===E.length)return r(x,_),Ut&&Ho(x,L),O;if(_===null){for(;LL?(z=_,_=null):z=_.sibling;var G=d(x,_,H.value,P);if(G===null){_===null&&(_=z);break}t&&_&&G.alternate===null&&e(x,_),b=s(G,b,L),D===null?O=G:D.sibling=G,D=G,_=z}if(H.done)return r(x,_),Ut&&Ho(x,L),O;if(_===null){for(;!H.done;L++,H=E.next())H=u(x,H.value,P),H!==null&&(b=s(H,b,L),D===null?O=H:D.sibling=H,D=H);return Ut&&Ho(x,L),O}for(_=n(x,_);!H.done;L++,H=E.next())H=v(_,x,L,H.value,P),H!==null&&(t&&H.alternate!==null&&_.delete(H.key===null?L:H.key),b=s(H,b,L),D===null?O=H:D.sibling=H,D=H);return t&&_.forEach(function(X){return e(x,X)}),Ut&&Ho(x,L),O}function w(x,b,E,P){if(typeof E=="object"&&E!==null&&E.type===Ya&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Tu:e:{for(var O=E.key,D=b;D!==null;){if(D.key===O){if(O=E.type,O===Ya){if(D.tag===7){r(x,D.sibling),b=i(D,E.props.children),b.return=x,x=b;break e}}else if(D.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Js&&D2(O)===D.type){r(x,D.sibling),b=i(D,E.props),b.ref=gc(x,D,E),b.return=x,x=b;break e}r(x,D);break}else e(x,D);D=D.sibling}E.type===Ya?(b=oa(E.props.children,x.mode,P,E.key),b.return=x,x=b):(P=Pd(E.type,E.key,E.props,null,x.mode,P),P.ref=gc(x,b,E),P.return=x,x=P)}return o(x);case Ka:e:{for(D=E.key;b!==null;){if(b.key===D)if(b.tag===4&&b.stateNode.containerInfo===E.containerInfo&&b.stateNode.implementation===E.implementation){r(x,b.sibling),b=i(b,E.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else e(x,b);b=b.sibling}b=$1(E,x.mode,P),b.return=x,x=b}return o(x);case Js:return D=E._init,w(x,b,D(E._payload),P)}if(Gc(E))return g(x,b,E,P);if(hc(E))return y(x,b,E,P);$u(x,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,b!==null&&b.tag===6?(r(x,b.sibling),b=i(b,E),b.return=x,x=b):(r(x,b),b=j1(E,x.mode,P),b.return=x,x=b),o(x)):r(x,b)}return w}var Il=a5(!0),l5=a5(!1),rh=Lo(null),nh=null,nl=null,Pm=null;function Tm(){Pm=nl=nh=null}function Rm(t){var e=rh.current;Bt(rh),t._currentValue=e}function _y(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function gl(t,e){nh=t,Pm=nl=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(hn=!0),t.firstContext=null)}function ei(t){var e=t._currentValue;if(Pm!==t)if(t={context:t,memoizedValue:e,next:null},nl===null){if(nh===null)throw Error(fe(308));nl=t,nh.dependencies={lanes:0,firstContext:t}}else nl=nl.next=t;return e}var Zo=null;function _m(t){Zo===null?Zo=[t]:Zo.push(t)}function c5(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,_m(e)):(r.next=i.next,i.next=r),e.interleaved=r,Ps(t,n)}function Ps(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var Xs=!1;function Im(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f5(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Es(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ho(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Qe&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,Ps(t,r)}return i=n.interleaved,i===null?(e.next=e,_m(n)):(e.next=i.next,i.next=e),n.interleaved=e,Ps(t,r)}function wd(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,pm(t,r)}}function B2(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function ih(t,e,r,n){var i=t.updateQueue;Xs=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var f=t.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(s!==null){var u=i.baseState;o=0,f=c=l=null,a=s;do{var d=a.lane,v=a.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=t,y=a;switch(d=e,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){u=g.call(v,u,d);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(v,u,d):g,d==null)break e;u=Yt({},u,d);break e;case 2:Xs=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else v={eventTime:v,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=v,l=u):f=f.next=v,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(f===null&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);ya|=o,t.lanes=o,t.memoizedState=u}}function j2(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=O1.transition;O1.transition={};try{t(!1),e()}finally{vt=r,O1.transition=n}}function P5(){return ti().memoizedState}function PR(t,e,r){var n=yo(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},T5(t))R5(e,r);else if(r=c5(t,e,r,n),r!==null){var i=sn();Ci(r,t,n,i),_5(r,e,n)}}function TR(t,e,r){var n=yo(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(T5(t))R5(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,ki(a,o)){var l=e.interleaved;l===null?(i.next=i,_m(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=c5(t,e,i,n),r!==null&&(i=sn(),Ci(r,t,n,i),_5(r,e,n))}}function T5(t){var e=t.alternate;return t===Kt||e!==null&&e===Kt}function R5(t,e){nf=oh=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function _5(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,pm(t,r)}}var ah={readContext:ei,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useInsertionEffect:zr,useLayoutEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useMutableSource:zr,useSyncExternalStore:zr,useId:zr,unstable_isNewReconciler:!1},RR={readContext:ei,useCallback:function(t,e){return Di().memoizedState=[t,e===void 0?null:e],t},useContext:ei,useEffect:F2,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Ad(4194308,4,E5.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Ad(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ad(4,2,t,e)},useMemo:function(t,e){var r=Di();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Di();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=PR.bind(null,Kt,t),[n.memoizedState,t]},useRef:function(t){var e=Di();return t={current:t},e.memoizedState=t},useState:$2,useDebugValue:$m,useDeferredValue:function(t){return Di().memoizedState=t},useTransition:function(){var t=$2(!1),e=t[0];return t=kR.bind(null,t[1]),Di().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Kt,i=Di();if(Ut){if(r===void 0)throw Error(fe(407));r=r()}else{if(r=e(),Tr===null)throw Error(fe(349));va&30||v5(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,F2(p5.bind(null,n,s,t),[t]),n.flags|=2048,Bf(9,y5.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=Di(),e=Tr.identifierPrefix;if(Ut){var r=bs,n=xs;r=(n&~(1<<32-Si(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Lf++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[$i]=e,t[Mf]=n,F5(t,e,!1,!1),e.stateNode=t;e:{switch(o=dy(r,n),r){case"dialog":Dt("cancel",t),Dt("close",t),i=n;break;case"iframe":case"object":case"embed":Dt("load",t),i=n;break;case"video":case"audio":for(i=0;iNl&&(e.flags|=128,n=!0,xc(s,!1),e.lanes=4194304)}else{if(!n)if(t=sh(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),xc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ut)return Vr(e),null}else 2*dr()-s.renderingStartTime>Nl&&r!==1073741824&&(e.flags|=128,n=!0,xc(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(r=s.last,r!==null?r.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=dr(),e.sibling=null,r=Wt.current,It(Wt,n?r&1|2:r&1),e):(Vr(e),null);case 22:case 23:return Hm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Cn&1073741824&&(Vr(e),e.subtreeFlags&6&&(e.flags|=8192)):Vr(e),null;case 24:return null;case 25:return null}throw Error(fe(156,e.tag))}function BR(t,e){switch(Cm(e),e.tag){case 1:return yn(e.type)&&Xd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ml(),Bt(vn),Bt(Qr),Nm(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Om(e),null;case 13:if(Bt(Wt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(fe(340));_l()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Bt(Wt),null;case 4:return Ml(),null;case 10:return Rm(e.type._context),null;case 22:case 23:return Hm(),null;case 24:return null;default:return null}}var Uu=!1,Hr=!1,jR=typeof WeakSet=="function"?WeakSet:Set,be=null;function il(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){tr(t,e,n)}else r.current=null}function $y(t,e,r){try{r()}catch(n){tr(t,e,n)}}var J2=!1;function $R(t,e){if(Ey=Kd,t=G6(),Am(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,f=0,u=t,d=null;t:for(;;){for(var v;u!==r||i!==0&&u.nodeType!==3||(a=o+i),u!==s||n!==0&&u.nodeType!==3||(l=o+n),u.nodeType===3&&(o+=u.nodeValue.length),(v=u.firstChild)!==null;)d=u,u=v;for(;;){if(u===t)break t;if(d===r&&++c===i&&(a=o),d===s&&++f===n&&(l=o),(v=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=v}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ay={focusedElem:t,selectionRange:r},Kd=!1,be=e;be!==null;)if(e=be,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,be=t;else for(;be!==null;){e=be;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,x=e.stateNode,b=x.getSnapshotBeforeUpdate(e.elementType===e.type?y:pi(e.type,y),w);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var E=e.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(fe(163))}}catch(P){tr(e,e.return,P)}if(t=e.sibling,t!==null){t.return=e.return,be=t;break}be=e.return}return g=J2,J2=!1,g}function sf(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&$y(e,r,s)}i=i.next}while(i!==n)}}function s0(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Fy(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function V5(t){var e=t.alternate;e!==null&&(t.alternate=null,V5(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[$i],delete e[Mf],delete e[ky],delete e[wR],delete e[ER])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function q5(t){return t.tag===5||t.tag===3||t.tag===4}function X2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||q5(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Uy(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Jd));else if(n!==4&&(t=t.child,t!==null))for(Uy(t,e,r),t=t.sibling;t!==null;)Uy(t,e,r),t=t.sibling}function zy(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(zy(t,e,r),t=t.sibling;t!==null;)zy(t,e,r),t=t.sibling}var Or=null,mi=!1;function Us(t,e,r){for(r=r.child;r!==null;)H5(t,e,r),r=r.sibling}function H5(t,e,r){if(Gi&&typeof Gi.onCommitFiberUnmount=="function")try{Gi.onCommitFiberUnmount(Jh,r)}catch{}switch(r.tag){case 5:Hr||il(r,e);case 6:var n=Or,i=mi;Or=null,Us(t,e,r),Or=n,mi=i,Or!==null&&(mi?(t=Or,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Or.removeChild(r.stateNode));break;case 18:Or!==null&&(mi?(t=Or,r=r.stateNode,t.nodeType===8?_1(t.parentNode,r):t.nodeType===1&&_1(t,r),Pf(t)):_1(Or,r.stateNode));break;case 4:n=Or,i=mi,Or=r.stateNode.containerInfo,mi=!0,Us(t,e,r),Or=n,mi=i;break;case 0:case 11:case 14:case 15:if(!Hr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&$y(r,e,o),i=i.next}while(i!==n)}Us(t,e,r);break;case 1:if(!Hr&&(il(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){tr(r,e,a)}Us(t,e,r);break;case 21:Us(t,e,r);break;case 22:r.mode&1?(Hr=(n=Hr)||r.memoizedState!==null,Us(t,e,r),Hr=n):Us(t,e,r);break;default:Us(t,e,r)}}function Z2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new jR),e.forEach(function(n){var i=KR.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function ci(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~s}if(n=i,n=dr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*UR(n/1960))-n,10t?16:t,io===null)var n=!1;else{if(t=io,io=null,fh=0,Qe&6)throw Error(fe(331));var i=Qe;for(Qe|=4,be=t.current;be!==null;){var s=be,o=s.child;if(be.flags&16){var a=s.deletions;if(a!==null){for(var l=0;ldr()-Vm?sa(t,0):zm|=r),pn(t,e)}function Z5(t,e){e===0&&(t.mode&1?(e=Mu,Mu<<=1,!(Mu&130023424)&&(Mu=4194304)):e=1);var r=sn();t=Ps(t,e),t!==null&&(ou(t,e,r),pn(t,r))}function GR(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Z5(t,r)}function KR(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(fe(314))}n!==null&&n.delete(e),Z5(t,r)}var eS;eS=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||vn.current)hn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return hn=!1,LR(t,e,r);hn=!!(t.flags&131072)}else hn=!1,Ut&&e.flags&1048576&&i5(e,th,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Sd(t,e),t=e.pendingProps;var i=Rl(e,Qr.current);gl(e,r),i=Dm(null,e,n,t,i,r);var s=Bm();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,yn(n)?(s=!0,Zd(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Im(e),i.updater=i0,e.stateNode=i,i._reactInternals=e,My(e,n,t,r),e=Ly(null,e,n,!0,s,r)):(e.tag=0,Ut&&s&&Sm(e),tn(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Sd(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=QR(n),t=pi(n,t),i){case 0:e=Ny(null,e,n,t,r);break e;case 1:e=K2(null,e,n,t,r);break e;case 11:e=W2(null,e,n,t,r);break e;case 14:e=G2(null,e,n,pi(n.type,t),r);break e}throw Error(fe(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:pi(n,i),Ny(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:pi(n,i),K2(t,e,n,i,r);case 3:e:{if(B5(e),t===null)throw Error(fe(387));n=e.pendingProps,s=e.memoizedState,i=s.element,f5(t,e),ih(e,n,null,r);var o=e.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Ol(Error(fe(423)),e),e=Y2(t,e,n,r,i);break e}else if(n!==i){i=Ol(Error(fe(424)),e),e=Y2(t,e,n,r,i);break e}else for(Rn=uo(e.stateNode.containerInfo.firstChild),_n=e,Ut=!0,xi=null,r=l5(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(_l(),n===i){e=Ts(t,e,r);break e}tn(t,e,n,r)}e=e.child}return e;case 5:return u5(e),t===null&&Ry(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Sy(n,i)?o=null:s!==null&&Sy(n,s)&&(e.flags|=32),D5(t,e),tn(t,e,o,r),e.child;case 6:return t===null&&Ry(e),null;case 13:return j5(t,e,r);case 4:return Mm(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Il(e,null,n,r):tn(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:pi(n,i),W2(t,e,n,i,r);case 7:return tn(t,e,e.pendingProps,r),e.child;case 8:return tn(t,e,e.pendingProps.children,r),e.child;case 12:return tn(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,It(rh,n._currentValue),n._currentValue=o,s!==null)if(ki(s.value,o)){if(s.children===i.children&&!vn.current){e=Ts(t,e,r);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=Es(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),_y(s.return,r,e),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(fe(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),_y(o,r,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}tn(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,gl(e,r),i=ei(i),n=n(i),e.flags|=1,tn(t,e,n,r),e.child;case 14:return n=e.type,i=pi(n,e.pendingProps),i=pi(n.type,i),G2(t,e,n,i,r);case 15:return N5(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:pi(n,i),Sd(t,e),e.tag=1,yn(n)?(t=!0,Zd(e)):t=!1,gl(e,r),I5(e,n,i),My(e,n,i,r),Ly(null,e,n,!0,t,r);case 19:return $5(t,e,r);case 22:return L5(t,e,r)}throw Error(fe(156,e.tag))};function tS(t,e){return T6(t,e)}function YR(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(t,e,r,n){return new YR(t,e,r,n)}function Gm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function QR(t){if(typeof t=="function")return Gm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===dm)return 11;if(t===hm)return 14}return 2}function po(t,e){var r=t.alternate;return r===null?(r=Xn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Pd(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")Gm(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ya:return oa(r.children,i,s,e);case um:o=8,i|=8;break;case ry:return t=Xn(12,r,e,i|2),t.elementType=ry,t.lanes=s,t;case ny:return t=Xn(13,r,e,i),t.elementType=ny,t.lanes=s,t;case iy:return t=Xn(19,r,e,i),t.elementType=iy,t.lanes=s,t;case u6:return a0(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case c6:o=10;break e;case f6:o=9;break e;case dm:o=11;break e;case hm:o=14;break e;case Js:o=16,n=null;break e}throw Error(fe(130,t==null?t:typeof t,""))}return e=Xn(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function oa(t,e,r,n){return t=Xn(7,t,n,e),t.lanes=r,t}function a0(t,e,r,n){return t=Xn(22,t,n,e),t.elementType=u6,t.lanes=r,t.stateNode={isHidden:!1},t}function j1(t,e,r){return t=Xn(6,t,null,e),t.lanes=r,t}function $1(t,e,r){return e=Xn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function JR(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=x1(0),this.expirationTimes=x1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=x1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Km(t,e,r,n,i,s,o,a,l){return t=new JR(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Xn(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Im(s),t}function XR(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sS)}catch(t){console.error(t)}}sS(),s6.exports=Dn;var js=s6.exports;const oS=Ds(js),n_=W4({__proto__:null,default:oS},[js]);var aw=js;ey.createRoot=aw.createRoot,ey.hydrateRoot=aw.hydrateRoot;const aS=p.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),d0=p.createContext({}),h0=p.createContext(null),v0=typeof document<"u",Xm=v0?p.useLayoutEffect:p.useEffect,lS=p.createContext({strict:!1}),Zm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i_="framerAppearId",cS="data-"+Zm(i_);function s_(t,e,r,n){const{visualElement:i}=p.useContext(d0),s=p.useContext(lS),o=p.useContext(h0),a=p.useContext(aS).reducedMotion,l=p.useRef();n=n||s.renderer,!l.current&&n&&(l.current=n(t,{visualState:e,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;p.useInsertionEffect(()=>{c&&c.update(r,o)});const f=p.useRef(!!(r[cS]&&!window.HandoffComplete));return Xm(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),p.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),c}function ol(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function o_(t,e,r){return p.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):ol(r)&&(r.current=n))},[e])}function $f(t){return typeof t=="string"||Array.isArray(t)}function y0(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const eg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tg=["initial",...eg];function p0(t){return y0(t.animate)||tg.some(e=>$f(t[e]))}function fS(t){return!!(p0(t)||t.variants)}function a_(t,e){if(p0(t)){const{initial:r,animate:n}=t;return{initial:r===!1||$f(r)?r:void 0,animate:$f(n)?n:void 0}}return t.inherit!==!1?e:{}}function l_(t){const{initial:e,animate:r}=a_(t,p.useContext(d0));return p.useMemo(()=>({initial:e,animate:r}),[lw(e),lw(r)])}function lw(t){return Array.isArray(t)?t.join(" "):t}const cw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ff={};for(const t in cw)Ff[t]={isEnabled:e=>cw[t].some(r=>!!e[r])};function c_(t){for(const e in t)Ff[e]={...Ff[e],...t[e]}}const rg=p.createContext({}),uS=p.createContext({}),f_=Symbol.for("motionComponentSymbol");function u_({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&c_(t);function s(a,l){let c;const f={...p.useContext(aS),...a,layoutId:d_(a)},{isStatic:u}=f,d=l_(a),v=n(a,u);if(!u&&v0){d.visualElement=s_(i,v,f,e);const g=p.useContext(uS),y=p.useContext(lS).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,t,g))}return p.createElement(d0.Provider,{value:d},c&&d.visualElement?p.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,o_(v,d.visualElement,l),v,u,d.visualElement))}const o=p.forwardRef(s);return o[f_]=i,o}function d_({layoutId:t}){const e=p.useContext(rg).id;return e&&t!==void 0?e+"-"+t:t}function h_(t){function e(n,i={}){return u_(t(n,i))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,i)=>(r.has(i)||r.set(i,e(i)),r.get(i))})}const v_=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ng(t){return typeof t!="string"||t.includes("-")?!1:!!(v_.indexOf(t)>-1||/[A-Z]/.test(t))}const hh={};function y_(t){Object.assign(hh,t)}const fu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ka=new Set(fu);function dS(t,{layout:e,layoutId:r}){return ka.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!hh[t]||t==="opacity")}const mn=t=>!!(t&&t.getVelocity),p_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m_=fu.length;function g_(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),vS=hS("--"),Gy=hS("var(--"),x_=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,b_=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Co=(t,e,r)=>Math.min(Math.max(r,t),e),Pa={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},lf={...Pa,transform:t=>Co(0,1,t)},qu={...Pa,default:1},cf=t=>Math.round(t*1e5)/1e5,m0=/(-)?([\d]*\.?[\d])+/g,yS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,w_=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function uu(t){return typeof t=="string"}const du=t=>({test:e=>uu(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ws=du("deg"),Yi=du("%"),Ae=du("px"),E_=du("vh"),A_=du("vw"),fw={...Yi,parse:t=>Yi.parse(t)/100,transform:t=>Yi.transform(t*100)},uw={...Pa,transform:Math.round},pS={borderWidth:Ae,borderTopWidth:Ae,borderRightWidth:Ae,borderBottomWidth:Ae,borderLeftWidth:Ae,borderRadius:Ae,radius:Ae,borderTopLeftRadius:Ae,borderTopRightRadius:Ae,borderBottomRightRadius:Ae,borderBottomLeftRadius:Ae,width:Ae,maxWidth:Ae,height:Ae,maxHeight:Ae,size:Ae,top:Ae,right:Ae,bottom:Ae,left:Ae,padding:Ae,paddingTop:Ae,paddingRight:Ae,paddingBottom:Ae,paddingLeft:Ae,margin:Ae,marginTop:Ae,marginRight:Ae,marginBottom:Ae,marginLeft:Ae,rotate:Ws,rotateX:Ws,rotateY:Ws,rotateZ:Ws,scale:qu,scaleX:qu,scaleY:qu,scaleZ:qu,skew:Ws,skewX:Ws,skewY:Ws,distance:Ae,translateX:Ae,translateY:Ae,translateZ:Ae,x:Ae,y:Ae,z:Ae,perspective:Ae,transformPerspective:Ae,opacity:lf,originX:fw,originY:fw,originZ:Ae,zIndex:uw,fillOpacity:lf,strokeOpacity:lf,numOctaves:uw};function ig(t,e,r,n){const{style:i,vars:s,transform:o,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const d=e[u];if(vS(u)){s[u]=d;continue}const v=pS[u],g=b_(d,v);if(ka.has(u)){if(l=!0,o[u]=g,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=g):i[u]=g}if(e.transform||(l||n?i.transform=g_(t.transform,r,f,n):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:v=0}=a;i.transformOrigin=`${u} ${d} ${v}`}}const sg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mS(t,e,r){for(const n in e)!mn(e[n])&&!dS(n,r)&&(t[n]=e[n])}function S_({transformTemplate:t},e,r){return p.useMemo(()=>{const n=sg();return ig(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function C_(t,e,r){const n=t.style||{},i={};return mS(i,n,t),Object.assign(i,S_(t,e,r)),t.transformValues?t.transformValues(i):i}function k_(t,e,r){const n={},i=C_(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const P_=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function vh(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||P_.has(t)}let gS=t=>!vh(t);function T_(t){t&&(gS=e=>e.startsWith("on")?!vh(e):t(e))}try{T_(require("@emotion/is-prop-valid").default)}catch{}function R_(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(gS(i)||r===!0&&vh(i)||!e&&!vh(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function dw(t,e,r){return typeof t=="string"?t:Ae.transform(e+r*t)}function __(t,e,r){const n=dw(e,t.x,t.width),i=dw(r,t.y,t.height);return`${n} ${i}`}const I_={offset:"stroke-dashoffset",array:"stroke-dasharray"},M_={offset:"strokeDashoffset",array:"strokeDasharray"};function O_(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?I_:M_;t[s.offset]=Ae.transform(-n);const o=Ae.transform(e),a=Ae.transform(r);t[s.array]=`${o} ${a}`}function og(t,{attrX:e,attrY:r,attrScale:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},f,u,d){if(ig(t,c,f,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:g,dimensions:y}=t;v.transform&&(y&&(g.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=__(y,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(v.x=e),r!==void 0&&(v.y=r),n!==void 0&&(v.scale=n),o!==void 0&&O_(v,o,a,l,!1)}const xS=()=>({...sg(),attrs:{}}),ag=t=>typeof t=="string"&&t.toLowerCase()==="svg";function N_(t,e,r,n){const i=p.useMemo(()=>{const s=xS();return og(s,e,{enableHardwareAcceleration:!1},ag(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};mS(s,t.style,t),i.style={...s,...i.style}}return i}function L_(t=!1){return(r,n,i,{latestValues:s},o)=>{const l=(ng(r)?N_:k_)(n,s,o,r),f={...R_(n,typeof r=="string",t),...l,ref:i},{children:u}=n,d=p.useMemo(()=>mn(u)?u.get():u,[u]);return p.createElement(r,{...f,children:d})}}function bS(t,{style:e,vars:r},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const s in r)t.style.setProperty(s,r[s])}const wS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ES(t,e,r,n){bS(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(wS.has(i)?i:Zm(i),e.attrs[i])}function lg(t,e){const{style:r}=t,n={};for(const i in r)(mn(r[i])||e.style&&mn(e.style[i])||dS(i,t))&&(n[i]=r[i]);return n}function AS(t,e){const r=lg(t,e);for(const n in t)if(mn(t[n])||mn(e[n])){const i=fu.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=t[n]}return r}function cg(t,e,r,n={},i={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),e}function SS(t){const e=p.useRef(null);return e.current===null&&(e.current=t()),e.current}const yh=t=>Array.isArray(t),D_=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),B_=t=>yh(t)?t[t.length-1]||0:t;function Td(t){const e=mn(t)?t.get():t;return D_(e)?e.toValue():e}function j_({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:$_(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const CS=t=>(e,r)=>{const n=p.useContext(d0),i=p.useContext(h0),s=()=>j_(t,e,n,i);return r?s():SS(s)};function $_(t,e,r,n){const i={},s=n(t,{});for(const d in s)i[d]=Td(s[d]);let{initial:o,animate:a}=t;const l=p0(t),c=fS(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const u=f?a:o;return u&&typeof u!="boolean"&&!y0(u)&&(Array.isArray(u)?u:[u]).forEach(v=>{const g=cg(t,v);if(!g)return;const{transitionEnd:y,transition:w,...x}=g;for(const b in x){let E=x[b];if(Array.isArray(E)){const P=f?E.length-1:0;E=E[P]}E!==null&&(i[b]=E)}for(const b in y)i[b]=y[b]}),i}const rr=t=>t;class hw{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const r=this.order.indexOf(e);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function F_(t){let e=new hw,r=new hw,n=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,d=u?e:r;return c&&o.add(l),d.add(l)&&u&&i&&(n=e.order.length),l},cancel:l=>{r.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.clear(),n=e.order.length,n)for(let c=0;c(u[d]=F_(()=>r=!0),u),{}),o=u=>s[u].process(i),a=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,U_),1),i.timestamp=u,i.isProcessing=!0,Hu.forEach(o),i.isProcessing=!1,r&&e&&(n=!1,t(a))},l=()=>{r=!0,n=!0,i.isProcessing||t(a)};return{schedule:Hu.reduce((u,d)=>{const v=s[d];return u[d]=(g,y=!1,w=!1)=>(r||l(),v.schedule(g,y,w)),u},{}),cancel:u=>Hu.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:Mt,cancel:Rs,state:qr,steps:F1}=z_(typeof requestAnimationFrame<"u"?requestAnimationFrame:rr,!0),V_={useVisualState:CS({scrapeMotionValuesFromProps:AS,createRenderState:xS,onMount:(t,e,{renderState:r,latestValues:n})=>{Mt.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Mt.render(()=>{og(r,n,{enableHardwareAcceleration:!1},ag(e.tagName),t.transformTemplate),ES(e,r)})}})},q_={useVisualState:CS({scrapeMotionValuesFromProps:lg,createRenderState:sg})};function H_(t,{forwardMotionProps:e=!1},r,n){return{...ng(t)?V_:q_,preloadedFeatures:r,useRender:L_(e),createVisualElement:n,Component:t}}function ws(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const kS=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function g0(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const W_=t=>e=>kS(e)&&t(e,g0(e));function As(t,e,r,n){return ws(t,e,W_(r),n)}const G_=(t,e)=>r=>e(t(r)),mo=(...t)=>t.reduce(G_);function PS(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const vw=PS("dragHorizontal"),yw=PS("dragVertical");function TS(t){let e=!1;if(t==="y")e=yw();else if(t==="x")e=vw();else{const r=vw(),n=yw();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function RS(){const t=TS(!0);return t?(t(),!1):!0}class Bo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function pw(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.pointerType==="touch"||RS())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&Mt.update(()=>a[n](s,o))};return As(t.current,r,i,{passive:!t.getProps()[n]})}class K_ extends Bo{mount(){this.unmount=mo(pw(this.node,!0),pw(this.node,!1))}unmount(){}}class Y_ extends Bo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mo(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _S=(t,e)=>e?t===e?!0:_S(t,e.parentElement):!1;function U1(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,g0(r))}class Q_ extends Bo{constructor(){super(...arguments),this.removeStartListeners=rr,this.removeEndListeners=rr,this.removeAccessibleListeners=rr,this.startPointerPress=(e,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),s=As(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();Mt.update(()=>{!u&&!_S(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=As(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=mo(s,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||U1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&Mt.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ws(this.node.current,"keyup",o),U1("down",(a,l)=>{this.startPress(a,l)})},r=ws(this.node.current,"keydown",e),n=()=>{this.isPressing&&U1("cancel",(s,o)=>this.cancelPress(s,o))},i=ws(this.node.current,"blur",n);this.removeAccessibleListeners=mo(r,i)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Mt.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!RS()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Mt.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=As(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ws(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=mo(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ky=new WeakMap,z1=new WeakMap,J_=t=>{const e=Ky.get(t.target);e&&e(t)},X_=t=>{t.forEach(J_)};function Z_({root:t,...e}){const r=t||document;z1.has(r)||z1.set(r,{});const n=z1.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(X_,{root:t,...e})),n[i]}function eI(t,e,r){const n=Z_(e);return Ky.set(t,r),n.observe(t),()=>{Ky.delete(t),n.unobserve(t)}}const tI={some:0,all:1};class rI extends Bo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:tI[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=c?f:u;d&&d(l)};return eI(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(nI(e,r))&&this.startObserver()}unmount(){}}function nI({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const iI={inView:{Feature:rI},tap:{Feature:Q_},focus:{Feature:Y_},hover:{Feature:K_}};function IS(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;ne[n]=r.get()),e}function oI(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function x0(t,e,r){const n=t.getProps();return cg(n,e,r!==void 0?r:n.custom,sI(t),oI(t))}let aI=rr,fg=rr;const go=t=>t*1e3,Ss=t=>t/1e3,lI={current:!1},MS=t=>Array.isArray(t)&&typeof t[0]=="number";function OS(t){return!!(!t||typeof t=="string"&&NS[t]||MS(t)||Array.isArray(t)&&t.every(OS))}const Qc=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,NS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qc([0,.65,.55,1]),circOut:Qc([.55,0,1,.45]),backIn:Qc([.31,.01,.66,-.59]),backOut:Qc([.33,1.53,.69,.99])};function LS(t){if(t)return MS(t)?Qc(t):Array.isArray(t)?t.map(LS):NS[t]}function cI(t,e,r,{delay:n=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:r};l&&(c.offset=l);const f=LS(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function fI(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const DS=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,uI=1e-7,dI=12;function hI(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=DS(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>uI&&++ahI(s,0,1,t,r);return s=>s===0||s===1?s:DS(i(s),e,n)}const vI=hu(.42,0,1,1),yI=hu(0,0,.58,1),BS=hu(.42,0,.58,1),pI=t=>Array.isArray(t)&&typeof t[0]!="number",jS=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$S=t=>e=>1-t(1-e),ug=t=>1-Math.sin(Math.acos(t)),FS=$S(ug),mI=jS(ug),US=hu(.33,1.53,.69,.99),dg=$S(US),gI=jS(dg),xI=t=>(t*=2)<1?.5*dg(t):.5*(2-Math.pow(2,-10*(t-1))),bI={linear:rr,easeIn:vI,easeInOut:BS,easeOut:yI,circIn:ug,circInOut:mI,circOut:FS,backIn:dg,backInOut:gI,backOut:US,anticipate:xI},mw=t=>{if(Array.isArray(t)){fg(t.length===4);const[e,r,n,i]=t;return hu(e,r,n,i)}else if(typeof t=="string")return bI[t];return t},hg=(t,e)=>r=>!!(uu(r)&&w_.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),zS=(t,e,r)=>n=>{if(!uu(n))return n;const[i,s,o,a]=n.match(m0);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},wI=t=>Co(0,255,t),V1={...Pa,transform:t=>Math.round(wI(t))},ta={test:hg("rgb","red"),parse:zS("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+V1.transform(t)+", "+V1.transform(e)+", "+V1.transform(r)+", "+cf(lf.transform(n))+")"};function EI(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Yy={test:hg("#"),parse:EI,transform:ta.transform},al={test:hg("hsl","hue"),parse:zS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Yi.transform(cf(e))+", "+Yi.transform(cf(r))+", "+cf(lf.transform(n))+")"},en={test:t=>ta.test(t)||Yy.test(t)||al.test(t),parse:t=>ta.test(t)?ta.parse(t):al.test(t)?al.parse(t):Yy.parse(t),transform:t=>uu(t)?t:t.hasOwnProperty("red")?ta.transform(t):al.transform(t)},Gt=(t,e,r)=>-r*t+r*e+t;function q1(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function AI({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;i=q1(l,a,t+1/3),s=q1(l,a,t),o=q1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const H1=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},SI=[Yy,ta,al],CI=t=>SI.find(e=>e.test(t));function gw(t){const e=CI(t);let r=e.parse(t);return e===al&&(r=AI(r)),r}const VS=(t,e)=>{const r=gw(t),n=gw(e),i={...r};return s=>(i.red=H1(r.red,n.red,s),i.green=H1(r.green,n.green,s),i.blue=H1(r.blue,n.blue,s),i.alpha=Gt(r.alpha,n.alpha,s),ta.transform(i))};function kI(t){var e,r;return isNaN(t)&&uu(t)&&(((e=t.match(m0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(yS))===null||r===void 0?void 0:r.length)||0)>0}const qS={regex:x_,countKey:"Vars",token:"${v}",parse:rr},HS={regex:yS,countKey:"Colors",token:"${c}",parse:en.parse},WS={regex:m0,countKey:"Numbers",token:"${n}",parse:Pa.parse};function W1(t,{regex:e,countKey:r,token:n,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(i)))}function ph(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&W1(r,qS),W1(r,HS),W1(r,WS),r}function GS(t){return ph(t).values}function KS(t){const{values:e,numColors:r,numVars:n,tokenised:i}=ph(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function TI(t){const e=GS(t);return KS(t)(e.map(PI))}const ko={test:kI,parse:GS,createTransformer:KS,getAnimatableNone:TI},YS=(t,e)=>r=>`${r>0?e:t}`;function QS(t,e){return typeof t=="number"?r=>Gt(t,e,r):en.test(t)?VS(t,e):t.startsWith("var(")?YS(t,e):XS(t,e)}const JS=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>QS(s,e[o]));return s=>{for(let o=0;o{const r={...t,...e},n={};for(const i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=QS(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},XS=(t,e)=>{const r=ko.createTransformer(e),n=ph(t),i=ph(e);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?mo(JS(n.values,i.values),r):YS(t,e)},Uf=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},xw=(t,e)=>r=>Gt(t,e,r);function _I(t){return typeof t=="number"?xw:typeof t=="string"?en.test(t)?VS:XS:Array.isArray(t)?JS:typeof t=="object"?RI:xw}function II(t,e,r){const n=[],i=r||_I(t[0]),s=t.length-1;for(let o=0;oe[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=II(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(Co(t[0],t[s-1],c)):l}function MI(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Uf(0,e,n);t.push(Gt(r,1,i))}}function OI(t){const e=[0];return MI(e,t.length-1),e}function NI(t,e){return t.map(r=>r*e)}function LI(t,e){return t.map(()=>e||BS).splice(0,t.length-1)}function mh({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=pI(n)?n.map(mw):mw(n),s={done:!1,value:e[0]},o=NI(r&&r.length===e.length?r:OI(e),t),a=ZS(o,e,{ease:Array.isArray(i)?i:LI(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function e8(t,e){return e?t*(1e3/e):0}const DI=5;function t8(t,e,r){const n=Math.max(e-DI,0);return e8(r-t(n),e-n)}const G1=.001,BI=.01,bw=10,jI=.05,$I=1;function FI({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;aI(t<=go(bw));let o=1-e;o=Co(jI,$I,o),t=Co(BI,bw,Ss(t)),o<1?(i=c=>{const f=c*o,u=f*t,d=f-r,v=Qy(c,o),g=Math.exp(-u);return G1-d/v*g},s=c=>{const u=c*o*t,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*t,g=Math.exp(-u),y=Qy(Math.pow(c,2),o);return(-i(c)+G1>0?-1:1)*((d-v)*g)/y}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-G1+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=zI(i,s,a);if(t=go(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}const UI=12;function zI(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function HI(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ww(t,qI)&&ww(t,VI)){const r=FI(t);e={...e,...r,mass:1},e.isResolvedFromDuration=!0}return e}function r8({keyframes:t,restDelta:e,restSpeed:r,...n}){const i=t[0],s=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:d}=HI({...n,velocity:-Ss(n.velocity||0)}),v=u||0,g=l/(2*Math.sqrt(a*c)),y=s-i,w=Ss(Math.sqrt(a/c)),x=Math.abs(y)<5;r||(r=x?.01:2),e||(e=x?.005:.5);let b;if(g<1){const E=Qy(w,g);b=P=>{const O=Math.exp(-g*w*P);return s-O*((v+g*w*y)/E*Math.sin(E*P)+y*Math.cos(E*P))}}else if(g===1)b=E=>s-Math.exp(-w*E)*(y+(v+w*y)*E);else{const E=w*Math.sqrt(g*g-1);b=P=>{const O=Math.exp(-g*w*P),D=Math.min(E*P,300);return s-O*((v+g*w*y)*Math.sinh(D)+E*y*Math.cosh(D))/E}}return{calculatedDuration:d&&f||null,next:E=>{const P=b(E);if(d)o.done=E>=f;else{let O=v;E!==0&&(g<1?O=t8(b,E,P):O=0);const D=Math.abs(O)<=r,_=Math.abs(s-P)<=e;o.done=D&&_}return o.value=o.done?s:P,o}}}function Ew({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],d={done:!1,value:u},v=L=>a!==void 0&&Ll,g=L=>a===void 0?l:l===void 0||Math.abs(a-L)-y*Math.exp(-L/n),E=L=>x+b(L),P=L=>{const z=b(L),H=E(L);d.done=Math.abs(z)<=c,d.value=d.done?x:H};let O,D;const _=L=>{v(d.value)&&(O=L,D=r8({keyframes:[d.value,g(d.value)],velocity:t8(E,L,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return _(0),{calculatedDuration:null,next:L=>{let z=!1;return!D&&O===void 0&&(z=!0,P(L),_(L)),O!==void 0&&L>O?D.next(L-O):(!z&&P(L),d)}}}const WI=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Mt.update(e,!0),stop:()=>Rs(e),now:()=>qr.isProcessing?qr.timestamp:performance.now()}},Aw=2e4;function Sw(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=Aw?1/0:e}const GI={decay:Ew,inertia:Ew,tween:mh,keyframes:mh,spring:r8};function gh({autoplay:t=!0,delay:e=0,driver:r=WI,keyframes:n,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...d}){let v=1,g=!1,y,w;const x=()=>{w=new Promise(C=>{y=C})};x();let b;const E=GI[i]||mh;let P;E!==mh&&typeof n[0]!="number"&&(P=ZS([0,100],n,{clamp:!1}),n=[0,100]);const O=E({...d,keyframes:n});let D;a==="mirror"&&(D=E({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let _="idle",L=null,z=null,H=null;O.calculatedDuration===null&&s&&(O.calculatedDuration=Sw(O));const{calculatedDuration:G}=O;let X=1/0,M=1/0;G!==null&&(X=G+o,M=X*(s+1)-o);let h=0;const S=C=>{if(z===null)return;v>0&&(z=Math.min(z,C)),v<0&&(z=Math.min(C-M/v,z)),L!==null?h=L:h=Math.round(C-z)*v;const m=h-e*(v>=0?1:-1),R=v>=0?m<0:m>M;h=Math.max(m,0),_==="finished"&&L===null&&(h=M);let F=h,A=O;if(s){const Y=Math.min(h,M)/X;let ae=Math.floor(Y),re=Y%1;!re&&Y>=1&&(re=1),re===1&&ae--,ae=Math.min(ae,s+1),!!(ae%2)&&(a==="reverse"?(re=1-re,o&&(re-=o/X)):a==="mirror"&&(A=D)),F=Co(0,1,re)*X}const $=R?{done:!1,value:n[0]}:A.next(F);P&&($.value=P($.value));let{done:V}=$;!R&&G!==null&&(V=v>=0?h>=M:h<=0);const q=L===null&&(_==="finished"||_==="running"&&V);return u&&u($.value),q&&T(),$},k=()=>{b&&b.stop(),b=void 0},I=()=>{_="idle",k(),y(),x(),z=H=null},T=()=>{_="finished",f&&f(),k(),y()},N=()=>{if(g)return;b||(b=r(S));const C=b.now();l&&l(),L!==null?z=C-L:(!z||_==="finished")&&(z=C),_==="finished"&&x(),H=z,L=null,_="running",b.start()};t&&N();const j={then(C,m){return w.then(C,m)},get time(){return Ss(h)},set time(C){C=go(C),h=C,L!==null||!b||v===0?L=C:z=b.now()-C/v},get duration(){const C=O.calculatedDuration===null?Sw(O):O.calculatedDuration;return Ss(C)},get speed(){return v},set speed(C){C===v||!b||(v=C,j.time=Ss(h))},get state(){return _},play:N,pause:()=>{_="paused",L=h},stop:()=>{g=!0,_!=="idle"&&(_="idle",c&&c(),I())},cancel:()=>{H!==null&&S(H),I()},complete:()=>{_="finished"},sample:C=>(z=0,S(C))};return j}function KI(t){let e;return()=>(e===void 0&&(e=t()),e)}const YI=KI(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),QI=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Wu=10,JI=2e4,XI=(t,e)=>e.type==="spring"||t==="backgroundColor"||!OS(e.ease);function ZI(t,e,{onUpdate:r,onComplete:n,...i}){if(!(YI()&&QI.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l,c=!1;const f=()=>{l=new Promise(E=>{a=E})};f();let{keyframes:u,duration:d=300,ease:v,times:g}=i;if(XI(e,i)){const E=gh({...i,repeat:0,delay:0});let P={done:!1,value:u[0]};const O=[];let D=0;for(;!P.done&&D{c=!1,y.cancel()},x=()=>{c=!0,Mt.update(w),a(),f()};return y.onfinish=()=>{c||(t.set(fI(u,i)),n&&n(),x())},{then(E,P){return l.then(E,P)},attachTimeline(E){return y.timeline=E,y.onfinish=null,rr},get time(){return Ss(y.currentTime||0)},set time(E){y.currentTime=go(E)},get speed(){return y.playbackRate},set speed(E){y.playbackRate=E},get duration(){return Ss(d)},play:()=>{o||(y.play(),Rs(w))},pause:()=>y.pause(),stop:()=>{if(o=!0,y.playState==="idle")return;const{currentTime:E}=y;if(E){const P=gh({...i,autoplay:!1});t.setWithVelocity(P.sample(E-Wu).value,P.sample(E).value,Wu)}x()},complete:()=>{c||y.finish()},cancel:x}}function eM({keyframes:t,delay:e,onUpdate:r,onComplete:n}){const i=()=>(r&&r(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:rr,pause:rr,stop:rr,then:s=>(s(),Promise.resolve()),cancel:rr,complete:rr});return e?gh({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const tM={type:"spring",stiffness:500,damping:25,restSpeed:10},rM=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),nM={type:"keyframes",duration:.8},iM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sM=(t,{keyframes:e})=>e.length>2?nM:ka.has(t)?t.startsWith("scale")?rM(e[1]):tM:iM,Jy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ko.test(e)||e==="0")&&!e.startsWith("url(")),oM=new Set(["brightness","contrast","saturate","opacity"]);function aM(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(m0)||[];if(!n)return t;const i=r.replace(n,"");let s=oM.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const lM=/([a-z-]*)\(.*?\)/g,Xy={...ko,getAnimatableNone:t=>{const e=t.match(lM);return e?e.map(aM).join(" "):t}},cM={...pS,color:en,backgroundColor:en,outlineColor:en,fill:en,stroke:en,borderColor:en,borderTopColor:en,borderRightColor:en,borderBottomColor:en,borderLeftColor:en,filter:Xy,WebkitFilter:Xy},vg=t=>cM[t];function n8(t,e){let r=vg(t);return r!==Xy&&(r=ko),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const i8=t=>/^0[^.\s]+$/.test(t);function fM(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||i8(t)}function uM(t,e,r,n){const i=Jy(e,r);let s;Array.isArray(r)?s=[...r]:s=[null,r];const o=n.from!==void 0?n.from:t.get();let a;const l=[];for(let c=0;ci=>{const s=yg(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-go(o);const l=uM(e,t,r,s),c=l[0],f=l[l.length-1],u=Jy(t,c),d=Jy(t,f);let v={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:g=>{e.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(dM(s)||(v={...v,...sM(t,v)}),v.duration&&(v.duration=go(v.duration)),v.repeatDelay&&(v.repeatDelay=go(v.repeatDelay)),!u||!d||lI.current||s.type===!1||hM.skipAnimations)return eM(v);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const g=ZI(e,t,v);if(g)return g}return gh(v)};function xh(t){return!!(mn(t)&&t.add)}const s8=t=>/^\-?\d*\.?\d+$/.test(t);function mg(t,e){t.indexOf(e)===-1&&t.push(e)}function gg(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class xg{constructor(){this.subscriptions=[]}add(e){return mg(this.subscriptions,e),()=>gg(this.subscriptions,e)}notify(e,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let s=0;s!isNaN(parseFloat(t));class yM{constructor(e,r={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:o}=qr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Mt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Mt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=vM(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new xg);const n=this.events[e].add(r);return e==="change"?()=>{n(),Mt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?e8(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ll(t,e){return new yM(t,e)}const o8=t=>e=>e.test(t),pM={test:t=>t==="auto",parse:t=>t},a8=[Pa,Ae,Yi,Ws,A_,E_,pM],wc=t=>a8.find(o8(t)),mM=[...a8,en,ko],gM=t=>mM.find(o8(t));function xM(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Ll(r))}function bM(t,e){const r=x0(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=B_(s[o]);xM(t,o,a)}}function wM(t,e,r){var n,i;const s=Object.keys(e).filter(a=>!t.hasValue(a)),o=s.length;if(o)for(let a=0;al.remove(u))),c.push(w)}return o&&Promise.all(c).then(()=>{o&&bM(t,o)}),c}function Zy(t,e,r={}){const n=x0(t,e,r.custom);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(l8(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return kM(t,e,c+l,f,u,r)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(r.delay)])}function kM(t,e,r=0,n=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*n,l=i===1?(c=0)=>c*n:(c=0)=>a-c*n;return Array.from(t.variantChildren).sort(PM).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(Zy(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function PM(t,e){return t.sortNodePosition(e)}function TM(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>Zy(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=Zy(t,e,r);else{const i=typeof e=="function"?x0(t,e,r.custom):e;n=Promise.all(l8(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}const RM=[...eg].reverse(),_M=eg.length;function IM(t){return e=>Promise.all(e.map(({animation:r,options:n})=>TM(t,r,n)))}function MM(t){let e=IM(t);const r=NM();let n=!0;const i=(l,c)=>{const f=x0(t,c);if(f){const{transition:u,transitionEnd:d,...v}=f;l={...l,...v,...d}}return l};function s(l){e=l(t)}function o(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},d=[],v=new Set;let g={},y=1/0;for(let x=0;x<_M;x++){const b=RM[x],E=r[b],P=f[b]!==void 0?f[b]:u[b],O=$f(P),D=b===c?E.isActive:null;D===!1&&(y=x);let _=P===u[b]&&P!==f[b]&&O;if(_&&n&&t.manuallyAnimateOnMount&&(_=!1),E.protectedKeys={...g},!E.isActive&&D===null||!P&&!E.prevProp||y0(P)||typeof P=="boolean")continue;let z=OM(E.prevProp,P)||b===c&&E.isActive&&!_&&O||x>y&&O,H=!1;const G=Array.isArray(P)?P:[P];let X=G.reduce(i,{});D===!1&&(X={});const{prevResolvedValues:M={}}=E,h={...M,...X},S=k=>{z=!0,v.has(k)&&(H=!0,v.delete(k)),E.needsAnimating[k]=!0};for(const k in h){const I=X[k],T=M[k];if(g.hasOwnProperty(k))continue;let N=!1;yh(I)&&yh(T)?N=!IS(I,T):N=I!==T,N?I!==void 0?S(k):v.add(k):I!==void 0&&v.has(k)?S(k):E.protectedKeys[k]=!0}E.prevProp=P,E.prevResolvedValues=X,E.isActive&&(g={...g,...X}),n&&t.blockInitialAnimation&&(z=!1),z&&(!_||H)&&d.push(...G.map(k=>({animation:k,options:{type:b,...l}})))}if(v.size){const x={};v.forEach(b=>{const E=t.getBaseTarget(b);E!==void 0&&(x[b]=E)}),d.push({animation:x})}let w=!!d.length;return n&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(w=!1),n=!1,w?e(d):Promise.resolve()}function a(l,c,f){var u;if(r[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(v=>{var g;return(g=v.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const d=o(f,l);for(const v in r)r[v].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>r}}function OM(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!IS(e,t):!1}function Vo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function NM(){return{animate:Vo(!0),whileInView:Vo(),whileHover:Vo(),whileTap:Vo(),whileDrag:Vo(),whileFocus:Vo(),exit:Vo()}}class LM extends Bo{constructor(e){super(e),e.animationState||(e.animationState=MM(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),y0(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let DM=0;class BM extends Bo{constructor(){super(...arguments),this.id=DM++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&s.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const jM={animation:{Feature:LM},exit:{Feature:BM}},Cw=(t,e)=>Math.abs(t-e);function $M(t,e){const r=Cw(t.x,e.x),n=Cw(t.y,e.y);return Math.sqrt(r**2+n**2)}class c8{constructor(e,r,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Y1(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,v=$M(u.offset,{x:0,y:0})>=3;if(!d&&!v)return;const{point:g}=u,{timestamp:y}=qr;this.history.push({...g,timestamp:y});const{onStart:w,onMove:x}=this.handlers;d||(w&&w(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=K1(d,this.transformPagePoint),Mt.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Y1(u.type==="pointercancel"?this.lastMoveEventInfo:K1(d,this.transformPagePoint),this.history);this.startEvent&&v&&v(u,w),g&&g(u,w)},!kS(e))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=i||window;const o=g0(e),a=K1(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=qr;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=r;f&&f(e,Y1(a,this.history)),this.removeListeners=mo(As(this.contextWindow,"pointermove",this.handlePointerMove),As(this.contextWindow,"pointerup",this.handlePointerUp),As(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Rs(this.updatePoint)}}function K1(t,e){return e?{point:e(t.point)}:t}function kw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Y1({point:t},e){return{point:t,delta:kw(t,f8(e)),offset:kw(t,FM(e)),velocity:UM(e,.1)}}function FM(t){return t[0]}function f8(t){return t[t.length-1]}function UM(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=f8(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>go(e)));)r--;if(!n)return{x:0,y:0};const s=Ss(i.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function On(t){return t.max-t.min}function ep(t,e=0,r=.01){return Math.abs(t-e)<=r}function Pw(t,e,r,n=.5){t.origin=n,t.originPoint=Gt(e.min,e.max,t.origin),t.scale=On(r)/On(e),(ep(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Gt(r.min,r.max,t.origin)-t.originPoint,(ep(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ff(t,e,r,n){Pw(t.x,e.x,r.x,n?n.originX:void 0),Pw(t.y,e.y,r.y,n?n.originY:void 0)}function Tw(t,e,r){t.min=r.min+e.min,t.max=t.min+On(e)}function zM(t,e,r){Tw(t.x,e.x,r.x),Tw(t.y,e.y,r.y)}function Rw(t,e,r){t.min=e.min-r.min,t.max=t.min+On(e)}function uf(t,e,r){Rw(t.x,e.x,r.x),Rw(t.y,e.y,r.y)}function VM(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Gt(r,t,n.max):Math.min(t,r)),t}function _w(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function qM(t,{top:e,left:r,bottom:n,right:i}){return{x:_w(t.x,r,i),y:_w(t.y,e,n)}}function Iw(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Uf(e.min,e.max-n,t.min):n>i&&(r=Uf(t.min,t.max-i,e.min)),Co(0,1,r)}function GM(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const tp=.35;function KM(t=tp){return t===!1?t=0:t===!0&&(t=tp),{x:Mw(t,"left","right"),y:Mw(t,"top","bottom")}}function Mw(t,e,r){return{min:Ow(t,e),max:Ow(t,r)}}function Ow(t,e){return typeof t=="number"?t:t[e]||0}const Nw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ll=()=>({x:Nw(),y:Nw()}),Lw=()=>({min:0,max:0}),hr=()=>({x:Lw(),y:Lw()});function Wn(t){return[t("x"),t("y")]}function u8({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function YM({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function QM(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Q1(t){return t===void 0||t===1}function rp({scale:t,scaleX:e,scaleY:r}){return!Q1(t)||!Q1(e)||!Q1(r)}function Go(t){return rp(t)||d8(t)||t.z||t.rotate||t.rotateX||t.rotateY}function d8(t){return Dw(t.x)||Dw(t.y)}function Dw(t){return t&&t!=="0%"}function bh(t,e,r){const n=t-r,i=e*n;return r+i}function Bw(t,e,r,n,i){return i!==void 0&&(t=bh(t,i,n)),bh(t,r,n)+e}function np(t,e=0,r=1,n,i){t.min=Bw(t.min,e,r,n,i),t.max=Bw(t.max,e,r,n,i)}function h8(t,{x:e,y:r}){np(t.x,e.translate,e.scale,e.originPoint),np(t.y,r.translate,r.scale,r.originPoint)}function JM(t,e,r,n=!1){const i=r.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Zs(t,e){t.min=t.min+e,t.max=t.max+e}function $w(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Gt(t.min,t.max,s);np(t,e[r],e[n],o,e.scale)}const XM=["x","scaleX","originX"],ZM=["y","scaleY","originY"];function cl(t,e){$w(t.x,e,XM),$w(t.y,e,ZM)}function v8(t,e){return u8(QM(t.getBoundingClientRect(),e))}function eO(t,e,r){const n=v8(t,r),{scroll:i}=e;return i&&(Zs(n.x,i.offset.x),Zs(n.y,i.offset.y)),n}const y8=({current:t})=>t?t.ownerDocument.defaultView:null,tO=new WeakMap;class rO{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=hr(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(g0(f,"page").point)},s=(f,u)=>{const{drag:d,dragPropagation:v,onDragStart:g}=this.getProps();if(d&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=TS(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wn(w=>{let x=this.getAxisMotionValue(w).get()||0;if(Yi.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const E=b.layout.layoutBox[w];E&&(x=On(E)*(parseFloat(x)/100))}}this.originPoint[w]=x}),g&&Mt.update(()=>g(f,u),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(f,u)=>{const{dragPropagation:d,dragDirectionLock:v,onDirectionLock:g,onDrag:y}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:w}=u;if(v&&this.currentDirection===null){this.currentDirection=nO(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,w),this.updateAxis("y",u.point,w),this.visualElement.render(),y&&y(f,u)},a=(f,u)=>this.stop(f,u),l=()=>Wn(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new c8(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:y8(this.visualElement)})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Mt.update(()=>s(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:i}=this.getProps();if(!n||!Gu(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=VM(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;r&&ol(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=qM(i.layoutBox,r):this.constraints=!1,this.elastic=KM(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Wn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=GM(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!ol(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=eO(n,i.root,this.visualElement.getTransformPagePoint());let o=HM(i.layout.layoutBox,s);if(r){const a=r(YM(o));this.hasMutatedConstraints=!!a,a&&(o=u8(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Wn(f=>{if(!Gu(f,r,this.currentDirection))return;let u=l&&l[f]||{};o&&(u={min:0,max:0});const d=i?200:1e6,v=i?40:1e7,g={type:"inertia",velocity:n?e[f]:0,bounceStiffness:d,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(f,g)});return Promise.all(c).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(pg(e,n,0,r))}stopAnimation(){Wn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Wn(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Wn(r=>{const{drag:n}=this.getProps();if(!Gu(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[r];s.set(e[r]-Gt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!ol(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Wn(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=WM({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Wn(o=>{if(!Gu(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Gt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;tO.set(this.visualElement,this);const e=this.visualElement.current,r=As(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();ol(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=ws(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Wn(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),r(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=tp,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Gu(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function nO(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class iO extends Bo{constructor(e){super(e),this.removeGroupControls=rr,this.removeListeners=rr,this.controls=new rO(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||rr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Fw=t=>(e,r)=>{t&&Mt.update(()=>t(e,r))};class sO extends Bo{constructor(){super(...arguments),this.removePointerDownListener=rr}onPointerDown(e){this.session=new c8(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:y8(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Fw(e),onStart:Fw(r),onMove:n,onEnd:(s,o)=>{delete this.session,i&&Mt.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=As(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function oO(){const t=p.useContext(h0);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=p.useId();return p.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}const Rd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Uw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ec={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ae.test(t))t=parseFloat(t);else return t;const r=Uw(t,e.target.x),n=Uw(t,e.target.y);return`${r}% ${n}%`}},aO={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=ko.parse(t);if(i.length>5)return n;const s=ko.createTransformer(t),o=typeof i[0]!="number"?1:0,a=r.x.scale*e.x,l=r.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=Gt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class lO extends Cr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;y_(cO),s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Rd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||Mt.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function p8(t){const[e,r]=oO(),n=p.useContext(rg);return Cr.createElement(lO,{...t,layoutGroup:n,switchLayoutGroup:p.useContext(uS),isPresent:e,safeToRemove:r})}const cO={borderRadius:{...Ec,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ec,borderTopRightRadius:Ec,borderBottomLeftRadius:Ec,borderBottomRightRadius:Ec,boxShadow:aO},m8=["TopLeft","TopRight","BottomLeft","BottomRight"],fO=m8.length,zw=t=>typeof t=="string"?parseFloat(t):t,Vw=t=>typeof t=="number"||Ae.test(t);function uO(t,e,r,n,i,s){i?(t.opacity=Gt(0,r.opacity!==void 0?r.opacity:1,dO(n)),t.opacityExit=Gt(e.opacity!==void 0?e.opacity:1,0,hO(n))):s&&(t.opacity=Gt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(Uf(t,e,n))}function Hw(t,e){t.min=e.min,t.max=e.max}function Vn(t,e){Hw(t.x,e.x),Hw(t.y,e.y)}function Ww(t,e,r,n,i){return t-=e,t=bh(t,1/r,n),i!==void 0&&(t=bh(t,1/i,n)),t}function vO(t,e=0,r=1,n=.5,i,s=t,o=t){if(Yi.test(e)&&(e=parseFloat(e),e=Gt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Gt(s.min,s.max,n);t===s&&(a-=e),t.min=Ww(t.min,e,r,a,i),t.max=Ww(t.max,e,r,a,i)}function Gw(t,e,[r,n,i],s,o){vO(t,e[r],e[n],e[i],e.scale,s,o)}const yO=["x","scaleX","originX"],pO=["y","scaleY","originY"];function Kw(t,e,r,n){Gw(t.x,e,yO,r?r.x:void 0,n?n.x:void 0),Gw(t.y,e,pO,r?r.y:void 0,n?n.y:void 0)}function Yw(t){return t.translate===0&&t.scale===1}function x8(t){return Yw(t.x)&&Yw(t.y)}function mO(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function b8(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Qw(t){return On(t.x)/On(t.y)}class gO{constructor(){this.members=[]}add(e){mg(this.members,e),e.scheduleRender()}remove(e){if(gg(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(i=>e===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Jw(t,e,r){let n="";const i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(n=`translate3d(${i}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:l,rotateX:c,rotateY:f}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),f&&(n+=`rotateY(${f}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const xO=(t,e)=>t.depth-e.depth;class bO{constructor(){this.children=[],this.isDirty=!1}add(e){mg(this.children,e),this.isDirty=!0}remove(e){gg(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(xO),this.isDirty=!1,this.children.forEach(e)}}function wO(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(Rs(n),t(s-e))};return Mt.read(n,!0),()=>Rs(n)}function EO(t){window.MotionDebug&&window.MotionDebug.record(t)}function AO(t){return t instanceof SVGElement&&t.tagName!=="svg"}function SO(t,e,r){const n=mn(t)?t:Ll(t);return n.start(pg("",n,e,r)),n.animation}const Xw=["","X","Y","Z"],CO={visibility:"hidden"},Zw=1e3;let kO=0;const Ko={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function w8({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=kO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ko.totalNodes=Ko.resolvedTargetDeltas=Ko.recalculatedProjection=0,this.nodes.forEach(RO),this.nodes.forEach(NO),this.nodes.forEach(LO),this.nodes.forEach(_O),EO(Ko)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=wO(d,250),Rd.hasAnimatedSinceResize&&(Rd.hasAnimatedSinceResize=!1,this.nodes.forEach(t3))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||FO,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=f.getProps(),b=!this.targetLayout||!b8(this.targetLayout,g)||v,E=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||E||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,E);const P={...yg(y,"layout"),onPlay:w,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else d||t3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(DO),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;fthis.update()))}clearAllSnapshots(){this.nodes.forEach(IO),this.sharedNodes.forEach(BO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const O=P/1e3;r3(u.x,o.x,O),r3(u.y,o.y,O),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uf(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jO(this.relativeTarget,this.relativeTargetOrigin,d,O),E&&mO(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=hr()),Vn(E,this.relativeTarget)),y&&(this.animationValues=f,uO(f,c,this.latestValues,O,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mt.update(()=>{Rd.hasAnimatedSinceResize=!0,this.currentAnimation=SO(0,Zw,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Zw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&E8(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||hr();const u=On(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=On(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}Vn(a,l),cl(a,f),ff(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new gO),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(e3),this.root.sharedNodes.clear()}}}function PO(t){t.updateLayout()}function TO(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=r.source!==t.layout.source;s==="size"?Wn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=On(d);d.min=n[u].min,d.max=d.min+v}):E8(s,r.layoutBox,n)&&Wn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=On(n[u]);d.max=d.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+v)});const a=ll();ff(a,n,r.layoutBox);const l=ll();o?ff(l,t.applyTransform(i,!0),r.measuredBox):ff(l,n,r.layoutBox);const c=!x8(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:v}=u;if(d&&v){const g=hr();uf(g,r.layoutBox,d.layoutBox);const y=hr();uf(y,n,v.layoutBox),b8(g,y)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function RO(t){Ko.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function _O(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function IO(t){t.clearSnapshot()}function e3(t){t.clearMeasurements()}function MO(t){t.isLayoutDirty=!1}function OO(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t3(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function NO(t){t.resolveTargetDelta()}function LO(t){t.calcProjection()}function DO(t){t.resetRotation()}function BO(t){t.removeLeadSnapshot()}function r3(t,e,r){t.translate=Gt(e.translate,0,r),t.scale=Gt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function n3(t,e,r,n){t.min=Gt(e.min,r.min,n),t.max=Gt(e.max,r.max,n)}function jO(t,e,r,n){n3(t.x,e.x,r.x,n),n3(t.y,e.y,r.y,n)}function $O(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const FO={duration:.45,ease:[.4,0,.1,1]},i3=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),s3=i3("applewebkit/")&&!i3("chrome/")?Math.round:rr;function o3(t){t.min=s3(t.min),t.max=s3(t.max)}function UO(t){o3(t.x),o3(t.y)}function E8(t,e,r){return t==="position"||t==="preserve-aspect"&&!ep(Qw(e),Qw(r),.2)}const zO=w8({attachResizeListener:(t,e)=>ws(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),J1={current:void 0},A8=w8({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!J1.current){const t=new zO({});t.mount(window),t.setOptions({layoutScroll:!0}),J1.current=t}return J1.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),VO={pan:{Feature:sO},drag:{Feature:iO,ProjectionNode:A8,MeasureLayout:p8}},qO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function HO(t){const e=qO.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function ip(t,e,r=1){const[n,i]=HO(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const o=s.trim();return s8(o)?parseFloat(o):o}else return Gy(i)?ip(i,e,r+1):i}function WO(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(i=>{const s=i.get();if(!Gy(s))return;const o=ip(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!Gy(s))continue;const o=ip(s,n);o&&(e[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const GO=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),S8=t=>GO.has(t),KO=t=>Object.keys(t).some(S8),a3=t=>t===Pa||t===Ae,l3=(t,e)=>parseFloat(t.split(", ")[e]),c3=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return l3(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?l3(s[1],t):0}},YO=new Set(["x","y","z"]),QO=fu.filter(t=>!YO.has(t));function JO(t){const e=[];return QO.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Dl={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:c3(4,13),y:c3(5,14)};Dl.translateX=Dl.x;Dl.translateY=Dl.y;const XO=(t,e,r)=>{const n=e.measureViewportBox(),i=e.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(c=>{a[c]=Dl[c](n,s)}),e.render();const l=e.measureViewportBox();return r.forEach(c=>{const f=e.getValue(c);f&&f.jump(a[c]),t[c]=Dl[c](l,s)}),t},ZO=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter(S8);let s=[],o=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=r[l],u=wc(f);const d=e[l];let v;if(yh(d)){const g=d.length,y=d[0]===null?1:0;f=d[y],u=wc(f);for(let w=y;w=0?window.pageYOffset:null,c=XO(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),v0&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function eN(t,e,r,n){return KO(e)?ZO(t,e,r,n):{target:e,transitionEnd:n}}const tN=(t,e,r,n)=>{const i=WO(t,e,n);return e=i.target,n=i.transitionEnd,eN(t,e,r,n)},sp={current:null},C8={current:!1};function rN(){if(C8.current=!0,!!v0)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sp.current=t.matches;t.addListener(e),e()}else sp.current=!1}function nN(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(mn(s))t.addValue(i,s),xh(n)&&n.add(i);else if(mn(o))t.addValue(i,Ll(s,{owner:t})),xh(n)&&n.remove(i);else if(o!==s)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=t.getStaticValue(i);t.addValue(i,Ll(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const f3=new WeakMap,k8=Object.keys(Ff),iN=k8.length,u3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sN=tg.length;class oN{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Mt.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=p0(r),this.isVariantNode=fS(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(r,{});for(const u in f){const d=f[u];a[u]!==void 0&&mn(d)&&(d.set(a[u],!1),xh(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,f3.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),C8.current||rN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){f3.delete(this.current),this.projection&&this.projection.unmount(),Rs(this.notifyUpdate),Rs(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=ka.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Mt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:v})}return a}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):hr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Ll(r,{owner:this}),this.addValue(e,n)),n}readValue(e){var r;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=cg(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!mn(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new xg),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class P8 extends oN{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:i},s){let o=AM(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){wM(this,n,o);const a=tN(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function aN(t){return window.getComputedStyle(t)}class lN extends P8{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,r){if(ka.has(r)){const n=vg(r);return n&&n.default||0}else{const n=aN(e),i=(vS(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return v8(e,r)}build(e,r,n,i){ig(e,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,r){return lg(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;mn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){bS(e,r,n,i)}}class cN extends P8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(ka.has(r)){const n=vg(r);return n&&n.default||0}return r=wS.has(r)?r:Zm(r),e.getAttribute(r)}measureInstanceViewportBox(){return hr()}scrapeMotionValuesFromProps(e,r){return AS(e,r)}build(e,r,n,i){og(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){ES(e,r,n,i)}mount(e){this.isSVGTag=ag(e.tagName),super.mount(e)}}const fN=(t,e)=>ng(t)?new cN(e,{enableHardwareAcceleration:!1}):new lN(e,{enableHardwareAcceleration:!0}),uN={layout:{ProjectionNode:A8,MeasureLayout:p8}},dN={...jM,...iI,...VO,...uN},bl=h_((t,e)=>H_(t,e,dN,fN));function T8(){const t=p.useRef(!1);return Xm(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function hN(){const t=T8(),[e,r]=p.useState(0),n=p.useCallback(()=>{t.current&&r(e+1)},[e]);return[p.useCallback(()=>Mt.postRender(n),[n]),e]}class vN extends p.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function yN({children:t,isPresent:e}){const r=p.useId(),n=p.useRef(null),i=p.useRef({width:0,height:0,top:0,left:0});return p.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:l}=i.current;if(e||!n.current||!s||!o)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${s}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(c)}},[e]),p.createElement(vN,{isPresent:e,childRef:n,sizeRef:i},p.cloneElement(t,{ref:n}))}const X1=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=SS(pN),l=p.useId(),c=p.useMemo(()=>({id:l,initial:e,isPresent:r,custom:i,onExitComplete:f=>{a.set(f,!0);for(const u of a.values())if(!u)return;n&&n()},register:f=>(a.set(f,!1),()=>a.delete(f))}),s?void 0:[r]);return p.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),p.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=p.createElement(yN,{isPresent:r},t)),p.createElement(h0.Provider,{value:c},t)};function pN(){return new Map}function mN(t){return p.useEffect(()=>()=>t(),[])}const Yo=t=>t.key||"";function gN(t,e){t.forEach(r=>{const n=Yo(r);e.set(n,r)})}function xN(t){const e=[];return p.Children.forEach(t,r=>{p.isValidElement(r)&&e.push(r)}),e}const R8=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=p.useContext(rg).forceRender||hN()[0],l=T8(),c=xN(t);let f=c;const u=p.useRef(new Map).current,d=p.useRef(f),v=p.useRef(new Map).current,g=p.useRef(!0);if(Xm(()=>{g.current=!1,gN(c,v),d.current=f}),mN(()=>{g.current=!0,v.clear(),u.clear()}),g.current)return p.createElement(p.Fragment,null,f.map(b=>p.createElement(X1,{key:Yo(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},b)));f=[...f];const y=d.current.map(Yo),w=c.map(Yo),x=y.length;for(let b=0;b{if(w.indexOf(E)!==-1)return;const P=v.get(E);if(!P)return;const O=y.indexOf(E);let D=b;if(!D){const _=()=>{u.delete(E);const L=Array.from(v.keys()).filter(z=>!w.includes(z));if(L.forEach(z=>v.delete(z)),d.current=c.filter(z=>{const H=Yo(z);return H===E||L.includes(H)}),!u.size){if(l.current===!1)return;a(),n&&n()}};D=p.createElement(X1,{key:Yo(P),isPresent:!1,onExitComplete:_,custom:e,presenceAffectsLayout:s,mode:o},P),u.set(E,D)}f.splice(O,0,D)}),f=f.map(b=>{const E=b.key;return u.has(E)?b:p.createElement(X1,{key:Yo(b),isPresent:!0,presenceAffectsLayout:s,mode:o},b)}),p.createElement(p.Fragment,null,u.size?f:f.map(b=>p.cloneElement(b)))},_8={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( + 243.18deg, + rgba(86, 52, 189, 0.85) 0%, + rgba(49, 41, 223, 0.85) 63.54%, + rgba(7, 98, 149, 0.85) 100% + )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},bN={..._8,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},wN={..._8,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},EN={dark:bN,light:wN},AN={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var d3={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function SN(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function CN(t){var e=SN(t,"string");return typeof e=="symbol"?e:String(e)}function kN(t,e,r){return e=CN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h3(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Z1(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nl.styles)),s=Object.keys(i),o=s.filter(l=>"mappings"in i[l]),a=l=>{var c=[],f={},u=Z1({},l),d=!1;for(var v of o){var g=l[v];if(g!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=g,u[w]==null&&delete u[w]}}var x=d?Z1(Z1({},f),u):l,b=function(){var D=x[E],_=i[E];try{if(_.mappings)return"continue";if(typeof D=="string"||typeof D=="number")c.push(_.values[D].defaultClass);else if(Array.isArray(D))for(var L=0;Lt,RN=function(){return PN(TN)(...arguments)},I8=RN({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},textDecoration:{values:{none:{defaultClass:"fyvr11n2"},underline:{defaultClass:"fyvr11n3"}}},userSelect:{values:{none:{defaultClass:"fyvr11n4"},text:{defaultClass:"fyvr11n5"},all:{defaultClass:"fyvr11n6"},auto:{defaultClass:"fyvr11n7"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n8"},nowrap:{defaultClass:"fyvr11n9"},initial:{defaultClass:"fyvr11na"},inherit:{defaultClass:"fyvr11nb"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11nc"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nd"},"break-word":{defaultClass:"fyvr11ne"},initial:{defaultClass:"fyvr11nf"},inherit:{defaultClass:"fyvr11ng"}}},zIndex:{values:{0:{defaultClass:"fyvr11nh"},1:{defaultClass:"fyvr11ni"},10:{defaultClass:"fyvr11nj"},20:{defaultClass:"fyvr11nk"},30:{defaultClass:"fyvr11nl"},40:{defaultClass:"fyvr11nm"},50:{defaultClass:"fyvr11nn"},"-1":{defaultClass:"fyvr11no"},auto:{defaultClass:"fyvr11np"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11nq"},"16/9":{defaultClass:"fyvr11nr"},"4/3":{defaultClass:"fyvr11ns"},"3/1":{defaultClass:"fyvr11nt"},auto:{defaultClass:"fyvr11nu"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nv",active:"fyvr11nw",disabled:"fyvr11nx",focus:"fyvr11ny",hover:"fyvr11nz",checked:"fyvr11o0"},defaultClass:"fyvr11nv"},white:{conditions:{base:"fyvr11o1",active:"fyvr11o2",disabled:"fyvr11o3",focus:"fyvr11o4",hover:"fyvr11o5",checked:"fyvr11o6"},defaultClass:"fyvr11o1"},inherit:{conditions:{base:"fyvr11o7",active:"fyvr11o8",disabled:"fyvr11o9",focus:"fyvr11oa",hover:"fyvr11ob",checked:"fyvr11oc"},defaultClass:"fyvr11o7"},transparent:{conditions:{base:"fyvr11od",active:"fyvr11oe",disabled:"fyvr11of",focus:"fyvr11og",hover:"fyvr11oh",checked:"fyvr11oi"},defaultClass:"fyvr11od"},positive:{conditions:{base:"fyvr11oj",active:"fyvr11ok",disabled:"fyvr11ol",focus:"fyvr11om",hover:"fyvr11on",checked:"fyvr11oo"},defaultClass:"fyvr11oj"},negative:{conditions:{base:"fyvr11op",active:"fyvr11oq",disabled:"fyvr11or",focus:"fyvr11os",hover:"fyvr11ot",checked:"fyvr11ou"},defaultClass:"fyvr11op"},info:{conditions:{base:"fyvr11ov",active:"fyvr11ow",disabled:"fyvr11ox",focus:"fyvr11oy",hover:"fyvr11oz",checked:"fyvr11p0"},defaultClass:"fyvr11ov"},warning:{conditions:{base:"fyvr11p1",active:"fyvr11p2",disabled:"fyvr11p3",focus:"fyvr11p4",hover:"fyvr11p5",checked:"fyvr11p6"},defaultClass:"fyvr11p1"},gradientBackdrop:{conditions:{base:"fyvr11p7",active:"fyvr11p8",disabled:"fyvr11p9",focus:"fyvr11pa",hover:"fyvr11pb",checked:"fyvr11pc"},defaultClass:"fyvr11p7"},gradientPrimary:{conditions:{base:"fyvr11pd",active:"fyvr11pe",disabled:"fyvr11pf",focus:"fyvr11pg",hover:"fyvr11ph",checked:"fyvr11pi"},defaultClass:"fyvr11pd"},gradientSecondary:{conditions:{base:"fyvr11pj",active:"fyvr11pk",disabled:"fyvr11pl",focus:"fyvr11pm",hover:"fyvr11pn",checked:"fyvr11po"},defaultClass:"fyvr11pj"},arbitrumDark:{conditions:{base:"fyvr11pp",active:"fyvr11pq",disabled:"fyvr11pr",focus:"fyvr11ps",hover:"fyvr11pt",checked:"fyvr11pu"},defaultClass:"fyvr11pp"},arbitrumLight:{conditions:{base:"fyvr11pv",active:"fyvr11pw",disabled:"fyvr11px",focus:"fyvr11py",hover:"fyvr11pz",checked:"fyvr11q0"},defaultClass:"fyvr11pv"},avalanceDark:{conditions:{base:"fyvr11q1",active:"fyvr11q2",disabled:"fyvr11q3",focus:"fyvr11q4",hover:"fyvr11q5",checked:"fyvr11q6"},defaultClass:"fyvr11q1"},avalanceLight:{conditions:{base:"fyvr11q7",active:"fyvr11q8",disabled:"fyvr11q9",focus:"fyvr11qa",hover:"fyvr11qb",checked:"fyvr11qc"},defaultClass:"fyvr11q7"},bscDark:{conditions:{base:"fyvr11qd",active:"fyvr11qe",disabled:"fyvr11qf",focus:"fyvr11qg",hover:"fyvr11qh",checked:"fyvr11qi"},defaultClass:"fyvr11qd"},bscLight:{conditions:{base:"fyvr11qj",active:"fyvr11qk",disabled:"fyvr11ql",focus:"fyvr11qm",hover:"fyvr11qn",checked:"fyvr11qo"},defaultClass:"fyvr11qj"},ethereumDark:{conditions:{base:"fyvr11qp",active:"fyvr11qq",disabled:"fyvr11qr",focus:"fyvr11qs",hover:"fyvr11qt",checked:"fyvr11qu"},defaultClass:"fyvr11qp"},ethereumLight:{conditions:{base:"fyvr11qv",active:"fyvr11qw",disabled:"fyvr11qx",focus:"fyvr11qy",hover:"fyvr11qz",checked:"fyvr11r0"},defaultClass:"fyvr11qv"},gnosisDark:{conditions:{base:"fyvr11r1",active:"fyvr11r2",disabled:"fyvr11r3",focus:"fyvr11r4",hover:"fyvr11r5",checked:"fyvr11r6"},defaultClass:"fyvr11r1"},gnosisLight:{conditions:{base:"fyvr11r7",active:"fyvr11r8",disabled:"fyvr11r9",focus:"fyvr11ra",hover:"fyvr11rb",checked:"fyvr11rc"},defaultClass:"fyvr11r7"},polygonDark:{conditions:{base:"fyvr11rd",active:"fyvr11re",disabled:"fyvr11rf",focus:"fyvr11rg",hover:"fyvr11rh",checked:"fyvr11ri"},defaultClass:"fyvr11rd"},polygonLight:{conditions:{base:"fyvr11rj",active:"fyvr11rk",disabled:"fyvr11rl",focus:"fyvr11rm",hover:"fyvr11rn",checked:"fyvr11ro"},defaultClass:"fyvr11rj"},text100:{conditions:{base:"fyvr11rp",active:"fyvr11rq",disabled:"fyvr11rr",focus:"fyvr11rs",hover:"fyvr11rt",checked:"fyvr11ru"},defaultClass:"fyvr11rp"},text80:{conditions:{base:"fyvr11rv",active:"fyvr11rw",disabled:"fyvr11rx",focus:"fyvr11ry",hover:"fyvr11rz",checked:"fyvr11s0"},defaultClass:"fyvr11rv"},text50:{conditions:{base:"fyvr11s1",active:"fyvr11s2",disabled:"fyvr11s3",focus:"fyvr11s4",hover:"fyvr11s5",checked:"fyvr11s6"},defaultClass:"fyvr11s1"},textInverse100:{conditions:{base:"fyvr11s7",active:"fyvr11s8",disabled:"fyvr11s9",focus:"fyvr11sa",hover:"fyvr11sb",checked:"fyvr11sc"},defaultClass:"fyvr11s7"},backgroundPrimary:{conditions:{base:"fyvr11sd",active:"fyvr11se",disabled:"fyvr11sf",focus:"fyvr11sg",hover:"fyvr11sh",checked:"fyvr11si"},defaultClass:"fyvr11sd"},backgroundSecondary:{conditions:{base:"fyvr11sj",active:"fyvr11sk",disabled:"fyvr11sl",focus:"fyvr11sm",hover:"fyvr11sn",checked:"fyvr11so"},defaultClass:"fyvr11sj"},backgroundContrast:{conditions:{base:"fyvr11sp",active:"fyvr11sq",disabled:"fyvr11sr",focus:"fyvr11ss",hover:"fyvr11st",checked:"fyvr11su"},defaultClass:"fyvr11sp"},backgroundMuted:{conditions:{base:"fyvr11sv",active:"fyvr11sw",disabled:"fyvr11sx",focus:"fyvr11sy",hover:"fyvr11sz",checked:"fyvr11t0"},defaultClass:"fyvr11sv"},backgroundControl:{conditions:{base:"fyvr11t1",active:"fyvr11t2",disabled:"fyvr11t3",focus:"fyvr11t4",hover:"fyvr11t5",checked:"fyvr11t6"},defaultClass:"fyvr11t1"},backgroundInverse:{conditions:{base:"fyvr11t7",active:"fyvr11t8",disabled:"fyvr11t9",focus:"fyvr11ta",hover:"fyvr11tb",checked:"fyvr11tc"},defaultClass:"fyvr11t7"},backgroundBackdrop:{conditions:{base:"fyvr11td",active:"fyvr11te",disabled:"fyvr11tf",focus:"fyvr11tg",hover:"fyvr11th",checked:"fyvr11ti"},defaultClass:"fyvr11td"},backgroundOverlay:{conditions:{base:"fyvr11tj",active:"fyvr11tk",disabled:"fyvr11tl",focus:"fyvr11tm",hover:"fyvr11tn",checked:"fyvr11to"},defaultClass:"fyvr11tj"},backgroundRaised:{conditions:{base:"fyvr11tp",active:"fyvr11tq",disabled:"fyvr11tr",focus:"fyvr11ts",hover:"fyvr11tt",checked:"fyvr11tu"},defaultClass:"fyvr11tp"},buttonGlass:{conditions:{base:"fyvr11tv",active:"fyvr11tw",disabled:"fyvr11tx",focus:"fyvr11ty",hover:"fyvr11tz",checked:"fyvr11u0"},defaultClass:"fyvr11tv"},buttonEmphasis:{conditions:{base:"fyvr11u1",active:"fyvr11u2",disabled:"fyvr11u3",focus:"fyvr11u4",hover:"fyvr11u5",checked:"fyvr11u6"},defaultClass:"fyvr11u1"},buttonInverse:{conditions:{base:"fyvr11u7",active:"fyvr11u8",disabled:"fyvr11u9",focus:"fyvr11ua",hover:"fyvr11ub",checked:"fyvr11uc"},defaultClass:"fyvr11u7"},borderNormal:{conditions:{base:"fyvr11ud",active:"fyvr11ue",disabled:"fyvr11uf",focus:"fyvr11ug",hover:"fyvr11uh",checked:"fyvr11ui"},defaultClass:"fyvr11ud"},borderFocus:{conditions:{base:"fyvr11uj",active:"fyvr11uk",disabled:"fyvr11ul",focus:"fyvr11um",hover:"fyvr11un",checked:"fyvr11uo"},defaultClass:"fyvr11uj"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11up",active:"fyvr11uq",disabled:"fyvr11ur",focus:"fyvr11us",hover:"fyvr11ut",checked:"fyvr11uu"},defaultClass:"fyvr11up"},white:{conditions:{base:"fyvr11uv",active:"fyvr11uw",disabled:"fyvr11ux",focus:"fyvr11uy",hover:"fyvr11uz",checked:"fyvr11v0"},defaultClass:"fyvr11uv"},inherit:{conditions:{base:"fyvr11v1",active:"fyvr11v2",disabled:"fyvr11v3",focus:"fyvr11v4",hover:"fyvr11v5",checked:"fyvr11v6"},defaultClass:"fyvr11v1"},transparent:{conditions:{base:"fyvr11v7",active:"fyvr11v8",disabled:"fyvr11v9",focus:"fyvr11va",hover:"fyvr11vb",checked:"fyvr11vc"},defaultClass:"fyvr11v7"},positive:{conditions:{base:"fyvr11vd",active:"fyvr11ve",disabled:"fyvr11vf",focus:"fyvr11vg",hover:"fyvr11vh",checked:"fyvr11vi"},defaultClass:"fyvr11vd"},negative:{conditions:{base:"fyvr11vj",active:"fyvr11vk",disabled:"fyvr11vl",focus:"fyvr11vm",hover:"fyvr11vn",checked:"fyvr11vo"},defaultClass:"fyvr11vj"},info:{conditions:{base:"fyvr11vp",active:"fyvr11vq",disabled:"fyvr11vr",focus:"fyvr11vs",hover:"fyvr11vt",checked:"fyvr11vu"},defaultClass:"fyvr11vp"},warning:{conditions:{base:"fyvr11vv",active:"fyvr11vw",disabled:"fyvr11vx",focus:"fyvr11vy",hover:"fyvr11vz",checked:"fyvr11w0"},defaultClass:"fyvr11vv"},gradientBackdrop:{conditions:{base:"fyvr11w1",active:"fyvr11w2",disabled:"fyvr11w3",focus:"fyvr11w4",hover:"fyvr11w5",checked:"fyvr11w6"},defaultClass:"fyvr11w1"},gradientPrimary:{conditions:{base:"fyvr11w7",active:"fyvr11w8",disabled:"fyvr11w9",focus:"fyvr11wa",hover:"fyvr11wb",checked:"fyvr11wc"},defaultClass:"fyvr11w7"},gradientSecondary:{conditions:{base:"fyvr11wd",active:"fyvr11we",disabled:"fyvr11wf",focus:"fyvr11wg",hover:"fyvr11wh",checked:"fyvr11wi"},defaultClass:"fyvr11wd"},arbitrumDark:{conditions:{base:"fyvr11wj",active:"fyvr11wk",disabled:"fyvr11wl",focus:"fyvr11wm",hover:"fyvr11wn",checked:"fyvr11wo"},defaultClass:"fyvr11wj"},arbitrumLight:{conditions:{base:"fyvr11wp",active:"fyvr11wq",disabled:"fyvr11wr",focus:"fyvr11ws",hover:"fyvr11wt",checked:"fyvr11wu"},defaultClass:"fyvr11wp"},avalanceDark:{conditions:{base:"fyvr11wv",active:"fyvr11ww",disabled:"fyvr11wx",focus:"fyvr11wy",hover:"fyvr11wz",checked:"fyvr11x0"},defaultClass:"fyvr11wv"},avalanceLight:{conditions:{base:"fyvr11x1",active:"fyvr11x2",disabled:"fyvr11x3",focus:"fyvr11x4",hover:"fyvr11x5",checked:"fyvr11x6"},defaultClass:"fyvr11x1"},bscDark:{conditions:{base:"fyvr11x7",active:"fyvr11x8",disabled:"fyvr11x9",focus:"fyvr11xa",hover:"fyvr11xb",checked:"fyvr11xc"},defaultClass:"fyvr11x7"},bscLight:{conditions:{base:"fyvr11xd",active:"fyvr11xe",disabled:"fyvr11xf",focus:"fyvr11xg",hover:"fyvr11xh",checked:"fyvr11xi"},defaultClass:"fyvr11xd"},ethereumDark:{conditions:{base:"fyvr11xj",active:"fyvr11xk",disabled:"fyvr11xl",focus:"fyvr11xm",hover:"fyvr11xn",checked:"fyvr11xo"},defaultClass:"fyvr11xj"},ethereumLight:{conditions:{base:"fyvr11xp",active:"fyvr11xq",disabled:"fyvr11xr",focus:"fyvr11xs",hover:"fyvr11xt",checked:"fyvr11xu"},defaultClass:"fyvr11xp"},gnosisDark:{conditions:{base:"fyvr11xv",active:"fyvr11xw",disabled:"fyvr11xx",focus:"fyvr11xy",hover:"fyvr11xz",checked:"fyvr11y0"},defaultClass:"fyvr11xv"},gnosisLight:{conditions:{base:"fyvr11y1",active:"fyvr11y2",disabled:"fyvr11y3",focus:"fyvr11y4",hover:"fyvr11y5",checked:"fyvr11y6"},defaultClass:"fyvr11y1"},polygonDark:{conditions:{base:"fyvr11y7",active:"fyvr11y8",disabled:"fyvr11y9",focus:"fyvr11ya",hover:"fyvr11yb",checked:"fyvr11yc"},defaultClass:"fyvr11y7"},polygonLight:{conditions:{base:"fyvr11yd",active:"fyvr11ye",disabled:"fyvr11yf",focus:"fyvr11yg",hover:"fyvr11yh",checked:"fyvr11yi"},defaultClass:"fyvr11yd"},text100:{conditions:{base:"fyvr11yj",active:"fyvr11yk",disabled:"fyvr11yl",focus:"fyvr11ym",hover:"fyvr11yn",checked:"fyvr11yo"},defaultClass:"fyvr11yj"},text80:{conditions:{base:"fyvr11yp",active:"fyvr11yq",disabled:"fyvr11yr",focus:"fyvr11ys",hover:"fyvr11yt",checked:"fyvr11yu"},defaultClass:"fyvr11yp"},text50:{conditions:{base:"fyvr11yv",active:"fyvr11yw",disabled:"fyvr11yx",focus:"fyvr11yy",hover:"fyvr11yz",checked:"fyvr11z0"},defaultClass:"fyvr11yv"},textInverse100:{conditions:{base:"fyvr11z1",active:"fyvr11z2",disabled:"fyvr11z3",focus:"fyvr11z4",hover:"fyvr11z5",checked:"fyvr11z6"},defaultClass:"fyvr11z1"},backgroundPrimary:{conditions:{base:"fyvr11z7",active:"fyvr11z8",disabled:"fyvr11z9",focus:"fyvr11za",hover:"fyvr11zb",checked:"fyvr11zc"},defaultClass:"fyvr11z7"},backgroundSecondary:{conditions:{base:"fyvr11zd",active:"fyvr11ze",disabled:"fyvr11zf",focus:"fyvr11zg",hover:"fyvr11zh",checked:"fyvr11zi"},defaultClass:"fyvr11zd"},backgroundContrast:{conditions:{base:"fyvr11zj",active:"fyvr11zk",disabled:"fyvr11zl",focus:"fyvr11zm",hover:"fyvr11zn",checked:"fyvr11zo"},defaultClass:"fyvr11zj"},backgroundMuted:{conditions:{base:"fyvr11zp",active:"fyvr11zq",disabled:"fyvr11zr",focus:"fyvr11zs",hover:"fyvr11zt",checked:"fyvr11zu"},defaultClass:"fyvr11zp"},backgroundControl:{conditions:{base:"fyvr11zv",active:"fyvr11zw",disabled:"fyvr11zx",focus:"fyvr11zy",hover:"fyvr11zz",checked:"fyvr1200"},defaultClass:"fyvr11zv"},backgroundInverse:{conditions:{base:"fyvr1201",active:"fyvr1202",disabled:"fyvr1203",focus:"fyvr1204",hover:"fyvr1205",checked:"fyvr1206"},defaultClass:"fyvr1201"},backgroundBackdrop:{conditions:{base:"fyvr1207",active:"fyvr1208",disabled:"fyvr1209",focus:"fyvr120a",hover:"fyvr120b",checked:"fyvr120c"},defaultClass:"fyvr1207"},backgroundOverlay:{conditions:{base:"fyvr120d",active:"fyvr120e",disabled:"fyvr120f",focus:"fyvr120g",hover:"fyvr120h",checked:"fyvr120i"},defaultClass:"fyvr120d"},backgroundRaised:{conditions:{base:"fyvr120j",active:"fyvr120k",disabled:"fyvr120l",focus:"fyvr120m",hover:"fyvr120n",checked:"fyvr120o"},defaultClass:"fyvr120j"},buttonGlass:{conditions:{base:"fyvr120p",active:"fyvr120q",disabled:"fyvr120r",focus:"fyvr120s",hover:"fyvr120t",checked:"fyvr120u"},defaultClass:"fyvr120p"},buttonEmphasis:{conditions:{base:"fyvr120v",active:"fyvr120w",disabled:"fyvr120x",focus:"fyvr120y",hover:"fyvr120z",checked:"fyvr1210"},defaultClass:"fyvr120v"},buttonInverse:{conditions:{base:"fyvr1211",active:"fyvr1212",disabled:"fyvr1213",focus:"fyvr1214",hover:"fyvr1215",checked:"fyvr1216"},defaultClass:"fyvr1211"},borderNormal:{conditions:{base:"fyvr1217",active:"fyvr1218",disabled:"fyvr1219",focus:"fyvr121a",hover:"fyvr121b",checked:"fyvr121c"},defaultClass:"fyvr1217"},borderFocus:{conditions:{base:"fyvr121d",active:"fyvr121e",disabled:"fyvr121f",focus:"fyvr121g",hover:"fyvr121h",checked:"fyvr121i"},defaultClass:"fyvr121d"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr121j",active:"fyvr121k",disabled:"fyvr121l",focus:"fyvr121m",hover:"fyvr121n",checked:"fyvr121o"},defaultClass:"fyvr121j"},dashed:{conditions:{base:"fyvr121p",active:"fyvr121q",disabled:"fyvr121r",focus:"fyvr121s",hover:"fyvr121t",checked:"fyvr121u"},defaultClass:"fyvr121p"},dotted:{conditions:{base:"fyvr121v",active:"fyvr121w",disabled:"fyvr121x",focus:"fyvr121y",hover:"fyvr121z",checked:"fyvr1220"},defaultClass:"fyvr121v"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1221",active:"fyvr1222",disabled:"fyvr1223",focus:"fyvr1224",hover:"fyvr1225",checked:"fyvr1226"},defaultClass:"fyvr1221"},white:{conditions:{base:"fyvr1227",active:"fyvr1228",disabled:"fyvr1229",focus:"fyvr122a",hover:"fyvr122b",checked:"fyvr122c"},defaultClass:"fyvr1227"},inherit:{conditions:{base:"fyvr122d",active:"fyvr122e",disabled:"fyvr122f",focus:"fyvr122g",hover:"fyvr122h",checked:"fyvr122i"},defaultClass:"fyvr122d"},transparent:{conditions:{base:"fyvr122j",active:"fyvr122k",disabled:"fyvr122l",focus:"fyvr122m",hover:"fyvr122n",checked:"fyvr122o"},defaultClass:"fyvr122j"},positive:{conditions:{base:"fyvr122p",active:"fyvr122q",disabled:"fyvr122r",focus:"fyvr122s",hover:"fyvr122t",checked:"fyvr122u"},defaultClass:"fyvr122p"},negative:{conditions:{base:"fyvr122v",active:"fyvr122w",disabled:"fyvr122x",focus:"fyvr122y",hover:"fyvr122z",checked:"fyvr1230"},defaultClass:"fyvr122v"},info:{conditions:{base:"fyvr1231",active:"fyvr1232",disabled:"fyvr1233",focus:"fyvr1234",hover:"fyvr1235",checked:"fyvr1236"},defaultClass:"fyvr1231"},warning:{conditions:{base:"fyvr1237",active:"fyvr1238",disabled:"fyvr1239",focus:"fyvr123a",hover:"fyvr123b",checked:"fyvr123c"},defaultClass:"fyvr1237"},gradientBackdrop:{conditions:{base:"fyvr123d",active:"fyvr123e",disabled:"fyvr123f",focus:"fyvr123g",hover:"fyvr123h",checked:"fyvr123i"},defaultClass:"fyvr123d"},gradientPrimary:{conditions:{base:"fyvr123j",active:"fyvr123k",disabled:"fyvr123l",focus:"fyvr123m",hover:"fyvr123n",checked:"fyvr123o"},defaultClass:"fyvr123j"},gradientSecondary:{conditions:{base:"fyvr123p",active:"fyvr123q",disabled:"fyvr123r",focus:"fyvr123s",hover:"fyvr123t",checked:"fyvr123u"},defaultClass:"fyvr123p"},arbitrumDark:{conditions:{base:"fyvr123v",active:"fyvr123w",disabled:"fyvr123x",focus:"fyvr123y",hover:"fyvr123z",checked:"fyvr1240"},defaultClass:"fyvr123v"},arbitrumLight:{conditions:{base:"fyvr1241",active:"fyvr1242",disabled:"fyvr1243",focus:"fyvr1244",hover:"fyvr1245",checked:"fyvr1246"},defaultClass:"fyvr1241"},avalanceDark:{conditions:{base:"fyvr1247",active:"fyvr1248",disabled:"fyvr1249",focus:"fyvr124a",hover:"fyvr124b",checked:"fyvr124c"},defaultClass:"fyvr1247"},avalanceLight:{conditions:{base:"fyvr124d",active:"fyvr124e",disabled:"fyvr124f",focus:"fyvr124g",hover:"fyvr124h",checked:"fyvr124i"},defaultClass:"fyvr124d"},bscDark:{conditions:{base:"fyvr124j",active:"fyvr124k",disabled:"fyvr124l",focus:"fyvr124m",hover:"fyvr124n",checked:"fyvr124o"},defaultClass:"fyvr124j"},bscLight:{conditions:{base:"fyvr124p",active:"fyvr124q",disabled:"fyvr124r",focus:"fyvr124s",hover:"fyvr124t",checked:"fyvr124u"},defaultClass:"fyvr124p"},ethereumDark:{conditions:{base:"fyvr124v",active:"fyvr124w",disabled:"fyvr124x",focus:"fyvr124y",hover:"fyvr124z",checked:"fyvr1250"},defaultClass:"fyvr124v"},ethereumLight:{conditions:{base:"fyvr1251",active:"fyvr1252",disabled:"fyvr1253",focus:"fyvr1254",hover:"fyvr1255",checked:"fyvr1256"},defaultClass:"fyvr1251"},gnosisDark:{conditions:{base:"fyvr1257",active:"fyvr1258",disabled:"fyvr1259",focus:"fyvr125a",hover:"fyvr125b",checked:"fyvr125c"},defaultClass:"fyvr1257"},gnosisLight:{conditions:{base:"fyvr125d",active:"fyvr125e",disabled:"fyvr125f",focus:"fyvr125g",hover:"fyvr125h",checked:"fyvr125i"},defaultClass:"fyvr125d"},polygonDark:{conditions:{base:"fyvr125j",active:"fyvr125k",disabled:"fyvr125l",focus:"fyvr125m",hover:"fyvr125n",checked:"fyvr125o"},defaultClass:"fyvr125j"},polygonLight:{conditions:{base:"fyvr125p",active:"fyvr125q",disabled:"fyvr125r",focus:"fyvr125s",hover:"fyvr125t",checked:"fyvr125u"},defaultClass:"fyvr125p"},text100:{conditions:{base:"fyvr125v",active:"fyvr125w",disabled:"fyvr125x",focus:"fyvr125y",hover:"fyvr125z",checked:"fyvr1260"},defaultClass:"fyvr125v"},text80:{conditions:{base:"fyvr1261",active:"fyvr1262",disabled:"fyvr1263",focus:"fyvr1264",hover:"fyvr1265",checked:"fyvr1266"},defaultClass:"fyvr1261"},text50:{conditions:{base:"fyvr1267",active:"fyvr1268",disabled:"fyvr1269",focus:"fyvr126a",hover:"fyvr126b",checked:"fyvr126c"},defaultClass:"fyvr1267"},textInverse100:{conditions:{base:"fyvr126d",active:"fyvr126e",disabled:"fyvr126f",focus:"fyvr126g",hover:"fyvr126h",checked:"fyvr126i"},defaultClass:"fyvr126d"},backgroundPrimary:{conditions:{base:"fyvr126j",active:"fyvr126k",disabled:"fyvr126l",focus:"fyvr126m",hover:"fyvr126n",checked:"fyvr126o"},defaultClass:"fyvr126j"},backgroundSecondary:{conditions:{base:"fyvr126p",active:"fyvr126q",disabled:"fyvr126r",focus:"fyvr126s",hover:"fyvr126t",checked:"fyvr126u"},defaultClass:"fyvr126p"},backgroundContrast:{conditions:{base:"fyvr126v",active:"fyvr126w",disabled:"fyvr126x",focus:"fyvr126y",hover:"fyvr126z",checked:"fyvr1270"},defaultClass:"fyvr126v"},backgroundMuted:{conditions:{base:"fyvr1271",active:"fyvr1272",disabled:"fyvr1273",focus:"fyvr1274",hover:"fyvr1275",checked:"fyvr1276"},defaultClass:"fyvr1271"},backgroundControl:{conditions:{base:"fyvr1277",active:"fyvr1278",disabled:"fyvr1279",focus:"fyvr127a",hover:"fyvr127b",checked:"fyvr127c"},defaultClass:"fyvr1277"},backgroundInverse:{conditions:{base:"fyvr127d",active:"fyvr127e",disabled:"fyvr127f",focus:"fyvr127g",hover:"fyvr127h",checked:"fyvr127i"},defaultClass:"fyvr127d"},backgroundBackdrop:{conditions:{base:"fyvr127j",active:"fyvr127k",disabled:"fyvr127l",focus:"fyvr127m",hover:"fyvr127n",checked:"fyvr127o"},defaultClass:"fyvr127j"},backgroundOverlay:{conditions:{base:"fyvr127p",active:"fyvr127q",disabled:"fyvr127r",focus:"fyvr127s",hover:"fyvr127t",checked:"fyvr127u"},defaultClass:"fyvr127p"},backgroundRaised:{conditions:{base:"fyvr127v",active:"fyvr127w",disabled:"fyvr127x",focus:"fyvr127y",hover:"fyvr127z",checked:"fyvr1280"},defaultClass:"fyvr127v"},buttonGlass:{conditions:{base:"fyvr1281",active:"fyvr1282",disabled:"fyvr1283",focus:"fyvr1284",hover:"fyvr1285",checked:"fyvr1286"},defaultClass:"fyvr1281"},buttonEmphasis:{conditions:{base:"fyvr1287",active:"fyvr1288",disabled:"fyvr1289",focus:"fyvr128a",hover:"fyvr128b",checked:"fyvr128c"},defaultClass:"fyvr1287"},buttonInverse:{conditions:{base:"fyvr128d",active:"fyvr128e",disabled:"fyvr128f",focus:"fyvr128g",hover:"fyvr128h",checked:"fyvr128i"},defaultClass:"fyvr128d"},borderNormal:{conditions:{base:"fyvr128j",active:"fyvr128k",disabled:"fyvr128l",focus:"fyvr128m",hover:"fyvr128n",checked:"fyvr128o"},defaultClass:"fyvr128j"},borderFocus:{conditions:{base:"fyvr128p",active:"fyvr128q",disabled:"fyvr128r",focus:"fyvr128s",hover:"fyvr128t",checked:"fyvr128u"},defaultClass:"fyvr128p"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128v",active:"fyvr128w",disabled:"fyvr128x",focus:"fyvr128y",hover:"fyvr128z",checked:"fyvr1290"},defaultClass:"fyvr128v"},dashed:{conditions:{base:"fyvr1291",active:"fyvr1292",disabled:"fyvr1293",focus:"fyvr1294",hover:"fyvr1295",checked:"fyvr1296"},defaultClass:"fyvr1291"},dotted:{conditions:{base:"fyvr1297",active:"fyvr1298",disabled:"fyvr1299",focus:"fyvr129a",hover:"fyvr129b",checked:"fyvr129c"},defaultClass:"fyvr1297"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr129d",active:"fyvr129e",disabled:"fyvr129f",focus:"fyvr129g",hover:"fyvr129h",checked:"fyvr129i"},defaultClass:"fyvr129d"},white:{conditions:{base:"fyvr129j",active:"fyvr129k",disabled:"fyvr129l",focus:"fyvr129m",hover:"fyvr129n",checked:"fyvr129o"},defaultClass:"fyvr129j"},inherit:{conditions:{base:"fyvr129p",active:"fyvr129q",disabled:"fyvr129r",focus:"fyvr129s",hover:"fyvr129t",checked:"fyvr129u"},defaultClass:"fyvr129p"},transparent:{conditions:{base:"fyvr129v",active:"fyvr129w",disabled:"fyvr129x",focus:"fyvr129y",hover:"fyvr129z",checked:"fyvr12a0"},defaultClass:"fyvr129v"},positive:{conditions:{base:"fyvr12a1",active:"fyvr12a2",disabled:"fyvr12a3",focus:"fyvr12a4",hover:"fyvr12a5",checked:"fyvr12a6"},defaultClass:"fyvr12a1"},negative:{conditions:{base:"fyvr12a7",active:"fyvr12a8",disabled:"fyvr12a9",focus:"fyvr12aa",hover:"fyvr12ab",checked:"fyvr12ac"},defaultClass:"fyvr12a7"},info:{conditions:{base:"fyvr12ad",active:"fyvr12ae",disabled:"fyvr12af",focus:"fyvr12ag",hover:"fyvr12ah",checked:"fyvr12ai"},defaultClass:"fyvr12ad"},warning:{conditions:{base:"fyvr12aj",active:"fyvr12ak",disabled:"fyvr12al",focus:"fyvr12am",hover:"fyvr12an",checked:"fyvr12ao"},defaultClass:"fyvr12aj"},gradientBackdrop:{conditions:{base:"fyvr12ap",active:"fyvr12aq",disabled:"fyvr12ar",focus:"fyvr12as",hover:"fyvr12at",checked:"fyvr12au"},defaultClass:"fyvr12ap"},gradientPrimary:{conditions:{base:"fyvr12av",active:"fyvr12aw",disabled:"fyvr12ax",focus:"fyvr12ay",hover:"fyvr12az",checked:"fyvr12b0"},defaultClass:"fyvr12av"},gradientSecondary:{conditions:{base:"fyvr12b1",active:"fyvr12b2",disabled:"fyvr12b3",focus:"fyvr12b4",hover:"fyvr12b5",checked:"fyvr12b6"},defaultClass:"fyvr12b1"},arbitrumDark:{conditions:{base:"fyvr12b7",active:"fyvr12b8",disabled:"fyvr12b9",focus:"fyvr12ba",hover:"fyvr12bb",checked:"fyvr12bc"},defaultClass:"fyvr12b7"},arbitrumLight:{conditions:{base:"fyvr12bd",active:"fyvr12be",disabled:"fyvr12bf",focus:"fyvr12bg",hover:"fyvr12bh",checked:"fyvr12bi"},defaultClass:"fyvr12bd"},avalanceDark:{conditions:{base:"fyvr12bj",active:"fyvr12bk",disabled:"fyvr12bl",focus:"fyvr12bm",hover:"fyvr12bn",checked:"fyvr12bo"},defaultClass:"fyvr12bj"},avalanceLight:{conditions:{base:"fyvr12bp",active:"fyvr12bq",disabled:"fyvr12br",focus:"fyvr12bs",hover:"fyvr12bt",checked:"fyvr12bu"},defaultClass:"fyvr12bp"},bscDark:{conditions:{base:"fyvr12bv",active:"fyvr12bw",disabled:"fyvr12bx",focus:"fyvr12by",hover:"fyvr12bz",checked:"fyvr12c0"},defaultClass:"fyvr12bv"},bscLight:{conditions:{base:"fyvr12c1",active:"fyvr12c2",disabled:"fyvr12c3",focus:"fyvr12c4",hover:"fyvr12c5",checked:"fyvr12c6"},defaultClass:"fyvr12c1"},ethereumDark:{conditions:{base:"fyvr12c7",active:"fyvr12c8",disabled:"fyvr12c9",focus:"fyvr12ca",hover:"fyvr12cb",checked:"fyvr12cc"},defaultClass:"fyvr12c7"},ethereumLight:{conditions:{base:"fyvr12cd",active:"fyvr12ce",disabled:"fyvr12cf",focus:"fyvr12cg",hover:"fyvr12ch",checked:"fyvr12ci"},defaultClass:"fyvr12cd"},gnosisDark:{conditions:{base:"fyvr12cj",active:"fyvr12ck",disabled:"fyvr12cl",focus:"fyvr12cm",hover:"fyvr12cn",checked:"fyvr12co"},defaultClass:"fyvr12cj"},gnosisLight:{conditions:{base:"fyvr12cp",active:"fyvr12cq",disabled:"fyvr12cr",focus:"fyvr12cs",hover:"fyvr12ct",checked:"fyvr12cu"},defaultClass:"fyvr12cp"},polygonDark:{conditions:{base:"fyvr12cv",active:"fyvr12cw",disabled:"fyvr12cx",focus:"fyvr12cy",hover:"fyvr12cz",checked:"fyvr12d0"},defaultClass:"fyvr12cv"},polygonLight:{conditions:{base:"fyvr12d1",active:"fyvr12d2",disabled:"fyvr12d3",focus:"fyvr12d4",hover:"fyvr12d5",checked:"fyvr12d6"},defaultClass:"fyvr12d1"},text100:{conditions:{base:"fyvr12d7",active:"fyvr12d8",disabled:"fyvr12d9",focus:"fyvr12da",hover:"fyvr12db",checked:"fyvr12dc"},defaultClass:"fyvr12d7"},text80:{conditions:{base:"fyvr12dd",active:"fyvr12de",disabled:"fyvr12df",focus:"fyvr12dg",hover:"fyvr12dh",checked:"fyvr12di"},defaultClass:"fyvr12dd"},text50:{conditions:{base:"fyvr12dj",active:"fyvr12dk",disabled:"fyvr12dl",focus:"fyvr12dm",hover:"fyvr12dn",checked:"fyvr12do"},defaultClass:"fyvr12dj"},textInverse100:{conditions:{base:"fyvr12dp",active:"fyvr12dq",disabled:"fyvr12dr",focus:"fyvr12ds",hover:"fyvr12dt",checked:"fyvr12du"},defaultClass:"fyvr12dp"},backgroundPrimary:{conditions:{base:"fyvr12dv",active:"fyvr12dw",disabled:"fyvr12dx",focus:"fyvr12dy",hover:"fyvr12dz",checked:"fyvr12e0"},defaultClass:"fyvr12dv"},backgroundSecondary:{conditions:{base:"fyvr12e1",active:"fyvr12e2",disabled:"fyvr12e3",focus:"fyvr12e4",hover:"fyvr12e5",checked:"fyvr12e6"},defaultClass:"fyvr12e1"},backgroundContrast:{conditions:{base:"fyvr12e7",active:"fyvr12e8",disabled:"fyvr12e9",focus:"fyvr12ea",hover:"fyvr12eb",checked:"fyvr12ec"},defaultClass:"fyvr12e7"},backgroundMuted:{conditions:{base:"fyvr12ed",active:"fyvr12ee",disabled:"fyvr12ef",focus:"fyvr12eg",hover:"fyvr12eh",checked:"fyvr12ei"},defaultClass:"fyvr12ed"},backgroundControl:{conditions:{base:"fyvr12ej",active:"fyvr12ek",disabled:"fyvr12el",focus:"fyvr12em",hover:"fyvr12en",checked:"fyvr12eo"},defaultClass:"fyvr12ej"},backgroundInverse:{conditions:{base:"fyvr12ep",active:"fyvr12eq",disabled:"fyvr12er",focus:"fyvr12es",hover:"fyvr12et",checked:"fyvr12eu"},defaultClass:"fyvr12ep"},backgroundBackdrop:{conditions:{base:"fyvr12ev",active:"fyvr12ew",disabled:"fyvr12ex",focus:"fyvr12ey",hover:"fyvr12ez",checked:"fyvr12f0"},defaultClass:"fyvr12ev"},backgroundOverlay:{conditions:{base:"fyvr12f1",active:"fyvr12f2",disabled:"fyvr12f3",focus:"fyvr12f4",hover:"fyvr12f5",checked:"fyvr12f6"},defaultClass:"fyvr12f1"},backgroundRaised:{conditions:{base:"fyvr12f7",active:"fyvr12f8",disabled:"fyvr12f9",focus:"fyvr12fa",hover:"fyvr12fb",checked:"fyvr12fc"},defaultClass:"fyvr12f7"},buttonGlass:{conditions:{base:"fyvr12fd",active:"fyvr12fe",disabled:"fyvr12ff",focus:"fyvr12fg",hover:"fyvr12fh",checked:"fyvr12fi"},defaultClass:"fyvr12fd"},buttonEmphasis:{conditions:{base:"fyvr12fj",active:"fyvr12fk",disabled:"fyvr12fl",focus:"fyvr12fm",hover:"fyvr12fn",checked:"fyvr12fo"},defaultClass:"fyvr12fj"},buttonInverse:{conditions:{base:"fyvr12fp",active:"fyvr12fq",disabled:"fyvr12fr",focus:"fyvr12fs",hover:"fyvr12ft",checked:"fyvr12fu"},defaultClass:"fyvr12fp"},borderNormal:{conditions:{base:"fyvr12fv",active:"fyvr12fw",disabled:"fyvr12fx",focus:"fyvr12fy",hover:"fyvr12fz",checked:"fyvr12g0"},defaultClass:"fyvr12fv"},borderFocus:{conditions:{base:"fyvr12g1",active:"fyvr12g2",disabled:"fyvr12g3",focus:"fyvr12g4",hover:"fyvr12g5",checked:"fyvr12g6"},defaultClass:"fyvr12g1"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12g7",active:"fyvr12g8",disabled:"fyvr12g9",focus:"fyvr12ga",hover:"fyvr12gb",checked:"fyvr12gc"},defaultClass:"fyvr12g7"},dashed:{conditions:{base:"fyvr12gd",active:"fyvr12ge",disabled:"fyvr12gf",focus:"fyvr12gg",hover:"fyvr12gh",checked:"fyvr12gi"},defaultClass:"fyvr12gd"},dotted:{conditions:{base:"fyvr12gj",active:"fyvr12gk",disabled:"fyvr12gl",focus:"fyvr12gm",hover:"fyvr12gn",checked:"fyvr12go"},defaultClass:"fyvr12gj"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12gp",active:"fyvr12gq",disabled:"fyvr12gr",focus:"fyvr12gs",hover:"fyvr12gt",checked:"fyvr12gu"},defaultClass:"fyvr12gp"},white:{conditions:{base:"fyvr12gv",active:"fyvr12gw",disabled:"fyvr12gx",focus:"fyvr12gy",hover:"fyvr12gz",checked:"fyvr12h0"},defaultClass:"fyvr12gv"},inherit:{conditions:{base:"fyvr12h1",active:"fyvr12h2",disabled:"fyvr12h3",focus:"fyvr12h4",hover:"fyvr12h5",checked:"fyvr12h6"},defaultClass:"fyvr12h1"},transparent:{conditions:{base:"fyvr12h7",active:"fyvr12h8",disabled:"fyvr12h9",focus:"fyvr12ha",hover:"fyvr12hb",checked:"fyvr12hc"},defaultClass:"fyvr12h7"},positive:{conditions:{base:"fyvr12hd",active:"fyvr12he",disabled:"fyvr12hf",focus:"fyvr12hg",hover:"fyvr12hh",checked:"fyvr12hi"},defaultClass:"fyvr12hd"},negative:{conditions:{base:"fyvr12hj",active:"fyvr12hk",disabled:"fyvr12hl",focus:"fyvr12hm",hover:"fyvr12hn",checked:"fyvr12ho"},defaultClass:"fyvr12hj"},info:{conditions:{base:"fyvr12hp",active:"fyvr12hq",disabled:"fyvr12hr",focus:"fyvr12hs",hover:"fyvr12ht",checked:"fyvr12hu"},defaultClass:"fyvr12hp"},warning:{conditions:{base:"fyvr12hv",active:"fyvr12hw",disabled:"fyvr12hx",focus:"fyvr12hy",hover:"fyvr12hz",checked:"fyvr12i0"},defaultClass:"fyvr12hv"},gradientBackdrop:{conditions:{base:"fyvr12i1",active:"fyvr12i2",disabled:"fyvr12i3",focus:"fyvr12i4",hover:"fyvr12i5",checked:"fyvr12i6"},defaultClass:"fyvr12i1"},gradientPrimary:{conditions:{base:"fyvr12i7",active:"fyvr12i8",disabled:"fyvr12i9",focus:"fyvr12ia",hover:"fyvr12ib",checked:"fyvr12ic"},defaultClass:"fyvr12i7"},gradientSecondary:{conditions:{base:"fyvr12id",active:"fyvr12ie",disabled:"fyvr12if",focus:"fyvr12ig",hover:"fyvr12ih",checked:"fyvr12ii"},defaultClass:"fyvr12id"},arbitrumDark:{conditions:{base:"fyvr12ij",active:"fyvr12ik",disabled:"fyvr12il",focus:"fyvr12im",hover:"fyvr12in",checked:"fyvr12io"},defaultClass:"fyvr12ij"},arbitrumLight:{conditions:{base:"fyvr12ip",active:"fyvr12iq",disabled:"fyvr12ir",focus:"fyvr12is",hover:"fyvr12it",checked:"fyvr12iu"},defaultClass:"fyvr12ip"},avalanceDark:{conditions:{base:"fyvr12iv",active:"fyvr12iw",disabled:"fyvr12ix",focus:"fyvr12iy",hover:"fyvr12iz",checked:"fyvr12j0"},defaultClass:"fyvr12iv"},avalanceLight:{conditions:{base:"fyvr12j1",active:"fyvr12j2",disabled:"fyvr12j3",focus:"fyvr12j4",hover:"fyvr12j5",checked:"fyvr12j6"},defaultClass:"fyvr12j1"},bscDark:{conditions:{base:"fyvr12j7",active:"fyvr12j8",disabled:"fyvr12j9",focus:"fyvr12ja",hover:"fyvr12jb",checked:"fyvr12jc"},defaultClass:"fyvr12j7"},bscLight:{conditions:{base:"fyvr12jd",active:"fyvr12je",disabled:"fyvr12jf",focus:"fyvr12jg",hover:"fyvr12jh",checked:"fyvr12ji"},defaultClass:"fyvr12jd"},ethereumDark:{conditions:{base:"fyvr12jj",active:"fyvr12jk",disabled:"fyvr12jl",focus:"fyvr12jm",hover:"fyvr12jn",checked:"fyvr12jo"},defaultClass:"fyvr12jj"},ethereumLight:{conditions:{base:"fyvr12jp",active:"fyvr12jq",disabled:"fyvr12jr",focus:"fyvr12js",hover:"fyvr12jt",checked:"fyvr12ju"},defaultClass:"fyvr12jp"},gnosisDark:{conditions:{base:"fyvr12jv",active:"fyvr12jw",disabled:"fyvr12jx",focus:"fyvr12jy",hover:"fyvr12jz",checked:"fyvr12k0"},defaultClass:"fyvr12jv"},gnosisLight:{conditions:{base:"fyvr12k1",active:"fyvr12k2",disabled:"fyvr12k3",focus:"fyvr12k4",hover:"fyvr12k5",checked:"fyvr12k6"},defaultClass:"fyvr12k1"},polygonDark:{conditions:{base:"fyvr12k7",active:"fyvr12k8",disabled:"fyvr12k9",focus:"fyvr12ka",hover:"fyvr12kb",checked:"fyvr12kc"},defaultClass:"fyvr12k7"},polygonLight:{conditions:{base:"fyvr12kd",active:"fyvr12ke",disabled:"fyvr12kf",focus:"fyvr12kg",hover:"fyvr12kh",checked:"fyvr12ki"},defaultClass:"fyvr12kd"},text100:{conditions:{base:"fyvr12kj",active:"fyvr12kk",disabled:"fyvr12kl",focus:"fyvr12km",hover:"fyvr12kn",checked:"fyvr12ko"},defaultClass:"fyvr12kj"},text80:{conditions:{base:"fyvr12kp",active:"fyvr12kq",disabled:"fyvr12kr",focus:"fyvr12ks",hover:"fyvr12kt",checked:"fyvr12ku"},defaultClass:"fyvr12kp"},text50:{conditions:{base:"fyvr12kv",active:"fyvr12kw",disabled:"fyvr12kx",focus:"fyvr12ky",hover:"fyvr12kz",checked:"fyvr12l0"},defaultClass:"fyvr12kv"},textInverse100:{conditions:{base:"fyvr12l1",active:"fyvr12l2",disabled:"fyvr12l3",focus:"fyvr12l4",hover:"fyvr12l5",checked:"fyvr12l6"},defaultClass:"fyvr12l1"},backgroundPrimary:{conditions:{base:"fyvr12l7",active:"fyvr12l8",disabled:"fyvr12l9",focus:"fyvr12la",hover:"fyvr12lb",checked:"fyvr12lc"},defaultClass:"fyvr12l7"},backgroundSecondary:{conditions:{base:"fyvr12ld",active:"fyvr12le",disabled:"fyvr12lf",focus:"fyvr12lg",hover:"fyvr12lh",checked:"fyvr12li"},defaultClass:"fyvr12ld"},backgroundContrast:{conditions:{base:"fyvr12lj",active:"fyvr12lk",disabled:"fyvr12ll",focus:"fyvr12lm",hover:"fyvr12ln",checked:"fyvr12lo"},defaultClass:"fyvr12lj"},backgroundMuted:{conditions:{base:"fyvr12lp",active:"fyvr12lq",disabled:"fyvr12lr",focus:"fyvr12ls",hover:"fyvr12lt",checked:"fyvr12lu"},defaultClass:"fyvr12lp"},backgroundControl:{conditions:{base:"fyvr12lv",active:"fyvr12lw",disabled:"fyvr12lx",focus:"fyvr12ly",hover:"fyvr12lz",checked:"fyvr12m0"},defaultClass:"fyvr12lv"},backgroundInverse:{conditions:{base:"fyvr12m1",active:"fyvr12m2",disabled:"fyvr12m3",focus:"fyvr12m4",hover:"fyvr12m5",checked:"fyvr12m6"},defaultClass:"fyvr12m1"},backgroundBackdrop:{conditions:{base:"fyvr12m7",active:"fyvr12m8",disabled:"fyvr12m9",focus:"fyvr12ma",hover:"fyvr12mb",checked:"fyvr12mc"},defaultClass:"fyvr12m7"},backgroundOverlay:{conditions:{base:"fyvr12md",active:"fyvr12me",disabled:"fyvr12mf",focus:"fyvr12mg",hover:"fyvr12mh",checked:"fyvr12mi"},defaultClass:"fyvr12md"},backgroundRaised:{conditions:{base:"fyvr12mj",active:"fyvr12mk",disabled:"fyvr12ml",focus:"fyvr12mm",hover:"fyvr12mn",checked:"fyvr12mo"},defaultClass:"fyvr12mj"},buttonGlass:{conditions:{base:"fyvr12mp",active:"fyvr12mq",disabled:"fyvr12mr",focus:"fyvr12ms",hover:"fyvr12mt",checked:"fyvr12mu"},defaultClass:"fyvr12mp"},buttonEmphasis:{conditions:{base:"fyvr12mv",active:"fyvr12mw",disabled:"fyvr12mx",focus:"fyvr12my",hover:"fyvr12mz",checked:"fyvr12n0"},defaultClass:"fyvr12mv"},buttonInverse:{conditions:{base:"fyvr12n1",active:"fyvr12n2",disabled:"fyvr12n3",focus:"fyvr12n4",hover:"fyvr12n5",checked:"fyvr12n6"},defaultClass:"fyvr12n1"},borderNormal:{conditions:{base:"fyvr12n7",active:"fyvr12n8",disabled:"fyvr12n9",focus:"fyvr12na",hover:"fyvr12nb",checked:"fyvr12nc"},defaultClass:"fyvr12n7"},borderFocus:{conditions:{base:"fyvr12nd",active:"fyvr12ne",disabled:"fyvr12nf",focus:"fyvr12ng",hover:"fyvr12nh",checked:"fyvr12ni"},defaultClass:"fyvr12nd"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12nj",active:"fyvr12nk",disabled:"fyvr12nl",focus:"fyvr12nm",hover:"fyvr12nn",checked:"fyvr12no"},defaultClass:"fyvr12nj"},dashed:{conditions:{base:"fyvr12np",active:"fyvr12nq",disabled:"fyvr12nr",focus:"fyvr12ns",hover:"fyvr12nt",checked:"fyvr12nu"},defaultClass:"fyvr12np"},dotted:{conditions:{base:"fyvr12nv",active:"fyvr12nw",disabled:"fyvr12nx",focus:"fyvr12ny",hover:"fyvr12nz",checked:"fyvr12o0"},defaultClass:"fyvr12nv"}}},border:{values:{none:{conditions:{base:"fyvr12o1",active:"fyvr12o2",disabled:"fyvr12o3",focus:"fyvr12o4",hover:"fyvr12o5",checked:"fyvr12o6"},defaultClass:"fyvr12o1"}}},color:{values:{black:{conditions:{base:"fyvr12o7",active:"fyvr12o8",disabled:"fyvr12o9",focus:"fyvr12oa",hover:"fyvr12ob",checked:"fyvr12oc"},defaultClass:"fyvr12o7"},white:{conditions:{base:"fyvr12od",active:"fyvr12oe",disabled:"fyvr12of",focus:"fyvr12og",hover:"fyvr12oh",checked:"fyvr12oi"},defaultClass:"fyvr12od"},inherit:{conditions:{base:"fyvr12oj",active:"fyvr12ok",disabled:"fyvr12ol",focus:"fyvr12om",hover:"fyvr12on",checked:"fyvr12oo"},defaultClass:"fyvr12oj"},transparent:{conditions:{base:"fyvr12op",active:"fyvr12oq",disabled:"fyvr12or",focus:"fyvr12os",hover:"fyvr12ot",checked:"fyvr12ou"},defaultClass:"fyvr12op"},positive:{conditions:{base:"fyvr12ov",active:"fyvr12ow",disabled:"fyvr12ox",focus:"fyvr12oy",hover:"fyvr12oz",checked:"fyvr12p0"},defaultClass:"fyvr12ov"},negative:{conditions:{base:"fyvr12p1",active:"fyvr12p2",disabled:"fyvr12p3",focus:"fyvr12p4",hover:"fyvr12p5",checked:"fyvr12p6"},defaultClass:"fyvr12p1"},info:{conditions:{base:"fyvr12p7",active:"fyvr12p8",disabled:"fyvr12p9",focus:"fyvr12pa",hover:"fyvr12pb",checked:"fyvr12pc"},defaultClass:"fyvr12p7"},warning:{conditions:{base:"fyvr12pd",active:"fyvr12pe",disabled:"fyvr12pf",focus:"fyvr12pg",hover:"fyvr12ph",checked:"fyvr12pi"},defaultClass:"fyvr12pd"},gradientBackdrop:{conditions:{base:"fyvr12pj",active:"fyvr12pk",disabled:"fyvr12pl",focus:"fyvr12pm",hover:"fyvr12pn",checked:"fyvr12po"},defaultClass:"fyvr12pj"},gradientPrimary:{conditions:{base:"fyvr12pp",active:"fyvr12pq",disabled:"fyvr12pr",focus:"fyvr12ps",hover:"fyvr12pt",checked:"fyvr12pu"},defaultClass:"fyvr12pp"},gradientSecondary:{conditions:{base:"fyvr12pv",active:"fyvr12pw",disabled:"fyvr12px",focus:"fyvr12py",hover:"fyvr12pz",checked:"fyvr12q0"},defaultClass:"fyvr12pv"},arbitrumDark:{conditions:{base:"fyvr12q1",active:"fyvr12q2",disabled:"fyvr12q3",focus:"fyvr12q4",hover:"fyvr12q5",checked:"fyvr12q6"},defaultClass:"fyvr12q1"},arbitrumLight:{conditions:{base:"fyvr12q7",active:"fyvr12q8",disabled:"fyvr12q9",focus:"fyvr12qa",hover:"fyvr12qb",checked:"fyvr12qc"},defaultClass:"fyvr12q7"},avalanceDark:{conditions:{base:"fyvr12qd",active:"fyvr12qe",disabled:"fyvr12qf",focus:"fyvr12qg",hover:"fyvr12qh",checked:"fyvr12qi"},defaultClass:"fyvr12qd"},avalanceLight:{conditions:{base:"fyvr12qj",active:"fyvr12qk",disabled:"fyvr12ql",focus:"fyvr12qm",hover:"fyvr12qn",checked:"fyvr12qo"},defaultClass:"fyvr12qj"},bscDark:{conditions:{base:"fyvr12qp",active:"fyvr12qq",disabled:"fyvr12qr",focus:"fyvr12qs",hover:"fyvr12qt",checked:"fyvr12qu"},defaultClass:"fyvr12qp"},bscLight:{conditions:{base:"fyvr12qv",active:"fyvr12qw",disabled:"fyvr12qx",focus:"fyvr12qy",hover:"fyvr12qz",checked:"fyvr12r0"},defaultClass:"fyvr12qv"},ethereumDark:{conditions:{base:"fyvr12r1",active:"fyvr12r2",disabled:"fyvr12r3",focus:"fyvr12r4",hover:"fyvr12r5",checked:"fyvr12r6"},defaultClass:"fyvr12r1"},ethereumLight:{conditions:{base:"fyvr12r7",active:"fyvr12r8",disabled:"fyvr12r9",focus:"fyvr12ra",hover:"fyvr12rb",checked:"fyvr12rc"},defaultClass:"fyvr12r7"},gnosisDark:{conditions:{base:"fyvr12rd",active:"fyvr12re",disabled:"fyvr12rf",focus:"fyvr12rg",hover:"fyvr12rh",checked:"fyvr12ri"},defaultClass:"fyvr12rd"},gnosisLight:{conditions:{base:"fyvr12rj",active:"fyvr12rk",disabled:"fyvr12rl",focus:"fyvr12rm",hover:"fyvr12rn",checked:"fyvr12ro"},defaultClass:"fyvr12rj"},polygonDark:{conditions:{base:"fyvr12rp",active:"fyvr12rq",disabled:"fyvr12rr",focus:"fyvr12rs",hover:"fyvr12rt",checked:"fyvr12ru"},defaultClass:"fyvr12rp"},polygonLight:{conditions:{base:"fyvr12rv",active:"fyvr12rw",disabled:"fyvr12rx",focus:"fyvr12ry",hover:"fyvr12rz",checked:"fyvr12s0"},defaultClass:"fyvr12rv"},text100:{conditions:{base:"fyvr12s1",active:"fyvr12s2",disabled:"fyvr12s3",focus:"fyvr12s4",hover:"fyvr12s5",checked:"fyvr12s6"},defaultClass:"fyvr12s1"},text80:{conditions:{base:"fyvr12s7",active:"fyvr12s8",disabled:"fyvr12s9",focus:"fyvr12sa",hover:"fyvr12sb",checked:"fyvr12sc"},defaultClass:"fyvr12s7"},text50:{conditions:{base:"fyvr12sd",active:"fyvr12se",disabled:"fyvr12sf",focus:"fyvr12sg",hover:"fyvr12sh",checked:"fyvr12si"},defaultClass:"fyvr12sd"},textInverse100:{conditions:{base:"fyvr12sj",active:"fyvr12sk",disabled:"fyvr12sl",focus:"fyvr12sm",hover:"fyvr12sn",checked:"fyvr12so"},defaultClass:"fyvr12sj"},backgroundPrimary:{conditions:{base:"fyvr12sp",active:"fyvr12sq",disabled:"fyvr12sr",focus:"fyvr12ss",hover:"fyvr12st",checked:"fyvr12su"},defaultClass:"fyvr12sp"},backgroundSecondary:{conditions:{base:"fyvr12sv",active:"fyvr12sw",disabled:"fyvr12sx",focus:"fyvr12sy",hover:"fyvr12sz",checked:"fyvr12t0"},defaultClass:"fyvr12sv"},backgroundContrast:{conditions:{base:"fyvr12t1",active:"fyvr12t2",disabled:"fyvr12t3",focus:"fyvr12t4",hover:"fyvr12t5",checked:"fyvr12t6"},defaultClass:"fyvr12t1"},backgroundMuted:{conditions:{base:"fyvr12t7",active:"fyvr12t8",disabled:"fyvr12t9",focus:"fyvr12ta",hover:"fyvr12tb",checked:"fyvr12tc"},defaultClass:"fyvr12t7"},backgroundControl:{conditions:{base:"fyvr12td",active:"fyvr12te",disabled:"fyvr12tf",focus:"fyvr12tg",hover:"fyvr12th",checked:"fyvr12ti"},defaultClass:"fyvr12td"},backgroundInverse:{conditions:{base:"fyvr12tj",active:"fyvr12tk",disabled:"fyvr12tl",focus:"fyvr12tm",hover:"fyvr12tn",checked:"fyvr12to"},defaultClass:"fyvr12tj"},backgroundBackdrop:{conditions:{base:"fyvr12tp",active:"fyvr12tq",disabled:"fyvr12tr",focus:"fyvr12ts",hover:"fyvr12tt",checked:"fyvr12tu"},defaultClass:"fyvr12tp"},backgroundOverlay:{conditions:{base:"fyvr12tv",active:"fyvr12tw",disabled:"fyvr12tx",focus:"fyvr12ty",hover:"fyvr12tz",checked:"fyvr12u0"},defaultClass:"fyvr12tv"},backgroundRaised:{conditions:{base:"fyvr12u1",active:"fyvr12u2",disabled:"fyvr12u3",focus:"fyvr12u4",hover:"fyvr12u5",checked:"fyvr12u6"},defaultClass:"fyvr12u1"},buttonGlass:{conditions:{base:"fyvr12u7",active:"fyvr12u8",disabled:"fyvr12u9",focus:"fyvr12ua",hover:"fyvr12ub",checked:"fyvr12uc"},defaultClass:"fyvr12u7"},buttonEmphasis:{conditions:{base:"fyvr12ud",active:"fyvr12ue",disabled:"fyvr12uf",focus:"fyvr12ug",hover:"fyvr12uh",checked:"fyvr12ui"},defaultClass:"fyvr12ud"},buttonInverse:{conditions:{base:"fyvr12uj",active:"fyvr12uk",disabled:"fyvr12ul",focus:"fyvr12um",hover:"fyvr12un",checked:"fyvr12uo"},defaultClass:"fyvr12uj"},borderNormal:{conditions:{base:"fyvr12up",active:"fyvr12uq",disabled:"fyvr12ur",focus:"fyvr12us",hover:"fyvr12ut",checked:"fyvr12uu"},defaultClass:"fyvr12up"},borderFocus:{conditions:{base:"fyvr12uv",active:"fyvr12uw",disabled:"fyvr12ux",focus:"fyvr12uy",hover:"fyvr12uz",checked:"fyvr12v0"},defaultClass:"fyvr12uv"}}},cursor:{values:{default:{conditions:{base:"fyvr12v1",active:"fyvr12v2",disabled:"fyvr12v3",focus:"fyvr12v4",hover:"fyvr12v5",checked:"fyvr12v6"},defaultClass:"fyvr12v1"},pointer:{conditions:{base:"fyvr12v7",active:"fyvr12v8",disabled:"fyvr12v9",focus:"fyvr12va",hover:"fyvr12vb",checked:"fyvr12vc"},defaultClass:"fyvr12v7"},text:{conditions:{base:"fyvr12vd",active:"fyvr12ve",disabled:"fyvr12vf",focus:"fyvr12vg",hover:"fyvr12vh",checked:"fyvr12vi"},defaultClass:"fyvr12vd"}}},opacity:{values:{0:{conditions:{base:"fyvr12vj",active:"fyvr12vk",disabled:"fyvr12vl",focus:"fyvr12vm",hover:"fyvr12vn",checked:"fyvr12vo"},defaultClass:"fyvr12vj"},50:{conditions:{base:"fyvr12vp",active:"fyvr12vq",disabled:"fyvr12vr",focus:"fyvr12vs",hover:"fyvr12vt",checked:"fyvr12vu"},defaultClass:"fyvr12vp"},80:{conditions:{base:"fyvr12vv",active:"fyvr12vw",disabled:"fyvr12vx",focus:"fyvr12vy",hover:"fyvr12vz",checked:"fyvr12w0"},defaultClass:"fyvr12vv"},100:{conditions:{base:"fyvr12w1",active:"fyvr12w2",disabled:"fyvr12w3",focus:"fyvr12w4",hover:"fyvr12w5",checked:"fyvr12w6"},defaultClass:"fyvr12w1"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12w7",active:"fyvr12w8",disabled:"fyvr12w9",focus:"fyvr12wa",hover:"fyvr12wb",checked:"fyvr12wc"},defaultClass:"fyvr12w7"},auto:{conditions:{base:"fyvr12wd",active:"fyvr12we",disabled:"fyvr12wf",focus:"fyvr12wg",hover:"fyvr12wh",checked:"fyvr12wi"},defaultClass:"fyvr12wd"}}},outline:{values:{none:{conditions:{base:"fyvr12wj",active:"fyvr12wk",disabled:"fyvr12wl",focus:"fyvr12wm",hover:"fyvr12wn",checked:"fyvr12wo"},defaultClass:"fyvr12wj"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12wp",active:"fyvr12wq",disabled:"fyvr12wr",focus:"fyvr12ws",hover:"fyvr12wt",checked:"fyvr12wu"},defaultClass:"fyvr12wp"}}}}});const _N=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],op=t=>(t.display||(t.display=Object.keys(t).some(e=>_N.includes(e))?"flex":void 0),I8(t));op.properties=I8.properties;function M8(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e{const{as:r="div",sx:n={},className:i,...s}=t,o={},a={};for(const c in s)op.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=op({...o,...n});return p.createElement(r,{className:xn(l,i),...a,ref:e})});var O8={exports:{}},Ac={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var v3;function IN(){if(v3)return Ac;v3=1;var t=Cr,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var f,u={},d=null,v=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)n.call(l,f)&&!s.hasOwnProperty(f)&&(u[f]=l[f]);if(a&&a.defaultProps)for(f in l=a.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:e,type:a,key:d,ref:v,props:u,_owner:i.current}}return Ac.Fragment=r,Ac.jsx=o,Ac.jsxs=o,Ac}O8.exports=IN();var J=O8.exports;function MN(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ON(t){var e=MN(t,"string");return typeof e=="symbol"?e:String(e)}function NN(t,e,r){return e=ON(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y3(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function p3(t){for(var e=1;e{for(var n of Object.keys(t)){var i;if(t[n]!==((i=e[n])!==null&&i!==void 0?i:r[n]))return!1}return!0},ir=t=>{var e=r=>{var n=t.defaultClassName,i=p3(p3({},t.defaultVariants),r);for(var s in i){var o,a=(o=i[s])!==null&&o!==void 0?o:t.defaultVariants[s];if(a!=null){var l=a;typeof l=="boolean"&&(l=l===!0?"true":"false");var c=t.variantClassNames[s][l];c&&(n+=" "+c)}}for(var[f,u]of t.compoundVariants)LN(f,i,t.defaultVariants)&&(n+=" "+u);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return m3(t.variantClassNames,r=>m3(r,n=>n.split(" ")[0]))}},e};ir({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11ov",warning:"_2q9vfj9 _2q9vfj1 fyvr11p1",success:"_2q9vfja _2q9vfj2 fyvr11oj",error:"_2q9vfjb _2q9vfj3 fyvr11op"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _2q9vfj4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _2q9vfj5 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc _2q9vfj6 fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const zs=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return J.jsx(te,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var DN=ir({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"_1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"_1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"_1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"_1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"_1qxj1ibh _1qxj1ib7 fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11ls fyvr11m8 fyvr11n9 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Ce=p.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:i,hidden:s,italic:o,underline:a,children:l,ellipsis:c,uppercase:f,capitalize:u,...d}=t,v=AN[n];return J.jsx(te,{as:r,className:xn(i,DN({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...v,...d,children:l})});var BN=ir({defaultClassName:"_140wn8ni _140wn8n0 fyvr11ls fyvr11m8 fyvr11n9 fyvr11ko fyvr12o1 fyvr11n2 fyvr11h0 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11od fyvr12s1",ghost:"_140wn8nk _140wn8n2 fyvr11od fyvr12s1",feature:"_140wn8nl _140wn8n3 fyvr11pj fyvr12od",primary:"_140wn8nm _140wn8n4 fyvr11pd fyvr12od",glass:"_140wn8nn _140wn8n5 fyvr11tv fyvr12s1",emphasis:"_140wn8no _140wn8n6 fyvr11u1 fyvr12s1",raised:"_140wn8np _140wn8n7 fyvr11tp fyvr12s1",danger:"_140wn8nq _140wn8n8 fyvr11op fyvr12od",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _140wn8n9 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11od fyvr12sd"},shape:{circle:"_140wn8ns _140wn8na fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"_140wn8nt _140wn8nb fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"_140wn8nu _140wn8nc fyvr12v1 fyvr12vp",false:"_140wn8nv _140wn8nd fyvr12v7 fyvr12w1 fyvr12vz"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _140wn8ne fyvr1ws fyvr1yo",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nf fyvr1ww fyvr1ys",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8ng fyvr1x0 fyvr1yw",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nh fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const pr=p.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:i,disabled:s=!1,display:o="inline-flex",fontWeight:a="bold",pending:l=!1,label:c,leftIcon:f,rightIcon:u,size:d="md",variant:v="glass",width:g="fit",shape:y="circle",type:w="button",...x}=t,b=f!==void 0&&c!==void 0,E=u!==void 0&&c!==void 0,P=f!==void 0&&c===void 0,O=d==="xs"?"xs":"sm";return J.jsx(te,{as:r,className:xn(i,BN({activeOutline:n,disabled:s||l,hasLeftIcon:b,hasRightIcon:E,iconOnly:P,size:v==="text"?void 0:d,shape:v==="text"?void 0:y,variant:v})),disabled:s||l,display:o,fontWeight:a,ref:e,type:w,width:g,...x,children:P?J.jsx(f,{size:O}):J.jsxs(te,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[J.jsxs(te,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&J.jsx(f,{size:O}),J.jsx(Ce,{children:c})]}),u&&J.jsx(u,{size:O})]})})});var jN=ir({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11a4 fyvr11ag fyvr11as fyvr11b4 fyvr12vz fyvr12v7 _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12nj fyvr12g7 fyvr121j fyvr128v"},blur:{true:"rhmai67 rhmai62 fyvr11ms"}},defaultVariants:{},compoundVariants:[]});p.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return J.jsx(te,{className:xn(r,jN({clickable:i,outlined:s,disabled:o,blur:a})),background:s?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:l,ref:e,...c,children:n})});function nr(){return nr=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>$N(r,e))}function jt(...t){return p.useCallback(N8(...t),t)}function Jr(t,e=[]){let r=[];function n(s,o){const a=p.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...g}=u,y=(d==null?void 0:d[t][l])||a,w=p.useMemo(()=>g,Object.values(g));return p.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[t][l])||a,g=p.useContext(v);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,f]}const i=()=>{const s=r.map(o=>p.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return p.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,FN(i,...e)]}function FN(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return p.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ke(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function ri(t){const e=p.useRef(t);return p.useEffect(()=>{e.current=t}),p.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function ma({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=UN({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=ri(r),l=p.useCallback(c=>{if(s){const u=typeof c=="function"?c(t):c;u!==t&&a(u)}else i(c)},[s,t,i,a]);return[o,l]}function UN({defaultProp:t,onChange:e}){const r=p.useState(t),[n]=r,i=p.useRef(n),s=ri(e);return p.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function bg(t){const e=p.useRef({value:t,previous:t});return p.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const Nn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function wg(t){const[e,r]=p.useState(void 0);return Nn(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function zN(t,e){return p.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const jo=t=>{const{present:e,children:r}=t,n=VN(e),i=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),s=jt(n.ref,i.ref);return typeof r=="function"||n.isPresent?p.cloneElement(i,{ref:s}):null};jo.displayName="Presence";function VN(t){const[e,r]=p.useState(),n=p.useRef({}),i=p.useRef(t),s=p.useRef("none"),o=t?"mounted":"unmounted",[a,l]=zN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Ku(n.current);s.current=a==="mounted"?c:"none"},[a]),Nn(()=>{const c=n.current,f=i.current;if(f!==t){const d=s.current,v=Ku(c);t?l("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),Nn(()=>{if(e){const c=u=>{const v=Ku(n.current).includes(u.animationName);u.target===e&&v&&js.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=Ku(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Ku(t){return(t==null?void 0:t.animationName)||"none"}function Re(){return Re=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,i=p.Children.toArray(r),s=i.find(HN);if(s){const o=s.props.children,a=i.map(l=>l===s?p.Children.count(o)>1?p.Children.only(null):p.isValidElement(o)?o.props.children:null:l);return p.createElement(ap,Re({},n,{ref:e}),p.isValidElement(o)?p.cloneElement(o,void 0,a):null)}return p.createElement(ap,Re({},n,{ref:e}),r)});Bl.displayName="Slot";const ap=p.forwardRef((t,e)=>{const{children:r,...n}=t;return p.isValidElement(r)?p.cloneElement(r,{...WN(n,r.props),ref:e?N8(e,r.ref):r.ref}):p.Children.count(r)>1?p.Children.only(null):null});ap.displayName="SlotClone";const qN=({children:t})=>p.createElement(p.Fragment,null,t);function HN(t){return p.isValidElement(t)&&t.type===qN}function WN(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}const GN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rt=GN.reduce((t,e)=>{const r=p.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?Bl:e;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,nr({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Eg(t,e){t&&js.flushSync(()=>t.dispatchEvent(e))}const L8="Checkbox",[KN,Yre]=Jr(L8),[YN,QN]=KN(L8),JN=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,...f}=t,[u,d]=p.useState(null),v=jt(e,E=>d(E)),g=p.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,x]=ma({prop:i,defaultProp:s,onChange:c}),b=p.useRef(w);return p.useEffect(()=>{const E=u==null?void 0:u.form;if(E){const P=()=>x(b.current);return E.addEventListener("reset",P),()=>E.removeEventListener("reset",P)}},[u,x]),p.createElement(YN,{scope:r,state:w,disabled:a},p.createElement(rt.button,nr({type:"button",role:"checkbox","aria-checked":aa(w)?"mixed":w,"aria-required":o,"data-state":D8(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:ke(t.onKeyDown,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:ke(t.onClick,E=>{x(P=>aa(P)?!0:!P),y&&(g.current=E.isPropagationStopped(),g.current||E.stopPropagation())})})),y&&p.createElement(eL,{control:u,bubbles:!g.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),XN="CheckboxIndicator",ZN=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=QN(XN,r);return p.createElement(jo,{present:n||aa(s.state)||s.state===!0},p.createElement(rt.span,nr({"data-state":D8(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),eL=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=bg(r),a=wg(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});l.indeterminate=aa(r),u.call(l,aa(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",nr({type:"checkbox","aria-hidden":!0,defaultChecked:aa(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function aa(t){return t==="indeterminate"}function D8(t){return aa(t)?"indeterminate":t?"checked":"unchecked"}const tL=JN,rL=ZN;var nL=ir({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 _43lu9r1 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 _43lu9r2 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"_43lu9r8 _43lu9r3 fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const Xl=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?J.jsxs(te,{flexDirection:"column",gap:"0.5",children:[r&&J.jsx(Ce,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&J.jsx(Ce,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return J.jsxs(te,{as:"label",className:nL({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var b0=ir({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const iL=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),B8=({size:t="sm",...e})=>J.jsx(te,{as:iL,className:b0({size:t}),...e}),sL=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),j8=({size:t="sm",...e})=>J.jsx(te,{as:sL,className:b0({size:t}),...e}),oL=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),Ag=({size:t="sm",...e})=>J.jsx(te,{as:oL,className:b0({size:t}),...e}),aL=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),lL=({size:t="sm",...e})=>J.jsx(te,{as:aL,className:b0({size:t}),...e});var cL=ir({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11h0 fyvr11ko fyvr11jg fyvr11od fyvr12w1 fyvr12vz fyvr12vr fyvr12v7 fyvr12v3 _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),fL="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const uL=({size:t="sm"})=>J.jsx(rL,{className:fL,children:J.jsx(B8,{size:t==="lg"?"sm":"xs"})});p.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return J.jsx(Xl,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:J.jsx(tL,{className:cL({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:J.jsx(uL,{size:a})})})});Cr.createContext(null);const dL=n6["useId".toString()]||(()=>{});let hL=0;function xo(t){const[e,r]=p.useState(dL());return Nn(()=>{t||r(n=>n??String(hL++))},[t]),t||(e?`radix-${e}`:"")}const $8="Collapsible",[vL,Qre]=Jr($8),[yL,Sg]=vL($8),pL=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=ma({prop:n,defaultProp:i,onChange:o});return p.createElement(yL,{scope:r,disabled:s,contentId:xo(),open:l,onOpenToggle:p.useCallback(()=>c(f=>!f),[c])},p.createElement(rt.div,nr({"data-state":Cg(l),"data-disabled":s?"":void 0},a,{ref:e})))}),mL="CollapsibleTrigger",gL=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Sg(mL,r);return p.createElement(rt.button,nr({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Cg(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:ke(t.onClick,i.onOpenToggle)}))}),F8="CollapsibleContent",xL=p.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Sg(F8,t.__scopeCollapsible);return p.createElement(jo,{present:r||i.open},({present:s})=>p.createElement(bL,nr({},n,{ref:e,present:s})))}),bL=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Sg(F8,r),[a,l]=p.useState(n),c=p.useRef(null),f=jt(e,c),u=p.useRef(0),d=u.current,v=p.useRef(0),g=v.current,y=o.open||a,w=p.useRef(y),x=p.useRef();return p.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),Nn(()=>{const b=c.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const E=b.getBoundingClientRect();u.current=E.height,v.current=E.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(n)}},[o.open,n]),p.createElement(rt.div,nr({"data-state":Cg(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y},s,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style}}),y&&i)});function Cg(t){return t?"open":"closed"}const wL=pL,EL=gL,AL=xL;var g3="64px",SL="_4j62fl0",CL="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",kL="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",PL="_4j62fl5";const Da=t=>{const{className:e,children:r,defaultOpen:n,open:i,onOpenChange:s,label:o,...a}=t,[l,c]=p.useState(n),f=i??l,u=v=>{i===void 0&&c(v)},d=v=>{u(v),s==null||s(v)};return J.jsx(wL,{open:f,defaultOpen:n,onOpenChange:d,asChild:!0,children:J.jsxs(te,{as:bl.div,className:xn(e,SL),initial:{height:f?"auto":g3},animate:{height:f?"auto":g3},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[J.jsxs(EL,{className:CL,children:[J.jsx(Ce,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),J.jsx(te,{as:bl.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:f?180:0},animate:{rotate:f?180:0},transition:{ease:"linear",duration:.1},children:J.jsx(j8,{className:PL,color:"text50"})})]}),J.jsx(R8,{children:f&&J.jsx(AL,{className:kL,asChild:!0,forceMount:!0,children:J.jsx(bl.div,{initial:{opacity:f?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function w0(t){const e=t+"CollectionProvider",[r,n]=Jr(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:g,children:y}=v,w=Cr.useRef(null),x=Cr.useRef(new Map).current;return Cr.createElement(i,{scope:g,itemMap:x,collectionRef:w},y)},a=t+"CollectionSlot",l=Cr.forwardRef((v,g)=>{const{scope:y,children:w}=v,x=s(a,y),b=jt(g,x.collectionRef);return Cr.createElement(Bl,{ref:b},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=Cr.forwardRef((v,g)=>{const{scope:y,children:w,...x}=v,b=Cr.useRef(null),E=jt(g,b),P=s(c,y);return Cr.useEffect(()=>(P.itemMap.set(b,{ref:b,...x}),()=>void P.itemMap.delete(b))),Cr.createElement(Bl,{[f]:"",ref:E},w)});function d(v){const g=s(t+"CollectionConsumer",v);return Cr.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,O)=>x.indexOf(P.ref.current)-x.indexOf(O.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const TL=p.createContext(void 0);function kg(t){const e=p.useContext(TL);return t||e||"ltr"}function RL(t,e=globalThis==null?void 0:globalThis.document){const r=ri(t);p.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const lp="dismissableLayer.update",_L="dismissableLayer.pointerDownOutside",IL="dismissableLayer.focusOutside";let x3;const ML=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pg=p.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=p.useContext(ML),[u,d]=p.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=p.useState({}),y=jt(e,L=>d(L)),w=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(x),E=u?w.indexOf(u):-1,P=f.layersWithOutsidePointerEventsDisabled.size>0,O=E>=b,D=OL(L=>{const z=L.target,H=[...f.branches].some(G=>G.contains(z));!O||H||(s==null||s(L),a==null||a(L),L.defaultPrevented||l==null||l())},v),_=NL(L=>{const z=L.target;[...f.branches].some(G=>G.contains(z))||(o==null||o(L),a==null||a(L),L.defaultPrevented||l==null||l())},v);return RL(L=>{E===f.layers.size-1&&(i==null||i(L),!L.defaultPrevented&&l&&(L.preventDefault(),l()))},v),p.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(x3=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),b3(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=x3)}},[u,v,n,f]),p.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),b3())},[u,f]),p.useEffect(()=>{const L=()=>g({});return document.addEventListener(lp,L),()=>document.removeEventListener(lp,L)},[]),p.createElement(rt.div,Re({},c,{ref:y,style:{pointerEvents:P?O?"auto":"none":void 0,...t.style},onFocusCapture:ke(t.onFocusCapture,_.onFocusCapture),onBlurCapture:ke(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ke(t.onPointerDownCapture,D.onPointerDownCapture)}))});function OL(t,e=globalThis==null?void 0:globalThis.document){const r=ri(t),n=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){U8(_L,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function NL(t,e=globalThis==null?void 0:globalThis.document){const r=ri(t),n=p.useRef(!1);return p.useEffect(()=>{const i=s=>{s.target&&!n.current&&U8(IL,r,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function b3(){const t=new CustomEvent(lp);document.dispatchEvent(t)}function U8(t,e,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?Eg(i,s):i.dispatchEvent(s)}const LL=Pg;let ev=0;function z8(){p.useEffect(()=>{var t,e;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=r[0])!==null&&t!==void 0?t:w3()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:w3()),ev++,()=>{ev===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),ev--}},[])}function w3(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}const tv="focusScope.autoFocusOnMount",rv="focusScope.autoFocusOnUnmount",E3={bubbles:!1,cancelable:!0},V8=p.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=p.useState(null),c=ri(i),f=ri(s),u=p.useRef(null),d=jt(e,y=>l(y)),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let y=function(E){if(v.paused||!a)return;const P=E.target;a.contains(P)?u.current=P:Gs(u.current,{select:!0})},w=function(E){if(v.paused||!a)return;const P=E.relatedTarget;P!==null&&(a.contains(P)||Gs(u.current,{select:!0}))},x=function(E){if(document.activeElement===document.body)for(const O of E)O.removedNodes.length>0&&Gs(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),b.disconnect()}}},[n,a,v.paused]),p.useEffect(()=>{if(a){S3.add(v);const y=document.activeElement;if(!a.contains(y)){const x=new CustomEvent(tv,E3);a.addEventListener(tv,c),a.dispatchEvent(x),x.defaultPrevented||(DL(UL(q8(a)),{select:!0}),document.activeElement===y&&Gs(a))}return()=>{a.removeEventListener(tv,c),setTimeout(()=>{const x=new CustomEvent(rv,E3);a.addEventListener(rv,f),a.dispatchEvent(x),x.defaultPrevented||Gs(y??document.body,{select:!0}),a.removeEventListener(rv,f),S3.remove(v)},0)}}},[a,c,f,v]);const g=p.useCallback(y=>{if(!r&&!n||v.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(w&&x){const b=y.currentTarget,[E,P]=BL(b);E&&P?!y.shiftKey&&x===P?(y.preventDefault(),r&&Gs(E,{select:!0})):y.shiftKey&&x===E&&(y.preventDefault(),r&&Gs(P,{select:!0})):x===b&&y.preventDefault()}},[r,n,v.paused]);return p.createElement(rt.div,Re({tabIndex:-1},o,{ref:d,onKeyDown:g}))});function DL(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Gs(n,{select:e}),document.activeElement!==r)return}function BL(t){const e=q8(t),r=A3(e,t),n=A3(e.reverse(),t);return[r,n]}function q8(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function A3(t,e){for(const r of t)if(!jL(r,{upTo:e}))return r}function jL(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function $L(t){return t instanceof HTMLInputElement&&"select"in t}function Gs(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&$L(t)&&e&&t.select()}}const S3=FL();function FL(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=C3(t,e),t.unshift(e)},remove(e){var r;t=C3(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function C3(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function UL(t){return t.filter(e=>e.tagName!=="A")}const zL=["top","right","bottom","left"],Po=Math.min,Tn=Math.max,wh=Math.round,Yu=Math.floor,To=t=>({x:t,y:t}),VL={left:"right",right:"left",bottom:"top",top:"bottom"},qL={start:"end",end:"start"};function cp(t,e,r){return Tn(t,Po(e,r))}function _s(t,e){return typeof t=="function"?t(e):t}function Is(t){return t.split("-")[0]}function Zl(t){return t.split("-")[1]}function Tg(t){return t==="x"?"y":"x"}function Rg(t){return t==="y"?"height":"width"}function ec(t){return["top","bottom"].includes(Is(t))?"y":"x"}function _g(t){return Tg(ec(t))}function HL(t,e,r){r===void 0&&(r=!1);const n=Zl(t),i=_g(t),s=Rg(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Eh(o)),[o,Eh(o)]}function WL(t){const e=Eh(t);return[fp(t),e,fp(e)]}function fp(t){return t.replace(/start|end/g,e=>qL[e])}function GL(t,e,r){const n=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?s:o;default:return[]}}function KL(t,e,r,n){const i=Zl(t);let s=GL(Is(t),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(fp)))),s}function Eh(t){return t.replace(/left|right|bottom|top/g,e=>VL[e])}function YL(t){return{top:0,right:0,bottom:0,left:0,...t}}function H8(t){return typeof t!="number"?YL(t):{top:t,right:t,bottom:t,left:t}}function Ah(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function k3(t,e,r){let{reference:n,floating:i}=t;const s=ec(e),o=_g(e),a=Rg(o),l=Is(e),c=s==="y",f=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let v;switch(l){case"top":v={x:f,y:n.y-i.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:u};break;case"left":v={x:n.x-i.width,y:u};break;default:v={x:n.x,y:n.y}}switch(Zl(e)){case"start":v[o]-=d*(r&&c?-1:1);break;case"end":v[o]+=d*(r&&c?-1:1);break}return v}const QL=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=k3(c,n,l),d=n,v={},g=0;for(let y=0;y({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:f=0}=_s(t,e)||{};if(c==null)return{};const u=H8(f),d={x:r,y:n},v=_g(i),g=Rg(v),y=await o.getDimensions(c),w=v==="y",x=w?"top":"left",b=w?"bottom":"right",E=w?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[v]-d[v]-s.floating[g],O=d[v]-s.reference[v],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=D?D[E]:0;(!_||!await(o.isElement==null?void 0:o.isElement(D)))&&(_=a.floating[E]||s.floating[g]);const L=P/2-O/2,z=_/2-y[g]/2-1,H=Po(u[x],z),G=Po(u[b],z),X=H,M=_-y[g]-G,h=_/2-y[g]/2+L,S=cp(X,h,M),k=!l.arrow&&Zl(i)!=null&&h!=S&&s.reference[g]/2-(hX<=0)){var z,H;const X=(((z=s.flip)==null?void 0:z.index)||0)+1,M=O[X];if(M)return{data:{index:X,overflows:L},reset:{placement:M}};let h=(H=L.filter(S=>S.overflows[0]<=0).sort((S,k)=>S.overflows[1]-k.overflows[1])[0])==null?void 0:H.placement;if(!h)switch(v){case"bestFit":{var G;const S=(G=L.map(k=>[k.placement,k.overflows.filter(I=>I>0).reduce((I,T)=>I+T,0)]).sort((k,I)=>k[1]-I[1])[0])==null?void 0:G[0];S&&(h=S);break}case"initialPlacement":h=a;break}if(i!==h)return{reset:{placement:h}}}return{}}}};function T3(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function R3(t){return zL.some(e=>t[e]>=0)}const XL=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=_s(t,e);switch(n){case"referenceHidden":{const s=await zf(e,{...i,elementContext:"reference"}),o=T3(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:R3(o)}}}case"escaped":{const s=await zf(e,{...i,altBoundary:!0}),o=T3(s,r.floating);return{data:{escapedOffsets:o,escaped:R3(o)}}}default:return{}}}}};async function ZL(t,e){const{placement:r,platform:n,elements:i}=t,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Is(r),a=Zl(r),l=ec(r)==="y",c=["left","top"].includes(o)?-1:1,f=s&&l?-1:1,u=_s(e,t);let{mainAxis:d,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(v=a==="end"?g*-1:g),l?{x:v*f,y:d*c}:{x:d*c,y:v*f}}const eD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await ZL(e,t);return{x:r+i.x,y:n+i.y,data:i}}}},tD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x,y:b}=w;return{x,y:b}}},...l}=_s(t,e),c={x:r,y:n},f=await zf(e,l),u=ec(Is(i)),d=Tg(u);let v=c[d],g=c[u];if(s){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=v+f[w],E=v-f[x];v=cp(b,v,E)}if(o){const w=u==="y"?"top":"left",x=u==="y"?"bottom":"right",b=g+f[w],E=g-f[x];g=cp(b,g,E)}const y=a.fn({...e,[d]:v,[u]:g});return{...y,data:{x:y.x-r,y:y.y-n}}}}},rD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=_s(t,e),f={x:r,y:n},u=ec(i),d=Tg(u);let v=f[d],g=f[u];const y=_s(a,e),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const E=d==="y"?"height":"width",P=s.reference[d]-s.floating[E]+w.mainAxis,O=s.reference[d]+s.reference[E]-w.mainAxis;vO&&(v=O)}if(c){var x,b;const E=d==="y"?"width":"height",P=["top","left"].includes(Is(i)),O=s.reference[u]-s.floating[E]+(P&&((x=o.offset)==null?void 0:x[u])||0)+(P?0:w.crossAxis),D=s.reference[u]+s.reference[E]+(P?0:((b=o.offset)==null?void 0:b[u])||0)-(P?w.crossAxis:0);gD&&(g=D)}return{[d]:v,[u]:g}}}},nD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:i,elements:s}=e,{apply:o=()=>{},...a}=_s(t,e),l=await zf(e,a),c=Is(r),f=Zl(r),u=ec(r)==="y",{width:d,height:v}=n.floating;let g,y;c==="top"||c==="bottom"?(g=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,g=f==="end"?"top":"bottom");const w=v-l[g],x=d-l[y],b=!e.middlewareData.shift;let E=w,P=x;if(u){const D=d-l.left-l.right;P=f||b?Po(x,D):D}else{const D=v-l.top-l.bottom;E=f||b?Po(w,D):D}if(b&&!f){const D=Tn(l.left,0),_=Tn(l.right,0),L=Tn(l.top,0),z=Tn(l.bottom,0);u?P=d-2*(D!==0||_!==0?D+_:Tn(l.left,l.right)):E=v-2*(L!==0||z!==0?L+z:Tn(l.top,l.bottom))}await o({...e,availableWidth:P,availableHeight:E});const O=await i.getDimensions(s.floating);return d!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}};function Ro(t){return W8(t)?(t.nodeName||"").toLowerCase():"#document"}function In(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $s(t){var e;return(e=(W8(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function W8(t){return t instanceof Node||t instanceof In(t).Node}function Ms(t){return t instanceof Element||t instanceof In(t).Element}function es(t){return t instanceof HTMLElement||t instanceof In(t).HTMLElement}function _3(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof In(t).ShadowRoot}function vu(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=ni(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function iD(t){return["table","td","th"].includes(Ro(t))}function Ig(t){const e=Mg(),r=ni(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function sD(t){let e=jl(t);for(;es(e)&&!E0(e);){if(Ig(e))return e;e=jl(e)}return null}function Mg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function E0(t){return["html","body","#document"].includes(Ro(t))}function ni(t){return In(t).getComputedStyle(t)}function A0(t){return Ms(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function jl(t){if(Ro(t)==="html")return t;const e=t.assignedSlot||t.parentNode||_3(t)&&t.host||$s(t);return _3(e)?e.host:e}function G8(t){const e=jl(t);return E0(e)?t.ownerDocument?t.ownerDocument.body:t.body:es(e)&&vu(e)?e:G8(e)}function Vf(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=G8(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=In(i);return s?e.concat(o,o.visualViewport||[],vu(i)?i:[],o.frameElement&&r?Vf(o.frameElement):[]):e.concat(i,Vf(i,[],r))}function K8(t){const e=ni(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=es(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=wh(r)!==s||wh(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Og(t){return Ms(t)?t:t.contextElement}function wl(t){const e=Og(t);if(!es(e))return To(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=K8(e);let o=(s?wh(r.width):r.width)/n,a=(s?wh(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const oD=To(0);function Y8(t){const e=In(t);return!Mg()||!e.visualViewport?oD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function aD(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==In(t)?!1:e}function ga(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=Og(t);let o=To(1);e&&(n?Ms(n)&&(o=wl(n)):o=wl(t));const a=aD(s,r,n)?Y8(s):To(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,f=i.width/o.x,u=i.height/o.y;if(s){const d=In(s),v=n&&Ms(n)?In(n):n;let g=d.frameElement;for(;g&&n&&v!==d;){const y=wl(g),w=g.getBoundingClientRect(),x=ni(g),b=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,E=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=b,c+=E,g=In(g).frameElement}}return Ah({width:f,height:u,x:l,y:c})}function lD(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=es(r),s=$s(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a=To(1);const l=To(0);if((i||!i&&n!=="fixed")&&((Ro(r)!=="body"||vu(s))&&(o=A0(r)),es(r))){const c=ga(r);a=wl(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+l.x,y:e.y*a.y-o.scrollTop*a.y+l.y}}function cD(t){return Array.from(t.getClientRects())}function Q8(t){return ga($s(t)).left+A0(t).scrollLeft}function fD(t){const e=$s(t),r=A0(t),n=t.ownerDocument.body,i=Tn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=Tn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Q8(t);const a=-r.scrollTop;return ni(n).direction==="rtl"&&(o+=Tn(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function uD(t,e){const r=In(t),n=$s(t),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=Mg();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function dD(t,e){const r=ga(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=es(t)?wl(t):To(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function I3(t,e,r){let n;if(e==="viewport")n=uD(t,r);else if(e==="document")n=fD($s(t));else if(Ms(e))n=dD(e,r);else{const i=Y8(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return Ah(n)}function J8(t,e){const r=jl(t);return r===e||!Ms(r)||E0(r)?!1:ni(r).position==="fixed"||J8(r,e)}function hD(t,e){const r=e.get(t);if(r)return r;let n=Vf(t,[],!1).filter(a=>Ms(a)&&Ro(a)!=="body"),i=null;const s=ni(t).position==="fixed";let o=s?jl(t):t;for(;Ms(o)&&!E0(o);){const a=ni(o),l=Ig(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||vu(o)&&!l&&J8(t,o))?n=n.filter(f=>f!==o):i=a,o=jl(o)}return e.set(t,n),n}function vD(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?hD(e,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,f)=>{const u=I3(e,f,i);return c.top=Tn(u.top,c.top),c.right=Po(u.right,c.right),c.bottom=Po(u.bottom,c.bottom),c.left=Tn(u.left,c.left),c},I3(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yD(t){return K8(t)}function pD(t,e,r){const n=es(e),i=$s(e),s=r==="fixed",o=ga(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=To(0);if(n||!n&&!s)if((Ro(e)!=="body"||vu(i))&&(a=A0(e)),n){const c=ga(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=Q8(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function M3(t,e){return!es(t)||ni(t).position==="fixed"?null:e?e(t):t.offsetParent}function X8(t,e){const r=In(t);if(!es(t))return r;let n=M3(t,e);for(;n&&iD(n)&&ni(n).position==="static";)n=M3(n,e);return n&&(Ro(n)==="html"||Ro(n)==="body"&&ni(n).position==="static"&&!Ig(n))?r:n||sD(t)||r}const mD=async function(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||X8,s=this.getDimensions;return{reference:pD(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}};function gD(t){return ni(t).direction==="rtl"}const xD={convertOffsetParentRelativeRectToViewportRelativeRect:lD,getDocumentElement:$s,getClippingRect:vD,getOffsetParent:X8,getElementRects:mD,getClientRects:cD,getDimensions:yD,getScale:wl,isElement:Ms,isRTL:gD};function bD(t,e){let r=null,n;const i=$s(t);function s(){clearTimeout(n),r&&r.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:f,width:u,height:d}=t.getBoundingClientRect();if(a||e(),!u||!d)return;const v=Yu(f),g=Yu(i.clientWidth-(c+u)),y=Yu(i.clientHeight-(f+d)),w=Yu(c),b={rootMargin:-v+"px "+-g+"px "+-y+"px "+-w+"px",threshold:Tn(0,Po(1,l))||1};let E=!0;function P(O){const D=O[0].intersectionRatio;if(D!==l){if(!E)return o();D?o(!1,D):n=setTimeout(()=>{o(!1,1e-7)},100)}E=!1}try{r=new IntersectionObserver(P,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(P,b)}r.observe(t)}return o(!0),s}function wD(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Og(t),f=i||s?[...c?Vf(c):[],...Vf(e)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),s&&x.addEventListener("resize",r)});const u=c&&a?bD(c,r):null;let d=-1,v=null;o&&(v=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&v&&(v.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{v&&v.observe(e)})),r()}),c&&!l&&v.observe(c),v.observe(e));let g,y=l?ga(t):null;l&&w();function w(){const x=ga(t);y&&(x.x!==y.x||x.y!==y.y||x.width!==y.width||x.height!==y.height)&&r(),y=x,g=requestAnimationFrame(w)}return r(),()=>{f.forEach(x=>{i&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),u&&u(),v&&v.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const ED=(t,e,r)=>{const n=new Map,i={platform:xD,...r},s={...i.platform,_c:n};return QL(t,e,{...i,platform:s})},AD=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?P3({element:n.current,padding:i}).fn(r):{}:n?P3({element:n,padding:i}).fn(r):{}}}};var _d=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Sh(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Sh(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&t.$$typeof)&&!Sh(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Z8(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function O3(t,e){const r=Z8(t);return Math.round(e*r)/r}function N3(t){const e=p.useRef(t);return _d(()=>{e.current=t}),e}function SD(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[f,u]=p.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=p.useState(n);Sh(d,n)||v(n);const[g,y]=p.useState(null),[w,x]=p.useState(null),b=p.useCallback(k=>{k!=D.current&&(D.current=k,y(k))},[y]),E=p.useCallback(k=>{k!==_.current&&(_.current=k,x(k))},[x]),P=s||g,O=o||w,D=p.useRef(null),_=p.useRef(null),L=p.useRef(f),z=N3(l),H=N3(i),G=p.useCallback(()=>{if(!D.current||!_.current)return;const k={placement:e,strategy:r,middleware:d};H.current&&(k.platform=H.current),ED(D.current,_.current,k).then(I=>{const T={...I,isPositioned:!0};X.current&&!Sh(L.current,T)&&(L.current=T,js.flushSync(()=>{u(T)}))})},[d,e,r,H]);_d(()=>{c===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,u(k=>({...k,isPositioned:!1})))},[c]);const X=p.useRef(!1);_d(()=>(X.current=!0,()=>{X.current=!1}),[]),_d(()=>{if(P&&(D.current=P),O&&(_.current=O),P&&O){if(z.current)return z.current(P,O,G);G()}},[P,O,G,z]);const M=p.useMemo(()=>({reference:D,floating:_,setReference:b,setFloating:E}),[b,E]),h=p.useMemo(()=>({reference:P,floating:O}),[P,O]),S=p.useMemo(()=>{const k={position:r,left:0,top:0};if(!h.floating)return k;const I=O3(h.floating,f.x),T=O3(h.floating,f.y);return a?{...k,transform:"translate("+I+"px, "+T+"px)",...Z8(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:T}},[r,a,h.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:G,refs:M,elements:h,floatingStyles:S}),[f,G,M,h,S])}const eC="Popper",[tC,tc]=Jr(eC),[CD,rC]=tC(eC),kD=t=>{const{__scopePopper:e,children:r}=t,[n,i]=p.useState(null);return p.createElement(CD,{scope:e,anchor:n,onAnchorChange:i},r)},PD="PopperAnchor",TD=p.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=rC(PD,r),o=p.useRef(null),a=jt(e,o);return p.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:p.createElement(rt.div,Re({},i,{ref:a}))}),nC="PopperContent",[RD,Jre]=tC(nC),_D=p.forwardRef((t,e)=>{var r,n,i,s,o,a,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:b=0,sticky:E="partial",hideWhenDetached:P=!1,updatePositionStrategy:O="optimized",onPlaced:D,..._}=t,L=rC(nC,f),[z,H]=p.useState(null),G=jt(e,Ee=>H(Ee)),[X,M]=p.useState(null),h=wg(X),S=(r=h==null?void 0:h.width)!==null&&r!==void 0?r:0,k=(n=h==null?void 0:h.height)!==null&&n!==void 0?n:0,I=u+(v!=="center"?"-"+v:""),T=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},N=Array.isArray(x)?x:[x],j=N.length>0,C={padding:T,boundary:N.filter(ID),altBoundary:j},{refs:m,floatingStyles:R,placement:F,isPositioned:A,middlewareData:$}=SD({strategy:"fixed",placement:I,whileElementsMounted:(...Ee)=>wD(...Ee,{animationFrame:O==="always"}),elements:{reference:L.anchor},middleware:[eD({mainAxis:d+k,alignmentAxis:g}),w&&tD({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?rD():void 0,...C}),w&&JL({...C}),nD({...C,apply:({elements:Ee,rects:Qt,availableWidth:We,availableHeight:ft})=>{const{width:ai,height:ut}=Qt.reference,Je=Ee.floating.style;Je.setProperty("--radix-popper-available-width",`${We}px`),Je.setProperty("--radix-popper-available-height",`${ft}px`),Je.setProperty("--radix-popper-anchor-width",`${ai}px`),Je.setProperty("--radix-popper-anchor-height",`${ut}px`)}}),X&&AD({element:X,padding:y}),MD({arrowWidth:S,arrowHeight:k}),P&&XL({strategy:"referenceHidden",...C})]}),[V,q]=iC(F),Y=ri(D);Nn(()=>{A&&(Y==null||Y())},[A,Y]);const ae=(i=$.arrow)===null||i===void 0?void 0:i.x,re=(s=$.arrow)===null||s===void 0?void 0:s.y,ne=((o=$.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[Me,de]=p.useState();return Nn(()=>{z&&de(window.getComputedStyle(z).zIndex)},[z]),p.createElement("div",{ref:m.setFloating,"data-radix-popper-content-wrapper":"",style:{...R,transform:A?R.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[(a=$.transformOrigin)===null||a===void 0?void 0:a.x,(l=$.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},p.createElement(RD,{scope:f,placedSide:V,onArrowChange:M,arrowX:ae,arrowY:re,shouldHideArrow:ne},p.createElement(rt.div,Re({"data-side":V,"data-align":q},_,{ref:G,style:{..._.style,animation:A?void 0:"none",opacity:(c=$.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function ID(t){return t!==null}const MD=t=>({name:"transformOrigin",options:t,fn(e){var r,n,i,s,o;const{placement:a,rects:l,middlewareData:c}=e,u=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,d=u?0:t.arrowWidth,v=u?0:t.arrowHeight,[g,y]=iC(a),w={start:"0%",center:"50%",end:"100%"}[y],x=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,b=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+v/2;let E="",P="";return g==="bottom"?(E=u?w:`${x}px`,P=`${-v}px`):g==="top"?(E=u?w:`${x}px`,P=`${l.floating.height+v}px`):g==="right"?(E=`${-v}px`,P=u?w:`${b}px`):g==="left"&&(E=`${l.floating.width+v}px`,P=u?w:`${b}px`),{data:{x:E,y:P}}}});function iC(t){const[e,r="center"]=t.split("-");return[e,r]}const OD=kD,ND=TD,LD=_D,sC=p.forwardRef((t,e)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=t;return n?oS.createPortal(p.createElement(rt.div,Re({},i,{ref:e})),n):null}),nv="rovingFocusGroup.onEntryFocus",DD={bubbles:!1,cancelable:!0},Ng="RovingFocusGroup",[up,oC,BD]=w0(Ng),[jD,rc]=Jr(Ng,[BD]),[$D,FD]=jD(Ng),UD=p.forwardRef((t,e)=>p.createElement(up.Provider,{scope:t.__scopeRovingFocusGroup},p.createElement(up.Slot,{scope:t.__scopeRovingFocusGroup},p.createElement(zD,nr({},t,{ref:e}))))),zD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=p.useRef(null),d=jt(e,u),v=kg(s),[g=null,y]=ma({prop:o,defaultProp:a,onChange:l}),[w,x]=p.useState(!1),b=ri(c),E=oC(r),P=p.useRef(!1),[O,D]=p.useState(0);return p.useEffect(()=>{const _=u.current;if(_)return _.addEventListener(nv,b),()=>_.removeEventListener(nv,b)},[b]),p.createElement($D,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:g,onItemFocus:p.useCallback(_=>y(_),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>D(_=>_+1),[]),onFocusableItemRemove:p.useCallback(()=>D(_=>_-1),[])},p.createElement(rt.div,nr({tabIndex:w||O===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...t.style},onMouseDown:ke(t.onMouseDown,()=>{P.current=!0}),onFocus:ke(t.onFocus,_=>{const L=!P.current;if(_.target===_.currentTarget&&L&&!w){const z=new CustomEvent(nv,DD);if(_.currentTarget.dispatchEvent(z),!z.defaultPrevented){const H=E().filter(S=>S.focusable),G=H.find(S=>S.active),X=H.find(S=>S.id===g),h=[G,X,...H].filter(Boolean).map(S=>S.ref.current);aC(h)}}P.current=!1}),onBlur:ke(t.onBlur,()=>x(!1))})))}),VD="RovingFocusGroupItem",qD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=xo(),l=s||a,c=FD(VD,r),f=c.currentTabStopId===l,u=oC(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return p.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),p.createElement(up.ItemSlot,{scope:r,id:l,focusable:n,active:i},p.createElement(rt.span,nr({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:ke(t.onMouseDown,g=>{n?c.onItemFocus(l):g.preventDefault()}),onFocus:ke(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:ke(t.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=GD(g,c.orientation,c.dir);if(y!==void 0){g.preventDefault();let x=u().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(g.currentTarget);x=c.loop?KD(x,b+1):x.slice(b+1)}setTimeout(()=>aC(x))}})})))}),HD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function WD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function GD(t,e,r){const n=WD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HD[n]}function aC(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function KD(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const YD=UD,lC=qD;var QD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Ba=new WeakMap,Qu=new WeakMap,Ju={},iv=0,cC=function(t){return t&&(t.host||cC(t.parentNode))},JD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=cC(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},XD=function(t,e,r,n){var i=JD(e,Array.isArray(t)?t:[t]);Ju[r]||(Ju[r]=new WeakMap);var s=Ju[r],o=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(a.has(d))f(d);else{var v=d.getAttribute(n),g=v!==null&&v!=="false",y=(Ba.get(d)||0)+1,w=(s.get(d)||0)+1;Ba.set(d,y),s.set(d,w),o.push(d),y===1&&g&&Qu.set(d,!0),w===1&&d.setAttribute(r,"true"),g||d.setAttribute(n,"true")}})};return f(e),a.clear(),iv++,function(){o.forEach(function(u){var d=Ba.get(u)-1,v=s.get(u)-1;Ba.set(u,d),s.set(u,v),d||(Qu.has(u)||u.removeAttribute(n),Qu.delete(u)),v||u.removeAttribute(r)}),iv--,iv||(Ba=new WeakMap,Ba=new WeakMap,Qu=new WeakMap,Ju={})}},fC=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=QD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),XD(n,i,r,"aria-hidden")):function(){return null}},Fi=function(){return Fi=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return yB;var e=pB(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},gB=vC(),xB=function(t,e,r,n){var i=t.left,s=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` + .`.concat(eB,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(a,"px ").concat(n,`; + } + body { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(s,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat(Id,` { + right: `).concat(a,"px ").concat(n,`; + } + + .`).concat(Md,` { + margin-right: `).concat(a,"px ").concat(n,`; + } + + .`).concat(Id," .").concat(Id,` { + right: 0 `).concat(n,`; + } + + .`).concat(Md," .").concat(Md,` { + margin-right: 0 `).concat(n,`; + } + + body { + `).concat(tB,": ").concat(a,`px; + } +`)},bB=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=p.useMemo(function(){return mB(i)},[i]);return p.createElement(gB,{styles:xB(s,!e,i,r?"":"!important")})},dp=!1;if(typeof window<"u")try{var Xu=Object.defineProperty({},"passive",{get:function(){return dp=!0,!0}});window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,Xu)}catch{dp=!1}var ja=dp?{passive:!1}:!1,wB=function(t){return t.tagName==="TEXTAREA"},yC=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!wB(t)&&r[e]==="visible")},EB=function(t){return yC(t,"overflowY")},AB=function(t){return yC(t,"overflowX")},L3=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=pC(t,r);if(n){var i=mC(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},SB=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},CB=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},pC=function(t,e){return t==="v"?EB(e):AB(e)},mC=function(t,e){return t==="v"?SB(e):CB(e)},kB=function(t,e){return t==="h"&&e==="rtl"?-1:1},PB=function(t,e,r,n,i){var s=kB(t,window.getComputedStyle(e).direction),o=s*n,a=r.target,l=e.contains(a),c=!1,f=o>0,u=0,d=0;do{var v=mC(t,a),g=v[0],y=v[1],w=v[2],x=y-w-s*g;(g||x)&&pC(t,a)&&(u+=x,d+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(u===0||!i)||!f&&(d===0||!i))&&(c=!0),c},Zu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},D3=function(t){return[t.deltaX,t.deltaY]},B3=function(t){return t&&"current"in t?t.current:t},TB=function(t,e){return t[0]===e[0]&&t[1]===e[1]},RB=function(t){return` + .block-interactivity-`.concat(t,` {pointer-events: none;} + .allow-interactivity-`).concat(t,` {pointer-events: all;} +`)},_B=0,$a=[];function IB(t){var e=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),i=p.useState(_B++)[0],s=p.useState(function(){return vC()})[0],o=p.useRef(t);p.useEffect(function(){o.current=t},[t]),p.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=ZD([t.lockRef.current],(t.shards||[]).map(B3),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=p.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var x=Zu(y),b=r.current,E="deltaX"in y?y.deltaX:b[0]-x[0],P="deltaY"in y?y.deltaY:b[1]-x[1],O,D=y.target,_=Math.abs(E)>Math.abs(P)?"h":"v";if("touches"in y&&_==="h"&&D.type==="range")return!1;var L=L3(_,D);if(!L)return!0;if(L?O=_:(O=_==="v"?"h":"v",L=L3(_,D)),!L)return!1;if(!n.current&&"changedTouches"in y&&(E||P)&&(n.current=O),!O)return!0;var z=n.current||O;return PB(z,w,y,z==="h"?E:P,!0)},[]),l=p.useCallback(function(y){var w=y;if(!(!$a.length||$a[$a.length-1]!==s)){var x="deltaY"in w?D3(w):Zu(w),b=e.current.filter(function(O){return O.name===w.type&&O.target===w.target&&TB(O.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var E=(o.current.shards||[]).map(B3).filter(Boolean).filter(function(O){return O.contains(w.target)}),P=E.length>0?a(w,E[0]):!o.current.noIsolation;P&&w.cancelable&&w.preventDefault()}}},[]),c=p.useCallback(function(y,w,x,b){var E={name:y,delta:w,target:x,should:b};e.current.push(E),setTimeout(function(){e.current=e.current.filter(function(P){return P!==E})},1)},[]),f=p.useCallback(function(y){r.current=Zu(y),n.current=void 0},[]),u=p.useCallback(function(y){c(y.type,D3(y),y.target,a(y,t.lockRef.current))},[]),d=p.useCallback(function(y){c(y.type,Zu(y),y.target,a(y,t.lockRef.current))},[]);p.useEffect(function(){return $a.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,ja),document.addEventListener("touchmove",l,ja),document.addEventListener("touchstart",f,ja),function(){$a=$a.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,ja),document.removeEventListener("touchmove",l,ja),document.removeEventListener("touchstart",f,ja)}},[]);var v=t.removeScrollBar,g=t.inert;return p.createElement(p.Fragment,null,g?p.createElement(s,{styles:RB(i)}):null,v?p.createElement(bB,{gapMode:"margin"}):null)}const MB=lB(hC,IB);var Lg=p.forwardRef(function(t,e){return p.createElement(S0,Fi({},t,{ref:e,sideCar:MB}))});Lg.classNames=S0.classNames;const OB=["Enter"," "],C0="Menu",[NB,Xre,LB]=w0(C0),[Ta,gC]=Jr(C0,[LB,tc,rc]);tc();const DB=rc();Ta(C0);const[Zre,BB]=Ta(C0),jB="MenuPortal";Ta(jB,{forceMount:void 0});const $B="MenuContent",[ene,xC]=Ta($B),hp="MenuItem",j3="menu.itemSelect",bC=p.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=p.useRef(null),o=BB(hp,t.__scopeMenu),a=xC(hp,t.__scopeMenu),l=jt(e,s),c=p.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(j3,{bubbles:!0,cancelable:!0});u.addEventListener(j3,v=>n==null?void 0:n(v),{once:!0}),Eg(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return p.createElement(FB,Re({},i,{ref:l,disabled:r,onClick:ke(t.onClick,f),onPointerDown:u=>{var d;(d=t.onPointerDown)===null||d===void 0||d.call(t,u),c.current=!0},onPointerUp:ke(t.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:ke(t.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||OB.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),FB=p.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=xC(hp,r),a=DB(r),l=p.useRef(null),c=jt(e,l),[f,u]=p.useState(!1),[d,v]=p.useState("");return p.useEffect(()=>{const g=l.current;if(g){var y;v(((y=g.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),p.createElement(NB.ItemSlot,{scope:r,disabled:n,textValue:i??d},p.createElement(lC,Re({asChild:!0},a,{focusable:!n}),p.createElement(rt.div,Re({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:ke(t.onPointerMove,$3(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:ke(t.onPointerLeave,$3(g=>o.onItemLeave(g))),onFocus:ke(t.onFocus,()=>u(!0)),onBlur:ke(t.onBlur,()=>u(!1))}))))}),UB=p.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return p.createElement(EC,{scope:t.__scopeMenu,checked:r},p.createElement(bC,Re({role:"menuitemcheckbox","aria-checked":Ch(r)?"mixed":r},i,{ref:e,"data-state":Dg(r),onSelect:ke(i.onSelect,()=>n==null?void 0:n(Ch(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),zB="MenuRadioGroup",[tne,VB]=Ta(zB,{value:void 0,onValueChange:()=>{}}),qB="MenuRadioItem",HB=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=VB(qB,t.__scopeMenu),s=r===i.value;return p.createElement(EC,{scope:t.__scopeMenu,checked:s},p.createElement(bC,Re({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":Dg(s),onSelect:ke(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),wC="MenuItemIndicator",[EC,WB]=Ta(wC,{checked:!1}),GB=p.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=WB(wC,r);return p.createElement(jo,{present:n||Ch(s.checked)||s.checked===!0},p.createElement(rt.span,Re({},i,{ref:e,"data-state":Dg(s.checked)})))}),KB="MenuSub";Ta(KB);function Ch(t){return t==="indeterminate"}function Dg(t){return Ch(t)?"indeterminate":t?"checked":"unchecked"}function $3(t){return e=>e.pointerType==="mouse"?t(e):void 0}const YB=UB,QB=HB,JB=GB,AC="DropdownMenu",[XB,rne]=Jr(AC,[gC]),Bg=gC();XB(AC);const ZB=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=Bg(r);return p.createElement(YB,Re({},i,n,{ref:e}))}),ej=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=Bg(r);return p.createElement(QB,Re({},i,n,{ref:e}))}),tj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=Bg(r);return p.createElement(JB,Re({},i,n,{ref:e}))}),rj=ZB,nj=ej,SC=tj;var CC="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",kC="_1k2mbvi5";const ij=({children:t})=>J.jsx(SC,{className:kC,children:t});p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(rj,{className:xn(CC,t),...r,ref:n,children:[J.jsx(ij,{children:J.jsx(B8,{size:"xs"})}),J.jsx(Ce,{variant:"small",children:e})]}));p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(nj,{className:xn(CC,t),...r,ref:n,children:[J.jsx(SC,{className:kC,children:J.jsx(Ce,{children:"•"})}),J.jsx(Ce,{variant:"small",children:e})]}));const jg=p.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return J.jsx(pr,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),sj=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var oj="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _1hq71vk0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12np fyvr12gd fyvr121p fyvr1291 fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",aj=ir({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1hq71vk7 _1hq71vk3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1hq71vk8 _1hq71vk4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),lj="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const cj={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4"};p.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:i=!1,id:s,label:o="",labelLocation:a="hidden",name:l,onValueChange:c,placeholder:f="Upload a file",validExtensions:u,...d}=t,v=p.useRef(null),g=sj(v,e),[y,w]=p.useState(null),x=E=>{const P=E.currentTarget.files;if(!P||!P[0])return;const O=P[0],D=O.name,_=O.size/1e3;w({name:D,size:_,extension:D.split(".").pop()??""}),c==null||c(O)},b=u.map(E=>cj[E]).join(",");return J.jsx(Xl,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:J.jsxs(te,{width:"full",minWidth:"0",justifyContent:y?"space-between":"flex-start",gap:"2",color:y?"text100":"text50",className:xn(oj,aj({borderRadius:r})),children:[y?J.jsxs(te,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[J.jsx(Ce,{ellipsis:!0,children:y.name}),J.jsxs(Ce,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[y.size.toFixed(2)," kb"]})]}):J.jsx(Ce,{ellipsis:!0,children:f}),J.jsx(te,{accept:b,as:"input",className:lj,cursor:"pointer",disabled:i,id:s??l,name:l,onChange:x,ref:g,type:"file",...d}),y&&J.jsx(jg,{cursor:"pointer",icon:Ag,size:"xs",onClick:E=>{var P;E.preventDefault(),E.stopPropagation(),(P=v.current)!=null&&P.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})});var fj=ir({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const vp=1e3,El=64,av=El/2,lv=(t,e=vp)=>t%e/(vp/El),Qo=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let i=0,s;i>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},uj=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:Qo(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},dj=(t,e)=>{const r=[];for(let n=0;n{const s=El/10+lv(n.r,vp*1.5/(i+1));return{...uj(n.a,n.b,n.c),x:lv(n.x),y:lv(n.y),r:s}})};p.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=dj(r,i);return J.jsxs(te,{as:"svg",className:xn(e,fj({size:n})),viewBox:`0 0 ${El} ${El}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[J.jsxs("defs",{children:[J.jsx("clipPath",{id:"circle-clip",children:J.jsx("circle",{cx:av,cy:av,r:av})}),J.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[J.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),J.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),J.jsx("feGaussianBlur",{stdDeviation:El/10,result:"effect1_foregroundBlur"})]}),J.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[J.jsx("stop",{offset:"0",stopColor:o[0].c}),J.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>J.jsxs(p.Fragment,{children:[J.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.a}),J.jsx("stop",{offset:"1",stopColor:a.b})]}),J.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.c}),J.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),J.jsxs("g",{clipPath:"url(#circle-clip)",children:[J.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),J.jsx("g",{filter:"url(#blur)",children:o.map(a=>J.jsxs(p.Fragment,{children:[J.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),J.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const hj=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=p.useState(!1),o=a=>{s(!0),r==null||r(a)};return J.jsx(te,{as:bl.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},PC="Dialog",[TC,nne]=Jr(PC),[vj,$o]=TC(PC),yj=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=p.useRef(null),l=p.useRef(null),[c=!1,f]=ma({prop:n,defaultProp:i,onChange:s});return p.createElement(vj,{scope:e,triggerRef:a,contentRef:l,contentId:xo(),titleId:xo(),descriptionId:xo(),open:c,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(u=>!u),[f]),modal:o},r)},RC="DialogPortal",[pj,_C]=TC(RC,{forceMount:void 0}),mj=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=$o(RC,e);return p.createElement(pj,{scope:e,forceMount:r},p.Children.map(n,o=>p.createElement(jo,{present:r||s.open},p.createElement(sC,{asChild:!0,container:i},o))))},yp="DialogOverlay",gj=p.forwardRef((t,e)=>{const r=_C(yp,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=$o(yp,t.__scopeDialog);return s.modal?p.createElement(jo,{present:n||s.open},p.createElement(xj,Re({},i,{ref:e}))):null}),xj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=$o(yp,r);return p.createElement(Lg,{as:Bl,allowPinchZoom:!0,shards:[i.contentRef]},p.createElement(rt.div,Re({"data-state":MC(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),qf="DialogContent",bj=p.forwardRef((t,e)=>{const r=_C(qf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=$o(qf,t.__scopeDialog);return p.createElement(jo,{present:n||s.open},s.modal?p.createElement(wj,Re({},i,{ref:e})):p.createElement(Ej,Re({},i,{ref:e})))}),wj=p.forwardRef((t,e)=>{const r=$o(qf,t.__scopeDialog),n=p.useRef(null),i=jt(e,r.contentRef,n);return p.useEffect(()=>{const s=n.current;if(s)return fC(s)},[]),p.createElement(IC,Re({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:ke(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:ke(t.onFocusOutside,s=>s.preventDefault())}))}),Ej=p.forwardRef((t,e)=>{const r=$o(qf,t.__scopeDialog),n=p.useRef(!1),i=p.useRef(!1);return p.createElement(IC,Re({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o;if((o=t.onCloseAutoFocus)===null||o===void 0||o.call(t,s),!s.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),s.preventDefault()}n.current=!1,i.current=!1},onInteractOutside:s=>{var o,a;(o=t.onInteractOutside)===null||o===void 0||o.call(t,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),IC=p.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=$o(qf,r),l=p.useRef(null),c=jt(e,l);return z8(),p.createElement(p.Fragment,null,p.createElement(V8,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(Pg,Re({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":MC(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),Aj="DialogClose",Sj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=$o(Aj,r);return p.createElement(rt.button,Re({type:"button"},n,{ref:e,onClick:ke(t.onClick,()=>i.onOpenChange(!1))}))});function MC(t){return t?"open":"closed"}const Cj=yj,kj=mj,Pj=gj,Tj=bj,Rj=Sj;var _j=ir({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),Ij=ir({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const Mj=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return J.jsx(te,{className:Ij({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:J.jsx(te,{className:_j({direction:n}),background:"backgroundPrimary",...i,children:e})})};function Oj(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function Nj(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function OC(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=t.constructor();for(var i in t){var s=t[i],o=[...r,i];typeof s=="string"||typeof s=="number"||s==null?n[i]=e(s,o):typeof s=="object"&&!Array.isArray(s)?n[i]=OC(s,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(s)?"Array":typeof s,'"'))}return n}function F3(t,e,r){t.style.setProperty(Oj(e),r)}function U3(t,e,r){if(typeof r=="object"){var n=e;OC(r,(a,l)=>{a!=null&&F3(t,Nj(n,l),String(a))})}else{var i=e;for(var s in i){var o=i[s];o!=null&&F3(t,s,i[s])}}}const $g=["dark","light"],NC="dark",Lj="data-theme",z3="@sequence.theme",Dj=t=>$g.includes(t),Bj=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),LC=t=>t?`${z3}.${t}`:z3,jj=t=>{const e=localStorage.getItem(LC(t));return e&&$g.includes(e)?e:NC},DC=p.createContext(null),$j=t=>{const[e,r]=p.useState(t.theme||NC);p.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),p.useEffect(()=>{t.theme||r(jj(t.scope))},[t.theme,t.scope]),p.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),p.useEffect(()=>{const i=document.querySelector(t.root||":root");i&&(Dj(e)?(i.setAttribute(Lj,e),U3(i,d3,{colors:EN[e]})):Bj(e)&&U3(i,d3,{colors:e}))},[e,t.root]);const n=p.useMemo(()=>({theme:e,root:t.root,setTheme:i=>{$g.includes(i)&&(localStorage.setItem(LC(t.scope),i),r(i))}}),[e,t.root,t.scope]);return J.jsx(DC.Provider,{value:n,children:t.children})},BC=()=>{const t=p.useContext(DC);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var Fj="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Uj="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",zj=ir({defaultClassName:"_5b32m95 _5b32m94 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12ws fyvr12wm fyvr11h0 fyvr11i4 fyvr11hs fyvr11sd fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),Vj="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const qj=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:i=!1,isDismissible:s=!0,onClose:o,scroll:a=!0,size:l="lg",overlayProps:c,contentProps:f}=t,{root:u}=BC(),[d,v]=p.useState(null);return p.useEffect(()=>{v(document.querySelector(u||"body"))},[u]),d?J.jsx(Cj,{modal:!0,defaultOpen:!0,onOpenChange:o,children:J.jsx(kj,{forceMount:!0,container:d,children:J.jsxs(te,{className:Fj,children:[J.jsx(te,{as:Pj,asChild:!0,background:r,className:Uj,forceMount:!0,children:J.jsx(bl.div,{initial:i?!1:{opacity:0},animate:i?!1:{opacity:1},exit:i?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...c},"modal-overlay")}),J.jsx(Tj,{asChild:!0,className:zj({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:g=>{s?o==null||o():g.preventDefault()},onInteractOutside:g=>{s||g.preventDefault()},children:J.jsxs(bl.div,{initial:i?!1:{y:"100%",opacity:l==="sm"?0:1},animate:i?!1:{y:0,opacity:1},exit:i?void 0:{y:"100%",opacity:l==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...f,children:[a?J.jsx(Mj,{children:n}):n,s&&J.jsx(Rj,{asChild:!0,children:J.jsx(jg,{icon:Ag,backdropFilter:"blur",size:"xs",className:Vj,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var Hj="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",Wj=ir({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1acm19y7 _1acm19y3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1acm19y8 _1acm19y4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),Gj=ir({defaultClassName:"_1acm19ya _1acm19y9 fyvr1wg fyvr1yc fyvr1t4 fyvr1v0 fyvr12wp fyvr12wj fyvr11gw fyvr11od fyvr12s1 fyvr12o1 fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]});const Lr=p.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",leftIcon:f,rightIcon:u,name:d,controls:v,type:g="text",numeric:y=!1,...w}=t;return J.jsx(Xl,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:J.jsx(te,{width:"full",children:J.jsxs(te,{className:xn(Hj,Wj({borderRadius:i})),children:[f&&J.jsx(f,{size:"sm"}),J.jsx(te,{as:r,autoComplete:n,spellCheck:"false",className:Gj({numeric:y}),disabled:o,id:a??d,name:d,ref:e,type:g,...w}),u&&J.jsx(u,{size:"sm"}),v]})})})}),Kj=RegExp("^\\d*(?:\\\\[.])?\\d*$");function Yj(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}p.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:i,onBlur:s,...o}=t,a=c=>{let{value:f}=c.target;f=f.replace(/,/g,"."),f.startsWith(".")&&(f="0"+f),f.startsWith("0")&&(f=f.replace(/^0+(?=\d)/,"")),(f===""||Kj.test(Yj(f)))&&(i==null||i({...c,target:{...c.target,value:f}}))},l=c=>{const{value:f}=c.target;let u=f;u.endsWith(".")&&(u=u.slice(0,-1)),u.endsWith(".0")&&(u=u.slice(0,-2)),u==="0"&&(u=""),s==null||s(c),u!==f&&(i==null||i({...c,target:{...c.target,value:u}}))};return J.jsx(Lr,{name:r,onChange:a,onBlur:l,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});ir({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});const jC="Progress",k0=100,[Qj,ine]=Jr(jC),[Jj,sne]=Qj(jC),Xj=p.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=Zj,...o}=t,a=pp(i)?i:k0,l=$C(n,a)?n:null,c=kh(l)?s(l,a):void 0;return p.createElement(Jj,{scope:r,value:l,max:a},p.createElement(rt.div,nr({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":kh(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":e$(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});Xj.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!pp(n)?new Error(t$(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=pp(t.max)?t.max:k0;return n!=null&&!$C(n,s)?new Error(r$(i,r)):null}};function Zj(t,e){return`${Math.round(t/e*100)}%`}function e$(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function kh(t){return typeof t=="number"}function pp(t){return kh(t)&&!isNaN(t)&&t>0}function $C(t,e){return kh(t)&&!isNaN(t)&&t<=e&&t>=0}function t$(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${k0}\`.`}function r$(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${k0} if no \`max\` prop is set) + - \`null\` if the progress is indeterminate. + +Defaulting to \`null\`.`}const FC="Radio",[n$,UC]=Jr(FC),[i$,s$]=n$(FC),o$=p.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=p.useState(null),d=jt(e,y=>u(y)),v=p.useRef(!1),g=f?!!f.closest("form"):!0;return p.createElement(i$,{scope:r,checked:i,disabled:o},p.createElement(rt.button,nr({type:"button",role:"radio","aria-checked":i,"data-state":zC(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:ke(t.onClick,y=>{i||l==null||l(),g&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),g&&p.createElement(c$,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),a$="RadioIndicator",l$=p.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=s$(a$,r);return p.createElement(jo,{present:n||s.checked},p.createElement(rt.span,nr({"data-state":zC(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),c$=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=bg(r),a=wg(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});u.call(l,r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",nr({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function zC(t){return t?"checked":"unchecked"}const f$=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],VC="RadioGroup",[u$,one]=Jr(VC,[rc,UC]),qC=rc(),HC=UC(),[d$,h$]=u$(VC),v$=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:f=!0,onValueChange:u,...d}=t,v=qC(r),g=kg(c),[y,w]=ma({prop:s,defaultProp:i,onChange:u});return p.createElement(d$,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},p.createElement(YD,nr({asChild:!0},v,{orientation:l,dir:g,loop:f}),p.createElement(rt.div,nr({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g},d,{ref:e}))))}),y$="RadioGroupItem",p$=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=h$(y$,r),o=s.disabled||n,a=qC(r),l=HC(r),c=p.useRef(null),f=jt(e,c),u=s.value===i.value,d=p.useRef(!1);return p.useEffect(()=>{const v=y=>{f$.includes(y.key)&&(d.current=!0)},g=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),p.createElement(lC,nr({asChild:!0},a,{focusable:!o,active:u}),p.createElement(o$,nr({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:ke(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:ke(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),m$=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=HC(r);return p.createElement(l$,nr({},i,n,{ref:e}))}),g$=v$,x$=p$,b$=m$;var w$=ir({defaultClassName:"io59uy3 io59uy0 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1so fyvr1uk fyvr1wg fyvr1yc fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11od fyvr12v7 fyvr12v3 fyvr12vz fyvr12vr _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 io59uy2 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]}),E$=ir({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const A$=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return J.jsx(te,{alignItems:"center",children:J.jsx(Xl,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:J.jsx(x$,{className:w$({size:n}),value:i,id:e,disabled:s,children:J.jsx(b$,{className:E$({size:n})})})})})};p.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return J.jsx(g$,{disabled:n,name:s,ref:e,...l,children:J.jsx(te,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>J.jsx(A$,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function V3(t,[e,r]){return Math.min(r,Math.max(e,t))}const WC=p.forwardRef((t,e)=>p.createElement(rt.span,Re({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}))),S$=[" ","Enter","ArrowUp","ArrowDown"],C$=[" ","Enter"],P0="Select",[T0,Fg,k$]=w0(P0),[nc,ane]=Jr(P0,[k$,tc]),Ug=tc(),[P$,Ra]=nc(P0),[T$,R$]=nc(P0),_$=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:i,onOpenChange:s,value:o,defaultValue:a,onValueChange:l,dir:c,name:f,autoComplete:u,disabled:d,required:v}=t,g=Ug(e),[y,w]=p.useState(null),[x,b]=p.useState(null),[E,P]=p.useState(!1),O=kg(c),[D=!1,_]=ma({prop:n,defaultProp:i,onChange:s}),[L,z]=ma({prop:o,defaultProp:a,onChange:l}),H=p.useRef(null),G=y?!!y.closest("form"):!0,[X,M]=p.useState(new Set),h=Array.from(X).map(S=>S.props.value).join(";");return p.createElement(OD,g,p.createElement(P$,{required:v,scope:e,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:E,onValueNodeHasChildrenChange:P,contentId:xo(),value:L,onValueChange:z,open:D,onOpenChange:_,dir:O,triggerPointerDownPosRef:H,disabled:d},p.createElement(T0.Provider,{scope:e},p.createElement(T$,{scope:t.__scopeSelect,onNativeOptionAdd:p.useCallback(S=>{M(k=>new Set(k).add(S))},[]),onNativeOptionRemove:p.useCallback(S=>{M(k=>{const I=new Set(k);return I.delete(S),I})},[])},r)),G?p.createElement(YC,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:L,onChange:S=>z(S.target.value),disabled:d},L===void 0?p.createElement("option",{value:""}):null,Array.from(X)):null))},I$="SelectTrigger",M$=p.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=Ug(r),o=Ra(I$,r),a=o.disabled||n,l=jt(e,o.onTriggerChange),c=Fg(r),[f,u,d]=QC(g=>{const y=c().filter(b=>!b.disabled),w=y.find(b=>b.value===o.value),x=JC(y,g,w);x!==void 0&&o.onValueChange(x.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return p.createElement(ND,Re({asChild:!0},s),p.createElement(rt.button,Re({type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":KC(o.value)?"":void 0},i,{ref:l,onClick:ke(i.onClick,g=>{g.currentTarget.focus()}),onPointerDown:ke(i.onPointerDown,g=>{const y=g.target;y.hasPointerCapture(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:ke(i.onKeyDown,g=>{const y=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&u(g.key),!(y&&g.key===" ")&&S$.includes(g.key)&&(v(),g.preventDefault())})})))}),O$="SelectValue",N$=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o="",...a}=t,l=Ra(O$,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=jt(e,l.onValueNodeChange);return Nn(()=>{c(f)},[c,f]),p.createElement(rt.span,Re({},a,{ref:u,style:{pointerEvents:"none"}}),KC(l.value)?p.createElement(p.Fragment,null,o):s)}),L$=p.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return p.createElement(rt.span,Re({"aria-hidden":!0},i,{ref:e}),n||"▼")}),$l="SelectContent",D$=p.forwardRef((t,e)=>{const r=Ra($l,t.__scopeSelect),[n,i]=p.useState();if(Nn(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?js.createPortal(p.createElement(GC,{scope:t.__scopeSelect},p.createElement(T0.Slot,{scope:t.__scopeSelect},p.createElement("div",null,t.children))),s):null}return p.createElement(B$,Re({},t,{ref:e}))}),hs=10,[GC,R0]=nc($l),B$=p.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w,...x}=t,b=Ra($l,r),[E,P]=p.useState(null),[O,D]=p.useState(null),_=jt(e,V=>P(V)),[L,z]=p.useState(null),[H,G]=p.useState(null),X=Fg(r),[M,h]=p.useState(!1),S=p.useRef(!1);p.useEffect(()=>{if(E)return fC(E)},[E]),z8();const k=p.useCallback(V=>{const[q,...Y]=X().map(ne=>ne.ref.current),[ae]=Y.slice(-1),re=document.activeElement;for(const ne of V)if(ne===re||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===q&&O&&(O.scrollTop=0),ne===ae&&O&&(O.scrollTop=O.scrollHeight),ne==null||ne.focus(),document.activeElement!==re))return},[X,O]),I=p.useCallback(()=>k([L,E]),[k,L,E]);p.useEffect(()=>{M&&I()},[M,I]);const{onOpenChange:T,triggerPointerDownPosRef:N}=b;p.useEffect(()=>{if(E){let V={x:0,y:0};const q=ae=>{var re,ne,Me,de;V={x:Math.abs(Math.round(ae.pageX)-((re=(ne=N.current)===null||ne===void 0?void 0:ne.x)!==null&&re!==void 0?re:0)),y:Math.abs(Math.round(ae.pageY)-((Me=(de=N.current)===null||de===void 0?void 0:de.y)!==null&&Me!==void 0?Me:0))}},Y=ae=>{V.x<=10&&V.y<=10?ae.preventDefault():E.contains(ae.target)||T(!1),document.removeEventListener("pointermove",q),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",Y,{capture:!0})}}},[E,T,N]),p.useEffect(()=>{const V=()=>T(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[T]);const[j,C]=QC(V=>{const q=X().filter(re=>!re.disabled),Y=q.find(re=>re.ref.current===document.activeElement),ae=JC(q,V,Y);ae&&setTimeout(()=>ae.ref.current.focus())}),m=p.useCallback((V,q,Y)=>{const ae=!S.current&&!Y;(b.value!==void 0&&b.value===q||ae)&&(z(V),ae&&(S.current=!0))},[b.value]),R=p.useCallback(()=>E==null?void 0:E.focus(),[E]),F=p.useCallback((V,q,Y)=>{const ae=!S.current&&!Y;(b.value!==void 0&&b.value===q||ae)&&G(V)},[b.value]),A=n==="popper"?q3:j$,$=A===q3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w}:{};return p.createElement(GC,{scope:r,content:E,viewport:O,onViewportChange:D,itemRefCallback:m,selectedItem:L,onItemLeave:R,itemTextRefCallback:F,focusSelectedItem:I,selectedItemText:H,position:n,isPositioned:M,searchRef:j},p.createElement(Lg,{as:Bl,allowPinchZoom:!0},p.createElement(V8,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:ke(i,V=>{var q;(q=b.trigger)===null||q===void 0||q.focus({preventScroll:!0}),V.preventDefault()})},p.createElement(Pg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},p.createElement(A,Re({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault()},x,$,{onPlaced:()=>h(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:ke(x.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&C(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let ae=X().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(V.key)&&(ae=ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const re=V.target,ne=ae.indexOf(re);ae=ae.slice(ne+1)}setTimeout(()=>k(ae)),V.preventDefault()}})}))))))}),j$=p.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=Ra($l,r),o=R0($l,r),[a,l]=p.useState(null),[c,f]=p.useState(null),u=jt(e,_=>f(_)),d=Fg(r),v=p.useRef(!1),g=p.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=o,E=p.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&x){const _=s.trigger.getBoundingClientRect(),L=c.getBoundingClientRect(),z=s.valueNode.getBoundingClientRect(),H=x.getBoundingClientRect();if(s.dir!=="rtl"){const re=H.left-L.left,ne=z.left-re,Me=_.left-ne,de=_.width+Me,Ee=Math.max(de,L.width),Qt=window.innerWidth-hs,We=V3(ne,[hs,Qt-Ee]);a.style.minWidth=de+"px",a.style.left=We+"px"}else{const re=L.right-H.right,ne=window.innerWidth-z.right-re,Me=window.innerWidth-_.right-ne,de=_.width+Me,Ee=Math.max(de,L.width),Qt=window.innerWidth-hs,We=V3(ne,[hs,Qt-Ee]);a.style.minWidth=de+"px",a.style.right=We+"px"}const G=d(),X=window.innerHeight-hs*2,M=y.scrollHeight,h=window.getComputedStyle(c),S=parseInt(h.borderTopWidth,10),k=parseInt(h.paddingTop,10),I=parseInt(h.borderBottomWidth,10),T=parseInt(h.paddingBottom,10),N=S+k+M+T+I,j=Math.min(w.offsetHeight*5,N),C=window.getComputedStyle(y),m=parseInt(C.paddingTop,10),R=parseInt(C.paddingBottom,10),F=_.top+_.height/2-hs,A=X-F,$=w.offsetHeight/2,V=w.offsetTop+$,q=S+k+V,Y=N-q;if(q<=F){const re=w===G[G.length-1].ref.current;a.style.bottom="0px";const ne=c.clientHeight-y.offsetTop-y.offsetHeight,Me=Math.max(A,$+(re?R:0)+ne+I),de=q+Me;a.style.height=de+"px"}else{const re=w===G[0].ref.current;a.style.top="0px";const Me=Math.max(F,S+y.offsetTop+(re?m:0)+$)+Y;a.style.height=Me+"px",y.scrollTop=q-F+y.offsetTop}a.style.margin=`${hs}px 0`,a.style.minHeight=j+"px",a.style.maxHeight=X+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,x,s.dir,n]);Nn(()=>E(),[E]);const[P,O]=p.useState();Nn(()=>{c&&O(window.getComputedStyle(c).zIndex)},[c]);const D=p.useCallback(_=>{_&&g.current===!0&&(E(),b==null||b(),g.current=!1)},[E,b]);return p.createElement($$,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:D},p.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P}},p.createElement(rt.div,Re({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),q3=p.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=hs,...s}=t,o=Ug(r);return p.createElement(LD,Re({},o,s,{ref:e,align:n,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[$$,F$]=nc($l,{}),H3="SelectViewport",U$=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=R0(H3,r),s=F$(H3,r),o=jt(e,i.onViewportChange),a=p.useRef(0);return p.createElement(p.Fragment,null,p.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),p.createElement(T0.Slot,{scope:r},p.createElement(rt.div,Re({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:ke(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=s;if(u!=null&&u.current&&f){const d=Math.abs(a.current-c.scrollTop);if(d>0){const v=window.innerHeight-hs*2,g=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(g,y);if(w0?E:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),z$="SelectGroup",[V$,lne]=nc(z$),q$=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=xo();return p.createElement(V$,{scope:r,id:i},p.createElement(rt.div,Re({role:"group","aria-labelledby":i},n,{ref:e})))}),mp="SelectItem",[H$,W$]=nc(mp),G$=p.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=Ra(mp,r),l=R0(mp,r),c=a.value===n,[f,u]=p.useState(s??""),[d,v]=p.useState(!1),g=jt(e,x=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,x,n,i)}),y=xo(),w=()=>{i||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.createElement(H$,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:p.useCallback(x=>{u(b=>{var E;return b||((E=x==null?void 0:x.textContent)!==null&&E!==void 0?E:"").trim()})},[])},p.createElement(T0.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},p.createElement(rt.div,Re({role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},o,{ref:g,onFocus:ke(o.onFocus,()=>v(!0)),onBlur:ke(o.onBlur,()=>v(!1)),onPointerUp:ke(o.onPointerUp,w),onPointerMove:ke(o.onPointerMove,x=>{if(i){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(o.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:ke(o.onKeyDown,x=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&x.key===" "||(C$.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})}))))}),ed="SelectItemText",K$=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=Ra(ed,r),a=R0(ed,r),l=W$(ed,r),c=R$(ed,r),[f,u]=p.useState(null),d=jt(e,x=>u(x),l.onItemTextChange,x=>{var b;return(b=a.itemTextRefCallback)===null||b===void 0?void 0:b.call(a,x,l.value,l.disabled)}),v=f==null?void 0:f.textContent,g=p.useMemo(()=>p.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return Nn(()=>(y(g),()=>w(g)),[y,w,g]),p.createElement(p.Fragment,null,p.createElement(rt.span,Re({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?js.createPortal(s.children,o.valueNode):null)});function KC(t){return t===""||t===void 0}const YC=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=p.useRef(null),s=jt(e,i),o=bg(r);return p.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==r&&f){const u=new Event("change",{bubbles:!0});f.call(a,r),a.dispatchEvent(u)}},[o,r]),p.createElement(WC,{asChild:!0},p.createElement("select",Re({},n,{ref:s,defaultValue:r})))});YC.displayName="BubbleSelect";function QC(t){const e=ri(t),r=p.useRef(""),n=p.useRef(0),i=p.useCallback(o=>{const a=r.current+o;e(a),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),s=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function JC(t,e,r){const i=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=r?t.indexOf(r):-1;let o=Y$(t,Math.max(s,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function Y$(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const Q$=_$,J$=M$,X$=N$,Z$=L$,eF=D$,tF=U$,rF=q$,nF=G$,iF=K$;var sF="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",oF=ir({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"gohwum7 gohwum3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"gohwum8 gohwum4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),aF="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",lF="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwumd fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12ws fyvr12wt fyvr12wm fyvr12wn fyvr11h0 fyvr11jw fyvr11ko fyvr12v7 fyvr12v3 fyvr12s1 fyvr12w1 fyvr12vr";const cF=p.forwardRef(({children:t,className:e,...r},n)=>J.jsx(nF,{className:xn(lF,e),...r,ref:n,children:J.jsx(iF,{children:t})})),_0=p.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:i,label:s="",description:o,labelLocation:a="hidden",name:l,options:c,placeholder:f,...u}=t;return J.jsx(Xl,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:J.jsxs(Q$,{disabled:n,name:l,...u,children:[J.jsxs(J$,{id:i??l,className:xn(sF,oF({borderRadius:r})),ref:e,children:[J.jsx(X$,{placeholder:f}),J.jsx(te,{as:Z$,display:"inline-flex",children:J.jsx(j8,{})})]}),J.jsx(eF,{className:aF,children:J.jsx(tF,{children:J.jsx(rF,{children:c.map(({value:d,label:v,...g})=>J.jsx(cF,{value:d,...g,children:v},d))})})})]})})});p.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?J.jsx(jg,{icon:Ag,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return J.jsx(Lr,{ref:e,name:s,leftIcon:lL,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var fF=ir({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const Pi=p.forwardRef((t,e)=>{const{size:r="md",...n}=t;return J.jsx(te,{className:fF({size:r}),color:"text50",ref:e,...n,children:J.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[J.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),J.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});p.forwardRef(({children:t},e)=>J.jsx(te,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));const XC="Switch",[uF,cne]=Jr(XC);uF(XC);ir({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11g0"},active:{true:"nwwh3zb nwwh3z2 fyvr12w5",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12vp"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11u7 fyvr12sj"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11od fyvr12s7"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12s1"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12s7"]]});const ZC="Tabs",[dF,fne]=Jr(ZC,[rc]);rc();dF(ZC);var hF="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";p.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return J.jsxs(te,{className:hF,ref:e,background:"buttonGlass",color:"text80",...i,children:[r&&J.jsx(r,{size:"xs"}),J.jsx(Ce,{children:n})]})});const vF="ToastProvider",[yF,une,pF]=w0("Toast"),[e7,dne]=Jr("Toast",[pF]),[hne,t7]=e7(vF),W3="toast.viewportPause",G3="toast.viewportResume",I0="Toast",mF="toast.swipeStart",gF="toast.swipeMove",xF="toast.swipeCancel",bF="toast.swipeEnd",[wF,EF]=e7(I0,{onClose(){}}),AF=p.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:f,onSwipeMove:u,onSwipeCancel:d,onSwipeEnd:v,...g}=t,y=t7(I0,r),[w,x]=p.useState(null),b=jt(e,h=>x(h)),E=p.useRef(null),P=p.useRef(null),O=i||y.duration,D=p.useRef(0),_=p.useRef(O),L=p.useRef(0),{onToastAdd:z,onToastRemove:H}=y,G=ri(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),X=p.useCallback(h=>{!h||h===1/0||(window.clearTimeout(L.current),D.current=new Date().getTime(),L.current=window.setTimeout(G,h))},[G]);p.useEffect(()=>{const h=y.viewport;if(h){const S=()=>{X(_.current),c==null||c()},k=()=>{const I=new Date().getTime()-D.current;_.current=_.current-I,window.clearTimeout(L.current),l==null||l()};return h.addEventListener(W3,k),h.addEventListener(G3,S),()=>{h.removeEventListener(W3,k),h.removeEventListener(G3,S)}}},[y.viewport,O,l,c,X]),p.useEffect(()=>{s&&!y.isClosePausedRef.current&&X(O)},[s,O,y.isClosePausedRef,X]),p.useEffect(()=>(z(),()=>H()),[z,H]);const M=p.useMemo(()=>w?n7(w):null,[w]);return y.viewport?p.createElement(p.Fragment,null,M&&p.createElement(SF,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},M),p.createElement(wF,{scope:r,onClose:G},js.createPortal(p.createElement(yF.ItemSlot,{scope:r},p.createElement(LL,{asChild:!0,onEscapeKeyDown:ke(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||G(),y.isFocusedToastEscapeKeyDownRef.current=!1})},p.createElement(rt.li,Re({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},g,{ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ke(t.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,G()))}),onPointerDown:ke(t.onPointerDown,h=>{h.button===0&&(E.current={x:h.clientX,y:h.clientY})}),onPointerMove:ke(t.onPointerMove,h=>{if(!E.current)return;const S=h.clientX-E.current.x,k=h.clientY-E.current.y,I=!!P.current,T=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,j=T?N(0,S):0,C=T?0:N(0,k),m=h.pointerType==="touch"?10:2,R={x:j,y:C},F={originalEvent:h,delta:R};I?(P.current=R,td(gF,u,F,{discrete:!1})):K3(R,y.swipeDirection,m)?(P.current=R,td(mF,f,F,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(S)>m||Math.abs(k)>m)&&(E.current=null)}),onPointerUp:ke(t.onPointerUp,h=>{const S=P.current,k=h.target;if(k.hasPointerCapture(h.pointerId)&&k.releasePointerCapture(h.pointerId),P.current=null,E.current=null,S){const I=h.currentTarget,T={originalEvent:h,delta:S};K3(S,y.swipeDirection,y.swipeThreshold)?td(bF,v,T,{discrete:!0}):td(xF,d,T,{discrete:!0}),I.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});AF.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${I0}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const SF=t=>{const{__scopeToast:e,children:r,...n}=t,i=t7(I0,e),[s,o]=p.useState(!1),[a,l]=p.useState(!1);return RF(()=>o(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.createElement(sC,{asChild:!0},p.createElement(WC,n,s&&p.createElement(p.Fragment,null,i.label," ",r)))},CF="ToastAction",kF=p.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?p.createElement(r7,{altText:r,asChild:!0},p.createElement(TF,Re({},n,{ref:e}))):null});kF.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${CF}\``)}};const PF="ToastClose",TF=p.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=EF(PF,r);return p.createElement(r7,{asChild:!0},p.createElement(rt.button,Re({type:"button"},n,{ref:e,onClick:ke(t.onClick,i.onClose)})))}),r7=p.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return p.createElement(rt.div,Re({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function n7(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),_F(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...n7(n))}}),e}function td(t,e,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?Eg(i,s):i.dispatchEvent(s)}const K3=(t,e,r=0)=>{const n=Math.abs(t.x),i=Math.abs(t.y),s=n>i;return e==="left"||e==="right"?s&&n>r:!s&&i>r};function RF(t=()=>{}){const e=ri(t);Nn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function _F(t){return t.nodeType===t.ELEMENT_NODE}ir({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});p.createContext(null);var IF="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _15pztn0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr12s1 fyvr12o1 fyvr12wj fyvr128 fyvr11h0",MF="_15pztn2";p.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",name:f,rows:u,resize:d=!1,...v}=t;return J.jsx(Xl,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:J.jsx(te,{as:r,autoComplete:n,spellCheck:"false",className:xn(IF,d&&MF),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...v})})});var OF=ir({defaultClassName:"bnrreb5 bnrreb0 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9",xl:"bnrreba"},borderRadius:{circle:"bnrrebb bnrreb1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"bnrrebc bnrreb2 fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"bnrrebd bnrreb3 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"bnrrebe bnrreb4 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]}),NF="bnrrebf",LF="bnrrebh bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const DF=p.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return J.jsx(te,{className:xn(r,OF({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?J.jsx(hj,{className:NF,disableAnimation:n,src:s}):J.jsx(Ce,{className:LF,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})}),[M0,vne]=Jr("Tooltip",[tc]);tc();const BF="TooltipProvider";M0(BF);const i7="Tooltip";M0(i7);const jF="TooltipPortal";M0(jF,{forceMount:void 0});M0(i7,{isInside:!1});/** + * @remix-run/router v1.16.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ht(){return Ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function xa(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function FF(){return Math.random().toString(36).substr(2,8)}function Q3(t,e){return{usr:t.state,key:t.key,idx:e}}function Hf(t,e,r,n){return r===void 0&&(r=null),Ht({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?os(e):e,{state:r,key:e&&e.key||n||FF()})}function yu(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function os(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function UF(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=lr.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(Ht({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=lr.Pop;let w=f(),x=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:x})}function d(w,x){a=lr.Push;let b=Hf(y.location,w,x);r&&r(b,w),c=f()+1;let E=Q3(b,c),P=y.createHref(b);try{o.pushState(E,"",P)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(P)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,x){a=lr.Replace;let b=Hf(y.location,w,x);r&&r(b,w),c=f();let E=Q3(b,c),P=y.createHref(b);o.replaceState(E,"",P),s&&l&&l({action:a,location:y.location,delta:0})}function g(w){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof w=="string"?w:yu(w);return b=b.replace(/ $/,"%20"),Ue(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let y={get action(){return a},get location(){return t(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Y3,u),l=w,()=>{i.removeEventListener(Y3,u),l=null}},createHref(w){return e(i,w)},createURL:g,encodeLocation(w){let x=g(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var Ft;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ft||(Ft={}));const zF=new Set(["lazy","caseSensitive","path","id","index","children"]);function VF(t){return t.index===!0}function gp(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,s)=>{let o=[...r,s],a=typeof i.id=="string"?i.id:o.join("-");if(Ue(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ue(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),VF(i)){let l=Ht({},i,e(i),{id:a});return n[a]=l,l}else{let l=Ht({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=gp(i.children,e,o,n)),l}})}function fl(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?os(e):e,i=pu(n.pathname||"/",r);if(i==null)return null;let s=s7(t);HF(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ue(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=la([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(Ue(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),s7(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:XF(c,s.index),routesMeta:f})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of o7(s.path))i(s,o,l)}),e}function o7(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=o7(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function HF(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:ZF(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const WF=/^:[\w-]+$/,GF=3,KF=2,YF=1,QF=10,JF=-2,J3=t=>t==="*";function XF(t,e){let r=t.split("/"),n=r.length;return r.some(J3)&&(n+=JF),e&&(n+=KF),r.filter(i=>!J3(i)).reduce((i,s)=>i+(WF.test(s)?GF:s===""?YF:QF),n)}function ZF(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function eU(t,e){let{routesMeta:r}=t,n={},i="/",s=[];for(let o=0;o{let{paramName:d,isOptional:v}=f;if(d==="*"){let y=a[u]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const g=a[u];return v&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:t}}function rU(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),xa(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function nU(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return xa(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function pu(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function iU(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?os(t):t;return{pathname:r?r.startsWith("/")?r:sU(r,e):e,search:cU(n),hash:fU(i)}}function sU(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function cv(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function a7(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function oU(t,e){let r=a7(t);return e?r.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function aU(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=os(t):(i=Ht({},t),Ue(!i.pathname||!i.pathname.includes("?"),cv("?","pathname","search",i)),Ue(!i.pathname||!i.pathname.includes("#"),cv("#","pathname","hash",i)),Ue(!i.search||!i.search.includes("#"),cv("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let u=e.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?e[u]:"/"}let l=iU(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const la=t=>t.join("/").replace(/\/\/+/g,"/"),lU=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),cU=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,fU=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class zg{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Vg(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const l7=["post","put","patch","delete"],uU=new Set(l7),dU=["get",...l7],hU=new Set(dU),vU=new Set([301,302,303,307,308]),yU=new Set([307,308]),fv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Sc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},qg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mU=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),c7="remix-router-transitions";function gU(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;Ue(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let U=t.detectErrorBoundary;i=K=>({hasErrorBoundary:U(K)})}else i=mU;let s={},o=gp(t.routes,i,void 0,s),a,l=t.basename||"/",c=t.unstable_dataStrategy||EU,f=Ht({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},t.future),u=null,d=new Set,v=null,g=null,y=null,w=t.hydrationData!=null,x=fl(o,t.history.location,l),b=null;if(x==null){let U=Gn(404,{pathname:t.history.location.pathname}),{matches:K,route:Q}=aE(o);x=K,b={[Q.id]:U}}let E,P=x.some(U=>U.route.lazy),O=x.some(U=>U.route.loader);if(P)E=!1;else if(!O)E=!0;else if(f.v7_partialHydration){let U=t.hydrationData?t.hydrationData.loaderData:null,K=t.hydrationData?t.hydrationData.errors:null,Q=se=>se.route.loader?typeof se.route.loader=="function"&&se.route.loader.hydrate===!0?!1:U&&U[se.route.id]!==void 0||K&&K[se.route.id]!==void 0:!0;if(K){let se=x.findIndex(ve=>K[ve.route.id]!==void 0);E=x.slice(0,se+1).every(Q)}else E=x.every(Q)}else E=t.hydrationData!=null;let D,_={historyAction:t.history.action,location:t.history.location,matches:x,initialized:E,navigation:fv,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||b,fetchers:new Map,blockers:new Map},L=lr.Pop,z=!1,H,G=!1,X=new Map,M=null,h=!1,S=!1,k=[],I=[],T=new Map,N=0,j=-1,C=new Map,m=new Set,R=new Map,F=new Map,A=new Set,$=new Map,V=new Map,q=!1;function Y(){if(u=t.history.listen(U=>{let{action:K,location:Q,delta:se}=U;if(q){q=!1;return}xa(V.size===0||se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ve=bt({currentLocation:_.location,nextLocation:Q,historyAction:K});if(ve&&se!=null){q=!0,t.history.go(se*-1),zn(ve,{state:"blocked",location:Q,proceed(){zn(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),t.history.go(se)},reset(){let ge=new Map(_.blockers);ge.set(ve,Sc),ne({blockers:ge})}});return}return Qt(K,Q)}),r){NU(e,X);let U=()=>LU(e,X);e.addEventListener("pagehide",U),M=()=>e.removeEventListener("pagehide",U)}return _.initialized||Qt(lr.Pop,_.location,{initialHydration:!0}),D}function ae(){u&&u(),M&&M(),d.clear(),H&&H.abort(),_.fetchers.forEach((U,K)=>lt(K)),_.blockers.forEach((U,K)=>xt(K))}function re(U){return d.add(U),()=>d.delete(U)}function ne(U,K){K===void 0&&(K={}),_=Ht({},_,U);let Q=[],se=[];f.v7_fetcherPersist&&_.fetchers.forEach((ve,ge)=>{ve.state==="idle"&&(A.has(ge)?se.push(ge):Q.push(ge))}),[...d].forEach(ve=>ve(_,{deletedFetchers:se,unstable_viewTransitionOpts:K.viewTransitionOpts,unstable_flushSync:K.flushSync===!0})),f.v7_fetcherPersist&&(Q.forEach(ve=>_.fetchers.delete(ve)),se.forEach(ve=>lt(ve)))}function Me(U,K,Q){var se,ve;let{flushSync:ge}=Q===void 0?{}:Q,he=_.actionData!=null&&_.navigation.formMethod!=null&&gi(_.navigation.formMethod)&&_.navigation.state==="loading"&&((se=U.state)==null?void 0:se._isRedirect)!==!0,pe;K.actionData?Object.keys(K.actionData).length>0?pe=K.actionData:pe=null:he?pe=_.actionData:pe=null;let xe=K.loaderData?sE(_.loaderData,K.loaderData,K.matches||[],K.errors):_.loaderData,me=_.blockers;me.size>0&&(me=new Map(me),me.forEach((ye,Xe)=>me.set(Xe,Sc)));let Lt=z===!0||_.navigation.formMethod!=null&&gi(_.navigation.formMethod)&&((ve=U.state)==null?void 0:ve._isRedirect)!==!0;a&&(o=a,a=void 0),h||L===lr.Pop||(L===lr.Push?t.history.push(U,U.state):L===lr.Replace&&t.history.replace(U,U.state));let Oe;if(L===lr.Pop){let ye=X.get(_.location.pathname);ye&&ye.has(U.pathname)?Oe={currentLocation:_.location,nextLocation:U}:X.has(U.pathname)&&(Oe={currentLocation:U,nextLocation:_.location})}else if(G){let ye=X.get(_.location.pathname);ye?ye.add(U.pathname):(ye=new Set([U.pathname]),X.set(_.location.pathname,ye)),Oe={currentLocation:_.location,nextLocation:U}}ne(Ht({},K,{actionData:pe,loaderData:xe,historyAction:L,location:U,initialized:!0,navigation:fv,revalidation:"idle",restoreScrollPosition:Ii(U,K.matches||_.matches),preventScrollReset:Lt,blockers:me}),{viewTransitionOpts:Oe,flushSync:ge===!0}),L=lr.Pop,z=!1,G=!1,h=!1,S=!1,k=[],I=[]}async function de(U,K){if(typeof U=="number"){t.history.go(U);return}let Q=xp(_.location,_.matches,l,f.v7_prependBasename,U,f.v7_relativeSplatPath,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:se,submission:ve,error:ge}=X3(f.v7_normalizeFormMethod,!1,Q,K),he=_.location,pe=Hf(_.location,se,K&&K.state);pe=Ht({},pe,t.history.encodeLocation(pe));let xe=K&&K.replace!=null?K.replace:void 0,me=lr.Push;xe===!0?me=lr.Replace:xe===!1||ve!=null&&gi(ve.formMethod)&&ve.formAction===_.location.pathname+_.location.search&&(me=lr.Replace);let Lt=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,Oe=(K&&K.unstable_flushSync)===!0,ye=bt({currentLocation:he,nextLocation:pe,historyAction:me});if(ye){zn(ye,{state:"blocked",location:pe,proceed(){zn(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),de(U,K)},reset(){let Xe=new Map(_.blockers);Xe.set(ye,Sc),ne({blockers:Xe})}});return}return await Qt(me,pe,{submission:ve,pendingError:ge,preventScrollReset:Lt,replace:K&&K.replace,enableViewTransition:K&&K.unstable_viewTransition,flushSync:Oe})}function Ee(){if(li(),ne({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){Qt(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}Qt(L||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function Qt(U,K,Q){H&&H.abort(),H=null,L=U,h=(Q&&Q.startUninterruptedRevalidation)===!0,Ct(_.location,_.matches),z=(Q&&Q.preventScrollReset)===!0,G=(Q&&Q.enableViewTransition)===!0;let se=a||o,ve=Q&&Q.overrideNavigation,ge=fl(se,K,l),he=(Q&&Q.flushSync)===!0;if(!ge){let ye=Gn(404,{pathname:K.pathname}),{matches:Xe,route:Pe}=aE(se);dt(),Me(K,{matches:Xe,loaderData:{},errors:{[Pe.id]:ye}},{flushSync:he});return}if(_.initialized&&!S&&TU(_.location,K)&&!(Q&&Q.submission&&gi(Q.submission.formMethod))){Me(K,{matches:ge},{flushSync:he});return}H=new AbortController;let pe=Fa(t.history,K,H.signal,Q&&Q.submission),xe;if(Q&&Q.pendingError)xe=[df(ge).route.id,{type:Ft.error,error:Q.pendingError}];else if(Q&&Q.submission&&gi(Q.submission.formMethod)){let ye=await We(pe,K,Q.submission,ge,{replace:Q.replace,flushSync:he});if(ye.shortCircuited)return;xe=ye.pendingActionResult,ve=uv(K,Q.submission),he=!1,pe=Fa(t.history,pe.url,pe.signal)}let{shortCircuited:me,loaderData:Lt,errors:Oe}=await ft(pe,K,ge,ve,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Q&&Q.initialHydration===!0,he,xe);me||(H=null,Me(K,Ht({matches:ge},oE(xe),{loaderData:Lt,errors:Oe})))}async function We(U,K,Q,se,ve){ve===void 0&&(ve={}),li();let ge=MU(K,Q);ne({navigation:ge},{flushSync:ve.flushSync===!0});let he,pe=wp(se,K);if(!pe.route.action&&!pe.route.lazy)he={type:Ft.error,error:Gn(405,{method:U.method,pathname:K.pathname,routeId:pe.route.id})};else if(he=(await nt("action",U,[pe],se))[0],U.signal.aborted)return{shortCircuited:!0};if(na(he)){let xe;return ve&&ve.replace!=null?xe=ve.replace:xe=rE(he.response.headers.get("Location"),new URL(U.url),l)===_.location.pathname+_.location.search,await bn(U,he,{submission:Q,replace:xe}),{shortCircuited:!0}}if(ra(he))throw Gn(400,{type:"defer-action"});if(Jn(he)){let xe=df(se,pe.route.id);return(ve&&ve.replace)!==!0&&(L=lr.Push),{pendingActionResult:[xe.route.id,he]}}return{pendingActionResult:[pe.route.id,he]}}async function ft(U,K,Q,se,ve,ge,he,pe,xe,me){let Lt=se||uv(K,ve),Oe=ve||ge||fE(Lt),ye=a||o,[Xe,Pe]=Z3(t.history,_,Q,Oe,K,f.v7_partialHydration&&pe===!0,f.unstable_skipActionErrorRevalidation,S,k,I,A,R,m,ye,l,me);if(dt(De=>!(Q&&Q.some(xr=>xr.route.id===De))||Xe&&Xe.some(xr=>xr.route.id===De)),j=++N,Xe.length===0&&Pe.length===0){let De=gt();return Me(K,Ht({matches:Q,loaderData:{},errors:me&&Jn(me[1])?{[me[0]]:me[1].error}:null},oE(me),De?{fetchers:new Map(_.fetchers)}:{}),{flushSync:xe}),{shortCircuited:!0}}if(!h&&(!f.v7_partialHydration||!pe)){Pe.forEach(xr=>{let Ur=_.fetchers.get(xr.key),sr=Cc(void 0,Ur?Ur.data:void 0);_.fetchers.set(xr.key,sr)});let De;me&&!Jn(me[1])?De={[me[0]]:me[1].data}:_.actionData&&(Object.keys(_.actionData).length===0?De=null:De=_.actionData),ne(Ht({navigation:Lt},De!==void 0?{actionData:De}:{},Pe.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:xe})}Pe.forEach(De=>{T.has(De.key)&&$r(De.key),De.controller&&T.set(De.key,De.controller)});let st=()=>Pe.forEach(De=>$r(De.key));H&&H.signal.addEventListener("abort",st);let{loaderResults:Fr,fetcherResults:Ze}=await pt(_.matches,Q,Xe,Pe,U);if(U.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",st),Pe.forEach(De=>T.delete(De.key));let et=lE([...Fr,...Ze]);if(et){if(et.idx>=Xe.length){let De=Pe[et.idx-Xe.length].key;m.add(De)}return await bn(U,et.result,{replace:he}),{shortCircuited:!0}}let{loaderData:Xr,errors:gr}=iE(_,Q,Xe,Fr,me,Pe,Ze,$);$.forEach((De,xr)=>{De.subscribe(Ur=>{(Ur||De.done)&&$.delete(xr)})}),f.v7_partialHydration&&pe&&_.errors&&Object.entries(_.errors).filter(De=>{let[xr]=De;return!Xe.some(Ur=>Ur.route.id===xr)}).forEach(De=>{let[xr,Ur]=De;gr=Object.assign(gr||{},{[xr]:Ur})});let wn=gt(),En=_i(j),An=wn||En||Pe.length>0;return Ht({loaderData:Xr,errors:gr},An?{fetchers:new Map(_.fetchers)}:{})}function ai(U,K,Q,se){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(U)&&$r(U);let ve=(se&&se.unstable_flushSync)===!0,ge=a||o,he=xp(_.location,_.matches,l,f.v7_prependBasename,Q,f.v7_relativeSplatPath,K,se==null?void 0:se.relative),pe=fl(ge,he,l);if(!pe){it(U,K,Gn(404,{pathname:he}),{flushSync:ve});return}let{path:xe,submission:me,error:Lt}=X3(f.v7_normalizeFormMethod,!0,he,se);if(Lt){it(U,K,Lt,{flushSync:ve});return}let Oe=wp(pe,xe);if(z=(se&&se.preventScrollReset)===!0,me&&gi(me.formMethod)){ut(U,K,xe,Oe,pe,ve,me);return}R.set(U,{routeId:K,path:xe}),Je(U,K,xe,Oe,pe,ve,me)}async function ut(U,K,Q,se,ve,ge,he){if(li(),R.delete(U),!se.route.action&&!se.route.lazy){let sr=Gn(405,{method:he.formMethod,pathname:Q,routeId:K});it(U,K,sr,{flushSync:ge});return}let pe=_.fetchers.get(U);Ve(U,OU(he,pe),{flushSync:ge});let xe=new AbortController,me=Fa(t.history,Q,xe.signal,he);T.set(U,xe);let Lt=N,ye=(await nt("action",me,[se],ve))[0];if(me.signal.aborted){T.get(U)===xe&&T.delete(U);return}if(f.v7_fetcherPersist&&A.has(U)){if(na(ye)||Jn(ye)){Ve(U,Ks(void 0));return}}else{if(na(ye))if(T.delete(U),j>Lt){Ve(U,Ks(void 0));return}else return m.add(U),Ve(U,Cc(he)),bn(me,ye,{fetcherSubmission:he});if(Jn(ye)){it(U,K,ye.error);return}}if(ra(ye))throw Gn(400,{type:"defer-action"});let Xe=_.navigation.location||_.location,Pe=Fa(t.history,Xe,xe.signal),st=a||o,Fr=_.navigation.state!=="idle"?fl(st,_.navigation.location,l):_.matches;Ue(Fr,"Didn't find any matches after fetcher action");let Ze=++N;C.set(U,Ze);let et=Cc(he,ye.data);_.fetchers.set(U,et);let[Xr,gr]=Z3(t.history,_,Fr,he,Xe,!1,f.unstable_skipActionErrorRevalidation,S,k,I,A,R,m,st,l,[se.route.id,ye]);gr.filter(sr=>sr.key!==U).forEach(sr=>{let fs=sr.key,Na=_.fetchers.get(fs),dc=Cc(void 0,Na?Na.data:void 0);_.fetchers.set(fs,dc),T.has(fs)&&$r(fs),sr.controller&&T.set(fs,sr.controller)}),ne({fetchers:new Map(_.fetchers)});let wn=()=>gr.forEach(sr=>$r(sr.key));xe.signal.addEventListener("abort",wn);let{loaderResults:En,fetcherResults:An}=await pt(_.matches,Fr,Xr,gr,Pe);if(xe.signal.aborted)return;xe.signal.removeEventListener("abort",wn),C.delete(U),T.delete(U),gr.forEach(sr=>T.delete(sr.key));let De=lE([...En,...An]);if(De){if(De.idx>=Xr.length){let sr=gr[De.idx-Xr.length].key;m.add(sr)}return bn(Pe,De.result)}let{loaderData:xr,errors:Ur}=iE(_,_.matches,Xr,En,void 0,gr,An,$);if(_.fetchers.has(U)){let sr=Ks(ye.data);_.fetchers.set(U,sr)}_i(Ze),_.navigation.state==="loading"&&Ze>j?(Ue(L,"Expected pending action"),H&&H.abort(),Me(_.navigation.location,{matches:Fr,loaderData:xr,errors:Ur,fetchers:new Map(_.fetchers)})):(ne({errors:Ur,loaderData:sE(_.loaderData,xr,Fr,Ur),fetchers:new Map(_.fetchers)}),S=!1)}async function Je(U,K,Q,se,ve,ge,he){let pe=_.fetchers.get(U);Ve(U,Cc(he,pe?pe.data:void 0),{flushSync:ge});let xe=new AbortController,me=Fa(t.history,Q,xe.signal);T.set(U,xe);let Lt=N,ye=(await nt("loader",me,[se],ve))[0];if(ra(ye)&&(ye=await h7(ye,me.signal,!0)||ye),T.get(U)===xe&&T.delete(U),!me.signal.aborted){if(A.has(U)){Ve(U,Ks(void 0));return}if(na(ye))if(j>Lt){Ve(U,Ks(void 0));return}else{m.add(U),await bn(me,ye);return}if(Jn(ye)){it(U,K,ye.error);return}Ue(!ra(ye),"Unhandled fetcher deferred data"),Ve(U,Ks(ye.data))}}async function bn(U,K,Q){let{submission:se,fetcherSubmission:ve,replace:ge}=Q===void 0?{}:Q;K.response.headers.has("X-Remix-Revalidate")&&(S=!0);let he=K.response.headers.get("Location");Ue(he,"Expected a Location header on the redirect Response"),he=rE(he,new URL(U.url),l);let pe=Hf(_.location,he,{_isRedirect:!0});if(r){let Xe=!1;if(K.response.headers.has("X-Remix-Reload-Document"))Xe=!0;else if(qg.test(he)){const Pe=t.history.createURL(he);Xe=Pe.origin!==e.location.origin||pu(Pe.pathname,l)==null}if(Xe){ge?e.location.replace(he):e.location.assign(he);return}}H=null;let xe=ge===!0?lr.Replace:lr.Push,{formMethod:me,formAction:Lt,formEncType:Oe}=_.navigation;!se&&!ve&&me&&Lt&&Oe&&(se=fE(_.navigation));let ye=se||ve;if(yU.has(K.response.status)&&ye&&gi(ye.formMethod))await Qt(xe,pe,{submission:Ht({},ye,{formAction:he}),preventScrollReset:z});else{let Xe=uv(pe,se);await Qt(xe,pe,{overrideNavigation:Xe,fetcherSubmission:ve,preventScrollReset:z})}}async function nt(U,K,Q,se){try{let ve=await AU(c,U,K,Q,se,s,i);return await Promise.all(ve.map((ge,he)=>{if(RU(ge)){let pe=ge.result;return{type:Ft.redirect,response:kU(pe,K,Q[he].route.id,se,l,f.v7_relativeSplatPath)}}return CU(ge)}))}catch(ve){return Q.map(()=>({type:Ft.error,error:ve}))}}async function pt(U,K,Q,se,ve){let[ge,...he]=await Promise.all([Q.length?nt("loader",ve,Q,K):[],...se.map(pe=>{if(pe.matches&&pe.match&&pe.controller){let xe=Fa(t.history,pe.path,pe.controller.signal);return nt("loader",xe,[pe.match],pe.matches).then(me=>me[0])}else return Promise.resolve({type:Ft.error,error:Gn(404,{pathname:pe.path})})})]);return await Promise.all([cE(U,Q,ge,ge.map(()=>ve.signal),!1,_.loaderData),cE(U,se.map(pe=>pe.match),he,se.map(pe=>pe.controller?pe.controller.signal:null),!0)]),{loaderResults:ge,fetcherResults:he}}function li(){S=!0,k.push(...dt()),R.forEach((U,K)=>{T.has(K)&&(I.push(K),$r(K))})}function Ve(U,K,Q){Q===void 0&&(Q={}),_.fetchers.set(U,K),ne({fetchers:new Map(_.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function it(U,K,Q,se){se===void 0&&(se={});let ve=df(_.matches,K);lt(U),ne({errors:{[ve.route.id]:Q},fetchers:new Map(_.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Ri(U){return f.v7_fetcherPersist&&(F.set(U,(F.get(U)||0)+1),A.has(U)&&A.delete(U)),_.fetchers.get(U)||pU}function lt(U){let K=_.fetchers.get(U);T.has(U)&&!(K&&K.state==="loading"&&C.has(U))&&$r(U),R.delete(U),C.delete(U),m.delete(U),A.delete(U),_.fetchers.delete(U)}function At(U){if(f.v7_fetcherPersist){let K=(F.get(U)||0)-1;K<=0?(F.delete(U),A.add(U)):F.set(U,K)}else lt(U);ne({fetchers:new Map(_.fetchers)})}function $r(U){let K=T.get(U);Ue(K,"Expected fetch controller: "+U),K.abort(),T.delete(U)}function mt(U){for(let K of U){let Q=Ri(K),se=Ks(Q.data);_.fetchers.set(K,se)}}function gt(){let U=[],K=!1;for(let Q of m){let se=_.fetchers.get(Q);Ue(se,"Expected fetcher: "+Q),se.state==="loading"&&(m.delete(Q),U.push(Q),K=!0)}return mt(U),K}function _i(U){let K=[];for(let[Q,se]of C)if(se0}function St(U,K){let Q=_.blockers.get(U)||Sc;return V.get(U)!==K&&V.set(U,K),Q}function xt(U){_.blockers.delete(U),V.delete(U)}function zn(U,K){let Q=_.blockers.get(U)||Sc;Ue(Q.state==="unblocked"&&K.state==="blocked"||Q.state==="blocked"&&K.state==="blocked"||Q.state==="blocked"&&K.state==="proceeding"||Q.state==="blocked"&&K.state==="unblocked"||Q.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+K.state);let se=new Map(_.blockers);se.set(U,K),ne({blockers:se})}function bt(U){let{currentLocation:K,nextLocation:Q,historyAction:se}=U;if(V.size===0)return;V.size>1&&xa(!1,"A router only supports one blocker at a time");let ve=Array.from(V.entries()),[ge,he]=ve[ve.length-1],pe=_.blockers.get(ge);if(!(pe&&pe.state==="proceeding")&&he({currentLocation:K,nextLocation:Q,historyAction:se}))return ge}function dt(U){let K=[];return $.forEach((Q,se)=>{(!U||U(se))&&(Q.cancel(),K.push(se),$.delete(se))}),K}function cs(U,K,Q){if(v=U,y=K,g=Q||null,!w&&_.navigation===fv){w=!0;let se=Ii(_.location,_.matches);se!=null&&ne({restoreScrollPosition:se})}return()=>{v=null,y=null,g=null}}function wt(U,K){return g&&g(U,K.map(se=>qF(se,_.loaderData)))||U.key}function Ct(U,K){if(v&&y){let Q=wt(U,K);v[Q]=y()}}function Ii(U,K){if(v){let Q=wt(U,K),se=v[Q];if(typeof se=="number")return se}return null}function kt(U){s={},a=gp(U,i,void 0,s)}return D={get basename(){return l},get future(){return f},get state(){return _},get routes(){return o},get window(){return e},initialize:Y,subscribe:re,enableScrollRestoration:cs,navigate:de,fetch:ai,revalidate:Ee,createHref:U=>t.history.createHref(U),encodeLocation:U=>t.history.encodeLocation(U),getFetcher:Ri,deleteFetcher:At,dispose:ae,getBlocker:St,deleteBlocker:xt,_internalFetchControllers:T,_internalActiveDeferreds:$,_internalSetRoutes:kt},D}function xU(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function xp(t,e,r,n,i,s,o,a){let l,c;if(o){l=[];for(let u of e)if(l.push(u),u.route.id===o){c=u;break}}else l=e,c=e[e.length-1];let f=aU(i||".",oU(l,s),pu(t.pathname,r)||t.pathname,a==="path");return i==null&&(f.search=t.search,f.hash=t.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!Hg(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:la([r,f.pathname])),yu(f)}function X3(t,e,r,n){if(!n||!xU(n))return{path:r};if(n.formMethod&&!IU(n.formMethod))return{path:r,error:Gn(405,{method:n.formMethod})};let i=()=>({path:r,error:Gn(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=u7(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!gi(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,w]=g;return""+v+y+"="+w+` +`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!gi(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}Ue(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=bp(n.formData),c=n.formData;else if(n.body instanceof FormData)l=bp(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=nE(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=nE(l)}catch{return i()}let f={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(gi(f.formMethod))return{path:r,submission:f};let u=os(r);return e&&u.search&&Hg(u.search)&&l.append("index",""),u.search="?"+l,{path:yu(u),submission:f}}function bU(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function Z3(t,e,r,n,i,s,o,a,l,c,f,u,d,v,g,y){let w=y?Jn(y[1])?y[1].error:y[1].data:void 0,x=t.createURL(e.location),b=t.createURL(i),E=y&&Jn(y[1])?y[0]:void 0,P=E?bU(r,E):r,O=y?y[1].statusCode:void 0,D=o&&O&&O>=400,_=P.filter((z,H)=>{let{route:G}=z;if(G.lazy)return!0;if(G.loader==null)return!1;if(s)return typeof G.loader!="function"||G.loader.hydrate?!0:e.loaderData[G.id]===void 0&&(!e.errors||e.errors[G.id]===void 0);if(wU(e.loaderData,e.matches[H],z)||l.some(h=>h===z.route.id))return!0;let X=e.matches[H],M=z;return eE(z,Ht({currentUrl:x,currentParams:X.params,nextUrl:b,nextParams:M.params},n,{actionResult:w,unstable_actionStatus:O,defaultShouldRevalidate:D?!1:a||x.pathname+x.search===b.pathname+b.search||x.search!==b.search||f7(X,M)}))}),L=[];return u.forEach((z,H)=>{if(s||!r.some(S=>S.route.id===z.routeId)||f.has(H))return;let G=fl(v,z.path,g);if(!G){L.push({key:H,routeId:z.routeId,path:z.path,matches:null,match:null,controller:null});return}let X=e.fetchers.get(H),M=wp(G,z.path),h=!1;d.has(H)?h=!1:c.includes(H)?h=!0:X&&X.state!=="idle"&&X.data===void 0?h=a:h=eE(M,Ht({currentUrl:x,currentParams:e.matches[e.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:w,unstable_actionStatus:O,defaultShouldRevalidate:D?!1:a})),h&&L.push({key:H,routeId:z.routeId,path:z.path,matches:G,match:M,controller:new AbortController})}),[_,L]}function wU(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function f7(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function eE(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function tE(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];Ue(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";xa(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!zF.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,Ht({},e(i),{lazy:void 0}))}function EU(t){return Promise.all(t.matches.map(e=>e.resolve()))}async function AU(t,e,r,n,i,s,o,a){let l=n.reduce((u,d)=>u.add(d.route.id),new Set),c=new Set,f=await t({matches:i.map(u=>{let d=l.has(u.route.id);return Ht({},u,{shouldLoad:d,resolve:g=>(c.add(u.route.id),d?SU(e,r,u,s,o,g,a):Promise.resolve({type:Ft.data,result:void 0}))})}),request:r,params:i[0].params,context:a});return i.forEach(u=>Ue(c.has(u.route.id),'`match.resolve()` was not called for route id "'+u.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((u,d)=>l.has(i[d].route.id))}async function SU(t,e,r,n,i,s,o){let a,l,c=f=>{let u,d=new Promise((y,w)=>u=w);l=()=>u(),e.signal.addEventListener("abort",l);let v=y=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id+"]"))):f({request:e,params:r.params,context:o},...y!==void 0?[y]:[]),g;return s?g=s(y=>v(y)):g=(async()=>{try{return{type:"data",result:await v()}}catch(y){return{type:"error",result:y}}})(),Promise.race([g,d])};try{let f=r.route[t];if(r.route.lazy)if(f){let u,[d]=await Promise.all([c(f).catch(v=>{u=v}),tE(r.route,i,n)]);if(u!==void 0)throw u;a=d}else if(await tE(r.route,i,n),f=r.route[t],f)a=await c(f);else if(t==="action"){let u=new URL(e.url),d=u.pathname+u.search;throw Gn(405,{method:e.method,pathname:d,routeId:r.route.id})}else return{type:Ft.data,result:void 0};else if(f)a=await c(f);else{let u=new URL(e.url),d=u.pathname+u.search;throw Gn(404,{pathname:d})}Ue(a.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:Ft.error,result:f}}finally{l&&e.signal.removeEventListener("abort",l)}return a}async function CU(t){let{result:e,type:r,status:n}=t;if(d7(e)){let o;try{let a=e.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?e.body==null?o=null:o=await e.json():o=await e.text()}catch(a){return{type:Ft.error,error:a}}return r===Ft.error?{type:Ft.error,error:new zg(e.status,e.statusText,o),statusCode:e.status,headers:e.headers}:{type:Ft.data,data:o,statusCode:e.status,headers:e.headers}}if(r===Ft.error)return{type:Ft.error,error:e,statusCode:Vg(e)?e.status:n};if(_U(e)){var i,s;return{type:Ft.deferred,deferredData:e,statusCode:(i=e.init)==null?void 0:i.status,headers:((s=e.init)==null?void 0:s.headers)&&new Headers(e.init.headers)}}return{type:Ft.data,data:e,statusCode:n}}function kU(t,e,r,n,i,s){let o=t.headers.get("Location");if(Ue(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!qg.test(o)){let a=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=xp(new URL(e.url),a,i,!0,o,s),t.headers.set("Location",o)}return t}function rE(t,e,r){if(qg.test(t)){let n=t,i=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=pu(i.pathname,r)!=null;if(i.origin===e.origin&&s)return i.pathname+i.search+i.hash}return t}function Fa(t,e,r,n){let i=t.createURL(u7(e)).toString(),s={signal:r};if(n&&gi(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=bp(n.formData):s.body=n.formData}return new Request(i,s)}function bp(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function nE(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function PU(t,e,r,n,i,s){let o={},a=null,l,c=!1,f={},u=n&&Jn(n[1])?n[1].error:void 0;return r.forEach((d,v)=>{let g=e[v].route.id;if(Ue(!na(d),"Cannot handle redirect results in processLoaderData"),Jn(d)){let y=d.error;if(u!==void 0&&(y=u,u=void 0),a=a||{},s)a[g]=y;else{let w=df(t,g);a[w.route.id]==null&&(a[w.route.id]=y)}o[g]=void 0,c||(c=!0,l=Vg(d.error)?d.error.status:500),d.headers&&(f[g]=d.headers)}else ra(d)?(i.set(g,d.deferredData),o[g]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers)):(o[g]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:l||200,loaderHeaders:f}}function iE(t,e,r,n,i,s,o,a){let{loaderData:l,errors:c}=PU(e,r,n,i,a,!1);for(let f=0;fn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function aE(t){let e=t.length===1?t[0]:t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Gn(t,e){let{pathname:r,routeId:n,method:i,type:s}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):t===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",a='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new zg(t||500,o,new Error(a),!0)}function lE(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(na(r))return{result:r,idx:e}}}function u7(t){let e=typeof t=="string"?os(t):t;return yu(Ht({},e,{hash:""}))}function TU(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function RU(t){return d7(t.result)&&vU.has(t.result.status)}function ra(t){return t.type===Ft.deferred}function Jn(t){return t.type===Ft.error}function na(t){return(t&&t.type)===Ft.redirect}function _U(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function d7(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function IU(t){return hU.has(t.toLowerCase())}function gi(t){return uU.has(t.toLowerCase())}async function cE(t,e,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!f7(c,l)&&(s&&s[l.route.id])!==void 0;if(ra(a)&&(i||f)){let u=n[o];Ue(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await h7(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function h7(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Ft.data,data:t.deferredData.unwrappedData}}catch(i){return{type:Ft.error,error:i}}return{type:Ft.data,data:t.deferredData.data}}}function Hg(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function wp(t,e){let r=typeof e=="string"?os(e).search:e.search;if(t[t.length-1].route.index&&Hg(r||""))return t[t.length-1];let n=a7(t);return n[n.length-1]}function fE(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:s,json:o}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function uv(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function MU(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function Cc(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function OU(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Ks(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function NU(t,e){try{let r=t.sessionStorage.getItem(c7);if(r){let n=JSON.parse(r);for(let[i,s]of Object.entries(n||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function LU(t,e){if(e.size>0){let r={};for(let[n,i]of e)r[n]=[...i];try{t.sessionStorage.setItem(c7,JSON.stringify(r))}catch(n){xa(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ph(){return Ph=Object.assign?Object.assign.bind():function(t){for(var e=1;eObject.assign({},w,{params:Object.assign({},a,w.params),pathname:la([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:la([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,r,n);return e&&y?p.createElement(O0.Provider,{value:{location:Ph({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:lr.Pop}},y):y}function jU(){let t=WU(),e=Vg(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},e),r?p.createElement("pre",{style:i},r):null,s)}const $U=p.createElement(jU,null);class FU extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?p.createElement(N0.Provider,{value:this.props.routeContext},p.createElement(m7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function UU(t){let{routeContext:e,match:r,children:n}=t,i=p.useContext(v7);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(N0.Provider,{value:e},n)}function zU(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if((s=r)!=null&&s.errors)t=r.matches;else return null}let o=t,a=(i=r)==null?void 0:i.errors;if(a!=null){let f=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);f>=0||Ue(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((f,u,d)=>{let v,g=!1,y=null,w=null;r&&(v=a&&u.route.id?a[u.route.id]:void 0,y=u.route.errorElement||$U,l&&(c<0&&d===0?(GU("route-fallback",!1),g=!0,w=null):c===d&&(g=!0,w=u.route.hydrateFallbackElement||null)));let x=e.concat(o.slice(0,d+1)),b=()=>{let E;return v?E=y:g?E=w:u.route.Component?E=p.createElement(u.route.Component,null):u.route.element?E=u.route.element:E=f,p.createElement(UU,{match:u,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:E})};return r&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?p.createElement(FU,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var Ep=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Ep||{});function VU(t){let e=p.useContext(y7);return e||Ue(!1),e}function qU(t){let e=p.useContext(N0);return e||Ue(!1),e}function HU(t){let e=qU(),r=e.matches[e.matches.length-1];return r.route.id||Ue(!1),r.route.id}function WU(){var t;let e=p.useContext(m7),r=VU(Ep.UseRouteError),n=HU(Ep.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}const uE={};function GU(t,e,r){!e&&!uE[t]&&(uE[t]=!0)}function KU(t){let{basename:e="/",children:r=null,location:n,navigationType:i=lr.Pop,navigator:s,static:o=!1,future:a}=t;Wg()&&Ue(!1);let l=e.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:s,static:o,future:Ph({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof n=="string"&&(n=os(n));let{pathname:f="/",search:u="",hash:d="",state:v=null,key:g="default"}=n,y=p.useMemo(()=>{let w=pu(f,l);return w==null?null:{location:{pathname:w,search:u,hash:d,state:v,key:g},navigationType:i}},[l,f,u,d,v,g,i]);return y==null?null:p.createElement(p7.Provider,{value:c},p.createElement(O0.Provider,{children:r,value:y}))}new Promise(()=>{});function YU(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:p.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:p.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:p.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** + * React Router DOM v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Th(){return Th=Object.assign?Object.assign.bind():function(t){for(var e=1;e{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function oz(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=p.useState(r.state),[o,a]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[f,u]=p.useState(),[d,v]=p.useState(),[g,y]=p.useState(),w=p.useRef(new Map),{v7_startTransition:x}=n||{},b=p.useCallback(_=>{x?iz(_):_()},[x]),E=p.useCallback((_,L)=>{let{deletedFetchers:z,unstable_flushSync:H,unstable_viewTransitionOpts:G}=L;z.forEach(M=>w.current.delete(M)),_.fetchers.forEach((M,h)=>{M.data!==void 0&&w.current.set(h,M.data)});let X=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!G||X){H?kc(()=>s(_)):b(()=>s(_));return}if(H){kc(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:G.currentLocation,nextLocation:G.nextLocation})});let M=r.window.document.startViewTransition(()=>{kc(()=>s(_))});M.finished.finally(()=>{kc(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})})}),kc(()=>v(M));return}d?(f&&f.resolve(),d.skipTransition(),y({state:_,currentLocation:G.currentLocation,nextLocation:G.nextLocation})):(a(_),c({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}))},[r.window,d,f,w,b]);p.useLayoutEffect(()=>r.subscribe(E),[r,E]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&u(new sz)},[l]),p.useEffect(()=>{if(f&&o&&r.window){let _=o,L=f.promise,z=r.window.document.startViewTransition(async()=>{b(()=>s(_)),await L});z.finished.finally(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})}),v(z)}},[b,o,f,r.window]),p.useEffect(()=>{f&&o&&i.location.key===o.location.key&&f.resolve()},[f,d,i.location,o]),p.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[l.isTransitioning,g]),p.useEffect(()=>{},[]);let P=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:_=>r.navigate(_),push:(_,L,z)=>r.navigate(_,{state:L,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(_,L,z)=>r.navigate(_,{replace:!0,state:L,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[r]),O=r.basename||"/",D=p.useMemo(()=>({router:r,navigator:P,static:!1,basename:O}),[r,P,O]);return p.createElement(p.Fragment,null,p.createElement(v7.Provider,{value:D},p.createElement(y7.Provider,{value:i},p.createElement(tz.Provider,{value:w.current},p.createElement(ez.Provider,{value:l},p.createElement(KU,{basename:O,location:i.location,navigationType:i.historyAction,navigator:P,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?p.createElement(az,{routes:r.routes,future:r.future,state:i}):e))))),null)}function az(t){let{routes:e,future:r,state:n}=t;return BU(e,void 0,n,r)}var vE;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(vE||(vE={}));var yE;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(yE||(yE={}));var lz="_1csw4y80 _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8";const g7=t=>{const{value:e,digits:r=6,onChange:n,disabled:i=!1}=t,s=p.useMemo(()=>pE(0,r).map(()=>p.createRef()),[]);p.useEffect(()=>{var c,f;(f=(c=s[0])==null?void 0:c.current)==null||f.focus()},[]);const o=(c,f)=>{var d,v;/^\d$/.test(f)||(f="");const u=[...e];u[c]=f,f!==""&&((v=(d=s[c+1])==null?void 0:d.current)==null||v.focus()),n(u)},a=(c,f)=>{var g,y;const u=s[c].current,d=(g=s[c-1])==null?void 0:g.current,v=(y=s[c+1])==null?void 0:y.current;switch(f.key){case"Backspace":f.preventDefault(),u&&(u.value="",o(c,"")),d==null||d.focus();break;case"ArrowLeft":f.preventDefault(),d==null||d.focus();break;case"ArrowRight":f.preventDefault(),v==null||v.focus();break;default:(u==null?void 0:u.value)===f.key&&(f.preventDefault(),o(c,f.key))}},l=(c,f)=>{var v,g;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((g=(v=s[0])==null?void 0:v.current)==null||g.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return B.jsx(te,{gap:"2",children:pE(0,r).map(c=>B.jsxs(p.Fragment,{children:[c===r/2&&B.jsx("span",{}),B.jsx(te,{as:"input",className:lz,value:e[c]||"",ref:s[c],type:"text",inputMode:"numeric",maxLength:1,disabled:i,onFocus:f=>f.target.select(),onPaste:f=>l(c,f),onChange:f=>o(c,f.target.value),onKeyDown:f=>{a(c,f)}})]},c))})},pE=(t,e)=>Array.from({length:e-t},(r,n)=>n+t),x7=()=>B.jsxs(te,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[B.jsx(Ce,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),B.jsx(Ce,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function cz(t={}){const{nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}=t,[i,s]=p.useState(!1),o=p.useRef(r);o.current=r;const a=p.useRef(n);return a.current=n,p.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=e,l.onload=()=>{var c;s(!0),(c=o.current)===null||c===void 0||c.call(o)},l.onerror=()=>{var c;s(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[e]),i}const b7=p.createContext(null);function fz({clientId:t,nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=cz({nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}),o=p.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:s}),[t,s]);return Cr.createElement(b7.Provider,{value:o},i)}function uz(){const t=p.useContext(b7);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function dz(t){var e;return(e=t==null?void 0:t.clientId)!==null&&e!==void 0?e:t==null?void 0:t.client_id}const hz={large:40,medium:32,small:20};function vz({onSuccess:t,onError:e,useOneTap:r,promptMomentNotification:n,type:i="standard",theme:s="outline",size:o="large",text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d,containerProps:v,...g}){const y=p.useRef(null),{clientId:w,scriptLoadedSuccessfully:x}=uz(),b=p.useRef(t);b.current=t;const E=p.useRef(e);E.current=e;const P=p.useRef(n);return P.current=n,p.useEffect(()=>{var O,D,_,L,z,H,G,X,M;if(x)return(_=(D=(O=window==null?void 0:window.google)===null||O===void 0?void 0:O.accounts)===null||D===void 0?void 0:D.id)===null||_===void 0||_.initialize({client_id:w,callback:h=>{var S;if(!(h!=null&&h.credential))return(S=E.current)===null||S===void 0?void 0:S.call(E);const{credential:k,select_by:I}=h;b.current({credential:k,clientId:dz(h),select_by:I})},...g}),(H=(z=(L=window==null?void 0:window.google)===null||L===void 0?void 0:L.accounts)===null||z===void 0?void 0:z.id)===null||H===void 0||H.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((M=(X=(G=window==null?void 0:window.google)===null||G===void 0?void 0:G.accounts)===null||X===void 0?void 0:X.id)===null||M===void 0||M.prompt(P.current)),()=>{var h,S,k;r&&((k=(S=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||S===void 0?void 0:S.id)===null||k===void 0||k.cancel())}},[w,x,r,i,s,o,a,l,c,f,u]),Cr.createElement("div",{...v,ref:y,style:{height:hz[o],...v==null?void 0:v.style}})}function yz(){var t,e,r;(r=(e=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.accounts)===null||e===void 0?void 0:e.id)===null||r===void 0||r.disableAutoSelect()}var w7={},L0={},mu={};Object.defineProperty(mu,"__esModule",{value:!0});mu.default=void 0;var pz=p;function mz(t){(0,pz.useEffect)(function(){if(t){var e=document.querySelectorAll('script[src="'.concat(t,'"]'))[0];e||(e=document.createElement("script"),e.src=t,e.async=!0,document.body.appendChild(e))}},[t])}var gz=mz;mu.default=gz;var gu={},D0={};Object.defineProperty(D0,"__esModule",{value:!0});D0.default=void 0;var xz=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},n=r.pollFrequency,i=n===void 0?1e3:n,s=r.retries,o=s===void 0?100:s,a=r.parent,l=a===void 0?window:a;if(l&&l.hasOwnProperty(e))return Promise.resolve(l[e]);if(!o)return Promise.resolve(void 0);var c=o-1;return new Promise(function(f){return setTimeout(f,typeof i=="function"?i({retries:c}):i)}).then(function(){return t(e,{pollFrequency:i,parent:l,retries:c})})},bz=xz;D0.default=bz;Object.defineProperty(gu,"__esModule",{value:!0});gu.default=void 0;var wz=Ez(D0);function Ez(t){return t&&t.__esModule?t:{default:t}}var Az="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",Sz=function(e){var r=e.authOptions,n=e.onSuccess,i=e.onError;return(0,wz.default)("AppleID").then(function(){return window.AppleID||console.error(new Error("Error loading apple script")),window.AppleID.auth.init(r),window.AppleID.auth.signIn().then(function(s){return n&&n(s),s}).catch(function(s){return i?i(s):console.error(s),null})}).catch(function(s){return i?i(s):console.error(s),null})},Cz={APPLE_SCRIPT_SRC:Az,signIn:Sz};gu.default=Cz;Object.defineProperty(L0,"__esModule",{value:!0});L0.default=void 0;var Oi=Gg(p),kz=Gg(mu),mE=Gg(gu),Pz=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function Gg(t){return t&&t.__esModule?t:{default:t}}function Rh(){return Rh=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Iz(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}var Mz=` +.react-apple-signin-auth-btn { + background-color: transparent; + border: none; + padding: 0; + cursor: pointer; + border-radius: 4px; + padding: 0 8px 0 2px; + font-size: 14px; + font-size: 1em; + line-height: 1; + border: 1px solid #000; + overflow: hidden; + display: inline-flex; + justify-content: center; + align-items: center; +} +.react-apple-signin-auth-btn-light { + background-color: #FFF; + color: #000; + border-color: #000; +} +.react-apple-signin-auth-btn-dark { + background-color: #000; + color: #FFF; + border-color: #FFF; +}`.replace(/ {2}|\n/g,""),Oz=function(e){var r=e.onSuccess,n=e.onError,i=e.skipScript,s=i===void 0?!1:i,o=e.authOptions,a=e.iconProps,l=e.render,c=e.uiType,f=c===void 0?"dark":c,u=e.className,d=e.noDefaultStyle,v=d===void 0?!1:d,g=e.buttonExtraChildren,y=g===void 0?"Continue with Apple":g,w=_z(e,Pz);(0,kz.default)(s?null:mE.default.APPLE_SCRIPT_SRC);var x=function(P){P&&(P.preventDefault(),P.stopPropagation()),mE.default.signIn({authOptions:o,onSuccess:r,onError:n})},b=Tz({children:Oi.default.createElement(Oi.default.Fragment,null,Oi.default.createElement("svg",Rh({width:"24px",height:"44px",viewBox:"0 0 24 44"},a),Oi.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Oi.default.createElement("rect",{fill:f==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),Oi.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:f==="light"?"#000":"#FFF",fillRule:"nonzero"}))),y),onClick:x},w);return l?l(b):Oi.default.createElement(Oi.default.Fragment,null,Oi.default.createElement("button",Rh({className:"".concat(v?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(f)).concat(u?" ".concat(u):""),type:"button","aria-label":"Signin with apple ID"},b)),v?null:Oi.default.createElement("style",null,Mz))},Nz=Oz;L0.default=Nz;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appleAuthHelpers",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"useScript",{enumerable:!0,get:function(){return n.default}}),t.default=void 0;var e=i(L0),r=i(gu),n=i(mu);function i(o){return o&&o.__esModule?o:{default:o}}var s=e.default;t.default=s})(w7);const Lz=Ds(w7);function _h(){return _h=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Jt({},n,i)).then(s=>or(s).then(o=>({status:o.status})),s=>{throw Xt.new({cause:`fetch(): ${s.message||""}`})}),this.version=(n,i)=>this.fetch(this.url("Version"),Jt({},n,i)).then(s=>or(s).then(o=>({version:o.version})),s=>{throw Xt.new({cause:`fetch(): ${s.message||""}`})}),this.runtimeStatus=(n,i)=>this.fetch(this.url("RuntimeStatus"),Jt({},n,i)).then(s=>or(s).then(o=>({status:o.status})),s=>{throw Xt.new({cause:`fetch(): ${s.message||""}`})}),this.getChainID=(n,i)=>this.fetch(this.url("GetChainID"),Jt({},n,i)).then(s=>or(s).then(o=>({chainID:o.chainID})),s=>{throw Xt.new({cause:`fetch(): ${s.message||""}`})}),this.getEtherBalance=(n,i,s)=>this.fetch(this.url("GetEtherBalance"),Jt(n,i,s)).then(o=>or(o).then(a=>({balance:a.balance})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,i,s)=>this.fetch(this.url("GetTokenBalances"),Jt(n,i,s)).then(o=>or(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,i,s)=>this.fetch(this.url("GetTokenSupplies"),Jt(n,i,s)).then(o=>or(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,i,s)=>this.fetch(this.url("GetTokenSuppliesMap"),Jt(n,i,s)).then(o=>or(o).then(a=>({supplies:a.supplies})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,i,s)=>this.fetch(this.url("GetBalanceUpdates"),Jt(n,i,s)).then(o=>or(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,i,s)=>this.fetch(this.url("GetTransactionHistory"),Jt(n,i,s)).then(o=>or(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,i,s)=>this.fetch(this.url("SyncBalance"),Jt(n,i,s)).then(o=>or(o).then(a=>({})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,i,s)=>this.fetch(this.url("FetchTransactionReceipt"),Jt(n,i,s)).then(o=>or(o).then(a=>({receipt:a.receipt})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,i,s)=>this.fetch(this.url("GetOrderbookOrders"),Jt(n,i,s)).then(o=>or(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,i,s)=>this.fetch(this.url("GetTopOrders"),Jt(n,i,s)).then(o=>or(o).then(a=>({orders:a.orders})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,i,s)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),Jt(n,i,s)).then(o=>or(o).then(a=>({receipt:a.receipt})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,i,s)=>this.fetch(this.url("GetAllWebhookListeners"),Jt(n,i,s)).then(o=>or(o).then(a=>({listeners:a.listeners})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,i,s)=>this.fetch(this.url("GetWebhookListener"),Jt(n,i,s)).then(o=>or(o).then(a=>({listener:a.listener})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,i,s)=>this.fetch(this.url("AddWebhookListener"),Jt(n,i,s)).then(o=>or(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,i,s)=>this.fetch(this.url("UpdateWebhookListener"),Jt(n,i,s)).then(o=>or(o).then(a=>({status:a.status})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,i,s)=>this.fetch(this.url("RemoveWebhookListener"),Jt(n,i,s)).then(o=>or(o).then(a=>({status:a.status})),o=>{throw Xt.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeReceipts"),Jt(n,i.headers,i.signal)).then(async function(o){await xE(o,i,s)},o=>{i.onError(o,s)});return s()},this.subscribeEvents=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeEvents"),Jt(n,i.headers,i.signal)).then(async function(o){await xE(o,i,s)},o=>{i.onError(o,s)});return s()},this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const xE=async(t,e,r)=>{const{onMessage:n,onOpen:i,onClose:s,onError:o}=e;if(!t.ok){try{await or(t)}catch(v){o(v,r)}return}if(!t.body){o(Ih.new({status:t.status,cause:"Invalid response, missing body"}),r);return}i&&i();const a=t.body.getReader(),l=new TextDecoder;let c="",f=Date.now();const u=(10+1)*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-f>u)throw Od.new({cause:"Stream timed out"})},u);;){let v,g;try{({value:v,done:g}=await a.read()),f=Date.now(),c+=l.decode(v,{stream:!0})}catch(w){let x="";w instanceof Error&&(x=w.message),w instanceof DOMException&&w.name==="AbortError"?o(Xt.new({message:"AbortError",cause:`AbortError: ${x}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(Od.new({cause:`reader.read(): ${x}`}),r);return}let y=c.split(` +`);for(let w=0;w({method:"POST",headers:_h({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),or=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),Ih.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(L7[n]||Nt).new(r)}return r});let Nt=class E7 extends Error{constructor(e,r,n,i,s){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,E7.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},Bz=class A7 extends Nt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,A7.prototype)}},Xt=class S7 extends Nt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,S7.prototype)}},jz=class C7 extends Nt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,C7.prototype)}},$z=class k7 extends Nt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,k7.prototype)}},Fz=class P7 extends Nt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,P7.prototype)}},Ih=class T7 extends Nt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,T7.prototype)}},Uz=class R7 extends Nt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,R7.prototype)}},zz=class _7 extends Nt{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,_7.prototype)}},Vz=class I7 extends Nt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,I7.prototype)}},Od=class M7 extends Nt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,M7.prototype)}},qz=class O7 extends Nt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,O7.prototype)}},Hz=class N7 extends Nt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,N7.prototype)}};class Kg extends Nt{constructor(e="PermissionDenied",r=1001,n="Permission denied",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Kg.prototype)}}class Yg extends Nt{constructor(e="SessionExpired",r=1002,n="Session expired",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Yg.prototype)}}class Qg extends Nt{constructor(e="MethodNotFound",r=1003,n="Method not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Qg.prototype)}}class Jg extends Nt{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Jg.prototype)}}class Xg extends Nt{constructor(e="Aborted",r=1005,n="Request aborted",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Xg.prototype)}}class Zg extends Nt{constructor(e="Timeout",r=2e3,n="Request timed out",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Zg.prototype)}}class ex extends Nt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ex.prototype)}}class tx extends Nt{constructor(e="Unavailable",r=2002,n="Unavailable resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,tx.prototype)}}class rx extends Nt{constructor(e="QueryFailed",r=2003,n="Query failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,rx.prototype)}}class nx extends Nt{constructor(e="NotFound",r=3e3,n="Resource not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,nx.prototype)}}class ix extends Nt{constructor(e="ProjectNotFound",r=3002,n="Project not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ix.prototype)}}class sx extends Nt{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,sx.prototype)}}const L7={0:Bz,[-1]:Xt,[-2]:jz,[-3]:$z,[-4]:Fz,[-5]:Ih,[-6]:Uz,[-7]:zz,[-8]:Vz,[-9]:Od,[-10]:qz,1e3:Hz,1001:Kg,1002:Yg,1003:Qg,1004:Jg,1005:Xg,2e3:Zg,2001:ex,2002:tx,2003:rx,3e3:nx,3002:ix,3003:sx},bE=typeof global=="object"?global.fetch:window.fetch;class D7 extends Dz{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,bE),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(i,s)=>{const o={},a=this.jwtAuth,l=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),l&&l.length>0&&(o["X-Access-Key"]=l),s.headers=_h({},s.headers,o),bE(i,s)},this.fetch=this._fetch}}let ee=function(t){return t[t.MAINNET=1]="MAINNET",t[t.ROPSTEN=3]="ROPSTEN",t[t.RINKEBY=4]="RINKEBY",t[t.GOERLI=5]="GOERLI",t[t.KOVAN=42]="KOVAN",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.POLYGON=137]="POLYGON",t[t.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",t[t.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",t[t.POLYGON_AMOY=80002]="POLYGON_AMOY",t[t.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_KOVAN=69]="OPTIMISM_KOVAN",t[t.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",t[t.OPTIMISM_SEPOLIA=11155420]="OPTIMISM_SEPOLIA",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.BASE_SEPOLIA=84532]="BASE_SEPOLIA",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.XAI=660279]="XAI",t[t.XAI_SEPOLIA=37714555429]="XAI_SEPOLIA",t[t.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",t[t.ASTAR_ZKYOTO=6038361]="ASTAR_ZKYOTO",t[t.XR_SEPOLIA=2730]="XR_SEPOLIA",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),Ge=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const ht={[ee.MAINNET]:{chainId:ee.MAINNET,type:Ge.MAINNET,name:"mainnet",title:"Ethereum",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.MAINNET}.webp`,blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ee.ROPSTEN]:{chainId:ee.ROPSTEN,type:Ge.TESTNET,name:"ropsten",title:"Ropsten",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.ROPSTEN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[ee.RINKEBY]:{chainId:ee.RINKEBY,type:Ge.TESTNET,name:"rinkeby",title:"Rinkeby",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.RINKEBY}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[ee.GOERLI]:{chainId:ee.GOERLI,type:Ge.TESTNET,name:"goerli",title:"Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[ee.KOVAN]:{chainId:ee.KOVAN,type:Ge.TESTNET,name:"kovan",title:"Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"},deprecated:!0},[ee.SEPOLIA]:{chainId:ee.SEPOLIA,type:Ge.TESTNET,name:"sepolia",title:"Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[ee.POLYGON]:{chainId:ee.POLYGON,type:Ge.MAINNET,name:"polygon",title:"Polygon",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.POLYGON}.webp`,blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[ee.POLYGON_MUMBAI]:{chainId:ee.POLYGON_MUMBAI,type:Ge.TESTNET,name:"mumbai",title:"Polygon Mumbai",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.POLYGON_MUMBAI}.webp`,testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"},deprecated:!0},[ee.POLYGON_AMOY]:{chainId:ee.POLYGON_AMOY,type:Ge.TESTNET,name:"amoy",title:"Polygon Amoy",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.POLYGON_AMOY}.webp`,testnet:!0,blockExplorer:{name:"OKLink (Amoy)",rootUrl:"https://www.oklink.com/amoy"}},[ee.POLYGON_ZKEVM]:{chainId:ee.POLYGON_ZKEVM,type:Ge.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.POLYGON_ZKEVM}.webp`,blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[ee.BSC]:{chainId:ee.BSC,type:Ge.MAINNET,name:"bsc",title:"BNB Smart Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.BSC}.webp`,blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[ee.BSC_TESTNET]:{chainId:ee.BSC_TESTNET,type:Ge.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.BSC_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[ee.OPTIMISM]:{chainId:ee.OPTIMISM,type:Ge.MAINNET,name:"optimism",title:"Optimism",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.OPTIMISM}.webp`,blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[ee.OPTIMISM_KOVAN]:{chainId:ee.OPTIMISM_KOVAN,type:Ge.TESTNET,name:"optimism-kovan",title:"Optimistic Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.OPTIMISM_KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Kovan)",rootUrl:"https://kovan-optimistic.etherscan.io/"},deprecated:!0},[ee.OPTIMISM_GOERLI]:{chainId:ee.OPTIMISM_GOERLI,type:Ge.TESTNET,name:"optimism-goerli",title:"Optimistic Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.OPTIMISM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Goerli)",rootUrl:"https://goerli-optimistic.etherscan.io/"},deprecated:!0},[ee.OPTIMISM_SEPOLIA]:{chainId:ee.OPTIMISM_SEPOLIA,type:Ge.TESTNET,name:"optimism-sepolia",title:"Optimistic Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.OPTIMISM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Sepolia)",rootUrl:"https://sepolia-optimistic.etherscan.io/"}},[ee.ARBITRUM]:{chainId:ee.ARBITRUM,type:Ge.MAINNET,name:"arbitrum",title:"Arbitrum One",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.ARBITRUM}.webp`,blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[ee.ARBITRUM_GOERLI]:{chainId:ee.ARBITRUM_GOERLI,type:Ge.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.ARBITRUM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Goerli Testnet)",rootUrl:"https://testnet.arbiscan.io/"},deprecated:!0},[ee.ARBITRUM_SEPOLIA]:{chainId:ee.ARBITRUM_SEPOLIA,type:Ge.TESTNET,name:"arbitrum-sepolia",title:"Arbitrum Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.ARBITRUM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Sepolia Testnet)",rootUrl:"https://sepolia.arbiscan.io/"}},[ee.ARBITRUM_NOVA]:{chainId:ee.ARBITRUM_NOVA,type:Ge.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.ARBITRUM_NOVA}.webp`,blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[ee.AVALANCHE]:{chainId:ee.AVALANCHE,type:Ge.MAINNET,name:"avalanche",title:"Avalanche",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.AVALANCHE}.webp`,blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[ee.AVALANCHE_TESTNET]:{chainId:ee.AVALANCHE_TESTNET,type:Ge.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.AVALANCHE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[ee.GNOSIS]:{chainId:ee.GNOSIS,type:Ge.MAINNET,name:"gnosis",title:"Gnosis Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.GNOSIS}.webp`,blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[ee.BASE]:{chainId:ee.BASE,type:Ge.MAINNET,name:"base",title:"Base (Coinbase)",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.BASE}.webp`,blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[ee.BASE_GOERLI]:{chainId:ee.BASE_GOERLI,type:Ge.TESTNET,name:"base-goerli",title:"Base Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.BASE_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"},deprecated:!0},[ee.BASE_SEPOLIA]:{chainId:ee.BASE_SEPOLIA,type:Ge.TESTNET,name:"base-sepolia",title:"Base Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.BASE_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Base Sepolia Explorer",rootUrl:"https://base-sepolia.blockscout.com/"}},[ee.HOMEVERSE]:{chainId:ee.HOMEVERSE,type:Ge.MAINNET,name:"homeverse",title:"Oasys Homeverse",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.HOMEVERSE}.webp`,blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[ee.HOMEVERSE_TESTNET]:{chainId:ee.HOMEVERSE_TESTNET,type:Ge.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.HOMEVERSE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[ee.XAI]:{chainId:ee.XAI,type:Ge.MAINNET,name:"xai",title:"Xai",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.XAI}.webp`,blockExplorer:{name:"Xai Explorer",rootUrl:"https://explorer.xai-chain.net/"}},[ee.XAI_SEPOLIA]:{chainId:ee.XAI_SEPOLIA,type:Ge.TESTNET,name:"xai-sepolia",title:"Xai Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.XAI_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Xai Sepolia Explorer",rootUrl:"https://testnet-explorer-v2.xai-chain.net/"}},[ee.ASTAR_ZKEVM]:{chainId:ee.ASTAR_ZKEVM,type:Ge.MAINNET,name:"astar-zkevm",title:"Astar zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.ASTAR_ZKEVM}.webp`,blockExplorer:{name:"Astar zkEVM Explorer",rootUrl:"https://astar-zkevm.explorer.startale.com/"}},[ee.ASTAR_ZKYOTO]:{chainId:ee.ASTAR_ZKYOTO,type:Ge.TESTNET,name:"astar-zkyoto",title:"Astar zKyoto Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.ASTAR_ZKYOTO}.webp`,testnet:!0,blockExplorer:{name:"Astar zKyoto Explorer",rootUrl:"https://astar-zkyoto.blockscout.com/"}},[ee.XR_SEPOLIA]:{chainId:ee.XR_SEPOLIA,type:Ge.TESTNET,name:"xr-sepolia",title:"XR Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${ee.XR_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"XR Sepolia Explorer",rootUrl:"https://xr-sepolia-testnet.explorer.caldera.xyz/"}},[ee.HARDHAT]:{chainId:ee.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[ee.HARDHAT_2]:{chainId:ee.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var ox={exports:{}};const Wz={},Gz=Object.freeze(Object.defineProperty({__proto__:null,default:Wz},Symbol.toStringTag,{value:"Module"})),Kz=$t(Gz);ox.exports;(function(t){(function(e,r){function n(M,h){if(!M)throw new Error(h||"Assertion failed")}function i(M,h){M.super_=h;var S=function(){};S.prototype=h.prototype,M.prototype=new S,M.prototype.constructor=M}function s(M,h,S){if(s.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,M!==null&&((h==="le"||h==="be")&&(S=h,h=10),this._init(M||0,h||10,S||"be"))}typeof e=="object"?e.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Kz.Buffer}catch{}s.isBN=function(h){return h instanceof s?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,S){return h.cmp(S)>0?h:S},s.min=function(h,S){return h.cmp(S)<0?h:S},s.prototype._init=function(h,S,k){if(typeof h=="number")return this._initNumber(h,S,k);if(typeof h=="object")return this._initArray(h,S,k);S==="hex"&&(S=16),n(S===(S|0)&&S>=2&&S<=36),h=h.toString().replace(/\s+/g,"");var I=0;h[0]==="-"&&(I++,this.negative=1),I=0;I-=3)N=h[I]|h[I-1]<<8|h[I-2]<<16,this.words[T]|=N<>>26-j&67108863,j+=24,j>=26&&(j-=26,T++);else if(k==="le")for(I=0,T=0;I>>26-j&67108863,j+=24,j>=26&&(j-=26,T++);return this._strip()};function a(M,h){var S=M.charCodeAt(h);if(S>=48&&S<=57)return S-48;if(S>=65&&S<=70)return S-55;if(S>=97&&S<=102)return S-87;n(!1,"Invalid character in "+M)}function l(M,h,S){var k=a(M,S);return S-1>=h&&(k|=a(M,S-1)<<4),k}s.prototype._parseHex=function(h,S,k){this.length=Math.ceil((h.length-S)/6),this.words=new Array(this.length);for(var I=0;I=S;I-=2)j=l(h,S,I)<=18?(T-=18,N+=1,this.words[N]|=j>>>26):T+=8;else{var C=h.length-S;for(I=C%2===0?S+1:S;I=18?(T-=18,N+=1,this.words[N]|=j>>>26):T+=8}this._strip()};function c(M,h,S,k){for(var I=0,T=0,N=Math.min(M.length,S),j=h;j=49?T=C-49+10:C>=17?T=C-17+10:T=C,n(C>=0&&T1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(h,S){h=h||10,S=S|0||1;var k;if(h===16||h==="hex"){k="";for(var I=0,T=0,N=0;N>>24-I&16777215,I+=2,I>=26&&(I-=26,N--),T!==0||N!==this.length-1?k=d[6-C.length]+C+k:k=C+k}for(T!==0&&(k=T.toString(16)+k);k.length%S!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(h===(h|0)&&h>=2&&h<=36){var m=v[h],R=g[h];k="";var F=this.clone();for(F.negative=0;!F.isZero();){var A=F.modrn(R).toString(h);F=F.idivn(R),F.isZero()?k=A+k:k=d[m-A.length]+A+k}for(this.isZero()&&(k="0"+k);k.length%S!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(h,S){return this.toArrayLike(o,h,S)}),s.prototype.toArray=function(h,S){return this.toArrayLike(Array,h,S)};var y=function(h,S){return h.allocUnsafe?h.allocUnsafe(S):new h(S)};s.prototype.toArrayLike=function(h,S,k){this._strip();var I=this.byteLength(),T=k||Math.max(1,I);n(I<=T,"byte array longer than desired length"),n(T>0,"Requested array length <= 0");var N=y(h,T),j=S==="le"?"LE":"BE";return this["_toArrayLike"+j](N,I),N},s.prototype._toArrayLikeLE=function(h,S){for(var k=0,I=0,T=0,N=0;T>8&255),k>16&255),N===6?(k>24&255),I=0,N=0):(I=j>>>24,N+=2)}if(k=0&&(h[k--]=j>>8&255),k>=0&&(h[k--]=j>>16&255),N===6?(k>=0&&(h[k--]=j>>24&255),I=0,N=0):(I=j>>>24,N+=2)}if(k>=0)for(h[k--]=I;k>=0;)h[k--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var S=h,k=0;return S>=4096&&(k+=13,S>>>=13),S>=64&&(k+=7,S>>>=7),S>=8&&(k+=4,S>>>=4),S>=2&&(k+=2,S>>>=2),k+S},s.prototype._zeroBits=function(h){if(h===0)return 26;var S=h,k=0;return S&8191||(k+=13,S>>>=13),S&127||(k+=7,S>>>=7),S&15||(k+=4,S>>>=4),S&3||(k+=2,S>>>=2),S&1||k++,k},s.prototype.bitLength=function(){var h=this.words[this.length-1],S=this._countBits(h);return(this.length-1)*26+S};function w(M){for(var h=new Array(M.bitLength()),S=0;S>>I&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,S=0;Sh.length?this.clone().ior(h):h.clone().ior(this)},s.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},s.prototype.iuand=function(h){var S;this.length>h.length?S=h:S=this;for(var k=0;kh.length?this.clone().iand(h):h.clone().iand(this)},s.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},s.prototype.iuxor=function(h){var S,k;this.length>h.length?(S=this,k=h):(S=h,k=this);for(var I=0;Ih.length?this.clone().ixor(h):h.clone().ixor(this)},s.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var S=Math.ceil(h/26)|0,k=h%26;this._expand(S),k>0&&S--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-k),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,S){n(typeof h=="number"&&h>=0);var k=h/26|0,I=h%26;return this._expand(k+1),S?this.words[k]=this.words[k]|1<h.length?(k=this,I=h):(k=h,I=this);for(var T=0,N=0;N>>26;for(;T!==0&&N>>26;if(this.length=k.length,T!==0)this.words[this.length]=T,this.length++;else if(k!==this)for(;Nh.length?this.clone().iadd(h):h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var S=this.iadd(h);return h.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var k=this.cmp(h);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,T;k>0?(I=this,T=h):(I=h,T=this);for(var N=0,j=0;j>26,this.words[j]=S&67108863;for(;N!==0&&j>26,this.words[j]=S&67108863;if(N===0&&j>>26,F=C&67108863,A=Math.min(m,h.length-1),$=Math.max(0,m-M.length+1);$<=A;$++){var V=m-$|0;I=M.words[V]|0,T=h.words[$]|0,N=I*T+F,R+=N/67108864|0,F=N&67108863}S.words[m]=F|0,C=R|0}return C!==0?S.words[m]=C|0:S.length--,S._strip()}var b=function(h,S,k){var I=h.words,T=S.words,N=k.words,j=0,C,m,R,F=I[0]|0,A=F&8191,$=F>>>13,V=I[1]|0,q=V&8191,Y=V>>>13,ae=I[2]|0,re=ae&8191,ne=ae>>>13,Me=I[3]|0,de=Me&8191,Ee=Me>>>13,Qt=I[4]|0,We=Qt&8191,ft=Qt>>>13,ai=I[5]|0,ut=ai&8191,Je=ai>>>13,bn=I[6]|0,nt=bn&8191,pt=bn>>>13,li=I[7]|0,Ve=li&8191,it=li>>>13,Ri=I[8]|0,lt=Ri&8191,At=Ri>>>13,$r=I[9]|0,mt=$r&8191,gt=$r>>>13,_i=T[0]|0,St=_i&8191,xt=_i>>>13,zn=T[1]|0,bt=zn&8191,dt=zn>>>13,cs=T[2]|0,wt=cs&8191,Ct=cs>>>13,Ii=T[3]|0,kt=Ii&8191,U=Ii>>>13,K=T[4]|0,Q=K&8191,se=K>>>13,ve=T[5]|0,ge=ve&8191,he=ve>>>13,pe=T[6]|0,xe=pe&8191,me=pe>>>13,Lt=T[7]|0,Oe=Lt&8191,ye=Lt>>>13,Xe=T[8]|0,Pe=Xe&8191,st=Xe>>>13,Fr=T[9]|0,Ze=Fr&8191,et=Fr>>>13;k.negative=h.negative^S.negative,k.length=19,C=Math.imul(A,St),m=Math.imul(A,xt),m=m+Math.imul($,St)|0,R=Math.imul($,xt);var Xr=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,C=Math.imul(q,St),m=Math.imul(q,xt),m=m+Math.imul(Y,St)|0,R=Math.imul(Y,xt),C=C+Math.imul(A,bt)|0,m=m+Math.imul(A,dt)|0,m=m+Math.imul($,bt)|0,R=R+Math.imul($,dt)|0;var gr=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(gr>>>26)|0,gr&=67108863,C=Math.imul(re,St),m=Math.imul(re,xt),m=m+Math.imul(ne,St)|0,R=Math.imul(ne,xt),C=C+Math.imul(q,bt)|0,m=m+Math.imul(q,dt)|0,m=m+Math.imul(Y,bt)|0,R=R+Math.imul(Y,dt)|0,C=C+Math.imul(A,wt)|0,m=m+Math.imul(A,Ct)|0,m=m+Math.imul($,wt)|0,R=R+Math.imul($,Ct)|0;var wn=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(de,St),m=Math.imul(de,xt),m=m+Math.imul(Ee,St)|0,R=Math.imul(Ee,xt),C=C+Math.imul(re,bt)|0,m=m+Math.imul(re,dt)|0,m=m+Math.imul(ne,bt)|0,R=R+Math.imul(ne,dt)|0,C=C+Math.imul(q,wt)|0,m=m+Math.imul(q,Ct)|0,m=m+Math.imul(Y,wt)|0,R=R+Math.imul(Y,Ct)|0,C=C+Math.imul(A,kt)|0,m=m+Math.imul(A,U)|0,m=m+Math.imul($,kt)|0,R=R+Math.imul($,U)|0;var En=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(En>>>26)|0,En&=67108863,C=Math.imul(We,St),m=Math.imul(We,xt),m=m+Math.imul(ft,St)|0,R=Math.imul(ft,xt),C=C+Math.imul(de,bt)|0,m=m+Math.imul(de,dt)|0,m=m+Math.imul(Ee,bt)|0,R=R+Math.imul(Ee,dt)|0,C=C+Math.imul(re,wt)|0,m=m+Math.imul(re,Ct)|0,m=m+Math.imul(ne,wt)|0,R=R+Math.imul(ne,Ct)|0,C=C+Math.imul(q,kt)|0,m=m+Math.imul(q,U)|0,m=m+Math.imul(Y,kt)|0,R=R+Math.imul(Y,U)|0,C=C+Math.imul(A,Q)|0,m=m+Math.imul(A,se)|0,m=m+Math.imul($,Q)|0,R=R+Math.imul($,se)|0;var An=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(An>>>26)|0,An&=67108863,C=Math.imul(ut,St),m=Math.imul(ut,xt),m=m+Math.imul(Je,St)|0,R=Math.imul(Je,xt),C=C+Math.imul(We,bt)|0,m=m+Math.imul(We,dt)|0,m=m+Math.imul(ft,bt)|0,R=R+Math.imul(ft,dt)|0,C=C+Math.imul(de,wt)|0,m=m+Math.imul(de,Ct)|0,m=m+Math.imul(Ee,wt)|0,R=R+Math.imul(Ee,Ct)|0,C=C+Math.imul(re,kt)|0,m=m+Math.imul(re,U)|0,m=m+Math.imul(ne,kt)|0,R=R+Math.imul(ne,U)|0,C=C+Math.imul(q,Q)|0,m=m+Math.imul(q,se)|0,m=m+Math.imul(Y,Q)|0,R=R+Math.imul(Y,se)|0,C=C+Math.imul(A,ge)|0,m=m+Math.imul(A,he)|0,m=m+Math.imul($,ge)|0,R=R+Math.imul($,he)|0;var De=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(De>>>26)|0,De&=67108863,C=Math.imul(nt,St),m=Math.imul(nt,xt),m=m+Math.imul(pt,St)|0,R=Math.imul(pt,xt),C=C+Math.imul(ut,bt)|0,m=m+Math.imul(ut,dt)|0,m=m+Math.imul(Je,bt)|0,R=R+Math.imul(Je,dt)|0,C=C+Math.imul(We,wt)|0,m=m+Math.imul(We,Ct)|0,m=m+Math.imul(ft,wt)|0,R=R+Math.imul(ft,Ct)|0,C=C+Math.imul(de,kt)|0,m=m+Math.imul(de,U)|0,m=m+Math.imul(Ee,kt)|0,R=R+Math.imul(Ee,U)|0,C=C+Math.imul(re,Q)|0,m=m+Math.imul(re,se)|0,m=m+Math.imul(ne,Q)|0,R=R+Math.imul(ne,se)|0,C=C+Math.imul(q,ge)|0,m=m+Math.imul(q,he)|0,m=m+Math.imul(Y,ge)|0,R=R+Math.imul(Y,he)|0,C=C+Math.imul(A,xe)|0,m=m+Math.imul(A,me)|0,m=m+Math.imul($,xe)|0,R=R+Math.imul($,me)|0;var xr=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(xr>>>26)|0,xr&=67108863,C=Math.imul(Ve,St),m=Math.imul(Ve,xt),m=m+Math.imul(it,St)|0,R=Math.imul(it,xt),C=C+Math.imul(nt,bt)|0,m=m+Math.imul(nt,dt)|0,m=m+Math.imul(pt,bt)|0,R=R+Math.imul(pt,dt)|0,C=C+Math.imul(ut,wt)|0,m=m+Math.imul(ut,Ct)|0,m=m+Math.imul(Je,wt)|0,R=R+Math.imul(Je,Ct)|0,C=C+Math.imul(We,kt)|0,m=m+Math.imul(We,U)|0,m=m+Math.imul(ft,kt)|0,R=R+Math.imul(ft,U)|0,C=C+Math.imul(de,Q)|0,m=m+Math.imul(de,se)|0,m=m+Math.imul(Ee,Q)|0,R=R+Math.imul(Ee,se)|0,C=C+Math.imul(re,ge)|0,m=m+Math.imul(re,he)|0,m=m+Math.imul(ne,ge)|0,R=R+Math.imul(ne,he)|0,C=C+Math.imul(q,xe)|0,m=m+Math.imul(q,me)|0,m=m+Math.imul(Y,xe)|0,R=R+Math.imul(Y,me)|0,C=C+Math.imul(A,Oe)|0,m=m+Math.imul(A,ye)|0,m=m+Math.imul($,Oe)|0,R=R+Math.imul($,ye)|0;var Ur=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,C=Math.imul(lt,St),m=Math.imul(lt,xt),m=m+Math.imul(At,St)|0,R=Math.imul(At,xt),C=C+Math.imul(Ve,bt)|0,m=m+Math.imul(Ve,dt)|0,m=m+Math.imul(it,bt)|0,R=R+Math.imul(it,dt)|0,C=C+Math.imul(nt,wt)|0,m=m+Math.imul(nt,Ct)|0,m=m+Math.imul(pt,wt)|0,R=R+Math.imul(pt,Ct)|0,C=C+Math.imul(ut,kt)|0,m=m+Math.imul(ut,U)|0,m=m+Math.imul(Je,kt)|0,R=R+Math.imul(Je,U)|0,C=C+Math.imul(We,Q)|0,m=m+Math.imul(We,se)|0,m=m+Math.imul(ft,Q)|0,R=R+Math.imul(ft,se)|0,C=C+Math.imul(de,ge)|0,m=m+Math.imul(de,he)|0,m=m+Math.imul(Ee,ge)|0,R=R+Math.imul(Ee,he)|0,C=C+Math.imul(re,xe)|0,m=m+Math.imul(re,me)|0,m=m+Math.imul(ne,xe)|0,R=R+Math.imul(ne,me)|0,C=C+Math.imul(q,Oe)|0,m=m+Math.imul(q,ye)|0,m=m+Math.imul(Y,Oe)|0,R=R+Math.imul(Y,ye)|0,C=C+Math.imul(A,Pe)|0,m=m+Math.imul(A,st)|0,m=m+Math.imul($,Pe)|0,R=R+Math.imul($,st)|0;var sr=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(sr>>>26)|0,sr&=67108863,C=Math.imul(mt,St),m=Math.imul(mt,xt),m=m+Math.imul(gt,St)|0,R=Math.imul(gt,xt),C=C+Math.imul(lt,bt)|0,m=m+Math.imul(lt,dt)|0,m=m+Math.imul(At,bt)|0,R=R+Math.imul(At,dt)|0,C=C+Math.imul(Ve,wt)|0,m=m+Math.imul(Ve,Ct)|0,m=m+Math.imul(it,wt)|0,R=R+Math.imul(it,Ct)|0,C=C+Math.imul(nt,kt)|0,m=m+Math.imul(nt,U)|0,m=m+Math.imul(pt,kt)|0,R=R+Math.imul(pt,U)|0,C=C+Math.imul(ut,Q)|0,m=m+Math.imul(ut,se)|0,m=m+Math.imul(Je,Q)|0,R=R+Math.imul(Je,se)|0,C=C+Math.imul(We,ge)|0,m=m+Math.imul(We,he)|0,m=m+Math.imul(ft,ge)|0,R=R+Math.imul(ft,he)|0,C=C+Math.imul(de,xe)|0,m=m+Math.imul(de,me)|0,m=m+Math.imul(Ee,xe)|0,R=R+Math.imul(Ee,me)|0,C=C+Math.imul(re,Oe)|0,m=m+Math.imul(re,ye)|0,m=m+Math.imul(ne,Oe)|0,R=R+Math.imul(ne,ye)|0,C=C+Math.imul(q,Pe)|0,m=m+Math.imul(q,st)|0,m=m+Math.imul(Y,Pe)|0,R=R+Math.imul(Y,st)|0,C=C+Math.imul(A,Ze)|0,m=m+Math.imul(A,et)|0,m=m+Math.imul($,Ze)|0,R=R+Math.imul($,et)|0;var fs=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(fs>>>26)|0,fs&=67108863,C=Math.imul(mt,bt),m=Math.imul(mt,dt),m=m+Math.imul(gt,bt)|0,R=Math.imul(gt,dt),C=C+Math.imul(lt,wt)|0,m=m+Math.imul(lt,Ct)|0,m=m+Math.imul(At,wt)|0,R=R+Math.imul(At,Ct)|0,C=C+Math.imul(Ve,kt)|0,m=m+Math.imul(Ve,U)|0,m=m+Math.imul(it,kt)|0,R=R+Math.imul(it,U)|0,C=C+Math.imul(nt,Q)|0,m=m+Math.imul(nt,se)|0,m=m+Math.imul(pt,Q)|0,R=R+Math.imul(pt,se)|0,C=C+Math.imul(ut,ge)|0,m=m+Math.imul(ut,he)|0,m=m+Math.imul(Je,ge)|0,R=R+Math.imul(Je,he)|0,C=C+Math.imul(We,xe)|0,m=m+Math.imul(We,me)|0,m=m+Math.imul(ft,xe)|0,R=R+Math.imul(ft,me)|0,C=C+Math.imul(de,Oe)|0,m=m+Math.imul(de,ye)|0,m=m+Math.imul(Ee,Oe)|0,R=R+Math.imul(Ee,ye)|0,C=C+Math.imul(re,Pe)|0,m=m+Math.imul(re,st)|0,m=m+Math.imul(ne,Pe)|0,R=R+Math.imul(ne,st)|0,C=C+Math.imul(q,Ze)|0,m=m+Math.imul(q,et)|0,m=m+Math.imul(Y,Ze)|0,R=R+Math.imul(Y,et)|0;var Na=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(Na>>>26)|0,Na&=67108863,C=Math.imul(mt,wt),m=Math.imul(mt,Ct),m=m+Math.imul(gt,wt)|0,R=Math.imul(gt,Ct),C=C+Math.imul(lt,kt)|0,m=m+Math.imul(lt,U)|0,m=m+Math.imul(At,kt)|0,R=R+Math.imul(At,U)|0,C=C+Math.imul(Ve,Q)|0,m=m+Math.imul(Ve,se)|0,m=m+Math.imul(it,Q)|0,R=R+Math.imul(it,se)|0,C=C+Math.imul(nt,ge)|0,m=m+Math.imul(nt,he)|0,m=m+Math.imul(pt,ge)|0,R=R+Math.imul(pt,he)|0,C=C+Math.imul(ut,xe)|0,m=m+Math.imul(ut,me)|0,m=m+Math.imul(Je,xe)|0,R=R+Math.imul(Je,me)|0,C=C+Math.imul(We,Oe)|0,m=m+Math.imul(We,ye)|0,m=m+Math.imul(ft,Oe)|0,R=R+Math.imul(ft,ye)|0,C=C+Math.imul(de,Pe)|0,m=m+Math.imul(de,st)|0,m=m+Math.imul(Ee,Pe)|0,R=R+Math.imul(Ee,st)|0,C=C+Math.imul(re,Ze)|0,m=m+Math.imul(re,et)|0,m=m+Math.imul(ne,Ze)|0,R=R+Math.imul(ne,et)|0;var dc=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(dc>>>26)|0,dc&=67108863,C=Math.imul(mt,kt),m=Math.imul(mt,U),m=m+Math.imul(gt,kt)|0,R=Math.imul(gt,U),C=C+Math.imul(lt,Q)|0,m=m+Math.imul(lt,se)|0,m=m+Math.imul(At,Q)|0,R=R+Math.imul(At,se)|0,C=C+Math.imul(Ve,ge)|0,m=m+Math.imul(Ve,he)|0,m=m+Math.imul(it,ge)|0,R=R+Math.imul(it,he)|0,C=C+Math.imul(nt,xe)|0,m=m+Math.imul(nt,me)|0,m=m+Math.imul(pt,xe)|0,R=R+Math.imul(pt,me)|0,C=C+Math.imul(ut,Oe)|0,m=m+Math.imul(ut,ye)|0,m=m+Math.imul(Je,Oe)|0,R=R+Math.imul(Je,ye)|0,C=C+Math.imul(We,Pe)|0,m=m+Math.imul(We,st)|0,m=m+Math.imul(ft,Pe)|0,R=R+Math.imul(ft,st)|0,C=C+Math.imul(de,Ze)|0,m=m+Math.imul(de,et)|0,m=m+Math.imul(Ee,Ze)|0,R=R+Math.imul(Ee,et)|0;var a1=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(a1>>>26)|0,a1&=67108863,C=Math.imul(mt,Q),m=Math.imul(mt,se),m=m+Math.imul(gt,Q)|0,R=Math.imul(gt,se),C=C+Math.imul(lt,ge)|0,m=m+Math.imul(lt,he)|0,m=m+Math.imul(At,ge)|0,R=R+Math.imul(At,he)|0,C=C+Math.imul(Ve,xe)|0,m=m+Math.imul(Ve,me)|0,m=m+Math.imul(it,xe)|0,R=R+Math.imul(it,me)|0,C=C+Math.imul(nt,Oe)|0,m=m+Math.imul(nt,ye)|0,m=m+Math.imul(pt,Oe)|0,R=R+Math.imul(pt,ye)|0,C=C+Math.imul(ut,Pe)|0,m=m+Math.imul(ut,st)|0,m=m+Math.imul(Je,Pe)|0,R=R+Math.imul(Je,st)|0,C=C+Math.imul(We,Ze)|0,m=m+Math.imul(We,et)|0,m=m+Math.imul(ft,Ze)|0,R=R+Math.imul(ft,et)|0;var l1=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(l1>>>26)|0,l1&=67108863,C=Math.imul(mt,ge),m=Math.imul(mt,he),m=m+Math.imul(gt,ge)|0,R=Math.imul(gt,he),C=C+Math.imul(lt,xe)|0,m=m+Math.imul(lt,me)|0,m=m+Math.imul(At,xe)|0,R=R+Math.imul(At,me)|0,C=C+Math.imul(Ve,Oe)|0,m=m+Math.imul(Ve,ye)|0,m=m+Math.imul(it,Oe)|0,R=R+Math.imul(it,ye)|0,C=C+Math.imul(nt,Pe)|0,m=m+Math.imul(nt,st)|0,m=m+Math.imul(pt,Pe)|0,R=R+Math.imul(pt,st)|0,C=C+Math.imul(ut,Ze)|0,m=m+Math.imul(ut,et)|0,m=m+Math.imul(Je,Ze)|0,R=R+Math.imul(Je,et)|0;var c1=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(c1>>>26)|0,c1&=67108863,C=Math.imul(mt,xe),m=Math.imul(mt,me),m=m+Math.imul(gt,xe)|0,R=Math.imul(gt,me),C=C+Math.imul(lt,Oe)|0,m=m+Math.imul(lt,ye)|0,m=m+Math.imul(At,Oe)|0,R=R+Math.imul(At,ye)|0,C=C+Math.imul(Ve,Pe)|0,m=m+Math.imul(Ve,st)|0,m=m+Math.imul(it,Pe)|0,R=R+Math.imul(it,st)|0,C=C+Math.imul(nt,Ze)|0,m=m+Math.imul(nt,et)|0,m=m+Math.imul(pt,Ze)|0,R=R+Math.imul(pt,et)|0;var f1=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(f1>>>26)|0,f1&=67108863,C=Math.imul(mt,Oe),m=Math.imul(mt,ye),m=m+Math.imul(gt,Oe)|0,R=Math.imul(gt,ye),C=C+Math.imul(lt,Pe)|0,m=m+Math.imul(lt,st)|0,m=m+Math.imul(At,Pe)|0,R=R+Math.imul(At,st)|0,C=C+Math.imul(Ve,Ze)|0,m=m+Math.imul(Ve,et)|0,m=m+Math.imul(it,Ze)|0,R=R+Math.imul(it,et)|0;var u1=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(u1>>>26)|0,u1&=67108863,C=Math.imul(mt,Pe),m=Math.imul(mt,st),m=m+Math.imul(gt,Pe)|0,R=Math.imul(gt,st),C=C+Math.imul(lt,Ze)|0,m=m+Math.imul(lt,et)|0,m=m+Math.imul(At,Ze)|0,R=R+Math.imul(At,et)|0;var d1=(j+C|0)+((m&8191)<<13)|0;j=(R+(m>>>13)|0)+(d1>>>26)|0,d1&=67108863,C=Math.imul(mt,Ze),m=Math.imul(mt,et),m=m+Math.imul(gt,Ze)|0,R=Math.imul(gt,et);var h1=(j+C|0)+((m&8191)<<13)|0;return j=(R+(m>>>13)|0)+(h1>>>26)|0,h1&=67108863,N[0]=Xr,N[1]=gr,N[2]=wn,N[3]=En,N[4]=An,N[5]=De,N[6]=xr,N[7]=Ur,N[8]=sr,N[9]=fs,N[10]=Na,N[11]=dc,N[12]=a1,N[13]=l1,N[14]=c1,N[15]=f1,N[16]=u1,N[17]=d1,N[18]=h1,j!==0&&(N[19]=j,k.length++),k};Math.imul||(b=x);function E(M,h,S){S.negative=h.negative^M.negative,S.length=M.length+h.length;for(var k=0,I=0,T=0;T>>26)|0,I+=N>>>26,N&=67108863}S.words[T]=j,k=N,N=I}return k!==0?S.words[T]=k:S.length--,S._strip()}function P(M,h,S){return E(M,h,S)}s.prototype.mulTo=function(h,S){var k,I=this.length+h.length;return this.length===10&&h.length===10?k=b(this,h,S):I<63?k=x(this,h,S):I<1024?k=E(this,h,S):k=P(this,h,S),k},s.prototype.mul=function(h){var S=new s(null);return S.words=new Array(this.length+h.length),this.mulTo(h,S)},s.prototype.mulf=function(h){var S=new s(null);return S.words=new Array(this.length+h.length),P(this,h,S)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var S=h<0;S&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var k=0,I=0;I>=26,k+=T/67108864|0,k+=N>>>26,this.words[I]=N&67108863}return k!==0&&(this.words[I]=k,this.length++),S?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var S=w(h);if(S.length===0)return new s(1);for(var k=this,I=0;I=0);var S=h%26,k=(h-S)/26,I=67108863>>>26-S<<26-S,T;if(S!==0){var N=0;for(T=0;T>>26-S}N&&(this.words[T]=N,this.length++)}if(k!==0){for(T=this.length-1;T>=0;T--)this.words[T+k]=this.words[T];for(T=0;T=0);var I;S?I=(S-S%26)/26:I=0;var T=h%26,N=Math.min((h-T)/26,this.length),j=67108863^67108863>>>T<N)for(this.length-=N,m=0;m=0&&(R!==0||m>=I);m--){var F=this.words[m]|0;this.words[m]=R<<26-T|F>>>T,R=F&j}return C&&R!==0&&(C.words[C.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,S,k){return n(this.negative===0),this.iushrn(h,S,k)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var S=h%26,k=(h-S)/26,I=1<=0);var S=h%26,k=(h-S)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(S!==0&&k++,this.length=Math.min(k,this.length),S!==0){var I=67108863^67108863>>>S<=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},s.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S>26)-(C/67108864|0),this.words[T+k]=N&67108863}for(;T>26,this.words[T+k]=N&67108863;if(j===0)return this._strip();for(n(j===-1),j=0,T=0;T>26,this.words[T]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,S){var k=this.length-h.length,I=this.clone(),T=h,N=T.words[T.length-1]|0,j=this._countBits(N);k=26-j,k!==0&&(T=T.ushln(k),I.iushln(k),N=T.words[T.length-1]|0);var C=I.length-T.length,m;if(S!=="mod"){m=new s(null),m.length=C+1,m.words=new Array(m.length);for(var R=0;R=0;A--){var $=(I.words[T.length+A]|0)*67108864+(I.words[T.length+A-1]|0);for($=Math.min($/N|0,67108863),I._ishlnsubmul(T,$,A);I.negative!==0;)$--,I.negative=0,I._ishlnsubmul(T,1,A),I.isZero()||(I.negative^=1);m&&(m.words[A]=$)}return m&&m._strip(),I._strip(),S!=="div"&&k!==0&&I.iushrn(k),{div:m||null,mod:I}},s.prototype.divmod=function(h,S,k){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var I,T,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,S),S!=="mod"&&(I=N.div.neg()),S!=="div"&&(T=N.mod.neg(),k&&T.negative!==0&&T.iadd(h)),{div:I,mod:T}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),S),S!=="mod"&&(I=N.div.neg()),{div:I,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),S),S!=="div"&&(T=N.mod.neg(),k&&T.negative!==0&&T.isub(h)),{div:N.div,mod:T}):h.length>this.length||this.cmp(h)<0?{div:new s(0),mod:this}:h.length===1?S==="div"?{div:this.divn(h.words[0]),mod:null}:S==="mod"?{div:null,mod:new s(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}:this._wordDiv(h,S)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var S=this.divmod(h);if(S.mod.isZero())return S.div;var k=S.div.negative!==0?S.mod.isub(h):S.mod,I=h.ushrn(1),T=h.andln(1),N=k.cmp(I);return N<0||T===1&&N===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},s.prototype.modrn=function(h){var S=h<0;S&&(h=-h),n(h<=67108863);for(var k=(1<<26)%h,I=0,T=this.length-1;T>=0;T--)I=(k*I+(this.words[T]|0))%h;return S?-I:I},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var S=h<0;S&&(h=-h),n(h<=67108863);for(var k=0,I=this.length-1;I>=0;I--){var T=(this.words[I]|0)+k*67108864;this.words[I]=T/h|0,k=T%h}return this._strip(),S?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();S.negative!==0?S=S.umod(h):S=S.clone();for(var I=new s(1),T=new s(0),N=new s(0),j=new s(1),C=0;S.isEven()&&k.isEven();)S.iushrn(1),k.iushrn(1),++C;for(var m=k.clone(),R=S.clone();!S.isZero();){for(var F=0,A=1;!(S.words[0]&A)&&F<26;++F,A<<=1);if(F>0)for(S.iushrn(F);F-- >0;)(I.isOdd()||T.isOdd())&&(I.iadd(m),T.isub(R)),I.iushrn(1),T.iushrn(1);for(var $=0,V=1;!(k.words[0]&V)&&$<26;++$,V<<=1);if($>0)for(k.iushrn($);$-- >0;)(N.isOdd()||j.isOdd())&&(N.iadd(m),j.isub(R)),N.iushrn(1),j.iushrn(1);S.cmp(k)>=0?(S.isub(k),I.isub(N),T.isub(j)):(k.isub(S),N.isub(I),j.isub(T))}return{a:N,b:j,gcd:k.iushln(C)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();S.negative!==0?S=S.umod(h):S=S.clone();for(var I=new s(1),T=new s(0),N=k.clone();S.cmpn(1)>0&&k.cmpn(1)>0;){for(var j=0,C=1;!(S.words[0]&C)&&j<26;++j,C<<=1);if(j>0)for(S.iushrn(j);j-- >0;)I.isOdd()&&I.iadd(N),I.iushrn(1);for(var m=0,R=1;!(k.words[0]&R)&&m<26;++m,R<<=1);if(m>0)for(k.iushrn(m);m-- >0;)T.isOdd()&&T.iadd(N),T.iushrn(1);S.cmp(k)>=0?(S.isub(k),I.isub(T)):(k.isub(S),T.isub(I))}var F;return S.cmpn(1)===0?F=I:F=T,F.cmpn(0)<0&&F.iadd(h),F},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var S=this.clone(),k=h.clone();S.negative=0,k.negative=0;for(var I=0;S.isEven()&&k.isEven();I++)S.iushrn(1),k.iushrn(1);do{for(;S.isEven();)S.iushrn(1);for(;k.isEven();)k.iushrn(1);var T=S.cmp(k);if(T<0){var N=S;S=k,k=N}else if(T===0||k.cmpn(1)===0)break;S.isub(k)}while(!0);return k.iushln(I)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h=="number");var S=h%26,k=(h-S)/26,I=1<>>26,j&=67108863,this.words[N]=j}return T!==0&&(this.words[N]=T,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var S=h<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var k;if(this.length>1)k=1;else{S&&(h=-h),n(h<=67108863,"Number is too big");var I=this.words[0]|0;k=I===h?0:Ih.length)return 1;if(this.length=0;k--){var I=this.words[k]|0,T=h.words[k]|0;if(I!==T){IT&&(S=1);break}}return S},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new G(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var O={k256:null,p224:null,p192:null,p25519:null};function D(M,h){this.name=M,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var h=new s(null);return h.words=new Array(Math.ceil(this.n/13)),h},D.prototype.ireduce=function(h){var S=h,k;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),k=S.bitLength();while(k>this.n);var I=k0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},D.prototype.split=function(h,S){h.iushrn(this.n,0,S)},D.prototype.imulK=function(h){return h.imul(this.k)};function _(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(_,D),_.prototype.split=function(h,S){for(var k=4194303,I=Math.min(h.length,9),T=0;T>>22,N=j}N>>>=22,h.words[T-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},_.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var S=0,k=0;k>>=26,h.words[k]=T,S=I}return S!==0&&(h.words[h.length++]=S),h},s._prime=function(h){if(O[h])return O[h];var S;if(h==="k256")S=new _;else if(h==="p224")S=new L;else if(h==="p192")S=new z;else if(h==="p25519")S=new H;else throw new Error("Unknown prime "+h);return O[h]=S,S};function G(M){if(typeof M=="string"){var h=s._prime(M);this.m=h.p,this.prime=h}else n(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}G.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},G.prototype._verify2=function(h,S){n((h.negative|S.negative)===0,"red works only with positives"),n(h.red&&h.red===S.red,"red works only with red numbers")},G.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},G.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},G.prototype.add=function(h,S){this._verify2(h,S);var k=h.add(S);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},G.prototype.iadd=function(h,S){this._verify2(h,S);var k=h.iadd(S);return k.cmp(this.m)>=0&&k.isub(this.m),k},G.prototype.sub=function(h,S){this._verify2(h,S);var k=h.sub(S);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},G.prototype.isub=function(h,S){this._verify2(h,S);var k=h.isub(S);return k.cmpn(0)<0&&k.iadd(this.m),k},G.prototype.shl=function(h,S){return this._verify1(h),this.imod(h.ushln(S))},G.prototype.imul=function(h,S){return this._verify2(h,S),this.imod(h.imul(S))},G.prototype.mul=function(h,S){return this._verify2(h,S),this.imod(h.mul(S))},G.prototype.isqr=function(h){return this.imul(h,h.clone())},G.prototype.sqr=function(h){return this.mul(h,h)},G.prototype.sqrt=function(h){if(h.isZero())return h.clone();var S=this.m.andln(3);if(n(S%2===1),S===3){var k=this.m.add(new s(1)).iushrn(2);return this.pow(h,k)}for(var I=this.m.subn(1),T=0;!I.isZero()&&I.andln(1)===0;)T++,I.iushrn(1);n(!I.isZero());var N=new s(1).toRed(this),j=N.redNeg(),C=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new s(2*m*m).toRed(this);this.pow(m,C).cmp(j)!==0;)m.redIAdd(j);for(var R=this.pow(m,I),F=this.pow(h,I.addn(1).iushrn(1)),A=this.pow(h,I),$=T;A.cmp(N)!==0;){for(var V=A,q=0;V.cmp(N)!==0;q++)V=V.redSqr();n(q<$);var Y=this.pow(R,new s(1).iushln($-q-1));F=F.redMul(Y),R=Y.redSqr(),A=A.redMul(R),$=q}return F},G.prototype.invm=function(h){var S=h._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},G.prototype.pow=function(h,S){if(S.isZero())return new s(1).toRed(this);if(S.cmpn(1)===0)return h.clone();var k=4,I=new Array(1<=0;T--){for(var R=S.words[T],F=m-1;F>=0;F--){var A=R>>F&1;if(N!==I[0]&&(N=this.sqr(N)),A===0&&j===0){C=0;continue}j<<=1,j|=A,C++,!(C!==k&&(T!==0||F!==0))&&(N=this.mul(N,I[j]),C=0,j=0)}m=26}return N},G.prototype.convertTo=function(h){var S=h.umod(this.m);return S===h?S.clone():S},G.prototype.convertFrom=function(h){var S=h.clone();return S.red=null,S},s.mont=function(h){return new X(h)};function X(M){G.call(this,M),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(X,G),X.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},X.prototype.convertFrom=function(h){var S=this.imod(h.mul(this.rinv));return S.red=null,S},X.prototype.imul=function(h,S){if(h.isZero()||S.isZero())return h.words[0]=0,h.length=1,h;var k=h.imul(S),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=k.isub(I).iushrn(this.shift),N=T;return T.cmp(this.m)>=0?N=T.isub(this.m):T.cmpn(0)<0&&(N=T.iadd(this.m)),N._forceRed(this)},X.prototype.mul=function(h,S){if(h.isZero()||S.isZero())return new s(0)._forceRed(this);var k=h.mul(S),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=k.isub(I).iushrn(this.shift),N=T;return T.cmp(this.m)>=0?N=T.isub(this.m):T.cmpn(0)<0&&(N=T.iadd(this.m)),N._forceRed(this)},X.prototype.invm=function(h){var S=this.imod(h._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(t,Qs)})(ox);var Yz=ox.exports;const Ne=Ds(Yz),Qz="logger/5.7.0";let wE=!1,EE=!1;const Nd={debug:1,default:2,info:2,warning:3,error:4,off:5};let AE=Nd.default,dv=null;function Jz(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const SE=Jz();var Mh;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Mh||(Mh={}));var Kn;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Kn||(Kn={}));const CE="0123456789abcdef";let W=class wr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Nd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(AE>Nd[n])&&console.log.apply(console,r)}debug(...e){this._log(wr.levels.DEBUG,e)}info(...e){this._log(wr.levels.INFO,e)}warn(...e){this._log(wr.levels.WARNING,e)}makeError(e,r,n){if(EE)return this.makeError("censored error",r,{});r||(r=wr.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(l=>{const c=n[l];try{if(c instanceof Uint8Array){let f="";for(let u=0;u>4],f+=CE[c[u]&15];i.push(l+"=Uint8Array(0x"+f+")")}else i.push(l+"="+JSON.stringify(c))}catch{i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const s=e;let o="";switch(r){case Kn.NUMERIC_FAULT:{o="NUMERIC_FAULT";const l=e;switch(l){case"overflow":case"underflow":case"division-by-zero":o+="-"+l;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Kn.CALL_EXCEPTION:case Kn.INSUFFICIENT_FUNDS:case Kn.MISSING_NEW:case Kn.NONCE_EXPIRED:case Kn.REPLACEMENT_UNDERPRICED:case Kn.TRANSACTION_REPLACED:case Kn.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const a=new Error(e);return a.reason=s,a.code=r,Object.keys(n).forEach(function(l){a[l]=n[l]}),a}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,wr.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i)}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i)}checkNormalize(e){SE&&this.throwError("platform missing String.prototype.normalize",wr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:SE})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,wr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,wr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,wr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",wr.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",wr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",wr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return dv||(dv=new wr(Qz)),dv}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",wr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),wE){if(!e)return;this.globalLogger().throwError("error censorship permanent",wr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}EE=!!e,wE=!!r}static setLogLevel(e){const r=Nd[e.toLowerCase()];if(r==null){wr.globalLogger().warn("invalid log level - "+e);return}AE=r}static from(e){return new wr(e)}};W.errors=Kn;W.levels=Mh;const Xz=Object.freeze(Object.defineProperty({__proto__:null,get ErrorCode(){return Kn},get LogLevel(){return Mh},Logger:W},Symbol.toStringTag,{value:"Module"})),Zz="bytes/5.7.0",Zt=new W(Zz);function B7(t){return!!t.toHexString}function Al(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Al(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function xu(t){return He(t)&&!(t.length%2)||_a(t)}function kE(t){return typeof t=="number"&&t==t&&t%1===0}function _a(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!kE(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function le(t,e){if(e||(e={}),typeof t=="number"){Zt.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),Al(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),B7(t)&&(t=t.toHexString()),He(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Zt.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;ile(i)),r=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(r);return e.reduce((i,s)=>(n.set(s,i),i+s.length),0),Al(n)}function Qi(t){let e=le(t);if(e.length===0)return e;let r=0;for(;re&&Zt.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),Al(r)}function He(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const hv="0123456789abcdef";function ue(t,e){if(e||(e={}),typeof t=="number"){Zt.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=hv[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),B7(t))return t.toHexString();if(He(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Zt.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(_a(t)){let r="0x";for(let n=0;n>4]+hv[i&15]}return r}return Zt.throwArgumentError("invalid hexlify value","value",t)}function ts(t){if(typeof t!="string")t=ue(t);else if(!He(t)||t.length%2)return null;return(t.length-2)/2}function ur(t,e,r){return typeof t!="string"?t=ue(t):(!He(t)||t.length%2)&&Zt.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function rn(t){let e="0x";return t.forEach(r=>{e+=ue(r).substring(2)}),e}function B0(t){const e=j7(ue(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function j7(t){typeof t!="string"&&(t=ue(t)),He(t)||Zt.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Zt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Ia(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(xu(t)){let r=le(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=ue(r.slice(0,32)),e.s=ue(r.slice(32,64))):r.length===65?(e.r=ue(r.slice(0,32)),e.s=ue(r.slice(32,64)),e.v=r[64]):Zt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Zt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=ue(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const i=hf(le(e._vs),32);e._vs=ue(i);const s=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=s:e.recoveryParam!==s&&Zt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const o=ue(i);e.s==null?e.s=o:e.s!==o&&Zt.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Zt.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const i=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==i&&Zt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!He(e.r)?Zt.throwArgumentError("signature missing or invalid r","signature",t):e.r=Rt(e.r,32),e.s==null||!He(e.s)?Zt.throwArgumentError("signature missing or invalid s","signature",t):e.s=Rt(e.s,32);const r=le(e.s);r[0]>=128&&Zt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=ue(r);e._vs&&(He(e._vs)||Zt.throwArgumentError("signature invalid _vs","signature",t),e._vs=Rt(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Zt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function Ap(t){return t=Ia(t),ue(Ot([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const eV=Object.freeze(Object.defineProperty({__proto__:null,arrayify:le,concat:Ot,hexConcat:rn,hexDataLength:ts,hexDataSlice:ur,hexStripZeros:j7,hexValue:B0,hexZeroPad:Rt,hexlify:ue,isBytes:_a,isBytesLike:xu,isHexString:He,joinSignature:Ap,splitSignature:Ia,stripZeros:Qi,zeroPad:hf},Symbol.toStringTag,{value:"Module"})),$7="bignumber/5.7.0";var Wf=Ne.BN;const vs=new W($7),vv={},PE=9007199254740991;function tV(t){return t!=null&&(ce.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||He(t)||typeof t=="bigint"||_a(t))}let TE=!1;class ce{constructor(e,r){e!==vv&&vs.throwError("cannot call constructor directly; use BigNumber.from",W.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return ln($e(this).fromTwos(e))}toTwos(e){return ln($e(this).toTwos(e))}abs(){return this._hex[0]==="-"?ce.from(this._hex.substring(1)):this}add(e){return ln($e(this).add($e(e)))}sub(e){return ln($e(this).sub($e(e)))}div(e){return ce.from(e).isZero()&&qn("division-by-zero","div"),ln($e(this).div($e(e)))}mul(e){return ln($e(this).mul($e(e)))}mod(e){const r=$e(e);return r.isNeg()&&qn("division-by-zero","mod"),ln($e(this).umod(r))}pow(e){const r=$e(e);return r.isNeg()&&qn("negative-power","pow"),ln($e(this).pow(r))}and(e){const r=$e(e);return(this.isNegative()||r.isNeg())&&qn("unbound-bitwise-result","and"),ln($e(this).and(r))}or(e){const r=$e(e);return(this.isNegative()||r.isNeg())&&qn("unbound-bitwise-result","or"),ln($e(this).or(r))}xor(e){const r=$e(e);return(this.isNegative()||r.isNeg())&&qn("unbound-bitwise-result","xor"),ln($e(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&qn("negative-width","mask"),ln($e(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&qn("negative-width","shl"),ln($e(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&qn("negative-width","shr"),ln($e(this).shrn(e))}eq(e){return $e(this).eq($e(e))}lt(e){return $e(this).lt($e(e))}lte(e){return $e(this).lte($e(e))}gt(e){return $e(this).gt($e(e))}gte(e){return $e(this).gte($e(e))}isNegative(){return this._hex[0]==="-"}isZero(){return $e(this).isZero()}toNumber(){try{return $e(this).toNumber()}catch{qn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return vs.throwError("this platform does not support BigInt",W.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?TE||(TE=!0,vs.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?vs.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W.errors.UNEXPECTED_ARGUMENT,{}):vs.throwError("BigNumber.toString does not accept parameters",W.errors.UNEXPECTED_ARGUMENT,{})),$e(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ce)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ce(vv,Gf(e)):e.match(/^-?[0-9]+$/)?new ce(vv,Gf(new Wf(e))):vs.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&qn("underflow","BigNumber.from",e),(e>=PE||e<=-PE)&&qn("overflow","BigNumber.from",e),ce.from(String(e));const r=e;if(typeof r=="bigint")return ce.from(r.toString());if(_a(r))return ce.from(ue(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return ce.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(He(n)||n[0]==="-"&&He(n.substring(1))))return ce.from(n)}return vs.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Gf(t){if(typeof t!="string")return Gf(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&vs.throwArgumentError("invalid hex","value",t),t=Gf(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function ln(t){return ce.from(Gf(t))}function $e(t){const e=ce.from(t).toHexString();return e[0]==="-"?new Wf("-"+e.substring(3),16):new Wf(e.substring(2),16)}function qn(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),vs.throwError(t,W.errors.NUMERIC_FAULT,n)}function rV(t){return new Wf(t,36).toString(16)}function nV(t){return new Wf(t,16).toString(36)}const nn=new W($7),vf={},F7=ce.from(0),U7=ce.from(-1);function z7(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),nn.throwError(t,W.errors.NUMERIC_FAULT,i)}let yf="0";for(;yf.length<256;)yf+=yf;function ax(t){if(typeof t!="number")try{t=ce.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+yf.substring(0,t):nn.throwArgumentError("invalid decimal size","decimals",t)}function Ld(t,e){e==null&&(e=0);const r=ax(e);t=ce.from(t);const n=t.lt(F7);n&&(t=t.mul(U7));let i=t.mod(r).toString();for(;i.length2&&nn.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");o[o.length-1]==="0";)o=o.substring(0,o.length-1);for(o.length>r.length-1&&z7("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&nn.throwArgumentError("invalid fixed format ("+o+" not "+a+")","format."+o,e[o]),e[o]);r=s("signed","boolean",r),n=s("width","number",n),i=s("decimals","number",i)}return n%8&&nn.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&nn.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new Sl(vf,r,n,i)}}class Mr{constructor(e,r,n,i){e!==vf&&nn.throwError("cannot use FixedNumber constructor; use FixedNumber.from",W.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&nn.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=Li(this._value,this.format.decimals),n=Li(e._value,e.format.decimals);return Mr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=Li(this._value,this.format.decimals),n=Li(e._value,e.format.decimals);return Mr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=Li(this._value,this.format.decimals),n=Li(e._value,e.format.decimals);return Mr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=Li(this._value,this.format.decimals),n=Li(e._value,e.format.decimals);return Mr.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Mr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(RE.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Mr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(RE.toFormat(r.format))),r}round(e){e==null&&(e=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&nn.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=Mr.from("1"+yf.substring(0,e),this.format),i=iV.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&nn.throwArgumentError("invalid byte width","width",e);const r=ce.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Rt(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Mr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!tV(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),Mr.fromString(Ld(e,r),Sl.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=Sl.from(r),i=Li(e,n.decimals);!n.signed&&i.lt(F7)&&z7("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=Rt(s,n.width/8));const o=Ld(i,n.decimals);return new Mr(vf,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=Sl.from(r);if(le(e).length>n.width/8)throw new Error("overflow");let i=ce.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=Ld(i,n.decimals);return new Mr(vf,s,o,n)}static from(e,r){if(typeof e=="string")return Mr.fromString(e,r);if(_a(e))return Mr.fromBytes(e,r);try{return Mr.fromValue(e,0,r)}catch(n){if(n.code!==W.errors.INVALID_ARGUMENT)throw n}return nn.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const RE=Mr.from(1),iV=Mr.from("0.5"),sV="properties/5.7.0";var oV=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Oh=new W(sV);function ie(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Ei(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function er(t){return oV(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const i=t[n];return Promise.resolve(i).then(s=>({key:n,value:s}))});return(yield Promise.all(e)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function lx(t,e){(!t||typeof t!="object")&&Oh.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||Oh.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function mr(t){const e={};for(const r in t)e[r]=t[r];return e}const aV={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function V7(t){if(t==null||aV[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;r_o(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&ie(e,r,_o(n))}return e}return Oh.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function _o(t){return lV(t)}class Fo{constructor(e){for(const r in e)this[r]=_o(e[r])}}const cV=Object.freeze(Object.defineProperty({__proto__:null,Description:Fo,checkProperties:lx,deepCopy:_o,defineReadOnly:ie,getStatic:Ei,resolveProperties:er,shallowCopy:mr},Symbol.toStringTag,{value:"Module"})),bu="abi/5.7.0",ze=new W(bu),ba={};let _E={calldata:!0,memory:!0,storage:!0},fV={calldata:!0,memory:!0};function rd(t,e){if(t==="bytes"||t==="string"){if(_E[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&fV[e])return!0;return(_E[e]||e==="payable")&&ze.throwArgumentError("invalid modifier","name",e),!1}function uV(t,e){let r=t;function n(a){ze.throwArgumentError(`unexpected character at position ${a}`,"param",t)}t=t.replace(/\s/g," ");function i(a){let l={type:"",name:"",parent:a,state:{allowType:!0}};return e&&(l.indexed=!1),l}let s={type:"",name:"",state:{allowType:!0}},o=s;for(let a=0;aJSON.parse(i.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==Ke.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Ke.full?", ":",")+")"):r+=this.type,e!==Ke.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Ke.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?Ar.fromString(e,r):Ar.fromObject(e)}static fromObject(e){return Ar.isParamType(e)?e:new Ar(ba,{name:e.name||null,type:Ha(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(Ar.fromObject):null})}static fromString(e,r){function n(i){return Ar.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(uV(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Kf(t,e){return vV(t).map(r=>Ar.fromString(r,e))}class Hi{constructor(e,r){e!==ba&&ze.throwError("use a static from method",W.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Dd(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return Hi.isFragment(e)?e:typeof e=="string"?Hi.fromString(e):Hi.fromObject(e)}static fromObject(e){if(Hi.isFragment(e))return e;switch(e.type){case"function":return wi.fromObject(e);case"event":return Ui.fromObject(e);case"constructor":return bi.fromObject(e);case"error":return gs.fromObject(e);case"fallback":case"receive":return null}return ze.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?Ui.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?wi.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?bi.fromString(e.trim()):e.split(" ")[0]==="error"?gs.fromString(e.substring(5).trim()):ze.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class Ui extends Hi{format(e){if(e||(e=Ke.sighash),Ke[e]||ze.throwArgumentError("invalid format type","format",e),e===Ke.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Ke.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Ke.full?", ":",")+") ",e!==Ke.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?Ui.fromString(e):Ui.fromObject(e)}static fromObject(e){if(Ui.isEventFragment(e))return e;e.type!=="event"&&ze.throwArgumentError("invalid event object","value",e);const r={name:Yf(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(Ar.fromObject):[],type:"event"};return new Ui(ba,r)}static fromString(e){let r=e.match(Qf);r||ze.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:ze.warn("unknown modifier: "+i)}}),Ui.fromObject({name:r[1].trim(),anonymous:n,inputs:Kf(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function q7(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&ze.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||ze.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=ce.from(r[1]),r[0]):t}function H7(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function W7(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&ze.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&ze.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&ze.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&ze.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&ze.throwArgumentError("unable to determine stateMutability","value",t),e}class bi extends Hi{format(e){if(e||(e=Ke.sighash),Ke[e]||ze.throwArgumentError("invalid format type","format",e),e===Ke.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===Ke.sighash&&ze.throwError("cannot format a constructor for sighash",W.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===Ke.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?bi.fromString(e):bi.fromObject(e)}static fromObject(e){if(bi.isConstructorFragment(e))return e;e.type!=="constructor"&&ze.throwArgumentError("invalid constructor object","value",e);let r=W7(e);r.constant&&ze.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(Ar.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ce.from(e.gas):null};return new bi(ba,n)}static fromString(e){let r={type:"constructor"};e=q7(e,r);let n=e.match(Qf);return(!n||n[1].trim()!=="constructor")&&ze.throwArgumentError("invalid constructor string","value",e),r.inputs=Kf(n[2].trim(),!1),H7(n[3].trim(),r),bi.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class wi extends bi{format(e){if(e||(e=Ke.sighash),Ke[e]||ze.throwArgumentError("invalid format type","format",e),e===Ke.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Ke.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Ke.full?", ":",")+") ",e!==Ke.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?wi.fromString(e):wi.fromObject(e)}static fromObject(e){if(wi.isFunctionFragment(e))return e;e.type!=="function"&&ze.throwArgumentError("invalid function object","value",e);let r=W7(e);const n={type:e.type,name:Yf(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(Ar.fromObject):[],outputs:e.outputs?e.outputs.map(Ar.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ce.from(e.gas):null};return new wi(ba,n)}static fromString(e){let r={type:"function"};e=q7(e,r);let n=e.split(" returns ");n.length>2&&ze.throwArgumentError("invalid function string","value",e);let i=n[0].match(Qf);if(i||ze.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Yf(r.name),r.inputs=Kf(i[2],!1),H7(i[3].trim(),r),n.length>1){let s=n[1].match(Qf);(s[1].trim()!=""||s[3].trim()!="")&&ze.throwArgumentError("unexpected tokens","value",e),r.outputs=Kf(s[2],!1)}else r.outputs=[];return wi.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function IE(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&ze.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class gs extends Hi{format(e){if(e||(e=Ke.sighash),Ke[e]||ze.throwArgumentError("invalid format type","format",e),e===Ke.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Ke.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Ke.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?gs.fromString(e):gs.fromObject(e)}static fromObject(e){if(gs.isErrorFragment(e))return e;e.type!=="error"&&ze.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Yf(e.name),inputs:e.inputs?e.inputs.map(Ar.fromObject):[]};return IE(new gs(ba,r))}static fromString(e){let r={type:"error"},n=e.match(Qf);return n||ze.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Yf(r.name),r.inputs=Kf(n[2],!1),IE(gs.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Ha(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const hV=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Yf(t){return(!t||!t.match(hV))&&ze.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Qf=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function vV(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&cx.throwError("value out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=Ot([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}}class Nh{constructor(e,r,n,i){ie(this,"_data",le(e)),ie(this,"wordSize",r||32),ie(this,"_coerceFunc",n),ie(this,"allowLoose",i),this._offset=0}get data(){return ue(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):Nh.coerce(e,r)}_peekBytes(e,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:cx.throwError("data out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new Nh(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return ce.from(this.readBytes(this.wordSize))}}var K7={exports:{}};/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.8.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2018 + * @license MIT + */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=Qs:s&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),f=[31,7936,2031616,520093696],u=[4,1024,262144,67108864],d=[1,256,65536,16777216],v=[6,1536,393216,100663296],g=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],w=[224,256,384,512],x=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],E={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(A){return Object.prototype.toString.call(A)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(A){return typeof A=="object"&&A.buffer&&A.buffer.constructor===ArrayBuffer});for(var P=function(A,$,V){return function(q){return new m(A,$,A).update(q)[V]()}},O=function(A,$,V){return function(q,Y){return new m(A,$,Y).update(q)[V]()}},D=function(A,$,V){return function(q,Y,ae,re){return h["cshake"+A].update(q,Y,ae,re)[V]()}},_=function(A,$,V){return function(q,Y,ae,re){return h["kmac"+A].update(q,Y,ae,re)[V]()}},L=function(A,$,V,q){for(var Y=0;Y>5,this.byteCount=this.blockCount<<2,this.outputBlocks=V>>5,this.extraBytes=(V&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}m.prototype.update=function(A){if(this.finalized)throw new Error(r);var $,V=typeof A;if(V!=="string"){if(V==="object"){if(A===null)throw new Error(e);if(l&&A.constructor===ArrayBuffer)A=new Uint8Array(A);else if(!Array.isArray(A)&&(!l||!ArrayBuffer.isView(A)))throw new Error(e)}else throw new Error(e);$=!0}for(var q=this.blocks,Y=this.byteCount,ae=A.length,re=this.blockCount,ne=0,Me=this.s,de,Ee;ne>2]|=A[ne]<>2]|=Ee<>2]|=(192|Ee>>6)<>2]|=(128|Ee&63)<=57344?(q[de>>2]|=(224|Ee>>12)<>2]|=(128|Ee>>6&63)<>2]|=(128|Ee&63)<>2]|=(240|Ee>>18)<>2]|=(128|Ee>>12&63)<>2]|=(128|Ee>>6&63)<>2]|=(128|Ee&63)<=Y){for(this.start=de-Y,this.block=q[re],de=0;de>8,V=A&255;V>0;)Y.unshift(V),A=A>>8,V=A&255,++q;return $?Y.push(q):Y.unshift(q),this.update(Y),Y.length},m.prototype.encodeString=function(A){var $,V=typeof A;if(V!=="string"){if(V==="object"){if(A===null)throw new Error(e);if(l&&A.constructor===ArrayBuffer)A=new Uint8Array(A);else if(!Array.isArray(A)&&(!l||!ArrayBuffer.isView(A)))throw new Error(e)}else throw new Error(e);$=!0}var q=0,Y=A.length;if($)q=Y;else for(var ae=0;ae=57344?q+=3:(re=65536+((re&1023)<<10|A.charCodeAt(++ae)&1023),q+=4)}return q+=this.encode(q*8),this.update(A),q},m.prototype.bytepad=function(A,$){for(var V=this.encode($),q=0;q>2]|=this.padding[$&3],this.lastByteIndex===this.byteCount)for(A[0]=A[V],$=1;$>4&15]+c[ne&15]+c[ne>>12&15]+c[ne>>8&15]+c[ne>>20&15]+c[ne>>16&15]+c[ne>>28&15]+c[ne>>24&15];ae%A===0&&(F($),Y=0)}return q&&(ne=$[Y],re+=c[ne>>4&15]+c[ne&15],q>1&&(re+=c[ne>>12&15]+c[ne>>8&15]),q>2&&(re+=c[ne>>20&15]+c[ne>>16&15])),re},m.prototype.arrayBuffer=function(){this.finalize();var A=this.blockCount,$=this.s,V=this.outputBlocks,q=this.extraBytes,Y=0,ae=0,re=this.outputBits>>3,ne;q?ne=new ArrayBuffer(V+1<<2):ne=new ArrayBuffer(re);for(var Me=new Uint32Array(ne);ae>8&255,re[ne+2]=Me>>16&255,re[ne+3]=Me>>24&255;ae%A===0&&F($)}return q&&(ne=ae<<2,Me=$[Y],re[ne]=Me&255,q>1&&(re[ne+1]=Me>>8&255),q>2&&(re[ne+2]=Me>>16&255)),re};function R(A,$,V){m.call(this,A,$,V)}R.prototype=new m,R.prototype.finalize=function(){return this.encode(this.outputBits,!0),m.prototype.finalize.call(this)};var F=function(A){var $,V,q,Y,ae,re,ne,Me,de,Ee,Qt,We,ft,ai,ut,Je,bn,nt,pt,li,Ve,it,Ri,lt,At,$r,mt,gt,_i,St,xt,zn,bt,dt,cs,wt,Ct,Ii,kt,U,K,Q,se,ve,ge,he,pe,xe,me,Lt,Oe,ye,Xe,Pe,st,Fr,Ze,et,Xr,gr,wn,En,An;for(q=0;q<48;q+=2)Y=A[0]^A[10]^A[20]^A[30]^A[40],ae=A[1]^A[11]^A[21]^A[31]^A[41],re=A[2]^A[12]^A[22]^A[32]^A[42],ne=A[3]^A[13]^A[23]^A[33]^A[43],Me=A[4]^A[14]^A[24]^A[34]^A[44],de=A[5]^A[15]^A[25]^A[35]^A[45],Ee=A[6]^A[16]^A[26]^A[36]^A[46],Qt=A[7]^A[17]^A[27]^A[37]^A[47],We=A[8]^A[18]^A[28]^A[38]^A[48],ft=A[9]^A[19]^A[29]^A[39]^A[49],$=We^(re<<1|ne>>>31),V=ft^(ne<<1|re>>>31),A[0]^=$,A[1]^=V,A[10]^=$,A[11]^=V,A[20]^=$,A[21]^=V,A[30]^=$,A[31]^=V,A[40]^=$,A[41]^=V,$=Y^(Me<<1|de>>>31),V=ae^(de<<1|Me>>>31),A[2]^=$,A[3]^=V,A[12]^=$,A[13]^=V,A[22]^=$,A[23]^=V,A[32]^=$,A[33]^=V,A[42]^=$,A[43]^=V,$=re^(Ee<<1|Qt>>>31),V=ne^(Qt<<1|Ee>>>31),A[4]^=$,A[5]^=V,A[14]^=$,A[15]^=V,A[24]^=$,A[25]^=V,A[34]^=$,A[35]^=V,A[44]^=$,A[45]^=V,$=Me^(We<<1|ft>>>31),V=de^(ft<<1|We>>>31),A[6]^=$,A[7]^=V,A[16]^=$,A[17]^=V,A[26]^=$,A[27]^=V,A[36]^=$,A[37]^=V,A[46]^=$,A[47]^=V,$=Ee^(Y<<1|ae>>>31),V=Qt^(ae<<1|Y>>>31),A[8]^=$,A[9]^=V,A[18]^=$,A[19]^=V,A[28]^=$,A[29]^=V,A[38]^=$,A[39]^=V,A[48]^=$,A[49]^=V,ai=A[0],ut=A[1],he=A[11]<<4|A[10]>>>28,pe=A[10]<<4|A[11]>>>28,gt=A[20]<<3|A[21]>>>29,_i=A[21]<<3|A[20]>>>29,gr=A[31]<<9|A[30]>>>23,wn=A[30]<<9|A[31]>>>23,Q=A[40]<<18|A[41]>>>14,se=A[41]<<18|A[40]>>>14,dt=A[2]<<1|A[3]>>>31,cs=A[3]<<1|A[2]>>>31,Je=A[13]<<12|A[12]>>>20,bn=A[12]<<12|A[13]>>>20,xe=A[22]<<10|A[23]>>>22,me=A[23]<<10|A[22]>>>22,St=A[33]<<13|A[32]>>>19,xt=A[32]<<13|A[33]>>>19,En=A[42]<<2|A[43]>>>30,An=A[43]<<2|A[42]>>>30,Pe=A[5]<<30|A[4]>>>2,st=A[4]<<30|A[5]>>>2,wt=A[14]<<6|A[15]>>>26,Ct=A[15]<<6|A[14]>>>26,nt=A[25]<<11|A[24]>>>21,pt=A[24]<<11|A[25]>>>21,Lt=A[34]<<15|A[35]>>>17,Oe=A[35]<<15|A[34]>>>17,zn=A[45]<<29|A[44]>>>3,bt=A[44]<<29|A[45]>>>3,lt=A[6]<<28|A[7]>>>4,At=A[7]<<28|A[6]>>>4,Fr=A[17]<<23|A[16]>>>9,Ze=A[16]<<23|A[17]>>>9,Ii=A[26]<<25|A[27]>>>7,kt=A[27]<<25|A[26]>>>7,li=A[36]<<21|A[37]>>>11,Ve=A[37]<<21|A[36]>>>11,ye=A[47]<<24|A[46]>>>8,Xe=A[46]<<24|A[47]>>>8,ve=A[8]<<27|A[9]>>>5,ge=A[9]<<27|A[8]>>>5,$r=A[18]<<20|A[19]>>>12,mt=A[19]<<20|A[18]>>>12,et=A[29]<<7|A[28]>>>25,Xr=A[28]<<7|A[29]>>>25,U=A[38]<<8|A[39]>>>24,K=A[39]<<8|A[38]>>>24,it=A[48]<<14|A[49]>>>18,Ri=A[49]<<14|A[48]>>>18,A[0]=ai^~Je&nt,A[1]=ut^~bn&pt,A[10]=lt^~$r>,A[11]=At^~mt&_i,A[20]=dt^~wt&Ii,A[21]=cs^~Ct&kt,A[30]=ve^~he&xe,A[31]=ge^~pe&me,A[40]=Pe^~Fr&et,A[41]=st^~Ze&Xr,A[2]=Je^~nt&li,A[3]=bn^~pt&Ve,A[12]=$r^~gt&St,A[13]=mt^~_i&xt,A[22]=wt^~Ii&U,A[23]=Ct^~kt&K,A[32]=he^~xe&Lt,A[33]=pe^~me&Oe,A[42]=Fr^~et&gr,A[43]=Ze^~Xr&wn,A[4]=nt^~li&it,A[5]=pt^~Ve&Ri,A[14]=gt^~St&zn,A[15]=_i^~xt&bt,A[24]=Ii^~U&Q,A[25]=kt^~K&se,A[34]=xe^~Lt&ye,A[35]=me^~Oe&Xe,A[44]=et^~gr&En,A[45]=Xr^~wn&An,A[6]=li^~it&ai,A[7]=Ve^~Ri&ut,A[16]=St^~zn<,A[17]=xt^~bt&At,A[26]=U^~Q&dt,A[27]=K^~se&cs,A[36]=Lt^~ye&ve,A[37]=Oe^~Xe&ge,A[46]=gr^~En&Pe,A[47]=wn^~An&st,A[8]=it^~ai&Je,A[9]=Ri^~ut&bn,A[18]=zn^~lt&$r,A[19]=bt^~At&mt,A[28]=Q^~dt&wt,A[29]=se^~cs&Ct,A[38]=ye^~ve&he,A[39]=Xe^~ge&pe,A[48]=En^~Pe&Fr,A[49]=An^~st&Ze,A[0]^=y[q],A[1]^=y[q+1]};if(a)t.exports=h;else for(k=0;k>=8;return e}function OE(t,e,r){let n=0;for(let i=0;ie+1+n&&Bi.throwError("child data too short",W.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Q7(t,e){if(t.length===0&&Bi.throwError("data too short",W.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&Bi.throwError("data short segment too short",W.errors.BUFFER_OVERRUN,{});const n=OE(t,e+1,r);return e+1+r+n>t.length&&Bi.throwError("data long segment too short",W.errors.BUFFER_OVERRUN,{}),NE(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&Bi.throwError("data array too short",W.errors.BUFFER_OVERRUN,{}),NE(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&Bi.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const n=OE(t,e+1,r);e+1+r+n>t.length&&Bi.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const i=ue(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&Bi.throwError("data too short",W.errors.BUFFER_OVERRUN,{});const n=ue(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:ue(t[e])}}function j0(t){const e=le(t),r=Q7(e,0);return r.consumed!==e.length&&Bi.throwArgumentError("invalid rlp data","data",t),r.result}const xV=Object.freeze(Object.defineProperty({__proto__:null,decode:j0,encode:wa},Symbol.toStringTag,{value:"Module"})),bV="address/5.7.0",so=new W(bV);function LE(t){He(t,20)||so.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=le(ct(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const wV=9007199254740991;function EV(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const fx={};for(let t=0;t<10;t++)fx[String(t)]=String(t);for(let t=0;t<26;t++)fx[String.fromCharCode(65+t)]=String(10+t);const DE=Math.floor(EV(wV));function J7(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>fx[n]).join("");for(;e.length>=DE;){let n=e.substring(0,DE);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function yt(t){let e=null;if(typeof t!="string"&&so.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=LE(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&so.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==J7(t)&&so.throwArgumentError("bad icap checksum","address",t),e=rV(t.substring(4));e.length<40;)e="0"+e;e=LE("0x"+e)}else so.throwArgumentError("invalid address","address",t);return e}function X7(t){try{return yt(t),!0}catch{}return!1}function AV(t){let e=nV(yt(t).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+J7("XE00"+e)+e}function ux(t){let e=null;try{e=yt(t.from)}catch{so.throwArgumentError("missing from address","transaction",t)}const r=Qi(le(ce.from(t.nonce).toHexString()));return yt(ur(ct(wa([e,r])),12))}function SV(t,e,r){return ts(e)!==32&&so.throwArgumentError("salt must be 32 bytes","salt",e),ts(r)!==32&&so.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),yt(ur(ct(Ot(["0xff",yt(t),e,r])),12))}const CV=Object.freeze(Object.defineProperty({__proto__:null,getAddress:yt,getContractAddress:ux,getCreate2Address:SV,getIcapAddress:AV,isAddress:X7},Symbol.toStringTag,{value:"Module"}));class kV extends Fs{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=yt(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return yt(Rt(e.readValue().toHexString(),20))}}class PV extends Fs{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}const ul=new W(bu);function Z7(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let l={};n=e.map(c=>{const f=c.localName;return f||ul.throwError("cannot encode object for signature with missing names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&ul.throwError("cannot encode object for signature with duplicate names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]=!0,r[f]})}else ul.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&ul.throwArgumentError("types/value length mismatch","tuple",r);let i=new Sp(t.wordSize),s=new Sp(t.wordSize),o=[];e.forEach((l,c)=>{let f=n[c];if(l.dynamic){let u=s.length;l.encode(s,f);let d=i.writeUpdatableValue();o.push(v=>{d(v+u)})}else l.encode(i,f)}),o.forEach(l=>{l(i.length)});let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function e9(t,e){let r=[],n=t.subReader(0);e.forEach(s=>{let o=null;if(s.dynamic){let a=t.readValue(),l=n.subReader(a.toNumber());try{o=s.decode(l)}catch(c){if(c.code===W.errors.BUFFER_OVERRUN)throw c;o=c,o.baseType=s.name,o.name=s.localName,o.type=s.type}}else try{o=s.decode(t)}catch(a){if(a.code===W.errors.BUFFER_OVERRUN)throw a;o=a,o.baseType=s.name,o.name=s.localName,o.type=s.type}o!=null&&r.push(o)});const i=e.reduce((s,o)=>{const a=o.localName;return a&&(s[a]||(s[a]=0),s[a]++),s},{});e.forEach((s,o)=>{let a=s.localName;if(!a||i[a]!==1||(a==="length"&&(a="_length"),r[a]!=null))return;const l=r[o];l instanceof Error?Object.defineProperty(r,a,{enumerable:!0,get:()=>{throw l}}):r[a]=l});for(let s=0;s{throw o}})}return Object.freeze(r)}class TV extends Fs{constructor(e,r,n){const i=e.type+"["+(r>=0?r:"")+"]",s=r===-1||e.dynamic;super("array",i,n,s),this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;ne._data.length&&ul.throwError("insufficient data length",W.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i>6===2;o++)s++;return s}return t===un.OVERRUN?r.length-e-1:0}function $V(t,e,r,n,i){return t===un.OVERLONG?(n.push(i),0):(n.push(65533),s9(t,e,r))}const o9=Object.freeze({error:jV,ignore:s9,replace:$V});function hx(t,e){e==null&&(e=o9.error),t=le(t);const r=[];let n=0;for(;n>7)){r.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?n+=e(un.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(un.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(un.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(un.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(un.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(un.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function zt(t,e=rs.current){e!=rs.current&&(i9.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const s=t.charCodeAt(n);if(n>=t.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((i&1023)<<10)+(s&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return le(r)}function yv(t){const e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function FV(t,e){return'"'+hx(t,e).map(r=>{if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?yv(r):(r-=65536,yv((r>>10&1023)+55296)+yv((r&1023)+56320))}).join("")+'"'}function Cp(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Uo(t,e){return Cp(hx(t,e))}function Lh(t,e=rs.current){return hx(zt(t,e))}function UV(t){const e=zt(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return ue(Ot([e,n9]).slice(0,32))}function zV(t){const e=le(t);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Uo(e.slice(0,r))}function VV(t){if(t.length%4!==0)throw new Error("bad data");let e=[];for(let r=0;r{let s=i.split(":");r+=parseInt(s[0],16),n[r]=e(s[1])}),n}function a9(t){let e=0;return t.split(",").map(r=>{let n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");let i=e+parseInt(n[0],16);return e=parseInt(n[1],16),{l:i,h:e}})}function yx(t,e){let r=0;for(let n=0;n=r&&t<=r+i.h&&(t-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(t-r)!==-1)continue;return i}}return null}const qV=a9("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),HV="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),WV=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],GV=vx("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),KV=vx("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),YV=vx("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",VV),QV=a9("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function JV(t){return t.reduce((e,r)=>(r.forEach(n=>{e.push(n)}),e),[])}function XV(t){return!!yx(t,qV)}function ZV(t){let e=yx(t,WV);if(e)return[t+e.s];let r=GV[t];if(r)return r;let n=KV[t];if(n)return[t+n[0]];let i=YV[t];return i||null}function eq(t){return!!yx(t,QV)}function tq(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=Lh(t);e=JV(e.map(n=>{if(HV.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];let i=ZV(n);return i||[n]})),e=Lh(Cp(e),rs.NFKC),e.forEach(n=>{if(eq(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(n=>{if(XV(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=Cp(e);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}const rq=Object.freeze(Object.defineProperty({__proto__:null,get UnicodeNormalizationForm(){return rs},Utf8ErrorFuncs:o9,get Utf8ErrorReason(){return un},_toEscapedUtf8String:FV,formatBytes32String:UV,nameprep:tq,parseBytes32String:zV,toUtf8Bytes:zt,toUtf8CodePoints:Lh,toUtf8String:Uo},Symbol.toStringTag,{value:"Module"}));class nq extends t9{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,zt(r))}decode(e){return Uo(super.decode(e))}}class nd extends Fs{constructor(e,r){let n=!1;const i=[];e.forEach(o=>{o.dynamic&&(n=!0),i.push(o.type)});const s="tuple("+i.join(",")+")";super("tuple",s,r,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const s=i.localName;return s&&(n[s]||(n[s]=0),n[s]++),n},{});return this.coders.forEach((n,i)=>{let s=n.localName;!s||r[s]!==1||(s==="length"&&(s="_length"),e[s]==null&&(e[s]=e[i]))}),Object.freeze(e)}encode(e,r){return Z7(e,this.coders,r)}decode(e){return e.coerce(this.name,e9(e,this.coders))}}const id=new W(bu),iq=new RegExp(/^bytes([0-9]*)$/),sq=new RegExp(/^(u?int)([0-9]*)$/);class l9{constructor(e){ie(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new kV(e.name);case"bool":return new RV(e.name);case"string":return new nq(e.name);case"bytes":return new _V(e.name);case"array":return new TV(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new nd((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new MV(e.name)}let r=e.type.match(sq);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&id.throwArgumentError("invalid "+r[1]+" bit length","param",e),new DV(n/8,r[1]==="int",e.name)}if(r=e.type.match(iq),r){let n=parseInt(r[1]);return(n===0||n>32)&&id.throwArgumentError("invalid bytes length","param",e),new IV(n,e.name)}return id.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new Nh(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new Sp(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(Ar.from(i)));return new nd(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&id.throwError("types/values length mismatch",W.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(o=>this._getCoder(Ar.from(o))),i=new nd(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(Ar.from(o)));return new nd(i,"_").decode(this._getReader(le(r),n))}}const c9=new l9;function oo(t){return ct(zt(t))}const f9="hash/5.7.0";function px(t){t=atob(t);const e=[];for(let r=0;r0&&Array.isArray(a)?i(a,o-1):r.push(a)})};return i(t,e),r}function aq(t){const e={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,g=v>>1,y=d-1;let w=0;for(let O=0;O1;){let H=D+_>>>1;O>>1|f(),L=L<<1^v,z=(z^v)<<1|v|1;b=L,E=1+z-L}let P=n-4;return x.map(O=>{switch(O-P){case 3:return P+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return P+256+(t[a++]<<8|t[a++]);case 1:return P+t[a++];default:return O-1}})}function cq(t){let e=0;return()=>t[e++]}function fq(t){return cq(lq(t))}function uq(t){return t&1?~t>>1:t>>1}function dq(t,e){let r=Array(t);for(let n=0;ne[o]):r}function vq(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(pq(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(mq(r,t))}return aq(u9(e))}function yq(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function d9(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function pq(t,e){let r=1+e(),n=e(),i=yq(e),s=d9(i.length,1+t,e);return u9(s.map((o,a)=>{const l=o[0],c=o.slice(1);return Array(i[a]).fill(void 0).map((f,u)=>{let d=u*n;return[l+u*r,c.map(v=>v+d)]})}))}function mq(t,e){let r=1+e();return d9(r,1+t,e).map(i=>[i[0],i.slice(1)])}function gq(t){let e=Dh(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=Dh(t,e);if(c.length==0)break;n.push({set:new Set(c),node:r()})}n.sort((c,f)=>f.set.size-c.set.size);let i=t(),s=i%3;i=i/3|0;let o=!!(i&1);i>>=1;let a=i==1,l=i==2;return{branches:n,valid:s,fe0f:o,save:a,check:l}}}function xq(){return fq(px("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"))}const $0=xq(),bq=new Set(Dh($0)),wq=new Set(Dh($0)),Eq=vq($0),Aq=gq($0),jE=45,$E=95;function h9(t){return Lh(t)}function Sq(t){return t.filter(e=>e!=65039)}function v9(t){for(let e of t.split(".")){let r=h9(e);try{for(let n=r.lastIndexOf($E)-1;n>=0;n--)if(r[n]!==$E)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===jE&&r[3]===jE)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function Cq(t){return v9(kq(t,Sq))}function kq(t,e){let r=h9(t).reverse(),n=[];for(;r.length;){let i=Tq(r);if(i){n.push(...e(i));continue}let s=r.pop();if(bq.has(s)){n.push(s);continue}if(wq.has(s))continue;let o=Eq[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return v9(Pq(String.fromCodePoint(...n)))}function Pq(t){return t.normalize("NFC")}function Tq(t,e){var r;let n=Aq,i,s,o=[],a=t.length;for(e&&(e.length=0);a;){let l=t[--a];if(n=(r=n.branches.find(c=>c.set.has(l)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)s=l;else if(n.check&&l===s)break;o.push(l),n.fe0f&&(o.push(65039),a>0&&t[a-1]==65039&&a--),n.valid&&(i=o.slice(),n.valid==2&&i.splice(1,1),e&&e.push(...t.slice(a).reverse()),t.length=a)}return i}const Rq=new W(f9),y9=new Uint8Array(32);y9.fill(0);function FE(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function F0(t){const e=zt(Cq(t)),r=[];if(t.length===0)return r;let n=0;for(let i=0;i=e.length)throw new Error("invalid ENS name; empty component");return r.push(FE(e.slice(n))),r}function _q(t){return F0(t).map(e=>Uo(e)).join(".")}function Iq(t){try{return F0(t).length!==0}catch{}return!1}function pf(t){typeof t!="string"&&Rq.throwArgumentError("invalid ENS name; not a string","name",t);let e=y9;const r=F0(t);for(;r.length;)e=ct(Ot([e,ct(r.pop())]));return ue(e)}function p9(t){return ue(Ot(F0(t).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}const m9=`Ethereum Signed Message: +`;function gx(t){return typeof t=="string"&&(t=zt(t)),ct(Ot([zt(m9),zt(String(t.length)),t]))}var Mq=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const qt=new W(f9),g9=new Uint8Array(32);g9.fill(0);const Oq=ce.from(-1),x9=ce.from(0),b9=ce.from(1),Nq=ce.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Lq(t){const e=le(t),r=e.length%32;return r?rn([e,g9.slice(r)]):ue(e)}const Dq=Rt(b9.toHexString(),32),Bq=Rt(x9.toHexString(),32),UE={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},pv=["name","version","chainId","verifyingContract","salt"];function zE(t){return function(e){return typeof e!="string"&&qt.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const jq={name:zE("name"),version:zE("version"),chainId:function(t){try{return ce.from(t).toString()}catch{}return qt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return yt(t).toLowerCase()}catch{}return qt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=le(t);if(e.length!==32)throw new Error("bad length");return ue(e)}catch{}return qt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function mv(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&qt.throwArgumentError("invalid numeric width","type",t);const i=Nq.mask(r?n-1:n),s=r?i.add(b9).mul(Oq):x9;return function(o){const a=ce.from(o);return(a.lt(s)||a.gt(i))&&qt.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),Rt(a.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&qt.throwArgumentError("invalid bytes width","type",t),function(n){return le(n).length!==r&&qt.throwArgumentError(`invalid length for ${t}`,"value",n),Lq(n)}}}switch(t){case"address":return function(e){return Rt(yt(e),32)};case"bool":return function(e){return e?Dq:Bq};case"bytes":return function(e){return ct(e)};case"string":return function(e){return oo(e)}}return null}function VE(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Nr{constructor(e){ie(this,"types",Object.freeze(_o(e))),ie(this,"_encoderCache",{}),ie(this,"_types",{});const r={},n={},i={};Object.keys(e).forEach(a=>{r[a]={},n[a]=[],i[a]={}});for(const a in e){const l={};e[a].forEach(c=>{l[c.name]&&qt.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(a)}`,"types",e),l[c.name]=!0;const f=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];f===a&&qt.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!mv(f)&&(n[f]||qt.throwArgumentError(`unknown type ${JSON.stringify(f)}`,"types",e),n[f].push(a),r[a][f]=!0)})}const s=Object.keys(n).filter(a=>n[a].length===0);s.length===0?qt.throwArgumentError("missing primary type","types",e):s.length>1&&qt.throwArgumentError(`ambiguous primary types or unused types: ${s.map(a=>JSON.stringify(a)).join(", ")}`,"types",e),ie(this,"primaryType",s[0]);function o(a,l){l[a]&&qt.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),l[a]=!0,Object.keys(r[a]).forEach(c=>{n[c]&&(o(c,l),Object.keys(l).forEach(f=>{i[f][c]=!0}))}),delete l[a]}o(this.primaryType,{});for(const a in i){const l=Object.keys(i[a]);l.sort(),this._types[a]=VE(a,e[a])+l.map(c=>VE(c,e[c])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const i=mv(e);if(i)return i}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],s=this.getEncoder(i),o=parseInt(r[3]);return a=>{o>=0&&a.length!==o&&qt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(ct)),ct(rn(l))}}const n=this.types[e];if(n){const i=oo(this._types[e]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?ct(c):c});return o.unshift(i),rn(o)}}return qt.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||qt.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return ct(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(mv(e))return n(e,r);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const o=i[1],a=parseInt(i[3]);return a>=0&&r.length!==a&&qt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(l=>this._visit(o,l,n))}const s=this.types[e];return s?s.reduce((o,{name:a,type:l})=>(o[a]=this._visit(l,r[a],n),o),{}):qt.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Nr(e)}static getPrimaryType(e){return Nr.from(e).primaryType}static hashStruct(e,r,n){return Nr.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=UE[n];i||qt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>pv.indexOf(n.name)-pv.indexOf(i.name)),Nr.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return rn(["0x1901",Nr.hashDomain(e),Nr.from(r).hash(n)])}static hash(e,r,n){return ct(Nr.encode(e,r,n))}static resolveNames(e,r,n,i){return Mq(this,void 0,void 0,function*(){e=mr(e);const s={};e.verifyingContract&&!He(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Nr.from(r);o.visit(n,(a,l)=>(a==="address"&&!He(l,20)&&(s[l]="0x"),l));for(const a in s)s[a]=yield i(a);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),n=o.visit(n,(a,l)=>a==="address"&&s[l]?s[l]:l),{domain:e,value:n}})}static getPayload(e,r,n){Nr.hashDomain(e);const i={},s=[];pv.forEach(l=>{const c=e[l];c!=null&&(i[l]=jq[l](c),s.push({name:l,type:UE[l]}))});const o=Nr.from(r),a=mr(r);return a.EIP712Domain?qt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):a.EIP712Domain=s,o.encode(n),{types:a,domain:i,primaryType:o.primaryType,message:o.visit(n,(l,c)=>{if(l.match(/^bytes(\d*)/))return ue(le(c));if(l.match(/^u?int/))return ce.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&qt.throwArgumentError("invalid string","value",c),c}return qt.throwArgumentError("unsupported type","type",l)})}}}const $q=Object.freeze(Object.defineProperty({__proto__:null,_TypedDataEncoder:Nr,dnsEncode:p9,ensNormalize:_q,hashMessage:gx,id:oo,isValidName:Iq,messagePrefix:m9,namehash:pf},Symbol.toStringTag,{value:"Module"})),Vt=new W(bu);class w9 extends Fo{}class E9 extends Fo{}class Fq extends Fo{}class Bh extends Fo{static isIndexed(e){return!!(e&&e._isIndexed)}}const Uq={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function qE(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class kp{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,ie(this,"fragments",r.map(n=>Hi.from(n)).filter(n=>n!=null)),ie(this,"_abiCoder",Ei(new.target,"getAbiCoder")()),ie(this,"functions",{}),ie(this,"errors",{}),ie(this,"events",{}),ie(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){Vt.warn("duplicate definition - constructor");return}ie(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let s=n.format();if(i[s]){Vt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||ie(this,"deploy",bi.from({payable:!1,type:"constructor"})),ie(this,"_isInterface",!0)}format(e){e||(e=Ke.full),e===Ke.sighash&&Vt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Ke.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return c9}static getAddress(e){return yt(e)}static getSighash(e){return ur(oo(e.format()),0,4)}static getEventTopic(e){return oo(e.format())}getFunction(e){if(He(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Vt.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.functions).filter(s=>s.split("(")[0]===n);return i.length===0?Vt.throwArgumentError("no matching function","name",n):i.length>1&&Vt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[wi.fromString(e).format()];return r||Vt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(He(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Vt.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.events).filter(s=>s.split("(")[0]===n);return i.length===0?Vt.throwArgumentError("no matching event","name",n):i.length>1&&Vt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[Ui.fromString(e).format()];return r||Vt.throwArgumentError("no matching event","signature",e),r}getError(e){if(He(e)){const n=Ei(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}Vt.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.errors).filter(s=>s.split("(")[0]===n);return i.length===0?Vt.throwArgumentError("no matching error","name",n):i.length>1&&Vt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[wi.fromString(e).format()];return r||Vt.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return Ei(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Ei(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=le(r);return ue(n.slice(0,4))!==this.getSighash(e)&&Vt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",ue(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),ue(Ot([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=le(r);return ue(n.slice(0,4))!==this.getSighash(e)&&Vt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",ue(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),ue(Ot([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=le(r),i=null,s="",o=null,a=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const c=ue(n.slice(0,4)),f=Uq[c];if(f)o=this._abiCoder.decode(f.inputs,n.slice(4)),a=f.name,l=f.signature,f.reason&&(i=o[0]),a==="Error"?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:a==="Panic"&&(s=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const u=this.getError(c);o=this._abiCoder.decode(u.inputs,n.slice(4)),a=u.name,l=u.format()}catch{}break}}return Vt.throwError("call revert exception"+s,W.errors.CALL_EXCEPTION,{method:e.format(),data:ue(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),ue(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&Vt.throwError("too many arguments for "+e.format(),W.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(s,o)=>s.type==="string"?oo(o):s.type==="bytes"?ct(ue(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=ce.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),Rt(ue(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&Vt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,s);return}s==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?Vt.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,s):Array.isArray(s)?n.push(s.map(l=>i(a,l))):n.push(i(a,s))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],i=[],s=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&Vt.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const l=r[a];if(o.indexed)if(o.type==="string")n.push(oo(l));else if(o.type==="bytes")n.push(ct(l));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([o.type],[l]))}else i.push(o),s.push(l)}),{data:this._abiCoder.encode(i,s),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let d=this.getEventTopic(e);(!He(n[0],32)||n[0].toLowerCase()!==d)&&Vt.throwError("fragment/topic mismatch",W.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:n[0]}),n=n.slice(1)}let i=[],s=[],o=[];e.inputs.forEach((d,v)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(Ar.fromObject({type:"bytes32",name:d.name})),o.push(!0)):(i.push(d),o.push(!1)):(s.push(d),o.push(!1))});let a=n!=null?this._abiCoder.decode(i,Ot(n)):null,l=this._abiCoder.decode(s,r,!0),c=[],f=0,u=0;e.inputs.forEach((d,v)=>{if(d.indexed)if(a==null)c[v]=new Bh({_isIndexed:!0,hash:null});else if(o[v])c[v]=new Bh({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(g){c[v]=g}else try{c[v]=l[f++]}catch(g){c[v]=g}if(d.name&&c[d.name]==null){const g=c[v];g instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw qE(`property ${JSON.stringify(d.name)}`,g)}}):c[d.name]=g}});for(let d=0;d{throw qE(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new E9({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:ce.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new w9({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=ue(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new Fq({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const zq=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:l9,ConstructorFragment:bi,ErrorFragment:gs,EventFragment:Ui,FormatTypes:Ke,Fragment:Hi,FunctionFragment:wi,Indexed:Bh,Interface:kp,LogDescription:w9,ParamType:Ar,TransactionDescription:E9,checkResultErrors:G7,defaultAbiCoder:c9},Symbol.toStringTag,{value:"Module"})),Vq="abstract-provider/5.7.0";var qq=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Hq=new W(Vq);class Wq extends Fo{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class wu{constructor(){Hq.checkAbstract(new.target,wu),ie(this,"_isProvider",!0)}getFeeData(){return qq(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield er({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(o=>null)});let n=null,i=null,s=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,s=ce.from("1500000000"),i=e.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:s,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const Gq="abstract-signer/5.7.0";var fi=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Hn=new W(Gq),Kq=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Yq=[W.errors.INSUFFICIENT_FUNDS,W.errors.NONCE_EXPIRED,W.errors.REPLACEMENT_UNDERPRICED];class ic{constructor(){Hn.checkAbstract(new.target,ic),ie(this,"_isSigner",!0)}getBalance(e){return fi(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return fi(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return fi(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield er(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return fi(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield er(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return fi(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return fi(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return fi(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return fi(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return fi(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)Kq.indexOf(n)===-1&&Hn.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=mr(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&Hn.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return fi(this,void 0,void 0,function*(){const r=yield er(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>fi(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&Hn.throwArgumentError("provided ENS name resolves to null","tx.to",i),s})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?Hn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&Hn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const s=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=s,r.maxPriorityFeePerGas=s}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&Hn.throwError("network does not support EIP-1559",W.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):Hn.throwError("failed to get consistent fee data",W.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(Yq.indexOf(i.code)>=0)throw i;return Hn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&Hn.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield er(r)})}_checkProvider(e){this.provider||Hn.throwError("missing provider",W.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class xx extends ic{constructor(e,r){super(),ie(this,"address",e),ie(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{Hn.throwError(e,W.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new xx(this.address,e)}}var A9={},Fe={},Eu=S9;function S9(t,e){if(!t)throw new Error(e||"Assertion failed")}S9.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Pp={exports:{}};typeof Object.create=="function"?Pp.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Pp.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var Qq=Pp.exports,Jq=Eu,Xq=Qq;Fe.inherits=Xq;function Zq(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function eH(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=s&63|128):Zq(t,i)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=s&63|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=s&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}Fe.htonl=C9;function rH(t,e){for(var r="",n=0;n>>0}return s}Fe.join32=nH;function iH(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}Fe.split32=iH;function sH(t,e){return t>>>e|t<<32-e}Fe.rotr32=sH;function oH(t,e){return t<>>32-e}Fe.rotl32=oH;function aH(t,e){return t+e>>>0}Fe.sum32=aH;function lH(t,e,r){return t+e+r>>>0}Fe.sum32_3=lH;function cH(t,e,r,n){return t+e+r+n>>>0}Fe.sum32_4=cH;function fH(t,e,r,n,i){return t+e+r+n+i>>>0}Fe.sum32_5=fH;function uH(t,e,r,n){var i=t[e],s=t[e+1],o=n+s>>>0,a=(o>>0,t[e+1]=o}Fe.sum64=uH;function dH(t,e,r,n){var i=e+n>>>0,s=(i>>0}Fe.sum64_hi=dH;function hH(t,e,r,n){var i=e+n;return i>>>0}Fe.sum64_lo=hH;function vH(t,e,r,n,i,s,o,a){var l=0,c=e;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}Fe.sum64_4_hi=vH;function yH(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}Fe.sum64_4_lo=yH;function pH(t,e,r,n,i,s,o,a,l,c){var f=0,u=e;u=u+n>>>0,f+=u>>0,f+=u>>0,f+=u>>0,f+=u>>0}Fe.sum64_5_hi=pH;function mH(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}Fe.sum64_5_lo=mH;function gH(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}Fe.rotr64_hi=gH;function xH(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.rotr64_lo=xH;function bH(t,e,r){return t>>>r}Fe.shr64_hi=bH;function wH(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.shr64_lo=wH;var sc={},HE=Fe,EH=Eu;function U0(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}sc.BlockHash=U0;U0.prototype.update=function(e,r){if(e=HE.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=HE.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[s++]=e>>>16&255,i[s++]=e>>>8&255,i[s++]=e&255}else for(i[s++]=e&255,i[s++]=e>>>8&255,i[s++]=e>>>16&255,i[s++]=e>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,o=8;o>>3}as.g0_256=PH;function TH(t){return Ji(t,17)^Ji(t,19)^t>>>10}as.g1_256=TH;var Fl=Fe,RH=sc,_H=as,gv=Fl.rotl32,Pc=Fl.sum32,IH=Fl.sum32_5,MH=_H.ft_1,I9=RH.BlockHash,OH=[1518500249,1859775393,2400959708,3395469782];function ns(){if(!(this instanceof ns))return new ns;I9.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Fl.inherits(ns,I9);var NH=ns;ns.blockSize=512;ns.outSize=160;ns.hmacStrength=80;ns.padLength=64;ns.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),wW(e.length<=this.blockSize);for(var r=e.length;r>8,d=f&255;u?l.push(u,d):l.push(d)}return l}r.toArray=n;function i(o){return o.length===1?"0"+o:o}r.zero2=i;function s(o){for(var a="",l=0;l(d>>1)-1?y=(d>>1)-w:y=w,v.isubn(y)):y=0,u[g]=y,v.iushrn(1)}return u}r.getNAF=n;function i(l,c){var f=[[],[]];l=l.clone(),c=c.clone();for(var u=0,d=0,v;l.cmpn(-u)>0||c.cmpn(-d)>0;){var g=l.andln(3)+u&3,y=c.andln(3)+d&3;g===3&&(g=-1),y===3&&(y=-1);var w;g&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-g:w=g):w=0,f[0].push(w);var x;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&g===2?x=-y:x=y):x=0,f[1].push(x),2*u===w+1&&(u=1-u),2*d===x+1&&(d=1-d),l.iushrn(1),c.iushrn(1)}return f}r.getJSF=i;function s(l,c,f){var u="_"+c;l.prototype[c]=function(){return this[u]!==void 0?this[u]:this[u]=f.call(this)}}r.cachedProperty=s;function o(l){return typeof l=="string"?r.toArray(l,"hex"):l}r.parseBytes=o;function a(l){return new Ne(l,"hex","le")}r.intFromLE=a}),jh=jn.getNAF,SW=jn.getJSF,$h=jn.assert;function zo(t,e){this.type=t,this.p=new Ne(e.p,16),this.red=e.prime?Ne.red(e.prime):Ne.mont(this.p),this.zero=new Ne(0).toRed(this.red),this.one=new Ne(1).toRed(this.red),this.two=new Ne(2).toRed(this.red),this.n=e.n&&new Ne(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Ma=zo;zo.prototype.point=function(){throw new Error("Not implemented")};zo.prototype.validate=function(){throw new Error("Not implemented")};zo.prototype._fixedNafMul=function(e,r){$h(e.precomputed);var n=e._getDoubles(),i=jh(r,1,this._bitLength),s=(1<=a;c--)l=(l<<1)+i[c];o.push(l)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=s;d>0;d--){for(a=0;a=0;l--){for(var c=0;l>=0&&o[l]===0;l--)c++;if(l>=0&&c++,a=a.dblp(c),l<0)break;var f=o[l];$h(f!==0),e.type==="affine"?f>0?a=a.mixedAdd(s[f-1>>1]):a=a.mixedAdd(s[-f-1>>1].neg()):f>0?a=a.add(s[f-1>>1]):a=a.add(s[-f-1>>1].neg())}return e.type==="affine"?a.toP():a};zo.prototype._wnafMulAdd=function(e,r,n,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,c=0,f,u,d;for(f=0;f=1;f-=2){var g=f-1,y=f;if(o[g]!==1||o[y]!==1){l[g]=jh(n[g],o[g],this._bitLength),l[y]=jh(n[y],o[y],this._bitLength),c=Math.max(l[g].length,c),c=Math.max(l[y].length,c);continue}var w=[r[g],null,null,r[y]];r[g].y.cmp(r[y].y)===0?(w[1]=r[g].add(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg())):r[g].y.cmp(r[y].y.redNeg())===0?(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].add(r[y].neg())):(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg()));var x=[-3,-1,-5,-7,0,7,5,1,3],b=SW(n[g],n[y]);for(c=Math.max(b[0].length,c),l[g]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var _=0;f>=0;){var L=!0;for(u=0;u=0&&_++,O=O.dblp(_),f<0)break;for(u=0;u0?d=a[u][z-1>>1]:z<0&&(d=a[u][-z-1>>1].neg()),d.type==="affine"?O=O.mixedAdd(d):O=O.add(d))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};si.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,s=0;s=0&&(v=c,g=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),g=g.neg()),[{a:u,b:d},{a:v,b:g}]};oi.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],s=i.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=s.mul(n.a),l=o.mul(i.a),c=s.mul(n.b),f=o.mul(i.b),u=e.sub(a).sub(l),d=c.add(f).neg();return{k1:u,k2:d}};oi.prototype.pointFromX=function(e,r){e=new Ne(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var s=i.fromRed().isOdd();return(r&&!s||!r&&s)&&(i=i.redNeg()),this.point(e,i)};oi.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(s).cmpn(0)===0};oi.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};Rr.prototype.isInfinity=function(){return this.inf};Rr.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Rr.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),s=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};Rr.prototype.getX=function(){return this.x.fromRed()};Rr.prototype.getY=function(){return this.y.fromRed()};Rr.prototype.mul=function(e){return e=new Ne(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Rr.prototype.mulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)};Rr.prototype.jmulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)};Rr.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Rr.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(s){return s.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Rr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function jr(t,e,r,n){Ma.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Ne(0)):(this.x=new Ne(e,16),this.y=new Ne(r,16),this.z=new Ne(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}wx(jr,Ma.BasePoint);oi.prototype.jpoint=function(e,r,n){return new jr(this,e,r,n)};jr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};jr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};jr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),s=e.x.redMul(n),o=this.y.redMul(r.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),l=i.redSub(s),c=o.redSub(a);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=l.redSqr(),u=f.redMul(l),d=i.redMul(f),v=c.redSqr().redIAdd(u).redISub(d).redISub(d),g=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(v,g,y)};jr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),s=this.y,o=e.y.redMul(r).redMul(this.z),a=n.redSub(i),l=s.redSub(o);if(a.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),f=c.redMul(a),u=n.redMul(c),d=l.redSqr().redIAdd(f).redISub(u).redISub(u),v=l.redMul(u.redISub(d)).redISub(s.redMul(f)),g=this.z.redMul(a);return this.curve.jpoint(d,v,g)};jr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(s),this.x.cmp(n)===0)return!0}};jr.prototype.inspect=function(){return this.isInfinity()?"":""};jr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Bd=lc(function(t,e){var r=e;r.base=Ma,r.short=kW,r.mont=null,r.edwards=null}),jd=lc(function(t,e){var r=e,n=jn.assert;function i(a){a.type==="short"?this.curve=new Bd.short(a):a.type==="edwards"?this.curve=new Bd.edwards(a):this.curve=new Bd.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function s(a,l){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(r,a,{configurable:!0,enumerable:!0,value:c}),c}})}s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:fn.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:fn.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:fn.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:fn.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:fn.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:fn.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:fn.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var o;try{o=null.crash()}catch{o=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:fn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function Io(t){if(!(this instanceof Io))return new Io(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ai.toArray(t.entropy,t.entropyEnc||"hex"),r=Ai.toArray(t.nonce,t.nonceEnc||"hex"),n=Ai.toArray(t.pers,t.persEnc||"hex");bx(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var V9=Io;Io.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Io.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Ai.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var PW=jn.assert;function z0(t,e){if(t instanceof z0)return t;this._importDER(t,e)||(PW(t.r&&t.s,"Signature without r or s"),this.r=new Ne(t.r,16),this.s=new Ne(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var V0=z0;function TW(){this.place=0}function wv(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return i<=127?!1:(e.place=o,i)}function YE(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}z0.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=YE(r),n=YE(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];Ev(i,r.length),i=i.concat(r),i.push(2),Ev(i,n.length);var s=i.concat(n),o=[48];return Ev(o,s.length),o=o.concat(s),jn.encode(o,e)};var RW=function(){throw new Error("unsupported")},q9=jn.assert;function ii(t){if(!(this instanceof ii))return new ii(t);typeof t=="string"&&(q9(Object.prototype.hasOwnProperty.call(jd,t),"Unknown curve "+t),t=jd[t]),t instanceof jd.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var _W=ii;ii.prototype.keyPair=function(e){return new Ex(this,e)};ii.prototype.keyFromPrivate=function(e,r){return Ex.fromPrivate(this,e,r)};ii.prototype.keyFromPublic=function(e,r){return Ex.fromPublic(this,e,r)};ii.prototype.genKeyPair=function(e){e||(e={});for(var r=new V9({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||RW(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Ne(2));;){var s=new Ne(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};ii.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};ii.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new Ne(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new V9({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Ne(1)),f=0;;f++){var u=i.k?i.k(f):new Ne(l.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(c)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var v=d.getX(),g=v.umod(this.n);if(g.cmpn(0)!==0){var y=u.invm(this.n).mul(g.mul(r.getPrivate()).iadd(e));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(g)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new V0({r:g,s:y,recoveryParam:w})}}}}}};ii.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Ne(e,16)),n=this.keyFromPublic(n,i),r=new V0(r,"hex");var s=r.r,o=r.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(e).umod(this.n),c=a.mul(s).umod(this.n),f;return this.curve._maxwellTrick?(f=this.g.jmulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.eqXToP(s)):(f=this.g.mulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.getX().umod(this.n).cmp(s)===0)};ii.prototype.recoverPubKey=function(t,e,r,n){q9((3&r)===r,"The recovery param is more than two bits"),e=new V0(e,n);var i=this.n,s=new Ne(t),o=e.r,a=e.s,l=r&1,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?o=this.curve.pointFromX(o.add(this.curve.n),l):o=this.curve.pointFromX(o,l);var f=e.r.invm(i),u=i.sub(s).mul(f).umod(i),d=a.mul(f).umod(i);return this.g.mulAdd(u,o,d)};ii.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new V0(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var IW=lc(function(t,e){var r=e;r.version="6.5.4",r.utils=jn,r.rand=function(){throw new Error("unsupported")},r.curve=Bd,r.curves=jd,r.ec=_W,r.eddsa=null}),MW=IW.ec;const OW="signing-key/5.7.0",Ip=new W(OW);let Av=null;function ji(){return Av||(Av=new MW("secp256k1")),Av}class ca{constructor(e){ie(this,"curve","secp256k1"),ie(this,"privateKey",ue(e)),ts(this.privateKey)!==32&&Ip.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=ji().keyFromPrivate(le(this.privateKey));ie(this,"publicKey","0x"+r.getPublic(!1,"hex")),ie(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),ie(this,"_isSigningKey",!0)}_addPoint(e){const r=ji().keyFromPublic(le(this.publicKey)),n=ji().keyFromPublic(le(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=ji().keyFromPrivate(le(this.privateKey)),n=le(e);n.length!==32&&Ip.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return Ia({recoveryParam:i.recoveryParam,r:Rt("0x"+i.r.toString(16),32),s:Rt("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=ji().keyFromPrivate(le(this.privateKey)),n=ji().keyFromPublic(le(Ax(e)));return Rt("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function H9(t,e){const r=Ia(e),n={r:le(r.r),s:le(r.s)};return"0x"+ji().recoverPubKey(le(t),n,r.recoveryParam).encode("hex",!1)}function Ax(t,e){const r=le(t);if(r.length===32){const n=new ca(r);return e?"0x"+ji().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?ue(r):"0x"+ji().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+ji().keyFromPublic(r).getPublic(!0,"hex"):ue(r)}return Ip.throwArgumentError("invalid public or private key","key","[REDACTED]")}const NW=Object.freeze(Object.defineProperty({__proto__:null,SigningKey:ca,computePublicKey:Ax,recoverPublicKey:H9},Symbol.toStringTag,{value:"Module"})),LW="transactions/5.7.0",Gr=new W(LW);var Mp;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(Mp||(Mp={}));function Sx(t){return t==="0x"?null:yt(t)}function Wr(t){return t==="0x"?r9:ce.from(t)}const DW=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],BW={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function bo(t){const e=Ax(t);return yt(ur(ct(ur(e,1)),12))}function Au(t,e){return bo(H9(le(t),e))}function kn(t,e){const r=Qi(ce.from(t).toHexString());return r.length>32&&Gr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function Sv(t,e){return{address:yt(t),storageKeys:(e||[]).map((r,n)=>(ts(r)!==32&&Gr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Oa(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Gr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),Sv(r[0],r[1])):Sv(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return Sv(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function W9(t){return Oa(t).map(e=>[e.address,e.storageKeys])}function G9(t,e){if(t.gasPrice!=null){const n=ce.from(t.gasPrice),i=ce.from(t.maxFeePerGas||0);n.eq(i)||Gr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[kn(t.chainId||0,"chainId"),kn(t.nonce||0,"nonce"),kn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),kn(t.maxFeePerGas||0,"maxFeePerGas"),kn(t.gasLimit||0,"gasLimit"),t.to!=null?yt(t.to):"0x",kn(t.value||0,"value"),t.data||"0x",W9(t.accessList||[])];if(e){const n=Ia(e);r.push(kn(n.recoveryParam,"recoveryParam")),r.push(Qi(n.r)),r.push(Qi(n.s))}return rn(["0x02",wa(r)])}function K9(t,e){const r=[kn(t.chainId||0,"chainId"),kn(t.nonce||0,"nonce"),kn(t.gasPrice||0,"gasPrice"),kn(t.gasLimit||0,"gasLimit"),t.to!=null?yt(t.to):"0x",kn(t.value||0,"value"),t.data||"0x",W9(t.accessList||[])];if(e){const n=Ia(e);r.push(kn(n.recoveryParam,"recoveryParam")),r.push(Qi(n.r)),r.push(Qi(n.s))}return rn(["0x01",wa(r)])}function jW(t,e){lx(t,BW);const r=[];DW.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=le(ue(a,l)),o.length&&a.length!==o.length&&a.length>0&&Gr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=Qi(a),a.length>o.maxLength&&Gr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(ue(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Gr.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!xu(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(ue(n)),r.push("0x"),r.push("0x")),!e)return wa(r);const i=Ia(e);let s=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),s+=n*2+8,i.v>28&&i.v!==s&&Gr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&Gr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(ue(s)),r.push(Qi(le(i.r))),r.push(Qi(le(i.s))),wa(r)}function Op(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Gr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),jW(t,e);switch(t.type){case 1:return K9(t,e);case 2:return G9(t,e)}return Gr.throwError(`unsupported transaction type: ${t.type}`,W.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function Y9(t,e,r){try{const n=Wr(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Gr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Rt(e[1],32),t.s=Rt(e[2],32);try{const n=ct(r(t));t.from=Au(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function $W(t){const e=j0(t.slice(1));e.length!==9&&e.length!==12&&Gr.throwArgumentError("invalid component count for transaction type: 2","payload",ue(t));const r=Wr(e[2]),n=Wr(e[3]),i={type:2,chainId:Wr(e[0]).toNumber(),nonce:Wr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Wr(e[4]),to:Sx(e[5]),value:Wr(e[6]),data:e[7],accessList:Oa(e[8])};return e.length===9||(i.hash=ct(t),Y9(i,e.slice(9),G9)),i}function FW(t){const e=j0(t.slice(1));e.length!==8&&e.length!==11&&Gr.throwArgumentError("invalid component count for transaction type: 1","payload",ue(t));const r={type:1,chainId:Wr(e[0]).toNumber(),nonce:Wr(e[1]).toNumber(),gasPrice:Wr(e[2]),gasLimit:Wr(e[3]),to:Sx(e[4]),value:Wr(e[5]),data:e[6],accessList:Oa(e[7])};return e.length===8||(r.hash=ct(t),Y9(r,e.slice(8),K9)),r}function UW(t){const e=j0(t);e.length!==9&&e.length!==6&&Gr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:Wr(e[0]).toNumber(),gasPrice:Wr(e[1]),gasLimit:Wr(e[2]),to:Sx(e[3]),value:Wr(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=ce.from(e[6]).toNumber()}catch{return r}if(r.r=Rt(e[7],32),r.s=Rt(e[8],32),ce.from(r.r).isZero()&&ce.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);r.chainId!==0&&(i.push(ue(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=ct(wa(i));try{r.from=Au(s,{r:ue(r.r),s:ue(r.s),recoveryParam:n})}catch{}r.hash=ct(t)}return r.type=null,r}function Q9(t){const e=le(t);if(e[0]>127)return UW(e);switch(e[0]){case 1:return FW(e);case 2:return $W(e)}return Gr.throwError(`unsupported transaction type: ${e[0]}`,W.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const zW=Object.freeze(Object.defineProperty({__proto__:null,get TransactionTypes(){return Mp},accessListify:Oa,computeAddress:bo,parse:Q9,recoverAddress:Au,serialize:Op},Symbol.toStringTag,{value:"Module"})),VW="contracts/5.7.0";var Aa=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const cr=new W(VW);function Fh(t,e){return Aa(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&cr.throwArgumentError("invalid address or ENS name","name",r);try{return yt(r)}catch{}t||cr.throwError("a provider or signer is needed to resolve ENS names",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&cr.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function $d(t,e,r){return Aa(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>$d(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield Fh(t,e):r.type==="tuple"?yield $d(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>$d(t,n,r.arrayChildren))):Promise.reject(cr.makeError("invalid value for array",W.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function q0(t,e,r){return Aa(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=mr(r.pop())),cr.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=er({override:Fh(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>Aa(this,void 0,void 0,function*(){return yt(c.signer)!==c.override&&cr.throwError("Contract with a Signer cannot override from",W.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=Fh(t.provider,n.from));const i=yield er({args:$d(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:er(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=ce.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=ce.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=ce.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=ce.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=ce.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=Oa(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=le(s);for(let u=0;un[c]!=null);return l.length&&cr.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,W.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function qW(t,e){return function(...r){return q0(t,e,r)}}function HW(t,e){const r=t.signer||t.provider;return function(...n){return Aa(this,void 0,void 0,function*(){r||cr.throwError("estimate require a provider or signer",W.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield q0(t,e,n);return yield r.estimateGas(i)})}}function WW(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=_o(s),a=null;try{a=t.interface.parseLog(s)}catch{}return a&&(o.args=a.args,o.decode=(l,c)=>t.interface.decodeEventLog(a.eventFragment,l,c),o.event=a.name,o.eventSignature=a.signature),o.removeListener=()=>t.provider,o.getBlock=()=>t.provider.getBlock(i.blockHash),o.getTransaction=()=>t.provider.getTransaction(i.transactionHash),o.getTransactionReceipt=()=>Promise.resolve(i),o}),i))}function J9(t,e,r){const n=t.signer||t.provider;return function(...i){return Aa(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=mr(i.pop());l.blockTag!=null&&(s=yield l.blockTag),delete l.blockTag,i.push(l)}t.deployTransaction!=null&&(yield t._deployed(s));const o=yield q0(t,e,i),a=yield n.call(o,s);try{let l=t.interface.decodeFunctionResult(e,a);return r&&e.outputs.length===1&&(l=l[0]),l}catch(l){throw l.code===W.errors.CALL_EXCEPTION&&(l.address=t.address,l.args=i,l.transaction=o),l}})}}function GW(t,e){return function(...r){return Aa(this,void 0,void 0,function*(){t.signer||cr.throwError("sending a transaction requires a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield q0(t,e,r),i=yield t.signer.sendTransaction(n);return WW(t,i),i})}}function QE(t,e,r){return e.constant?J9(t,e,r):GW(t,e)}function X9(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class Jf{constructor(e,r){ie(this,"tag",e),ie(this,"filter",r),this._listeners=[]}addListener(e,r){this._listeners.push({listener:e,once:r})}removeListener(e){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==e?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=e.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(e){}getEmit(e){return[e]}}class KW extends Jf{constructor(){super("error",null)}}class JE extends Jf{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&cr.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(X9(s),s),ie(this,"address",e),ie(this,"interface",r),ie(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}getEmit(e){const r=G7(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class XE extends Jf{constructor(e,r){super("*",{address:e}),ie(this,"address",e),ie(this,"interface",r)}prepareEvent(e){super.prepareEvent(e);try{const r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),e.args=r.args}catch{}}}class YW{constructor(e,r,n){ie(this,"interface",Ei(new.target,"getInterface")(r)),n==null?(ie(this,"provider",null),ie(this,"signer",null)):ic.isSigner(n)?(ie(this,"provider",n.provider||null),ie(this,"signer",n)):wu.isProvider(n)?(ie(this,"provider",n),ie(this,"signer",null)):cr.throwArgumentError("invalid signer or provider","signerOrProvider",n),ie(this,"callStatic",{}),ie(this,"estimateGas",{}),ie(this,"functions",{}),ie(this,"populateTransaction",{}),ie(this,"filters",{});{const o={};Object.keys(this.interface.events).forEach(a=>{const l=this.interface.events[a];ie(this.filters,a,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(l,c)})),o[l.name]||(o[l.name]=[]),o[l.name].push(a)}),Object.keys(o).forEach(a=>{const l=o[a];l.length===1?ie(this.filters,a,this.filters[l[0]]):cr.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(ie(this,"_runningEvents",{}),ie(this,"_wrappedEmits",{}),e==null&&cr.throwArgumentError("invalid contract address or ENS name","addressOrName",e),ie(this,"address",e),this.provider)ie(this,"resolvedAddress",Fh(this.provider,e));else try{ie(this,"resolvedAddress",Promise.resolve(yt(e)))}catch{cr.throwError("provider is required to use ENS name as contract address",W.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(o=>{});const i={},s={};Object.keys(this.interface.functions).forEach(o=>{const a=this.interface.functions[o];if(s[o]){cr.warn(`Duplicate ABI entry for ${JSON.stringify(o)}`);return}s[o]=!0;{const l=a.name;i[`%${l}`]||(i[`%${l}`]=[]),i[`%${l}`].push(o)}this[o]==null&&ie(this,o,QE(this,a,!0)),this.functions[o]==null&&ie(this.functions,o,QE(this,a,!1)),this.callStatic[o]==null&&ie(this.callStatic,o,J9(this,a,!0)),this.populateTransaction[o]==null&&ie(this.populateTransaction,o,qW(this,a)),this.estimateGas[o]==null&&ie(this.estimateGas,o,HW(this,a))}),Object.keys(i).forEach(o=>{const a=i[o];if(a.length>1)return;o=o.substring(1);const l=a[0];try{this[o]==null&&ie(this,o,this[l])}catch{}this.functions[o]==null&&ie(this.functions,o,this.functions[l]),this.callStatic[o]==null&&ie(this.callStatic,o,this.callStatic[l]),this.populateTransaction[o]==null&&ie(this.populateTransaction,o,this.populateTransaction[l]),this.estimateGas[o]==null&&ie(this.estimateGas,o,this.estimateGas[l])})}static getContractAddress(e){return ux(e)}static getInterface(e){return kp.isInterface(e)?e:new kp(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(r=>(r==="0x"&&cr.throwError("contract not deployed",W.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||cr.throwError("sending a transactions require a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=mr(e||{});return["from","to"].forEach(function(n){r[n]!=null&&cr.throwError("cannot override "+n,W.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new xx(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&ie(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Bh.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new KW);if(e==="event")return this._normalizeRunningEvent(new Jf("event",null));if(e==="*")return this._normalizeRunningEvent(new XE(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new JE(this.address,this.interface,r))}if(e.topics&&e.topics.length>0){try{const n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new JE(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Jf(X9(r),r))}return this._normalizeRunningEvent(new XE(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const r=this._wrappedEmits[e.tag];r&&e.filter&&(this.provider.off(e.filter,r),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,r,n){const i=_o(r);return i.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),e.prepareEvent(i),i}_addEventListener(e,r,n){if(this.provider||cr.throwError("events require a provider or a signer with a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(r,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const i=s=>{let o=this._wrapEvent(e,s,r);if(o.decodeError==null)try{const a=e.getEmit(o);this.emit(e.filter,...a)}catch(a){o.decodeError=a.error}e.filter!=null&&this.emit("event",o),o.decodeError!=null&&this.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}}queryFilter(e,r,n){const i=this._getRunningEvent(e),s=mr(i.filter);return typeof r=="string"&&He(r,32)?(n!=null&&cr.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=r):(s.fromBlock=r??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(o=>o.map(a=>this._wrapEvent(i,a,null)))}on(e,r){return this._addEventListener(this._getRunningEvent(e),r,!1),this}once(e,r){return this._addEventListener(this._getRunningEvent(e),r,!0),this}emit(e,...r){if(!this.provider)return!1;const n=this._getRunningEvent(e),i=n.run(r)>0;return this._checkRunningEvents(n),i}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(e,r){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(e,r){return this.off(e,r)}}class QW extends YW{}class Cx{constructor(e){ie(this,"alphabet",e),ie(this,"base",e.length),ie(this,"_alphabetMap",{}),ie(this,"_leader",e.charAt(0));for(let r=0;r0;)n.push(o%this.base),o=o/this.base|0}let i="";for(let s=0;r[s]===0&&s=0;--s)i+=this.alphabet[n[s]];return i}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;s>0;)r.push(s&255),s>>=8}for(let n=0;e[n]===this._leader&&n>24&255,l[e.length+1]=u>>16&255,l[e.length+2]=u>>8&255,l[e.length+3]=u&255;let d=le(Xf(i,t,l));s||(s=d.length,f=new Uint8Array(s),o=Math.ceil(n/s),c=n-(o-1)*s),f.set(d);for(let y=1;y=256)throw new Error("Depth too large!");return eA(Ot([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",ue(this.depth),this.parentFingerprint,Rt(ue(this.index),4),this.chainCode,this.privateKey!=null?Ot(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new Pn(Ua,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let r=this.path;r&&(r+="/"+(e&~Wa));const n=new Uint8Array(37);if(e&Wa){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(le(this.privateKey),1),r&&(r+="'")}else n.set(le(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=le(Xf(ql.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=od(ce.from(s).add(this.privateKey).mod(lG)):l=new ca(ue(s))._addPoint(this.publicKey);let c=r;const f=this.mnemonic;return f&&(c=Object.freeze({phrase:f.phrase,path:r,locale:f.locale||"en"})),new Pn(Ua,a,l,this.fingerprint,od(o),e,this.depth+1,c)}derivePath(e){const r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=Wa)throw new Error("invalid path index - "+s);n=n._derive(Wa+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=Wa)throw new Error("invalid path index - "+s);n=n._derive(o)}else throw new Error("invalid path component - "+s)}return n}static _fromSeed(e,r){const n=le(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=le(Xf(ql.sha512,cG,n));return new Pn(Ua,od(i.slice(0,32)),null,"0x00000000",od(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=Px(n),e=W0(H0(e,n),n),Pn._fromSeed(rk(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return Pn._fromSeed(e,null)}static fromExtendedKey(e){const r=Vl.decode(e);(r.length!==82||eA(r.slice(0,78))!==e)&&Zf.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=ue(r.slice(5,9)),s=parseInt(ue(r.slice(9,13)).substring(2),16),o=ue(r.slice(13,45)),a=r.slice(45,78);switch(ue(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new Pn(Ua,null,ue(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new Pn(Ua,ue(a.slice(1)),null,i,o,s,n,null)}return Zf.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function rk(t,e){e||(e="");const r=zt("mnemonic"+e,rs.NFKD);return kx(zt(t,rs.NFKD),r,2048,64,"sha512")}function H0(t,e){e=Px(e),Zf.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=le(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const s=32*r.length/3,o=r.length/3,a=tk(o);if((le(Ls(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return ue(n.slice(0,s/8))}function W0(t,e){if(e=Px(e),t=le(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&fG(8-n)),n+=3);const i=t.length/4,s=le(Ls(t))[0]&tk(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}function uG(t,e){try{return H0(t,e),!0}catch{}return!1}function dG(t){return(typeof t!="number"||t<0||t>=Wa||t%1)&&Zf.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}const hG=Object.freeze(Object.defineProperty({__proto__:null,HDNode:Pn,defaultPath:Hl,entropyToMnemonic:W0,getAccountPath:dG,isValidMnemonic:uG,mnemonicToEntropy:H0,mnemonicToSeed:rk},Symbol.toStringTag,{value:"Module"})),vG="random/5.7.0",Lp=new W(vG);function yG(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const tA=yG();let Fd=tA.crypto||tA.msCrypto;(!Fd||!Fd.getRandomValues)&&(Lp.warn("WARNING: Missing strong random number source"),Fd={getRandomValues:function(t){return Lp.throwError("no secure random source avaialble",W.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function dl(t){(t<=0||t>1024||t%1||t!=t)&&Lp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return Fd.getRandomValues(e),le(e)}function pG(t){t=t.slice();for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}const mG=Object.freeze(Object.defineProperty({__proto__:null,randomBytes:dl,shuffled:pG},Symbol.toStringTag,{value:"Module"}));var nk={exports:{}};(function(t,e){(function(r){function n(C){return parseInt(C)===C}function i(C){if(!n(C.length))return!1;for(var m=0;m255)return!1;return!0}function s(C,m){if(C.buffer&&ArrayBuffer.isView(C)&&C.name==="Uint8Array")return m&&(C.slice?C=C.slice():C=Array.prototype.slice.call(C)),C;if(Array.isArray(C)){if(!i(C))throw new Error("Array contains invalid value: "+C);return new Uint8Array(C)}if(n(C.length)&&i(C))return new Uint8Array(C);throw new Error("unsupported array-like object")}function o(C){return new Uint8Array(C)}function a(C,m,R,F,A){(F!=null||A!=null)&&(C.slice?C=C.slice(F,A):C=Array.prototype.slice.call(C,F,A)),m.set(C,R)}var l=function(){function C(R){var F=[],A=0;for(R=encodeURI(R);A191&&$<224?(F.push(String.fromCharCode(($&31)<<6|R[A+1]&63)),A+=2):(F.push(String.fromCharCode(($&15)<<12|(R[A+1]&63)<<6|R[A+2]&63)),A+=3)}return F.join("")}return{toBytes:C,fromBytes:m}}(),c=function(){function C(F){for(var A=[],$=0;$>4]+m[V&15])}return A.join("")}return{toBytes:C,fromBytes:R}}(),f={16:10,24:12,32:14},u=[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],d=[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],v=[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],g=[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],y=[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],w=[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],x=[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],b=[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],E=[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],P=[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],O=[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],D=[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],_=[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],L=[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],z=[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 H(C){for(var m=[],R=0;R>2,this._Ke[$][m%4]=A[m],this._Kd[C-$][m%4]=A[m];for(var V=0,q=F,Y;q>16&255]<<24^d[Y>>8&255]<<16^d[Y&255]<<8^d[Y>>24&255]^u[V]<<24,V+=1,F!=8)for(var m=1;m>8&255]<<8^d[Y>>16&255]<<16^d[Y>>24&255]<<24;for(var m=F/2+1;m>2,re=q%4,this._Ke[ae][re]=A[m],this._Kd[C-ae][re]=A[m++],q++}for(var ae=1;ae>24&255]^_[Y>>16&255]^L[Y>>8&255]^z[Y&255]},G.prototype.encrypt=function(C){if(C.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var m=this._Ke.length-1,R=[0,0,0,0],F=H(C),A=0;A<4;A++)F[A]^=this._Ke[0][A];for(var $=1;$>24&255]^y[F[(A+1)%4]>>16&255]^w[F[(A+2)%4]>>8&255]^x[F[(A+3)%4]&255]^this._Ke[$][A];F=R.slice()}for(var V=o(16),q,A=0;A<4;A++)q=this._Ke[m][A],V[4*A]=(d[F[A]>>24&255]^q>>24)&255,V[4*A+1]=(d[F[(A+1)%4]>>16&255]^q>>16)&255,V[4*A+2]=(d[F[(A+2)%4]>>8&255]^q>>8)&255,V[4*A+3]=(d[F[(A+3)%4]&255]^q)&255;return V},G.prototype.decrypt=function(C){if(C.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var m=this._Kd.length-1,R=[0,0,0,0],F=H(C),A=0;A<4;A++)F[A]^=this._Kd[0][A];for(var $=1;$>24&255]^E[F[(A+3)%4]>>16&255]^P[F[(A+2)%4]>>8&255]^O[F[(A+1)%4]&255]^this._Kd[$][A];F=R.slice()}for(var V=o(16),q,A=0;A<4;A++)q=this._Kd[m][A],V[4*A]=(v[F[A]>>24&255]^q>>24)&255,V[4*A+1]=(v[F[(A+3)%4]>>16&255]^q>>16)&255,V[4*A+2]=(v[F[(A+2)%4]>>8&255]^q>>8)&255,V[4*A+3]=(v[F[(A+1)%4]&255]^q)&255;return V};var X=function(C){if(!(this instanceof X))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new G(C)};X.prototype.encrypt=function(C){if(C=s(C),C.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var m=o(C.length),R=o(16),F=0;F=0;--m)this._counter[m]=C%256,C=C>>8},k.prototype.setBytes=function(C){if(C=s(C,!0),C.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=C},k.prototype.increment=function(){for(var C=15;C>=0;C--)if(this._counter[C]===255)this._counter[C]=0;else{this._counter[C]++;break}};var I=function(C,m){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",m instanceof k||(m=new k(m)),this._counter=m,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new G(C)};I.prototype.encrypt=function(C){for(var m=s(C,!0),R=0;R16)throw new Error("PKCS#7 padding byte out of range");for(var R=C.length-m,F=0;F=64;){let j=x,C=b,m=E,R=P,F=O,A=D,$=_,V=L,q,Y,ae,re,ne;for(Y=0;Y<16;Y++)ae=T+Y*4,z[Y]=(I[ae]&255)<<24|(I[ae+1]&255)<<16|(I[ae+2]&255)<<8|I[ae+3]&255;for(Y=16;Y<64;Y++)q=z[Y-2],re=(q>>>17|q<<32-17)^(q>>>19|q<<32-19)^q>>>10,q=z[Y-15],ne=(q>>>7|q<<32-7)^(q>>>18|q<<32-18)^q>>>3,z[Y]=(re+z[Y-7]|0)+(ne+z[Y-16]|0)|0;for(Y=0;Y<64;Y++)re=(((F>>>6|F<<32-6)^(F>>>11|F<<32-11)^(F>>>25|F<<32-25))+(F&A^~F&$)|0)+(V+(w[Y]+z[Y]|0)|0)|0,ne=((j>>>2|j<<32-2)^(j>>>13|j<<32-13)^(j>>>22|j<<32-22))+(j&C^j&m^C&m)|0,V=$,$=A,A=F,F=R+re|0,R=m,m=C,C=j,j=re+ne|0;x=x+j|0,b=b+C|0,E=E+m|0,P=P+R|0,O=O+F|0,D=D+A|0,_=_+$|0,L=L+V|0,T+=64,N-=64}}H(y);let G,X=y.length%64,M=y.length/536870912|0,h=y.length<<3,S=X<56?56:120,k=y.slice(y.length-X,y.length);for(k.push(128),G=X+1;G>>24&255),k.push(M>>>16&255),k.push(M>>>8&255),k.push(M>>>0&255),k.push(h>>>24&255),k.push(h>>>16&255),k.push(h>>>8&255),k.push(h>>>0&255),H(k),[x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,E>>>24&255,E>>>16&255,E>>>8&255,E>>>0&255,P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,O>>>24&255,O>>>16&255,O>>>8&255,O>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255]}function s(y,w,x){y=y.length<=64?y:i(y);const b=64+w.length+4,E=new Array(b),P=new Array(64);let O,D=[];for(O=0;O<64;O++)E[O]=54;for(O=0;O=b-4;L--){if(E[L]++,E[L]<=255)return;E[L]=0}}for(;x>=32;)_(),D=D.concat(i(P.concat(i(E)))),x-=32;return x>0&&(_(),D=D.concat(i(P.concat(i(E))).slice(0,x))),D}function o(y,w,x,b,E){let P;for(f(y,(2*x-1)*16,E,0,16),P=0;P<2*x;P++)c(y,P*16,E,16),l(E,b),f(E,0,y,w+P*16,16);for(P=0;P>>32-w}function l(y,w){f(y,0,w,0,16);for(let x=8;x>0;x-=2)w[4]^=a(w[0]+w[12],7),w[8]^=a(w[4]+w[0],9),w[12]^=a(w[8]+w[4],13),w[0]^=a(w[12]+w[8],18),w[9]^=a(w[5]+w[1],7),w[13]^=a(w[9]+w[5],9),w[1]^=a(w[13]+w[9],13),w[5]^=a(w[1]+w[13],18),w[14]^=a(w[10]+w[6],7),w[2]^=a(w[14]+w[10],9),w[6]^=a(w[2]+w[14],13),w[10]^=a(w[6]+w[2],18),w[3]^=a(w[15]+w[11],7),w[7]^=a(w[3]+w[15],9),w[11]^=a(w[7]+w[3],13),w[15]^=a(w[11]+w[7],18),w[1]^=a(w[0]+w[3],7),w[2]^=a(w[1]+w[0],9),w[3]^=a(w[2]+w[1],13),w[0]^=a(w[3]+w[2],18),w[6]^=a(w[5]+w[4],7),w[7]^=a(w[6]+w[5],9),w[4]^=a(w[7]+w[6],13),w[5]^=a(w[4]+w[7],18),w[11]^=a(w[10]+w[9],7),w[8]^=a(w[11]+w[10],9),w[9]^=a(w[8]+w[11],13),w[10]^=a(w[9]+w[8],18),w[12]^=a(w[15]+w[14],7),w[13]^=a(w[12]+w[15],9),w[14]^=a(w[13]+w[12],13),w[15]^=a(w[14]+w[13],18);for(let x=0;x<16;++x)y[x]+=w[x]}function c(y,w,x,b){for(let E=0;E=256)return!1}return!0}function d(y,w){if(typeof y!="number"||y%1)throw new Error("invalid "+w);return y}function v(y,w,x,b,E,P,O){if(x=d(x,"N"),b=d(b,"r"),E=d(E,"p"),P=d(P,"dkLen"),x===0||x&x-1)throw new Error("N must be power of 2");if(x>2147483647/128/b)throw new Error("N too large");if(b>2147483647/128/E)throw new Error("r too large");if(!u(y))throw new Error("password must be an array or buffer");if(y=Array.prototype.slice.call(y),!u(w))throw new Error("salt must be an array or buffer");w=Array.prototype.slice.call(w);let D=s(y,w,E*128*b);const _=new Uint32Array(E*32*b);for(let F=0;F<_.length;F++){const A=F*4;_[F]=(D[A+3]&255)<<24|(D[A+2]&255)<<16|(D[A+1]&255)<<8|(D[A+0]&255)<<0}const L=new Uint32Array(64*b),z=new Uint32Array(32*b*x),H=32*b,G=new Uint32Array(16),X=new Uint32Array(16),M=E*x*2;let h=0,S=null,k=!1,I=0,T=0,N,j;const C=O?parseInt(1e3/b):4294967295,m=typeof setImmediate<"u"?setImmediate:setTimeout,R=function(){if(k)return O(new Error("cancelled"),h/M);let F;switch(I){case 0:j=T*32*b,f(_,j,L,0,H),I=1,N=0;case 1:F=x-N,F>C&&(F=C);for(let $=0;$C&&(F=C);for(let $=0;$>0&255),D.push(_[$]>>8&255),D.push(_[$]>>16&255),D.push(_[$]>>24&255);const A=s(y,D,P);return O&&O(null,1,A),A}O&&m(R)};if(!O)for(;;){const F=R();if(F!=null)return F}R()}const g={scrypt:function(y,w,x,b,E,P,O){return new Promise(function(D,_){let L=0;O&&O(0),v(y,w,x,b,E,P,function(z,H,G){if(z)_(z);else if(G)O&&L!==1&&O(1),D(new Uint8Array(G));else if(O&&H!==L)return L=H,O(H)})})},syncScrypt:function(y,w,x,b,E,P){return new Uint8Array(v(y,w,x,b,E,P))}};t.exports=g})()})(sk);var AG=sk.exports;const _x=Ds(AG);var SG=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Dp=new W(ik);function rA(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class CG extends Fo{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function kG(t,e,r){if(fr(t,"crypto/cipher")==="aes-128-ctr"){const i=fa(fr(t,"crypto/cipherparams/iv")),s=new Wi.Counter(i),o=new Wi.ModeOfOperation.ctr(e,s);return le(o.decrypt(r))}return null}function ok(t,e){const r=fa(fr(t,"crypto/ciphertext"));if(ue(ct(Ot([e.slice(16,32),r]))).substring(2)!==fr(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=kG(t,e.slice(0,16),r);i||Dp.throwError("unsupported cipher",W.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=bo(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),yt(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:ue(i)};if(fr(t,"x-ethers/version")==="0.1"){const l=fa(fr(t,"x-ethers/mnemonicCiphertext")),c=fa(fr(t,"x-ethers/mnemonicCounter")),f=new Wi.Counter(c),u=new Wi.ModeOfOperation.ctr(s,f),d=fr(t,"x-ethers/path")||Hl,v=fr(t,"x-ethers/locale")||"en",g=le(u.decrypt(l));try{const y=W0(g,v),w=Pn.fromMnemonic(y,null,v).derivePath(d);if(w.privateKey!=a.privateKey)throw new Error("mnemonic mismatch");a.mnemonic=w.mnemonic}catch(y){if(y.code!==W.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new CG(a)}function ak(t,e,r,n,i){return le(kx(t,e,r,n,i))}function PG(t,e,r,n,i){return Promise.resolve(ak(t,e,r,n,i))}function lk(t,e,r,n,i){const s=Tx(e),o=fr(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return Dp.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=fa(fr(t,"crypto/kdfparams/salt")),c=parseInt(fr(t,"crypto/kdfparams/n")),f=parseInt(fr(t,"crypto/kdfparams/r")),u=parseInt(fr(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(fr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),n(s,l,c,f,u,64,i)}else if(o.toLowerCase()==="pbkdf2"){const l=fa(fr(t,"crypto/kdfparams/salt"));let c=null;const f=fr(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(fr(t,"crypto/kdfparams/c")),d=parseInt(fr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return Dp.throwArgumentError("unsupported key-derivation function","kdf",o)}function ck(t,e){const r=JSON.parse(t),n=lk(r,e,ak,_x.syncScrypt);return ok(r,n)}function fk(t,e,r){return SG(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield lk(n,e,PG,_x.scrypt,r);return ok(n,i)})}function uk(t,e,r,n){try{if(yt(t.address)!==bo(t.privateKey))throw new Error("address/privateKey mismatch");if(rA(t)){const w=t.mnemonic;if(Pn.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Hl).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(w){return Promise.reject(w)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=le(t.privateKey),s=Tx(e);let o=null,a=null,l=null;if(rA(t)){const w=t.mnemonic;o=le(H0(w.phrase,w.locale||"en")),a=w.path||Hl,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=le(r.salt):f=dl(32);let u=null;if(r.iv){if(u=le(r.iv),u.length!==16)throw new Error("invalid iv")}else u=dl(16);let d=null;if(r.uuid){if(d=le(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=dl(16);let v=1<<17,g=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(g=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),_x.scrypt(s,f,v,g,y,64,n).then(w=>{w=le(w);const x=w.slice(0,16),b=w.slice(16,32),E=w.slice(32,64),P=new Wi.Counter(u),O=new Wi.ModeOfOperation.ctr(x,P),D=le(O.encrypt(i)),_=ct(Ot([b,D])),L={address:t.address.substring(2).toLowerCase(),id:xG(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:ue(u).substring(2)},ciphertext:ue(D).substring(2),kdf:"scrypt",kdfparams:{salt:ue(f).substring(2),n:v,dklen:32,p:y,r:g},mac:_.substring(2)}};if(o){const z=dl(16),H=new Wi.Counter(z),G=new Wi.ModeOfOperation.ctr(E,H),X=le(G.encrypt(o)),M=new Date,h=M.getUTCFullYear()+"-"+Rc(M.getUTCMonth()+1,2)+"-"+Rc(M.getUTCDate(),2)+"T"+Rc(M.getUTCHours(),2)+"-"+Rc(M.getUTCMinutes(),2)+"-"+Rc(M.getUTCSeconds(),2)+".0Z";L["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+L.address,mnemonicCounter:ue(z).substring(2),mnemonicCiphertext:ue(X).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(L)})}function dk(t,e,r){if(G0(t)){r&&r(0);const n=Rx(t,e);return r&&r(1),Promise.resolve(n)}return K0(t)?fk(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function hk(t,e){if(G0(t))return Rx(t,e);if(K0(t))return ck(t,e);throw new Error("invalid JSON wallet")}const TG=Object.freeze(Object.defineProperty({__proto__:null,decryptCrowdsale:Rx,decryptJsonWallet:dk,decryptJsonWalletSync:hk,decryptKeystore:fk,decryptKeystoreSync:ck,encryptKeystore:uk,getJsonWalletAddress:EG,isCrowdsaleWallet:G0,isKeystoreWallet:K0},Symbol.toStringTag,{value:"Module"})),RG="wallet/5.7.0";var nA=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const za=new W(RG);function _G(t){return t!=null&&He(t.privateKey,32)&&t.address!=null}function IG(t){const e=t.mnemonic;return e&&e.phrase}class zi extends ic{constructor(e,r){if(super(),_G(e)){const n=new ca(e.privateKey);if(ie(this,"_signingKey",()=>n),ie(this,"address",bo(this.publicKey)),this.address!==yt(e.address)&&za.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),IG(e)){const i=e.mnemonic;ie(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Hl,locale:i.locale||"en"}));const s=this.mnemonic,o=Pn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);bo(o.privateKey)!==this.address&&za.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else ie(this,"_mnemonic",()=>null)}else{if(ca.isSigningKey(e))e.curve!=="secp256k1"&&za.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),ie(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new ca(e);ie(this,"_signingKey",()=>n)}ie(this,"_mnemonic",()=>null),ie(this,"address",bo(this.publicKey))}r&&!wu.isProvider(r)&&za.throwArgumentError("invalid provider","provider",r),ie(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new zi(this,e)}signTransaction(e){return er(e).then(r=>{r.from!=null&&(yt(r.from)!==this.address&&za.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(ct(Op(r)));return Op(r,n)})}signMessage(e){return nA(this,void 0,void 0,function*(){return Ap(this._signingKey().signDigest(gx(e)))})}_signTypedData(e,r,n){return nA(this,void 0,void 0,function*(){const i=yield Nr.resolveNames(e,r,n,s=>(this.provider==null&&za.throwError("cannot resolve ENS names without a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return Ap(this._signingKey().signDigest(Nr.hash(i.domain,r,i.value)))})}encrypt(e,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),uk(this,e,r,n)}static createRandom(e){let r=dl(16);e||(e={}),e.extraEntropy&&(r=le(ur(ct(Ot([r,e.extraEntropy])),0,16)));const n=W0(r,e.locale);return zi.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return dk(e,r,n).then(i=>new zi(i))}static fromEncryptedJsonSync(e,r){return new zi(hk(e,r))}static fromMnemonic(e,r,n){return r||(r=Hl),new zi(Pn.fromMnemonic(e,null,n).derivePath(r))}}function MG(t,e){return Au(gx(t),e)}function OG(t,e,r,n){return Au(Nr.hash(t,e,r),n)}const NG=Object.freeze(Object.defineProperty({__proto__:null,Wallet:zi,verifyMessage:MG,verifyTypedData:OG},Symbol.toStringTag,{value:"Module"})),LG="networks/5.7.1",iA=new W(LG);function DG(t){return t&&typeof t.renetwork=="function"}function ms(t){const e=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider&&n.infura!=="-")try{i.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{i.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{i.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const s=["goerli","ropsten","rinkeby","sepolia"];try{const o=new r.PocketProvider(t,n.pocket);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{i.push(new r.CloudflareProvider(t))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const s=["ropsten"],o=new r.AnkrProvider(t,n.ankr);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}if(i.length===0)return null;if(r.FallbackProvider){let s=1;return n.quorum!=null?s=n.quorum:t==="homestead"&&(s=2),new r.FallbackProvider(i,s)}return i[0]};return e.renetwork=function(r){return ms(r)},e}function Uh(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return Uh(t,n)},r}const sA={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ms("homestead")},oA={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ms("ropsten")},aA={chainId:63,name:"classicMordor",_defaultProvider:Uh("https://www.ethercluster.com/mordor","classicMordor")},ad={unspecified:{chainId:0,name:"unspecified"},homestead:sA,mainnet:sA,morden:{chainId:2,name:"morden"},ropsten:oA,testnet:oA,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ms("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ms("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ms("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ms("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Uh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:aA,classicTestnet:aA,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Uh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ms("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ms("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function BG(t){if(t==null)return null;if(typeof t=="number"){for(const n in ad){const i=ad[n];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=ad[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=ad[t.name];if(!e)return typeof t.chainId!="number"&&iA.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&iA.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(DG(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}const jG="web/5.7.1";var $G=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};function FG(t,e){return $G(this,void 0,void 0,function*(){e==null&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),e.fetchOptions!=null){const o=e.fetchOptions;o.mode&&(r.mode=o.mode),o.cache&&(r.cache=o.cache),o.credentials&&(r.credentials=o.credentials),o.redirect&&(r.redirect=o.redirect),o.referrer&&(r.referrer=o.referrer)}const n=yield fetch(t,r),i=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((o,a)=>{s[a.toLowerCase()]=o}):n.headers.keys().forEach(o=>{s[o.toLowerCase()]=n.headers.get(o)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:le(new Uint8Array(i))}})}var UG=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const hi=new W(jG);function lA(t){return new Promise(e=>{setTimeout(e,t)})}function qs(t,e){if(t==null)return null;if(typeof t=="string")return t;if(xu(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return Uo(t)}catch{}return ue(t)}return t}function zG(t){return zt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function vk(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;hi.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof t=="object"?t.throttleCallback:null,s=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;hi.assertArgument(s>0&&s%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",s);const o=typeof t=="object"?!!t.errorPassThrough:!1,a={};let l=null;const c={method:"GET"};let f=!1,u=2*60*1e3;if(typeof t=="string")l=t;else if(typeof t=="object"){if((t==null||t.url==null)&&hi.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(u=t.timeout),t.headers)for(const x in t.headers)a[x.toLowerCase()]={key:x,value:String(t.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&hi.throwError("basic authentication requires a secure https url",W.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const x=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+mx(zt(x))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=mr(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=l?l.match(d):null;if(v)try{const x={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?px(v[3]):zG(v[3])};let b=x.body;return r&&(b=r(x.body,x)),Promise.resolve(b)}catch(x){hi.throwError("processing response error",W.errors.SERVER_ERROR,{body:qs(v[1],v[2]),error:x,requestBody:null,requestMethod:"GET",url:l})}e&&(c.method="POST",c.body=e,a["content-type"]==null&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),a["content-length"]==null&&(a["content-length"]={key:"Content-Length",value:String(e.length)}));const g={};Object.keys(a).forEach(x=>{const b=a[x];g[b.key]=b.value}),c.headers=g;const y=function(){let x=null;return{promise:new Promise(function(P,O){u&&(x=setTimeout(()=>{x!=null&&(x=null,O(hi.makeError("timeout",W.errors.TIMEOUT,{requestBody:qs(c.body,g["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){x!=null&&(clearTimeout(x),x=null)}}}(),w=function(){return UG(this,void 0,void 0,function*(){for(let x=0;x=300)&&(y.cancel(),hi.throwError("bad response",W.errors.SERVER_ERROR,{status:b.statusCode,headers:b.headers,body:qs(E,b.headers?b.headers["content-type"]:null),requestBody:qs(c.body,g["content-type"]),requestMethod:c.method,url:l})),r)try{const P=yield r(E,b);return y.cancel(),P}catch(P){if(P.throttleRetry&&x{let a=null;if(s!=null)try{a=JSON.parse(Uo(s))}catch(l){hi.throwError("invalid JSON",W.errors.SERVER_ERROR,{body:s,error:l})}return r&&(a=r(a,o)),a},i=null;if(e!=null){i=zt(e);const s=typeof t=="string"?{url:t}:mr(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=mr(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return vk(t,i,n)}function hl(t,e){return e||(e={}),e=mr(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let i=null,s=!1;const o=()=>s?!1:(s=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{o()&&n(new Error("timeout"))},e.timeout));const a=e.retryLimit;let l=0;function c(){return t().then(function(f){if(f!==void 0)o()&&r(f);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!s){if(l++,l>a){o()&&n(new Error("retry limit reached"));return}let u=e.interval*parseInt(String(Math.random()*Math.pow(2,l)));ue.ceiling&&(u=e.ceiling),setTimeout(c,u)}return null},function(f){o()&&n(f)})}c()})}const VG=Object.freeze(Object.defineProperty({__proto__:null,_fetchData:vk,fetchJson:Y0,poll:hl},Symbol.toStringTag,{value:"Module"}));var zh="qpzry9x8gf2tvdw0s3jn54khce6mua7l",Bp={};for(var ld=0;ld>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function yk(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=Cl(e)^n>>5}for(e=Cl(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=yk(t);if(typeof n=="string")throw new Error(n);for(var i=t+"1",s=0;s>5)throw new Error("Non 5-bit word");n=Cl(n)^o,i+=zh.charAt(o)}for(s=0;s<6;++s)n=Cl(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=zh.charAt(a)}return i}function pk(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(i===-1)return"No separator character for "+t;if(i===0)return"Missing prefix for "+t;var s=t.slice(0,i),o=t.slice(i+1);if(o.length<6)return"Data too short";var a=yk(s);if(typeof a=="string")return a;for(var l=[],c=0;c=o.length)&&l.push(u)}return a!==1?"Invalid checksum for "+t:{prefix:s,words:l}}function HG(){var t=pk.apply(null,arguments);if(typeof t=="object")return t}function WG(t){var e=pk.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function Q0(t,e,r,n){for(var i=0,s=0,o=(1<=r;)s-=r,a.push(i>>s&o);if(n)s>0&&a.push(i<=e)return"Excess padding";if(i<this.data(u,!0);return e.transaction={hash:o,type:c,accessList:we.allowNull(this.accessList.bind(this),null),blockHash:we.allowNull(o,null),blockNumber:we.allowNull(l,null),transactionIndex:we.allowNull(l,null),confirmations:we.allowNull(l,null),from:r,gasPrice:we.allowNull(n),maxPriorityFeePerGas:we.allowNull(n),maxFeePerGas:we.allowNull(n),gasLimit:n,to:we.allowNull(r,null),value:n,nonce:l,data:s,r:we.allowNull(this.uint256),s:we.allowNull(this.uint256),v:we.allowNull(l),creates:we.allowNull(r,null),raw:we.allowNull(s)},e.transactionRequest={from:we.allowNull(r),nonce:we.allowNull(l),gasLimit:we.allowNull(n),gasPrice:we.allowNull(n),maxPriorityFeePerGas:we.allowNull(n),maxFeePerGas:we.allowNull(n),to:we.allowNull(r),value:we.allowNull(n),data:we.allowNull(f),type:we.allowNull(l),accessList:we.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:we.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:we.allowNull(this.address,null),from:we.allowNull(this.address,null),contractAddress:we.allowNull(r,null),transactionIndex:l,root:we.allowNull(a),gasUsed:n,logsBloom:we.allowNull(s),blockHash:o,transactionHash:o,logs:we.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:we.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:we.allowNull(n),status:we.allowNull(l),type:c},e.block={hash:we.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:we.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:we.allowNull(r),extraData:s,transactions:we.allowNull(we.arrayOf(o)),baseFeePerGas:we.allowNull(n)},e.blockWithTransactions=mr(e.block),e.blockWithTransactions.transactions=we.allowNull(we.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:we.allowNull(i,void 0),toBlock:we.allowNull(i,void 0),blockHash:we.allowNull(o,void 0),address:we.allowNull(r,void 0),topics:we.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:we.allowNull(l),blockHash:we.allowNull(o),transactionIndex:l,removed:we.allowNull(this.boolean.bind(this)),address:r,data:we.allowFalsish(s,"0x"),topics:we.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return Oa(e||[])}number(e){return e==="0x"?0:ce.from(e).toNumber()}type(e){return e==="0x"||e==null?0:ce.from(e).toNumber()}bigNumber(e){return ce.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),He(e))?e.toLowerCase():_c.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return yt(e)}callAddress(e){if(!He(e,32))return null;const r=yt(ur(e,12));return r===dx?null:r}contractAddress(e){return ux(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||He(e))return B0(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return ts(n)!==32?_c.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=ce.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!He(e))throw new Error("invalid uint256");return Rt(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,i=we.check(r,e);return i._difficulty=n==null?null:ce.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return we.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&ce.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const r=we.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;He(n)&&(n=ce.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),He(n)&&(n=ce.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return Q9(e)}receiptLog(e){return we.check(this.formats.receiptLog,e)}receipt(e){const r=we.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=ce.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&_c.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):_c.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&_c.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return we.check(this.formats.filter,e)}filterLog(e){return we.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const i in e)try{const s=e[i](r[i]);s!==void 0&&(n[i]=s)}catch(s){throw s.checkKey=i,s.checkValue=r[i],s}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(e(i))}),n}}}var Te=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Be=new W(Ix),XG=10;function fA(t){return t==null?"null":(ts(t)!==32&&Be.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function uA(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(i=>{r[fA(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return fA(e)}).join("&")}function ZG(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function Va(t){if(typeof t=="string"){if(t=t.toLowerCase(),ts(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+uA(t);if(Wq.isForkEvent(t))throw Be.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+uA(t.topics||[])}throw new Error("invalid event - "+t)}function Ic(){return new Date().getTime()}function dA(t){return new Promise(e=>{setTimeout(e,t)})}const eK=["block","network","pending","poll"];let tK=class{constructor(e,r,n){ie(this,"tag",e),ie(this,"listener",r),ie(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const r=e[1],n=ZG(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||eK.indexOf(this.tag)>=0}};const rK={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function kv(t){return Rt(ce.from(t).toHexString(),32)}function hA(t){return Vl.encode(Ot([t,ur(Ls(Ls(t)),0,4)]))}const mk=new RegExp("^(ipfs)://(.*)$","i"),vA=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),mk,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Ud(t,e){try{return Uo(eu(t,e))}catch{}return null}function eu(t,e){if(t==="0x")return null;const r=ce.from(ur(t,e,e+32)).toNumber(),n=ce.from(ur(t,r,r+32)).toNumber();return ur(t,r+32,r+32+n)}function Pv(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Be.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function yA(t){const e=le(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function nK(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function gk(t){const e=[];let r=0;for(let n=0;nce.from(e).eq(1)).catch(e=>{if(e.code===W.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return Te(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:rn([e,pf(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=rn(["0x9061b923",gk([p9(this.name),n.data])]));try{let s=yield this.provider.call(n);return le(s).length%32===4&&Be.throwError("resolver threw error",W.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=eu(s,0)),s}catch(s){if(s.code===W.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return Te(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?eu(n,0):null})}_getAddress(e,r){const n=rK[String(e)];if(n==null&&Be.throwError(`unsupported coin type: ${e}`,W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=le(r);if(n.p2pkh!=null){const s=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return hA(Ot([[n.p2pkh],"0x"+s[2]]))}}if(n.p2sh!=null){const s=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return hA(Ot([[n.p2sh],"0x"+s[2]]))}}if(n.prefix!=null){const s=i[1];let o=i[0];if(o===0?s!==20&&s!==32&&(o=-1):o=-1,o>=0&&i.length===2+s&&s>=1&&s<=75){const a=cA.toWords(i.slice(2));return a.unshift(o),cA.encode(n.prefix,a)}}return null}getAddress(e){return Te(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===n9?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===W.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",kv(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Be.throwError("invalid or unsupported coin data",W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Te(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;no[l])}return Be.throwError("invalid or unsupported content hash data",W.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Te(this,void 0,void 0,function*(){let r=zt(e);r=Ot([kv(64),kv(r.length),r]),r.length%32!==0&&(r=Ot([r,Rt("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",ue(r));return n==null||n==="0x"?null:Uo(n)})}}let Tv=null,iK=1;class sK extends wu{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ie(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(r=>{}),this._ready().catch(r=>{});else{const r=Ei(new.target,"getNetwork")(e);r?(ie(this,"_network",r),this.emit("network",r,null)):Be.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Te(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||Be.throwError("no network detected",W.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:ie(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return hl(()=>this._ready().then(e=>e,e=>{if(!(e.code===W.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return Tv==null&&(Tv=new we),Tv}static getNetwork(e){return BG(e??"homestead")}ccipReadFetch(e,r,n){return Te(this,void 0,void 0,function*(){if(this.disableCcipRead||n.length===0)return null;const i=e.to.toLowerCase(),s=r.toLowerCase(),o=[];for(let a=0;a=0?null:JSON.stringify({data:s,sender:i}),u=yield Y0({url:c,errorPassThrough:!0},f,(v,g)=>(v.status=g.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Be.throwError(`response not found during CCIP fetch: ${d}`,W.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Be.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,W.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return Te(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const s=yield i;if(Ic()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=Ic(),n=er({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:s})=>{if(s)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),s;const o=Ic();return i=ce.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Te(this,void 0,void 0,function*(){const e=iK++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Be.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Be.makeError("network block skew detected",W.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const s=this._emitted[i];s!=="pending"&&n-s>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const s=i.hash;let o=this.getTransactionReceipt(s).then(a=>(!a||a.blockNumber==null||(this._emitted["t:"+s]=a.blockNumber,this.emit(s,a)),null)).catch(a=>{this.emit("error",a)});r.push(o);break}case"filter":{if(!i._inflight){i._inflight=!0,i._lastBlockNumber===-2&&(i._lastBlockNumber=n-1);const s=i.filter;s.fromBlock=i._lastBlockNumber+1,s.toBlock=n;const o=s.toBlock-this._maxFilterBlockRange;o>s.fromBlock&&(s.fromBlock=o),s.fromBlock<0&&(s.fromBlock=0);const a=this.getLogs(s).then(l=>{i._inflight=!1,l.length!==0&&l.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(s,c)})}).catch(l=>{this.emit("error",l),i._inflight=!1});r.push(a)}break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Te(this,void 0,void 0,function*(){return Be.throwError("provider does not support network detection",W.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Te(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),yield dA(0),this._network;const n=Be.makeError("underlying network changed",W.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=Ic();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return Te(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return Te(this,void 0,void 0,function*(){const s=yield this.getTransactionReceipt(e);return(s?s.confirmations:0)>=r?s:new Promise((o,a)=>{const l=[];let c=!1;const f=function(){return c?!0:(c=!0,l.forEach(d=>{d()}),!1)},u=d=>{d.confirmations{this.removeListener(e,u)}),i){let d=i.startBlock,v=null;const g=y=>Te(this,void 0,void 0,function*(){c||(yield dA(1e3),this.getTransactionCount(i.from).then(w=>Te(this,void 0,void 0,function*(){if(!c){if(w<=i.nonce)d=y;else{{const x=yield this.getTransaction(e);if(x&&x.blockNumber!=null)return}for(v==null&&(v=d-3,v{c||this.once("block",g)}))});if(c)return;this.once("block",g),l.push(()=>{this.removeListener("block",g)})}if(typeof n=="number"&&n>0){const d=setTimeout(()=>{f()||a(Be.makeError("timeout exceeded",W.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Te(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Te(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return ce.from(e)}catch(r){return Be.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Te(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return ce.from(i)}catch(s){return Be.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return Te(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return ce.from(i).toNumber()}catch(s){return Be.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return Te(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return ue(i)}catch(s){return Be.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return Te(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>B0(o))}),s=yield this.perform("getStorageAt",i);try{return ue(s)}catch(o){return Be.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&ts(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Be.throwError("Transaction hash mismatch from Provider.sendTransaction.",W.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>Te(this,void 0,void 0,function*(){s==null&&(s=1),o==null&&(o=0);let a;s!==0&&n!=null&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const l=yield this._waitForTransaction(e.hash,s,o,a);return l==null&&s===0?null:(this._emitted["t:"+e.hash]=l.blockNumber,l.status===0&&Be.throwError("transaction failed",W.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Te(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>ue(s)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const s=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,s,i)}catch(s){throw s.transaction=n,s.transactionHash=n.hash,s}})}_getTransactionRequest(e){return Te(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?this._getAddress(s):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?ce.from(s):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?ue(s):null))}),this.formatter.transactionRequest(yield er(n))})}_getFilter(e){return Te(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield er(r))})}_call(e,r,n){return Te(this,void 0,void 0,function*(){n>=XG&&Be.throwError("CCIP read exceeded maximum redirections",W.errors.SERVER_ERROR,{redirects:n,transaction:e});const i=e.to,s=yield this.perform("call",{transaction:e,blockTag:r});if(n>=0&&r==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&ts(s)%32===4)try{const o=ur(s,4),a=ur(o,0,32);ce.from(a).eq(i)||Be.throwError("CCIP Read sender did not match",W.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:s});const l=[],c=ce.from(ur(o,32,64)).toNumber(),f=ce.from(ur(o,c,c+32)).toNumber(),u=ur(o,c+32);for(let x=0;xTe(this,void 0,void 0,function*(){const s=yield this.perform("getBlock",i);if(s==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let o=null;for(let l=0;lthis._wrapTransaction(l)),a}return this.formatter.block(s)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Te(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return hl(()=>Te(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const i=this.formatter.transactionResponse(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return Te(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return hl(()=>Te(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return i}),{oncePoll:this})})}getLogs(e){return Te(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield er({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),we.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Te(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Te(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Be.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return Te(this,void 0,void 0,function*(){let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const n=yield this._getResolver(r,"getResolver");if(n!=null){const i=new pA(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return Te(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Be.throwError("network does not support ENS",W.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+pf(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Te(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(He(e))throw n}typeof e!="string"&&Be.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Te(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"lookupAddress");if(n==null)return null;const i=Ud(yield this.call({to:n,data:"0x691f3431"+pf(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Te(this,void 0,void 0,function*(){let r=null;if(He(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new pA(this,o,s);try{const a=yield r.getAvatar();if(a)return a.url}catch(a){if(a.code!==W.errors.CALL_EXCEPTION)throw a}try{const a=Ud(yield this.call({to:o,data:"0x691f3431"+pf(s).substring(2)}),0);r=yield this.getResolver(a)}catch(a){if(a.code!==W.errors.CALL_EXCEPTION)throw a;return null}}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return Be.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const i=new tK(Va(e),r,n);return this._events.push(i),this._startEvent(i),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,i=[],s=Va(e);return this._events=this._events.filter(o=>o.tag!==s?!0:(setTimeout(()=>{o.listener.apply(this,r)},0),n=!0,o.once?(i.push(o),!1):!0)),i.forEach(o=>{this._stopEvent(o)}),n}listenerCount(e){if(!e)return this._events.length;let r=Va(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=Va(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let i=!1,s=Va(e);return this._events=this._events.filter(o=>o.tag!==s||o.listener!=r||i?!0:(i=!0,n.push(o),!1)),n.forEach(o=>{this._stopEvent(o)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=Va(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var ys=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const vr=new W(Ix),oK=["call","estimateGas"];function gf(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=He(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if(typeof t=="object"){for(const r in t){const n=gf(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return gf(JSON.parse(t),e)}catch{}return null}function xk(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=gf(e,!0);if(s)return s.data;vr.throwError("missing revert data in call exception; Transaction reverted without a reason string",W.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let s=gf(e.body,!1);s==null&&(s=gf(e,!1)),s&&vr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===W.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&vr.throwError("insufficient funds for intrinsic transaction cost",W.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&vr.throwError("nonce has already been used",W.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&vr.throwError("replacement fee too low",W.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&vr.throwError("legacy pre-eip-155 transactions not supported",W.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),oK.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&vr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function mA(t){return new Promise(function(e){setTimeout(e,t)})}function aK(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function Mc(t){return t&&t.toLowerCase()}const jp={};class bk extends ic{constructor(e,r,n){if(super(),e!==jp)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ie(this,"provider",r),n==null&&(n=0),typeof n=="string"?(ie(this,"_address",this.provider.formatter.address(n)),ie(this,"_index",null)):typeof n=="number"?(ie(this,"_index",n),ie(this,"_address",null)):vr.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return vr.throwError("cannot alter JSON-RPC Signer connection",W.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new lK(jp,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&vr.throwError("unknown account #"+this._index,W.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=mr(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=mr(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>ys(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&vr.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),er({tx:er(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&vr.throwArgumentError("from address mismatch","transaction",e):n.from=i;const s=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[s]).then(o=>o,o=>(typeof o.message=="string"&&o.message.match(/user denied/i)&&vr.throwError("user rejected transaction",W.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),xk("sendTransaction",o,s)))})}signTransaction(e){return vr.throwError("signing transactions is unsupported",W.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return ys(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield hl(()=>ys(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(e){return ys(this,void 0,void 0,function*(){const r=typeof e=="string"?zt(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[ue(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&vr.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return ys(this,void 0,void 0,function*(){const r=typeof e=="string"?zt(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),ue(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&vr.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return ys(this,void 0,void 0,function*(){const i=yield Nr.resolveNames(e,r,n,o=>this.provider.resolveName(o)),s=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(Nr.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&vr.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:r,value:i.value}}),o}})}unlock(e){return ys(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class lK extends bk{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const cK={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let wk=class extends sK{constructor(e,r){let n=r;n==null&&(n=new Promise((i,s)=>{setTimeout(()=>{this.detectNetwork().then(o=>{i(o)},o=>{s(o)})},0)})),super(n),e||(e=Ei(this.constructor,"defaultUrl")()),typeof e=="string"?ie(this,"connection",Object.freeze({url:e})):ie(this,"connection",Object.freeze(mr(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return ys(this,void 0,void 0,function*(){yield mA(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=Ei(this.constructor,"getNetwork");try{return r(ce.from(e).toNumber())}catch(n){return vr.throwError("could not detect network",W.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return vr.throwError("could not detect network",W.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new bk(jp,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:_o(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=Y0(this.connection,JSON.stringify(n),aK).then(o=>(this.emit("debug",{action:"response",request:n,response:o,provider:this}),o),o=>{throw this.emit("debug",{action:"response",error:o,request:n,provider:this}),o});return i&&(this._cache[e]=s,setTimeout(()=>{this._cache[e]=null},0)),s}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Mc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Mc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[Mc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Mc(r.address),Rt(r.position,32),r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[Ei(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[Ei(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=Mc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return ys(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&ce.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=mr(r),r.transaction=mr(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&vr.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return xk(e,i,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){e.send("eth_getFilterChanges",[n]).then(function(s){if(e._pendingFilter!=r)return null;let o=Promise.resolve();return s.forEach(function(a){e._emitted["t:"+a.toLowerCase()]="pending",o=o.then(function(){return e.getTransaction(a).then(function(l){return e.emit("pending",l),null})})}),o.then(function(){return mA(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(s=>{})}return i(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=mr(cK);if(r)for(const s in r)r[s]&&(n[s]=!0);lx(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=B0(ce.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=ue(e[s]))}),e.accessList&&(i.accessList=Oa(e.accessList)),i}};const fK="solidity/5.7.0",uK=new RegExp("^bytes([0-9]+)$"),dK=new RegExp("^(u?int)([0-9]*)$"),hK=new RegExp("^(.*)\\[([0-9]*)\\]$"),vK="0000000000000000000000000000000000000000000000000000000000000000",Ga=new W(fK);function Ek(t,e,r){switch(t){case"address":return r?hf(e,32):le(e);case"string":return zt(e);case"bytes":return le(e);case"bool":return e=e?"0x01":"0x00",r?hf(e,32):le(e)}let n=t.match(dK);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&Ga.throwArgumentError("invalid number type","type",t),r&&(i=256),e=ce.from(e).toTwos(i),hf(e,i/8)}if(n=t.match(uK),n){const i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&Ga.throwArgumentError("invalid bytes type","type",t),le(e).byteLength!==i&&Ga.throwArgumentError(`invalid value for ${t}`,"value",e),r?le((e+vK).substring(0,66)):e}if(n=t.match(hK),n&&Array.isArray(e)){const i=n[1];parseInt(n[2]||String(e.length))!=e.length&&Ga.throwArgumentError(`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(Ek(i,a,!0))}),Ot(o)}return Ga.throwArgumentError("invalid type","type",t)}function Mx(t,e){t.length!=e.length&&Ga.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,i){r.push(Ek(n,e[i]))}),ue(Ot(r))}function yK(t,e){return ct(Mx(t,e))}function pK(t,e){return Ls(Mx(t,e))}const mK=Object.freeze(Object.defineProperty({__proto__:null,keccak256:yK,pack:Mx,sha256:pK},Symbol.toStringTag,{value:"Module"})),gK="units/5.7.0",Ak=new W(gK),Sk=["wei","kwei","mwei","gwei","szabo","finney","ether"];function xK(t){const e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||t==="."||t==="-.")&&Ak.throwArgumentError("invalid value","value",t);let r=e[0],n="";for(r.substring(0,1)==="-"&&(n="-",r=r.substring(1));r.substring(0,1)==="0";)r=r.substring(1);r===""&&(r="0");let i="";for(e.length===2&&(i="."+(e[1]||"0"));i.length>2&&i[i.length-1]==="0";)i=i.substring(0,i.length-1);const s=[];for(;r.length;)if(r.length<=3){s.unshift(r);break}else{const o=r.length-3;s.unshift(r.substring(o)),r=r.substring(0,o)}return n+s.join(",")+i}function J0(t,e){if(typeof e=="string"){const r=Sk.indexOf(e);r!==-1&&(e=3*r)}return Ld(t,e??18)}function Wl(t,e){if(typeof t!="string"&&Ak.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=Sk.indexOf(e);r!==-1&&(e=3*r)}return Li(t,e??18)}function Ck(t){return J0(t,18)}function $p(t){return Wl(t,18)}const bK=Object.freeze(Object.defineProperty({__proto__:null,commify:xK,formatEther:Ck,formatUnits:J0,parseEther:$p,parseUnits:Wl},Symbol.toStringTag,{value:"Module"}));function Fp(){return Fp=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const i=n.map(c=>c.chainId).sort(),s=i.filter((c,f)=>i.indexOf(c)!==f);if(s.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${s}`);return!1}n.forEach(c=>c.name=c.name.toLowerCase());const o=n.map(c=>c.name).sort(),a=o.filter((c,f)=>o.indexOf(c)!==f);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let l=!1;for(let c=0;c(EK(t,!0,e),t),SK=t=>AK(kK(t)),CK=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=ce.from(e).toNumber();return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(ce.isBigNumber(e)){const r=e.toNumber();return t.find(n=>n.chainId===r)}else return}},kK=t=>{if(!t)return[];const e=t.sort((n,i)=>n.chainId===i.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},Ox=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let i=e[n];return typeof i=="function"?i=i():i==null?i="":typeof i=="object"||typeof i=="symbol"?i=i.toString():i=i.valueOf(),i})):"",kk=t=>Ox("https://${network}-indexer.sequence.app",{network:t}),PK=t=>Ox("https://${network}-relayer.sequence.app",{network:t}),TK=t=>Ox("https://nodes.sequence.app/${network}",{network:t});function gA(t){return CK(RK,t)}const Pt=t=>{const e=TK(t);return{rpcUrl:e,relayer:{url:PK(t),provider:{url:e}},indexerUrl:kk(t)}},RK=SK([at({},ht[ee.POLYGON],Pt("polygon"),{isDefaultChain:!0,isAuthChain:!0}),at({},ht[ee.MAINNET],Pt("mainnet")),at({},ht[ee.BSC],Pt("bsc")),at({},ht[ee.AVALANCHE],Pt("avalanche")),at({},ht[ee.ARBITRUM],Pt("arbitrum")),at({},ht[ee.ARBITRUM_NOVA],Pt("arbitrum-nova")),at({},ht[ee.OPTIMISM],Pt("optimism")),at({},ht[ee.OPTIMISM_SEPOLIA],Pt("optimism-sepolia")),at({},ht[ee.POLYGON_ZKEVM],Pt("polygon-zkevm")),at({},ht[ee.GNOSIS],Pt("gnosis")),at({},ht[ee.RINKEBY],Pt("rinkeby"),{disabled:!0}),at({},ht[ee.GOERLI],Pt("goerli"),{disabled:!0}),at({},ht[ee.SEPOLIA],Pt("sepolia")),at({},ht[ee.POLYGON_MUMBAI],Pt("mumbai"),{disabled:!0}),at({},ht[ee.POLYGON_AMOY],Pt("amoy")),at({},ht[ee.BSC_TESTNET],Pt("bsc-testnet")),at({},ht[ee.ARBITRUM_SEPOLIA],Pt("arbitrum-sepolia")),at({},ht[ee.BASE],Pt("base")),at({},ht[ee.BASE_SEPOLIA],Pt("base-sepolia")),at({},ht[ee.HOMEVERSE],Pt("homeverse")),at({},ht[ee.HOMEVERSE_TESTNET],Pt("homeverse-testnet")),at({},ht[ee.XAI],Pt("xai")),at({},ht[ee.XAI_SEPOLIA],Pt("xai-sepolia")),at({},ht[ee.AVALANCHE_TESTNET],Pt("avalanche-testnet")),at({},ht[ee.ASTAR_ZKEVM],Pt("astar-zkevm")),at({},ht[ee.ASTAR_ZKYOTO],Pt("astar-zkyoto")),at({},ht[ee.XR_SEPOLIA],Pt("xr-sepolia")),at({},ht[ee.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),at({},ht[ee.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]),xA=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function cd(){const e=Np.en,r=xA[Math.floor(Math.random()*xA.length)],n=e.getWord(Math.floor(Math.random()*2048)),i=e.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function _K({onSuccess:t}){const[e,r]=p.useState(""),[n,i]=p.useState(),[s,o]=p.useState(!1),[a,l]=p.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await Ye.email.initiateAuth({email:u});l(d),r(u)}catch(d){console.error(d),i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const d=await Ye.getSessionHash(),v=await Ye.email.finalizeAuth({instance:a,answer:u,email:e,sessionHash:d});if(!("idToken"in v))throw new Error("invalid identity returned by finalizeAuth");t(v.idToken)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function IK(){const[t,e]=p.useState(""),[r,n]=p.useState(void 0);return p.useEffect(()=>{const i=async()=>{try{e(await Ye.getSessionHash())}catch(s){console.error(s),n(s)}};return i(),Ye.onSessionStateChanged(i)},[e,n]),{sessionHash:t,error:r,loading:!!t}}function MK({onSuccess:t,sessionName:e}){const[r,n]=p.useState(""),[i,s]=p.useState(),[o,a]=p.useState(!1),[l,c]=p.useState("");return{inProgress:o||!!l,loading:o,error:i,initiateAuth:async d=>{a(!0);try{const v=await Ye.initiateEmailAuth(d);c(v),n(d)}catch(v){console.error(v),s(v.message||"Unknown error")}finally{a(!1)}},sendChallengeAnswer:l?async d=>{a(!0);try{const v=await Ye.completeEmailAuth({challenge:l,answer:d,email:r,sessionName:e});t(v)}catch(v){s(v.message||"Unknown error")}finally{a(!1)}}:void 0}}const OK=new URLSearchParams(window.location.search),NK=OK.get("env")??"prod";function LK(){var b;const{sessionHash:t}=IK(),[e,r]=p.useState(""),n=p.useRef(null),i=(b=n.current)==null?void 0:b.validity.valid,[s,o]=p.useState(!1),[a,l]=p.useState([]),{theme:c,setTheme:f}=BC(),{inProgress:u,loading:d,initiateAuth:v,sendChallengeAnswer:g}=NK==="dev"?MK({sessionName:cd(),onSuccess:async({wallet:E})=>{console.log(`Wallet address: ${E}`),ro.navigate("/")}}):_K({onSuccess:async E=>{const P=await Ye.signIn({idToken:E},cd());console.log(`Wallet address: ${P}`),ro.navigate("/")}});p.useEffect(()=>{(async()=>await Ye.isSignedIn()&&ro.navigate("/"))()},[]);const y=async E=>{const P=await Ye.signIn({idToken:E.credential},cd());console.log(`Wallet address: ${P}`),ro.navigate("/")},w="https://"+window.location.host+(window.location.host.includes("github.io")?"/demo-waas-auth":""),x=async E=>{const P=await Ye.signIn({idToken:E.authorization.id_token},cd());console.log(`Wallet address: ${P}`),ro.navigate("/")};return B.jsxs(te,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[B.jsx(te,{marginBottom:"16",children:B.jsx(x7,{})}),B.jsx(te,{children:B.jsx(pr,{variant:"primary",label:"Change theme",onClick:()=>f(c==="dark"?"light":"dark")})}),B.jsx(te,{children:B.jsx(Ce,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),g?B.jsxs(te,{flexDirection:"column",children:[B.jsx(te,{marginTop:"6",children:B.jsx(Ce,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),B.jsx(te,{marginTop:"4",children:B.jsx(g7,{value:a,digits:6,onChange:l})}),B.jsx(te,{gap:"2",marginY:"4",children:d?B.jsx(Pi,{}):B.jsx(pr,{variant:"primary",disabled:a.includes(""),label:"Verify",onClick:()=>g(a.join("")),"data-id":"verifyButton"})})]}):B.jsxs(te,{marginTop:"5",marginBottom:"4",children:[B.jsxs(Ce,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",B.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),B.jsxs(te,{marginTop:"6",children:[B.jsx(Lr,{name:"email",type:"email",onChange:E=>{r(E.target.value)},ref:n,onKeyDown:E=>{e&&E.key==="Enter"&&v(e)},onBlur:()=>o(!!e&&!i),value:e,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),s&&B.jsx(Ce,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),B.jsx(te,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:d?B.jsx(Pi,{}):B.jsx(pr,{variant:"primary",disabled:!i,label:"Continue",onClick:()=>v(e),"data-id":"continueButton"})})]}),B.jsx("hr",{}),!u&&!!t&&B.jsxs(B.Fragment,{children:[B.jsx(te,{children:B.jsx(Ce,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),B.jsx(vz,{onSuccess:y,shape:"circle",width:230,nonce:t},t),B.jsx(Lz,{authOptions:{clientId:"com.horizon.sequence.waas",scope:"openid email",redirectURI:w,usePopup:!0,nonce:t},onError:E=>console.error(E),onSuccess:x,uiType:"dark"},t)]})]})}function DK(t){var e="";return r(t),e;function r(i){if(i===null||typeof i!="object"||i.toJSON!=null)e+=JSON.stringify(i);else if(Array.isArray(i)){e+="[";var s=!1;i.forEach(function(a){s&&(e+=","),s=!0,a===void 0&&(a=null),r(a)}),e+="]"}else{e+="{";var o=Object.keys(i).filter(function(a){return i[a]!==void 0}).sort();o.forEach(function(a,l){return n(i,a,l)}),e+="}"}}function n(i,s,o){o>0&&(e+=","),e+=JSON.stringify(s),e+=":",r(i[s])}}let Z=function(t){return t[t.MAINNET=1]="MAINNET",t[t.ROPSTEN=3]="ROPSTEN",t[t.RINKEBY=4]="RINKEBY",t[t.GOERLI=5]="GOERLI",t[t.KOVAN=42]="KOVAN",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.POLYGON=137]="POLYGON",t[t.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",t[t.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",t[t.POLYGON_AMOY=80002]="POLYGON_AMOY",t[t.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_KOVAN=69]="OPTIMISM_KOVAN",t[t.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",t[t.OPTIMISM_SEPOLIA=11155420]="OPTIMISM_SEPOLIA",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.BASE_SEPOLIA=84532]="BASE_SEPOLIA",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.XAI=660279]="XAI",t[t.XAI_SEPOLIA=37714555429]="XAI_SEPOLIA",t[t.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",t[t.ASTAR_ZKYOTO=6038361]="ASTAR_ZKYOTO",t[t.XR_SEPOLIA=2730]="XR_SEPOLIA",t[t.TELOS=40]="TELOS",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),qe=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const ot={[Z.MAINNET]:{chainId:Z.MAINNET,type:qe.MAINNET,name:"mainnet",title:"Ethereum",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.MAINNET}.webp`,blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[Z.ROPSTEN]:{chainId:Z.ROPSTEN,type:qe.TESTNET,name:"ropsten",title:"Ropsten",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.ROPSTEN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[Z.RINKEBY]:{chainId:Z.RINKEBY,type:qe.TESTNET,name:"rinkeby",title:"Rinkeby",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.RINKEBY}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[Z.GOERLI]:{chainId:Z.GOERLI,type:qe.TESTNET,name:"goerli",title:"Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[Z.KOVAN]:{chainId:Z.KOVAN,type:qe.TESTNET,name:"kovan",title:"Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"},deprecated:!0},[Z.SEPOLIA]:{chainId:Z.SEPOLIA,type:qe.TESTNET,name:"sepolia",title:"Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[Z.POLYGON]:{chainId:Z.POLYGON,type:qe.MAINNET,name:"polygon",title:"Polygon",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.POLYGON}.webp`,blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[Z.POLYGON_MUMBAI]:{chainId:Z.POLYGON_MUMBAI,type:qe.TESTNET,name:"mumbai",title:"Polygon Mumbai",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.POLYGON_MUMBAI}.webp`,testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"},deprecated:!0},[Z.POLYGON_AMOY]:{chainId:Z.POLYGON_AMOY,type:qe.TESTNET,name:"amoy",title:"Polygon Amoy",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.POLYGON_AMOY}.webp`,testnet:!0,blockExplorer:{name:"OKLink (Amoy)",rootUrl:"https://www.oklink.com/amoy/"}},[Z.POLYGON_ZKEVM]:{chainId:Z.POLYGON_ZKEVM,type:qe.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.POLYGON_ZKEVM}.webp`,blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[Z.BSC]:{chainId:Z.BSC,type:qe.MAINNET,name:"bsc",title:"BNB Smart Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.BSC}.webp`,blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[Z.BSC_TESTNET]:{chainId:Z.BSC_TESTNET,type:qe.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.BSC_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[Z.OPTIMISM]:{chainId:Z.OPTIMISM,type:qe.MAINNET,name:"optimism",title:"Optimism",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.OPTIMISM}.webp`,blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[Z.OPTIMISM_KOVAN]:{chainId:Z.OPTIMISM_KOVAN,type:qe.TESTNET,name:"optimism-kovan",title:"Optimism Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.OPTIMISM_KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Kovan)",rootUrl:"https://kovan-optimistic.etherscan.io/"},deprecated:!0},[Z.OPTIMISM_GOERLI]:{chainId:Z.OPTIMISM_GOERLI,type:qe.TESTNET,name:"optimism-goerli",title:"Optimism Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.OPTIMISM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Goerli)",rootUrl:"https://goerli-optimistic.etherscan.io/"},deprecated:!0},[Z.OPTIMISM_SEPOLIA]:{chainId:Z.OPTIMISM_SEPOLIA,type:qe.TESTNET,name:"optimism-sepolia",title:"Optimism Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.OPTIMISM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Sepolia)",rootUrl:"https://sepolia-optimistic.etherscan.io/"}},[Z.ARBITRUM]:{chainId:Z.ARBITRUM,type:qe.MAINNET,name:"arbitrum",title:"Arbitrum One",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.ARBITRUM}.webp`,blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[Z.ARBITRUM_GOERLI]:{chainId:Z.ARBITRUM_GOERLI,type:qe.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.ARBITRUM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Goerli Testnet)",rootUrl:"https://testnet.arbiscan.io/"},deprecated:!0},[Z.ARBITRUM_SEPOLIA]:{chainId:Z.ARBITRUM_SEPOLIA,type:qe.TESTNET,name:"arbitrum-sepolia",title:"Arbitrum Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.ARBITRUM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Sepolia Testnet)",rootUrl:"https://sepolia.arbiscan.io/"}},[Z.ARBITRUM_NOVA]:{chainId:Z.ARBITRUM_NOVA,type:qe.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.ARBITRUM_NOVA}.webp`,blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[Z.AVALANCHE]:{chainId:Z.AVALANCHE,type:qe.MAINNET,name:"avalanche",title:"Avalanche",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.AVALANCHE}.webp`,blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[Z.AVALANCHE_TESTNET]:{chainId:Z.AVALANCHE_TESTNET,type:qe.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.AVALANCHE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[Z.GNOSIS]:{chainId:Z.GNOSIS,type:qe.MAINNET,name:"gnosis",title:"Gnosis Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.GNOSIS}.webp`,blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[Z.BASE]:{chainId:Z.BASE,type:qe.MAINNET,name:"base",title:"Base (Coinbase)",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.BASE}.webp`,blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[Z.BASE_GOERLI]:{chainId:Z.BASE_GOERLI,type:qe.TESTNET,name:"base-goerli",title:"Base Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.BASE_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"},deprecated:!0},[Z.BASE_SEPOLIA]:{chainId:Z.BASE_SEPOLIA,type:qe.TESTNET,name:"base-sepolia",title:"Base Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.BASE_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Base Sepolia Explorer",rootUrl:"https://base-sepolia.blockscout.com/"}},[Z.HOMEVERSE]:{chainId:Z.HOMEVERSE,type:qe.MAINNET,name:"homeverse",title:"Oasys Homeverse",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.HOMEVERSE}.webp`,blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[Z.HOMEVERSE_TESTNET]:{chainId:Z.HOMEVERSE_TESTNET,type:qe.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.HOMEVERSE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[Z.XAI]:{chainId:Z.XAI,type:qe.MAINNET,name:"xai",title:"Xai",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.XAI}.webp`,blockExplorer:{name:"Xai Explorer",rootUrl:"https://explorer.xai-chain.net/"}},[Z.XAI_SEPOLIA]:{chainId:Z.XAI_SEPOLIA,type:qe.TESTNET,name:"xai-sepolia",title:"Xai Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.XAI_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Xai Sepolia Explorer",rootUrl:"https://testnet-explorer-v2.xai-chain.net/"}},[Z.ASTAR_ZKEVM]:{chainId:Z.ASTAR_ZKEVM,type:qe.MAINNET,name:"astar-zkevm",title:"Astar zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.ASTAR_ZKEVM}.webp`,blockExplorer:{name:"Astar zkEVM Explorer",rootUrl:"https://astar-zkevm.explorer.startale.com/"}},[Z.ASTAR_ZKYOTO]:{chainId:Z.ASTAR_ZKYOTO,type:qe.TESTNET,name:"astar-zkyoto",title:"Astar zKyoto Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.ASTAR_ZKYOTO}.webp`,testnet:!0,blockExplorer:{name:"Astar zKyoto Explorer",rootUrl:"https://astar-zkyoto.blockscout.com/"}},[Z.XR_SEPOLIA]:{chainId:Z.XR_SEPOLIA,type:qe.TESTNET,name:"xr-sepolia",title:"XR Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.XR_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"XR Sepolia Explorer",rootUrl:"https://xr-sepolia-testnet.explorer.caldera.xyz/"}},[Z.TELOS]:{chainId:Z.TELOS,type:qe.MAINNET,name:"telos",title:"Telos",logoURI:`https://assets.sequence.info/images/networks/medium/${Z.TELOS}.webp`,blockExplorer:{name:"Telos Explorer",rootUrl:"https://explorer.telos.net/network/"}},[Z.HARDHAT]:{chainId:Z.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[Z.HARDHAT_2]:{chainId:Z.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};function Up(){return Up=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const i=n.map(c=>c.chainId).sort(),s=i.filter((c,f)=>i.indexOf(c)!==f);if(s.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${s}`);return!1}n.forEach(c=>c.name=c.name.toLowerCase());const o=n.map(c=>c.name).sort(),a=o.filter((c,f)=>o.indexOf(c)!==f);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let l=!1;for(let c=0;c(jK(t,!0,e),t),FK=t=>$K(UK(t)),UK=t=>{if(!t)return[];const e=t.sort((n,i)=>n.chainId===i.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},Nx=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let i=e[n];return typeof i=="function"?i=i():i==null?i="":typeof i=="object"||typeof i=="symbol"?i=i.toString():i=i.valueOf(),i})):"",zK=t=>Nx("https://${network}-indexer.sequence.app",{network:t}),VK=t=>Nx("https://${network}-relayer.sequence.app",{network:t}),qK=t=>Nx("https://nodes.sequence.app/${network}",{network:t}),Et=t=>{const e=qK(t);return{rpcUrl:e,relayer:{url:VK(t),provider:{url:e}},indexerUrl:zK(t)}};FK([tt({},ot[Z.POLYGON],Et("polygon"),{isDefaultChain:!0,isAuthChain:!0}),tt({},ot[Z.MAINNET],Et("mainnet")),tt({},ot[Z.BSC],Et("bsc")),tt({},ot[Z.AVALANCHE],Et("avalanche")),tt({},ot[Z.ARBITRUM],Et("arbitrum")),tt({},ot[Z.ARBITRUM_NOVA],Et("arbitrum-nova")),tt({},ot[Z.OPTIMISM],Et("optimism")),tt({},ot[Z.OPTIMISM_SEPOLIA],Et("optimism-sepolia")),tt({},ot[Z.POLYGON_ZKEVM],Et("polygon-zkevm")),tt({},ot[Z.GNOSIS],Et("gnosis")),tt({},ot[Z.RINKEBY],Et("rinkeby"),{disabled:!0}),tt({},ot[Z.GOERLI],Et("goerli"),{disabled:!0}),tt({},ot[Z.SEPOLIA],Et("sepolia")),tt({},ot[Z.POLYGON_MUMBAI],Et("mumbai"),{disabled:!0}),tt({},ot[Z.POLYGON_AMOY],Et("amoy")),tt({},ot[Z.BSC_TESTNET],Et("bsc-testnet")),tt({},ot[Z.ARBITRUM_SEPOLIA],Et("arbitrum-sepolia")),tt({},ot[Z.BASE],Et("base")),tt({},ot[Z.BASE_SEPOLIA],Et("base-sepolia")),tt({},ot[Z.HOMEVERSE],Et("homeverse")),tt({},ot[Z.HOMEVERSE_TESTNET],Et("homeverse-testnet")),tt({},ot[Z.XAI],Et("xai")),tt({},ot[Z.XAI_SEPOLIA],Et("xai-sepolia")),tt({},ot[Z.AVALANCHE_TESTNET],Et("avalanche-testnet")),tt({},ot[Z.ASTAR_ZKEVM],Et("astar-zkevm")),tt({},ot[Z.ASTAR_ZKYOTO],Et("astar-zkyoto")),tt({},ot[Z.XR_SEPOLIA],Et("xr-sepolia")),tt({},ot[Z.TELOS],Et("telos")),tt({},ot[Z.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),tt({},ot[Z.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]);const HK=(t,e)=>e.some(r=>t instanceof r);let bA,wA;function WK(){return bA||(bA=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function GK(){return wA||(wA=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Pk=new WeakMap,zp=new WeakMap,Tk=new WeakMap,Rv=new WeakMap,Lx=new WeakMap;function KK(t){const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{r(wo(t.result)),i()},o=()=>{n(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&Pk.set(r,t)}).catch(()=>{}),Lx.set(e,t),e}function YK(t){if(zp.has(t))return;const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{r(),i()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});zp.set(t,e)}let Vp={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return zp.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Tk.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wo(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function QK(t){Vp=t(Vp)}function JK(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(_v(this),e,...r);return Tk.set(n,e.sort?e.sort():[e]),wo(n)}:GK().includes(t)?function(...e){return t.apply(_v(this),e),wo(Pk.get(this))}:function(...e){return wo(t.apply(_v(this),e))}}function XK(t){return typeof t=="function"?JK(t):(t instanceof IDBTransaction&&YK(t),HK(t,WK())?new Proxy(t,Vp):t)}function wo(t){if(t instanceof IDBRequest)return KK(t);if(Rv.has(t))return Rv.get(t);const e=XK(t);return e!==t&&(Rv.set(t,e),Lx.set(e,t)),e}const _v=t=>Lx.get(t);function ZK(t,e,{blocked:r,upgrade:n,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=wo(o);return n&&o.addEventListener("upgradeneeded",l=>{n(wo(o.result),l.oldVersion,l.newVersion,wo(o.transaction),l)}),r&&o.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{s&&l.addEventListener("close",()=>s()),i&&l.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const eY=["get","getKey","getAll","getAllKeys","count"],tY=["put","add","delete","clear"],Iv=new Map;function EA(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Iv.get(e))return Iv.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,i=tY.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||eY.includes(r)))return;const s=async function(o,...a){const l=this.transaction(o,i?"readwrite":"readonly");let c=l.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),i&&l.done]))[0]};return Iv.set(e,s),s}QK(t=>({...t,get:(e,r,n)=>EA(e,r)||t.get(e,r,n),has:(e,r)=>!!EA(e,r)||t.has(e,r)}));var Jo={};const rY=$t(zq),nY=$t(CV),iY=$t(oq),sY=$t(XW),oY=$t(eV),aY=$t($q),lY=$t(hG),cY=$t(TG),fY=$t(mV),uY=$t(Xz),AA=$t(rG),dY=$t(mK),hY=$t(mG),vY=$t(cV),yY=$t(xV),pY=$t(NW),SA=$t(rq),mY=$t(zW),gY=$t(bK),xY=$t(NG),bY=$t(VG);(function(t){var e=Qs&&Qs.__createBinding||(Object.create?function(G,X,M,h){h===void 0&&(h=M),Object.defineProperty(G,h,{enumerable:!0,get:function(){return X[M]}})}:function(G,X,M,h){h===void 0&&(h=M),G[h]=X[M]}),r=Qs&&Qs.__setModuleDefault||(Object.create?function(G,X){Object.defineProperty(G,"default",{enumerable:!0,value:X})}:function(G,X){G.default=X}),n=Qs&&Qs.__importStar||function(G){if(G&&G.__esModule)return G;var X={};if(G!=null)for(var M in G)M!=="default"&&Object.prototype.hasOwnProperty.call(G,M)&&e(X,G,M);return r(X,G),X};Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes32String=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=t.nameprep=t.hexDataSlice=t.hexDataLength=t.hexZeroPad=t.hexValue=t.hexStripZeros=t.hexConcat=t.isHexString=t.hexlify=t.base64=t.base58=t.TransactionDescription=t.LogDescription=t.Interface=t.SigningKey=t.HDNode=t.defaultPath=t.isBytesLike=t.isBytes=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.shallowCopy=t.resolveProperties=t.getStatic=t.defineReadOnly=t.deepCopy=t.checkProperties=t.poll=t.fetchJson=t._fetchData=t.RLP=t.Logger=t.checkResultErrors=t.FormatTypes=t.ParamType=t.FunctionFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.Fragment=t.defaultAbiCoder=t.AbiCoder=void 0,t.Indexed=t.Utf8ErrorReason=t.UnicodeNormalizationForm=t.SupportedAlgorithm=t.mnemonicToSeed=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.getAccountPath=t.verifyTypedData=t.verifyMessage=t.recoverPublicKey=t.computePublicKey=t.recoverAddress=t.computeAddress=t.getJsonWalletAddress=t.TransactionTypes=t.serializeTransaction=t.parseTransaction=t.accessListify=t.joinSignature=t.splitSignature=t.soliditySha256=t.solidityKeccak256=t.solidityPack=t.shuffled=t.randomBytes=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.computeHmac=t.commify=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.isAddress=t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.getAddress=t._TypedDataEncoder=t.id=t.isValidName=t.namehash=t.hashMessage=t.dnsEncode=t.parseBytes32String=void 0;var i=rY;Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return i.defaultAbiCoder}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return i.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}});var s=nY;Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return s.getAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}}),Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return s.getContractAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return s.getIcapAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return s.isAddress}});var o=n(iY);t.base64=o;var a=sY;Object.defineProperty(t,"base58",{enumerable:!0,get:function(){return a.Base58}});var l=oY;Object.defineProperty(t,"arrayify",{enumerable:!0,get:function(){return l.arrayify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return l.concat}}),Object.defineProperty(t,"hexConcat",{enumerable:!0,get:function(){return l.hexConcat}}),Object.defineProperty(t,"hexDataSlice",{enumerable:!0,get:function(){return l.hexDataSlice}}),Object.defineProperty(t,"hexDataLength",{enumerable:!0,get:function(){return l.hexDataLength}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return l.hexlify}}),Object.defineProperty(t,"hexStripZeros",{enumerable:!0,get:function(){return l.hexStripZeros}}),Object.defineProperty(t,"hexValue",{enumerable:!0,get:function(){return l.hexValue}}),Object.defineProperty(t,"hexZeroPad",{enumerable:!0,get:function(){return l.hexZeroPad}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return l.isBytes}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return l.isBytesLike}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return l.isHexString}}),Object.defineProperty(t,"joinSignature",{enumerable:!0,get:function(){return l.joinSignature}}),Object.defineProperty(t,"zeroPad",{enumerable:!0,get:function(){return l.zeroPad}}),Object.defineProperty(t,"splitSignature",{enumerable:!0,get:function(){return l.splitSignature}}),Object.defineProperty(t,"stripZeros",{enumerable:!0,get:function(){return l.stripZeros}});var c=aY;Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return c._TypedDataEncoder}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return c.namehash}});var f=lY;Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(t,"entropyToMnemonic",{enumerable:!0,get:function(){return f.entropyToMnemonic}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(t,"HDNode",{enumerable:!0,get:function(){return f.HDNode}}),Object.defineProperty(t,"isValidMnemonic",{enumerable:!0,get:function(){return f.isValidMnemonic}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return f.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return f.mnemonicToSeed}});var u=cY;Object.defineProperty(t,"getJsonWalletAddress",{enumerable:!0,get:function(){return u.getJsonWalletAddress}});var d=fY;Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return d.keccak256}});var v=uY;Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return v.Logger}});var g=AA;Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return g.computeHmac}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return g.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return g.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return g.sha512}});var y=dY;Object.defineProperty(t,"solidityKeccak256",{enumerable:!0,get:function(){return y.keccak256}}),Object.defineProperty(t,"solidityPack",{enumerable:!0,get:function(){return y.pack}}),Object.defineProperty(t,"soliditySha256",{enumerable:!0,get:function(){return y.sha256}});var w=hY;Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return w.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return w.shuffled}});var x=vY;Object.defineProperty(t,"checkProperties",{enumerable:!0,get:function(){return x.checkProperties}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return x.deepCopy}}),Object.defineProperty(t,"defineReadOnly",{enumerable:!0,get:function(){return x.defineReadOnly}}),Object.defineProperty(t,"getStatic",{enumerable:!0,get:function(){return x.getStatic}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return x.resolveProperties}}),Object.defineProperty(t,"shallowCopy",{enumerable:!0,get:function(){return x.shallowCopy}});var b=n(yY);t.RLP=b;var E=pY;Object.defineProperty(t,"computePublicKey",{enumerable:!0,get:function(){return E.computePublicKey}}),Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return E.recoverPublicKey}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return E.SigningKey}});var P=SA;Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return P.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return P.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return P.parseBytes32String}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return P._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return P.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return P.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return P.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return P.Utf8ErrorFuncs}});var O=mY;Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return O.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return O.computeAddress}}),Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return O.parse}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return O.recoverAddress}}),Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return O.serialize}}),Object.defineProperty(t,"TransactionTypes",{enumerable:!0,get:function(){return O.TransactionTypes}});var D=gY;Object.defineProperty(t,"commify",{enumerable:!0,get:function(){return D.commify}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return D.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return D.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return D.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return D.parseUnits}});var _=xY;Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return _.verifyMessage}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return _.verifyTypedData}});var L=bY;Object.defineProperty(t,"_fetchData",{enumerable:!0,get:function(){return L._fetchData}}),Object.defineProperty(t,"fetchJson",{enumerable:!0,get:function(){return L.fetchJson}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return L.poll}});var z=AA;Object.defineProperty(t,"SupportedAlgorithm",{enumerable:!0,get:function(){return z.SupportedAlgorithm}});var H=SA;Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return H.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return H.Utf8ErrorReason}})})(Jo);class Jc extends Error{}Jc.prototype.name="InvalidTokenError";function wY(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function EY(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return wY(e)}catch{return atob(e)}}function AY(t,e){if(typeof t!="string")throw new Jc("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Jc(`Invalid token specified: missing part #${r+1}`);let i;try{i=EY(n)}catch(s){throw new Jc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Jc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const SY=t=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},CY=t=>({httpHandler:t.httpHandler()});var CA;(function(t){t.HEADER="header",t.QUERY="query"})(CA||(CA={}));var kA;(function(t){t.HEADER="header",t.QUERY="query"})(kA||(kA={}));var tu;(function(t){t.HTTP="http",t.HTTPS="https"})(tu||(tu={}));var Vh;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Vh||(Vh={}));var PA;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(PA||(PA={}));const qp="__smithy_context";var TA;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(TA||(TA={}));var RA;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(RA||(RA={}));class ls{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const e=new ls({...this,headers:{...this.headers}});return e.query&&(e.query=kY(e.query)),e}}function kY(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class qh{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const PY=t=>e=>async r=>{if(!ls.isInstance(r.request))return e(r);const{request:n}=r,{handlerProtocol:i=""}=t.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},TY={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},RY=t=>({applyToStack:e=>{e.add(PY(t),TY)}}),_Y=()=>(t,e)=>async r=>{var n,i;try{const s=await t(r),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f,overrideOutputFilterSensitiveLog:u}=c,d=f??e.inputFilterSensitiveLog,v=u??e.outputFilterSensitiveLog,{$metadata:g,...y}=s.output;return(n=l==null?void 0:l.info)==null||n.call(l,{clientName:o,commandName:a,input:d(r.input),output:v(y),metadata:g}),s}catch(s){const{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f}=c,u=f??e.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:u(r.input),error:s,metadata:s.$metadata}),s}},IY={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},MY=t=>({applyToStack:e=>{e.add(_Y(),IY)}}),_A="X-Amzn-Trace-Id",OY="AWS_LAMBDA_FUNCTION_NAME",NY="_X_AMZN_TRACE_ID",LY=t=>e=>async r=>{const{request:n}=r;if(!ls.isInstance(n)||t.runtime!=="node"||n.headers.hasOwnProperty(_A))return e(r);const i=process.env[OY],s=process.env[NY],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[_A]=s),e({...r,request:n})},DY={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},BY=t=>({applyToStack:e=>{e.add(LY(t),DY)}});function jY(t){return{...t,customUserAgent:typeof t.customUserAgent=="string"?[[t.customUserAgent]]:t.customUserAgent}}const $Y=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Rk=t=>$Y.test(t)||t.startsWith("[")&&t.endsWith("]"),FY=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Dx=(t,e=!1)=>{if(!e)return FY.test(t);const r=t.split(".");for(const n of r)if(!Dx(n))return!1;return!0},Hh={},ru="endpoints";function Mo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Mo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Mo).join(", ")})`:JSON.stringify(t,null,2)}class Ln extends Error{constructor(e){super(e),this.name="EndpointError"}}const UY=(t,e)=>t===e,zY=t=>{const e=t.split("."),r=[];for(const n of e){const i=n.indexOf("[");if(i!==-1){if(n.indexOf("]")!==n.length-1)throw new Ln(`Path: '${t}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new Ln(`Invalid array index: '${s}' in path: '${t}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},_k=(t,e)=>zY(e).reduce((r,n)=>{if(typeof r!="object")throw new Ln(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),VY=t=>t!=null,qY=t=>!t,Mv={[tu.HTTP]:80,[tu.HTTPS]:443},HY=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:v,protocol:g="",path:y="",query:w={}}=t,x=new URL(`${g}//${d}${v?`:${v}`:""}${y}`);return x.search=Object.entries(w).map(([b,E])=>`${b}=${E}`).join("&"),x}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=e;if(a)return null;const l=o.slice(0,-1);if(!Object.values(tu).includes(l))return null;const c=Rk(i),f=r.includes(`${n}:${Mv[l]}`)||typeof t=="string"&&t.includes(`${n}:${Mv[l]}`),u=`${n}${f?`:${Mv[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},WY=(t,e)=>t===e,GY=(t,e,r,n)=>e>=r||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),YY={booleanEquals:UY,getAttr:_k,isSet:VY,isValidHostLabel:Dx,not:qY,parseURL:HY,stringEquals:WY,substring:GY,uriEncode:KY},Ik=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let i=0;for(;i({...e.endpointParams,...e.referenceRecord})[t],X0=(t,e,r)=>{if(typeof t=="string")return Ik(t,r);if(t.fn)return Mk(t,r);if(t.ref)return QY(t,r);throw new Ln(`'${e}': ${String(t)} is not a string, function or reference.`)},Mk=({fn:t,argv:e},r)=>{const n=e.map(s=>["boolean","number"].includes(typeof s)?s:X0(s,"arg",r)),i=t.split(".");return i[0]in Hh&&i[1]!=null?Hh[i[0]][i[1]](...n):YY[t](...n)},JY=({assign:t,...e},r)=>{var i,s;if(t&&t in r.referenceRecord)throw new Ln(`'${t}' is already defined in Reference Record.`);const n=Mk(e,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,`${ru} evaluateCondition: ${Mo(e)} = ${Mo(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},Bx=(t=[],e)=>{var n,i;const r={};for(const s of t){const{result:o,toAssign:a}=JY(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!o)return{result:o};a&&(r[a.name]=a.value,(i=(n=e.logger)==null?void 0:n.debug)==null||i.call(n,`${ru} assign: ${a.name} := ${Mo(a.value)}`))}return{result:!0,referenceRecord:r}},XY=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=X0(s,"Header value entry",e);if(typeof o!="string")throw new Ln(`Header '${n}' value '${o}' is not a string`);return o})}),{}),Ok=(t,e)=>{if(Array.isArray(t))return t.map(r=>Ok(r,e));switch(typeof t){case"string":return Ik(t,e);case"object":if(t===null)throw new Ln(`Unexpected endpoint property: ${t}`);return Nk(t,e);case"boolean":return t;default:throw new Ln(`Unexpected endpoint property type: ${typeof t}`)}},Nk=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:Ok(i,e)}),{}),ZY=(t,e)=>{const r=X0(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new Ln(`Endpoint URL must be a string, got ${typeof r}`)},eQ=(t,e)=>{var f,u;const{conditions:r,endpoint:n}=t,{result:i,referenceRecord:s}=Bx(r,e);if(!i)return;const o={...e,referenceRecord:{...e.referenceRecord,...s}},{url:a,properties:l,headers:c}=n;return(u=(f=e.logger)==null?void 0:f.debug)==null||u.call(f,`${ru} Resolving endpoint from template: ${Mo(n)}`),{...c!=null&&{headers:XY(c,o)},...l!=null&&{properties:Nk(l,o)},url:ZY(a,o)}},tQ=(t,e)=>{const{conditions:r,error:n}=t,{result:i,referenceRecord:s}=Bx(r,e);if(i)throw new Ln(X0(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...s}}))},rQ=(t,e)=>{const{conditions:r,rules:n}=t,{result:i,referenceRecord:s}=Bx(r,e);if(i)return Lk(n,{...e,referenceRecord:{...e.referenceRecord,...s}})},Lk=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const n=eQ(r,e);if(n)return n}else if(r.type==="error")tQ(r,e);else if(r.type==="tree"){const n=rQ(r,e);if(n)return n}else throw new Ln(`Unknown endpoint rule: ${r}`);throw new Ln("Rules evaluation failed")},nQ=(t,e)=>{var c,f,u,d,v;const{endpointParams:r,logger:n}=e,{parameters:i,rules:s}=t;(f=(c=e.logger)==null?void 0:c.debug)==null||f.call(c,`${ru} Initial EndpointParams: ${Mo(r)}`);const o=Object.entries(i).filter(([,g])=>g.default!=null).map(([g,y])=>[g,y.default]);if(o.length>0)for(const[g,y]of o)r[g]=r[g]??y;const a=Object.entries(i).filter(([,g])=>g.required).map(([g])=>g);for(const g of a)if(r[g]==null)throw new Ln(`Missing required parameter: '${g}'`);const l=Lk(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=e.endpointParams)!=null&&u.Endpoint)try{const g=new URL(e.endpointParams.Endpoint),{protocol:y,port:w}=g;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=e.logger)==null?void 0:d.debug)==null||v.call(d,`${ru} Resolved endpoint: ${Mo(l)}`),l},Dk=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!Dk(r))return!1;return!0}return!(!Dx(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Rk(t))},iQ=t=>{const e=t.split(":");if(e.length<6)return null;const[r,n,i,s,o,...a]=e;return r!=="arn"||n===""||i===""||a[0]===""?null:{partition:n,service:i,region:s,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},sQ=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],oQ="1.1",aQ={partitions:sQ,version:oQ};let lQ=aQ;const cQ=t=>{const{partitions:e}=lQ;for(const n of e){const{regions:i,outputs:s}=n;for(const[o,a]of Object.entries(i))if(o===t)return{...s,...a}}for(const n of e){const{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(t))return{...s}}const r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},Bk={isVirtualHostableS3Bucket:Dk,parseArn:iQ,partition:cQ};Hh.aws=Bk;const IA="user-agent",Ov="x-amz-user-agent",MA=" ",Nv="/",fQ=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,uQ=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,OA="-",dQ=t=>(e,r)=>async n=>{var u,d;const{request:i}=n;if(!ls.isInstance(i))return e(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(Lv))||[],a=(await t.defaultUserAgentProvider()).map(Lv),l=((d=t==null?void 0:t.customUserAgent)==null?void 0:d.map(Lv))||[],c=[].concat([...a,...o,...l]).join(MA),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(MA);return t.runtime!=="browser"?(f&&(s[Ov]=s[Ov]?`${s[IA]} ${f}`:f),s[IA]=c):s[Ov]=c,e({...n,request:i})},Lv=t=>{var o;const e=t[0].split(Nv).map(a=>a.replace(fQ,OA)).join(Nv),r=(o=t[1])==null?void 0:o.replace(uQ,OA),n=e.indexOf(Nv),i=e.substring(0,n);let s=e.substring(n+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},hQ={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},vQ=t=>({applyToStack:e=>{e.add(dQ(t),hQ)}});var NA;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(NA||(NA={}));const yQ=!1,pQ=!1,Z0=t=>t[qp]||(t[qp]={}),Eo=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},jk=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),LA=t=>jk(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,mQ=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return{...t,region:async()=>{if(typeof e=="string")return LA(e);const n=await e();return LA(n)},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return jk(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}};function gQ(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const xQ=(t,e)=>(r,n)=>async i=>{var c;const s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,i.input)),o=gQ(t.httpAuthSchemes),a=Z0(n),l=[];for(const f of s){const u=o.get(f.schemeId);if(!u){l.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}const d=u.identityProvider(await e.identityProviderConfigProvider(t));if(!d){l.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:v={},signingProperties:g={}}=((c=f.propertiesExtractor)==null?void 0:c.call(f,t,n))||{};f.identityProperties=Object.assign(f.identityProperties||{},v),f.signingProperties=Object.assign(f.signingProperties||{},g),a.selectedHttpAuthScheme={httpAuthOption:f,identity:await d(f.identityProperties),signer:u.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(l.join(` +`));return r(i)},bQ=async t=>{const e=(t==null?void 0:t.Bucket)||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),CQ(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!SQ(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},wQ=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,EQ=/(\d+\.){3}\d+/,AQ=/\.\./,SQ=t=>wQ.test(t)&&!EQ.test(t)&&!AQ.test(t),CQ=t=>{const[e,r,n,,,i]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,o=!!(s&&r&&n&&i);if(s&&!o)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return o},kQ=(t,e,r)=>{const n=async()=>{const i=r[t]??r[e];return typeof i=="function"?i():i};return t==="credentialScope"||e==="CredentialScope"?async()=>{const i=typeof r.credentials=="function"?await r.credentials():r.credentials;return(i==null?void 0:i.credentialScope)??(i==null?void 0:i.CredentialScope)}:t==="endpoint"||e==="endpoint"?async()=>{const i=await n();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){const{protocol:s,hostname:o,port:a,path:l}=i;return`${s}//${o}${a?":"+a:""}${l}`}}return i}:n},PQ=async t=>{};function TQ(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in e?Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]:e[n]=i}return e}const Wh=t=>{if(typeof t=="string")return Wh(new URL(t));const{hostname:e,pathname:r,port:n,protocol:i,search:s}=t;let o;return s&&(o=TQ(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}},$k=t=>typeof t=="object"?"url"in t?Wh(t.url):t:Wh(t),RQ=async(t,e,r,n)=>{if(!r.endpoint){const o=await PQ(r.serviceId||"");o&&(r.endpoint=()=>Promise.resolve($k(o)))}const i=await _Q(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},_Q=async(t,e,r)=>{var s;const n={},i=((s=e==null?void 0:e.getEndpointParameterInstructions)==null?void 0:s.call(e))||{};for(const[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await kQ(a.name,o,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await bQ(n),n},IQ=({config:t,instructions:e})=>(r,n)=>async i=>{var a,l,c;const s=await RQ(i.input,{getEndpointParameterInstructions(){return e}},{...t},n);n.endpointV2=s,n.authSchemes=(a=s.properties)==null?void 0:a.authSchemes;const o=(l=n.authSchemes)==null?void 0:l[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const f=Z0(n),u=(c=f==null?void 0:f.selectedHttpAuthScheme)==null?void 0:c.httpAuthOption;u&&(u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...i})},MQ=(t,e)=>r=>async n=>{const{response:i}=await r(n);try{const s=await e(i,t);return{response:i,output:s}}catch(s){if(Object.defineProperty(s,"$response",{value:i}),!("$metadata"in s)){const o="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";s.message+=` + `+o,typeof s.$responseBodyText<"u"&&s.$response&&(s.$response.body=s.$responseBodyText)}throw s}},OQ=(t,e)=>(r,n)=>async i=>{var a;const s=(a=n.endpointV2)!=null&&a.url&&t.urlParser?async()=>t.urlParser(n.endpointV2.url):t.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const o=await e(i.input,{...t,endpoint:s});return r({...i,request:o})},NQ={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},jx={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function $x(t,e,r){return{applyToStack:n=>{n.add(MQ(t,r),NQ),n.add(OQ(t,e),jx)}}}const Fk={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:jx.name},Fx=(t,e)=>({applyToStack:r=>{r.addRelativeTo(IQ({config:t,instructions:e}),Fk)}}),LQ=t=>{const e=t.tls??!0,{endpoint:r}=t,n=r!=null?async()=>$k(await Eo(r)()):void 0;return{...t,endpoint:n,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:Eo(t.useDualstackEndpoint??!1),useFipsEndpoint:Eo(t.useFipsEndpoint??!1)}},DQ={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:Fk.name},BQ=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(xQ(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),DQ)}});jx.name;const jQ=t=>e=>{throw e},$Q=(t,e)=>{},FQ=t=>(e,r)=>async n=>{if(!ls.isInstance(n.request))return e(n);const s=Z0(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,c=await e({...n,request:await l.sign(n.request,a,o)}).catch((l.errorHandler||jQ)(o));return(l.successHandler||$Q)(c.response,o),c};var Gl;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Gl||(Gl={}));const Gh=3,UQ=Gl.STANDARD,zQ=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],VQ=["TimeoutError","RequestTimeout","RequestTimeoutException"],qQ=[500,502,503,504],HQ=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],WQ=t=>{var e;return(e=t.$metadata)==null?void 0:e.clockSkewCorrected},Uk=t=>{var e,r;return((e=t.$metadata)==null?void 0:e.httpStatusCode)===429||zQ.includes(t.name)||((r=t.$retryable)==null?void 0:r.throttling)==!0},zk=t=>{var e;return WQ(t)||VQ.includes(t.name)||HQ.includes((t==null?void 0:t.code)||"")||qQ.includes(((e=t.$metadata)==null?void 0:e.httpStatusCode)||0)},GQ=t=>{var e;if(((e=t.$metadata)==null?void 0:e.httpStatusCode)!==void 0){const r=t.$metadata.httpStatusCode;return 500<=r&&r<=599&&!zk(t)}return!1};class KQ{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(e==null?void 0:e.beta)??.7,this.minCapacity=(e==null?void 0:e.minCapacity)??1,this.minFillRate=(e==null?void 0:e.minFillRate)??.5,this.scaleConstant=(e==null?void 0:e.scaleConstant)??.4,this.smooth=(e==null?void 0:e.smooth)??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const r=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const r=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=e}updateClientSendingRate(e){let r;if(this.updateMeasuredRate(),Uk(e)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}const Hp=100,Vk=20*1e3,YQ=500,DA=500,QQ=5,JQ=10,XQ=1,ZQ="amz-sdk-invocation-id",eJ="amz-sdk-request",tJ=()=>{let t=Hp;return{computeNextBackoffDelay:n=>Math.floor(Math.min(Vk,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},BA=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(Vk,t),getRetryCost:()=>r});class qk{constructor(e){this.maxAttempts=e,this.mode=Gl.STANDARD,this.capacity=DA,this.retryBackoffStrategy=tJ(),this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return BA({retryDelay:Hp,retryCount:0})}async refreshRetryTokenForRetry(e,r){const n=await this.getMaxAttempts();if(this.shouldRetry(e,r,n)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?YQ:Hp);const s=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,a=this.getCapacityCost(i);return this.capacity-=a,BA({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(DA,this.capacity+(e.getRetryCost()??XQ))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Gh}`),Gh}}shouldRetry(e,r,n){return e.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?JQ:QQ}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class rJ{constructor(e,r){this.maxAttemptsProvider=e,this.mode=Gl.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new KQ,this.standardRetryStrategy=new qk(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(e,r)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}let fd;const nJ=new Uint8Array(16);function iJ(){if(!fd&&(fd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fd(nJ)}const Ir=[];for(let t=0;t<256;++t)Ir.push((t+256).toString(16).slice(1));function sJ(t,e=0){return Ir[t[e+0]]+Ir[t[e+1]]+Ir[t[e+2]]+Ir[t[e+3]]+"-"+Ir[t[e+4]]+Ir[t[e+5]]+"-"+Ir[t[e+6]]+Ir[t[e+7]]+"-"+Ir[t[e+8]]+Ir[t[e+9]]+"-"+Ir[t[e+10]]+Ir[t[e+11]]+Ir[t[e+12]]+Ir[t[e+13]]+Ir[t[e+14]]+Ir[t[e+15]]}const oJ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jA={randomUUID:oJ};function aJ(t,e,r){if(jA.randomUUID&&!e&&!t)return jA.randomUUID();t=t||{};const n=t.random||(t.rng||iJ)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return sJ(n)}const lJ=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),cJ=t=>{const{retryStrategy:e}=t,r=Eo(t.maxAttempts??Gh);return{...t,maxAttempts:r,retryStrategy:async()=>e||(await Eo(t.retryMode)()===Gl.ADAPTIVE?new rJ(r):new qk(r))}};class Hk{trace(){}debug(){}info(){}warn(){}error(){}}const qo=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},Hs=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Kh=()=>{let t=[],e=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>$A[v.step]-$A[d.step]||FA[v.priority||"normal"]-FA[d.priority||"normal"]),s=u=>{let d=!1;const v=g=>{const y=qo(g.name,g.aliases);if(y.includes(u)){d=!0;for(const w of y)n.delete(w);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},o=u=>{let d=!1;const v=g=>{if(g.middleware===u){d=!0;for(const y of qo(g.name,g.aliases))n.delete(y);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},a=u=>{var d;return t.forEach(v=>{u.add(v.middleware,{...v})}),e.forEach(v=>{u.addRelativeTo(v.middleware,{...v})}),(d=u.identifyOnResolve)==null||d.call(u,f.identifyOnResolve()),u},l=u=>{const d=[];return u.before.forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d.push(u),u.after.reverse().forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d},c=(u=!1)=>{const d=[],v=[],g={};return t.forEach(w=>{const x={...w,before:[],after:[]};for(const b of qo(x.name,x.aliases))g[b]=x;d.push(x)}),e.forEach(w=>{const x={...w,before:[],after:[]};for(const b of qo(x.name,x.aliases))g[b]=x;v.push(x)}),v.forEach(w=>{if(w.toMiddleware){const x=g[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${Hs(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&x.after.push(w),w.relation==="before"&&x.before.push(w)}}),i(d).map(l).reduce((w,x)=>(w.push(...x),w),[])},f={add:(u,d={})=>{const{name:v,override:g,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},x=qo(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${Hs(v,y)}'`);for(const b of x){const E=t.findIndex(O=>{var D;return O.name===b||((D=O.aliases)==null?void 0:D.some(_=>_===b))});if(E===-1)continue;const P=t[E];if(P.step!==w.step||w.priority!==P.priority)throw new Error(`"${Hs(P.name,P.aliases)}" middleware with ${P.priority} priority in ${P.step} step cannot be overridden by "${Hs(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(E,1)}}for(const b of x)n.add(b)}t.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:g,aliases:y}=d,w={middleware:u,...d},x=qo(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${Hs(v,y)}'`);for(const b of x){const E=e.findIndex(O=>{var D;return O.name===b||((D=O.aliases)==null?void 0:D.some(_=>_===b))});if(E===-1)continue;const P=e[E];if(P.toMiddleware!==w.toMiddleware||P.relation!==w.relation)throw new Error(`"${Hs(P.name,P.aliases)}" middleware ${P.relation} "${P.toMiddleware}" middleware cannot be overridden by "${Hs(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(E,1)}}for(const b of x)n.add(b)}e.push(w)},clone:()=>a(Kh()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=g=>{const{tags:y,name:w,aliases:x}=g;if(y&&y.includes(u)){const b=qo(w,x);for(const E of b)n.delete(E);return d=!0,!1}return!0};return t=t.filter(v),e=e.filter(v),d},concat:u=>{var v;const d=a(Kh());return d.use(u),d.identifyOnResolve(r||d.identifyOnResolve()||(((v=u.identifyOnResolve)==null?void 0:v.call(u))??!1)),d},applyToStack:a,identify:()=>c(!0).map(u=>{const d=u.step??u.relation+" "+u.toMiddleware;return Hs(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(g=>g.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},$A={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},FA={high:3,normal:2,low:1};class fJ{constructor(e){this.middlewareStack=Kh(),this.config=e}send(e,r,n){const i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=e.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(e).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(e).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const Oo={},cc=new Array(64);for(let t=0,e="A".charCodeAt(0),r="Z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e);Oo[n]=t,cc[t]=n}for(let t=0,e="a".charCodeAt(0),r="z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e),i=t+26;Oo[n]=i,cc[i]=n}for(let t=0;t<10;t++){Oo[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;Oo[e]=r,cc[r]=e}Oo["+"]=62;cc[62]="+";Oo["/"]=63;cc[63]="/";const kl=6,xf=8,uJ=63,Ux=t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;const r=new ArrayBuffer(e),n=new DataView(r);for(let i=0;i>=kl;const a=i/4*3;s>>=o%xf;const l=Math.floor(o/xf);for(let c=0;c>f)}}return new Uint8Array(r)},Kl=t=>new TextEncoder().encode(t),bf=t=>typeof t=="string"?Kl(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),Wk=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)};function Gk(t){let e;typeof t=="string"?e=Kl(t):e=t;const r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let s=0;s>f]}i+="==".slice(0,4-l)}return i}function dJ(t,e="utf-8"){return e==="base64"?Gk(t):Wk(t)}function hJ(t,e){return e==="base64"?ua.mutate(Ux(t)):ua.mutate(Kl(t))}class ua extends Uint8Array{static fromString(e,r="utf-8"){switch(typeof e){case"string":return hJ(e,r);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,ua.prototype),e}transformToString(e="utf-8"){return dJ(this,e)}}const ao=t=>encodeURIComponent(t).replace(/[!'()*]/g,vJ),vJ=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function yJ(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=ao(r),Array.isArray(n))for(let i=0,s=n.length;i{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}const mJ={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class zx{static create(e){return typeof(e==null?void 0:e.handle)=="function"?e:new zx(e)}constructor(e){typeof e=="function"?this.configProvider=e().then(r=>r||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const n=this.config.requestTimeout,i=this.config.keepAlive===!0;if(r!=null&&r.aborted){const y=new Error("Request aborted");return y.name="AbortError",Promise.reject(y)}let s=e.path;const o=yJ(e.query||{});o&&(s+=`?${o}`),e.fragment&&(s+=`#${e.fragment}`);let a="";if(e.username!=null||e.password!=null){const y=e.username??"",w=e.password??"";a=`${y}:${w}@`}const{port:l,method:c}=e,f=`${e.protocol}//${a}${e.hostname}${l?`:${l}`:""}${s}`,u=c==="GET"||c==="HEAD"?void 0:e.body,d={body:u,headers:new Headers(e.headers),method:c};u&&(d.duplex="half"),typeof AbortController<"u"&&(d.signal=r),mJ.supported&&(d.keepalive=i);const v=new Request(f,d),g=[fetch(v).then(y=>{const w=y.headers,x={};for(const E of w.entries())x[E[0]]=E[1];return y.body!=null?{response:new qh({headers:x,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(E=>({response:new qh({headers:x,reason:y.statusText,statusCode:y.status,body:E})}))}),pJ(n)];return r&&g.push(new Promise((y,w)=>{r.onabort=()=>{const x=new Error("Request aborted");x.name="AbortError",w(x)}})),Promise.race(g)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=r,n))}httpHandlerConfigs(){return this.config??{}}}const gJ=t=>typeof Blob=="function"&&t instanceof Blob?xJ(t):bJ(t);async function xJ(t){const e=await wJ(t),r=Ux(e);return new Uint8Array(r)}async function bJ(t){const e=[],r=t.getReader();let n=!1,i=0;for(;!n;){const{done:a,value:l}=await r.read();l&&(e.push(l),i+=l.length),n=a}const s=new Uint8Array(i);let o=0;for(const a of e)s.set(a,o),o+=a.length;return s}function wJ(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const i=n.result??"",s=i.indexOf(","),o=s>-1?s+1:i.length;e(i.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}const Kk={},Wp={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),Kk[t]=e,Wp[e]=t}function EJ(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r{if(t instanceof Uint8Array)return ua.mutate(t);if(!t)return ua.mutate(new Uint8Array);const r=e.streamCollector(t);return ua.mutate(await r)};class e1{constructor(){this.middlewareStack=Kh()}static classBuilder(){return new SJ}resolveMiddlewareWithContext(e,r,n,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,smithyContext:c,additionalContext:f,CommandCtor:u}){for(const w of i.bind(this)(u,e,r,n))this.middlewareStack.use(w);const d=e.concat(this.middlewareStack),{logger:v}=r,g={logger:v,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,[qp]:{...c},...f},{requestHandler:y}=r;return d.resolve(w=>y.handle(w.request,n||{}),g)}}class SJ{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let r;return r=class extends e1{static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=n??{},e._init(this)}resolveMiddleware(n,i,s){return this.resolveMiddlewareWithContext(n,i,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const Pr="***SensitiveInformation***";class Vx extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Vx.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Le=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(t[n]==null||t[n]==="")&&(t[n]=i)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},CJ=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const i=PJ(t),s=i.httpStatusCode?i.httpStatusCode+"":void 0,o=new r({name:(e==null?void 0:e.code)||(e==null?void 0:e.Code)||n||s||"UnknownError",$fault:"client",$metadata:i});throw Le(o,e)},kJ=t=>({output:e,parsedBody:r,errorCode:n})=>{CJ({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},PJ=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),TJ=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},RJ=t=>{const e=[];for(const r in Vh){const n=Vh[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},_J=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},IJ=t=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},MJ=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},OJ=t=>({...RJ(t),...IJ(t)}),NJ=t=>({..._J(t),...MJ(t)}),Gp=function(){const t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,[null,...arguments]),r=new e;return Object.setPrototypeOf(r,t.prototype),r};Gp.prototype=Object.create(String.prototype,{constructor:{value:Gp,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Gp,String);const Se=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Se);if(typeof t=="object"){const e={};for(const r of Object.keys(t))t[r]!=null&&(e[r]=Se(t[r]));return e}return t},LJ=t=>(t==null?void 0:t.body)instanceof ReadableStream,DJ=t=>(e,r)=>async n=>{var o;let i=await t.retryStrategy();const s=await t.maxAttempts();if(BJ(i)){i=i;let a=await i.acquireInitialRetryToken(r.partition_id),l=new Error,c=0,f=0;const{request:u}=n,d=ls.isInstance(u);for(d&&(u.headers[ZQ]=aJ());;)try{d&&(u.headers[eJ]=`attempt=${c+1}; max=${s}`);const{response:v,output:g}=await e(n);return i.recordSuccess(a),g.$metadata.attempts=c+1,g.$metadata.totalRetryDelay=f,{response:v,output:g}}catch(v){const g=jJ(v);if(l=lJ(v),d&&LJ(u))throw(o=r.logger instanceof Hk?console:r.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),l;try{a=await i.refreshRetryTokenForRetry(a,g)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=c+1,l.$metadata.totalRetryDelay=f,l}c=a.getRetryCount();const y=a.getRetryDelay();f+=y,await new Promise(w=>setTimeout(w,y))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)},BJ=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",jJ=t=>{const e={error:t,errorType:$J(t)},r=UJ(t.$response);return r&&(e.retryAfterHint=r),e},$J=t=>Uk(t)?"THROTTLING":zk(t)?"TRANSIENT":GQ(t)?"SERVER_ERROR":"CLIENT_ERROR",Yk={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},FJ=t=>({applyToStack:e=>{e.add(DJ(t),Yk)}}),UJ=t=>{if(!qh.isInstance(t))return;const e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;const r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(n*1e3)},zJ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:Yk.name},VJ=t=>({applyToStack:e=>{e.addRelativeTo(FQ(),zJ)}});class qJ{constructor(e){this.authSchemes=new Map;for(const[r,n]of Object.entries(e))n!==void 0&&this.authSchemes.set(r,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}class HJ{async sign(e,r,n){return e}}const WJ=t=>e=>Qk(e)&&e.expiration.getTime()-Date.now()t.expiration!==void 0,YJ=(t,e,r)=>{if(t===void 0)return;const n=typeof t!="function"?async()=>Promise.resolve(t):t;let i,s,o,a=!1;const l=async c=>{s||(s=n(c));try{i=await s,o=!0,a=!1}finally{s=void 0}return i};return e===void 0?async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),i):async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),a?i:r(i)?(e(i)&&await l(c),i):(a=!0,i))},ud=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},UA="content-length";function QJ(t){return e=>async r=>{const n=r.request;if(ls.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(UA)===-1)try{const o=t(i);n.headers={...n.headers,[UA]:String(o)}}catch{}}return e({...r,request:n})}}const JJ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},XJ=t=>({applyToStack:e=>{e.add(QJ(t.bodyLengthChecker),JJ)}}),zA=t=>{var e,r;return qh.isInstance(t)?((e=t.headers)==null?void 0:e.date)??((r=t.headers)==null?void 0:r.Date):void 0},Jk=t=>new Date(Date.now()+t),ZJ=(t,e)=>Math.abs(Jk(e).getTime()-t)>=3e5,VA=(t,e)=>{const r=Date.parse(t);return ZJ(r,e)?r-Date.now():e},wf=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},eX=async t=>{var l,c,f;const e=wf("context",t.context),r=wf("config",t.config),n=(f=(c=(l=e.endpointV2)==null?void 0:l.properties)==null?void 0:c.authSchemes)==null?void 0:f[0],s=await wf("signer",r.signer)(n),o=t==null?void 0:t.signingRegion,a=t==null?void 0:t.signingName;return{config:r,signer:s,signingRegion:o,signingName:a}};class tX{async sign(e,r,n){if(!ls.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:s,signingRegion:o,signingName:a}=await eX(n);return await s.sign(e,{signingDate:Jk(i.systemClockOffset),signingRegion:o,signingService:a})}errorHandler(e){return r=>{const n=r.ServerTime??zA(r.$response);if(n){const i=wf("config",e.config),s=i.systemClockOffset;i.systemClockOffset=VA(n,i.systemClockOffset),i.systemClockOffset!==s&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){const n=zA(e);if(n){const i=wf("config",r.config);i.systemClockOffset=VA(n,i.systemClockOffset)}}}const rX="X-Amz-Algorithm",nX="X-Amz-Credential",Xk="X-Amz-Date",iX="X-Amz-SignedHeaders",sX="X-Amz-Expires",Zk="X-Amz-Signature",eP="X-Amz-Security-Token",tP="authorization",rP=Xk.toLowerCase(),oX="date",aX=[tP,rP,oX],lX=Zk.toLowerCase(),Kp="x-amz-content-sha256",cX=eP.toLowerCase(),fX={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},uX=/^proxy-/,dX=/^sec-/,Dv="AWS4-HMAC-SHA256",hX="AWS4-HMAC-SHA256-PAYLOAD",vX="UNSIGNED-PAYLOAD",yX=50,nP="aws4_request",pX=60*60*24*7,dd={},Bv=[],jv=(t,e,r)=>`${t}/${e}/${r}/${nP}`,mX=async(t,e,r,n,i)=>{const s=await qA(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${i}:${ia(s)}:${e.sessionToken}`;if(o in dd)return dd[o];for(Bv.push(o);Bv.length>yX;)delete dd[Bv.shift()];let a=`AWS4${e.secretAccessKey}`;for(const l of[r,n,i,nP])a=await qA(t,a,l);return dd[o]=a},qA=(t,e,r)=>{const n=new t(e);return n.update(bf(r)),n.digest()},HA=({headers:t},e,r)=>{const n={};for(const i of Object.keys(t).sort()){if(t[i]==null)continue;const s=i.toLowerCase();(s in fX||e!=null&&e.has(s)||uX.test(s)||dX.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[i].trim().replace(/\s+/g," "))}return n},gX=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===lX)continue;e.push(n);const i=t[n];typeof i=="string"?r[n]=`${ao(n)}=${ao(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${ao(n)}=${ao(o)}`]),[]).sort().join("&"))}return e.map(n=>r[n]).filter(n=>n).join("&")},xX=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",$v=async({headers:t,body:e},r)=>{for(const n of Object.keys(t))if(n.toLowerCase()===Kp)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||xX(e)){const n=new r;return n.update(bf(e)),ia(await n.digest())}return vX};class bX{format(e){const r=[];for(const s of Object.keys(e)){const o=Kl(s);r.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}const n=new Uint8Array(r.reduce((s,o)=>s+o.byteLength,0));let i=0;for(const s of r)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":const a=Kl(e.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);const c=new Uint8Array(l.buffer);return c.set(a,3),c;case"timestamp":const f=new Uint8Array(9);return f[0]=8,f.set(qx.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!wX.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(EJ(e.value.replace(/\-/g,"")),1),u}}}var WA;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(WA||(WA={}));const wX=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class qx{constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(e));n>-1&&i>0;n--,i/=256)r[n]=i;return e<0&&GA(r),new qx(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&GA(e),parseInt(ia(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function GA(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const EX=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},iP=({headers:t,query:e,...r})=>({...r,headers:{...t},query:e?AX(e):void 0}),AX=t=>Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{}),SX=(t,e={})=>{var i;const{headers:r,query:n={}}=typeof t.clone=="function"?t.clone():iP(t);for(const s of Object.keys(r)){const o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!((i=e.unhoistableHeaders)!=null&&i.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},KA=t=>{t=typeof t.clone=="function"?t.clone():iP(t);for(const e of Object.keys(t.headers))aX.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},CX=t=>kX(t).toISOString().replace(/\.\d{3}Z$/,"Z"),kX=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class YA{constructor({applyChecksum:e,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerFormatter=new bX,this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=Eo(n),this.credentialProvider=Eo(r)}async presign(e,r={}){const{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:l,signingService:c}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const u=l??await this.regionProvider(),{longDate:d,shortDate:v}=hd(n);if(i>pX)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=jv(v,u,c??this.service),y=SX(KA(e),{unhoistableHeaders:o});f.sessionToken&&(y.query[eP]=f.sessionToken),y.query[rX]=Dv,y.query[nX]=`${f.accessKeyId}/${g}`,y.query[Xk]=d,y.query[sX]=i.toString(10);const w=HA(y,s,a);return y.query[iX]=QA(w),y.query[Zk]=await this.getSignature(d,g,this.getSigningKey(f,u,v,c),this.createCanonicalRequest(y,w,await $v(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){const a=s??await this.regionProvider(),{shortDate:l,longDate:c}=hd(n),f=jv(l,a,o??this.service),u=await $v({headers:{},body:r},this.sha256),d=new this.sha256;d.update(e);const v=ia(await d.digest()),g=[hX,c,f,i,v,u].join(` +`);return this.signString(g,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:i,priorSignature:e.priorSignature}).then(o=>({message:e.message,signature:o}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const o=n??await this.regionProvider(),{shortDate:a}=hd(r),l=new this.sha256(await this.getSigningKey(s,o,a,i));return l.update(bf(e)),ia(await l.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const l=s??await this.regionProvider(),c=KA(e),{longDate:f,shortDate:u}=hd(r),d=jv(u,l,o??this.service);c.headers[rP]=f,a.sessionToken&&(c.headers[cX]=a.sessionToken);const v=await $v(c,this.sha256);!EX(Kp,c.headers)&&this.applyChecksum&&(c.headers[Kp]=v);const g=HA(c,i,n),y=await this.getSignature(f,d,this.getSigningKey(a,l,u,o),this.createCanonicalRequest(c,g,v));return c.headers[tP]=`${Dv} Credential=${a.accessKeyId}/${d}, SignedHeaders=${QA(g)}, Signature=${y}`,c}createCanonicalRequest(e,r,n){const i=Object.keys(r).sort();return`${e.method} +${this.getCanonicalPath(e)} +${gX(e)} +${i.map(s=>`${s}:${r[s]}`).join(` +`)} + +${i.join(";")} +${n}`}async createStringToSign(e,r,n){const i=new this.sha256;i.update(bf(n));const s=await i.digest();return`${Dv} +${e} +${r} +${ia(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const r=[];for(const s of e.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));const n=`${e!=null&&e.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(e!=null&&e.endsWith("/"))?"/":""}`;return ao(n).replace(/%2F/g,"/")}return e}async getSignature(e,r,n,i){const s=await this.createStringToSign(e,r,i),o=new this.sha256(await n);return o.update(bf(s)),ia(await o.digest())}getSigningKey(e,r,n,i){return mX(this.sha256,e,n,r,i||this.service)}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const hd=t=>{const e=CX(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.slice(0,8)}},QA=t=>Object.keys(t).sort().join(";"),PX=t=>{let e;t.credentials&&(e=YJ(t.credentials,KJ,Qk)),e||(t.credentialDefaultProvider?e=ud(t.credentialDefaultProvider(Object.assign({},t,{parentClientConfig:t}))):e=async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=t.systemClockOffset||0,sha256:i}=t;let s;return t.signer?s=ud(t.signer):t.regionInfoProvider?s=()=>ud(t.region)().then(async o=>[await t.regionInfoProvider(o,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},o]).then(([o,a])=>{const{signingRegion:l,signingService:c}=o;t.signingRegion=t.signingRegion||l||a,t.signingName=t.signingName||c||t.serviceId;const f={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},u=t.signerConstructor||YA;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await ud(t.region)(),properties:{}},o);const a=o.signingRegion,l=o.signingName;t.signingRegion=t.signingRegion||a,t.signingName=t.signingName||l||t.serviceId;const c={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},f=t.signerConstructor||YA;return new f(c)},{...t,systemClockOffset:n,signingEscapePath:r,credentials:e,signer:s}},TX=(t,e)=>AJ(t,e).then(r=>e.utf8Encoder(r)),t1=(t,e)=>TX(t,e).then(r=>{if(r.length)try{return JSON.parse(r)}catch(n){throw(n==null?void 0:n.name)==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:r}),n}return{}}),RX=async(t,e)=>{const r=await t1(t,e);return r.message=r.message??r.Message,r},_X=(t,e)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(t.headers,"x-amzn-errortype");if(i!==void 0)return n(t.headers[i]);if(e.code!==void 0)return n(e.code);if(e.__type!==void 0)return n(e.__type)},IX=async(t,e,r)=>({operation:Z0(e).operation,region:await Eo(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function MX(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-idp",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function _t(t){return{schemeId:"smithy.api#noAuth"}}const OX=t=>{const e=[];switch(t.operation){case"AssociateSoftwareToken":{e.push(_t());break}case"ChangePassword":{e.push(_t());break}case"ConfirmDevice":{e.push(_t());break}case"ConfirmForgotPassword":{e.push(_t());break}case"ConfirmSignUp":{e.push(_t());break}case"DeleteUser":{e.push(_t());break}case"DeleteUserAttributes":{e.push(_t());break}case"ForgetDevice":{e.push(_t());break}case"ForgotPassword":{e.push(_t());break}case"GetDevice":{e.push(_t());break}case"GetUser":{e.push(_t());break}case"GetUserAttributeVerificationCode":{e.push(_t());break}case"GlobalSignOut":{e.push(_t());break}case"InitiateAuth":{e.push(_t());break}case"ListDevices":{e.push(_t());break}case"ResendConfirmationCode":{e.push(_t());break}case"RespondToAuthChallenge":{e.push(_t());break}case"RevokeToken":{e.push(_t());break}case"SetUserMFAPreference":{e.push(_t());break}case"SetUserSettings":{e.push(_t());break}case"SignUp":{e.push(_t());break}case"UpdateAuthEventFeedback":{e.push(_t());break}case"UpdateDeviceStatus":{e.push(_t());break}case"UpdateUserAttributes":{e.push(_t());break}case"VerifySoftwareToken":{e.push(_t());break}case"VerifyUserAttribute":{e.push(_t());break}default:e.push(MX(t))}return e},NX=t=>({...PX(t)}),LX=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),Hx={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},DX="@aws-sdk/client-cognito-identity-provider",BX="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",jX="3.596.0",$X={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cognito-identity-provider","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity-provider"},FX="./dist-cjs/index.js",UX="./dist-types/index.d.ts",zX="./dist-es/index.js",VX=!1,qX={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sso-oidc":"3.596.0","@aws-sdk/client-sts":"3.596.0","@aws-sdk/core":"3.592.0","@aws-sdk/credential-provider-node":"3.596.0","@aws-sdk/middleware-host-header":"3.577.0","@aws-sdk/middleware-logger":"3.577.0","@aws-sdk/middleware-recursion-detection":"3.577.0","@aws-sdk/middleware-user-agent":"3.587.0","@aws-sdk/region-config-resolver":"3.587.0","@aws-sdk/types":"3.577.0","@aws-sdk/util-endpoints":"3.587.0","@aws-sdk/util-user-agent-browser":"3.577.0","@aws-sdk/util-user-agent-node":"3.587.0","@smithy/config-resolver":"^3.0.1","@smithy/core":"^2.2.0","@smithy/fetch-http-handler":"^3.0.1","@smithy/hash-node":"^3.0.0","@smithy/invalid-dependency":"^3.0.0","@smithy/middleware-content-length":"^3.0.0","@smithy/middleware-endpoint":"^3.0.1","@smithy/middleware-retry":"^3.0.3","@smithy/middleware-serde":"^3.0.0","@smithy/middleware-stack":"^3.0.0","@smithy/node-config-provider":"^3.1.0","@smithy/node-http-handler":"^3.0.0","@smithy/protocol-http":"^4.0.0","@smithy/smithy-client":"^3.1.1","@smithy/types":"^3.0.0","@smithy/url-parser":"^3.0.0","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.3","@smithy/util-defaults-mode-node":"^3.0.3","@smithy/util-endpoints":"^2.0.1","@smithy/util-middleware":"^3.0.0","@smithy/util-retry":"^3.0.0","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},HX={"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},WX={node:">=16.0.0"},GX={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},KX=["dist-*/**"],YX={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},QX="Apache-2.0",JX={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},XX="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",ZX={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},eZ={name:DX,description:BX,version:jX,scripts:$X,main:FX,types:UX,module:zX,sideEffects:VX,dependencies:qX,devDependencies:HX,engines:WX,typesVersions:GX,files:KX,author:YX,license:QX,browser:JX,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:XX,repository:ZX};var sP={};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var Yp=function(t,e){return Yp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Yp(t,e)};function tZ(t,e){Yp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Qp=function(){return Qp=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function iZ(t,e){return function(r,n){e(r,n,t)}}function sZ(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function oZ(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function aZ(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function oP(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function fZ(){for(var t=[],e=0;e1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(g){u(s[0][3],g)}}function l(d){d.value instanceof nu?Promise.resolve(d.value.v).then(c,f):u(s[0][2],d)}function c(d){a("next",d)}function f(d){a("throw",d)}function u(d,v){d(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function hZ(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(o){return(r=!r)?{value:nu(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function vZ(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Jp=="function"?Jp(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function yZ(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function pZ(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function mZ(t){return t&&t.__esModule?t:{default:t}}function gZ(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function xZ(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}const bZ=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Qp},__asyncDelegator:hZ,__asyncGenerator:dZ,__asyncValues:vZ,__await:nu,__awaiter:oZ,__classPrivateFieldGet:gZ,__classPrivateFieldSet:xZ,__createBinding:lZ,__decorate:nZ,__exportStar:cZ,__extends:tZ,__generator:aZ,__importDefault:mZ,__importStar:pZ,__makeTemplateObject:yZ,__metadata:sZ,__param:iZ,__read:oP,__rest:rZ,__spread:fZ,__spreadArrays:uZ,__values:Jp},Symbol.toStringTag,{value:"Module"})),fc=$t(bZ);var Oc={},Nc={},Lc={},JA;function wZ(){if(JA)return Lc;JA=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return Lc.isEmptyData=t,Lc}var Fv={},XA;function aP(){return XA||(XA=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])}(Fv)),Fv}const EZ=t=>{const e=[];for(let r=0,n=t.length;r>6|192,i&63|128);else if(r+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else e.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(e)},AZ=t=>{let e="";for(let r=0,n=t.length;ra.toString(16)).join("%");e+=decodeURIComponent(o)}else e+=String.fromCharCode((i&15)<<12|(t[++r]&63)<<6|t[++r]&63)}return e};function SZ(t){return new TextEncoder().encode(t)}function CZ(t){return new TextDecoder("utf-8").decode(t)}const kZ=t=>typeof TextEncoder=="function"?SZ(t):EZ(t),PZ=t=>typeof TextDecoder=="function"?CZ(t):AZ(t),TZ=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:kZ,toUtf8:PZ},Symbol.toStringTag,{value:"Module"})),lP=$t(TZ),RZ={};function _Z(){return typeof window<"u"?window:typeof self<"u"?self:RZ}const IZ=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:_Z},Symbol.toStringTag,{value:"Module"})),Wx=$t(IZ);var ZA;function cP(){if(ZA)return Nc;ZA=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.Sha256=void 0;var t=wZ(),e=aP(),r=lP,n=Wx,i=function(){function a(l){this.secret=l,this.reset()}return a.prototype.update=function(l){var c=this;(0,t.isEmptyData)(l)||(this.operation=this.operation.then(function(f){return f.onerror=function(){c.operation=Promise.reject(new Error("Error encountered updating hash"))},f.process(o(l)),f}),this.operation.catch(function(){}))},a.prototype.digest=function(){return this.operation.then(function(l){return new Promise(function(c,f){l.onerror=function(){f(new Error("Error encountered finalizing hash"))},l.oncomplete=function(){l.result&&c(new Uint8Array(l.result)),f(new Error("Error encountered finalizing hash"))},l.finish()})})},a.prototype.reset=function(){this.secret?(this.operation=s(this.secret).then(function(l){return(0,n.locateWindow)().msCrypto.subtle.sign(e.SHA_256_HMAC_ALGO,l)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-256"))},a}();Nc.Sha256=i;function s(a){return new Promise(function(l,c){var f=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",o(a),e.SHA_256_HMAC_ALGO,!1,["sign"]);f.oncomplete=function(){f.result&&l(f.result),c(new Error("ImportKey completed without importing key."))},f.onerror=function(){c(new Error("ImportKey failed to import key."))}})}function o(a){return typeof a=="string"?(0,r.fromUtf8)(a):ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(a)}return Nc}var Dc={},Uv={},Bc={},e4;function MZ(){if(e4)return Bc;e4=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.convertToBuffer=void 0;var t=lP,e=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:t.fromUtf8;function r(n){return n instanceof Uint8Array?n:typeof n=="string"?e(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return Bc.convertToBuffer=r,Bc}var jc={},t4;function OZ(){if(t4)return jc;t4=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return jc.isEmptyData=t,jc}var $c={},r4;function NZ(){if(r4)return $c;r4=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}return $c.numToUint8=t,$c}var Fc={},n4;function LZ(){if(n4)return Fc;n4=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var r=new Uint32Array(e.length),n=0;nt.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=n[i++],s--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(i.setUint8(this.bufferLength++,128),s%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,a[o*4+1]=this.state[o]>>>16&255,a[o*4+2]=this.state[o]>>>8&255,a[o*4+3]=this.state[o]>>>0&255;return a},r.prototype.hashBuffer=function(){for(var n=this,i=n.buffer,s=n.state,o=s[0],a=s[1],l=s[2],c=s[3],f=s[4],u=s[5],d=s[6],v=s[7],g=0;g>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(w+this.temp[g-7]|0)+(x+this.temp[g-16]|0)}var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(t.KEY[g]+this.temp[g]|0)|0)|0,E=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&l^a&l)|0;v=d,d=u,u=f,f=c+b|0,c=l,l=a,a=o,o=b+E|0}s[0]+=o,s[1]+=a,s[2]+=l,s[3]+=c,s[4]+=f,s[5]+=u,s[6]+=d,s[7]+=v},r}();return zc.RawSha256=e,zc}var l4;function BZ(){if(l4)return Uc;l4=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.Sha256=void 0;var t=fc,e=uP(),r=DZ(),n=Gx(),i=function(){function o(a){this.secret=a,this.hash=new r.RawSha256,this.reset()}return o.prototype.update=function(a){if(!((0,n.isEmptyData)(a)||this.error))try{this.hash.update((0,n.convertToBuffer)(a))}catch(l){this.error=l}},o.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},o.prototype.digest=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(a){return[2,this.digestSync()]})})},o.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var a=s(this.secret),l=new Uint8Array(e.BLOCK_SIZE);l.set(a);for(var c=0;ce.BLOCK_SIZE){var l=new r.RawSha256;l.update(a),a=l.digest()}var c=new Uint8Array(e.BLOCK_SIZE);return c.set(a),c}return Uc}var c4;function jZ(){return c4||(c4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=fc;e.__exportStar(BZ(),t)}(zv)),zv}var Vv={},di={},f4;function $Z(){if(f4)return di;f4=1,Object.defineProperty(di,"__esModule",{value:!0}),di.supportsZeroByteGCM=di.supportsSubtleCrypto=di.supportsSecureRandom=di.supportsWebCrypto=void 0;var t=fc,e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(o){if(n(o)&&typeof o.crypto.subtle=="object"){var a=o.crypto.subtle;return i(a)}return!1}di.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}di.supportsSecureRandom=n;function i(o){return o&&e.every(function(a){return typeof o[a]=="function"})}di.supportsSubtleCrypto=i;function s(o){return t.__awaiter(this,void 0,void 0,function(){var a,l;return t.__generator(this,function(c){switch(c.label){case 0:if(!i(o))return[2,!1];c.label=1;case 1:return c.trys.push([1,4,,5]),[4,o.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=c.sent(),[4,o.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return l=c.sent(),[2,l.byteLength===16];case 4:return c.sent(),[2,!1];case 5:return[2]}})})}return di.supportsZeroByteGCM=s,di}var u4;function FZ(){return u4||(u4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=fc;e.__exportStar($Z(),t)}(Vv)),Vv}var qv={},Hv={},d4;function UZ(){return d4||(d4=1,Object.defineProperty(Hv,"__esModule",{value:!0})),Hv}var Wv={},h4;function zZ(){return h4||(h4=1,Object.defineProperty(Wv,"__esModule",{value:!0})),Wv}var Gv={},v4;function VZ(){return v4||(v4=1,Object.defineProperty(Gv,"__esModule",{value:!0})),Gv}var Kv={},y4;function qZ(){return y4||(y4=1,Object.defineProperty(Kv,"__esModule",{value:!0})),Kv}var Vc={},p4;function HZ(){if(p4)return Vc;p4=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.isMsWindow=void 0;var t=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function e(n){return"MSInputMethodContext"in n&&"msCrypto"in n}function r(n){if(e(n)&&n.msCrypto.subtle!==void 0){var i=n.msCrypto,s=i.getRandomValues,o=i.subtle;return t.map(function(a){return o[a]}).concat(s).every(function(a){return typeof a=="function"})}return!1}return Vc.isMsWindow=r,Vc}var m4;function WZ(){return m4||(m4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=fc;e.__exportStar(UZ(),t),e.__exportStar(zZ(),t),e.__exportStar(VZ(),t),e.__exportStar(qZ(),t),e.__exportStar(HZ(),t)}(qv)),qv}var g4;function GZ(){if(g4)return Oc;g4=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.Sha256=void 0;var t=cP(),e=fP(),r=jZ(),n=FZ(),i=WZ(),s=Wx,o=Gx(),a=function(){function l(c){(0,n.supportsWebCrypto)((0,s.locateWindow)())?this.hash=new e.Sha256(c):(0,i.isMsWindow)((0,s.locateWindow)())?this.hash=new t.Sha256(c):this.hash=new r.Sha256(c)}return l.prototype.update=function(c,f){this.hash.update((0,o.convertToBuffer)(c))},l.prototype.digest=function(){return this.hash.digest()},l.prototype.reset=function(){this.hash.reset()},l}();return Oc.Sha256=a,Oc}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var e=fc;e.__exportStar(GZ(),t);var r=cP();Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=fP();Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(sP);const KZ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},dP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},ar={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Zr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ys={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class oe{static getFirstMatch(e,r){const n=r.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,r){const n=r.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,r,n){if(e.test(r))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,r,n=!1){const i=oe.getVersionPrecision(e),s=oe.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=oe.map([e,r],c=>{const f=o-oe.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return oe.map(u.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===a)return 0;o-=1}else if(l[0][o]{n[l]=o[l]})}return e}static getBrowserAlias(e){return KZ[e]}static getBrowserTypeByAlias(e){return dP[e]||""}}const Tt=/version\/(\d+(\.?_?\d+)+)/i,YZ=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=oe.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=oe.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=oe.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=oe.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=oe.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},r=oe.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=oe.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=oe.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=oe.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=oe.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=oe.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},r=oe.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=oe.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=oe.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=oe.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},r=oe.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=oe.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=oe.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},r=oe.getFirstMatch(Tt,t)||oe.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},r=oe.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=oe.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=oe.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=oe.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},r=oe.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=oe.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=oe.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=oe.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},r=oe.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e={name:"Android Browser"},r=oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=oe.getFirstMatch(Tt,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?r:e;return{name:oe.getFirstMatch(i,t),version:oe.getSecondMatch(i,t)}}}],QZ=[{test:[/Roku\/DVP/],describe(t){const e=oe.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Zr.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=oe.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Zr.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=oe.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=oe.getWindowsVersionName(e);return{name:Zr.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:Zr.iOS},r=oe.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=oe.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=oe.getMacOSVersionName(e),n={name:Zr.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=oe.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Zr.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=oe.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=oe.getAndroidVersionName(e),n={name:Zr.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=oe.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:Zr.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=oe.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||oe.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||oe.getFirstMatch(/\bbb(\d+)/i,t);return{name:Zr.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=oe.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Zr.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=oe.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Zr.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:Zr.Linux}}},{test:[/CrOS/],describe(){return{name:Zr.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=oe.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Zr.PlayStation4,version:e}}}],JZ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=oe.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:ar.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:ar.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:ar.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:ar.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:ar.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:ar.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:ar.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=oe.getFirstMatch(/(ipod|iphone)/i,t);return{type:ar.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:ar.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:ar.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:ar.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:ar.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:ar.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:ar.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:ar.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:ar.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:ar.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:ar.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:ar.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:ar.tv}}}],XZ=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:Ys.Blink};const r=oe.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Ys.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:Ys.Trident},r=oe.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:Ys.Presto},r=oe.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe(t){const e={name:Ys.Gecko},r=oe.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ys.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:Ys.WebKit},r=oe.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];class x4{constructor(e,r=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=oe.find(YZ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=oe.find(QZ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:r}=this.getOS();return e?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:r}=this.getPlatform();return e?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const e=oe.find(JZ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=oe.find(XZ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return oe.assign({},this.parsedResult)}satisfies(e){const r={};let n=0;const i={};let s=0;if(Object.keys(e).forEach(a=>{const l=e[a];typeof l=="string"?(i[a]=l,s+=1):typeof l=="object"&&(r[a]=l,n+=1)}),n>0){const a=Object.keys(r),l=oe.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=oe.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(r[c]);if(f!==void 0)return f}}if(s>0){const a=Object.keys(i),l=oe.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(e,r=!1){const n=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const s=oe.getBrowserTypeByAlias(i);return r&&s&&(i=s.toLowerCase()),i===n}compareVersion(e){let r=[0],n=e,i=!1;const s=this.getBrowserVersion();if(typeof s=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(i=!0,n=e.substr(2)):r=[],e[0]===">"?r.push(1):r.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(i=!0,n=e.substr(1)),r.indexOf(oe.compareVersions(s,n,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,r=!1){return this.isBrowser(e,r)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(r=>this.is(r))}}/*! + * Bowser - a browser detector + * https://github.com/lancedikson/bowser + * MIT License | (c) Dustin Diaz 2012-2015 + * MIT License | (c) Denis Demchenko 2015-2019 + */class hP{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new x4(e,r)}static parse(e){return new x4(e).getResult()}static get BROWSER_MAP(){return dP}static get ENGINE_MAP(){return Ys}static get OS_MAP(){return Zr}static get PLATFORMS_MAP(){return ar}}const ZZ=({serviceId:t,clientVersion:e})=>async()=>{var i,s,o,a,l;const r=typeof window<"u"&&((i=window==null?void 0:window.navigator)!=null&&i.userAgent)?hP.parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",e],["ua","2.0"],[`os/${((s=r==null?void 0:r.os)==null?void 0:s.name)||"other"}`,(o=r==null?void 0:r.os)==null?void 0:o.version],["lang/js"],["md/browser",`${((a=r==null?void 0:r.browser)==null?void 0:a.name)??"unknown"}_${((l=r==null?void 0:r.browser)==null?void 0:l.version)??"unknown"}`]];return t&&n.push([`api/${t}`,e]),n},eee=t=>()=>Promise.reject(t),b4=typeof TextEncoder=="function"?new TextEncoder:null,tee=t=>{if(typeof t=="string"){if(b4)return b4.encode(t).byteLength;let e=t.length;for(let r=e-1;r>=0;r--){const n=t.charCodeAt(r);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&r--}return e}else{if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size}throw new Error(`Body Length computation failed for ${t}`)},vP="required",Vi="fn",qi="argv",uc="ref",w4=!0,E4="isSet",iu="booleanEquals",qa="error",qc="endpoint",us="tree",Kx="PartitionResult",A4={[vP]:!1,type:"String"},S4={[vP]:!0,default:!1,type:"Boolean"},C4={[uc]:"Endpoint"},yP={[Vi]:iu,[qi]:[{[uc]:"UseFIPS"},!0]},pP={[Vi]:iu,[qi]:[{[uc]:"UseDualStack"},!0]},Ni={},k4={[Vi]:"getAttr",[qi]:[{[uc]:Kx},"supportsFIPS"]},P4={[Vi]:iu,[qi]:[!0,{[Vi]:"getAttr",[qi]:[{[uc]:Kx},"supportsDualStack"]}]},T4=[yP],R4=[pP],_4=[{[uc]:"Region"}],ree={version:"1.0",parameters:{Region:A4,UseDualStack:S4,UseFIPS:S4,Endpoint:A4},rules:[{conditions:[{[Vi]:E4,[qi]:[C4]}],rules:[{conditions:T4,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:qa},{conditions:R4,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:qa},{endpoint:{url:C4,properties:Ni,headers:Ni},type:qc}],type:us},{conditions:[{[Vi]:E4,[qi]:_4}],rules:[{conditions:[{[Vi]:"aws.partition",[qi]:_4,assign:Kx}],rules:[{conditions:[yP,pP],rules:[{conditions:[{[Vi]:iu,[qi]:[w4,k4]},P4],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ni,headers:Ni},type:qc}],type:us},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:qa}],type:us},{conditions:T4,rules:[{conditions:[{[Vi]:iu,[qi]:[k4,w4]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ni,headers:Ni},type:qc}],type:us},{error:"FIPS is enabled but this partition does not support FIPS",type:qa}],type:us},{conditions:R4,rules:[{conditions:[P4],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ni,headers:Ni},type:qc}],type:us},{error:"DualStack is enabled but this partition does not support DualStack",type:qa}],type:us},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:Ni,headers:Ni},type:qc}],type:us}],type:us},{error:"Invalid Configuration: Missing Region",type:qa}]},nee=ree,iee=(t,e={})=>nQ(nee,{endpointParams:t,logger:e.logger});Hh.aws=Bk;const see=t=>({apiVersion:"2016-04-18",base64Decoder:(t==null?void 0:t.base64Decoder)??Ux,base64Encoder:(t==null?void 0:t.base64Encoder)??Gk,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??iee,extensions:(t==null?void 0:t.extensions)??[],httpAuthSchemeProvider:(t==null?void 0:t.httpAuthSchemeProvider)??OX,httpAuthSchemes:(t==null?void 0:t.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new tX},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new HJ}],logger:(t==null?void 0:t.logger)??new Hk,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity Provider",urlParser:(t==null?void 0:t.urlParser)??Wh,utf8Decoder:(t==null?void 0:t.utf8Decoder)??Kl,utf8Encoder:(t==null?void 0:t.utf8Encoder)??Wk}),oee=(t,e,r)=>{let n,i,s,o=!1;const a=async()=>{i||(i=t());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return e===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),n):async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(e(n)&&await a(),n))},aee=["in-region","cross-region","mobile","standard","legacy"],lee=({defaultsMode:t}={})=>oee(async()=>{const e=typeof t=="function"?await t():t;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(cee()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e==null?void 0:e.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${aee.join(", ")}, got ${e}`)}}),cee=()=>{var r,n;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?hP.parse(window.navigator.userAgent):void 0,e=(n=t==null?void 0:t.platform)==null?void 0:n.type;return e==="tablet"||e==="mobile"},fee=t=>{const e=lee(t),r=()=>e().then(TJ),n=see(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??tee,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??ZZ({serviceId:n.serviceId,clientVersion:eZ.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Gh,region:(t==null?void 0:t.region)??eee("Region is missing"),requestHandler:zx.create((t==null?void 0:t.requestHandler)??r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||UQ),sha256:(t==null?void 0:t.sha256)??sP.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??gJ,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(yQ)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(pQ))}},uee=t=>{let e=async()=>{if(t.region===void 0)throw new Error("Region is missing from runtimeConfig");const r=t.region;return typeof r=="string"?r:r()};return{setRegion(r){e=r},region(){return e}}},dee=t=>({region:t.region()}),hee=t=>{const e=t.httpAuthSchemes;let r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(i){const s=e.findIndex(o=>o.schemeId===i.schemeId);s===-1?e.push(i):e.splice(s,1,i)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){n=i},credentials(){return n}}},vee=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),vd=t=>t,yee=(t,e)=>{const r={...vd(uee(t)),...vd(OJ(t)),...vd(SY(t)),...vd(hee(t))};return e.forEach(n=>n.configure(r)),{...t,...dee(r),...NJ(r),...CY(r),...vee(r)}};class pee extends fJ{constructor(...[e]){const r=fee(e||{}),n=LX(r),i=mQ(n),s=LQ(i),o=cJ(s),a=o,l=jY(a),c=NX(l),f=yee(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(FJ(this.config)),this.middlewareStack.use(XJ(this.config)),this.middlewareStack.use(RY(this.config)),this.middlewareStack.use(MY(this.config)),this.middlewareStack.use(BY(this.config)),this.middlewareStack.use(vQ(this.config)),this.middlewareStack.use(BQ(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use(VJ(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return IX}getIdentityProviderConfigProvider(){return async e=>new qJ({"aws.auth#sigv4":e.credentials})}}class _e extends Vx{constructor(e){super(e),Object.setPrototypeOf(this,_e.prototype)}}class Yx extends _e{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,Yx.prototype)}}class Qx extends _e{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,Qx.prototype)}}class Jx extends _e{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,Jx.prototype)}}class Xx extends _e{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Xx.prototype)}}class Zx extends _e{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Zx.prototype)}}class eb extends _e{constructor(e){super({name:"UserImportInProgressException",$fault:"client",...e}),this.name="UserImportInProgressException",this.$fault="client",Object.setPrototypeOf(this,eb.prototype)}}class tb extends _e{constructor(e){super({name:"UserNotFoundException",$fault:"client",...e}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,tb.prototype)}}class rb extends _e{constructor(e){super({name:"InvalidLambdaResponseException",$fault:"client",...e}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,rb.prototype)}}class nb extends _e{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,nb.prototype)}}class ib extends _e{constructor(e){super({name:"TooManyFailedAttemptsException",$fault:"client",...e}),this.name="TooManyFailedAttemptsException",this.$fault="client",Object.setPrototypeOf(this,ib.prototype)}}class sb extends _e{constructor(e){super({name:"UnexpectedLambdaException",$fault:"client",...e}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,sb.prototype)}}class r1 extends _e{constructor(e){super({name:"UserLambdaValidationException",$fault:"client",...e}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,r1.prototype)}}class ob extends _e{constructor(e){super({name:"CodeDeliveryFailureException",$fault:"client",...e}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,ob.prototype)}}class ab extends _e{constructor(e){super({name:"InvalidPasswordException",$fault:"client",...e}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,ab.prototype)}}class lb extends _e{constructor(e){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,lb.prototype)}}class cb extends _e{constructor(e){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...e}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,cb.prototype)}}class fb extends _e{constructor(e){super({name:"PreconditionNotMetException",$fault:"client",...e}),this.name="PreconditionNotMetException",this.$fault="client",Object.setPrototypeOf(this,fb.prototype)}}class ub extends _e{constructor(e){super({name:"UnsupportedUserStateException",$fault:"client",...e}),this.name="UnsupportedUserStateException",this.$fault="client",Object.setPrototypeOf(this,ub.prototype)}}class db extends _e{constructor(e){super({name:"UsernameExistsException",$fault:"client",...e}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,db.prototype)}}class hb extends _e{constructor(e){super({name:"AliasExistsException",$fault:"client",...e}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,hb.prototype)}}class vb extends _e{constructor(e){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...e}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,vb.prototype)}}class yb extends _e{constructor(e){super({name:"MFAMethodNotFoundException",$fault:"client",...e}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,yb.prototype)}}class pb extends _e{constructor(e){super({name:"PasswordResetRequiredException",$fault:"client",...e}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,pb.prototype)}}class mb extends _e{constructor(e){super({name:"UserNotConfirmedException",$fault:"client",...e}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,mb.prototype)}}class gb extends _e{constructor(e){super({name:"UserPoolAddOnNotEnabledException",$fault:"client",...e}),this.name="UserPoolAddOnNotEnabledException",this.$fault="client",Object.setPrototypeOf(this,gb.prototype)}}class xb extends _e{constructor(e){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,xb.prototype)}}class bb extends _e{constructor(e){super({name:"CodeMismatchException",$fault:"client",...e}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,bb.prototype)}}class wb extends _e{constructor(e){super({name:"ExpiredCodeException",$fault:"client",...e}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,wb.prototype)}}class Eb extends _e{constructor(e){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...e}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,Eb.prototype)}}class Ab extends _e{constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),this.name="ConcurrentModificationException",this.$fault="client",Object.setPrototypeOf(this,Ab.prototype)}}class Sb extends _e{constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,Sb.prototype)}}class Cb extends _e{constructor(e){super({name:"GroupExistsException",$fault:"client",...e}),this.name="GroupExistsException",this.$fault="client",Object.setPrototypeOf(this,Cb.prototype)}}class kb extends _e{constructor(e){super({name:"DuplicateProviderException",$fault:"client",...e}),this.name="DuplicateProviderException",this.$fault="client",Object.setPrototypeOf(this,kb.prototype)}}class Pb extends _e{constructor(e){super({name:"UserPoolTaggingException",$fault:"client",...e}),this.name="UserPoolTaggingException",this.$fault="client",Object.setPrototypeOf(this,Pb.prototype)}}class Tb extends _e{constructor(e){super({name:"InvalidOAuthFlowException",$fault:"client",...e}),this.name="InvalidOAuthFlowException",this.$fault="client",Object.setPrototypeOf(this,Tb.prototype)}}class Rb extends _e{constructor(e){super({name:"ScopeDoesNotExistException",$fault:"client",...e}),this.name="ScopeDoesNotExistException",this.$fault="client",Object.setPrototypeOf(this,Rb.prototype)}}class _b extends _e{constructor(e){super({name:"UnsupportedIdentityProviderException",$fault:"client",...e}),this.name="UnsupportedIdentityProviderException",this.$fault="client",Object.setPrototypeOf(this,_b.prototype)}}class Ib extends _e{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Ib.prototype)}}class Mb extends _e{constructor(e){super({name:"UnsupportedOperationException",$fault:"client",...e}),this.name="UnsupportedOperationException",this.$fault="client",Object.setPrototypeOf(this,Mb.prototype)}}class Ob extends _e{constructor(e){super({name:"UnsupportedTokenTypeException",$fault:"client",...e}),this.name="UnsupportedTokenTypeException",this.$fault="client",Object.setPrototypeOf(this,Ob.prototype)}}const I4=t=>({...t,...t.Value&&{Value:Pr}}),mP=t=>({...t,...t.AccessToken&&{AccessToken:Pr},...t.RefreshToken&&{RefreshToken:Pr},...t.IdToken&&{IdToken:Pr}}),mee=t=>({...t,...t.AuthParameters&&{AuthParameters:Pr},...t.ClientId&&{ClientId:Pr},...t.UserContextData&&{UserContextData:Pr}}),gee=t=>({...t,...t.Session&&{Session:Pr},...t.AuthenticationResult&&{AuthenticationResult:mP(t.AuthenticationResult)}}),xee=t=>({...t,...t.ClientId&&{ClientId:Pr},...t.Session&&{Session:Pr},...t.ChallengeResponses&&{ChallengeResponses:Pr},...t.UserContextData&&{UserContextData:Pr}}),bee=t=>({...t,...t.Session&&{Session:Pr},...t.AuthenticationResult&&{AuthenticationResult:mP(t.AuthenticationResult)}});class Nb extends _e{constructor(e){super({name:"EnableSoftwareTokenMFAException",$fault:"client",...e}),this.name="EnableSoftwareTokenMFAException",this.$fault="client",Object.setPrototypeOf(this,Nb.prototype)}}const wee=t=>({...t,...t.ClientId&&{ClientId:Pr},...t.SecretHash&&{SecretHash:Pr},...t.Username&&{Username:Pr},...t.Password&&{Password:Pr},...t.UserAttributes&&{UserAttributes:t.UserAttributes.map(e=>I4(e))},...t.ValidationData&&{ValidationData:t.ValidationData.map(e=>I4(e))},...t.UserContextData&&{UserContextData:Pr}}),Eee=async(t,e)=>{const r=Bb("InitiateAuth");let n;return n=JSON.stringify(Se(t)),Db(e,r,"/",void 0,n)},Aee=async(t,e)=>{const r=Bb("RespondToAuthChallenge");let n;return n=JSON.stringify(Se(t)),Db(e,r,"/",void 0,n)},See=async(t,e)=>{const r=Bb("SignUp");let n;return n=JSON.stringify(Se(t)),Db(e,r,"/",void 0,n)},Cee=async(t,e)=>{if(t.statusCode>=300)return Lb(t,e);const r=await t1(t.body,e);let n={};return n=Se(r),{$metadata:Ie(t),...n}},kee=async(t,e)=>{if(t.statusCode>=300)return Lb(t,e);const r=await t1(t.body,e);let n={};return n=Se(r),{$metadata:Ie(t),...n}},Pee=async(t,e)=>{if(t.statusCode>=300)return Lb(t,e);const r=await t1(t.body,e);let n={};return n=Se(r),{$metadata:Ie(t),...n}},Lb=async(t,e)=>{const r={...t,body:await RX(t.body,e)},n=_X(t,r.body);switch(n){case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await Bee(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await Uee(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await Kee(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await Jee(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await tte(r);case"UserImportInProgressException":case"com.amazonaws.cognitoidentityprovider#UserImportInProgressException":throw await lte(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await dte(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await $ee(r);case"LimitExceededException":case"com.amazonaws.cognitoidentityprovider#LimitExceededException":throw await Wee(r);case"TooManyFailedAttemptsException":case"com.amazonaws.cognitoidentityprovider#TooManyFailedAttemptsException":throw await ete(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await nte(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await cte(r);case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await Ree(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await zee(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await Vee(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await qee(r);case"PreconditionNotMetException":case"com.amazonaws.cognitoidentityprovider#PreconditionNotMetException":throw await Qee(r);case"UnsupportedUserStateException":case"com.amazonaws.cognitoidentityprovider#UnsupportedUserStateException":throw await ate(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await fte(r);case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await Tee(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await Hee(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await Gee(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await Yee(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await ute(r);case"UserPoolAddOnNotEnabledException":case"com.amazonaws.cognitoidentityprovider#UserPoolAddOnNotEnabledException":throw await hte(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await jee(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await _ee(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await Nee(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await Zee(r);case"ConcurrentModificationException":case"com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":throw await Iee(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await Lee(r);case"GroupExistsException":case"com.amazonaws.cognitoidentityprovider#GroupExistsException":throw await Dee(r);case"DuplicateProviderException":case"com.amazonaws.cognitoidentityprovider#DuplicateProviderException":throw await Mee(r);case"UserPoolTaggingException":case"com.amazonaws.cognitoidentityprovider#UserPoolTaggingException":throw await vte(r);case"InvalidOAuthFlowException":case"com.amazonaws.cognitoidentityprovider#InvalidOAuthFlowException":throw await Fee(r);case"ScopeDoesNotExistException":case"com.amazonaws.cognitoidentityprovider#ScopeDoesNotExistException":throw await Xee(r);case"UnsupportedIdentityProviderException":case"com.amazonaws.cognitoidentityprovider#UnsupportedIdentityProviderException":throw await ite(r);case"UnauthorizedException":case"com.amazonaws.cognitoidentityprovider#UnauthorizedException":throw await rte(r);case"UnsupportedOperationException":case"com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":throw await ste(r);case"UnsupportedTokenTypeException":case"com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":throw await ote(r);case"EnableSoftwareTokenMFAException":case"com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":throw await Oee(r);default:const i=r.body;return yte({output:t,parsedBody:i,errorCode:n})}},Tee=async(t,e)=>{const r=t.body,n=Se(r),i=new hb({$metadata:Ie(t),...n});return Le(i,r)},Ree=async(t,e)=>{const r=t.body,n=Se(r),i=new ob({$metadata:Ie(t),...n});return Le(i,r)},_ee=async(t,e)=>{const r=t.body,n=Se(r),i=new bb({$metadata:Ie(t),...n});return Le(i,r)},Iee=async(t,e)=>{const r=t.body,n=Se(r),i=new Ab({$metadata:Ie(t),...n});return Le(i,r)},Mee=async(t,e)=>{const r=t.body,n=Se(r),i=new kb({$metadata:Ie(t),...n});return Le(i,r)},Oee=async(t,e)=>{const r=t.body,n=Se(r),i=new Nb({$metadata:Ie(t),...n});return Le(i,r)},Nee=async(t,e)=>{const r=t.body,n=Se(r),i=new wb({$metadata:Ie(t),...n});return Le(i,r)},Lee=async(t,e)=>{const r=t.body,n=Se(r),i=new Sb({$metadata:Ie(t),...n});return Le(i,r)},Dee=async(t,e)=>{const r=t.body,n=Se(r),i=new Cb({$metadata:Ie(t),...n});return Le(i,r)},Bee=async(t,e)=>{const r=t.body,n=Se(r),i=new Yx({$metadata:Ie(t),...n});return Le(i,r)},jee=async(t,e)=>{const r=t.body,n=Se(r),i=new xb({$metadata:Ie(t),...n});return Le(i,r)},$ee=async(t,e)=>{const r=t.body,n=Se(r),i=new rb({$metadata:Ie(t),...n});return Le(i,r)},Fee=async(t,e)=>{const r=t.body,n=Se(r),i=new Tb({$metadata:Ie(t),...n});return Le(i,r)},Uee=async(t,e)=>{const r=t.body,n=Se(r),i=new Qx({$metadata:Ie(t),...n});return Le(i,r)},zee=async(t,e)=>{const r=t.body,n=Se(r),i=new ab({$metadata:Ie(t),...n});return Le(i,r)},Vee=async(t,e)=>{const r=t.body,n=Se(r),i=new lb({$metadata:Ie(t),...n});return Le(i,r)},qee=async(t,e)=>{const r=t.body,n=Se(r),i=new cb({$metadata:Ie(t),...n});return Le(i,r)},Hee=async(t,e)=>{const r=t.body,n=Se(r),i=new vb({$metadata:Ie(t),...n});return Le(i,r)},Wee=async(t,e)=>{const r=t.body,n=Se(r),i=new nb({$metadata:Ie(t),...n});return Le(i,r)},Gee=async(t,e)=>{const r=t.body,n=Se(r),i=new yb({$metadata:Ie(t),...n});return Le(i,r)},Kee=async(t,e)=>{const r=t.body,n=Se(r),i=new Jx({$metadata:Ie(t),...n});return Le(i,r)},Yee=async(t,e)=>{const r=t.body,n=Se(r),i=new pb({$metadata:Ie(t),...n});return Le(i,r)},Qee=async(t,e)=>{const r=t.body,n=Se(r),i=new fb({$metadata:Ie(t),...n});return Le(i,r)},Jee=async(t,e)=>{const r=t.body,n=Se(r),i=new Xx({$metadata:Ie(t),...n});return Le(i,r)},Xee=async(t,e)=>{const r=t.body,n=Se(r),i=new Rb({$metadata:Ie(t),...n});return Le(i,r)},Zee=async(t,e)=>{const r=t.body,n=Se(r),i=new Eb({$metadata:Ie(t),...n});return Le(i,r)},ete=async(t,e)=>{const r=t.body,n=Se(r),i=new ib({$metadata:Ie(t),...n});return Le(i,r)},tte=async(t,e)=>{const r=t.body,n=Se(r),i=new Zx({$metadata:Ie(t),...n});return Le(i,r)},rte=async(t,e)=>{const r=t.body,n=Se(r),i=new Ib({$metadata:Ie(t),...n});return Le(i,r)},nte=async(t,e)=>{const r=t.body,n=Se(r),i=new sb({$metadata:Ie(t),...n});return Le(i,r)},ite=async(t,e)=>{const r=t.body,n=Se(r),i=new _b({$metadata:Ie(t),...n});return Le(i,r)},ste=async(t,e)=>{const r=t.body,n=Se(r),i=new Mb({$metadata:Ie(t),...n});return Le(i,r)},ote=async(t,e)=>{const r=t.body,n=Se(r),i=new Ob({$metadata:Ie(t),...n});return Le(i,r)},ate=async(t,e)=>{const r=t.body,n=Se(r),i=new ub({$metadata:Ie(t),...n});return Le(i,r)},lte=async(t,e)=>{const r=t.body,n=Se(r),i=new eb({$metadata:Ie(t),...n});return Le(i,r)},cte=async(t,e)=>{const r=t.body,n=Se(r),i=new r1({$metadata:Ie(t),...n});return Le(i,r)},fte=async(t,e)=>{const r=t.body,n=Se(r),i=new db({$metadata:Ie(t),...n});return Le(i,r)},ute=async(t,e)=>{const r=t.body,n=Se(r),i=new mb({$metadata:Ie(t),...n});return Le(i,r)},dte=async(t,e)=>{const r=t.body,n=Se(r),i=new tb({$metadata:Ie(t),...n});return Le(i,r)},hte=async(t,e)=>{const r=t.body,n=Se(r),i=new gb({$metadata:Ie(t),...n});return Le(i,r)},vte=async(t,e)=>{const r=t.body,n=Se(r),i=new Pb({$metadata:Ie(t),...n});return Le(i,r)},Ie=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),yte=kJ(_e),Db=async(t,e,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await t.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:e};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new ls(c)};function Bb(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}}class pte extends e1.classBuilder().ep({...Hx}).m(function(e,r,n,i){return[$x(n,this.serialize,this.deserialize),Fx(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","InitiateAuth",{}).n("CognitoIdentityProviderClient","InitiateAuthCommand").f(mee,gee).ser(Eee).de(Cee).build(){}class mte extends e1.classBuilder().ep({...Hx}).m(function(e,r,n,i){return[$x(n,this.serialize,this.deserialize),Fx(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","RespondToAuthChallenge",{}).n("CognitoIdentityProviderClient","RespondToAuthChallengeCommand").f(xee,bee).ser(Aee).de(kee).build(){}class gte extends e1.classBuilder().ep({...Hx}).m(function(e,r,n,i){return[$x(n,this.serialize,this.deserialize),Fx(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","SignUp",{}).n("CognitoIdentityProviderClient","SignUpCommand").f(wee,void 0).ser(See).de(Pee).build(){}function Yr(){return Yr=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}const xte=["signatures"],bte="0.0.0";function Fn(t,e,r){const n=Math.floor(Date.now()/1e3),i=n+e;return{version:bte,issuedAt:n,expiresAt:i,name:t,data:r}}async function wte(t,e){const r=Ete(e),n=await t.sign(new Uint8Array(r));return Yr({},e,{signatures:[{sessionId:await t.sessionId(),signature:n}]})}function Ete(t){const{version:e,issuedAt:r,expiresAt:n,name:i,data:s}=t,a=zt(DK({version:e,issuedAt:r,expiresAt:n,name:i,data:s}));return le(ct(a))}function Ate(t,e){const r=$n(t,xte),n=t.expiresAt-t.issuedAt;return r.issuedAt=Math.floor(e.getTime()/1e3),r.expiresAt=r.issuedAt+n,r}let Un=function(t){return t.initiateAuth="initiateAuth",t.openSession="openSession",t.closeSession="closeSession",t.validateSession="validateSession",t.finishValidateSession="finishValidateSession",t.listSessions="listSessions",t.getSession="getSession",t.sessionAuthProof="sessionAuthProof",t.feeOptions="feeOptions",t.signMessage="signMessage",t.sendTransaction="sendTransaction",t.getTransactionReceipt="getTransactionReceipt",t.federateAccount="federateAccount",t.removeAccount="removeAccount",t.listAccounts="listAccounts",t.getIdToken="getIdToken",t}({}),jb=function(t){return t.authInitiated="authInitiated",t.sessionOpened="sessionOpened",t.sessionClosed="sessionClosed",t.sessionList="sessionList",t.validationRequired="validationRequired",t.validationStarted="validationStarted",t.validationFinished="validationFinished",t.sessionAuthProof="sessionAuthProof",t.signedMessage="signedMessage",t.feeOptions="feeOptions",t.transactionReceipt="transactionReceipt",t.transactionFailed="transactionFailed",t.getSessionResponse="getSessionResponse",t.accountList="accountList",t.accountFederated="accountFederated",t.accountRemoved="accountRemoved",t.idToken="idToken",t}({}),Hc=function(t){return t.None="None",t.Guest="Guest",t.OIDC="OIDC",t.Email="Email",t}({});function Ste({wallet:t,chainId:e,message:r,lifespan:n}){return Fn(Un.signMessage,n,{wallet:t,network:e.toString(),message:r.startsWith("0x")?r:ue(zt(r))})}const Cte=["lifespan"],kte=["lifespan"],Pte=["lifespan"],Tte=["lifespan"],Rte=["lifespan"],_te=["lifespan"],Ite=["lifespan"],Mte=["lifespan"];async function M4(t){let{lifespan:e}=t,r=$n(t,Cte);return Fn(Un.initiateAuth,e,r)}async function Yv(t){let{lifespan:e}=t,r=$n(t,kte);return Fn(Un.openSession,e,r)}async function Ote(t){let{lifespan:e}=t,r=$n(t,Pte);return Fn(Un.validateSession,e,r)}function Nte(t){let{lifespan:e}=t,r=$n(t,Tte);return Fn(Un.finishValidateSession,e,r)}function O4(t){let{lifespan:e}=t,r=$n(t,Rte);return Fn(Un.closeSession,e,r)}function Lte(t){let{lifespan:e}=t,r=$n(t,_te);return Fn(Un.listSessions,e,r)}function Dte(t){let{lifespan:e}=t,r=$n(t,Ite);return Fn(Un.getSession,e,r)}function Bte(t){let{lifespan:e}=t,r=$n(t,Mte);return Fn(Un.sessionAuthProof,e,r)}class jte{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Qv(n,i,s)).then(o=>Jv(o).then(a=>({session:a.session,response:a.response})),o=>{throw Pl.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Qv(n,i,s)).then(o=>Jv(o).then(a=>({response:a.response})),o=>{throw Pl.new({cause:`fetch(): ${o.message||""}`})}),this.chainList=(n,i)=>this.fetch(this.url("ChainList"),Qv({},n,i)).then(s=>Jv(s).then(o=>({chains:o.chains})),s=>{throw Pl.new({cause:`fetch(): ${s.message||""}`})}),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Qv=(t={},e={},r=null)=>({method:"POST",headers:Yr({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Jv=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),n1.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw($te[n]||_r).new(r)}return r});class _r extends Error{constructor(e,r,n,i,s){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,_r.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}}class $b extends _r{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,$b.prototype)}}class Pl extends _r{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Pl.prototype)}}class Fb extends _r{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Fb.prototype)}}class Ub extends _r{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Ub.prototype)}}class zb extends _r{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,zb.prototype)}}class n1 extends _r{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,n1.prototype)}}class Vb extends _r{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Vb.prototype)}}class qb extends _r{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,qb.prototype)}}class Hb extends _r{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Hb.prototype)}}class Wb extends _r{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Wb.prototype)}}class Gb extends _r{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Gb.prototype)}}class Kb extends _r{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Kb.prototype)}}class Yb extends _r{constructor(e="TenantNotFound",r=1001,n="Tenant not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Yb.prototype)}}class Qb extends _r{constructor(e="EmailAlreadyInUse",r=2e3,n="Could not create account as the email is already in use",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Qb.prototype)}}const $te={0:$b,[-1]:Pl,[-2]:Fb,[-3]:Ub,[-4]:zb,[-5]:n1,[-6]:Vb,[-7]:qb,[-8]:Hb,[-9]:Wb,[-10]:Gb,1e3:Kb,1001:Yb,2e3:Qb};let Xv=function(t){return t.unknown="unknown",t.erc20Token="erc20Token",t.erc1155Token="erc1155Token",t}({});function Fte(t){return typeof t=="object"&&t.code===jb.authInitiated&&typeof t.data=="object"&&typeof t.data.sessionId=="string"&&typeof t.data.identityType=="string"&&typeof t.data.expiresIn=="number"}function Cu(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.txHash=="string"&&typeof t.data.receipt=="object"&&typeof t.data.request=="object"}function gP(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.metaTxHash=="string"&&!t.data.txHash&&typeof t.data.request=="object"}function Ute(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionFailed"&&typeof t.data=="object"&&typeof t.data.request=="object"&&Array.isArray(t.data.simulations)&&typeof t.data.error=="string"}function N4(t){return Cu(t)||Ute(t)||gP(t)}function zte(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="signedMessage"&&typeof t.data=="object"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function Vte(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionAuthProof"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"&&typeof t.data.network=="string"&&typeof t.data.wallet=="string"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function qte(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="feeOptions"&&typeof t.data=="object"&&Array.isArray(t.data.feeOptions)}function Hte(t){return typeof t=="object"&&t.code===jb.validationRequired&&typeof t.data=="object"&&typeof t.data.sessionId=="string"}function Wte(t){return typeof t=="object"&&t.code===jb.validationFinished&&typeof t.data=="object"}function Gte(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionClosed"}function Kte(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="getSessionResponse"&&typeof t.data=="object"&&typeof t.data.session=="string"&&typeof t.data.wallet=="string"}function L4(t){var e,r;return!!(t instanceof _r&&((e=t.cause)!=null&&e.endsWith("intent is invalid: intent expired")||(r=t.cause)!=null&&r.endsWith("intent is invalid: intent issued in the future")))}const Yte=["token","to","value"],Qte=["token","to","id","safe","data"],Jte=["token","to","values","data"],Xte=["to","value","abi","func","args"];function Zte({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i}){return Fn(Un.feeOptions,t,{identifier:r,wallet:e,network:n.toString(),transactions:i.map(s=>{if(!s.to||s.to===dx)throw new Error("Contract creation not supported");return bP(s)?{type:"transaction",to:s.to,value:ce.from(s.value||0).toHexString(),data:ue(s.data||[])}:s})})}function ku({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i,transactionsFeeQuote:s,transactionsFeeOption:o}){return Fn(Un.sendTransaction,t,{identifier:r,wallet:e,network:n.toString(),transactions:ere(i,o).map(a=>{if(!a.to||a.to===dx)throw new Error("Contract creation not supported");return bP(a)?{type:"transaction",to:a.to,value:ce.from(a.value||0).toHexString(),data:ue(a.data||[])}:a}),transactionsFeeQuote:s})}function ere(t,e){const r=[...t];if(e)switch(e.token.type){case Xv.unknown:r.push({to:e.to,value:e.value});break;case Xv.erc20Token:if(!e.token.contractAddress)throw new Error("contract address is required");r.push(Jb({tokenAddress:e.token.contractAddress,to:e.to,value:e.value}));break;case Xv.erc1155Token:if(!e.token.contractAddress)throw new Error("contract address is required");if(!e.token.tokenID)throw new Error("token ID is required");r.push(Xb({tokenAddress:e.token.contractAddress,to:e.to,vals:[{id:e.token.tokenID,amount:e.value}]}));break}return r}function tre({lifespan:t,chainId:e,wallet:r,metaTxHash:n}){return Fn(Un.getTransactionReceipt,t,{wallet:r,network:e.toString(),metaTxHash:n})}function rre(t){let{token:e,to:r,value:n}=t,i=$n(t,Yte);return ku(Yr({transactions:[Jb({tokenAddress:e,to:r,value:n.toString()})]},i))}function nre(t){let{token:e,to:r,id:n,safe:i,data:s}=t,o=$n(t,Qte);return ku(Yr({transactions:[ore({tokenAddress:e,to:r,id:n,data:s,safe:i})]},o))}function ire(t){let{token:e,to:r,values:n,data:i}=t,s=$n(t,Jte);const o=n.map(a=>({id:a.id,amount:ce.from(a.amount).toString()}));return ku(Yr({transactions:[Xb({tokenAddress:e,to:r,vals:o,data:i})]},s))}function sre(t){let{to:e,value:r,abi:n,func:i,args:s}=t,o=$n(t,Xte);return ku(Yr({transactions:[xP({to:e,value:ce.from(r).toString(),data:{abi:n,func:i,args:s}})]},o))}function Jb(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc20send",tokenAddress:e.token,to:e.to,value:e.value.toString()};if(r.tokenAddress!==void 0)return Yr({type:"erc20send"},r);throw new Error("Invalid ERC20 transaction")}function ore(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc721send",tokenAddress:e.token,to:e.to,id:e.id,data:e.data,safe:e.safe};if(r.tokenAddress!==void 0)return Yr({type:"erc721send"},r);throw new Error("Invalid ERC721 transaction")}function Xb(t){const e=t,r=t;if(e.values!==void 0)return{type:"erc1155send",vals:e.values.map(n=>({id:n.id,amount:ce.from(n.amount).toString()})),tokenAddress:e.token,to:e.to,data:e.data};if(r.vals!==void 0)return{type:"erc1155send",vals:r.vals.map(n=>({id:n.id,amount:ce.from(n.amount).toString()})),tokenAddress:r.tokenAddress,to:r.to,data:r.data};throw new Error("Invalid ERC1155 transaction")}function xP(t){const e=t,r=t;if(e.abi!==void 0)return{type:"delayedEncode",to:e.to,value:ce.from(e.value).toString(),data:{abi:e.abi,func:e.func,args:e.args}};if(r.data!==void 0)return{type:"delayedEncode",to:r.to,value:r.value,data:r.data};throw new Error("Invalid delayed encode transaction")}function are(t){if(t.length===0)throw new Error("No packets provided");const e=t[0].data.network,r=t[0].data.wallet,n=t[0].expiresAt-t[0].issuedAt,i=t[0].data.identifier,s=t[0].data.transactionsFeeQuote;if(!t.every(o=>o.data.network===e))throw new Error("All packets must have the same chainId");if(!t.every(o=>o.data.wallet===r))throw new Error("All packets must have the same wallet");return Fn(Un.sendTransaction,n,{network:e,wallet:r,identifier:i,transactions:t.flatMap(o=>o.data.transactions),transactionsFeeQuote:s})}function bP(t){return!["transaction","erc20send","erc721send","erc1155send","delayedEncode"].includes(t.type)}class zd{constructor(e,r,n){this.store=e,this.key=r,this.defaultValue=n}async get(){const e=await this.store.get(this.key);return e||this.defaultValue}async set(e){e?await this.store.set(this.key,e):await this.store.set(this.key,null)}}class wP{constructor(){this.store=void 0,Yh.isAvailable()?this.store=new Yh:this.store=new lre}async get(e){return this.store.get(e)}async set(e,r){return this.store.set(e,r)}}class Yh{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(!Yh.isAvailable())throw new Error("No localStorage")}async get(e){return window.localStorage.getItem(e)}async set(e,r){r?window.localStorage.setItem(e,r):window.localStorage.removeItem(e)}}class lre{constructor(){this.store={},this.store={}}async get(e){return this.store[e]||null}async set(e,r){r?this.store[e]=r:delete this.store[e]}}const Xp="seq-waas-session-p256k1",Zp="seq-waas-session";async function EP(t,e){const r=await e.get(Xp,Zp,t);if(!r)throw new Error("No private key found");const n=new zi(r);return{sessionId(){return n.getAddress()},sign(i){return n.signMessage(i)},clear:async()=>{await e.delete(Xp,Zp,t)}}}async function cre(t,e){const n=await new zi(t).getAddress();return await e.set(Xp,Zp,n,t),EP(n,e)}async function fre(t){const e=zi.createRandom();return cre(e.privateKey,t)}let AP=function(t){return t[t.ECDSAP256K1=0]="ECDSAP256K1",t[t.ECDSAP256R1=1]="ECDSAP256R1",t}({});const em="seq-waas-session-p256r1",tm="seq-waas-session";async function SP(t,e,r){const n=await r.get(em,tm,t);if(!n||!n.privateKey)throw new Error("No private key found");const i=new TextEncoder;return{sessionId:async()=>{const s=await e.exportKey("raw",n.publicKey),o=new Uint8Array(s.byteLength+1);return o[0]=AP.ECDSAP256R1,o.set(new Uint8Array(s),1),ue(o)},sign:async s=>{typeof s=="string"&&(s.startsWith("0x")?(s=s.slice(2),s=le(s)):s=i.encode(s));const o=await e.sign({name:"ECDSA",hash:{name:"SHA-256"}},n.privateKey,s);return ue(new Uint8Array(o))},clear:async()=>{await r.delete(em,tm,t)}}}async function ure(t,e,r){const n=await hre(e,t.publicKey);return await r.set(em,tm,n,t),SP(n,e,r)}async function dre(t,e){const r=await t.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"]);return ure(r,t,e)}async function hre(t,e){const r=await t.exportKey("raw",e),n=new Uint8Array(r.byteLength+1);return n[0]=AP.ECDSAP256R1,n.set(new Uint8Array(r),1),ue(n)}async function rm(t,e,r){if(!r)throw new Error("No secure store available");return e?SP(t,e,r):EP(t,r)}async function vre(t,e){if(!e)throw new Error("No secure store available");return t?dre(t,e):fre(e)}const nm=Object.entries(ot).reduce((t,[e,r])=>(t[r.name]=r.chainId,t),{}),yre=Object.entries(nm).reduce((t,[e,r])=>(t[r]=e,t),{});function Zv(t){const e=typeof t=="number"?t:parseInt(t);if(e in yre)return e;const r=t.toString().toLowerCase();if(r in nm)return nm[r];throw new Error(`Unknown network: ${t}`)}const CP=()=>kP()?new pre:null;function kP(){return typeof window=="object"&&typeof window.crypto=="object"&&typeof window.crypto.subtle=="object"}class pre{constructor(){if(!kP())throw new Error("window.crypto.subtle is not available")}async generateKey(e,r,n){return window.crypto.subtle.generateKey(e,r,n)}async exportKey(e,r){const n=await window.crypto.subtle.exportKey(e,r);return new Uint8Array(n)}async digest(e,r){const n=await window.crypto.subtle.digest(e,r);return new Uint8Array(n)}async sign(e,r,n){const i=await window.crypto.subtle.sign(e,r,n);return new Uint8Array(i)}async verify(e,r,n,i){return window.crypto.subtle.verify(e,r,n,i)}getRandomValues(e){const r=new Uint8Array(e);return window.crypto.getRandomValues(r)}}const PP=()=>TP()?new mre:null;function TP(){return typeof indexedDB=="object"}class mre{constructor(){if(this.db=void 0,!TP())throw new Error("IndexedDB is not available");this.db=null}async openDB(e,r,n){return this.db?this.db:(this.db=await ZK(e,1,{upgrade(i){i.createObjectStore(r)}}),this.db)}async get(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readonly"),o=await i.get(r,n);return await s.done,o}async set(e,r,n,i){const s=await this.openDB(e,r,1),o=s.transaction(r,"readwrite");return await s.put(r,i,n),await o.done,!0}async delete(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readwrite");return await i.delete(r,n),await s.done,!0}}const gre="@0xsequence.waas.wallet",xre="@0xsequence.waas.session_id",bre="@0xsequence.waas.status",cn=5*60;class wre{constructor(e={network:1},r=new wP,n=CP(),i=PP()){this.config=e,this.store=r,this.cryptoBackend=n,this.secureStoreBackend=i,this.VERSION="0.0.0-dev1",this.status=void 0,this.sessionId=void 0,this.wallet=void 0,this.sessionObservers=[],this.gettingSessionIdPromise=void 0,this.status=new zd(this.store,bre,"signed-out"),this.sessionId=new zd(this.store,xre,void 0),this.wallet=new zd(this.store,gre,void 0)}async getAddress(){return this.getWalletAddress()}async getWalletAddress(){if(!await this.isSignedIn())throw new Error("Not signed in");const e=await this.wallet.get();if(!e)throw new Error("No wallet");return e}async commonArgs(e){var r;return Yr({},e,{identifier:e==null?void 0:e.identifier,wallet:await this.getWalletAddress(),lifespan:(r=e==null?void 0:e.lifespan)!=null?r:cn,chainId:Zv(e.network||this.config.network)})}async signIntent(e){const r=await this.getSessionId();if(r===void 0)throw new Error("session not open");const n=await rm(r,this.cryptoBackend,this.secureStoreBackend);return wte(n,e)}async signUsingSessionKey(e){const r=await this.getSessionId();if(!r)throw new Error("session not open");return(await rm(r,this.cryptoBackend,this.secureStoreBackend)).sign(e)}async getSessionId(){var e=this;if(this.gettingSessionIdPromise)return this.gettingSessionIdPromise;const r=async function(){let i=await e.sessionId.get();return i||(i=await(await vre(e.cryptoBackend,e.secureStoreBackend)).sessionId(),await e.sessionId.set(i),e.signalObservers(e.sessionObservers,i)),e.gettingSessionIdPromise=void 0,i};return this.gettingSessionIdPromise=r(),this.gettingSessionIdPromise}async signInWithIdToken(e){if(await this.status.get()!=="signed-out")throw await this.completeSignOut(),new Error("you are already signed in");const n=await this.getSessionId(),i=await Yv({sessionId:n,identityType:Hc.None,idToken:e,lifespan:cn});return await this.status.set("pending"),this.signIntent(i)}async initiateEmailAuth(e){const r=await this.getSessionId(),n=await M4({sessionId:r,identityType:Hc.Email,verifier:`${e};${r}`,lifespan:cn});return await this.status.set("pending"),this.signIntent(n)}async initiateIdTokenAuth(e){const r=AY(e),n=await this.getSessionId(),i=Jo.keccak256(Jo.toUtf8Bytes(e)),s=await M4({sessionId:n,identityType:Hc.OIDC,verifier:`${i};${r.exp}`,lifespan:cn});return await this.status.set("pending"),this.signIntent(s)}async completeEmailAuth(e,r,n){const i=await this.getSessionId(),s=Jo.keccak256(Jo.toUtf8Bytes(r+n)),o=await Yv({sessionId:i,identityType:Hc.Email,verifier:`${e};${i}`,answer:s,lifespan:cn});return this.signIntent(o)}async completeIdTokenAuth(e){const r=await this.getSessionId(),n=await Yv({sessionId:r,identityType:Hc.OIDC,verifier:Jo.keccak256(Jo.toUtf8Bytes(e)),answer:e,lifespan:cn});return this.signIntent(n)}onSessionStateChanged(e){return this.sessionObservers.push(e),()=>{this.sessionObservers=this.sessionObservers.filter(r=>r!=e)}}async signOut({lifespan:e,sessionId:r}={}){if(r=r||await this.sessionId.get(),!r)throw new Error("session not open");const n=O4({lifespan:e||cn,sessionId:r});return this.signIntent(n)}async signOutSession(e){const r=O4({lifespan:cn,sessionId:e});return this.signIntent(r)}async listSessions(){const e=Lte({lifespan:cn,wallet:await this.getWalletAddress()});return this.signIntent(e)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.wallet.set(void 0),this.sessionId.set(void 0)]),this.signalObservers(this.sessionObservers,null)}async completeSignIn(e){if(e.result)return this.completeSignIn(e.result);const r=await this.status.get();if(e.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending")throw new Error("No pending sign in");return await Promise.all([this.status.set("signed-in"),this.wallet.set(e.data.wallet)]),e.data.wallet}async isSignedIn(){return await this.status.get()==="signed-in"}async sessionAuthProof(e){var r;const n=Bte({lifespan:(r=e.lifespan)!=null?r:cn,network:Zv(e.network||this.config.network).toString(),wallet:await this.getWalletAddress(),nonce:e.nonce});return this.signIntent(n)}async signMessage(e){var r;const n=Ste(Yr({chainId:Zv(e.network||this.config.network)},e,{lifespan:(r=e.lifespan)!=null?r:cn,wallet:await this.getWalletAddress()}));return this.signIntent(n)}async sendTransaction(e){const r=ku(await this.commonArgs(e));return this.signIntent(r)}async getTransactionReceipt(e){const r=tre(await this.commonArgs(e));return this.signIntent(r)}async sendERC20(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=rre(await this.commonArgs(e));return this.signIntent(r)}async sendERC721(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=nre(await this.commonArgs(e));return this.signIntent(r)}async sendERC1155(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=ire(await this.commonArgs(e));return this.signIntent(r)}async callContract(e){const r=sre(await this.commonArgs(e));return this.signIntent(r)}async feeOptions(e){const r=Zte(await this.commonArgs(e));return this.signIntent(r)}async validateSession({deviceMetadata:e}){const r=await this.sessionId.get();if(!r)throw new Error("session not open");const n=await Ote({lifespan:cn,sessionId:r,deviceMetadata:e,wallet:await this.getWalletAddress()});return this.signIntent(n)}async getSession(){const e=await this.sessionId.get();if(!e)throw new Error("session not open");const r=Dte({sessionId:e,wallet:await this.getWalletAddress(),lifespan:cn});return this.signIntent(r)}async finishValidateSession(e,r){const n=await this.sessionId.get();if(!n)throw new Error("session not open");const i=await this.getWalletAddress(),s=Nte({sessionId:n,wallet:i,lifespan:cn,salt:e,challenge:r});return this.signIntent(s)}async batch(e){const r=are(e);return this.signIntent(r)}signalObservers(e,r){e.forEach(n=>n(r))}async updateIntentTime(e,r){const n=Ate(e,r);return this.signIntent(n)}}class Ere{constructor(e,r){this.region=e,this.clientId=r,this.cognitoMemo=void 0}cognito(){return this.cognitoMemo||(this.cognitoMemo=new pee({region:this.region})),this.cognitoMemo}signUp(e){return this.cognito().send(new gte({ClientId:this.clientId,Username:e,Password:"aB1%"+Are(14),UserAttributes:[{Name:"email",Value:e}]}))}signIn(e){return this.cognito().send(new pte({AuthFlow:"CUSTOM_AUTH",ClientId:this.clientId,AuthParameters:{USERNAME:e}}))}async initiateAuth({email:e}){let r;try{r=await this.signIn(e)}catch(n){if(n instanceof r1&&n.message.includes("user not found"))await this.signUp(e),r=await this.signIn(e);else throw n}if(!r.Session)throw new Error("response session is empty");return{instance:r.Session,email:e}}async finalizeAuth({instance:e,email:r,answer:n,sessionHash:i}){const s=await this.cognito().send(new mte({ClientId:this.clientId,Session:e,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n},ClientMetadata:{SESSION_HASH:i}}));if(!s.AuthenticationResult||!s.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:s.AuthenticationResult.IdToken}}}function Are(t){return Array.from(Sre(t)).map(e=>e.toString(16).padStart(2,"0")).join("")}function Sre(t){const e=new Uint8Array(t);if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto.getRandomValues(e);{console.warn("window.crypto.getRandomValues is not available. Falling back to less secure Math.random().");const r=new Uint8Array(t);for(let n=0;n{this.validationRequiredCallback=this.validationRequiredCallback.filter(r=>r!==e)}}async handleValidationRequired({onValidationRequired:e}={}){var r;if(!(e?e():!0))return!1;const i=await this.waas.validateSession({deviceMetadata:(r=await this.deviceName.get())!=null?r:"Unknown device"}),s=await this.sendIntent(i);this.validationRequiredSalt=s.data.salt;for(const o of this.validationRequiredCallback)o();return this.waitForSessionValid()}headers(){return{"X-Access-Key":this.config.projectAccessKey}}async sendIntent(e){if(!await this.waas.getSessionId())throw new Error("session not open");try{return(await this.client.sendIntent({intent:e},this.headers())).response}catch(n){if(L4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return(await this.client.sendIntent({intent:i},this.headers())).response}throw n}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(e,r){const n=typeof e=="string"?e:e.idToken,i=await this.waas.signInWithIdToken(n);try{const s=await this.registerSession(i,r);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:s.session.id,wallet:s.response.data.wallet}}),{sessionId:s.session.id,wallet:s.response.data.wallet,email:s.session.identity.email}}catch(s){throw await this.waas.completeSignOut(),s}}async initiateEmailAuth(e){const r=await this.waas.initiateEmailAuth(e),n=await this.sendIntent(r);if(!Fte(n))throw new Error(`Invalid response: ${JSON.stringify(n)}`);return n.data.challenge}async completeEmailAuth(e){const r=await this.waas.completeEmailAuth(e.email,e.challenge,e.answer);try{const n=await this.registerSession(r,e.sessionName);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:n.session.id,wallet:n.response.data.wallet}}),{sessionId:n.session.id,wallet:n.response.data.wallet,email:n.session.identity.email}}catch(n){throw await this.waas.completeSignOut(),n}}async completeIdTokenAuth(e){const r=await this.waas.completeIdTokenAuth(e.idToken);try{const n=await this.registerSession(r,e.sessionName);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:n.session.id,wallet:n.response.data.wallet}}),{sessionId:n.session.id,wallet:n.response.data.wallet,email:n.session.identity.email}}catch(n){throw await this.waas.completeSignOut(),n}}async registerSession(e,r){try{return await this.client.registerSession({intent:e,friendlyName:r},this.headers())}catch(n){if(L4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return await this.client.registerSession({intent:i,friendlyName:r},this.headers())}throw n}}async refreshSession(){throw new Error("Not implemented")}async getSessionId(){return this.waas.getSessionId()}async getSessionHash(){const e=(await this.waas.getSessionId()).toLowerCase();return ct(zt(e))}async dropSession({sessionId:e,strict:r}={}){const n=await this.waas.getSessionId();if(!n)throw new Error("session not open");const i=e||n;try{const s=await this.waas.signOutSession(i),o=await this.sendIntent(s);if(!Gte(o))throw new Error(`Invalid response: ${JSON.stringify(o)}`)}catch(s){if(r)throw s;console.error(s)}if(i===n){if(!this.secureStoreBackend)throw new Error("No secure store available");(await rm(n,this.cryptoBackend,this.secureStoreBackend)).clear(),await this.waas.completeSignOut(),await this.deviceName.set(void 0)}}async listSessions(){const e=await this.waas.getSessionId();if(!e)throw new Error("session not open");const r=await this.waas.listSessions();return(await this.sendIntent(r)).data.map(i=>Yr({},i,{isThis:i.id===e}))}async getAddress(){return this.waas.getAddress()}async validateSession(e){return await this.isSessionValid()?!0:this.handleValidationRequired(e)}async finishValidateSession(e){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,e),n=await this.sendIntent(r);if(!Wte(n))throw new Error(`Invalid response: ${JSON.stringify(n)}`);return this.validationRequiredSalt="",n.data.isValid}async isSessionValid(){const e=await this.waas.getSession(),r=await this.sendIntent(e);if(!Kte(r))throw new Error(`Invalid response: ${JSON.stringify(r)}`);return r.data.validated}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async sessionAuthProof({nonce:e,network:r,validation:n}){const i=await this.waas.sessionAuthProof({nonce:e,network:r});return await this.trySendIntent({validation:n},i,Vte)}async useIdentifier(e){if(e.identifier)return e;const r=`ts-sdk-${Date.now()}-${await this.waas.getSessionId()}`;return Yr({},e,{identifier:r})}async trySendIntent(e,r,n){const i=await this.sendIntent(r);if(n(i))return i;if(Hte(i)&&await this.handleValidationRequired(e.validation)){const o=await this.sendIntent(r);if(n(o))return o}throw new Error(JSON.stringify(i))}async signMessage(e){const r=await this.waas.signMessage(await this.useIdentifier(e));return this.trySendIntent(e,r,zte)}async trySendTransactionIntent(e,r){let n=await this.trySendIntent(r,e,N4);for(;gP(n);){await new Promise(o=>setTimeout(o,1e3));const i={metaTxHash:n.data.metaTxHash,network:e.data.network,identifier:e.data.identifier,validation:r.validation},s=await this.waas.getTransactionReceipt(await this.useIdentifier(i));n=await this.trySendIntent(i,s,N4)}return n}async sendTransaction(e){const r=await this.waas.sendTransaction(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC20(e){const r=await this.waas.sendERC20(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC721(e){const r=await this.waas.sendERC721(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC1155(e){const r=await this.waas.sendERC1155(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async callContract(e){const r=await this.waas.callContract(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async feeOptions(e){const r=await this.waas.feeOptions(await this.useIdentifier(e));return this.trySendIntent(e,r,qte)}async networkList(){const e=[],r=await this.client.chainList({"X-Access-Key":this.config.projectAccessKey});for(const n of r.chains)e.push({id:n.id,name:n.name,isEnabled:n.isEnabled});return e}onSessionStateChanged(e){return this.waas.onSessionStateChanged(e)}async fetch(e,r){const n=await window.fetch(e,r),i=n.headers.get("date");return i&&(this.lastDate=new Date(i)),n}}async function i1({transactions:t,network:e}){const r=await Ye.feeOptions({transactions:t,network:e==null?void 0:e.id});return r.data.feeQuote&&r.data.feeOptions?{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!1}:{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!0}}function s1(t){var s;const{feeOptions:e,onSelected:r}=t,[n,i]=p.useState();return p.useEffect(()=>{e&&e.length>0&&(i(e[0]),r(e[0]))},[e]),p.useEffect(()=>{n&&r(n)},[n]),e?B.jsxs(te,{marginTop:"5",children:[B.jsx(Ce,{variant:"normal",fontWeight:"bold",children:"Fee options:"}),B.jsx(te,{marginTop:"3"}),B.jsx(_0,{name:"chainId",labelLocation:"top",onValueChange:o=>{const a=e.find(l=>l.token.name===o);a&&i(a)},value:(s=n==null?void 0:n.token)==null?void 0:s.name,options:[...e.map(o=>{var a,l,c;return{label:B.jsx(te,{alignItems:"center",gap:"2",children:B.jsxs(Ce,{children:[(a=o==null?void 0:o.token)==null?void 0:a.name," ",J0(o==null?void 0:o.value,(l=o==null?void 0:o.token)==null?void 0:l.decimals)]})}),value:String((c=o==null?void 0:o.token)==null?void 0:c.name)}})]})]}):B.jsx(te,{})}const Tre="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function Rre(t){const[e,r]=p.useState(),[n,i]=p.useState("ETH"),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(),[v,g]=p.useState(!1),[y,w]=p.useState(),[x,b]=p.useState(),[E,P]=p.useState(),[O,D]=p.useState(),[_,L]=p.useState(!1);p.useEffect(()=>{z()},[]),p.useEffect(()=>{var X,M;if(t.network){const h=gA(t.network.name);if(h){const S=h.name in{polygon:1,mumbai:1}?"MATIC":"ETH";i(S),z(),(X=h.blockExplorer)!=null&&X.rootUrl&&o((M=h.blockExplorer)==null?void 0:M.rootUrl)}}},[t.network]);const z=async()=>{if(!t.network)return;const X=gA(t.network.name);if(!X)return;const M=await Ye.getAddress(),S=await new D7(kk(X.name),Tre).getEtherBalance({accountAddress:M});r(ce.from(S.balance.balanceWei))},H=async(X,M)=>{const h=await i1({transactions:[{to:X,value:$p(M)}],network:t.network});if(h.feeQuote&&h.feeOptions){b(h.feeOptions),D(h.feeQuote),console.log("feeOptions",h);return}L(!0),console.log("tx sponsored")},G=async(X,M)=>{var h;try{w(void 0),g(!0);const S=await Ye.sendTransaction({transactions:[{to:X,value:$p(M)}],network:(h=t.network)==null?void 0:h.id,transactionsFeeOption:E,transactionsFeeQuote:O});Cu(S)?d(S.data.txHash):w(S.data.error),g(!1)}catch(S){console.error(S),g(!1)}finally{D(void 0),b(void 0),P(void 0),L(!1)}};return B.jsxs(te,{children:[B.jsxs(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:["Native token balance: ",Ck(e||0)," ",n]}),B.jsx(pr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:z}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{name:"sendNativeTokenTo",type:"text",onChange:X=>{l(X.target.value)},value:a,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{name:"sendNativeTokenAmount",type:"text",onChange:X=>{f(X.target.value)},value:c,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),y&&B.jsxs(te,{marginTop:"3",children:["Transaction failed: ",y]}),B.jsx(s1,{feeOptions:x,onSelected:P}),_&&B.jsx(te,{marginTop:"5",children:B.jsx(Ce,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v?B.jsx(te,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:B.jsx(Pi,{})}):B.jsxs(te,{children:[B.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:a===""&&c==="",onClick:()=>H(a,c)}),B.jsx(pr,{marginTop:"5",label:"Send native token",disabled:a===""&&c==="",onClick:()=>G(a,c)})]}),u&&B.jsxs(te,{marginTop:"3",children:[B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),B.jsx("br",{}),B.jsx("a",{href:`${s}tx/${u}`,target:"_blank",rel:"noopener noreferrer",children:u})]})]})}function _re(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState(!0),[o,a]=p.useState(),l=async c=>{s(!0),e(void 0);try{await Ye.dropSession({sessionId:c}),e(await Ye.listSessions())}catch(f){a(f.message),e(await Ye.listSessions())}s(!1)};return p.useEffect(()=>{Promise.all([Ye.listSessions(),Ye.getSessionId()]).then(([c,f])=>{e(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),B.jsxs(te,{children:[B.jsxs(te,{marginBottom:"5",children:[B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),t&&B.jsx(B.Fragment,{children:t.map(c=>B.jsx(te,{children:B.jsxs(Ce,{variant:"normal",color:"text100",fontWeight:"normal",children:[c.friendlyName,!c.isThis&&B.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&B.jsx(B.Fragment,{children:" (current)"})]})},c.id))}),i&&B.jsx(Pi,{})]}),o&&B.jsxs(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function Ire(t){const[e,r]=p.useState(""),[n,i]=p.useState(),s=async()=>{var a;const o=await Ye.signMessage({message:e,network:(a=t.network)==null?void 0:a.id});i(o.data.signature)};return B.jsxs(te,{children:[B.jsx(Lr,{name:"signMessageText",type:"text",onChange:o=>{r(o.target.value),n!=""&&i("")},value:e,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),B.jsx(pr,{marginTop:"5",label:"Sign message",disabled:e==="",onClick:()=>s()}),n&&n!==""&&B.jsxs(te,{flexDirection:"column",marginTop:"5",children:[B.jsxs(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",e,":"]}),B.jsx(te,{children:B.jsx(Ce,{as:"p",wordBreak:"break-word",children:n})})]})]})}function Mre(t){const[e,r]=p.useState(""),[n,i]=p.useState(""),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(),[u,d]=p.useState(!1),[v,g]=p.useState(),[y,w]=p.useState(),[x,b]=p.useState(),[E,P]=p.useState(),[O,D]=p.useState(!1),_=async()=>{const z=await i1({transactions:[xP({to:e,abi:n,func:s,args:JSON.parse(a),value:"0"})],network:t.network});if(z.feeQuote&&z.feeOptions){w(z.feeOptions),P(z.feeQuote),console.log("feeOptions",z);return}D(!0),console.log("tx sponsored")},L=async()=>{var z;try{g(void 0),d(!0);const H=await Ye.callContract({network:(z=t.network)==null?void 0:z.id,to:e,abi:n,func:s,args:JSON.parse(a),value:0,transactionsFeeOption:x,transactionsFeeQuote:E});Cu(H)?f(H.data.txHash):g(H.data.error),d(!1)}catch(H){console.error(H),d(!1)}};return B.jsxs(te,{children:[B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{name:"callContractAddress",type:"text",onChange:z=>{r(z.target.value)},value:e,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{name:"callContractAbi",type:"text",onChange:z=>{i(z.target.value)},value:n,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{name:"callContractMethod",type:"text",onChange:z=>{o(z.target.value)},value:s,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{name:"callContractArgs",type:"text",onChange:z=>{l(z.target.value)},value:a,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),B.jsx(s1,{feeOptions:y,onSelected:b}),O&&B.jsx(te,{marginTop:"5",children:B.jsx(Ce,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v&&B.jsxs(te,{marginTop:"3",children:["Transaction failed: ",v]}),u?B.jsx(te,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:B.jsx(Pi,{})}):B.jsxs(te,{children:[B.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>_()}),B.jsx(pr,{marginTop:"5",label:"Call contract",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>L()})]}),c&&B.jsxs(te,{marginTop:"3",children:[B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),B.jsx("br",{}),B.jsx("a",{href:`https://polygonscan.com/tx/${c}`,target:"_blank",rel:"noopener noreferrer",children:c})]})]})}const D4=[{label:"Custom Token",value:"Custom"},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function Ore(t){const[e,r]=p.useState(D4[0].value),[n,i]=p.useState(""),[s,o]=p.useState(!0),[a,l]=p.useState("---"),[c,f]=p.useState(""),[u,d]=p.useState(""),[v,g]=p.useState(""),[y,w]=p.useState(""),[x,b]=p.useState(!1),[E,P]=p.useState(0),[O,D]=p.useState(),[_,L]=p.useState(),[z,H]=p.useState(),[G,X]=p.useState(!1);p.useEffect(()=>{M(n)},[n]);const M=async I=>{var j;if(!X7(I)){l("---");return}l("...");const T=new wk(`https://nodes.sequence.app/${(j=t.network)==null?void 0:j.name}`),N=new QW(I,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],T);try{const[C,m,R]=await Promise.all([N.balanceOf(Ye.getAddress()),N.decimals(),N.symbol()]);P(m),l(`${J0(C,m)} ${R}`)}catch{l("---")}},h=async()=>{const I=await i1({transactions:[Jb({token:n,to:c,value:Wl(u,E).toString()})],network:t.network});if(I.feeQuote&&I.feeOptions){D(I.feeOptions),H(I.feeQuote),console.log("feeOptions",I);return}X(!0),console.log("tx sponsored")},S=async()=>{var I;try{w(""),b(!0);const T=await Ye.sendERC20({token:n,to:c,value:Wl(u,E),network:(I=t.network)==null?void 0:I.id,transactionsFeeOption:_,transactionsFeeQuote:z});Cu(T)?g(T.data.txHash):w(T.data.error)}catch(T){console.error(T)}finally{b(!1)}},k=I=>{r(I),I==="Custom"?(i(""),o(!0)):(i(I),o(!1))};return B.jsxs(te,{children:[B.jsxs(te,{marginTop:"5",children:[B.jsx(_0,{name:"token",options:D4,value:e??"",onValueChange:I=>k(I)}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{type:"text",value:n,disabled:!s,onChange:I=>i(I.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),B.jsxs(te,{marginTop:"3",children:[B.jsxs(Ce,{variant:"normal",color:"text100",children:["Token Balance: ",a]}),B.jsx(pr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>M(n)})]}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{type:"text",value:c,onChange:I=>f(I.target.value),placeholder:"Destination Address"})}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{type:"text",value:u,onChange:I=>d(I.target.value),placeholder:"Amount"})}),y&&B.jsx(te,{marginTop:"3",children:B.jsxs(Ce,{color:"error",children:["Error: ",y]})}),B.jsx(s1,{feeOptions:O,onSelected:L}),G&&B.jsx(te,{marginTop:"5",children:B.jsx(Ce,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),x?B.jsx(te,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:B.jsx(Pi,{})}):B.jsxs(te,{children:[B.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:n===""&&c==="",onClick:()=>h()}),B.jsx(pr,{marginTop:"5",label:"Send Token",onClick:S})]}),v&&B.jsxs(te,{marginTop:"3",children:[B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),B.jsx("a",{href:`https://polygonscan.com/tx/${v}`,target:"_blank",rel:"noopener noreferrer",children:v})]})]})}const Nre="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function Lre(t){var a;const[e,r]=p.useState(""),[n,i]=p.useState("");p.useEffect(()=>{t.onChange(t.index,e,n)},[e,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return B.jsxs(te,{style:s,children:[B.jsx(te,{style:o,children:B.jsx(_0,{name:`sendERC1155TokenId${t.index}`,value:e,disabled:!t.options,onValueChange:l=>{r(l)},options:((a=t.options)==null?void 0:a.balances.map(l=>{var c;return{label:`${((c=l.tokenMetadata)==null?void 0:c.name)||"Unknown"} - ${l.balance}`,value:l.tokenID}}))||[],placeholder:"Select a token"})}),B.jsx(te,{style:o,children:B.jsx(Lr,{type:"text",value:e,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),B.jsx(te,{style:o,children:B.jsx(Lr,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),B.jsx(te,{style:o,children:B.jsx(pr,{label:"Remove",onClick:()=>t.removeTokenEntry(t.index)})})]})}function Dre(t){const[e,r]=p.useState(""),[n,i]=p.useState([]),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(!1),[v,g]=p.useState(void 0),[y,w]=p.useState(),[x,b]=p.useState(),[E,P]=p.useState(),[O,D]=p.useState(!1),_=()=>{i([...n,{tokenId:"",amount:""}])},L=async()=>{if(!e||!t.network)return;const M=t.network.name,h=new D7("https://"+M+"-indexer.sequence.app",Nre),S=e,k=await Ye.getAddress(),I=!0;g(await h.getTokenBalances({contractAddress:S,accountAddress:k,includeMetadata:I}))};p.useEffect(()=>{L()},[e]);const z=(M,h)=>{const S=[...n];S[M]=h,i(S)},H=M=>{const h=[...n];h.splice(M,1),i(h)},G=async()=>{const M=await i1({transactions:[Xb({to:s,token:e,values:n.map(h=>({id:h.tokenId,amount:Wl(h.amount,0)}))})],network:t.network});if(M.feeQuote&&M.feeOptions){w(M.feeOptions),P(M.feeQuote),console.log("feeOptions",M);return}D(!0),console.log("tx sponsored")},X=async()=>{var M;try{f(""),d(!0);const h=await Ye.sendERC1155({to:s,token:e,values:n.map(S=>({id:S.tokenId,amount:Wl(S.amount,0)})),network:(M=t.network)==null?void 0:M.id,transactionsFeeOption:x,transactionsFeeQuote:E});Cu(h)?l(h.data.txHash):f(h.data.error)}catch(h){console.error(h)}finally{d(!1)}};return B.jsxs(te,{children:[B.jsx(te,{marginBottom:"5",children:B.jsx(Lr,{type:"text",value:e,onChange:M=>r(M.target.value),placeholder:"Token Contract Address"})}),B.jsx(te,{marginBottom:"5",children:B.jsx(pr,{label:"Fetch metadata",onClick:()=>L()})}),n.map((M,h)=>B.jsx(te,{marginBottom:"3",children:B.jsx(Lre,{index:h,options:v,onChange:(S,k,I)=>z(S,{tokenId:k,amount:I}),removeTokenEntry:H})},h)),B.jsx(pr,{label:"Add Token",onClick:_}),B.jsx(te,{marginTop:"5",children:B.jsx(Lr,{type:"text",value:s,onChange:M=>o(M.target.value),placeholder:"Destination Address"})}),c&&B.jsx(te,{marginTop:"3",children:B.jsxs(Ce,{color:"error",children:["Error: ",c]})}),B.jsx(s1,{feeOptions:y,onSelected:b}),O&&B.jsx(te,{marginTop:"5",children:B.jsx(Ce,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),u?B.jsx(te,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:B.jsx(Pi,{})}):B.jsxs(te,{children:[B.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&s===""&&n.length!==0,onClick:()=>G()}),B.jsx(pr,{marginTop:"5",label:"Send Tokens",onClick:X})]}),a&&B.jsxs(te,{marginTop:"3",children:[B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),B.jsx("a",{href:`https://polygonscan.com/tx/${a}`,target:"_blank",rel:"noopener noreferrer",children:a})]})]})}function Bre(t){var g,y;const[e,r]=p.useState(),[n,i]=p.useState(),[s,o]=p.useState(),[a,l]=p.useState(),[c,f]=p.useState(!1),[u,d]=p.useState(),v=async()=>{var w;try{d(void 0),f(!0);const b=await(await fetch("https://demo-waas-wallet-link-server.tpin.workers.dev/generateNonce",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:t.walletAddress})})).json();o(b.verificationUrl),l(b.nonce);const E=await Ye.sessionAuthProof({nonce:b.nonce,network:(w=t.network)==null?void 0:w.name});i(E.data.sessionId),r(E.data.signature),f(!1)}catch(x){console.error(x),f(!1)}};return B.jsxs(te,{children:[u&&B.jsxs(te,{marginTop:"3",children:["Transaction failed: ",u]}),c?B.jsx(te,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:B.jsx(Pi,{})}):B.jsx(te,{children:B.jsx(pr,{marginTop:"5",label:"Generate EOA Link",disabled:a!==void 0,onClick:()=>v()})}),a&&B.jsxs(te,{marginTop:"3",children:[B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Verification Link:"}),B.jsx("br",{}),B.jsxs("a",{href:`${s}?nonce=${a}&signature=${e}&sessionId=${n}&chainId=${(g=t.network)==null?void 0:g.id}`,target:"_blank",rel:"noopener noreferrer",children:[s,"?nonce=",a,"&signature=",e,"&sessionId=",n,"&chainId=",(y=t.network)==null?void 0:y.id]})]})]})}const yd="data:image/png;base64,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",B4="data:image/png;base64,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",jre="/demo-waas-auth/assets/100-cf3a0cbf.png",$re="/demo-waas-auth/assets/1101-1d0b8ff9.png",j4="data:image/png;base64,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",$4="/demo-waas-auth/assets/250-2aa72264.png",F4="/demo-waas-auth/assets/42161-90b816d4.png",Fre="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAkxQTFRF////AAAA74Ig8Iwx8ZA4//7974Qj74Mh///+//////78////74Mi//v4//////z5/vfx74Um//37////////////////////////////////////////8ZE774Yn8Y42/fLn////////8Isw////86FW/evc/OXR////+dGt/vPp8Igq++HK+9u/976M8pZE/ezd8Icp+dOx/vbu9KZg/vr2/OjW9a9w9Kll+ti5/e/j/vnz8pxO//r3////8Y838pZD////////////////8Iwy////851Q////+MWX+cyk+tWz+97E8ZI9////8Y0z////////////8ptM/fDk9rZ9972J+93C86Nb8ZM+9riB/OXQ+c+p/OfU/OnY8ZRB////9Kdi9a5u////9axr////////////////////////////////////9Kpn////98KS86Rd/////////vfw/////OPN////859U98GQ////////9rmB+9/G9bJ298CO+Mqg/e3f9bR686JZ8plI9a1t+dKv9bJ18ZA6/vXs8Igs+Mui/e7h/OrZ+Mmf+c6n8phI8Iov86Ve////////+MaZ////8Ikt////+tm7+c2l////++LM98OT8pdG////////+Mid9ruF855S////////////////+Mib////9rN49rd++tq997yG+ta3////98OV////////++DI////////9rV7+tW19bBy/vPq9rqD9Ktp////8ppK////////////////////////Mj9/0QAAAMR0Uk5T/wD/////////Af/+///9/////5/W9TQF4uDZ6MT/////x1L/Av///5b////////////////////////////Q///vCh77/6X/uP//////p/8SDgb/////////////////J///UP8QSyRsVr4rDZr/Wf//bwz/9/9N///8L///////////////////////////////h7H/5P9d///c////j+n////zMuxm/6D//////5v/WFv/MCz///////9U/2M11GLeOHwhNZoAAAr/SURBVHicxVv3Y1RFEJ67JCSXkII5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",U4="data:image/png;base64,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",z4="/demo-waas-auth/assets/56-06b98271.png",br={MAINNET:1,ROPSTEN:3,RINKEBY:4,GOERLI:5,KOVAN:42,POLYGON:137,POLYGON_MUMBAI:80001,POLYGON_ZKEVM:1101,BSC:56,BSC_TESTNET:97,OPTIMISM:10,OPTIMISM_TESTNET:69,ARBITRUM:42161,ARBITRUM_GOERLI:421613,ARBITRUM_NOVA:42170,AVALANCHE:43114,AVALANCHE_TESTNET:43113,FANTOM:250,FANTOM_TESTNET:4002,GNOSIS:100,AURORA:1313161554,AURORA_TESTNET:1313161556,BASE_GOERLI:84531,HOMEVERSE_TESTNET:40875},Ure={[br.MAINNET]:yd,[br.ROPSTEN]:yd,[br.GOERLI]:yd,[br.KOVAN]:yd,[br.OPTIMISM]:B4,[br.OPTIMISM_TESTNET]:B4,[br.POLYGON]:j4,[br.POLYGON_MUMBAI]:j4,[br.POLYGON_ZKEVM]:$re,[br.ARBITRUM]:F4,[br.ARBITRUM_NOVA]:Fre,[br.ARBITRUM_GOERLI]:F4,[br.GNOSIS]:jre,[br.BSC]:z4,[br.BSC_TESTNET]:z4,[br.FANTOM]:$4,[br.FANTOM_TESTNET]:$4,[br.AVALANCHE]:U4,[br.AVALANCHE_TESTNET]:U4};function zre({onNetworkChange:t}){const[e,r]=p.useState(),[n,i]=p.useState([]);return p.useEffect(()=>{Ye.networkList().then(s=>{i(s),r(s[0]),t(s[0])})},[]),n.length===0?B.jsx(te,{marginY:"5",children:B.jsx(Pi,{})}):B.jsxs(te,{marginBottom:"4",children:[B.jsx(te,{marginBottom:"4",children:B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Network to use with requests:"})}),B.jsx(te,{children:B.jsx(_0,{name:"chainId",labelLocation:"top",onValueChange:s=>{const o=n==null?void 0:n.find(a=>a.name===s);o&&(r(o),t(o))},value:e==null?void 0:e.name,options:[...n.map(s=>({label:B.jsxs(te,{alignItems:"center",gap:"2",children:[B.jsx(DF,{src:Ure[s.id],size:"sm"}),B.jsx(Ce,{children:s.name})]}),value:String(s.name)}))]})})]})}function Vre(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState([]),[o,a]=p.useState(!1),[l,c]=p.useState(!1),[f,u]=p.useState();return p.useEffect(()=>{Ye.getAddress().then(d=>{e(d)}).catch(d=>{n(d.message)})},[]),p.useEffect(()=>{Ye.isSignedIn().then(d=>{d||ro.navigate("/login")})},[]),p.useEffect(()=>{const d=i.join("");d.length===6&&(c(!0),Ye.finishValidateSession(d))},[i]),p.useEffect(()=>{const d=Ye.onValidationRequired(()=>{a(!0),Ye.waitForSessionValid(6e5,4e3).then(v=>{console.log("isValid",v),s([]),a(!1),c(!1)})});return()=>{d.then(v=>v())}},[]),B.jsxs(B.Fragment,{children:[B.jsx(R8,{children:o&&B.jsx(qj,{children:B.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:B.jsxs(te,{flexDirection:"column",alignItems:"center",children:[B.jsx(Ce,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),B.jsx(g7,{value:i,digits:6,onChange:s}),B.jsx(te,{marginTop:"5",children:l&&B.jsx(Pi,{})})]})})})}),B.jsxs(te,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[B.jsx(te,{marginBottom:"10",children:B.jsx(x7,{})}),B.jsxs(te,{marginBottom:"5",flexDirection:"row",children:[B.jsxs(Ce,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),B.jsx(pr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await Ye.dropSession({strict:!1})}catch(d){console.warn(`Could not drop session: ${d.message}`)}yz(),ro.navigate("/login")}})]}),B.jsx(zs,{background:"buttonGlass"}),B.jsx(te,{marginBottom:"5",children:B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),B.jsx(te,{marginBottom:"5",children:B.jsx(Ce,{variant:"normal",color:"text100",fontWeight:"normal",children:t?B.jsx(te,{children:B.jsx(Ce,{children:t})}):B.jsx(Pi,{})})}),B.jsx(te,{marginBottom:"5",children:B.jsx(zre,{onNetworkChange:u})}),B.jsx(te,{children:r&&B.jsxs(Ce,{children:["Error fetching wallet address: ",r]})}),B.jsx(zs,{background:"buttonGlass"}),B.jsx(_re,{}),B.jsxs(Da,{marginY:"3",label:"Send native token transaction",children:[B.jsx(zs,{background:"buttonGlass"}),B.jsx(Rre,{network:f})]}),B.jsxs(Da,{marginY:"3",label:"Send ERC20 transaction",children:[B.jsx(zs,{background:"buttonGlass"}),B.jsx(Ore,{network:f})]}),B.jsxs(Da,{marginY:"3",label:"Send ERC1155 transaction",children:[B.jsx(zs,{background:"buttonGlass"}),B.jsx(Dre,{network:f})]}),B.jsxs(Da,{marginY:"3",label:"Sign a message",children:[B.jsx(zs,{background:"buttonGlass"}),B.jsx(Ire,{network:f})]}),B.jsxs(Da,{marginY:"3",label:"Call contracts",children:[B.jsx(zs,{background:"buttonGlass"}),B.jsx(Mre,{network:f})]}),B.jsxs(Da,{marginY:"3",label:"EOA Link",children:[B.jsx(zs,{background:"buttonGlass"}),B.jsx(Bre,{network:f,walletAddress:t})]})]})]})}const qre="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",V4="970987756660-6ibakd38eibf3cg9rq42hri7o0jn5va8.apps.googleusercontent.com",Hre="AQAAAAAAAEGv4rUgioUNUbcdNZlvOZE72JI",Wre="eyJwcm9qZWN0SWQiOjE2ODE1LCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI2N2V2NXVvc3ZxMzVmcGI2OXI3NnJoYnVoIiwicnBjU2VydmVyIjoiaHR0cHM6Ly93YWFzLnNlcXVlbmNlLmFwcCJ9",q4="AQAAAAAAAAK2JvvZhWqZ51riasWBftkrVXE",H4="eyJwcm9qZWN0SWQiOjY5NCwicnBjU2VydmVyIjoiaHR0cHM6Ly9kZXYtd2Fhcy5zZXF1ZW5jZS5hcHAiLCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI1NGF0bjV1cGk2M3FjNTlhMWVtM3ZiaHJzbiJ9";new wk("https://nodes.sequence.app/polygon");const o1=new URLSearchParams(window.location.search),Gre=o1.get("env")??"prod";let RP=o1.get("projectAccessKey")??Hre,_P=o1.get("waasConfigKey")??Wre,IP=o1.get("googleClientId")??qre;Gre==="dev"&&(console.log("Using dev environment"),console.log(`Project Access Key: ${q4}`),console.log(`Waas Config Key: ${H4}`),console.log(`Google Client ID: ${V4}`),RP=q4,_P=H4,IP=V4);const Ye=new Pre({network:"polygon",projectAccessKey:RP,waasConfigKey:_P}),ro=JU([{path:"/login",element:B.jsx(LK,{})},{path:"/",element:B.jsx(Vre,{})}]);ey.createRoot(document.getElementById("root")).render(B.jsx(Cr.StrictMode,{children:B.jsx($j,{children:B.jsx(fz,{clientId:IP,children:B.jsx(oz,{router:ro})})})})); diff --git a/assets/index-b48d9ac5.js b/assets/index-b48d9ac5.js deleted file mode 100644 index f3a5280..0000000 --- a/assets/index-b48d9ac5.js +++ /dev/null @@ -1,202 +0,0 @@ -function oA(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var aA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ss(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ih(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var lA={exports:{}},_h={},cA={exports:{}},je={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Uf=Symbol.for("react.element"),Nk=Symbol.for("react.portal"),Dk=Symbol.for("react.fragment"),Lk=Symbol.for("react.strict_mode"),jk=Symbol.for("react.profiler"),Bk=Symbol.for("react.provider"),$k=Symbol.for("react.context"),Fk=Symbol.for("react.forward_ref"),Uk=Symbol.for("react.suspense"),zk=Symbol.for("react.memo"),Vk=Symbol.for("react.lazy"),ub=Symbol.iterator;function qk(t){return t===null||typeof t!="object"?null:(t=ub&&t[ub]||t["@@iterator"],typeof t=="function"?t:null)}var fA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uA=Object.assign,dA={};function Pl(t,e,r){this.props=t,this.context=e,this.refs=dA,this.updater=r||fA}Pl.prototype.isReactComponent={};Pl.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Pl.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function hA(){}hA.prototype=Pl.prototype;function kp(t,e,r){this.props=t,this.context=e,this.refs=dA,this.updater=r||fA}var Pp=kp.prototype=new hA;Pp.constructor=kp;uA(Pp,Pl.prototype);Pp.isPureReactComponent=!0;var db=Array.isArray,vA=Object.prototype.hasOwnProperty,Rp={current:null},yA={key:!0,ref:!0,__self:!0,__source:!0};function pA(t,e,r){var n,i={},s=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)vA.call(e,n)&&!yA.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1>>1,m=R[C];if(0>>1;Ci(E,B))$i(V,E)?(R[C]=V,R[$]=B,C=$):(R[C]=E,R[F]=B,C=F);else if($i(V,B))R[C]=V,R[$]=B,C=$;else break e}}return N}function i(R,N){var B=R.sortIndex-N.sortIndex;return B!==0?B:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],f=1,u=null,d=3,v=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(R){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=R)n(c),N.sortIndex=N.expirationTime,e(l,N);else break;N=r(c)}}function P(R){if(y=!1,A(R),!g)if(r(l)!==null)g=!0,k(_);else{var N=r(c);N!==null&&I(P,N.startTime-R)}}function _(R,N){g=!1,y&&(y=!1,x(L),L=-1),v=!0;var B=d;try{for(A(N),u=r(l);u!==null&&(!(u.expirationTime>N)||R&&!Y());){var C=u.callback;if(typeof C=="function"){u.callback=null,d=u.priorityLevel;var m=C(u.expirationTime<=N);N=t.unstable_now(),typeof m=="function"?u.callback=m:u===r(l)&&n(l),A(N)}else n(l);u=r(l)}if(u!==null)var T=!0;else{var F=r(c);F!==null&&I(P,F.startTime-N),T=!1}return T}finally{u=null,d=B,v=!1}}var D=!1,M=null,L=-1,z=5,H=-1;function Y(){return!(t.unstable_now()-HR||125C?(R.sortIndex=B,e(c,R),r(l)===null&&R===r(c)&&(y?(x(L),L=-1):y=!0,I(P,B-C))):(R.sortIndex=m,e(l,R),g||v||(g=!0,k(_))),R},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(R){var N=d;return function(){var B=d;d=N;try{return R.apply(this,arguments)}finally{d=B}}}})(EA);wA.exports=EA;var tP=wA.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var rP=p,Sn=tP;function le(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rv=Object.prototype.hasOwnProperty,nP=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vb={},yb={};function iP(t){return Rv.call(yb,t)?!0:Rv.call(vb,t)?!1:nP.test(t)?yb[t]=!0:(vb[t]=!0,!1)}function sP(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function oP(t,e,r,n){if(e===null||typeof e>"u"||sP(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Zr(t,e,r,n,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Tr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Tr[t]=new Zr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Tr[e]=new Zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Tr[t]=new Zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Tr[t]=new Zr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Tr[t]=new Zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Tr[t]=new Zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Tr[t]=new Zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Tr[t]=new Zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Tr[t]=new Zr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Mp=/[\-:]([a-z])/g;function Ip(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Mp,Ip);Tr[e]=new Zr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Mp,Ip);Tr[e]=new Zr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Mp,Ip);Tr[e]=new Zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Tr[t]=new Zr(t,1,!1,t.toLowerCase(),null,!1,!1)});Tr.xlinkHref=new Zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Tr[t]=new Zr(t,1,!1,t.toLowerCase(),null,!0,!0)});function _p(t,e,r,n){var i=Tr.hasOwnProperty(e)?Tr[e]:null;(i!==null?i.type!==0:n||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{q0=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Pc(t):""}function aP(t){switch(t.tag){case 5:return Pc(t.type);case 16:return Pc("Lazy");case 13:return Pc("Suspense");case 19:return Pc("SuspenseList");case 0:case 2:case 15:return t=H0(t.type,!1),t;case 11:return t=H0(t.type.render,!1),t;case 1:return t=H0(t.type,!0),t;default:return""}}function _v(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ma:return"Fragment";case Ta:return"Portal";case Tv:return"Profiler";case Op:return"StrictMode";case Mv:return"Suspense";case Iv:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case CA:return(t.displayName||"Context")+".Consumer";case SA:return(t._context.displayName||"Context")+".Provider";case Np:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Dp:return e=t.displayName||null,e!==null?e:_v(t.type)||"Memo";case Bs:e=t._payload,t=t._init;try{return _v(t(e))}catch{}}return null}function lP(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _v(e);case 8:return e===Op?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function oo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function PA(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cP(t){var e=PA(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function fu(t){t._valueTracker||(t._valueTracker=cP(t))}function RA(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=PA(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Sd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ov(t,e){var r=e.checked;return Ft({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function mb(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=oo(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function TA(t,e){e=e.checked,e!=null&&_p(t,"checked",e,!1)}function Nv(t,e){TA(t,e);var r=oo(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Dv(t,e.type,r):e.hasOwnProperty("defaultValue")&&Dv(t,e.type,oo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function gb(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Dv(t,e,r){(e!=="number"||Sd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Rc=Array.isArray;function Ka(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=uu.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function nf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Dc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fP=["Webkit","ms","Moz","O"];Object.keys(Dc).forEach(function(t){fP.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Dc[e]=Dc[t]})});function OA(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Dc.hasOwnProperty(t)&&Dc[t]?(""+e).trim():e+"px"}function NA(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=OA(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var uP=Ft({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bv(t,e){if(e){if(uP[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(le(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(le(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(le(61))}if(e.style!=null&&typeof e.style!="object")throw Error(le(62))}}function $v(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fv=null;function Lp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Uv=null,Qa=null,Ya=null;function wb(t){if(t=qf(t)){if(typeof Uv!="function")throw Error(le(280));var e=t.stateNode;e&&(e=jh(e),Uv(t.stateNode,t.type,e))}}function DA(t){Qa?Ya?Ya.push(t):Ya=[t]:Qa=t}function LA(){if(Qa){var t=Qa,e=Ya;if(Ya=Qa=null,wb(t),e)for(t=0;t>>=0,t===0?32:31-(EP(t)/AP|0)|0}var du=64,hu=4194304;function Tc(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Rd(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=Tc(a):(s&=o,s!==0&&(n=Tc(s)))}else o=r&~i,o!==0?n=Tc(o):s!==0&&(n=Tc(s));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function zf(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ui(e),t[e]=r}function PP(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=jc),Mb=String.fromCharCode(32),Ib=!1;function r6(t,e){switch(t){case"keyup":return tR.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function n6(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ia=!1;function nR(t,e){switch(t){case"compositionend":return n6(e);case"keypress":return e.which!==32?null:(Ib=!0,Mb);case"textInput":return t=e.data,t===Mb&&Ib?null:t;default:return null}}function iR(t,e){if(Ia)return t==="compositionend"||!qp&&r6(t,e)?(t=e6(),Zu=Up=qs=null,Ia=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Db(r)}}function a6(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?a6(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function l6(){for(var t=window,e=Sd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Sd(t.document)}return e}function Hp(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function hR(t){var e=l6(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&a6(r.ownerDocument.documentElement,r)){if(n!==null&&Hp(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!t.extend&&s>n&&(i=n,n=s,s=i),i=Lb(r,s);var o=Lb(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,_a=null,Gv=null,$c=null,Kv=!1;function jb(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Kv||_a==null||_a!==Sd(n)||(n=_a,"selectionStart"in n&&Hp(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),$c&&ff($c,n)||($c=n,n=Id(Gv,"onSelect"),0Da||(t.current=ey[Da],ey[Da]=null,Da--)}function St(t,e){Da++,ey[Da]=t.current,t.current=e}var ao={},Vr=xo(ao),sn=xo(!1),Qo=ao;function fl(t,e){var r=t.type.contextTypes;if(!r)return ao;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=e[s];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function on(t){return t=t.childContextTypes,t!=null}function Od(){Mt(sn),Mt(Vr)}function qb(t,e,r){if(Vr.current!==ao)throw Error(le(168));St(Vr,e),St(sn,r)}function m6(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(le(108,lP(t)||"Unknown",i));return Ft({},r,n)}function Nd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ao,Qo=Vr.current,St(Vr,t),St(sn,sn.current),!0}function Hb(t,e,r){var n=t.stateNode;if(!n)throw Error(le(169));r?(t=m6(t,e,Qo),n.__reactInternalMemoizedMergedChildContext=t,Mt(sn),Mt(Vr),St(Vr,t)):Mt(sn),St(sn,r)}var rs=null,Bh=!1,s1=!1;function g6(t){rs===null?rs=[t]:rs.push(t)}function CR(t){Bh=!0,g6(t)}function bo(){if(!s1&&rs!==null){s1=!0;var t=0,e=ct;try{var r=rs;for(ct=1;t>=o,i-=o,os=1<<32-ui(e)+i|r<L?(z=M,M=null):z=M.sibling;var H=d(x,M,A[L],P);if(H===null){M===null&&(M=z);break}t&&M&&H.alternate===null&&e(x,M),b=s(H,b,L),D===null?_=H:D.sibling=H,D=H,M=z}if(L===A.length)return r(x,M),Ot&&Po(x,L),_;if(M===null){for(;LL?(z=M,M=null):z=M.sibling;var Y=d(x,M,H.value,P);if(Y===null){M===null&&(M=z);break}t&&M&&Y.alternate===null&&e(x,M),b=s(Y,b,L),D===null?_=Y:D.sibling=Y,D=Y,M=z}if(H.done)return r(x,M),Ot&&Po(x,L),_;if(M===null){for(;!H.done;L++,H=A.next())H=u(x,H.value,P),H!==null&&(b=s(H,b,L),D===null?_=H:D.sibling=H,D=H);return Ot&&Po(x,L),_}for(M=n(x,M);!H.done;L++,H=A.next())H=v(M,x,L,H.value,P),H!==null&&(t&&H.alternate!==null&&M.delete(H.key===null?L:H.key),b=s(H,b,L),D===null?_=H:D.sibling=H,D=H);return t&&M.forEach(function(Z){return e(x,Z)}),Ot&&Po(x,L),_}function w(x,b,A,P){if(typeof A=="object"&&A!==null&&A.type===Ma&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case cu:e:{for(var _=A.key,D=b;D!==null;){if(D.key===_){if(_=A.type,_===Ma){if(D.tag===7){r(x,D.sibling),b=i(D,A.props.children),b.return=x,x=b;break e}}else if(D.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Bs&&Kb(_)===D.type){r(x,D.sibling),b=i(D,A.props),b.ref=Zl(x,D,A),b.return=x,x=b;break e}r(x,D);break}else e(x,D);D=D.sibling}A.type===Ma?(b=Vo(A.props.children,x.mode,P,A.key),b.return=x,x=b):(P=ad(A.type,A.key,A.props,null,x.mode,P),P.ref=Zl(x,b,A),P.return=x,x=P)}return o(x);case Ta:e:{for(D=A.key;b!==null;){if(b.key===D)if(b.tag===4&&b.stateNode.containerInfo===A.containerInfo&&b.stateNode.implementation===A.implementation){r(x,b.sibling),b=i(b,A.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else e(x,b);b=b.sibling}b=h1(A,x.mode,P),b.return=x,x=b}return o(x);case Bs:return D=A._init,w(x,b,D(A._payload),P)}if(Rc(A))return g(x,b,A,P);if(Kl(A))return y(x,b,A,P);bu(x,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,b!==null&&b.tag===6?(r(x,b.sibling),b=i(b,A),b.return=x,x=b):(r(x,b),b=d1(A,x.mode,P),b.return=x,x=b),o(x)):r(x,b)}return w}var dl=E6(!0),A6=E6(!1),jd=xo(null),Bd=null,Ba=null,Qp=null;function Yp(){Qp=Ba=Bd=null}function Jp(t){var e=jd.current;Mt(jd),t._currentValue=e}function ny(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Xa(t,e){Bd=t,Qp=Ba=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(nn=!0),t.firstContext=null)}function Vn(t){var e=t._currentValue;if(Qp!==t)if(t={context:t,memoizedValue:e,next:null},Ba===null){if(Bd===null)throw Error(le(308));Ba=t,Bd.dependencies={lanes:0,firstContext:t}}else Ba=Ba.next=t;return e}var No=null;function Xp(t){No===null?No=[t]:No.push(t)}function S6(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,Xp(e)):(r.next=i.next,i.next=r),e.interleaved=r,ps(t,n)}function ps(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var $s=!1;function Zp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function C6(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function fs(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Js(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,We&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,ps(t,r)}return i=n.interleaved,i===null?(e.next=e,Xp(n)):(e.next=i.next,i.next=e),n.interleaved=e,ps(t,r)}function td(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Bp(t,r)}}function Qb(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function $d(t,e,r,n){var i=t.updateQueue;$s=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var f=t.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(s!==null){var u=i.baseState;o=0,f=c=l=null,a=s;do{var d=a.lane,v=a.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=t,y=a;switch(d=e,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){u=g.call(v,u,d);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(v,u,d):g,d==null)break e;u=Ft({},u,d);break e;case 2:$s=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else v={eventTime:v,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=v,l=u):f=f.next=v,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(f===null&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Xo|=o,t.lanes=o,t.memoizedState=u}}function Yb(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=a1.transition;a1.transition={};try{t(!1),e()}finally{ct=r,a1.transition=n}}function z6(){return qn().memoizedState}function TR(t,e,r){var n=Zs(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},V6(t))q6(e,r);else if(r=S6(t,e,r,n),r!==null){var i=Jr();di(r,t,n,i),H6(r,e,n)}}function MR(t,e,r){var n=Zs(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(V6(t))q6(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,hi(a,o)){var l=e.interleaved;l===null?(i.next=i,Xp(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=S6(t,e,i,n),r!==null&&(i=Jr(),di(r,t,n,i),H6(r,e,n))}}function V6(t){var e=t.alternate;return t===$t||e!==null&&e===$t}function q6(t,e){Fc=Ud=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function H6(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Bp(t,r)}}var zd={readContext:Vn,useCallback:Dr,useContext:Dr,useEffect:Dr,useImperativeHandle:Dr,useInsertionEffect:Dr,useLayoutEffect:Dr,useMemo:Dr,useReducer:Dr,useRef:Dr,useState:Dr,useDebugValue:Dr,useDeferredValue:Dr,useTransition:Dr,useMutableSource:Dr,useSyncExternalStore:Dr,useId:Dr,unstable_isNewReconciler:!1},IR={readContext:Vn,useCallback:function(t,e){return Ci().memoizedState=[t,e===void 0?null:e],t},useContext:Vn,useEffect:Xb,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,nd(4194308,4,j6.bind(null,e,t),r)},useLayoutEffect:function(t,e){return nd(4194308,4,t,e)},useInsertionEffect:function(t,e){return nd(4,2,t,e)},useMemo:function(t,e){var r=Ci();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ci();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=TR.bind(null,$t,t),[n.memoizedState,t]},useRef:function(t){var e=Ci();return t={current:t},e.memoizedState=t},useState:Jb,useDebugValue:am,useDeferredValue:function(t){return Ci().memoizedState=t},useTransition:function(){var t=Jb(!1),e=t[0];return t=RR.bind(null,t[1]),Ci().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=$t,i=Ci();if(Ot){if(r===void 0)throw Error(le(407));r=r()}else{if(r=e(),Er===null)throw Error(le(349));Jo&30||T6(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,Xb(I6.bind(null,n,s,t),[t]),n.flags|=2048,gf(9,M6.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=Ci(),e=Er.identifierPrefix;if(Ot){var r=as,n=os;r=(n&~(1<<32-ui(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=pf++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[Ri]=e,t[hf]=n,t5(t,e,!1,!1),e.stateNode=t;e:{switch(o=$v(r,n),r){case"dialog":Tt("cancel",t),Tt("close",t),i=n;break;case"iframe":case"object":case"embed":Tt("load",t),i=n;break;case"video":case"audio":for(i=0;iyl&&(e.flags|=128,n=!0,ec(s,!1),e.lanes=4194304)}else{if(!n)if(t=Fd(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),ec(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ot)return Lr(e),null}else 2*nr()-s.renderingStartTime>yl&&r!==1073741824&&(e.flags|=128,n=!0,ec(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(r=s.last,r!==null?r.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=nr(),e.sibling=null,r=jt.current,St(jt,n?r&1|2:r&1),e):(Lr(e),null);case 22:case 23:return hm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?pn&1073741824&&(Lr(e),e.subtreeFlags&6&&(e.flags|=8192)):Lr(e),null;case 24:return null;case 25:return null}throw Error(le(156,e.tag))}function $R(t,e){switch(Gp(e),e.tag){case 1:return on(e.type)&&Od(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hl(),Mt(sn),Mt(Vr),rm(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return tm(e),null;case 13:if(Mt(jt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(le(340));ul()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Mt(jt),null;case 4:return hl(),null;case 10:return Jp(e.type._context),null;case 22:case 23:return hm(),null;case 24:return null;default:return null}}var Eu=!1,Br=!1,FR=typeof WeakSet=="function"?WeakSet:Set,xe=null;function $a(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Wt(t,e,n)}else r.current=null}function dy(t,e,r){try{r()}catch(n){Wt(t,e,n)}}var c2=!1;function UR(t,e){if(Qv=Td,t=l6(),Hp(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,f=0,u=t,d=null;t:for(;;){for(var v;u!==r||i!==0&&u.nodeType!==3||(a=o+i),u!==s||n!==0&&u.nodeType!==3||(l=o+n),u.nodeType===3&&(o+=u.nodeValue.length),(v=u.firstChild)!==null;)d=u,u=v;for(;;){if(u===t)break t;if(d===r&&++c===i&&(a=o),d===s&&++f===n&&(l=o),(v=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=v}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yv={focusedElem:t,selectionRange:r},Td=!1,xe=e;xe!==null;)if(e=xe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,xe=t;else for(;xe!==null;){e=xe;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,x=e.stateNode,b=x.getSnapshotBeforeUpdate(e.elementType===e.type?y:si(e.type,y),w);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(le(163))}}catch(P){Wt(e,e.return,P)}if(t=e.sibling,t!==null){t.return=e.return,xe=t;break}xe=e.return}return g=c2,c2=!1,g}function Uc(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&dy(e,r,s)}i=i.next}while(i!==n)}}function Uh(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function hy(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function i5(t){var e=t.alternate;e!==null&&(t.alternate=null,i5(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ri],delete e[hf],delete e[Zv],delete e[AR],delete e[SR])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function s5(t){return t.tag===5||t.tag===3||t.tag===4}function f2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||s5(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function vy(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=_d));else if(n!==4&&(t=t.child,t!==null))for(vy(t,e,r),t=t.sibling;t!==null;)vy(t,e,r),t=t.sibling}function yy(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(yy(t,e,r),t=t.sibling;t!==null;)yy(t,e,r),t=t.sibling}var kr=null,ai=!1;function Ts(t,e,r){for(r=r.child;r!==null;)o5(t,e,r),r=r.sibling}function o5(t,e,r){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(Oh,r)}catch{}switch(r.tag){case 5:Br||$a(r,e);case 6:var n=kr,i=ai;kr=null,Ts(t,e,r),kr=n,ai=i,kr!==null&&(ai?(t=kr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):kr.removeChild(r.stateNode));break;case 18:kr!==null&&(ai?(t=kr,r=r.stateNode,t.nodeType===8?i1(t.parentNode,r):t.nodeType===1&&i1(t,r),lf(t)):i1(kr,r.stateNode));break;case 4:n=kr,i=ai,kr=r.stateNode.containerInfo,ai=!0,Ts(t,e,r),kr=n,ai=i;break;case 0:case 11:case 14:case 15:if(!Br&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&dy(r,e,o),i=i.next}while(i!==n)}Ts(t,e,r);break;case 1:if(!Br&&($a(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Wt(r,e,a)}Ts(t,e,r);break;case 21:Ts(t,e,r);break;case 22:r.mode&1?(Br=(n=Br)||r.memoizedState!==null,Ts(t,e,r),Br=n):Ts(t,e,r);break;default:Ts(t,e,r)}}function u2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new FR),e.forEach(function(n){var i=YR.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Zn(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~s}if(n=i,n=nr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VR(n/1960))-n,10t?16:t,Hs===null)var n=!1;else{if(t=Hs,Hs=null,Hd=0,We&6)throw Error(le(331));var i=We;for(We|=4,xe=t.current;xe!==null;){var s=xe,o=s.child;if(xe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lnr()-um?zo(t,0):fm|=r),an(t,e)}function v5(t,e){e===0&&(t.mode&1?(e=hu,hu<<=1,!(hu&130023424)&&(hu=4194304)):e=1);var r=Jr();t=ps(t,e),t!==null&&(zf(t,e,r),an(t,r))}function QR(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),v5(t,r)}function YR(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(le(314))}n!==null&&n.delete(e),v5(t,r)}var y5;y5=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||sn.current)nn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return nn=!1,jR(t,e,r);nn=!!(t.flags&131072)}else nn=!1,Ot&&e.flags&1048576&&x6(e,Ld,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;id(t,e),t=e.pendingProps;var i=fl(e,Vr.current);Xa(e,r),i=im(null,e,n,t,i,r);var s=sm();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,on(n)?(s=!0,Nd(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zp(e),i.updater=Fh,e.stateNode=i,i._reactInternals=e,sy(e,n,t,r),e=ly(null,e,n,!0,s,r)):(e.tag=0,Ot&&s&&Wp(e),Qr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(id(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=XR(n),t=si(n,t),i){case 0:e=ay(null,e,n,t,r);break e;case 1:e=o2(null,e,n,t,r);break e;case 11:e=i2(null,e,n,t,r);break e;case 14:e=s2(null,e,n,si(n.type,t),r);break e}throw Error(le(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),ay(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),o2(t,e,n,i,r);case 3:e:{if(X6(e),t===null)throw Error(le(387));n=e.pendingProps,s=e.memoizedState,i=s.element,C6(t,e),$d(e,n,null,r);var o=e.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=vl(Error(le(423)),e),e=a2(t,e,n,r,i);break e}else if(n!==i){i=vl(Error(le(424)),e),e=a2(t,e,n,r,i);break e}else for(wn=Ys(e.stateNode.containerInfo.firstChild),En=e,Ot=!0,ci=null,r=A6(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ul(),n===i){e=ms(t,e,r);break e}Qr(t,e,n,r)}e=e.child}return e;case 5:return k6(e),t===null&&ry(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Jv(n,i)?o=null:s!==null&&Jv(n,s)&&(e.flags|=32),J6(t,e),Qr(t,e,o,r),e.child;case 6:return t===null&&ry(e),null;case 13:return Z6(t,e,r);case 4:return em(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=dl(e,null,n,r):Qr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),i2(t,e,n,i,r);case 7:return Qr(t,e,e.pendingProps,r),e.child;case 8:return Qr(t,e,e.pendingProps.children,r),e.child;case 12:return Qr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,St(jd,n._currentValue),n._currentValue=o,s!==null)if(hi(s.value,o)){if(s.children===i.children&&!sn.current){e=ms(t,e,r);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=fs(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),ny(s.return,r,e),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(le(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),ny(o,r,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Qr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,Xa(e,r),i=Vn(i),n=n(i),e.flags|=1,Qr(t,e,n,r),e.child;case 14:return n=e.type,i=si(n,e.pendingProps),i=si(n.type,i),s2(t,e,n,i,r);case 15:return Q6(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),id(t,e),e.tag=1,on(n)?(t=!0,Nd(e)):t=!1,Xa(e,r),W6(e,n,i),sy(e,n,i,r),ly(null,e,n,!0,t,r);case 19:return e5(t,e,r);case 22:return Y6(t,e,r)}throw Error(le(156,e.tag))};function p5(t,e){return VA(t,e)}function JR(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(t,e,r,n){return new JR(t,e,r,n)}function ym(t){return t=t.prototype,!(!t||!t.isReactComponent)}function XR(t){if(typeof t=="function")return ym(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Np)return 11;if(t===Dp)return 14}return 2}function eo(t,e){var r=t.alternate;return r===null?(r=Un(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function ad(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")ym(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ma:return Vo(r.children,i,s,e);case Op:o=8,i|=8;break;case Tv:return t=Un(12,r,e,i|2),t.elementType=Tv,t.lanes=s,t;case Mv:return t=Un(13,r,e,i),t.elementType=Mv,t.lanes=s,t;case Iv:return t=Un(19,r,e,i),t.elementType=Iv,t.lanes=s,t;case kA:return Vh(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case SA:o=10;break e;case CA:o=9;break e;case Np:o=11;break e;case Dp:o=14;break e;case Bs:o=16,n=null;break e}throw Error(le(130,t==null?t:typeof t,""))}return e=Un(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Vo(t,e,r,n){return t=Un(7,t,n,e),t.lanes=r,t}function Vh(t,e,r,n){return t=Un(22,t,n,e),t.elementType=kA,t.lanes=r,t.stateNode={isHidden:!1},t}function d1(t,e,r){return t=Un(6,t,null,e),t.lanes=r,t}function h1(t,e,r){return e=Un(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ZR(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=G0(0),this.expirationTimes=G0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G0(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pm(t,e,r,n,i,s,o,a,l){return t=new ZR(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Un(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zp(s),t}function eT(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b5)}catch(t){console.error(t)}}b5(),bA.exports=Rn;var ks=bA.exports;const w5=Ss(ks),sT=oA({__proto__:null,default:w5},[ks]);var x2=ks;Pv.createRoot=x2.createRoot,Pv.hydrateRoot=x2.hydrateRoot;const E5=p.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Kh=p.createContext({}),Qh=p.createContext(null),Yh=typeof document<"u",bm=Yh?p.useLayoutEffect:p.useEffect,A5=p.createContext({strict:!1}),wm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),oT="framerAppearId",S5="data-"+wm(oT);function aT(t,e,r,n){const{visualElement:i}=p.useContext(Kh),s=p.useContext(A5),o=p.useContext(Qh),a=p.useContext(E5).reducedMotion,l=p.useRef();n=n||s.renderer,!l.current&&n&&(l.current=n(t,{visualState:e,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;p.useInsertionEffect(()=>{c&&c.update(r,o)});const f=p.useRef(!!(r[S5]&&!window.HandoffComplete));return bm(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),p.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),c}function Ua(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function lT(t,e,r){return p.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):Ua(r)&&(r.current=n))},[e])}function bf(t){return typeof t=="string"||Array.isArray(t)}function Jh(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Em=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Am=["initial",...Em];function Xh(t){return Jh(t.animate)||Am.some(e=>bf(t[e]))}function C5(t){return!!(Xh(t)||t.variants)}function cT(t,e){if(Xh(t)){const{initial:r,animate:n}=t;return{initial:r===!1||bf(r)?r:void 0,animate:bf(n)?n:void 0}}return t.inherit!==!1?e:{}}function fT(t){const{initial:e,animate:r}=cT(t,p.useContext(Kh));return p.useMemo(()=>({initial:e,animate:r}),[b2(e),b2(r)])}function b2(t){return Array.isArray(t)?t.join(" "):t}const w2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},wf={};for(const t in w2)wf[t]={isEnabled:e=>w2[t].some(r=>!!e[r])};function uT(t){for(const e in t)wf[e]={...wf[e],...t[e]}}const Sm=p.createContext({}),k5=p.createContext({}),dT=Symbol.for("motionComponentSymbol");function hT({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&uT(t);function s(a,l){let c;const f={...p.useContext(E5),...a,layoutId:vT(a)},{isStatic:u}=f,d=fT(a),v=n(a,u);if(!u&&Yh){d.visualElement=aT(i,v,f,e);const g=p.useContext(k5),y=p.useContext(A5).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,t,g))}return p.createElement(Kh.Provider,{value:d},c&&d.visualElement?p.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,lT(v,d.visualElement,l),v,u,d.visualElement))}const o=p.forwardRef(s);return o[dT]=i,o}function vT({layoutId:t}){const e=p.useContext(Sm).id;return e&&t!==void 0?e+"-"+t:t}function yT(t){function e(n,i={}){return hT(t(n,i))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,i)=>(r.has(i)||r.set(i,e(i)),r.get(i))})}const pT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cm(t){return typeof t!="string"||t.includes("-")?!1:!!(pT.indexOf(t)>-1||/[A-Z]/.test(t))}const Kd={};function mT(t){Object.assign(Kd,t)}const Wf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ua=new Set(Wf);function P5(t,{layout:e,layoutId:r}){return ua.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Kd[t]||t==="opacity")}const ln=t=>!!(t&&t.getVelocity),gT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xT=Wf.length;function bT(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),T5=R5("--"),by=R5("var(--"),wT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,ET=(t,e)=>e&&typeof t=="number"?e.transform(t):t,lo=(t,e,r)=>Math.min(Math.max(r,t),e),da={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qc={...da,transform:t=>lo(0,1,t)},Cu={...da,default:1},Hc=t=>Math.round(t*1e5)/1e5,Zh=/(-)?([\d]*\.?[\d])+/g,M5=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,AT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gf(t){return typeof t=="string"}const Kf=t=>({test:e=>Gf(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ns=Kf("deg"),Bi=Kf("%"),Ee=Kf("px"),ST=Kf("vh"),CT=Kf("vw"),E2={...Bi,parse:t=>Bi.parse(t)/100,transform:t=>Bi.transform(t*100)},A2={...da,transform:Math.round},I5={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,size:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,rotate:Ns,rotateX:Ns,rotateY:Ns,rotateZ:Ns,scale:Cu,scaleX:Cu,scaleY:Cu,scaleZ:Cu,skew:Ns,skewX:Ns,skewY:Ns,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:qc,originX:E2,originY:E2,originZ:Ee,zIndex:A2,fillOpacity:qc,strokeOpacity:qc,numOctaves:A2};function km(t,e,r,n){const{style:i,vars:s,transform:o,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const d=e[u];if(T5(u)){s[u]=d;continue}const v=I5[u],g=ET(d,v);if(ua.has(u)){if(l=!0,o[u]=g,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=g):i[u]=g}if(e.transform||(l||n?i.transform=bT(t.transform,r,f,n):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:v=0}=a;i.transformOrigin=`${u} ${d} ${v}`}}const Pm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _5(t,e,r){for(const n in e)!ln(e[n])&&!P5(n,r)&&(t[n]=e[n])}function kT({transformTemplate:t},e,r){return p.useMemo(()=>{const n=Pm();return km(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function PT(t,e,r){const n=t.style||{},i={};return _5(i,n,t),Object.assign(i,kT(t,e,r)),t.transformValues?t.transformValues(i):i}function RT(t,e,r){const n={},i=PT(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const TT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Qd(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||TT.has(t)}let O5=t=>!Qd(t);function MT(t){t&&(O5=e=>e.startsWith("on")?!Qd(e):t(e))}try{MT(require("@emotion/is-prop-valid").default)}catch{}function IT(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(O5(i)||r===!0&&Qd(i)||!e&&!Qd(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function S2(t,e,r){return typeof t=="string"?t:Ee.transform(e+r*t)}function _T(t,e,r){const n=S2(e,t.x,t.width),i=S2(r,t.y,t.height);return`${n} ${i}`}const OT={offset:"stroke-dashoffset",array:"stroke-dasharray"},NT={offset:"strokeDashoffset",array:"strokeDasharray"};function DT(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?OT:NT;t[s.offset]=Ee.transform(-n);const o=Ee.transform(e),a=Ee.transform(r);t[s.array]=`${o} ${a}`}function Rm(t,{attrX:e,attrY:r,attrScale:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},f,u,d){if(km(t,c,f,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:g,dimensions:y}=t;v.transform&&(y&&(g.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=_T(y,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(v.x=e),r!==void 0&&(v.y=r),n!==void 0&&(v.scale=n),o!==void 0&&DT(v,o,a,l,!1)}const N5=()=>({...Pm(),attrs:{}}),Tm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function LT(t,e,r,n){const i=p.useMemo(()=>{const s=N5();return Rm(s,e,{enableHardwareAcceleration:!1},Tm(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};_5(s,t.style,t),i.style={...s,...i.style}}return i}function jT(t=!1){return(r,n,i,{latestValues:s},o)=>{const l=(Cm(r)?LT:RT)(n,s,o,r),f={...IT(n,typeof r=="string",t),...l,ref:i},{children:u}=n,d=p.useMemo(()=>ln(u)?u.get():u,[u]);return p.createElement(r,{...f,children:d})}}function D5(t,{style:e,vars:r},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const s in r)t.style.setProperty(s,r[s])}const L5=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function j5(t,e,r,n){D5(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(L5.has(i)?i:wm(i),e.attrs[i])}function Mm(t,e){const{style:r}=t,n={};for(const i in r)(ln(r[i])||e.style&&ln(e.style[i])||P5(i,t))&&(n[i]=r[i]);return n}function B5(t,e){const r=Mm(t,e);for(const n in t)if(ln(t[n])||ln(e[n])){const i=Wf.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=t[n]}return r}function Im(t,e,r,n={},i={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),e}function $5(t){const e=p.useRef(null);return e.current===null&&(e.current=t()),e.current}const Yd=t=>Array.isArray(t),BT=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$T=t=>Yd(t)?t[t.length-1]||0:t;function ld(t){const e=ln(t)?t.get():t;return BT(e)?e.toValue():e}function FT({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:UT(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const F5=t=>(e,r)=>{const n=p.useContext(Kh),i=p.useContext(Qh),s=()=>FT(t,e,n,i);return r?s():$5(s)};function UT(t,e,r,n){const i={},s=n(t,{});for(const d in s)i[d]=ld(s[d]);let{initial:o,animate:a}=t;const l=Xh(t),c=C5(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const u=f?a:o;return u&&typeof u!="boolean"&&!Jh(u)&&(Array.isArray(u)?u:[u]).forEach(v=>{const g=Im(t,v);if(!g)return;const{transitionEnd:y,transition:w,...x}=g;for(const b in x){let A=x[b];if(Array.isArray(A)){const P=f?A.length-1:0;A=A[P]}A!==null&&(i[b]=A)}for(const b in y)i[b]=y[b]}),i}const Gt=t=>t;class C2{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const r=this.order.indexOf(e);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function zT(t){let e=new C2,r=new C2,n=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,d=u?e:r;return c&&o.add(l),d.add(l)&&u&&i&&(n=e.order.length),l},cancel:l=>{r.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.clear(),n=e.order.length,n)for(let c=0;c(u[d]=zT(()=>r=!0),u),{}),o=u=>s[u].process(i),a=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,VT),1),i.timestamp=u,i.isProcessing=!0,ku.forEach(o),i.isProcessing=!1,r&&e&&(n=!1,t(a))},l=()=>{r=!0,n=!0,i.isProcessing||t(a)};return{schedule:ku.reduce((u,d)=>{const v=s[d];return u[d]=(g,y=!1,w=!1)=>(r||l(),v.schedule(g,y,w)),u},{}),cancel:u=>ku.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:Ct,cancel:gs,state:jr,steps:v1}=qT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0),HT={useVisualState:F5({scrapeMotionValuesFromProps:B5,createRenderState:N5,onMount:(t,e,{renderState:r,latestValues:n})=>{Ct.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ct.render(()=>{Rm(r,n,{enableHardwareAcceleration:!1},Tm(e.tagName),t.transformTemplate),j5(e,r)})}})},WT={useVisualState:F5({scrapeMotionValuesFromProps:Mm,createRenderState:Pm})};function GT(t,{forwardMotionProps:e=!1},r,n){return{...Cm(t)?HT:WT,preloadedFeatures:r,useRender:jT(e),createVisualElement:n,Component:t}}function ls(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const U5=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function e0(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const KT=t=>e=>U5(e)&&t(e,e0(e));function us(t,e,r,n){return ls(t,e,KT(r),n)}const QT=(t,e)=>r=>e(t(r)),to=(...t)=>t.reduce(QT);function z5(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const k2=z5("dragHorizontal"),P2=z5("dragVertical");function V5(t){let e=!1;if(t==="y")e=P2();else if(t==="x")e=k2();else{const r=k2(),n=P2();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function q5(){const t=V5(!0);return t?(t(),!1):!0}class wo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function R2(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.pointerType==="touch"||q5())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&Ct.update(()=>a[n](s,o))};return us(t.current,r,i,{passive:!t.getProps()[n]})}class YT extends wo{mount(){this.unmount=to(R2(this.node,!0),R2(this.node,!1))}unmount(){}}class JT extends wo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=to(ls(this.node.current,"focus",()=>this.onFocus()),ls(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const H5=(t,e)=>e?t===e?!0:H5(t,e.parentElement):!1;function y1(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,e0(r))}class XT extends wo{constructor(){super(...arguments),this.removeStartListeners=Gt,this.removeEndListeners=Gt,this.removeAccessibleListeners=Gt,this.startPointerPress=(e,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),s=us(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();Ct.update(()=>{!u&&!H5(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=us(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=to(s,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||y1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&Ct.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ls(this.node.current,"keyup",o),y1("down",(a,l)=>{this.startPress(a,l)})},r=ls(this.node.current,"keydown",e),n=()=>{this.isPressing&&y1("cancel",(s,o)=>this.cancelPress(s,o))},i=ls(this.node.current,"blur",n);this.removeAccessibleListeners=to(r,i)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ct.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!q5()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ct.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=us(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ls(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=to(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const wy=new WeakMap,p1=new WeakMap,ZT=t=>{const e=wy.get(t.target);e&&e(t)},eM=t=>{t.forEach(ZT)};function tM({root:t,...e}){const r=t||document;p1.has(r)||p1.set(r,{});const n=p1.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(eM,{root:t,...e})),n[i]}function rM(t,e,r){const n=tM(e);return wy.set(t,r),n.observe(t),()=>{wy.delete(t),n.unobserve(t)}}const nM={some:0,all:1};class iM extends wo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:nM[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=c?f:u;d&&d(l)};return rM(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(sM(e,r))&&this.startObserver()}unmount(){}}function sM({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const oM={inView:{Feature:iM},tap:{Feature:XT},focus:{Feature:JT},hover:{Feature:YT}};function W5(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;ne[n]=r.get()),e}function lM(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function t0(t,e,r){const n=t.getProps();return Im(n,e,r!==void 0?r:n.custom,aM(t),lM(t))}let cM=Gt,_m=Gt;const ro=t=>t*1e3,ds=t=>t/1e3,fM={current:!1},G5=t=>Array.isArray(t)&&typeof t[0]=="number";function K5(t){return!!(!t||typeof t=="string"&&Q5[t]||G5(t)||Array.isArray(t)&&t.every(K5))}const Ic=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,Q5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ic([0,.65,.55,1]),circOut:Ic([.55,0,1,.45]),backIn:Ic([.31,.01,.66,-.59]),backOut:Ic([.33,1.53,.69,.99])};function Y5(t){if(t)return G5(t)?Ic(t):Array.isArray(t)?t.map(Y5):Q5[t]}function uM(t,e,r,{delay:n=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:r};l&&(c.offset=l);const f=Y5(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function dM(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const J5=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,hM=1e-7,vM=12;function yM(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=J5(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>hM&&++ayM(s,0,1,t,r);return s=>s===0||s===1?s:J5(i(s),e,n)}const pM=Qf(.42,0,1,1),mM=Qf(0,0,.58,1),X5=Qf(.42,0,.58,1),gM=t=>Array.isArray(t)&&typeof t[0]!="number",Z5=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eS=t=>e=>1-t(1-e),Om=t=>1-Math.sin(Math.acos(t)),tS=eS(Om),xM=Z5(Om),rS=Qf(.33,1.53,.69,.99),Nm=eS(rS),bM=Z5(Nm),wM=t=>(t*=2)<1?.5*Nm(t):.5*(2-Math.pow(2,-10*(t-1))),EM={linear:Gt,easeIn:pM,easeInOut:X5,easeOut:mM,circIn:Om,circInOut:xM,circOut:tS,backIn:Nm,backInOut:bM,backOut:rS,anticipate:wM},T2=t=>{if(Array.isArray(t)){_m(t.length===4);const[e,r,n,i]=t;return Qf(e,r,n,i)}else if(typeof t=="string")return EM[t];return t},Dm=(t,e)=>r=>!!(Gf(r)&&AT.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),nS=(t,e,r)=>n=>{if(!Gf(n))return n;const[i,s,o,a]=n.match(Zh);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},AM=t=>lo(0,255,t),m1={...da,transform:t=>Math.round(AM(t))},Lo={test:Dm("rgb","red"),parse:nS("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+m1.transform(t)+", "+m1.transform(e)+", "+m1.transform(r)+", "+Hc(qc.transform(n))+")"};function SM(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Ey={test:Dm("#"),parse:SM,transform:Lo.transform},za={test:Dm("hsl","hue"),parse:nS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Bi.transform(Hc(e))+", "+Bi.transform(Hc(r))+", "+Hc(qc.transform(n))+")"},Gr={test:t=>Lo.test(t)||Ey.test(t)||za.test(t),parse:t=>Lo.test(t)?Lo.parse(t):za.test(t)?za.parse(t):Ey.parse(t),transform:t=>Gf(t)?t:t.hasOwnProperty("red")?Lo.transform(t):za.transform(t)},Bt=(t,e,r)=>-r*t+r*e+t;function g1(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function CM({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;i=g1(l,a,t+1/3),s=g1(l,a,t),o=g1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const x1=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},kM=[Ey,Lo,za],PM=t=>kM.find(e=>e.test(t));function M2(t){const e=PM(t);let r=e.parse(t);return e===za&&(r=CM(r)),r}const iS=(t,e)=>{const r=M2(t),n=M2(e),i={...r};return s=>(i.red=x1(r.red,n.red,s),i.green=x1(r.green,n.green,s),i.blue=x1(r.blue,n.blue,s),i.alpha=Bt(r.alpha,n.alpha,s),Lo.transform(i))};function RM(t){var e,r;return isNaN(t)&&Gf(t)&&(((e=t.match(Zh))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(M5))===null||r===void 0?void 0:r.length)||0)>0}const sS={regex:wT,countKey:"Vars",token:"${v}",parse:Gt},oS={regex:M5,countKey:"Colors",token:"${c}",parse:Gr.parse},aS={regex:Zh,countKey:"Numbers",token:"${n}",parse:da.parse};function b1(t,{regex:e,countKey:r,token:n,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(i)))}function Jd(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&b1(r,sS),b1(r,oS),b1(r,aS),r}function lS(t){return Jd(t).values}function cS(t){const{values:e,numColors:r,numVars:n,tokenised:i}=Jd(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function MM(t){const e=lS(t);return cS(t)(e.map(TM))}const co={test:RM,parse:lS,createTransformer:cS,getAnimatableNone:MM},fS=(t,e)=>r=>`${r>0?e:t}`;function uS(t,e){return typeof t=="number"?r=>Bt(t,e,r):Gr.test(t)?iS(t,e):t.startsWith("var(")?fS(t,e):hS(t,e)}const dS=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>uS(s,e[o]));return s=>{for(let o=0;o{const r={...t,...e},n={};for(const i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=uS(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},hS=(t,e)=>{const r=co.createTransformer(e),n=Jd(t),i=Jd(e);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?to(dS(n.values,i.values),r):fS(t,e)},Ef=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},I2=(t,e)=>r=>Bt(t,e,r);function _M(t){return typeof t=="number"?I2:typeof t=="string"?Gr.test(t)?iS:hS:Array.isArray(t)?dS:typeof t=="object"?IM:I2}function OM(t,e,r){const n=[],i=r||_M(t[0]),s=t.length-1;for(let o=0;oe[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=OM(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(lo(t[0],t[s-1],c)):l}function NM(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Ef(0,e,n);t.push(Bt(r,1,i))}}function DM(t){const e=[0];return NM(e,t.length-1),e}function LM(t,e){return t.map(r=>r*e)}function jM(t,e){return t.map(()=>e||X5).splice(0,t.length-1)}function Xd({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=gM(n)?n.map(T2):T2(n),s={done:!1,value:e[0]},o=LM(r&&r.length===e.length?r:DM(e),t),a=vS(o,e,{ease:Array.isArray(i)?i:jM(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function yS(t,e){return e?t*(1e3/e):0}const BM=5;function pS(t,e,r){const n=Math.max(e-BM,0);return yS(r-t(n),e-n)}const w1=.001,$M=.01,_2=10,FM=.05,UM=1;function zM({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;cM(t<=ro(_2));let o=1-e;o=lo(FM,UM,o),t=lo($M,_2,ds(t)),o<1?(i=c=>{const f=c*o,u=f*t,d=f-r,v=Ay(c,o),g=Math.exp(-u);return w1-d/v*g},s=c=>{const u=c*o*t,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*t,g=Math.exp(-u),y=Ay(Math.pow(c,2),o);return(-i(c)+w1>0?-1:1)*((d-v)*g)/y}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-w1+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=qM(i,s,a);if(t=ro(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}const VM=12;function qM(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function GM(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!O2(t,WM)&&O2(t,HM)){const r=zM(t);e={...e,...r,mass:1},e.isResolvedFromDuration=!0}return e}function mS({keyframes:t,restDelta:e,restSpeed:r,...n}){const i=t[0],s=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:d}=GM({...n,velocity:-ds(n.velocity||0)}),v=u||0,g=l/(2*Math.sqrt(a*c)),y=s-i,w=ds(Math.sqrt(a/c)),x=Math.abs(y)<5;r||(r=x?.01:2),e||(e=x?.005:.5);let b;if(g<1){const A=Ay(w,g);b=P=>{const _=Math.exp(-g*w*P);return s-_*((v+g*w*y)/A*Math.sin(A*P)+y*Math.cos(A*P))}}else if(g===1)b=A=>s-Math.exp(-w*A)*(y+(v+w*y)*A);else{const A=w*Math.sqrt(g*g-1);b=P=>{const _=Math.exp(-g*w*P),D=Math.min(A*P,300);return s-_*((v+g*w*y)*Math.sinh(D)+A*y*Math.cosh(D))/A}}return{calculatedDuration:d&&f||null,next:A=>{const P=b(A);if(d)o.done=A>=f;else{let _=v;A!==0&&(g<1?_=pS(b,A,P):_=0);const D=Math.abs(_)<=r,M=Math.abs(s-P)<=e;o.done=D&&M}return o.value=o.done?s:P,o}}}function N2({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],d={done:!1,value:u},v=L=>a!==void 0&&Ll,g=L=>a===void 0?l:l===void 0||Math.abs(a-L)-y*Math.exp(-L/n),A=L=>x+b(L),P=L=>{const z=b(L),H=A(L);d.done=Math.abs(z)<=c,d.value=d.done?x:H};let _,D;const M=L=>{v(d.value)&&(_=L,D=mS({keyframes:[d.value,g(d.value)],velocity:pS(A,L,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return M(0),{calculatedDuration:null,next:L=>{let z=!1;return!D&&_===void 0&&(z=!0,P(L),M(L)),_!==void 0&&L>_?D.next(L-_):(!z&&P(L),d)}}}const KM=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Ct.update(e,!0),stop:()=>gs(e),now:()=>jr.isProcessing?jr.timestamp:performance.now()}},D2=2e4;function L2(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=D2?1/0:e}const QM={decay:N2,inertia:N2,tween:Xd,keyframes:Xd,spring:mS};function Zd({autoplay:t=!0,delay:e=0,driver:r=KM,keyframes:n,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...d}){let v=1,g=!1,y,w;const x=()=>{w=new Promise(C=>{y=C})};x();let b;const A=QM[i]||Xd;let P;A!==Xd&&typeof n[0]!="number"&&(P=vS([0,100],n,{clamp:!1}),n=[0,100]);const _=A({...d,keyframes:n});let D;a==="mirror"&&(D=A({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let M="idle",L=null,z=null,H=null;_.calculatedDuration===null&&s&&(_.calculatedDuration=L2(_));const{calculatedDuration:Y}=_;let Z=1/0,O=1/0;Y!==null&&(Z=Y+o,O=Z*(s+1)-o);let h=0;const S=C=>{if(z===null)return;v>0&&(z=Math.min(z,C)),v<0&&(z=Math.min(C-O/v,z)),L!==null?h=L:h=Math.round(C-z)*v;const m=h-e*(v>=0?1:-1),T=v>=0?m<0:m>O;h=Math.max(m,0),M==="finished"&&L===null&&(h=O);let F=h,E=_;if(s){const K=Math.min(h,O)/Z;let oe=Math.floor(K),te=K%1;!te&&K>=1&&(te=1),te===1&&oe--,oe=Math.min(oe,s+1),!!(oe%2)&&(a==="reverse"?(te=1-te,o&&(te-=o/Z)):a==="mirror"&&(E=D)),F=lo(0,1,te)*Z}const $=T?{done:!1,value:n[0]}:E.next(F);P&&($.value=P($.value));let{done:V}=$;!T&&Y!==null&&(V=v>=0?h>=O:h<=0);const q=L===null&&(M==="finished"||M==="running"&&V);return u&&u($.value),q&&R(),$},k=()=>{b&&b.stop(),b=void 0},I=()=>{M="idle",k(),y(),x(),z=H=null},R=()=>{M="finished",f&&f(),k(),y()},N=()=>{if(g)return;b||(b=r(S));const C=b.now();l&&l(),L!==null?z=C-L:(!z||M==="finished")&&(z=C),M==="finished"&&x(),H=z,L=null,M="running",b.start()};t&&N();const B={then(C,m){return w.then(C,m)},get time(){return ds(h)},set time(C){C=ro(C),h=C,L!==null||!b||v===0?L=C:z=b.now()-C/v},get duration(){const C=_.calculatedDuration===null?L2(_):_.calculatedDuration;return ds(C)},get speed(){return v},set speed(C){C===v||!b||(v=C,B.time=ds(h))},get state(){return M},play:N,pause:()=>{M="paused",L=h},stop:()=>{g=!0,M!=="idle"&&(M="idle",c&&c(),I())},cancel:()=>{H!==null&&S(H),I()},complete:()=>{M="finished"},sample:C=>(z=0,S(C))};return B}function YM(t){let e;return()=>(e===void 0&&(e=t()),e)}const JM=YM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),XM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pu=10,ZM=2e4,eI=(t,e)=>e.type==="spring"||t==="backgroundColor"||!K5(e.ease);function tI(t,e,{onUpdate:r,onComplete:n,...i}){if(!(JM()&&XM.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l,c=!1;const f=()=>{l=new Promise(A=>{a=A})};f();let{keyframes:u,duration:d=300,ease:v,times:g}=i;if(eI(e,i)){const A=Zd({...i,repeat:0,delay:0});let P={done:!1,value:u[0]};const _=[];let D=0;for(;!P.done&&D{c=!1,y.cancel()},x=()=>{c=!0,Ct.update(w),a(),f()};return y.onfinish=()=>{c||(t.set(dM(u,i)),n&&n(),x())},{then(A,P){return l.then(A,P)},attachTimeline(A){return y.timeline=A,y.onfinish=null,Gt},get time(){return ds(y.currentTime||0)},set time(A){y.currentTime=ro(A)},get speed(){return y.playbackRate},set speed(A){y.playbackRate=A},get duration(){return ds(d)},play:()=>{o||(y.play(),gs(w))},pause:()=>y.pause(),stop:()=>{if(o=!0,y.playState==="idle")return;const{currentTime:A}=y;if(A){const P=Zd({...i,autoplay:!1});t.setWithVelocity(P.sample(A-Pu).value,P.sample(A).value,Pu)}x()},complete:()=>{c||y.finish()},cancel:x}}function rI({keyframes:t,delay:e,onUpdate:r,onComplete:n}){const i=()=>(r&&r(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Gt,pause:Gt,stop:Gt,then:s=>(s(),Promise.resolve()),cancel:Gt,complete:Gt});return e?Zd({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const nI={type:"spring",stiffness:500,damping:25,restSpeed:10},iI=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),sI={type:"keyframes",duration:.8},oI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aI=(t,{keyframes:e})=>e.length>2?sI:ua.has(t)?t.startsWith("scale")?iI(e[1]):nI:oI,Sy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(co.test(e)||e==="0")&&!e.startsWith("url(")),lI=new Set(["brightness","contrast","saturate","opacity"]);function cI(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(Zh)||[];if(!n)return t;const i=r.replace(n,"");let s=lI.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const fI=/([a-z-]*)\(.*?\)/g,Cy={...co,getAnimatableNone:t=>{const e=t.match(fI);return e?e.map(cI).join(" "):t}},uI={...I5,color:Gr,backgroundColor:Gr,outlineColor:Gr,fill:Gr,stroke:Gr,borderColor:Gr,borderTopColor:Gr,borderRightColor:Gr,borderBottomColor:Gr,borderLeftColor:Gr,filter:Cy,WebkitFilter:Cy},Lm=t=>uI[t];function gS(t,e){let r=Lm(t);return r!==Cy&&(r=co),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const xS=t=>/^0[^.\s]+$/.test(t);function dI(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||xS(t)}function hI(t,e,r,n){const i=Sy(e,r);let s;Array.isArray(r)?s=[...r]:s=[null,r];const o=n.from!==void 0?n.from:t.get();let a;const l=[];for(let c=0;ci=>{const s=jm(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-ro(o);const l=hI(e,t,r,s),c=l[0],f=l[l.length-1],u=Sy(t,c),d=Sy(t,f);let v={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:g=>{e.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(vI(s)||(v={...v,...aI(t,v)}),v.duration&&(v.duration=ro(v.duration)),v.repeatDelay&&(v.repeatDelay=ro(v.repeatDelay)),!u||!d||fM.current||s.type===!1||yI.skipAnimations)return rI(v);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const g=tI(e,t,v);if(g)return g}return Zd(v)};function eh(t){return!!(ln(t)&&t.add)}const bS=t=>/^\-?\d*\.?\d+$/.test(t);function $m(t,e){t.indexOf(e)===-1&&t.push(e)}function Fm(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Um{constructor(){this.subscriptions=[]}add(e){return $m(this.subscriptions,e),()=>Fm(this.subscriptions,e)}notify(e,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let s=0;s!isNaN(parseFloat(t));class mI{constructor(e,r={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:o}=jr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=pI(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Um);const n=this.events[e].add(r);return e==="change"?()=>{n(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?yS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pl(t,e){return new mI(t,e)}const wS=t=>e=>e.test(t),gI={test:t=>t==="auto",parse:t=>t},ES=[da,Ee,Bi,Ns,CT,ST,gI],rc=t=>ES.find(wS(t)),xI=[...ES,Gr,co],bI=t=>xI.find(wS(t));function wI(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,pl(r))}function EI(t,e){const r=t0(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=$T(s[o]);wI(t,o,a)}}function AI(t,e,r){var n,i;const s=Object.keys(e).filter(a=>!t.hasValue(a)),o=s.length;if(o)for(let a=0;al.remove(u))),c.push(w)}return o&&Promise.all(c).then(()=>{o&&EI(t,o)}),c}function ky(t,e,r={}){const n=t0(t,e,r.custom);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(AS(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return RI(t,e,c+l,f,u,r)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(r.delay)])}function RI(t,e,r=0,n=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*n,l=i===1?(c=0)=>c*n:(c=0)=>a-c*n;return Array.from(t.variantChildren).sort(TI).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(ky(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function TI(t,e){return t.sortNodePosition(e)}function MI(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>ky(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=ky(t,e,r);else{const i=typeof e=="function"?t0(t,e,r.custom):e;n=Promise.all(AS(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}const II=[...Em].reverse(),_I=Em.length;function OI(t){return e=>Promise.all(e.map(({animation:r,options:n})=>MI(t,r,n)))}function NI(t){let e=OI(t);const r=LI();let n=!0;const i=(l,c)=>{const f=t0(t,c);if(f){const{transition:u,transitionEnd:d,...v}=f;l={...l,...v,...d}}return l};function s(l){e=l(t)}function o(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},d=[],v=new Set;let g={},y=1/0;for(let x=0;x<_I;x++){const b=II[x],A=r[b],P=f[b]!==void 0?f[b]:u[b],_=bf(P),D=b===c?A.isActive:null;D===!1&&(y=x);let M=P===u[b]&&P!==f[b]&&_;if(M&&n&&t.manuallyAnimateOnMount&&(M=!1),A.protectedKeys={...g},!A.isActive&&D===null||!P&&!A.prevProp||Jh(P)||typeof P=="boolean")continue;let z=DI(A.prevProp,P)||b===c&&A.isActive&&!M&&_||x>y&&_,H=!1;const Y=Array.isArray(P)?P:[P];let Z=Y.reduce(i,{});D===!1&&(Z={});const{prevResolvedValues:O={}}=A,h={...O,...Z},S=k=>{z=!0,v.has(k)&&(H=!0,v.delete(k)),A.needsAnimating[k]=!0};for(const k in h){const I=Z[k],R=O[k];if(g.hasOwnProperty(k))continue;let N=!1;Yd(I)&&Yd(R)?N=!W5(I,R):N=I!==R,N?I!==void 0?S(k):v.add(k):I!==void 0&&v.has(k)?S(k):A.protectedKeys[k]=!0}A.prevProp=P,A.prevResolvedValues=Z,A.isActive&&(g={...g,...Z}),n&&t.blockInitialAnimation&&(z=!1),z&&(!M||H)&&d.push(...Y.map(k=>({animation:k,options:{type:b,...l}})))}if(v.size){const x={};v.forEach(b=>{const A=t.getBaseTarget(b);A!==void 0&&(x[b]=A)}),d.push({animation:x})}let w=!!d.length;return n&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(w=!1),n=!1,w?e(d):Promise.resolve()}function a(l,c,f){var u;if(r[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(v=>{var g;return(g=v.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const d=o(f,l);for(const v in r)r[v].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>r}}function DI(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!W5(e,t):!1}function Co(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LI(){return{animate:Co(!0),whileInView:Co(),whileHover:Co(),whileTap:Co(),whileDrag:Co(),whileFocus:Co(),exit:Co()}}class jI extends wo{constructor(e){super(e),e.animationState||(e.animationState=NI(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Jh(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let BI=0;class $I extends wo{constructor(){super(...arguments),this.id=BI++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&s.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const FI={animation:{Feature:jI},exit:{Feature:$I}},j2=(t,e)=>Math.abs(t-e);function UI(t,e){const r=j2(t.x,e.x),n=j2(t.y,e.y);return Math.sqrt(r**2+n**2)}class SS{constructor(e,r,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=A1(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,v=UI(u.offset,{x:0,y:0})>=3;if(!d&&!v)return;const{point:g}=u,{timestamp:y}=jr;this.history.push({...g,timestamp:y});const{onStart:w,onMove:x}=this.handlers;d||(w&&w(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=E1(d,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=A1(u.type==="pointercancel"?this.lastMoveEventInfo:E1(d,this.transformPagePoint),this.history);this.startEvent&&v&&v(u,w),g&&g(u,w)},!U5(e))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=i||window;const o=e0(e),a=E1(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=jr;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=r;f&&f(e,A1(a,this.history)),this.removeListeners=to(us(this.contextWindow,"pointermove",this.handlePointerMove),us(this.contextWindow,"pointerup",this.handlePointerUp),us(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gs(this.updatePoint)}}function E1(t,e){return e?{point:e(t.point)}:t}function B2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function A1({point:t},e){return{point:t,delta:B2(t,CS(e)),offset:B2(t,zI(e)),velocity:VI(e,.1)}}function zI(t){return t[0]}function CS(t){return t[t.length-1]}function VI(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=CS(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>ro(e)));)r--;if(!n)return{x:0,y:0};const s=ds(i.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Cn(t){return t.max-t.min}function Py(t,e=0,r=.01){return Math.abs(t-e)<=r}function $2(t,e,r,n=.5){t.origin=n,t.originPoint=Bt(e.min,e.max,t.origin),t.scale=Cn(r)/Cn(e),(Py(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Bt(r.min,r.max,t.origin)-t.originPoint,(Py(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Wc(t,e,r,n){$2(t.x,e.x,r.x,n?n.originX:void 0),$2(t.y,e.y,r.y,n?n.originY:void 0)}function F2(t,e,r){t.min=r.min+e.min,t.max=t.min+Cn(e)}function qI(t,e,r){F2(t.x,e.x,r.x),F2(t.y,e.y,r.y)}function U2(t,e,r){t.min=e.min-r.min,t.max=t.min+Cn(e)}function Gc(t,e,r){U2(t.x,e.x,r.x),U2(t.y,e.y,r.y)}function HI(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Bt(r,t,n.max):Math.min(t,r)),t}function z2(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function WI(t,{top:e,left:r,bottom:n,right:i}){return{x:z2(t.x,r,i),y:z2(t.y,e,n)}}function V2(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Ef(e.min,e.max-n,t.min):n>i&&(r=Ef(t.min,t.max-i,e.min)),lo(0,1,r)}function QI(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const Ry=.35;function YI(t=Ry){return t===!1?t=0:t===!0&&(t=Ry),{x:q2(t,"left","right"),y:q2(t,"top","bottom")}}function q2(t,e,r){return{min:H2(t,e),max:H2(t,r)}}function H2(t,e){return typeof t=="number"?t:t[e]||0}const W2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Va=()=>({x:W2(),y:W2()}),G2=()=>({min:0,max:0}),or=()=>({x:G2(),y:G2()});function Dn(t){return[t("x"),t("y")]}function kS({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function JI({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function XI(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function S1(t){return t===void 0||t===1}function Ty({scale:t,scaleX:e,scaleY:r}){return!S1(t)||!S1(e)||!S1(r)}function To(t){return Ty(t)||PS(t)||t.z||t.rotate||t.rotateX||t.rotateY}function PS(t){return K2(t.x)||K2(t.y)}function K2(t){return t&&t!=="0%"}function th(t,e,r){const n=t-r,i=e*n;return r+i}function Q2(t,e,r,n,i){return i!==void 0&&(t=th(t,i,n)),th(t,r,n)+e}function My(t,e=0,r=1,n,i){t.min=Q2(t.min,e,r,n,i),t.max=Q2(t.max,e,r,n,i)}function RS(t,{x:e,y:r}){My(t.x,e.translate,e.scale,e.originPoint),My(t.y,r.translate,r.scale,r.originPoint)}function ZI(t,e,r,n=!1){const i=r.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Fs(t,e){t.min=t.min+e,t.max=t.max+e}function J2(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Bt(t.min,t.max,s);My(t,e[r],e[n],o,e.scale)}const e_=["x","scaleX","originX"],t_=["y","scaleY","originY"];function qa(t,e){J2(t.x,e,e_),J2(t.y,e,t_)}function TS(t,e){return kS(XI(t.getBoundingClientRect(),e))}function r_(t,e,r){const n=TS(t,r),{scroll:i}=e;return i&&(Fs(n.x,i.offset.x),Fs(n.y,i.offset.y)),n}const MS=({current:t})=>t?t.ownerDocument.defaultView:null,n_=new WeakMap;class i_{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=or(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(e0(f,"page").point)},s=(f,u)=>{const{drag:d,dragPropagation:v,onDragStart:g}=this.getProps();if(d&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=V5(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Dn(w=>{let x=this.getAxisMotionValue(w).get()||0;if(Bi.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const A=b.layout.layoutBox[w];A&&(x=Cn(A)*(parseFloat(x)/100))}}this.originPoint[w]=x}),g&&Ct.update(()=>g(f,u),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(f,u)=>{const{dragPropagation:d,dragDirectionLock:v,onDirectionLock:g,onDrag:y}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:w}=u;if(v&&this.currentDirection===null){this.currentDirection=s_(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,w),this.updateAxis("y",u.point,w),this.visualElement.render(),y&&y(f,u)},a=(f,u)=>this.stop(f,u),l=()=>Dn(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new SS(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:MS(this.visualElement)})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Ct.update(()=>s(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:i}=this.getProps();if(!n||!Ru(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=HI(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;r&&Ua(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=WI(i.layoutBox,r):this.constraints=!1,this.elastic=YI(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Dn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=QI(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Ua(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=r_(n,i.root,this.visualElement.getTransformPagePoint());let o=GI(i.layout.layoutBox,s);if(r){const a=r(JI(o));this.hasMutatedConstraints=!!a,a&&(o=kS(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Dn(f=>{if(!Ru(f,r,this.currentDirection))return;let u=l&&l[f]||{};o&&(u={min:0,max:0});const d=i?200:1e6,v=i?40:1e7,g={type:"inertia",velocity:n?e[f]:0,bounceStiffness:d,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(f,g)});return Promise.all(c).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(Bm(e,n,0,r))}stopAnimation(){Dn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Dn(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Dn(r=>{const{drag:n}=this.getProps();if(!Ru(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[r];s.set(e[r]-Bt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ua(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Dn(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=KI({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Dn(o=>{if(!Ru(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Bt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;n_.set(this.visualElement,this);const e=this.visualElement.current,r=us(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Ua(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=ls(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Dn(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),r(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ry,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ru(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function s_(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class o_ extends wo{constructor(e){super(e),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new i_(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const X2=t=>(e,r)=>{t&&Ct.update(()=>t(e,r))};class a_ extends wo{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(e){this.session=new SS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:MS(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:X2(e),onStart:X2(r),onMove:n,onEnd:(s,o)=>{delete this.session,i&&Ct.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=us(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function l_(){const t=p.useContext(Qh);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=p.useId();return p.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}const cd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Z2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const nc={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ee.test(t))t=parseFloat(t);else return t;const r=Z2(t,e.target.x),n=Z2(t,e.target.y);return`${r}% ${n}%`}},c_={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=co.parse(t);if(i.length>5)return n;const s=co.createTransformer(t),o=typeof i[0]!="number"?1:0,a=r.x.scale*e.x,l=r.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=Bt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class f_ extends gr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;mT(u_),s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),cd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||Ct.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function IS(t){const[e,r]=l_(),n=p.useContext(Sm);return gr.createElement(f_,{...t,layoutGroup:n,switchLayoutGroup:p.useContext(k5),isPresent:e,safeToRemove:r})}const u_={borderRadius:{...nc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nc,borderTopRightRadius:nc,borderBottomLeftRadius:nc,borderBottomRightRadius:nc,boxShadow:c_},_S=["TopLeft","TopRight","BottomLeft","BottomRight"],d_=_S.length,ew=t=>typeof t=="string"?parseFloat(t):t,tw=t=>typeof t=="number"||Ee.test(t);function h_(t,e,r,n,i,s){i?(t.opacity=Bt(0,r.opacity!==void 0?r.opacity:1,v_(n)),t.opacityExit=Bt(e.opacity!==void 0?e.opacity:1,0,y_(n))):s&&(t.opacity=Bt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(Ef(t,e,n))}function nw(t,e){t.min=e.min,t.max=e.max}function _n(t,e){nw(t.x,e.x),nw(t.y,e.y)}function iw(t,e,r,n,i){return t-=e,t=th(t,1/r,n),i!==void 0&&(t=th(t,1/i,n)),t}function p_(t,e=0,r=1,n=.5,i,s=t,o=t){if(Bi.test(e)&&(e=parseFloat(e),e=Bt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Bt(s.min,s.max,n);t===s&&(a-=e),t.min=iw(t.min,e,r,a,i),t.max=iw(t.max,e,r,a,i)}function sw(t,e,[r,n,i],s,o){p_(t,e[r],e[n],e[i],e.scale,s,o)}const m_=["x","scaleX","originX"],g_=["y","scaleY","originY"];function ow(t,e,r,n){sw(t.x,e,m_,r?r.x:void 0,n?n.x:void 0),sw(t.y,e,g_,r?r.y:void 0,n?n.y:void 0)}function aw(t){return t.translate===0&&t.scale===1}function NS(t){return aw(t.x)&&aw(t.y)}function x_(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function DS(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function lw(t){return Cn(t.x)/Cn(t.y)}class b_{constructor(){this.members=[]}add(e){$m(this.members,e),e.scheduleRender()}remove(e){if(Fm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(i=>e===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function cw(t,e,r){let n="";const i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(n=`translate3d(${i}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:l,rotateX:c,rotateY:f}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),f&&(n+=`rotateY(${f}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const w_=(t,e)=>t.depth-e.depth;class E_{constructor(){this.children=[],this.isDirty=!1}add(e){$m(this.children,e),this.isDirty=!0}remove(e){Fm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(w_),this.isDirty=!1,this.children.forEach(e)}}function A_(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(gs(n),t(s-e))};return Ct.read(n,!0),()=>gs(n)}function S_(t){window.MotionDebug&&window.MotionDebug.record(t)}function C_(t){return t instanceof SVGElement&&t.tagName!=="svg"}function k_(t,e,r){const n=ln(t)?t:pl(t);return n.start(Bm("",n,e,r)),n.animation}const fw=["","X","Y","Z"],P_={visibility:"hidden"},uw=1e3;let R_=0;const Mo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function LS({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=R_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Mo.totalNodes=Mo.resolvedTargetDeltas=Mo.recalculatedProjection=0,this.nodes.forEach(I_),this.nodes.forEach(L_),this.nodes.forEach(j_),this.nodes.forEach(__),S_(Mo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=A_(d,250),cd.hasAnimatedSinceResize&&(cd.hasAnimatedSinceResize=!1,this.nodes.forEach(hw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||z_,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=f.getProps(),b=!this.targetLayout||!DS(this.targetLayout,g)||v,A=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||A||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,A);const P={...jm(y,"layout"),onPlay:w,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else d||hw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,gs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(B_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;fthis.update()))}clearAllSnapshots(){this.nodes.forEach(O_),this.sharedNodes.forEach($_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const _=P/1e3;vw(u.x,o.x,_),vw(u.y,o.y,_),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F_(this.relativeTarget,this.relativeTargetOrigin,d,_),A&&x_(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=or()),_n(A,this.relativeTarget)),y&&(this.animationValues=f,h_(f,c,this.latestValues,_,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(gs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{cd.hasAnimatedSinceResize=!0,this.currentAnimation=k_(0,uw,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&jS(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||or();const u=Cn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=Cn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}_n(a,l),qa(a,f),Wc(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new b_),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(dw),this.root.sharedNodes.clear()}}}function T_(t){t.updateLayout()}function M_(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=r.source!==t.layout.source;s==="size"?Dn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=Cn(d);d.min=n[u].min,d.max=d.min+v}):jS(s,r.layoutBox,n)&&Dn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=Cn(n[u]);d.max=d.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+v)});const a=Va();Wc(a,n,r.layoutBox);const l=Va();o?Wc(l,t.applyTransform(i,!0),r.measuredBox):Wc(l,n,r.layoutBox);const c=!NS(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:v}=u;if(d&&v){const g=or();Gc(g,r.layoutBox,d.layoutBox);const y=or();Gc(y,n,v.layoutBox),DS(g,y)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function I_(t){Mo.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function __(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function O_(t){t.clearSnapshot()}function dw(t){t.clearMeasurements()}function N_(t){t.isLayoutDirty=!1}function D_(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function hw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function L_(t){t.resolveTargetDelta()}function j_(t){t.calcProjection()}function B_(t){t.resetRotation()}function $_(t){t.removeLeadSnapshot()}function vw(t,e,r){t.translate=Bt(e.translate,0,r),t.scale=Bt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function yw(t,e,r,n){t.min=Bt(e.min,r.min,n),t.max=Bt(e.max,r.max,n)}function F_(t,e,r,n){yw(t.x,e.x,r.x,n),yw(t.y,e.y,r.y,n)}function U_(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const z_={duration:.45,ease:[.4,0,.1,1]},pw=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),mw=pw("applewebkit/")&&!pw("chrome/")?Math.round:Gt;function gw(t){t.min=mw(t.min),t.max=mw(t.max)}function V_(t){gw(t.x),gw(t.y)}function jS(t,e,r){return t==="position"||t==="preserve-aspect"&&!Py(lw(e),lw(r),.2)}const q_=LS({attachResizeListener:(t,e)=>ls(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),C1={current:void 0},BS=LS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!C1.current){const t=new q_({});t.mount(window),t.setOptions({layoutScroll:!0}),C1.current=t}return C1.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),H_={pan:{Feature:a_},drag:{Feature:o_,ProjectionNode:BS,MeasureLayout:IS}},W_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function G_(t){const e=W_.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function Iy(t,e,r=1){const[n,i]=G_(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const o=s.trim();return bS(o)?parseFloat(o):o}else return by(i)?Iy(i,e,r+1):i}function K_(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(i=>{const s=i.get();if(!by(s))return;const o=Iy(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!by(s))continue;const o=Iy(s,n);o&&(e[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const Q_=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$S=t=>Q_.has(t),Y_=t=>Object.keys(t).some($S),xw=t=>t===da||t===Ee,bw=(t,e)=>parseFloat(t.split(", ")[e]),ww=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return bw(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?bw(s[1],t):0}},J_=new Set(["x","y","z"]),X_=Wf.filter(t=>!J_.has(t));function Z_(t){const e=[];return X_.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const ml={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ww(4,13),y:ww(5,14)};ml.translateX=ml.x;ml.translateY=ml.y;const eO=(t,e,r)=>{const n=e.measureViewportBox(),i=e.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(c=>{a[c]=ml[c](n,s)}),e.render();const l=e.measureViewportBox();return r.forEach(c=>{const f=e.getValue(c);f&&f.jump(a[c]),t[c]=ml[c](l,s)}),t},tO=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter($S);let s=[],o=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=r[l],u=rc(f);const d=e[l];let v;if(Yd(d)){const g=d.length,y=d[0]===null?1:0;f=d[y],u=rc(f);for(let w=y;w=0?window.pageYOffset:null,c=eO(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),Yh&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function rO(t,e,r,n){return Y_(e)?tO(t,e,r,n):{target:e,transitionEnd:n}}const nO=(t,e,r,n)=>{const i=K_(t,e,n);return e=i.target,n=i.transitionEnd,rO(t,e,r,n)},_y={current:null},FS={current:!1};function iO(){if(FS.current=!0,!!Yh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>_y.current=t.matches;t.addListener(e),e()}else _y.current=!1}function sO(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(ln(s))t.addValue(i,s),eh(n)&&n.add(i);else if(ln(o))t.addValue(i,pl(s,{owner:t})),eh(n)&&n.remove(i);else if(o!==s)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=t.getStaticValue(i);t.addValue(i,pl(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const Ew=new WeakMap,US=Object.keys(wf),oO=US.length,Aw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],aO=Am.length;class lO{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Xh(r),this.isVariantNode=C5(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(r,{});for(const u in f){const d=f[u];a[u]!==void 0&&ln(d)&&(d.set(a[u],!1),eh(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,Ew.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),FS.current||iO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_y.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ew.delete(this.current),this.projection&&this.projection.unmount(),gs(this.notifyUpdate),gs(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=ua.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:v})}return a}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):or()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=pl(r,{owner:this}),this.addValue(e,n)),n}readValue(e){var r;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Im(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!ln(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new Um),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class zS extends lO{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:i},s){let o=CI(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){AI(this,n,o);const a=nO(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function cO(t){return window.getComputedStyle(t)}class fO extends zS{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,r){if(ua.has(r)){const n=Lm(r);return n&&n.default||0}else{const n=cO(e),i=(T5(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return TS(e,r)}build(e,r,n,i){km(e,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,r){return Mm(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ln(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){D5(e,r,n,i)}}class uO extends zS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(ua.has(r)){const n=Lm(r);return n&&n.default||0}return r=L5.has(r)?r:wm(r),e.getAttribute(r)}measureInstanceViewportBox(){return or()}scrapeMotionValuesFromProps(e,r){return B5(e,r)}build(e,r,n,i){Rm(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){j5(e,r,n,i)}mount(e){this.isSVGTag=Tm(e.tagName),super.mount(e)}}const dO=(t,e)=>Cm(t)?new uO(e,{enableHardwareAcceleration:!1}):new fO(e,{enableHardwareAcceleration:!0}),hO={layout:{ProjectionNode:BS,MeasureLayout:IS}},vO={...FI,...oM,...H_,...hO},el=yT((t,e)=>GT(t,e,vO,dO));function VS(){const t=p.useRef(!1);return bm(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function yO(){const t=VS(),[e,r]=p.useState(0),n=p.useCallback(()=>{t.current&&r(e+1)},[e]);return[p.useCallback(()=>Ct.postRender(n),[n]),e]}class pO extends p.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function mO({children:t,isPresent:e}){const r=p.useId(),n=p.useRef(null),i=p.useRef({width:0,height:0,top:0,left:0});return p.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:l}=i.current;if(e||!n.current||!s||!o)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${s}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(c)}},[e]),p.createElement(pO,{isPresent:e,childRef:n,sizeRef:i},p.cloneElement(t,{ref:n}))}const k1=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=$5(gO),l=p.useId(),c=p.useMemo(()=>({id:l,initial:e,isPresent:r,custom:i,onExitComplete:f=>{a.set(f,!0);for(const u of a.values())if(!u)return;n&&n()},register:f=>(a.set(f,!1),()=>a.delete(f))}),s?void 0:[r]);return p.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),p.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=p.createElement(mO,{isPresent:r},t)),p.createElement(Qh.Provider,{value:c},t)};function gO(){return new Map}function xO(t){return p.useEffect(()=>()=>t(),[])}const Io=t=>t.key||"";function bO(t,e){t.forEach(r=>{const n=Io(r);e.set(n,r)})}function wO(t){const e=[];return p.Children.forEach(t,r=>{p.isValidElement(r)&&e.push(r)}),e}const qS=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=p.useContext(Sm).forceRender||yO()[0],l=VS(),c=wO(t);let f=c;const u=p.useRef(new Map).current,d=p.useRef(f),v=p.useRef(new Map).current,g=p.useRef(!0);if(bm(()=>{g.current=!1,bO(c,v),d.current=f}),xO(()=>{g.current=!0,v.clear(),u.clear()}),g.current)return p.createElement(p.Fragment,null,f.map(b=>p.createElement(k1,{key:Io(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},b)));f=[...f];const y=d.current.map(Io),w=c.map(Io),x=y.length;for(let b=0;b{if(w.indexOf(A)!==-1)return;const P=v.get(A);if(!P)return;const _=y.indexOf(A);let D=b;if(!D){const M=()=>{u.delete(A);const L=Array.from(v.keys()).filter(z=>!w.includes(z));if(L.forEach(z=>v.delete(z)),d.current=c.filter(z=>{const H=Io(z);return H===A||L.includes(H)}),!u.size){if(l.current===!1)return;a(),n&&n()}};D=p.createElement(k1,{key:Io(P),isPresent:!1,onExitComplete:M,custom:e,presenceAffectsLayout:s,mode:o},P),u.set(A,D)}f.splice(_,0,D)}),f=f.map(b=>{const A=b.key;return u.has(A)?b:p.createElement(k1,{key:Io(b),isPresent:!0,presenceAffectsLayout:s,mode:o},b)}),p.createElement(p.Fragment,null,u.size?f:f.map(b=>p.cloneElement(b)))},HS={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( - 243.18deg, - rgba(86, 52, 189, 0.85) 0%, - rgba(49, 41, 223, 0.85) 63.54%, - rgba(7, 98, 149, 0.85) 100% - )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},EO={...HS,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},AO={...HS,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},SO={dark:EO,light:AO},CO={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var Sw={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function kO(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function PO(t){var e=kO(t,"string");return typeof e=="symbol"?e:String(e)}function RO(t,e,r){return e=PO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function P1(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nl.styles)),s=Object.keys(i),o=s.filter(l=>"mappings"in i[l]),a=l=>{var c=[],f={},u=P1({},l),d=!1;for(var v of o){var g=l[v];if(g!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=g,u[w]==null&&delete u[w]}}var x=d?P1(P1({},f),u):l,b=function(){var D=x[A],M=i[A];try{if(M.mappings)return"continue";if(typeof D=="string"||typeof D=="number")c.push(M.values[D].defaultClass);else if(Array.isArray(D))for(var L=0;Lt,IO=function(){return TO(MO)(...arguments)},WS=IO({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},textDecoration:{values:{none:{defaultClass:"fyvr11n2"},underline:{defaultClass:"fyvr11n3"}}},userSelect:{values:{none:{defaultClass:"fyvr11n4"},text:{defaultClass:"fyvr11n5"},all:{defaultClass:"fyvr11n6"},auto:{defaultClass:"fyvr11n7"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n8"},nowrap:{defaultClass:"fyvr11n9"},initial:{defaultClass:"fyvr11na"},inherit:{defaultClass:"fyvr11nb"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11nc"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nd"},"break-word":{defaultClass:"fyvr11ne"},initial:{defaultClass:"fyvr11nf"},inherit:{defaultClass:"fyvr11ng"}}},zIndex:{values:{0:{defaultClass:"fyvr11nh"},1:{defaultClass:"fyvr11ni"},10:{defaultClass:"fyvr11nj"},20:{defaultClass:"fyvr11nk"},30:{defaultClass:"fyvr11nl"},40:{defaultClass:"fyvr11nm"},50:{defaultClass:"fyvr11nn"},"-1":{defaultClass:"fyvr11no"},auto:{defaultClass:"fyvr11np"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11nq"},"16/9":{defaultClass:"fyvr11nr"},"4/3":{defaultClass:"fyvr11ns"},"3/1":{defaultClass:"fyvr11nt"},auto:{defaultClass:"fyvr11nu"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nv",active:"fyvr11nw",disabled:"fyvr11nx",focus:"fyvr11ny",hover:"fyvr11nz",checked:"fyvr11o0"},defaultClass:"fyvr11nv"},white:{conditions:{base:"fyvr11o1",active:"fyvr11o2",disabled:"fyvr11o3",focus:"fyvr11o4",hover:"fyvr11o5",checked:"fyvr11o6"},defaultClass:"fyvr11o1"},inherit:{conditions:{base:"fyvr11o7",active:"fyvr11o8",disabled:"fyvr11o9",focus:"fyvr11oa",hover:"fyvr11ob",checked:"fyvr11oc"},defaultClass:"fyvr11o7"},transparent:{conditions:{base:"fyvr11od",active:"fyvr11oe",disabled:"fyvr11of",focus:"fyvr11og",hover:"fyvr11oh",checked:"fyvr11oi"},defaultClass:"fyvr11od"},positive:{conditions:{base:"fyvr11oj",active:"fyvr11ok",disabled:"fyvr11ol",focus:"fyvr11om",hover:"fyvr11on",checked:"fyvr11oo"},defaultClass:"fyvr11oj"},negative:{conditions:{base:"fyvr11op",active:"fyvr11oq",disabled:"fyvr11or",focus:"fyvr11os",hover:"fyvr11ot",checked:"fyvr11ou"},defaultClass:"fyvr11op"},info:{conditions:{base:"fyvr11ov",active:"fyvr11ow",disabled:"fyvr11ox",focus:"fyvr11oy",hover:"fyvr11oz",checked:"fyvr11p0"},defaultClass:"fyvr11ov"},warning:{conditions:{base:"fyvr11p1",active:"fyvr11p2",disabled:"fyvr11p3",focus:"fyvr11p4",hover:"fyvr11p5",checked:"fyvr11p6"},defaultClass:"fyvr11p1"},gradientBackdrop:{conditions:{base:"fyvr11p7",active:"fyvr11p8",disabled:"fyvr11p9",focus:"fyvr11pa",hover:"fyvr11pb",checked:"fyvr11pc"},defaultClass:"fyvr11p7"},gradientPrimary:{conditions:{base:"fyvr11pd",active:"fyvr11pe",disabled:"fyvr11pf",focus:"fyvr11pg",hover:"fyvr11ph",checked:"fyvr11pi"},defaultClass:"fyvr11pd"},gradientSecondary:{conditions:{base:"fyvr11pj",active:"fyvr11pk",disabled:"fyvr11pl",focus:"fyvr11pm",hover:"fyvr11pn",checked:"fyvr11po"},defaultClass:"fyvr11pj"},arbitrumDark:{conditions:{base:"fyvr11pp",active:"fyvr11pq",disabled:"fyvr11pr",focus:"fyvr11ps",hover:"fyvr11pt",checked:"fyvr11pu"},defaultClass:"fyvr11pp"},arbitrumLight:{conditions:{base:"fyvr11pv",active:"fyvr11pw",disabled:"fyvr11px",focus:"fyvr11py",hover:"fyvr11pz",checked:"fyvr11q0"},defaultClass:"fyvr11pv"},avalanceDark:{conditions:{base:"fyvr11q1",active:"fyvr11q2",disabled:"fyvr11q3",focus:"fyvr11q4",hover:"fyvr11q5",checked:"fyvr11q6"},defaultClass:"fyvr11q1"},avalanceLight:{conditions:{base:"fyvr11q7",active:"fyvr11q8",disabled:"fyvr11q9",focus:"fyvr11qa",hover:"fyvr11qb",checked:"fyvr11qc"},defaultClass:"fyvr11q7"},bscDark:{conditions:{base:"fyvr11qd",active:"fyvr11qe",disabled:"fyvr11qf",focus:"fyvr11qg",hover:"fyvr11qh",checked:"fyvr11qi"},defaultClass:"fyvr11qd"},bscLight:{conditions:{base:"fyvr11qj",active:"fyvr11qk",disabled:"fyvr11ql",focus:"fyvr11qm",hover:"fyvr11qn",checked:"fyvr11qo"},defaultClass:"fyvr11qj"},ethereumDark:{conditions:{base:"fyvr11qp",active:"fyvr11qq",disabled:"fyvr11qr",focus:"fyvr11qs",hover:"fyvr11qt",checked:"fyvr11qu"},defaultClass:"fyvr11qp"},ethereumLight:{conditions:{base:"fyvr11qv",active:"fyvr11qw",disabled:"fyvr11qx",focus:"fyvr11qy",hover:"fyvr11qz",checked:"fyvr11r0"},defaultClass:"fyvr11qv"},gnosisDark:{conditions:{base:"fyvr11r1",active:"fyvr11r2",disabled:"fyvr11r3",focus:"fyvr11r4",hover:"fyvr11r5",checked:"fyvr11r6"},defaultClass:"fyvr11r1"},gnosisLight:{conditions:{base:"fyvr11r7",active:"fyvr11r8",disabled:"fyvr11r9",focus:"fyvr11ra",hover:"fyvr11rb",checked:"fyvr11rc"},defaultClass:"fyvr11r7"},polygonDark:{conditions:{base:"fyvr11rd",active:"fyvr11re",disabled:"fyvr11rf",focus:"fyvr11rg",hover:"fyvr11rh",checked:"fyvr11ri"},defaultClass:"fyvr11rd"},polygonLight:{conditions:{base:"fyvr11rj",active:"fyvr11rk",disabled:"fyvr11rl",focus:"fyvr11rm",hover:"fyvr11rn",checked:"fyvr11ro"},defaultClass:"fyvr11rj"},text100:{conditions:{base:"fyvr11rp",active:"fyvr11rq",disabled:"fyvr11rr",focus:"fyvr11rs",hover:"fyvr11rt",checked:"fyvr11ru"},defaultClass:"fyvr11rp"},text80:{conditions:{base:"fyvr11rv",active:"fyvr11rw",disabled:"fyvr11rx",focus:"fyvr11ry",hover:"fyvr11rz",checked:"fyvr11s0"},defaultClass:"fyvr11rv"},text50:{conditions:{base:"fyvr11s1",active:"fyvr11s2",disabled:"fyvr11s3",focus:"fyvr11s4",hover:"fyvr11s5",checked:"fyvr11s6"},defaultClass:"fyvr11s1"},textInverse100:{conditions:{base:"fyvr11s7",active:"fyvr11s8",disabled:"fyvr11s9",focus:"fyvr11sa",hover:"fyvr11sb",checked:"fyvr11sc"},defaultClass:"fyvr11s7"},backgroundPrimary:{conditions:{base:"fyvr11sd",active:"fyvr11se",disabled:"fyvr11sf",focus:"fyvr11sg",hover:"fyvr11sh",checked:"fyvr11si"},defaultClass:"fyvr11sd"},backgroundSecondary:{conditions:{base:"fyvr11sj",active:"fyvr11sk",disabled:"fyvr11sl",focus:"fyvr11sm",hover:"fyvr11sn",checked:"fyvr11so"},defaultClass:"fyvr11sj"},backgroundContrast:{conditions:{base:"fyvr11sp",active:"fyvr11sq",disabled:"fyvr11sr",focus:"fyvr11ss",hover:"fyvr11st",checked:"fyvr11su"},defaultClass:"fyvr11sp"},backgroundMuted:{conditions:{base:"fyvr11sv",active:"fyvr11sw",disabled:"fyvr11sx",focus:"fyvr11sy",hover:"fyvr11sz",checked:"fyvr11t0"},defaultClass:"fyvr11sv"},backgroundControl:{conditions:{base:"fyvr11t1",active:"fyvr11t2",disabled:"fyvr11t3",focus:"fyvr11t4",hover:"fyvr11t5",checked:"fyvr11t6"},defaultClass:"fyvr11t1"},backgroundInverse:{conditions:{base:"fyvr11t7",active:"fyvr11t8",disabled:"fyvr11t9",focus:"fyvr11ta",hover:"fyvr11tb",checked:"fyvr11tc"},defaultClass:"fyvr11t7"},backgroundBackdrop:{conditions:{base:"fyvr11td",active:"fyvr11te",disabled:"fyvr11tf",focus:"fyvr11tg",hover:"fyvr11th",checked:"fyvr11ti"},defaultClass:"fyvr11td"},backgroundOverlay:{conditions:{base:"fyvr11tj",active:"fyvr11tk",disabled:"fyvr11tl",focus:"fyvr11tm",hover:"fyvr11tn",checked:"fyvr11to"},defaultClass:"fyvr11tj"},backgroundRaised:{conditions:{base:"fyvr11tp",active:"fyvr11tq",disabled:"fyvr11tr",focus:"fyvr11ts",hover:"fyvr11tt",checked:"fyvr11tu"},defaultClass:"fyvr11tp"},buttonGlass:{conditions:{base:"fyvr11tv",active:"fyvr11tw",disabled:"fyvr11tx",focus:"fyvr11ty",hover:"fyvr11tz",checked:"fyvr11u0"},defaultClass:"fyvr11tv"},buttonEmphasis:{conditions:{base:"fyvr11u1",active:"fyvr11u2",disabled:"fyvr11u3",focus:"fyvr11u4",hover:"fyvr11u5",checked:"fyvr11u6"},defaultClass:"fyvr11u1"},buttonInverse:{conditions:{base:"fyvr11u7",active:"fyvr11u8",disabled:"fyvr11u9",focus:"fyvr11ua",hover:"fyvr11ub",checked:"fyvr11uc"},defaultClass:"fyvr11u7"},borderNormal:{conditions:{base:"fyvr11ud",active:"fyvr11ue",disabled:"fyvr11uf",focus:"fyvr11ug",hover:"fyvr11uh",checked:"fyvr11ui"},defaultClass:"fyvr11ud"},borderFocus:{conditions:{base:"fyvr11uj",active:"fyvr11uk",disabled:"fyvr11ul",focus:"fyvr11um",hover:"fyvr11un",checked:"fyvr11uo"},defaultClass:"fyvr11uj"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11up",active:"fyvr11uq",disabled:"fyvr11ur",focus:"fyvr11us",hover:"fyvr11ut",checked:"fyvr11uu"},defaultClass:"fyvr11up"},white:{conditions:{base:"fyvr11uv",active:"fyvr11uw",disabled:"fyvr11ux",focus:"fyvr11uy",hover:"fyvr11uz",checked:"fyvr11v0"},defaultClass:"fyvr11uv"},inherit:{conditions:{base:"fyvr11v1",active:"fyvr11v2",disabled:"fyvr11v3",focus:"fyvr11v4",hover:"fyvr11v5",checked:"fyvr11v6"},defaultClass:"fyvr11v1"},transparent:{conditions:{base:"fyvr11v7",active:"fyvr11v8",disabled:"fyvr11v9",focus:"fyvr11va",hover:"fyvr11vb",checked:"fyvr11vc"},defaultClass:"fyvr11v7"},positive:{conditions:{base:"fyvr11vd",active:"fyvr11ve",disabled:"fyvr11vf",focus:"fyvr11vg",hover:"fyvr11vh",checked:"fyvr11vi"},defaultClass:"fyvr11vd"},negative:{conditions:{base:"fyvr11vj",active:"fyvr11vk",disabled:"fyvr11vl",focus:"fyvr11vm",hover:"fyvr11vn",checked:"fyvr11vo"},defaultClass:"fyvr11vj"},info:{conditions:{base:"fyvr11vp",active:"fyvr11vq",disabled:"fyvr11vr",focus:"fyvr11vs",hover:"fyvr11vt",checked:"fyvr11vu"},defaultClass:"fyvr11vp"},warning:{conditions:{base:"fyvr11vv",active:"fyvr11vw",disabled:"fyvr11vx",focus:"fyvr11vy",hover:"fyvr11vz",checked:"fyvr11w0"},defaultClass:"fyvr11vv"},gradientBackdrop:{conditions:{base:"fyvr11w1",active:"fyvr11w2",disabled:"fyvr11w3",focus:"fyvr11w4",hover:"fyvr11w5",checked:"fyvr11w6"},defaultClass:"fyvr11w1"},gradientPrimary:{conditions:{base:"fyvr11w7",active:"fyvr11w8",disabled:"fyvr11w9",focus:"fyvr11wa",hover:"fyvr11wb",checked:"fyvr11wc"},defaultClass:"fyvr11w7"},gradientSecondary:{conditions:{base:"fyvr11wd",active:"fyvr11we",disabled:"fyvr11wf",focus:"fyvr11wg",hover:"fyvr11wh",checked:"fyvr11wi"},defaultClass:"fyvr11wd"},arbitrumDark:{conditions:{base:"fyvr11wj",active:"fyvr11wk",disabled:"fyvr11wl",focus:"fyvr11wm",hover:"fyvr11wn",checked:"fyvr11wo"},defaultClass:"fyvr11wj"},arbitrumLight:{conditions:{base:"fyvr11wp",active:"fyvr11wq",disabled:"fyvr11wr",focus:"fyvr11ws",hover:"fyvr11wt",checked:"fyvr11wu"},defaultClass:"fyvr11wp"},avalanceDark:{conditions:{base:"fyvr11wv",active:"fyvr11ww",disabled:"fyvr11wx",focus:"fyvr11wy",hover:"fyvr11wz",checked:"fyvr11x0"},defaultClass:"fyvr11wv"},avalanceLight:{conditions:{base:"fyvr11x1",active:"fyvr11x2",disabled:"fyvr11x3",focus:"fyvr11x4",hover:"fyvr11x5",checked:"fyvr11x6"},defaultClass:"fyvr11x1"},bscDark:{conditions:{base:"fyvr11x7",active:"fyvr11x8",disabled:"fyvr11x9",focus:"fyvr11xa",hover:"fyvr11xb",checked:"fyvr11xc"},defaultClass:"fyvr11x7"},bscLight:{conditions:{base:"fyvr11xd",active:"fyvr11xe",disabled:"fyvr11xf",focus:"fyvr11xg",hover:"fyvr11xh",checked:"fyvr11xi"},defaultClass:"fyvr11xd"},ethereumDark:{conditions:{base:"fyvr11xj",active:"fyvr11xk",disabled:"fyvr11xl",focus:"fyvr11xm",hover:"fyvr11xn",checked:"fyvr11xo"},defaultClass:"fyvr11xj"},ethereumLight:{conditions:{base:"fyvr11xp",active:"fyvr11xq",disabled:"fyvr11xr",focus:"fyvr11xs",hover:"fyvr11xt",checked:"fyvr11xu"},defaultClass:"fyvr11xp"},gnosisDark:{conditions:{base:"fyvr11xv",active:"fyvr11xw",disabled:"fyvr11xx",focus:"fyvr11xy",hover:"fyvr11xz",checked:"fyvr11y0"},defaultClass:"fyvr11xv"},gnosisLight:{conditions:{base:"fyvr11y1",active:"fyvr11y2",disabled:"fyvr11y3",focus:"fyvr11y4",hover:"fyvr11y5",checked:"fyvr11y6"},defaultClass:"fyvr11y1"},polygonDark:{conditions:{base:"fyvr11y7",active:"fyvr11y8",disabled:"fyvr11y9",focus:"fyvr11ya",hover:"fyvr11yb",checked:"fyvr11yc"},defaultClass:"fyvr11y7"},polygonLight:{conditions:{base:"fyvr11yd",active:"fyvr11ye",disabled:"fyvr11yf",focus:"fyvr11yg",hover:"fyvr11yh",checked:"fyvr11yi"},defaultClass:"fyvr11yd"},text100:{conditions:{base:"fyvr11yj",active:"fyvr11yk",disabled:"fyvr11yl",focus:"fyvr11ym",hover:"fyvr11yn",checked:"fyvr11yo"},defaultClass:"fyvr11yj"},text80:{conditions:{base:"fyvr11yp",active:"fyvr11yq",disabled:"fyvr11yr",focus:"fyvr11ys",hover:"fyvr11yt",checked:"fyvr11yu"},defaultClass:"fyvr11yp"},text50:{conditions:{base:"fyvr11yv",active:"fyvr11yw",disabled:"fyvr11yx",focus:"fyvr11yy",hover:"fyvr11yz",checked:"fyvr11z0"},defaultClass:"fyvr11yv"},textInverse100:{conditions:{base:"fyvr11z1",active:"fyvr11z2",disabled:"fyvr11z3",focus:"fyvr11z4",hover:"fyvr11z5",checked:"fyvr11z6"},defaultClass:"fyvr11z1"},backgroundPrimary:{conditions:{base:"fyvr11z7",active:"fyvr11z8",disabled:"fyvr11z9",focus:"fyvr11za",hover:"fyvr11zb",checked:"fyvr11zc"},defaultClass:"fyvr11z7"},backgroundSecondary:{conditions:{base:"fyvr11zd",active:"fyvr11ze",disabled:"fyvr11zf",focus:"fyvr11zg",hover:"fyvr11zh",checked:"fyvr11zi"},defaultClass:"fyvr11zd"},backgroundContrast:{conditions:{base:"fyvr11zj",active:"fyvr11zk",disabled:"fyvr11zl",focus:"fyvr11zm",hover:"fyvr11zn",checked:"fyvr11zo"},defaultClass:"fyvr11zj"},backgroundMuted:{conditions:{base:"fyvr11zp",active:"fyvr11zq",disabled:"fyvr11zr",focus:"fyvr11zs",hover:"fyvr11zt",checked:"fyvr11zu"},defaultClass:"fyvr11zp"},backgroundControl:{conditions:{base:"fyvr11zv",active:"fyvr11zw",disabled:"fyvr11zx",focus:"fyvr11zy",hover:"fyvr11zz",checked:"fyvr1200"},defaultClass:"fyvr11zv"},backgroundInverse:{conditions:{base:"fyvr1201",active:"fyvr1202",disabled:"fyvr1203",focus:"fyvr1204",hover:"fyvr1205",checked:"fyvr1206"},defaultClass:"fyvr1201"},backgroundBackdrop:{conditions:{base:"fyvr1207",active:"fyvr1208",disabled:"fyvr1209",focus:"fyvr120a",hover:"fyvr120b",checked:"fyvr120c"},defaultClass:"fyvr1207"},backgroundOverlay:{conditions:{base:"fyvr120d",active:"fyvr120e",disabled:"fyvr120f",focus:"fyvr120g",hover:"fyvr120h",checked:"fyvr120i"},defaultClass:"fyvr120d"},backgroundRaised:{conditions:{base:"fyvr120j",active:"fyvr120k",disabled:"fyvr120l",focus:"fyvr120m",hover:"fyvr120n",checked:"fyvr120o"},defaultClass:"fyvr120j"},buttonGlass:{conditions:{base:"fyvr120p",active:"fyvr120q",disabled:"fyvr120r",focus:"fyvr120s",hover:"fyvr120t",checked:"fyvr120u"},defaultClass:"fyvr120p"},buttonEmphasis:{conditions:{base:"fyvr120v",active:"fyvr120w",disabled:"fyvr120x",focus:"fyvr120y",hover:"fyvr120z",checked:"fyvr1210"},defaultClass:"fyvr120v"},buttonInverse:{conditions:{base:"fyvr1211",active:"fyvr1212",disabled:"fyvr1213",focus:"fyvr1214",hover:"fyvr1215",checked:"fyvr1216"},defaultClass:"fyvr1211"},borderNormal:{conditions:{base:"fyvr1217",active:"fyvr1218",disabled:"fyvr1219",focus:"fyvr121a",hover:"fyvr121b",checked:"fyvr121c"},defaultClass:"fyvr1217"},borderFocus:{conditions:{base:"fyvr121d",active:"fyvr121e",disabled:"fyvr121f",focus:"fyvr121g",hover:"fyvr121h",checked:"fyvr121i"},defaultClass:"fyvr121d"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr121j",active:"fyvr121k",disabled:"fyvr121l",focus:"fyvr121m",hover:"fyvr121n",checked:"fyvr121o"},defaultClass:"fyvr121j"},dashed:{conditions:{base:"fyvr121p",active:"fyvr121q",disabled:"fyvr121r",focus:"fyvr121s",hover:"fyvr121t",checked:"fyvr121u"},defaultClass:"fyvr121p"},dotted:{conditions:{base:"fyvr121v",active:"fyvr121w",disabled:"fyvr121x",focus:"fyvr121y",hover:"fyvr121z",checked:"fyvr1220"},defaultClass:"fyvr121v"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1221",active:"fyvr1222",disabled:"fyvr1223",focus:"fyvr1224",hover:"fyvr1225",checked:"fyvr1226"},defaultClass:"fyvr1221"},white:{conditions:{base:"fyvr1227",active:"fyvr1228",disabled:"fyvr1229",focus:"fyvr122a",hover:"fyvr122b",checked:"fyvr122c"},defaultClass:"fyvr1227"},inherit:{conditions:{base:"fyvr122d",active:"fyvr122e",disabled:"fyvr122f",focus:"fyvr122g",hover:"fyvr122h",checked:"fyvr122i"},defaultClass:"fyvr122d"},transparent:{conditions:{base:"fyvr122j",active:"fyvr122k",disabled:"fyvr122l",focus:"fyvr122m",hover:"fyvr122n",checked:"fyvr122o"},defaultClass:"fyvr122j"},positive:{conditions:{base:"fyvr122p",active:"fyvr122q",disabled:"fyvr122r",focus:"fyvr122s",hover:"fyvr122t",checked:"fyvr122u"},defaultClass:"fyvr122p"},negative:{conditions:{base:"fyvr122v",active:"fyvr122w",disabled:"fyvr122x",focus:"fyvr122y",hover:"fyvr122z",checked:"fyvr1230"},defaultClass:"fyvr122v"},info:{conditions:{base:"fyvr1231",active:"fyvr1232",disabled:"fyvr1233",focus:"fyvr1234",hover:"fyvr1235",checked:"fyvr1236"},defaultClass:"fyvr1231"},warning:{conditions:{base:"fyvr1237",active:"fyvr1238",disabled:"fyvr1239",focus:"fyvr123a",hover:"fyvr123b",checked:"fyvr123c"},defaultClass:"fyvr1237"},gradientBackdrop:{conditions:{base:"fyvr123d",active:"fyvr123e",disabled:"fyvr123f",focus:"fyvr123g",hover:"fyvr123h",checked:"fyvr123i"},defaultClass:"fyvr123d"},gradientPrimary:{conditions:{base:"fyvr123j",active:"fyvr123k",disabled:"fyvr123l",focus:"fyvr123m",hover:"fyvr123n",checked:"fyvr123o"},defaultClass:"fyvr123j"},gradientSecondary:{conditions:{base:"fyvr123p",active:"fyvr123q",disabled:"fyvr123r",focus:"fyvr123s",hover:"fyvr123t",checked:"fyvr123u"},defaultClass:"fyvr123p"},arbitrumDark:{conditions:{base:"fyvr123v",active:"fyvr123w",disabled:"fyvr123x",focus:"fyvr123y",hover:"fyvr123z",checked:"fyvr1240"},defaultClass:"fyvr123v"},arbitrumLight:{conditions:{base:"fyvr1241",active:"fyvr1242",disabled:"fyvr1243",focus:"fyvr1244",hover:"fyvr1245",checked:"fyvr1246"},defaultClass:"fyvr1241"},avalanceDark:{conditions:{base:"fyvr1247",active:"fyvr1248",disabled:"fyvr1249",focus:"fyvr124a",hover:"fyvr124b",checked:"fyvr124c"},defaultClass:"fyvr1247"},avalanceLight:{conditions:{base:"fyvr124d",active:"fyvr124e",disabled:"fyvr124f",focus:"fyvr124g",hover:"fyvr124h",checked:"fyvr124i"},defaultClass:"fyvr124d"},bscDark:{conditions:{base:"fyvr124j",active:"fyvr124k",disabled:"fyvr124l",focus:"fyvr124m",hover:"fyvr124n",checked:"fyvr124o"},defaultClass:"fyvr124j"},bscLight:{conditions:{base:"fyvr124p",active:"fyvr124q",disabled:"fyvr124r",focus:"fyvr124s",hover:"fyvr124t",checked:"fyvr124u"},defaultClass:"fyvr124p"},ethereumDark:{conditions:{base:"fyvr124v",active:"fyvr124w",disabled:"fyvr124x",focus:"fyvr124y",hover:"fyvr124z",checked:"fyvr1250"},defaultClass:"fyvr124v"},ethereumLight:{conditions:{base:"fyvr1251",active:"fyvr1252",disabled:"fyvr1253",focus:"fyvr1254",hover:"fyvr1255",checked:"fyvr1256"},defaultClass:"fyvr1251"},gnosisDark:{conditions:{base:"fyvr1257",active:"fyvr1258",disabled:"fyvr1259",focus:"fyvr125a",hover:"fyvr125b",checked:"fyvr125c"},defaultClass:"fyvr1257"},gnosisLight:{conditions:{base:"fyvr125d",active:"fyvr125e",disabled:"fyvr125f",focus:"fyvr125g",hover:"fyvr125h",checked:"fyvr125i"},defaultClass:"fyvr125d"},polygonDark:{conditions:{base:"fyvr125j",active:"fyvr125k",disabled:"fyvr125l",focus:"fyvr125m",hover:"fyvr125n",checked:"fyvr125o"},defaultClass:"fyvr125j"},polygonLight:{conditions:{base:"fyvr125p",active:"fyvr125q",disabled:"fyvr125r",focus:"fyvr125s",hover:"fyvr125t",checked:"fyvr125u"},defaultClass:"fyvr125p"},text100:{conditions:{base:"fyvr125v",active:"fyvr125w",disabled:"fyvr125x",focus:"fyvr125y",hover:"fyvr125z",checked:"fyvr1260"},defaultClass:"fyvr125v"},text80:{conditions:{base:"fyvr1261",active:"fyvr1262",disabled:"fyvr1263",focus:"fyvr1264",hover:"fyvr1265",checked:"fyvr1266"},defaultClass:"fyvr1261"},text50:{conditions:{base:"fyvr1267",active:"fyvr1268",disabled:"fyvr1269",focus:"fyvr126a",hover:"fyvr126b",checked:"fyvr126c"},defaultClass:"fyvr1267"},textInverse100:{conditions:{base:"fyvr126d",active:"fyvr126e",disabled:"fyvr126f",focus:"fyvr126g",hover:"fyvr126h",checked:"fyvr126i"},defaultClass:"fyvr126d"},backgroundPrimary:{conditions:{base:"fyvr126j",active:"fyvr126k",disabled:"fyvr126l",focus:"fyvr126m",hover:"fyvr126n",checked:"fyvr126o"},defaultClass:"fyvr126j"},backgroundSecondary:{conditions:{base:"fyvr126p",active:"fyvr126q",disabled:"fyvr126r",focus:"fyvr126s",hover:"fyvr126t",checked:"fyvr126u"},defaultClass:"fyvr126p"},backgroundContrast:{conditions:{base:"fyvr126v",active:"fyvr126w",disabled:"fyvr126x",focus:"fyvr126y",hover:"fyvr126z",checked:"fyvr1270"},defaultClass:"fyvr126v"},backgroundMuted:{conditions:{base:"fyvr1271",active:"fyvr1272",disabled:"fyvr1273",focus:"fyvr1274",hover:"fyvr1275",checked:"fyvr1276"},defaultClass:"fyvr1271"},backgroundControl:{conditions:{base:"fyvr1277",active:"fyvr1278",disabled:"fyvr1279",focus:"fyvr127a",hover:"fyvr127b",checked:"fyvr127c"},defaultClass:"fyvr1277"},backgroundInverse:{conditions:{base:"fyvr127d",active:"fyvr127e",disabled:"fyvr127f",focus:"fyvr127g",hover:"fyvr127h",checked:"fyvr127i"},defaultClass:"fyvr127d"},backgroundBackdrop:{conditions:{base:"fyvr127j",active:"fyvr127k",disabled:"fyvr127l",focus:"fyvr127m",hover:"fyvr127n",checked:"fyvr127o"},defaultClass:"fyvr127j"},backgroundOverlay:{conditions:{base:"fyvr127p",active:"fyvr127q",disabled:"fyvr127r",focus:"fyvr127s",hover:"fyvr127t",checked:"fyvr127u"},defaultClass:"fyvr127p"},backgroundRaised:{conditions:{base:"fyvr127v",active:"fyvr127w",disabled:"fyvr127x",focus:"fyvr127y",hover:"fyvr127z",checked:"fyvr1280"},defaultClass:"fyvr127v"},buttonGlass:{conditions:{base:"fyvr1281",active:"fyvr1282",disabled:"fyvr1283",focus:"fyvr1284",hover:"fyvr1285",checked:"fyvr1286"},defaultClass:"fyvr1281"},buttonEmphasis:{conditions:{base:"fyvr1287",active:"fyvr1288",disabled:"fyvr1289",focus:"fyvr128a",hover:"fyvr128b",checked:"fyvr128c"},defaultClass:"fyvr1287"},buttonInverse:{conditions:{base:"fyvr128d",active:"fyvr128e",disabled:"fyvr128f",focus:"fyvr128g",hover:"fyvr128h",checked:"fyvr128i"},defaultClass:"fyvr128d"},borderNormal:{conditions:{base:"fyvr128j",active:"fyvr128k",disabled:"fyvr128l",focus:"fyvr128m",hover:"fyvr128n",checked:"fyvr128o"},defaultClass:"fyvr128j"},borderFocus:{conditions:{base:"fyvr128p",active:"fyvr128q",disabled:"fyvr128r",focus:"fyvr128s",hover:"fyvr128t",checked:"fyvr128u"},defaultClass:"fyvr128p"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128v",active:"fyvr128w",disabled:"fyvr128x",focus:"fyvr128y",hover:"fyvr128z",checked:"fyvr1290"},defaultClass:"fyvr128v"},dashed:{conditions:{base:"fyvr1291",active:"fyvr1292",disabled:"fyvr1293",focus:"fyvr1294",hover:"fyvr1295",checked:"fyvr1296"},defaultClass:"fyvr1291"},dotted:{conditions:{base:"fyvr1297",active:"fyvr1298",disabled:"fyvr1299",focus:"fyvr129a",hover:"fyvr129b",checked:"fyvr129c"},defaultClass:"fyvr1297"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr129d",active:"fyvr129e",disabled:"fyvr129f",focus:"fyvr129g",hover:"fyvr129h",checked:"fyvr129i"},defaultClass:"fyvr129d"},white:{conditions:{base:"fyvr129j",active:"fyvr129k",disabled:"fyvr129l",focus:"fyvr129m",hover:"fyvr129n",checked:"fyvr129o"},defaultClass:"fyvr129j"},inherit:{conditions:{base:"fyvr129p",active:"fyvr129q",disabled:"fyvr129r",focus:"fyvr129s",hover:"fyvr129t",checked:"fyvr129u"},defaultClass:"fyvr129p"},transparent:{conditions:{base:"fyvr129v",active:"fyvr129w",disabled:"fyvr129x",focus:"fyvr129y",hover:"fyvr129z",checked:"fyvr12a0"},defaultClass:"fyvr129v"},positive:{conditions:{base:"fyvr12a1",active:"fyvr12a2",disabled:"fyvr12a3",focus:"fyvr12a4",hover:"fyvr12a5",checked:"fyvr12a6"},defaultClass:"fyvr12a1"},negative:{conditions:{base:"fyvr12a7",active:"fyvr12a8",disabled:"fyvr12a9",focus:"fyvr12aa",hover:"fyvr12ab",checked:"fyvr12ac"},defaultClass:"fyvr12a7"},info:{conditions:{base:"fyvr12ad",active:"fyvr12ae",disabled:"fyvr12af",focus:"fyvr12ag",hover:"fyvr12ah",checked:"fyvr12ai"},defaultClass:"fyvr12ad"},warning:{conditions:{base:"fyvr12aj",active:"fyvr12ak",disabled:"fyvr12al",focus:"fyvr12am",hover:"fyvr12an",checked:"fyvr12ao"},defaultClass:"fyvr12aj"},gradientBackdrop:{conditions:{base:"fyvr12ap",active:"fyvr12aq",disabled:"fyvr12ar",focus:"fyvr12as",hover:"fyvr12at",checked:"fyvr12au"},defaultClass:"fyvr12ap"},gradientPrimary:{conditions:{base:"fyvr12av",active:"fyvr12aw",disabled:"fyvr12ax",focus:"fyvr12ay",hover:"fyvr12az",checked:"fyvr12b0"},defaultClass:"fyvr12av"},gradientSecondary:{conditions:{base:"fyvr12b1",active:"fyvr12b2",disabled:"fyvr12b3",focus:"fyvr12b4",hover:"fyvr12b5",checked:"fyvr12b6"},defaultClass:"fyvr12b1"},arbitrumDark:{conditions:{base:"fyvr12b7",active:"fyvr12b8",disabled:"fyvr12b9",focus:"fyvr12ba",hover:"fyvr12bb",checked:"fyvr12bc"},defaultClass:"fyvr12b7"},arbitrumLight:{conditions:{base:"fyvr12bd",active:"fyvr12be",disabled:"fyvr12bf",focus:"fyvr12bg",hover:"fyvr12bh",checked:"fyvr12bi"},defaultClass:"fyvr12bd"},avalanceDark:{conditions:{base:"fyvr12bj",active:"fyvr12bk",disabled:"fyvr12bl",focus:"fyvr12bm",hover:"fyvr12bn",checked:"fyvr12bo"},defaultClass:"fyvr12bj"},avalanceLight:{conditions:{base:"fyvr12bp",active:"fyvr12bq",disabled:"fyvr12br",focus:"fyvr12bs",hover:"fyvr12bt",checked:"fyvr12bu"},defaultClass:"fyvr12bp"},bscDark:{conditions:{base:"fyvr12bv",active:"fyvr12bw",disabled:"fyvr12bx",focus:"fyvr12by",hover:"fyvr12bz",checked:"fyvr12c0"},defaultClass:"fyvr12bv"},bscLight:{conditions:{base:"fyvr12c1",active:"fyvr12c2",disabled:"fyvr12c3",focus:"fyvr12c4",hover:"fyvr12c5",checked:"fyvr12c6"},defaultClass:"fyvr12c1"},ethereumDark:{conditions:{base:"fyvr12c7",active:"fyvr12c8",disabled:"fyvr12c9",focus:"fyvr12ca",hover:"fyvr12cb",checked:"fyvr12cc"},defaultClass:"fyvr12c7"},ethereumLight:{conditions:{base:"fyvr12cd",active:"fyvr12ce",disabled:"fyvr12cf",focus:"fyvr12cg",hover:"fyvr12ch",checked:"fyvr12ci"},defaultClass:"fyvr12cd"},gnosisDark:{conditions:{base:"fyvr12cj",active:"fyvr12ck",disabled:"fyvr12cl",focus:"fyvr12cm",hover:"fyvr12cn",checked:"fyvr12co"},defaultClass:"fyvr12cj"},gnosisLight:{conditions:{base:"fyvr12cp",active:"fyvr12cq",disabled:"fyvr12cr",focus:"fyvr12cs",hover:"fyvr12ct",checked:"fyvr12cu"},defaultClass:"fyvr12cp"},polygonDark:{conditions:{base:"fyvr12cv",active:"fyvr12cw",disabled:"fyvr12cx",focus:"fyvr12cy",hover:"fyvr12cz",checked:"fyvr12d0"},defaultClass:"fyvr12cv"},polygonLight:{conditions:{base:"fyvr12d1",active:"fyvr12d2",disabled:"fyvr12d3",focus:"fyvr12d4",hover:"fyvr12d5",checked:"fyvr12d6"},defaultClass:"fyvr12d1"},text100:{conditions:{base:"fyvr12d7",active:"fyvr12d8",disabled:"fyvr12d9",focus:"fyvr12da",hover:"fyvr12db",checked:"fyvr12dc"},defaultClass:"fyvr12d7"},text80:{conditions:{base:"fyvr12dd",active:"fyvr12de",disabled:"fyvr12df",focus:"fyvr12dg",hover:"fyvr12dh",checked:"fyvr12di"},defaultClass:"fyvr12dd"},text50:{conditions:{base:"fyvr12dj",active:"fyvr12dk",disabled:"fyvr12dl",focus:"fyvr12dm",hover:"fyvr12dn",checked:"fyvr12do"},defaultClass:"fyvr12dj"},textInverse100:{conditions:{base:"fyvr12dp",active:"fyvr12dq",disabled:"fyvr12dr",focus:"fyvr12ds",hover:"fyvr12dt",checked:"fyvr12du"},defaultClass:"fyvr12dp"},backgroundPrimary:{conditions:{base:"fyvr12dv",active:"fyvr12dw",disabled:"fyvr12dx",focus:"fyvr12dy",hover:"fyvr12dz",checked:"fyvr12e0"},defaultClass:"fyvr12dv"},backgroundSecondary:{conditions:{base:"fyvr12e1",active:"fyvr12e2",disabled:"fyvr12e3",focus:"fyvr12e4",hover:"fyvr12e5",checked:"fyvr12e6"},defaultClass:"fyvr12e1"},backgroundContrast:{conditions:{base:"fyvr12e7",active:"fyvr12e8",disabled:"fyvr12e9",focus:"fyvr12ea",hover:"fyvr12eb",checked:"fyvr12ec"},defaultClass:"fyvr12e7"},backgroundMuted:{conditions:{base:"fyvr12ed",active:"fyvr12ee",disabled:"fyvr12ef",focus:"fyvr12eg",hover:"fyvr12eh",checked:"fyvr12ei"},defaultClass:"fyvr12ed"},backgroundControl:{conditions:{base:"fyvr12ej",active:"fyvr12ek",disabled:"fyvr12el",focus:"fyvr12em",hover:"fyvr12en",checked:"fyvr12eo"},defaultClass:"fyvr12ej"},backgroundInverse:{conditions:{base:"fyvr12ep",active:"fyvr12eq",disabled:"fyvr12er",focus:"fyvr12es",hover:"fyvr12et",checked:"fyvr12eu"},defaultClass:"fyvr12ep"},backgroundBackdrop:{conditions:{base:"fyvr12ev",active:"fyvr12ew",disabled:"fyvr12ex",focus:"fyvr12ey",hover:"fyvr12ez",checked:"fyvr12f0"},defaultClass:"fyvr12ev"},backgroundOverlay:{conditions:{base:"fyvr12f1",active:"fyvr12f2",disabled:"fyvr12f3",focus:"fyvr12f4",hover:"fyvr12f5",checked:"fyvr12f6"},defaultClass:"fyvr12f1"},backgroundRaised:{conditions:{base:"fyvr12f7",active:"fyvr12f8",disabled:"fyvr12f9",focus:"fyvr12fa",hover:"fyvr12fb",checked:"fyvr12fc"},defaultClass:"fyvr12f7"},buttonGlass:{conditions:{base:"fyvr12fd",active:"fyvr12fe",disabled:"fyvr12ff",focus:"fyvr12fg",hover:"fyvr12fh",checked:"fyvr12fi"},defaultClass:"fyvr12fd"},buttonEmphasis:{conditions:{base:"fyvr12fj",active:"fyvr12fk",disabled:"fyvr12fl",focus:"fyvr12fm",hover:"fyvr12fn",checked:"fyvr12fo"},defaultClass:"fyvr12fj"},buttonInverse:{conditions:{base:"fyvr12fp",active:"fyvr12fq",disabled:"fyvr12fr",focus:"fyvr12fs",hover:"fyvr12ft",checked:"fyvr12fu"},defaultClass:"fyvr12fp"},borderNormal:{conditions:{base:"fyvr12fv",active:"fyvr12fw",disabled:"fyvr12fx",focus:"fyvr12fy",hover:"fyvr12fz",checked:"fyvr12g0"},defaultClass:"fyvr12fv"},borderFocus:{conditions:{base:"fyvr12g1",active:"fyvr12g2",disabled:"fyvr12g3",focus:"fyvr12g4",hover:"fyvr12g5",checked:"fyvr12g6"},defaultClass:"fyvr12g1"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12g7",active:"fyvr12g8",disabled:"fyvr12g9",focus:"fyvr12ga",hover:"fyvr12gb",checked:"fyvr12gc"},defaultClass:"fyvr12g7"},dashed:{conditions:{base:"fyvr12gd",active:"fyvr12ge",disabled:"fyvr12gf",focus:"fyvr12gg",hover:"fyvr12gh",checked:"fyvr12gi"},defaultClass:"fyvr12gd"},dotted:{conditions:{base:"fyvr12gj",active:"fyvr12gk",disabled:"fyvr12gl",focus:"fyvr12gm",hover:"fyvr12gn",checked:"fyvr12go"},defaultClass:"fyvr12gj"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12gp",active:"fyvr12gq",disabled:"fyvr12gr",focus:"fyvr12gs",hover:"fyvr12gt",checked:"fyvr12gu"},defaultClass:"fyvr12gp"},white:{conditions:{base:"fyvr12gv",active:"fyvr12gw",disabled:"fyvr12gx",focus:"fyvr12gy",hover:"fyvr12gz",checked:"fyvr12h0"},defaultClass:"fyvr12gv"},inherit:{conditions:{base:"fyvr12h1",active:"fyvr12h2",disabled:"fyvr12h3",focus:"fyvr12h4",hover:"fyvr12h5",checked:"fyvr12h6"},defaultClass:"fyvr12h1"},transparent:{conditions:{base:"fyvr12h7",active:"fyvr12h8",disabled:"fyvr12h9",focus:"fyvr12ha",hover:"fyvr12hb",checked:"fyvr12hc"},defaultClass:"fyvr12h7"},positive:{conditions:{base:"fyvr12hd",active:"fyvr12he",disabled:"fyvr12hf",focus:"fyvr12hg",hover:"fyvr12hh",checked:"fyvr12hi"},defaultClass:"fyvr12hd"},negative:{conditions:{base:"fyvr12hj",active:"fyvr12hk",disabled:"fyvr12hl",focus:"fyvr12hm",hover:"fyvr12hn",checked:"fyvr12ho"},defaultClass:"fyvr12hj"},info:{conditions:{base:"fyvr12hp",active:"fyvr12hq",disabled:"fyvr12hr",focus:"fyvr12hs",hover:"fyvr12ht",checked:"fyvr12hu"},defaultClass:"fyvr12hp"},warning:{conditions:{base:"fyvr12hv",active:"fyvr12hw",disabled:"fyvr12hx",focus:"fyvr12hy",hover:"fyvr12hz",checked:"fyvr12i0"},defaultClass:"fyvr12hv"},gradientBackdrop:{conditions:{base:"fyvr12i1",active:"fyvr12i2",disabled:"fyvr12i3",focus:"fyvr12i4",hover:"fyvr12i5",checked:"fyvr12i6"},defaultClass:"fyvr12i1"},gradientPrimary:{conditions:{base:"fyvr12i7",active:"fyvr12i8",disabled:"fyvr12i9",focus:"fyvr12ia",hover:"fyvr12ib",checked:"fyvr12ic"},defaultClass:"fyvr12i7"},gradientSecondary:{conditions:{base:"fyvr12id",active:"fyvr12ie",disabled:"fyvr12if",focus:"fyvr12ig",hover:"fyvr12ih",checked:"fyvr12ii"},defaultClass:"fyvr12id"},arbitrumDark:{conditions:{base:"fyvr12ij",active:"fyvr12ik",disabled:"fyvr12il",focus:"fyvr12im",hover:"fyvr12in",checked:"fyvr12io"},defaultClass:"fyvr12ij"},arbitrumLight:{conditions:{base:"fyvr12ip",active:"fyvr12iq",disabled:"fyvr12ir",focus:"fyvr12is",hover:"fyvr12it",checked:"fyvr12iu"},defaultClass:"fyvr12ip"},avalanceDark:{conditions:{base:"fyvr12iv",active:"fyvr12iw",disabled:"fyvr12ix",focus:"fyvr12iy",hover:"fyvr12iz",checked:"fyvr12j0"},defaultClass:"fyvr12iv"},avalanceLight:{conditions:{base:"fyvr12j1",active:"fyvr12j2",disabled:"fyvr12j3",focus:"fyvr12j4",hover:"fyvr12j5",checked:"fyvr12j6"},defaultClass:"fyvr12j1"},bscDark:{conditions:{base:"fyvr12j7",active:"fyvr12j8",disabled:"fyvr12j9",focus:"fyvr12ja",hover:"fyvr12jb",checked:"fyvr12jc"},defaultClass:"fyvr12j7"},bscLight:{conditions:{base:"fyvr12jd",active:"fyvr12je",disabled:"fyvr12jf",focus:"fyvr12jg",hover:"fyvr12jh",checked:"fyvr12ji"},defaultClass:"fyvr12jd"},ethereumDark:{conditions:{base:"fyvr12jj",active:"fyvr12jk",disabled:"fyvr12jl",focus:"fyvr12jm",hover:"fyvr12jn",checked:"fyvr12jo"},defaultClass:"fyvr12jj"},ethereumLight:{conditions:{base:"fyvr12jp",active:"fyvr12jq",disabled:"fyvr12jr",focus:"fyvr12js",hover:"fyvr12jt",checked:"fyvr12ju"},defaultClass:"fyvr12jp"},gnosisDark:{conditions:{base:"fyvr12jv",active:"fyvr12jw",disabled:"fyvr12jx",focus:"fyvr12jy",hover:"fyvr12jz",checked:"fyvr12k0"},defaultClass:"fyvr12jv"},gnosisLight:{conditions:{base:"fyvr12k1",active:"fyvr12k2",disabled:"fyvr12k3",focus:"fyvr12k4",hover:"fyvr12k5",checked:"fyvr12k6"},defaultClass:"fyvr12k1"},polygonDark:{conditions:{base:"fyvr12k7",active:"fyvr12k8",disabled:"fyvr12k9",focus:"fyvr12ka",hover:"fyvr12kb",checked:"fyvr12kc"},defaultClass:"fyvr12k7"},polygonLight:{conditions:{base:"fyvr12kd",active:"fyvr12ke",disabled:"fyvr12kf",focus:"fyvr12kg",hover:"fyvr12kh",checked:"fyvr12ki"},defaultClass:"fyvr12kd"},text100:{conditions:{base:"fyvr12kj",active:"fyvr12kk",disabled:"fyvr12kl",focus:"fyvr12km",hover:"fyvr12kn",checked:"fyvr12ko"},defaultClass:"fyvr12kj"},text80:{conditions:{base:"fyvr12kp",active:"fyvr12kq",disabled:"fyvr12kr",focus:"fyvr12ks",hover:"fyvr12kt",checked:"fyvr12ku"},defaultClass:"fyvr12kp"},text50:{conditions:{base:"fyvr12kv",active:"fyvr12kw",disabled:"fyvr12kx",focus:"fyvr12ky",hover:"fyvr12kz",checked:"fyvr12l0"},defaultClass:"fyvr12kv"},textInverse100:{conditions:{base:"fyvr12l1",active:"fyvr12l2",disabled:"fyvr12l3",focus:"fyvr12l4",hover:"fyvr12l5",checked:"fyvr12l6"},defaultClass:"fyvr12l1"},backgroundPrimary:{conditions:{base:"fyvr12l7",active:"fyvr12l8",disabled:"fyvr12l9",focus:"fyvr12la",hover:"fyvr12lb",checked:"fyvr12lc"},defaultClass:"fyvr12l7"},backgroundSecondary:{conditions:{base:"fyvr12ld",active:"fyvr12le",disabled:"fyvr12lf",focus:"fyvr12lg",hover:"fyvr12lh",checked:"fyvr12li"},defaultClass:"fyvr12ld"},backgroundContrast:{conditions:{base:"fyvr12lj",active:"fyvr12lk",disabled:"fyvr12ll",focus:"fyvr12lm",hover:"fyvr12ln",checked:"fyvr12lo"},defaultClass:"fyvr12lj"},backgroundMuted:{conditions:{base:"fyvr12lp",active:"fyvr12lq",disabled:"fyvr12lr",focus:"fyvr12ls",hover:"fyvr12lt",checked:"fyvr12lu"},defaultClass:"fyvr12lp"},backgroundControl:{conditions:{base:"fyvr12lv",active:"fyvr12lw",disabled:"fyvr12lx",focus:"fyvr12ly",hover:"fyvr12lz",checked:"fyvr12m0"},defaultClass:"fyvr12lv"},backgroundInverse:{conditions:{base:"fyvr12m1",active:"fyvr12m2",disabled:"fyvr12m3",focus:"fyvr12m4",hover:"fyvr12m5",checked:"fyvr12m6"},defaultClass:"fyvr12m1"},backgroundBackdrop:{conditions:{base:"fyvr12m7",active:"fyvr12m8",disabled:"fyvr12m9",focus:"fyvr12ma",hover:"fyvr12mb",checked:"fyvr12mc"},defaultClass:"fyvr12m7"},backgroundOverlay:{conditions:{base:"fyvr12md",active:"fyvr12me",disabled:"fyvr12mf",focus:"fyvr12mg",hover:"fyvr12mh",checked:"fyvr12mi"},defaultClass:"fyvr12md"},backgroundRaised:{conditions:{base:"fyvr12mj",active:"fyvr12mk",disabled:"fyvr12ml",focus:"fyvr12mm",hover:"fyvr12mn",checked:"fyvr12mo"},defaultClass:"fyvr12mj"},buttonGlass:{conditions:{base:"fyvr12mp",active:"fyvr12mq",disabled:"fyvr12mr",focus:"fyvr12ms",hover:"fyvr12mt",checked:"fyvr12mu"},defaultClass:"fyvr12mp"},buttonEmphasis:{conditions:{base:"fyvr12mv",active:"fyvr12mw",disabled:"fyvr12mx",focus:"fyvr12my",hover:"fyvr12mz",checked:"fyvr12n0"},defaultClass:"fyvr12mv"},buttonInverse:{conditions:{base:"fyvr12n1",active:"fyvr12n2",disabled:"fyvr12n3",focus:"fyvr12n4",hover:"fyvr12n5",checked:"fyvr12n6"},defaultClass:"fyvr12n1"},borderNormal:{conditions:{base:"fyvr12n7",active:"fyvr12n8",disabled:"fyvr12n9",focus:"fyvr12na",hover:"fyvr12nb",checked:"fyvr12nc"},defaultClass:"fyvr12n7"},borderFocus:{conditions:{base:"fyvr12nd",active:"fyvr12ne",disabled:"fyvr12nf",focus:"fyvr12ng",hover:"fyvr12nh",checked:"fyvr12ni"},defaultClass:"fyvr12nd"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12nj",active:"fyvr12nk",disabled:"fyvr12nl",focus:"fyvr12nm",hover:"fyvr12nn",checked:"fyvr12no"},defaultClass:"fyvr12nj"},dashed:{conditions:{base:"fyvr12np",active:"fyvr12nq",disabled:"fyvr12nr",focus:"fyvr12ns",hover:"fyvr12nt",checked:"fyvr12nu"},defaultClass:"fyvr12np"},dotted:{conditions:{base:"fyvr12nv",active:"fyvr12nw",disabled:"fyvr12nx",focus:"fyvr12ny",hover:"fyvr12nz",checked:"fyvr12o0"},defaultClass:"fyvr12nv"}}},border:{values:{none:{conditions:{base:"fyvr12o1",active:"fyvr12o2",disabled:"fyvr12o3",focus:"fyvr12o4",hover:"fyvr12o5",checked:"fyvr12o6"},defaultClass:"fyvr12o1"}}},color:{values:{black:{conditions:{base:"fyvr12o7",active:"fyvr12o8",disabled:"fyvr12o9",focus:"fyvr12oa",hover:"fyvr12ob",checked:"fyvr12oc"},defaultClass:"fyvr12o7"},white:{conditions:{base:"fyvr12od",active:"fyvr12oe",disabled:"fyvr12of",focus:"fyvr12og",hover:"fyvr12oh",checked:"fyvr12oi"},defaultClass:"fyvr12od"},inherit:{conditions:{base:"fyvr12oj",active:"fyvr12ok",disabled:"fyvr12ol",focus:"fyvr12om",hover:"fyvr12on",checked:"fyvr12oo"},defaultClass:"fyvr12oj"},transparent:{conditions:{base:"fyvr12op",active:"fyvr12oq",disabled:"fyvr12or",focus:"fyvr12os",hover:"fyvr12ot",checked:"fyvr12ou"},defaultClass:"fyvr12op"},positive:{conditions:{base:"fyvr12ov",active:"fyvr12ow",disabled:"fyvr12ox",focus:"fyvr12oy",hover:"fyvr12oz",checked:"fyvr12p0"},defaultClass:"fyvr12ov"},negative:{conditions:{base:"fyvr12p1",active:"fyvr12p2",disabled:"fyvr12p3",focus:"fyvr12p4",hover:"fyvr12p5",checked:"fyvr12p6"},defaultClass:"fyvr12p1"},info:{conditions:{base:"fyvr12p7",active:"fyvr12p8",disabled:"fyvr12p9",focus:"fyvr12pa",hover:"fyvr12pb",checked:"fyvr12pc"},defaultClass:"fyvr12p7"},warning:{conditions:{base:"fyvr12pd",active:"fyvr12pe",disabled:"fyvr12pf",focus:"fyvr12pg",hover:"fyvr12ph",checked:"fyvr12pi"},defaultClass:"fyvr12pd"},gradientBackdrop:{conditions:{base:"fyvr12pj",active:"fyvr12pk",disabled:"fyvr12pl",focus:"fyvr12pm",hover:"fyvr12pn",checked:"fyvr12po"},defaultClass:"fyvr12pj"},gradientPrimary:{conditions:{base:"fyvr12pp",active:"fyvr12pq",disabled:"fyvr12pr",focus:"fyvr12ps",hover:"fyvr12pt",checked:"fyvr12pu"},defaultClass:"fyvr12pp"},gradientSecondary:{conditions:{base:"fyvr12pv",active:"fyvr12pw",disabled:"fyvr12px",focus:"fyvr12py",hover:"fyvr12pz",checked:"fyvr12q0"},defaultClass:"fyvr12pv"},arbitrumDark:{conditions:{base:"fyvr12q1",active:"fyvr12q2",disabled:"fyvr12q3",focus:"fyvr12q4",hover:"fyvr12q5",checked:"fyvr12q6"},defaultClass:"fyvr12q1"},arbitrumLight:{conditions:{base:"fyvr12q7",active:"fyvr12q8",disabled:"fyvr12q9",focus:"fyvr12qa",hover:"fyvr12qb",checked:"fyvr12qc"},defaultClass:"fyvr12q7"},avalanceDark:{conditions:{base:"fyvr12qd",active:"fyvr12qe",disabled:"fyvr12qf",focus:"fyvr12qg",hover:"fyvr12qh",checked:"fyvr12qi"},defaultClass:"fyvr12qd"},avalanceLight:{conditions:{base:"fyvr12qj",active:"fyvr12qk",disabled:"fyvr12ql",focus:"fyvr12qm",hover:"fyvr12qn",checked:"fyvr12qo"},defaultClass:"fyvr12qj"},bscDark:{conditions:{base:"fyvr12qp",active:"fyvr12qq",disabled:"fyvr12qr",focus:"fyvr12qs",hover:"fyvr12qt",checked:"fyvr12qu"},defaultClass:"fyvr12qp"},bscLight:{conditions:{base:"fyvr12qv",active:"fyvr12qw",disabled:"fyvr12qx",focus:"fyvr12qy",hover:"fyvr12qz",checked:"fyvr12r0"},defaultClass:"fyvr12qv"},ethereumDark:{conditions:{base:"fyvr12r1",active:"fyvr12r2",disabled:"fyvr12r3",focus:"fyvr12r4",hover:"fyvr12r5",checked:"fyvr12r6"},defaultClass:"fyvr12r1"},ethereumLight:{conditions:{base:"fyvr12r7",active:"fyvr12r8",disabled:"fyvr12r9",focus:"fyvr12ra",hover:"fyvr12rb",checked:"fyvr12rc"},defaultClass:"fyvr12r7"},gnosisDark:{conditions:{base:"fyvr12rd",active:"fyvr12re",disabled:"fyvr12rf",focus:"fyvr12rg",hover:"fyvr12rh",checked:"fyvr12ri"},defaultClass:"fyvr12rd"},gnosisLight:{conditions:{base:"fyvr12rj",active:"fyvr12rk",disabled:"fyvr12rl",focus:"fyvr12rm",hover:"fyvr12rn",checked:"fyvr12ro"},defaultClass:"fyvr12rj"},polygonDark:{conditions:{base:"fyvr12rp",active:"fyvr12rq",disabled:"fyvr12rr",focus:"fyvr12rs",hover:"fyvr12rt",checked:"fyvr12ru"},defaultClass:"fyvr12rp"},polygonLight:{conditions:{base:"fyvr12rv",active:"fyvr12rw",disabled:"fyvr12rx",focus:"fyvr12ry",hover:"fyvr12rz",checked:"fyvr12s0"},defaultClass:"fyvr12rv"},text100:{conditions:{base:"fyvr12s1",active:"fyvr12s2",disabled:"fyvr12s3",focus:"fyvr12s4",hover:"fyvr12s5",checked:"fyvr12s6"},defaultClass:"fyvr12s1"},text80:{conditions:{base:"fyvr12s7",active:"fyvr12s8",disabled:"fyvr12s9",focus:"fyvr12sa",hover:"fyvr12sb",checked:"fyvr12sc"},defaultClass:"fyvr12s7"},text50:{conditions:{base:"fyvr12sd",active:"fyvr12se",disabled:"fyvr12sf",focus:"fyvr12sg",hover:"fyvr12sh",checked:"fyvr12si"},defaultClass:"fyvr12sd"},textInverse100:{conditions:{base:"fyvr12sj",active:"fyvr12sk",disabled:"fyvr12sl",focus:"fyvr12sm",hover:"fyvr12sn",checked:"fyvr12so"},defaultClass:"fyvr12sj"},backgroundPrimary:{conditions:{base:"fyvr12sp",active:"fyvr12sq",disabled:"fyvr12sr",focus:"fyvr12ss",hover:"fyvr12st",checked:"fyvr12su"},defaultClass:"fyvr12sp"},backgroundSecondary:{conditions:{base:"fyvr12sv",active:"fyvr12sw",disabled:"fyvr12sx",focus:"fyvr12sy",hover:"fyvr12sz",checked:"fyvr12t0"},defaultClass:"fyvr12sv"},backgroundContrast:{conditions:{base:"fyvr12t1",active:"fyvr12t2",disabled:"fyvr12t3",focus:"fyvr12t4",hover:"fyvr12t5",checked:"fyvr12t6"},defaultClass:"fyvr12t1"},backgroundMuted:{conditions:{base:"fyvr12t7",active:"fyvr12t8",disabled:"fyvr12t9",focus:"fyvr12ta",hover:"fyvr12tb",checked:"fyvr12tc"},defaultClass:"fyvr12t7"},backgroundControl:{conditions:{base:"fyvr12td",active:"fyvr12te",disabled:"fyvr12tf",focus:"fyvr12tg",hover:"fyvr12th",checked:"fyvr12ti"},defaultClass:"fyvr12td"},backgroundInverse:{conditions:{base:"fyvr12tj",active:"fyvr12tk",disabled:"fyvr12tl",focus:"fyvr12tm",hover:"fyvr12tn",checked:"fyvr12to"},defaultClass:"fyvr12tj"},backgroundBackdrop:{conditions:{base:"fyvr12tp",active:"fyvr12tq",disabled:"fyvr12tr",focus:"fyvr12ts",hover:"fyvr12tt",checked:"fyvr12tu"},defaultClass:"fyvr12tp"},backgroundOverlay:{conditions:{base:"fyvr12tv",active:"fyvr12tw",disabled:"fyvr12tx",focus:"fyvr12ty",hover:"fyvr12tz",checked:"fyvr12u0"},defaultClass:"fyvr12tv"},backgroundRaised:{conditions:{base:"fyvr12u1",active:"fyvr12u2",disabled:"fyvr12u3",focus:"fyvr12u4",hover:"fyvr12u5",checked:"fyvr12u6"},defaultClass:"fyvr12u1"},buttonGlass:{conditions:{base:"fyvr12u7",active:"fyvr12u8",disabled:"fyvr12u9",focus:"fyvr12ua",hover:"fyvr12ub",checked:"fyvr12uc"},defaultClass:"fyvr12u7"},buttonEmphasis:{conditions:{base:"fyvr12ud",active:"fyvr12ue",disabled:"fyvr12uf",focus:"fyvr12ug",hover:"fyvr12uh",checked:"fyvr12ui"},defaultClass:"fyvr12ud"},buttonInverse:{conditions:{base:"fyvr12uj",active:"fyvr12uk",disabled:"fyvr12ul",focus:"fyvr12um",hover:"fyvr12un",checked:"fyvr12uo"},defaultClass:"fyvr12uj"},borderNormal:{conditions:{base:"fyvr12up",active:"fyvr12uq",disabled:"fyvr12ur",focus:"fyvr12us",hover:"fyvr12ut",checked:"fyvr12uu"},defaultClass:"fyvr12up"},borderFocus:{conditions:{base:"fyvr12uv",active:"fyvr12uw",disabled:"fyvr12ux",focus:"fyvr12uy",hover:"fyvr12uz",checked:"fyvr12v0"},defaultClass:"fyvr12uv"}}},cursor:{values:{default:{conditions:{base:"fyvr12v1",active:"fyvr12v2",disabled:"fyvr12v3",focus:"fyvr12v4",hover:"fyvr12v5",checked:"fyvr12v6"},defaultClass:"fyvr12v1"},pointer:{conditions:{base:"fyvr12v7",active:"fyvr12v8",disabled:"fyvr12v9",focus:"fyvr12va",hover:"fyvr12vb",checked:"fyvr12vc"},defaultClass:"fyvr12v7"},text:{conditions:{base:"fyvr12vd",active:"fyvr12ve",disabled:"fyvr12vf",focus:"fyvr12vg",hover:"fyvr12vh",checked:"fyvr12vi"},defaultClass:"fyvr12vd"}}},opacity:{values:{0:{conditions:{base:"fyvr12vj",active:"fyvr12vk",disabled:"fyvr12vl",focus:"fyvr12vm",hover:"fyvr12vn",checked:"fyvr12vo"},defaultClass:"fyvr12vj"},50:{conditions:{base:"fyvr12vp",active:"fyvr12vq",disabled:"fyvr12vr",focus:"fyvr12vs",hover:"fyvr12vt",checked:"fyvr12vu"},defaultClass:"fyvr12vp"},80:{conditions:{base:"fyvr12vv",active:"fyvr12vw",disabled:"fyvr12vx",focus:"fyvr12vy",hover:"fyvr12vz",checked:"fyvr12w0"},defaultClass:"fyvr12vv"},100:{conditions:{base:"fyvr12w1",active:"fyvr12w2",disabled:"fyvr12w3",focus:"fyvr12w4",hover:"fyvr12w5",checked:"fyvr12w6"},defaultClass:"fyvr12w1"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12w7",active:"fyvr12w8",disabled:"fyvr12w9",focus:"fyvr12wa",hover:"fyvr12wb",checked:"fyvr12wc"},defaultClass:"fyvr12w7"},auto:{conditions:{base:"fyvr12wd",active:"fyvr12we",disabled:"fyvr12wf",focus:"fyvr12wg",hover:"fyvr12wh",checked:"fyvr12wi"},defaultClass:"fyvr12wd"}}},outline:{values:{none:{conditions:{base:"fyvr12wj",active:"fyvr12wk",disabled:"fyvr12wl",focus:"fyvr12wm",hover:"fyvr12wn",checked:"fyvr12wo"},defaultClass:"fyvr12wj"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12wp",active:"fyvr12wq",disabled:"fyvr12wr",focus:"fyvr12ws",hover:"fyvr12wt",checked:"fyvr12wu"},defaultClass:"fyvr12wp"}}}}});const _O=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],Oy=t=>(t.display||(t.display=Object.keys(t).some(e=>_O.includes(e))?"flex":void 0),WS(t));Oy.properties=WS.properties;function GS(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e{const{as:r="div",sx:n={},className:i,...s}=t,o={},a={};for(const c in s)Oy.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=Oy({...o,...n});return p.createElement(r,{className:fn(l,i),...a,ref:e})});var KS={exports:{}},ic={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var kw;function OO(){if(kw)return ic;kw=1;var t=gr,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var f,u={},d=null,v=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)n.call(l,f)&&!s.hasOwnProperty(f)&&(u[f]=l[f]);if(a&&a.defaultProps)for(f in l=a.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:e,type:a,key:d,ref:v,props:u,_owner:i.current}}return ic.Fragment=r,ic.jsx=o,ic.jsxs=o,ic}KS.exports=OO();var J=KS.exports;function NO(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DO(t){var e=NO(t,"string");return typeof e=="symbol"?e:String(e)}function LO(t,e,r){return e=DO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Rw(t){for(var e=1;e{for(var n of Object.keys(t)){var i;if(t[n]!==((i=e[n])!==null&&i!==void 0?i:r[n]))return!1}return!0},Qt=t=>{var e=r=>{var n=t.defaultClassName,i=Rw(Rw({},t.defaultVariants),r);for(var s in i){var o,a=(o=i[s])!==null&&o!==void 0?o:t.defaultVariants[s];if(a!=null){var l=a;typeof l=="boolean"&&(l=l===!0?"true":"false");var c=t.variantClassNames[s][l];c&&(n+=" "+c)}}for(var[f,u]of t.compoundVariants)jO(f,i,t.defaultVariants)&&(n+=" "+u);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return Tw(t.variantClassNames,r=>Tw(r,n=>n.split(" ")[0]))}},e};Qt({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11ov",warning:"_2q9vfj9 _2q9vfj1 fyvr11p1",success:"_2q9vfja _2q9vfj2 fyvr11oj",error:"_2q9vfjb _2q9vfj3 fyvr11op"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _2q9vfj4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _2q9vfj5 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc _2q9vfj6 fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const Ms=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return J.jsx(ee,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var BO=Qt({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"_1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"_1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"_1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"_1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"_1qxj1ibh _1qxj1ib7 fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11ls fyvr11m8 fyvr11n9 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Se=p.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:i,hidden:s,italic:o,underline:a,children:l,ellipsis:c,uppercase:f,capitalize:u,...d}=t,v=CO[n];return J.jsx(ee,{as:r,className:fn(i,BO({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...v,...d,children:l})});var $O=Qt({defaultClassName:"_140wn8ni _140wn8n0 fyvr11ls fyvr11m8 fyvr11n9 fyvr11ko fyvr12o1 fyvr11n2 fyvr11h0 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11od fyvr12s1",ghost:"_140wn8nk _140wn8n2 fyvr11od fyvr12s1",feature:"_140wn8nl _140wn8n3 fyvr11pj fyvr12od",primary:"_140wn8nm _140wn8n4 fyvr11pd fyvr12od",glass:"_140wn8nn _140wn8n5 fyvr11tv fyvr12s1",emphasis:"_140wn8no _140wn8n6 fyvr11u1 fyvr12s1",raised:"_140wn8np _140wn8n7 fyvr11tp fyvr12s1",danger:"_140wn8nq _140wn8n8 fyvr11op fyvr12od",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _140wn8n9 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11od fyvr12sd"},shape:{circle:"_140wn8ns _140wn8na fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"_140wn8nt _140wn8nb fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"_140wn8nu _140wn8nc fyvr12v1 fyvr12vp",false:"_140wn8nv _140wn8nd fyvr12v7 fyvr12w1 fyvr12vz"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _140wn8ne fyvr1ws fyvr1yo",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nf fyvr1ww fyvr1ys",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8ng fyvr1x0 fyvr1yw",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nh fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const cr=p.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:i,disabled:s=!1,display:o="inline-flex",fontWeight:a="bold",pending:l=!1,label:c,leftIcon:f,rightIcon:u,size:d="md",variant:v="glass",width:g="fit",shape:y="circle",type:w="button",...x}=t,b=f!==void 0&&c!==void 0,A=u!==void 0&&c!==void 0,P=f!==void 0&&c===void 0,_=d==="xs"?"xs":"sm";return J.jsx(ee,{as:r,className:fn(i,$O({activeOutline:n,disabled:s||l,hasLeftIcon:b,hasRightIcon:A,iconOnly:P,size:v==="text"?void 0:d,shape:v==="text"?void 0:y,variant:v})),disabled:s||l,display:o,fontWeight:a,ref:e,type:w,width:g,...x,children:P?J.jsx(f,{size:_}):J.jsxs(ee,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[J.jsxs(ee,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&J.jsx(f,{size:_}),J.jsx(Se,{children:c})]}),u&&J.jsx(u,{size:_})]})})});var FO=Qt({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11a4 fyvr11ag fyvr11as fyvr11b4 fyvr12vz fyvr12v7 _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12nj fyvr12g7 fyvr121j fyvr128v"},blur:{true:"rhmai67 rhmai62 fyvr11ms"}},defaultVariants:{},compoundVariants:[]});p.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return J.jsx(ee,{className:fn(r,FO({clickable:i,outlined:s,disabled:o,blur:a})),background:s?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:l,ref:e,...c,children:n})});function Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>UO(r,e))}function It(...t){return p.useCallback(QS(...t),t)}function qr(t,e=[]){let r=[];function n(s,o){const a=p.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...g}=u,y=(d==null?void 0:d[t][l])||a,w=p.useMemo(()=>g,Object.values(g));return p.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[t][l])||a,g=p.useContext(v);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,f]}const i=()=>{const s=r.map(o=>p.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return p.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,zO(i,...e)]}function zO(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return p.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function Ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Hn(t){const e=p.useRef(t);return p.useEffect(()=>{e.current=t}),p.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function ea({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=VO({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=Hn(r),l=p.useCallback(c=>{if(s){const u=typeof c=="function"?c(t):c;u!==t&&a(u)}else i(c)},[s,t,i,a]);return[o,l]}function VO({defaultProp:t,onChange:e}){const r=p.useState(t),[n]=r,i=p.useRef(n),s=Hn(e);return p.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function zm(t){const e=p.useRef({value:t,previous:t});return p.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const kn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function Vm(t){const[e,r]=p.useState(void 0);return kn(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function qO(t,e){return p.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const Eo=t=>{const{present:e,children:r}=t,n=HO(e),i=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),s=It(n.ref,i.ref);return typeof r=="function"||n.isPresent?p.cloneElement(i,{ref:s}):null};Eo.displayName="Presence";function HO(t){const[e,r]=p.useState(),n=p.useRef({}),i=p.useRef(t),s=p.useRef("none"),o=t?"mounted":"unmounted",[a,l]=qO(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Tu(n.current);s.current=a==="mounted"?c:"none"},[a]),kn(()=>{const c=n.current,f=i.current;if(f!==t){const d=s.current,v=Tu(c);t?l("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),kn(()=>{if(e){const c=u=>{const v=Tu(n.current).includes(u.animationName);u.target===e&&v&&ks.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=Tu(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Tu(t){return(t==null?void 0:t.animationName)||"none"}function Re(){return Re=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,i=p.Children.toArray(r),s=i.find(GO);if(s){const o=s.props.children,a=i.map(l=>l===s?p.Children.count(o)>1?p.Children.only(null):p.isValidElement(o)?o.props.children:null:l);return p.createElement(Ny,Re({},n,{ref:e}),p.isValidElement(o)?p.cloneElement(o,void 0,a):null)}return p.createElement(Ny,Re({},n,{ref:e}),r)});gl.displayName="Slot";const Ny=p.forwardRef((t,e)=>{const{children:r,...n}=t;return p.isValidElement(r)?p.cloneElement(r,{...KO(n,r.props),ref:e?QS(e,r.ref):r.ref}):p.Children.count(r)>1?p.Children.only(null):null});Ny.displayName="SlotClone";const WO=({children:t})=>p.createElement(p.Fragment,null,t);function GO(t){return p.isValidElement(t)&&t.type===WO}function KO(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}const QO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Xe=QO.reduce((t,e)=>{const r=p.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?gl:e;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,Kt({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function qm(t,e){t&&ks.flushSync(()=>t.dispatchEvent(e))}const YS="Checkbox",[YO,qee]=qr(YS),[JO,XO]=YO(YS),ZO=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,...f}=t,[u,d]=p.useState(null),v=It(e,A=>d(A)),g=p.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,x]=ea({prop:i,defaultProp:s,onChange:c}),b=p.useRef(w);return p.useEffect(()=>{const A=u==null?void 0:u.form;if(A){const P=()=>x(b.current);return A.addEventListener("reset",P),()=>A.removeEventListener("reset",P)}},[u,x]),p.createElement(JO,{scope:r,state:w,disabled:a},p.createElement(Xe.button,Kt({type:"button",role:"checkbox","aria-checked":qo(w)?"mixed":w,"aria-required":o,"data-state":JS(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:Ce(t.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:Ce(t.onClick,A=>{x(P=>qo(P)?!0:!P),y&&(g.current=A.isPropagationStopped(),g.current||A.stopPropagation())})})),y&&p.createElement(rN,{control:u,bubbles:!g.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),eN="CheckboxIndicator",tN=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=XO(eN,r);return p.createElement(Eo,{present:n||qo(s.state)||s.state===!0},p.createElement(Xe.span,Kt({"data-state":JS(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),rN=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=zm(r),a=Vm(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});l.indeterminate=qo(r),u.call(l,qo(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",Kt({type:"checkbox","aria-hidden":!0,defaultChecked:qo(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qo(t){return t==="indeterminate"}function JS(t){return qo(t)?"indeterminate":t?"checked":"unchecked"}const nN=ZO,iN=tN;var sN=Qt({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 _43lu9r1 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 _43lu9r2 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"_43lu9r8 _43lu9r3 fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const Ml=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?J.jsxs(ee,{flexDirection:"column",gap:"0.5",children:[r&&J.jsx(Se,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&J.jsx(Se,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return J.jsxs(ee,{as:"label",className:sN({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var r0=Qt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const oN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),XS=({size:t="sm",...e})=>J.jsx(ee,{as:oN,className:r0({size:t}),...e}),aN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),ZS=({size:t="sm",...e})=>J.jsx(ee,{as:aN,className:r0({size:t}),...e}),lN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),Hm=({size:t="sm",...e})=>J.jsx(ee,{as:lN,className:r0({size:t}),...e}),cN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),fN=({size:t="sm",...e})=>J.jsx(ee,{as:cN,className:r0({size:t}),...e});var uN=Qt({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11h0 fyvr11ko fyvr11jg fyvr11od fyvr12w1 fyvr12vz fyvr12vr fyvr12v7 fyvr12v3 _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),dN="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const hN=({size:t="sm"})=>J.jsx(iN,{className:dN,children:J.jsx(XS,{size:t==="lg"?"sm":"xs"})});p.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return J.jsx(Ml,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:J.jsx(nN,{className:uN({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:J.jsx(hN,{size:a})})})});gr.createContext(null);const vN=gA["useId".toString()]||(()=>{});let yN=0;function no(t){const[e,r]=p.useState(vN());return kn(()=>{t||r(n=>n??String(yN++))},[t]),t||(e?`radix-${e}`:"")}const e8="Collapsible",[pN,Hee]=qr(e8),[mN,Wm]=pN(e8),gN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=ea({prop:n,defaultProp:i,onChange:o});return p.createElement(mN,{scope:r,disabled:s,contentId:no(),open:l,onOpenToggle:p.useCallback(()=>c(f=>!f),[c])},p.createElement(Xe.div,Kt({"data-state":Gm(l),"data-disabled":s?"":void 0},a,{ref:e})))}),xN="CollapsibleTrigger",bN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Wm(xN,r);return p.createElement(Xe.button,Kt({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Gm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:Ce(t.onClick,i.onOpenToggle)}))}),t8="CollapsibleContent",wN=p.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Wm(t8,t.__scopeCollapsible);return p.createElement(Eo,{present:r||i.open},({present:s})=>p.createElement(EN,Kt({},n,{ref:e,present:s})))}),EN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Wm(t8,r),[a,l]=p.useState(n),c=p.useRef(null),f=It(e,c),u=p.useRef(0),d=u.current,v=p.useRef(0),g=v.current,y=o.open||a,w=p.useRef(y),x=p.useRef();return p.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),kn(()=>{const b=c.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const A=b.getBoundingClientRect();u.current=A.height,v.current=A.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(n)}},[o.open,n]),p.createElement(Xe.div,Kt({"data-state":Gm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y},s,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style}}),y&&i)});function Gm(t){return t?"open":"closed"}const AN=gN,SN=bN,CN=wN;var Mw="64px",kN="_4j62fl0",PN="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",RN="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",TN="_4j62fl5";const xa=t=>{const{className:e,children:r,defaultOpen:n,open:i,onOpenChange:s,label:o,...a}=t,[l,c]=p.useState(n),f=i??l,u=v=>{i===void 0&&c(v)},d=v=>{u(v),s==null||s(v)};return J.jsx(AN,{open:f,defaultOpen:n,onOpenChange:d,asChild:!0,children:J.jsxs(ee,{as:el.div,className:fn(e,kN),initial:{height:f?"auto":Mw},animate:{height:f?"auto":Mw},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[J.jsxs(SN,{className:PN,children:[J.jsx(Se,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),J.jsx(ee,{as:el.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:f?180:0},animate:{rotate:f?180:0},transition:{ease:"linear",duration:.1},children:J.jsx(ZS,{className:TN,color:"text50"})})]}),J.jsx(qS,{children:f&&J.jsx(CN,{className:RN,asChild:!0,forceMount:!0,children:J.jsx(el.div,{initial:{opacity:f?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function n0(t){const e=t+"CollectionProvider",[r,n]=qr(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:g,children:y}=v,w=gr.useRef(null),x=gr.useRef(new Map).current;return gr.createElement(i,{scope:g,itemMap:x,collectionRef:w},y)},a=t+"CollectionSlot",l=gr.forwardRef((v,g)=>{const{scope:y,children:w}=v,x=s(a,y),b=It(g,x.collectionRef);return gr.createElement(gl,{ref:b},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=gr.forwardRef((v,g)=>{const{scope:y,children:w,...x}=v,b=gr.useRef(null),A=It(g,b),P=s(c,y);return gr.useEffect(()=>(P.itemMap.set(b,{ref:b,...x}),()=>void P.itemMap.delete(b))),gr.createElement(gl,{[f]:"",ref:A},w)});function d(v){const g=s(t+"CollectionConsumer",v);return gr.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,_)=>x.indexOf(P.ref.current)-x.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const MN=p.createContext(void 0);function Km(t){const e=p.useContext(MN);return t||e||"ltr"}function IN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t);p.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const Dy="dismissableLayer.update",_N="dismissableLayer.pointerDownOutside",ON="dismissableLayer.focusOutside";let Iw;const NN=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qm=p.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=p.useContext(NN),[u,d]=p.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=p.useState({}),y=It(e,L=>d(L)),w=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(x),A=u?w.indexOf(u):-1,P=f.layersWithOutsidePointerEventsDisabled.size>0,_=A>=b,D=DN(L=>{const z=L.target,H=[...f.branches].some(Y=>Y.contains(z));!_||H||(s==null||s(L),a==null||a(L),L.defaultPrevented||l==null||l())},v),M=LN(L=>{const z=L.target;[...f.branches].some(Y=>Y.contains(z))||(o==null||o(L),a==null||a(L),L.defaultPrevented||l==null||l())},v);return IN(L=>{A===f.layers.size-1&&(i==null||i(L),!L.defaultPrevented&&l&&(L.preventDefault(),l()))},v),p.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Iw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),_w(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Iw)}},[u,v,n,f]),p.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),_w())},[u,f]),p.useEffect(()=>{const L=()=>g({});return document.addEventListener(Dy,L),()=>document.removeEventListener(Dy,L)},[]),p.createElement(Xe.div,Re({},c,{ref:y,style:{pointerEvents:P?_?"auto":"none":void 0,...t.style},onFocusCapture:Ce(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Ce(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Ce(t.onPointerDownCapture,D.onPointerDownCapture)}))});function DN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t),n=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){r8(_N,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function LN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t),n=p.useRef(!1);return p.useEffect(()=>{const i=s=>{s.target&&!n.current&&r8(ON,r,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _w(){const t=new CustomEvent(Dy);document.dispatchEvent(t)}function r8(t,e,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?qm(i,s):i.dispatchEvent(s)}const jN=Qm;let R1=0;function n8(){p.useEffect(()=>{var t,e;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=r[0])!==null&&t!==void 0?t:Ow()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:Ow()),R1++,()=>{R1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),R1--}},[])}function Ow(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}const T1="focusScope.autoFocusOnMount",M1="focusScope.autoFocusOnUnmount",Nw={bubbles:!1,cancelable:!0},i8=p.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=p.useState(null),c=Hn(i),f=Hn(s),u=p.useRef(null),d=It(e,y=>l(y)),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let y=function(A){if(v.paused||!a)return;const P=A.target;a.contains(P)?u.current=P:Ds(u.current,{select:!0})},w=function(A){if(v.paused||!a)return;const P=A.relatedTarget;P!==null&&(a.contains(P)||Ds(u.current,{select:!0}))},x=function(A){if(document.activeElement===document.body)for(const _ of A)_.removedNodes.length>0&&Ds(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),b.disconnect()}}},[n,a,v.paused]),p.useEffect(()=>{if(a){Lw.add(v);const y=document.activeElement;if(!a.contains(y)){const x=new CustomEvent(T1,Nw);a.addEventListener(T1,c),a.dispatchEvent(x),x.defaultPrevented||(BN(VN(s8(a)),{select:!0}),document.activeElement===y&&Ds(a))}return()=>{a.removeEventListener(T1,c),setTimeout(()=>{const x=new CustomEvent(M1,Nw);a.addEventListener(M1,f),a.dispatchEvent(x),x.defaultPrevented||Ds(y??document.body,{select:!0}),a.removeEventListener(M1,f),Lw.remove(v)},0)}}},[a,c,f,v]);const g=p.useCallback(y=>{if(!r&&!n||v.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(w&&x){const b=y.currentTarget,[A,P]=$N(b);A&&P?!y.shiftKey&&x===P?(y.preventDefault(),r&&Ds(A,{select:!0})):y.shiftKey&&x===A&&(y.preventDefault(),r&&Ds(P,{select:!0})):x===b&&y.preventDefault()}},[r,n,v.paused]);return p.createElement(Xe.div,Re({tabIndex:-1},o,{ref:d,onKeyDown:g}))});function BN(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ds(n,{select:e}),document.activeElement!==r)return}function $N(t){const e=s8(t),r=Dw(e,t),n=Dw(e.reverse(),t);return[r,n]}function s8(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Dw(t,e){for(const r of t)if(!FN(r,{upTo:e}))return r}function FN(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function UN(t){return t instanceof HTMLInputElement&&"select"in t}function Ds(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&UN(t)&&e&&t.select()}}const Lw=zN();function zN(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=jw(t,e),t.unshift(e)},remove(e){var r;t=jw(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function jw(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function VN(t){return t.filter(e=>e.tagName!=="A")}const qN=["top","right","bottom","left"],fo=Math.min,bn=Math.max,rh=Math.round,Mu=Math.floor,uo=t=>({x:t,y:t}),HN={left:"right",right:"left",bottom:"top",top:"bottom"},WN={start:"end",end:"start"};function Ly(t,e,r){return bn(t,fo(e,r))}function xs(t,e){return typeof t=="function"?t(e):t}function bs(t){return t.split("-")[0]}function Il(t){return t.split("-")[1]}function Ym(t){return t==="x"?"y":"x"}function Jm(t){return t==="y"?"height":"width"}function _l(t){return["top","bottom"].includes(bs(t))?"y":"x"}function Xm(t){return Ym(_l(t))}function GN(t,e,r){r===void 0&&(r=!1);const n=Il(t),i=Xm(t),s=Jm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=nh(o)),[o,nh(o)]}function KN(t){const e=nh(t);return[jy(t),e,jy(e)]}function jy(t){return t.replace(/start|end/g,e=>WN[e])}function QN(t,e,r){const n=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?s:o;default:return[]}}function YN(t,e,r,n){const i=Il(t);let s=QN(bs(t),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(jy)))),s}function nh(t){return t.replace(/left|right|bottom|top/g,e=>HN[e])}function JN(t){return{top:0,right:0,bottom:0,left:0,...t}}function o8(t){return typeof t!="number"?JN(t):{top:t,right:t,bottom:t,left:t}}function ih(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Bw(t,e,r){let{reference:n,floating:i}=t;const s=_l(e),o=Xm(e),a=Jm(o),l=bs(e),c=s==="y",f=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let v;switch(l){case"top":v={x:f,y:n.y-i.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:u};break;case"left":v={x:n.x-i.width,y:u};break;default:v={x:n.x,y:n.y}}switch(Il(e)){case"start":v[o]-=d*(r&&c?-1:1);break;case"end":v[o]+=d*(r&&c?-1:1);break}return v}const XN=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Bw(c,n,l),d=n,v={},g=0;for(let y=0;y({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:f=0}=xs(t,e)||{};if(c==null)return{};const u=o8(f),d={x:r,y:n},v=Xm(i),g=Jm(v),y=await o.getDimensions(c),w=v==="y",x=w?"top":"left",b=w?"bottom":"right",A=w?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[v]-d[v]-s.floating[g],_=d[v]-s.reference[v],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let M=D?D[A]:0;(!M||!await(o.isElement==null?void 0:o.isElement(D)))&&(M=a.floating[A]||s.floating[g]);const L=P/2-_/2,z=M/2-y[g]/2-1,H=fo(u[x],z),Y=fo(u[b],z),Z=H,O=M-y[g]-Y,h=M/2-y[g]/2+L,S=Ly(Z,h,O),k=!l.arrow&&Il(i)!=null&&h!=S&&s.reference[g]/2-(hZ<=0)){var z,H;const Z=(((z=s.flip)==null?void 0:z.index)||0)+1,O=_[Z];if(O)return{data:{index:Z,overflows:L},reset:{placement:O}};let h=(H=L.filter(S=>S.overflows[0]<=0).sort((S,k)=>S.overflows[1]-k.overflows[1])[0])==null?void 0:H.placement;if(!h)switch(v){case"bestFit":{var Y;const S=(Y=L.map(k=>[k.placement,k.overflows.filter(I=>I>0).reduce((I,R)=>I+R,0)]).sort((k,I)=>k[1]-I[1])[0])==null?void 0:Y[0];S&&(h=S);break}case"initialPlacement":h=a;break}if(i!==h)return{reset:{placement:h}}}return{}}}};function Fw(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Uw(t){return qN.some(e=>t[e]>=0)}const eD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=xs(t,e);switch(n){case"referenceHidden":{const s=await Af(e,{...i,elementContext:"reference"}),o=Fw(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Uw(o)}}}case"escaped":{const s=await Af(e,{...i,altBoundary:!0}),o=Fw(s,r.floating);return{data:{escapedOffsets:o,escaped:Uw(o)}}}default:return{}}}}};async function tD(t,e){const{placement:r,platform:n,elements:i}=t,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=bs(r),a=Il(r),l=_l(r)==="y",c=["left","top"].includes(o)?-1:1,f=s&&l?-1:1,u=xs(e,t);let{mainAxis:d,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(v=a==="end"?g*-1:g),l?{x:v*f,y:d*c}:{x:d*c,y:v*f}}const rD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await tD(e,t);return{x:r+i.x,y:n+i.y,data:i}}}},nD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x,y:b}=w;return{x,y:b}}},...l}=xs(t,e),c={x:r,y:n},f=await Af(e,l),u=_l(bs(i)),d=Ym(u);let v=c[d],g=c[u];if(s){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=v+f[w],A=v-f[x];v=Ly(b,v,A)}if(o){const w=u==="y"?"top":"left",x=u==="y"?"bottom":"right",b=g+f[w],A=g-f[x];g=Ly(b,g,A)}const y=a.fn({...e,[d]:v,[u]:g});return{...y,data:{x:y.x-r,y:y.y-n}}}}},iD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=xs(t,e),f={x:r,y:n},u=_l(i),d=Ym(u);let v=f[d],g=f[u];const y=xs(a,e),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const A=d==="y"?"height":"width",P=s.reference[d]-s.floating[A]+w.mainAxis,_=s.reference[d]+s.reference[A]-w.mainAxis;v_&&(v=_)}if(c){var x,b;const A=d==="y"?"width":"height",P=["top","left"].includes(bs(i)),_=s.reference[u]-s.floating[A]+(P&&((x=o.offset)==null?void 0:x[u])||0)+(P?0:w.crossAxis),D=s.reference[u]+s.reference[A]+(P?0:((b=o.offset)==null?void 0:b[u])||0)-(P?w.crossAxis:0);g<_?g=_:g>D&&(g=D)}return{[d]:v,[u]:g}}}},sD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:i,elements:s}=e,{apply:o=()=>{},...a}=xs(t,e),l=await Af(e,a),c=bs(r),f=Il(r),u=_l(r)==="y",{width:d,height:v}=n.floating;let g,y;c==="top"||c==="bottom"?(g=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,g=f==="end"?"top":"bottom");const w=v-l[g],x=d-l[y],b=!e.middlewareData.shift;let A=w,P=x;if(u){const D=d-l.left-l.right;P=f||b?fo(x,D):D}else{const D=v-l.top-l.bottom;A=f||b?fo(w,D):D}if(b&&!f){const D=bn(l.left,0),M=bn(l.right,0),L=bn(l.top,0),z=bn(l.bottom,0);u?P=d-2*(D!==0||M!==0?D+M:bn(l.left,l.right)):A=v-2*(L!==0||z!==0?L+z:bn(l.top,l.bottom))}await o({...e,availableWidth:P,availableHeight:A});const _=await i.getDimensions(s.floating);return d!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function ho(t){return a8(t)?(t.nodeName||"").toLowerCase():"#document"}function An(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ps(t){var e;return(e=(a8(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function a8(t){return t instanceof Node||t instanceof An(t).Node}function ws(t){return t instanceof Element||t instanceof An(t).Element}function zi(t){return t instanceof HTMLElement||t instanceof An(t).HTMLElement}function zw(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof An(t).ShadowRoot}function Yf(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Wn(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function oD(t){return["table","td","th"].includes(ho(t))}function Zm(t){const e=eg(),r=Wn(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function aD(t){let e=xl(t);for(;zi(e)&&!i0(e);){if(Zm(e))return e;e=xl(e)}return null}function eg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function i0(t){return["html","body","#document"].includes(ho(t))}function Wn(t){return An(t).getComputedStyle(t)}function s0(t){return ws(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xl(t){if(ho(t)==="html")return t;const e=t.assignedSlot||t.parentNode||zw(t)&&t.host||Ps(t);return zw(e)?e.host:e}function l8(t){const e=xl(t);return i0(e)?t.ownerDocument?t.ownerDocument.body:t.body:zi(e)&&Yf(e)?e:l8(e)}function Sf(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=l8(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=An(i);return s?e.concat(o,o.visualViewport||[],Yf(i)?i:[],o.frameElement&&r?Sf(o.frameElement):[]):e.concat(i,Sf(i,[],r))}function c8(t){const e=Wn(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=zi(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=rh(r)!==s||rh(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function tg(t){return ws(t)?t:t.contextElement}function tl(t){const e=tg(t);if(!zi(e))return uo(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=c8(e);let o=(s?rh(r.width):r.width)/n,a=(s?rh(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const lD=uo(0);function f8(t){const e=An(t);return!eg()||!e.visualViewport?lD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cD(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==An(t)?!1:e}function ta(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=tg(t);let o=uo(1);e&&(n?ws(n)&&(o=tl(n)):o=tl(t));const a=cD(s,r,n)?f8(s):uo(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,f=i.width/o.x,u=i.height/o.y;if(s){const d=An(s),v=n&&ws(n)?An(n):n;let g=d.frameElement;for(;g&&n&&v!==d;){const y=tl(g),w=g.getBoundingClientRect(),x=Wn(g),b=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,A=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=b,c+=A,g=An(g).frameElement}}return ih({width:f,height:u,x:l,y:c})}function fD(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=zi(r),s=Ps(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a=uo(1);const l=uo(0);if((i||!i&&n!=="fixed")&&((ho(r)!=="body"||Yf(s))&&(o=s0(r)),zi(r))){const c=ta(r);a=tl(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+l.x,y:e.y*a.y-o.scrollTop*a.y+l.y}}function uD(t){return Array.from(t.getClientRects())}function u8(t){return ta(Ps(t)).left+s0(t).scrollLeft}function dD(t){const e=Ps(t),r=s0(t),n=t.ownerDocument.body,i=bn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=bn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+u8(t);const a=-r.scrollTop;return Wn(n).direction==="rtl"&&(o+=bn(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function hD(t,e){const r=An(t),n=Ps(t),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=eg();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function vD(t,e){const r=ta(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=zi(t)?tl(t):uo(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Vw(t,e,r){let n;if(e==="viewport")n=hD(t,r);else if(e==="document")n=dD(Ps(t));else if(ws(e))n=vD(e,r);else{const i=f8(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return ih(n)}function d8(t,e){const r=xl(t);return r===e||!ws(r)||i0(r)?!1:Wn(r).position==="fixed"||d8(r,e)}function yD(t,e){const r=e.get(t);if(r)return r;let n=Sf(t,[],!1).filter(a=>ws(a)&&ho(a)!=="body"),i=null;const s=Wn(t).position==="fixed";let o=s?xl(t):t;for(;ws(o)&&!i0(o);){const a=Wn(o),l=Zm(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yf(o)&&!l&&d8(t,o))?n=n.filter(f=>f!==o):i=a,o=xl(o)}return e.set(t,n),n}function pD(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?yD(e,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,f)=>{const u=Vw(e,f,i);return c.top=bn(u.top,c.top),c.right=fo(u.right,c.right),c.bottom=fo(u.bottom,c.bottom),c.left=bn(u.left,c.left),c},Vw(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mD(t){return c8(t)}function gD(t,e,r){const n=zi(e),i=Ps(e),s=r==="fixed",o=ta(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=uo(0);if(n||!n&&!s)if((ho(e)!=="body"||Yf(i))&&(a=s0(e)),n){const c=ta(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=u8(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function qw(t,e){return!zi(t)||Wn(t).position==="fixed"?null:e?e(t):t.offsetParent}function h8(t,e){const r=An(t);if(!zi(t))return r;let n=qw(t,e);for(;n&&oD(n)&&Wn(n).position==="static";)n=qw(n,e);return n&&(ho(n)==="html"||ho(n)==="body"&&Wn(n).position==="static"&&!Zm(n))?r:n||aD(t)||r}const xD=async function(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||h8,s=this.getDimensions;return{reference:gD(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}};function bD(t){return Wn(t).direction==="rtl"}const wD={convertOffsetParentRelativeRectToViewportRelativeRect:fD,getDocumentElement:Ps,getClippingRect:pD,getOffsetParent:h8,getElementRects:xD,getClientRects:uD,getDimensions:mD,getScale:tl,isElement:ws,isRTL:bD};function ED(t,e){let r=null,n;const i=Ps(t);function s(){clearTimeout(n),r&&r.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:f,width:u,height:d}=t.getBoundingClientRect();if(a||e(),!u||!d)return;const v=Mu(f),g=Mu(i.clientWidth-(c+u)),y=Mu(i.clientHeight-(f+d)),w=Mu(c),b={rootMargin:-v+"px "+-g+"px "+-y+"px "+-w+"px",threshold:bn(0,fo(1,l))||1};let A=!0;function P(_){const D=_[0].intersectionRatio;if(D!==l){if(!A)return o();D?o(!1,D):n=setTimeout(()=>{o(!1,1e-7)},100)}A=!1}try{r=new IntersectionObserver(P,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(P,b)}r.observe(t)}return o(!0),s}function AD(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=tg(t),f=i||s?[...c?Sf(c):[],...Sf(e)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),s&&x.addEventListener("resize",r)});const u=c&&a?ED(c,r):null;let d=-1,v=null;o&&(v=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&v&&(v.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{v&&v.observe(e)})),r()}),c&&!l&&v.observe(c),v.observe(e));let g,y=l?ta(t):null;l&&w();function w(){const x=ta(t);y&&(x.x!==y.x||x.y!==y.y||x.width!==y.width||x.height!==y.height)&&r(),y=x,g=requestAnimationFrame(w)}return r(),()=>{f.forEach(x=>{i&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),u&&u(),v&&v.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const SD=(t,e,r)=>{const n=new Map,i={platform:wD,...r},s={...i.platform,_c:n};return XN(t,e,{...i,platform:s})},CD=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?$w({element:n.current,padding:i}).fn(r):{}:n?$w({element:n,padding:i}).fn(r):{}}}};var fd=typeof document<"u"?p.useLayoutEffect:p.useEffect;function sh(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!sh(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&t.$$typeof)&&!sh(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function v8(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Hw(t,e){const r=v8(t);return Math.round(e*r)/r}function Ww(t){const e=p.useRef(t);return fd(()=>{e.current=t}),e}function kD(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[f,u]=p.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=p.useState(n);sh(d,n)||v(n);const[g,y]=p.useState(null),[w,x]=p.useState(null),b=p.useCallback(k=>{k!=D.current&&(D.current=k,y(k))},[y]),A=p.useCallback(k=>{k!==M.current&&(M.current=k,x(k))},[x]),P=s||g,_=o||w,D=p.useRef(null),M=p.useRef(null),L=p.useRef(f),z=Ww(l),H=Ww(i),Y=p.useCallback(()=>{if(!D.current||!M.current)return;const k={placement:e,strategy:r,middleware:d};H.current&&(k.platform=H.current),SD(D.current,M.current,k).then(I=>{const R={...I,isPositioned:!0};Z.current&&!sh(L.current,R)&&(L.current=R,ks.flushSync(()=>{u(R)}))})},[d,e,r,H]);fd(()=>{c===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,u(k=>({...k,isPositioned:!1})))},[c]);const Z=p.useRef(!1);fd(()=>(Z.current=!0,()=>{Z.current=!1}),[]),fd(()=>{if(P&&(D.current=P),_&&(M.current=_),P&&_){if(z.current)return z.current(P,_,Y);Y()}},[P,_,Y,z]);const O=p.useMemo(()=>({reference:D,floating:M,setReference:b,setFloating:A}),[b,A]),h=p.useMemo(()=>({reference:P,floating:_}),[P,_]),S=p.useMemo(()=>{const k={position:r,left:0,top:0};if(!h.floating)return k;const I=Hw(h.floating,f.x),R=Hw(h.floating,f.y);return a?{...k,transform:"translate("+I+"px, "+R+"px)",...v8(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:R}},[r,a,h.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:Y,refs:O,elements:h,floatingStyles:S}),[f,Y,O,h,S])}const y8="Popper",[p8,Ol]=qr(y8),[PD,m8]=p8(y8),RD=t=>{const{__scopePopper:e,children:r}=t,[n,i]=p.useState(null);return p.createElement(PD,{scope:e,anchor:n,onAnchorChange:i},r)},TD="PopperAnchor",MD=p.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=m8(TD,r),o=p.useRef(null),a=It(e,o);return p.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:p.createElement(Xe.div,Re({},i,{ref:a}))}),g8="PopperContent",[ID,Wee]=p8(g8),_D=p.forwardRef((t,e)=>{var r,n,i,s,o,a,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:b=0,sticky:A="partial",hideWhenDetached:P=!1,updatePositionStrategy:_="optimized",onPlaced:D,...M}=t,L=m8(g8,f),[z,H]=p.useState(null),Y=It(e,we=>H(we)),[Z,O]=p.useState(null),h=Vm(Z),S=(r=h==null?void 0:h.width)!==null&&r!==void 0?r:0,k=(n=h==null?void 0:h.height)!==null&&n!==void 0?n:0,I=u+(v!=="center"?"-"+v:""),R=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},N=Array.isArray(x)?x:[x],B=N.length>0,C={padding:R,boundary:N.filter(OD),altBoundary:B},{refs:m,floatingStyles:T,placement:F,isPositioned:E,middlewareData:$}=kD({strategy:"fixed",placement:I,whileElementsMounted:(...we)=>AD(...we,{animationFrame:_==="always"}),elements:{reference:L.anchor},middleware:[rD({mainAxis:d+k,alignmentAxis:g}),w&&nD({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?iD():void 0,...C}),w&&ZN({...C}),sD({...C,apply:({elements:we,rects:zt,availableWidth:Ve,availableHeight:ot})=>{const{width:Jn,height:at}=zt.reference,Ge=we.floating.style;Ge.setProperty("--radix-popper-available-width",`${Ve}px`),Ge.setProperty("--radix-popper-available-height",`${ot}px`),Ge.setProperty("--radix-popper-anchor-width",`${Jn}px`),Ge.setProperty("--radix-popper-anchor-height",`${at}px`)}}),Z&&CD({element:Z,padding:y}),ND({arrowWidth:S,arrowHeight:k}),P&&eD({strategy:"referenceHidden",...C})]}),[V,q]=x8(F),K=Hn(D);kn(()=>{E&&(K==null||K())},[E,K]);const oe=(i=$.arrow)===null||i===void 0?void 0:i.x,te=(s=$.arrow)===null||s===void 0?void 0:s.y,re=((o=$.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[Ie,ue]=p.useState();return kn(()=>{z&&ue(window.getComputedStyle(z).zIndex)},[z]),p.createElement("div",{ref:m.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:E?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ie,"--radix-popper-transform-origin":[(a=$.transformOrigin)===null||a===void 0?void 0:a.x,(l=$.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},p.createElement(ID,{scope:f,placedSide:V,onArrowChange:O,arrowX:oe,arrowY:te,shouldHideArrow:re},p.createElement(Xe.div,Re({"data-side":V,"data-align":q},M,{ref:Y,style:{...M.style,animation:E?void 0:"none",opacity:(c=$.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function OD(t){return t!==null}const ND=t=>({name:"transformOrigin",options:t,fn(e){var r,n,i,s,o;const{placement:a,rects:l,middlewareData:c}=e,u=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,d=u?0:t.arrowWidth,v=u?0:t.arrowHeight,[g,y]=x8(a),w={start:"0%",center:"50%",end:"100%"}[y],x=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,b=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+v/2;let A="",P="";return g==="bottom"?(A=u?w:`${x}px`,P=`${-v}px`):g==="top"?(A=u?w:`${x}px`,P=`${l.floating.height+v}px`):g==="right"?(A=`${-v}px`,P=u?w:`${b}px`):g==="left"&&(A=`${l.floating.width+v}px`,P=u?w:`${b}px`),{data:{x:A,y:P}}}});function x8(t){const[e,r="center"]=t.split("-");return[e,r]}const DD=RD,LD=MD,jD=_D,b8=p.forwardRef((t,e)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=t;return n?w5.createPortal(p.createElement(Xe.div,Re({},i,{ref:e})),n):null}),I1="rovingFocusGroup.onEntryFocus",BD={bubbles:!1,cancelable:!0},rg="RovingFocusGroup",[By,w8,$D]=n0(rg),[FD,Nl]=qr(rg,[$D]),[UD,zD]=FD(rg),VD=p.forwardRef((t,e)=>p.createElement(By.Provider,{scope:t.__scopeRovingFocusGroup},p.createElement(By.Slot,{scope:t.__scopeRovingFocusGroup},p.createElement(qD,Kt({},t,{ref:e}))))),qD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=p.useRef(null),d=It(e,u),v=Km(s),[g=null,y]=ea({prop:o,defaultProp:a,onChange:l}),[w,x]=p.useState(!1),b=Hn(c),A=w8(r),P=p.useRef(!1),[_,D]=p.useState(0);return p.useEffect(()=>{const M=u.current;if(M)return M.addEventListener(I1,b),()=>M.removeEventListener(I1,b)},[b]),p.createElement(UD,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:g,onItemFocus:p.useCallback(M=>y(M),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>D(M=>M+1),[]),onFocusableItemRemove:p.useCallback(()=>D(M=>M-1),[])},p.createElement(Xe.div,Kt({tabIndex:w||_===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...t.style},onMouseDown:Ce(t.onMouseDown,()=>{P.current=!0}),onFocus:Ce(t.onFocus,M=>{const L=!P.current;if(M.target===M.currentTarget&&L&&!w){const z=new CustomEvent(I1,BD);if(M.currentTarget.dispatchEvent(z),!z.defaultPrevented){const H=A().filter(S=>S.focusable),Y=H.find(S=>S.active),Z=H.find(S=>S.id===g),h=[Y,Z,...H].filter(Boolean).map(S=>S.ref.current);E8(h)}}P.current=!1}),onBlur:Ce(t.onBlur,()=>x(!1))})))}),HD="RovingFocusGroupItem",WD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=no(),l=s||a,c=zD(HD,r),f=c.currentTabStopId===l,u=w8(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return p.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),p.createElement(By.ItemSlot,{scope:r,id:l,focusable:n,active:i},p.createElement(Xe.span,Kt({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:Ce(t.onMouseDown,g=>{n?c.onItemFocus(l):g.preventDefault()}),onFocus:Ce(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Ce(t.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=QD(g,c.orientation,c.dir);if(y!==void 0){g.preventDefault();let x=u().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(g.currentTarget);x=c.loop?YD(x,b+1):x.slice(b+1)}setTimeout(()=>E8(x))}})})))}),GD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function QD(t,e,r){const n=KD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return GD[n]}function E8(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function YD(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const JD=VD,A8=WD;var XD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ba=new WeakMap,Iu=new WeakMap,_u={},_1=0,S8=function(t){return t&&(t.host||S8(t.parentNode))},ZD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=S8(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},eL=function(t,e,r,n){var i=ZD(e,Array.isArray(t)?t:[t]);_u[r]||(_u[r]=new WeakMap);var s=_u[r],o=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(a.has(d))f(d);else{var v=d.getAttribute(n),g=v!==null&&v!=="false",y=(ba.get(d)||0)+1,w=(s.get(d)||0)+1;ba.set(d,y),s.set(d,w),o.push(d),y===1&&g&&Iu.set(d,!0),w===1&&d.setAttribute(r,"true"),g||d.setAttribute(n,"true")}})};return f(e),a.clear(),_1++,function(){o.forEach(function(u){var d=ba.get(u)-1,v=s.get(u)-1;ba.set(u,d),s.set(u,v),d||(Iu.has(u)||u.removeAttribute(n),Iu.delete(u)),v||u.removeAttribute(r)}),_1--,_1||(ba=new WeakMap,ba=new WeakMap,Iu=new WeakMap,_u={})}},C8=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=XD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),eL(n,i,r,"aria-hidden")):function(){return null}},Ti=function(){return Ti=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return mL;var e=gL(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},bL=T8(),wL=function(t,e,r,n){var i=t.left,s=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` - .`.concat(rL,` { - overflow: hidden `).concat(n,`; - padding-right: `).concat(a,"px ").concat(n,`; - } - body { - overflow: hidden `).concat(n,`; - overscroll-behavior: contain; - `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(s,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(n,`; - `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` - } - - .`).concat(ud,` { - right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(dd,` { - margin-right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(ud," .").concat(ud,` { - right: 0 `).concat(n,`; - } - - .`).concat(dd," .").concat(dd,` { - margin-right: 0 `).concat(n,`; - } - - body { - `).concat(nL,": ").concat(a,`px; - } -`)},EL=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=p.useMemo(function(){return xL(i)},[i]);return p.createElement(bL,{styles:wL(s,!e,i,r?"":"!important")})},$y=!1;if(typeof window<"u")try{var Ou=Object.defineProperty({},"passive",{get:function(){return $y=!0,!0}});window.addEventListener("test",Ou,Ou),window.removeEventListener("test",Ou,Ou)}catch{$y=!1}var wa=$y?{passive:!1}:!1,AL=function(t){return t.tagName==="TEXTAREA"},M8=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!AL(t)&&r[e]==="visible")},SL=function(t){return M8(t,"overflowY")},CL=function(t){return M8(t,"overflowX")},Gw=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=I8(t,r);if(n){var i=_8(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},kL=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},PL=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},I8=function(t,e){return t==="v"?SL(e):CL(e)},_8=function(t,e){return t==="v"?kL(e):PL(e)},RL=function(t,e){return t==="h"&&e==="rtl"?-1:1},TL=function(t,e,r,n,i){var s=RL(t,window.getComputedStyle(e).direction),o=s*n,a=r.target,l=e.contains(a),c=!1,f=o>0,u=0,d=0;do{var v=_8(t,a),g=v[0],y=v[1],w=v[2],x=y-w-s*g;(g||x)&&I8(t,a)&&(u+=x,d+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(u===0||!i)||!f&&(d===0||!i))&&(c=!0),c},Nu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Kw=function(t){return[t.deltaX,t.deltaY]},Qw=function(t){return t&&"current"in t?t.current:t},ML=function(t,e){return t[0]===e[0]&&t[1]===e[1]},IL=function(t){return` - .block-interactivity-`.concat(t,` {pointer-events: none;} - .allow-interactivity-`).concat(t,` {pointer-events: all;} -`)},_L=0,Ea=[];function OL(t){var e=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),i=p.useState(_L++)[0],s=p.useState(function(){return T8()})[0],o=p.useRef(t);p.useEffect(function(){o.current=t},[t]),p.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=tL([t.lockRef.current],(t.shards||[]).map(Qw),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=p.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var x=Nu(y),b=r.current,A="deltaX"in y?y.deltaX:b[0]-x[0],P="deltaY"in y?y.deltaY:b[1]-x[1],_,D=y.target,M=Math.abs(A)>Math.abs(P)?"h":"v";if("touches"in y&&M==="h"&&D.type==="range")return!1;var L=Gw(M,D);if(!L)return!0;if(L?_=M:(_=M==="v"?"h":"v",L=Gw(M,D)),!L)return!1;if(!n.current&&"changedTouches"in y&&(A||P)&&(n.current=_),!_)return!0;var z=n.current||_;return TL(z,w,y,z==="h"?A:P,!0)},[]),l=p.useCallback(function(y){var w=y;if(!(!Ea.length||Ea[Ea.length-1]!==s)){var x="deltaY"in w?Kw(w):Nu(w),b=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&ML(_.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var A=(o.current.shards||[]).map(Qw).filter(Boolean).filter(function(_){return _.contains(w.target)}),P=A.length>0?a(w,A[0]):!o.current.noIsolation;P&&w.cancelable&&w.preventDefault()}}},[]),c=p.useCallback(function(y,w,x,b){var A={name:y,delta:w,target:x,should:b};e.current.push(A),setTimeout(function(){e.current=e.current.filter(function(P){return P!==A})},1)},[]),f=p.useCallback(function(y){r.current=Nu(y),n.current=void 0},[]),u=p.useCallback(function(y){c(y.type,Kw(y),y.target,a(y,t.lockRef.current))},[]),d=p.useCallback(function(y){c(y.type,Nu(y),y.target,a(y,t.lockRef.current))},[]);p.useEffect(function(){return Ea.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,wa),document.addEventListener("touchmove",l,wa),document.addEventListener("touchstart",f,wa),function(){Ea=Ea.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,wa),document.removeEventListener("touchmove",l,wa),document.removeEventListener("touchstart",f,wa)}},[]);var v=t.removeScrollBar,g=t.inert;return p.createElement(p.Fragment,null,g?p.createElement(s,{styles:IL(i)}):null,v?p.createElement(EL,{gapMode:"margin"}):null)}const NL=fL(R8,OL);var ng=p.forwardRef(function(t,e){return p.createElement(o0,Ti({},t,{ref:e,sideCar:NL}))});ng.classNames=o0.classNames;const DL=["Enter"," "],a0="Menu",[LL,Gee,jL]=n0(a0),[ha,O8]=qr(a0,[jL,Ol,Nl]);Ol();const BL=Nl();ha(a0);const[Kee,$L]=ha(a0),FL="MenuPortal";ha(FL,{forceMount:void 0});const UL="MenuContent",[Qee,N8]=ha(UL),Fy="MenuItem",Yw="menu.itemSelect",D8=p.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=p.useRef(null),o=$L(Fy,t.__scopeMenu),a=N8(Fy,t.__scopeMenu),l=It(e,s),c=p.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(Yw,{bubbles:!0,cancelable:!0});u.addEventListener(Yw,v=>n==null?void 0:n(v),{once:!0}),qm(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return p.createElement(zL,Re({},i,{ref:l,disabled:r,onClick:Ce(t.onClick,f),onPointerDown:u=>{var d;(d=t.onPointerDown)===null||d===void 0||d.call(t,u),c.current=!0},onPointerUp:Ce(t.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Ce(t.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||DL.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),zL=p.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=N8(Fy,r),a=BL(r),l=p.useRef(null),c=It(e,l),[f,u]=p.useState(!1),[d,v]=p.useState("");return p.useEffect(()=>{const g=l.current;if(g){var y;v(((y=g.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),p.createElement(LL.ItemSlot,{scope:r,disabled:n,textValue:i??d},p.createElement(A8,Re({asChild:!0},a,{focusable:!n}),p.createElement(Xe.div,Re({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:Ce(t.onPointerMove,Jw(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:Ce(t.onPointerLeave,Jw(g=>o.onItemLeave(g))),onFocus:Ce(t.onFocus,()=>u(!0)),onBlur:Ce(t.onBlur,()=>u(!1))}))))}),VL=p.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return p.createElement(j8,{scope:t.__scopeMenu,checked:r},p.createElement(D8,Re({role:"menuitemcheckbox","aria-checked":oh(r)?"mixed":r},i,{ref:e,"data-state":ig(r),onSelect:Ce(i.onSelect,()=>n==null?void 0:n(oh(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),qL="MenuRadioGroup",[Yee,HL]=ha(qL,{value:void 0,onValueChange:()=>{}}),WL="MenuRadioItem",GL=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=HL(WL,t.__scopeMenu),s=r===i.value;return p.createElement(j8,{scope:t.__scopeMenu,checked:s},p.createElement(D8,Re({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":ig(s),onSelect:Ce(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),L8="MenuItemIndicator",[j8,KL]=ha(L8,{checked:!1}),QL=p.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=KL(L8,r);return p.createElement(Eo,{present:n||oh(s.checked)||s.checked===!0},p.createElement(Xe.span,Re({},i,{ref:e,"data-state":ig(s.checked)})))}),YL="MenuSub";ha(YL);function oh(t){return t==="indeterminate"}function ig(t){return oh(t)?"indeterminate":t?"checked":"unchecked"}function Jw(t){return e=>e.pointerType==="mouse"?t(e):void 0}const JL=VL,XL=GL,ZL=QL,B8="DropdownMenu",[ej,Jee]=qr(B8,[O8]),sg=O8();ej(B8);const tj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(JL,Re({},i,n,{ref:e}))}),rj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(XL,Re({},i,n,{ref:e}))}),nj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(ZL,Re({},i,n,{ref:e}))}),ij=tj,sj=rj,$8=nj;var F8="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",U8="_1k2mbvi5";const oj=({children:t})=>J.jsx($8,{className:U8,children:t});p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(ij,{className:fn(F8,t),...r,ref:n,children:[J.jsx(oj,{children:J.jsx(XS,{size:"xs"})}),J.jsx(Se,{variant:"small",children:e})]}));p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(sj,{className:fn(F8,t),...r,ref:n,children:[J.jsx($8,{className:U8,children:J.jsx(Se,{children:"•"})}),J.jsx(Se,{variant:"small",children:e})]}));const og=p.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return J.jsx(cr,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),aj=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var lj="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _1hq71vk0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12np fyvr12gd fyvr121p fyvr1291 fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",cj=Qt({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1hq71vk7 _1hq71vk3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1hq71vk8 _1hq71vk4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),fj="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const uj={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4"};p.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:i=!1,id:s,label:o="",labelLocation:a="hidden",name:l,onValueChange:c,placeholder:f="Upload a file",validExtensions:u,...d}=t,v=p.useRef(null),g=aj(v,e),[y,w]=p.useState(null),x=A=>{const P=A.currentTarget.files;if(!P||!P[0])return;const _=P[0],D=_.name,M=_.size/1e3;w({name:D,size:M,extension:D.split(".").pop()??""}),c==null||c(_)},b=u.map(A=>uj[A]).join(",");return J.jsx(Ml,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:J.jsxs(ee,{width:"full",minWidth:"0",justifyContent:y?"space-between":"flex-start",gap:"2",color:y?"text100":"text50",className:fn(lj,cj({borderRadius:r})),children:[y?J.jsxs(ee,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[J.jsx(Se,{ellipsis:!0,children:y.name}),J.jsxs(Se,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[y.size.toFixed(2)," kb"]})]}):J.jsx(Se,{ellipsis:!0,children:f}),J.jsx(ee,{accept:b,as:"input",className:fj,cursor:"pointer",disabled:i,id:s??l,name:l,onChange:x,ref:g,type:"file",...d}),y&&J.jsx(og,{cursor:"pointer",icon:Hm,size:"xs",onClick:A=>{var P;A.preventDefault(),A.stopPropagation(),(P=v.current)!=null&&P.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})});var dj=Qt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const Uy=1e3,rl=64,D1=rl/2,L1=(t,e=Uy)=>t%e/(Uy/rl),_o=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let i=0,s;i>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},hj=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:_o(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},vj=(t,e)=>{const r=[];for(let n=0;n{const s=rl/10+L1(n.r,Uy*1.5/(i+1));return{...hj(n.a,n.b,n.c),x:L1(n.x),y:L1(n.y),r:s}})};p.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=vj(r,i);return J.jsxs(ee,{as:"svg",className:fn(e,dj({size:n})),viewBox:`0 0 ${rl} ${rl}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[J.jsxs("defs",{children:[J.jsx("clipPath",{id:"circle-clip",children:J.jsx("circle",{cx:D1,cy:D1,r:D1})}),J.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[J.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),J.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),J.jsx("feGaussianBlur",{stdDeviation:rl/10,result:"effect1_foregroundBlur"})]}),J.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[J.jsx("stop",{offset:"0",stopColor:o[0].c}),J.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>J.jsxs(p.Fragment,{children:[J.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.a}),J.jsx("stop",{offset:"1",stopColor:a.b})]}),J.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.c}),J.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),J.jsxs("g",{clipPath:"url(#circle-clip)",children:[J.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),J.jsx("g",{filter:"url(#blur)",children:o.map(a=>J.jsxs(p.Fragment,{children:[J.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),J.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const yj=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=p.useState(!1),o=a=>{s(!0),r==null||r(a)};return J.jsx(ee,{as:el.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},z8="Dialog",[V8,Xee]=qr(z8),[pj,Ao]=V8(z8),mj=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=p.useRef(null),l=p.useRef(null),[c=!1,f]=ea({prop:n,defaultProp:i,onChange:s});return p.createElement(pj,{scope:e,triggerRef:a,contentRef:l,contentId:no(),titleId:no(),descriptionId:no(),open:c,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(u=>!u),[f]),modal:o},r)},q8="DialogPortal",[gj,H8]=V8(q8,{forceMount:void 0}),xj=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=Ao(q8,e);return p.createElement(gj,{scope:e,forceMount:r},p.Children.map(n,o=>p.createElement(Eo,{present:r||s.open},p.createElement(b8,{asChild:!0,container:i},o))))},zy="DialogOverlay",bj=p.forwardRef((t,e)=>{const r=H8(zy,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Ao(zy,t.__scopeDialog);return s.modal?p.createElement(Eo,{present:n||s.open},p.createElement(wj,Re({},i,{ref:e}))):null}),wj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ao(zy,r);return p.createElement(ng,{as:gl,allowPinchZoom:!0,shards:[i.contentRef]},p.createElement(Xe.div,Re({"data-state":G8(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),Cf="DialogContent",Ej=p.forwardRef((t,e)=>{const r=H8(Cf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Ao(Cf,t.__scopeDialog);return p.createElement(Eo,{present:n||s.open},s.modal?p.createElement(Aj,Re({},i,{ref:e})):p.createElement(Sj,Re({},i,{ref:e})))}),Aj=p.forwardRef((t,e)=>{const r=Ao(Cf,t.__scopeDialog),n=p.useRef(null),i=It(e,r.contentRef,n);return p.useEffect(()=>{const s=n.current;if(s)return C8(s)},[]),p.createElement(W8,Re({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Ce(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Ce(t.onFocusOutside,s=>s.preventDefault())}))}),Sj=p.forwardRef((t,e)=>{const r=Ao(Cf,t.__scopeDialog),n=p.useRef(!1),i=p.useRef(!1);return p.createElement(W8,Re({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o;if((o=t.onCloseAutoFocus)===null||o===void 0||o.call(t,s),!s.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),s.preventDefault()}n.current=!1,i.current=!1},onInteractOutside:s=>{var o,a;(o=t.onInteractOutside)===null||o===void 0||o.call(t,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),W8=p.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=Ao(Cf,r),l=p.useRef(null),c=It(e,l);return n8(),p.createElement(p.Fragment,null,p.createElement(i8,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(Qm,Re({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":G8(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),Cj="DialogClose",kj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ao(Cj,r);return p.createElement(Xe.button,Re({type:"button"},n,{ref:e,onClick:Ce(t.onClick,()=>i.onOpenChange(!1))}))});function G8(t){return t?"open":"closed"}const Pj=mj,Rj=xj,Tj=bj,Mj=Ej,Ij=kj;var _j=Qt({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),Oj=Qt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const Nj=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return J.jsx(ee,{className:Oj({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:J.jsx(ee,{className:_j({direction:n}),background:"backgroundPrimary",...i,children:e})})};function Dj(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function Lj(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function K8(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=t.constructor();for(var i in t){var s=t[i],o=[...r,i];typeof s=="string"||typeof s=="number"||s==null?n[i]=e(s,o):typeof s=="object"&&!Array.isArray(s)?n[i]=K8(s,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(s)?"Array":typeof s,'"'))}return n}function Xw(t,e,r){t.style.setProperty(Dj(e),r)}function Zw(t,e,r){if(typeof r=="object"){var n=e;K8(r,(a,l)=>{a!=null&&Xw(t,Lj(n,l),String(a))})}else{var i=e;for(var s in i){var o=i[s];o!=null&&Xw(t,s,i[s])}}}const ag=["dark","light"],Q8="dark",jj="data-theme",e3="@sequence.theme",Bj=t=>ag.includes(t),$j=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),Y8=t=>t?`${e3}.${t}`:e3,Fj=t=>{const e=localStorage.getItem(Y8(t));return e&&ag.includes(e)?e:Q8},J8=p.createContext(null),Uj=t=>{const[e,r]=p.useState(t.theme||Q8);p.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),p.useEffect(()=>{t.theme||r(Fj(t.scope))},[t.theme,t.scope]),p.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),p.useEffect(()=>{const i=document.querySelector(t.root||":root");i&&(Bj(e)?(i.setAttribute(jj,e),Zw(i,Sw,{colors:SO[e]})):$j(e)&&Zw(i,Sw,{colors:e}))},[e,t.root]);const n=p.useMemo(()=>({theme:e,root:t.root,setTheme:i=>{ag.includes(i)&&(localStorage.setItem(Y8(t.scope),i),r(i))}}),[e,t.root,t.scope]);return J.jsx(J8.Provider,{value:n,children:t.children})},X8=()=>{const t=p.useContext(J8);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var zj="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Vj="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",qj=Qt({defaultClassName:"_5b32m95 _5b32m94 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12ws fyvr12wm fyvr11h0 fyvr11i4 fyvr11hs fyvr11sd fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),Hj="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const Wj=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:i=!1,isDismissible:s=!0,onClose:o,scroll:a=!0,size:l="lg",overlayProps:c,contentProps:f}=t,{root:u}=X8(),[d,v]=p.useState(null);return p.useEffect(()=>{v(document.querySelector(u||"body"))},[u]),d?J.jsx(Pj,{modal:!0,defaultOpen:!0,onOpenChange:o,children:J.jsx(Rj,{forceMount:!0,container:d,children:J.jsxs(ee,{className:zj,children:[J.jsx(ee,{as:Tj,asChild:!0,background:r,className:Vj,forceMount:!0,children:J.jsx(el.div,{initial:i?!1:{opacity:0},animate:i?!1:{opacity:1},exit:i?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...c},"modal-overlay")}),J.jsx(Mj,{asChild:!0,className:qj({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:g=>{s?o==null||o():g.preventDefault()},onInteractOutside:g=>{s||g.preventDefault()},children:J.jsxs(el.div,{initial:i?!1:{y:"100%",opacity:l==="sm"?0:1},animate:i?!1:{y:0,opacity:1},exit:i?void 0:{y:"100%",opacity:l==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...f,children:[a?J.jsx(Nj,{children:n}):n,s&&J.jsx(Ij,{asChild:!0,children:J.jsx(og,{icon:Hm,backdropFilter:"blur",size:"xs",className:Hj,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var Gj="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",Kj=Qt({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1acm19y7 _1acm19y3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1acm19y8 _1acm19y4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),Qj=Qt({defaultClassName:"_1acm19ya _1acm19y9 fyvr1wg fyvr1yc fyvr1t4 fyvr1v0 fyvr12wp fyvr12wj fyvr11gw fyvr11od fyvr12s1 fyvr12o1 fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]});const Pr=p.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",leftIcon:f,rightIcon:u,name:d,controls:v,type:g="text",numeric:y=!1,...w}=t;return J.jsx(Ml,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:J.jsx(ee,{width:"full",children:J.jsxs(ee,{className:fn(Gj,Kj({borderRadius:i})),children:[f&&J.jsx(f,{size:"sm"}),J.jsx(ee,{as:r,autoComplete:n,spellCheck:"false",className:Qj({numeric:y}),disabled:o,id:a??d,name:d,ref:e,type:g,...w}),u&&J.jsx(u,{size:"sm"}),v]})})})}),Yj=RegExp("^\\d*(?:\\\\[.])?\\d*$");function Jj(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}p.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:i,onBlur:s,...o}=t,a=c=>{let{value:f}=c.target;f=f.replace(/,/g,"."),f.startsWith(".")&&(f="0"+f),f.startsWith("0")&&(f=f.replace(/^0+(?=\d)/,"")),(f===""||Yj.test(Jj(f)))&&(i==null||i({...c,target:{...c.target,value:f}}))},l=c=>{const{value:f}=c.target;let u=f;u.endsWith(".")&&(u=u.slice(0,-1)),u.endsWith(".0")&&(u=u.slice(0,-2)),u==="0"&&(u=""),s==null||s(c),u!==f&&(i==null||i({...c,target:{...c.target,value:u}}))};return J.jsx(Pr,{name:r,onChange:a,onBlur:l,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});Qt({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});const Z8="Progress",l0=100,[Xj,Zee]=qr(Z8),[Zj,ete]=Xj(Z8),eB=p.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=tB,...o}=t,a=Vy(i)?i:l0,l=eC(n,a)?n:null,c=ah(l)?s(l,a):void 0;return p.createElement(Zj,{scope:r,value:l,max:a},p.createElement(Xe.div,Kt({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":ah(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":rB(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});eB.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!Vy(n)?new Error(nB(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=Vy(t.max)?t.max:l0;return n!=null&&!eC(n,s)?new Error(iB(i,r)):null}};function tB(t,e){return`${Math.round(t/e*100)}%`}function rB(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function ah(t){return typeof t=="number"}function Vy(t){return ah(t)&&!isNaN(t)&&t>0}function eC(t,e){return ah(t)&&!isNaN(t)&&t<=e&&t>=0}function nB(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${l0}\`.`}function iB(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or ${l0} if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`}const tC="Radio",[sB,rC]=qr(tC),[oB,aB]=sB(tC),lB=p.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=p.useState(null),d=It(e,y=>u(y)),v=p.useRef(!1),g=f?!!f.closest("form"):!0;return p.createElement(oB,{scope:r,checked:i,disabled:o},p.createElement(Xe.button,Kt({type:"button",role:"radio","aria-checked":i,"data-state":nC(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:Ce(t.onClick,y=>{i||l==null||l(),g&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),g&&p.createElement(uB,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),cB="RadioIndicator",fB=p.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=aB(cB,r);return p.createElement(Eo,{present:n||s.checked},p.createElement(Xe.span,Kt({"data-state":nC(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),uB=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=zm(r),a=Vm(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});u.call(l,r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",Kt({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function nC(t){return t?"checked":"unchecked"}const dB=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],iC="RadioGroup",[hB,tte]=qr(iC,[Nl,rC]),sC=Nl(),oC=rC(),[vB,yB]=hB(iC),pB=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:f=!0,onValueChange:u,...d}=t,v=sC(r),g=Km(c),[y,w]=ea({prop:s,defaultProp:i,onChange:u});return p.createElement(vB,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},p.createElement(JD,Kt({asChild:!0},v,{orientation:l,dir:g,loop:f}),p.createElement(Xe.div,Kt({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g},d,{ref:e}))))}),mB="RadioGroupItem",gB=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=yB(mB,r),o=s.disabled||n,a=sC(r),l=oC(r),c=p.useRef(null),f=It(e,c),u=s.value===i.value,d=p.useRef(!1);return p.useEffect(()=>{const v=y=>{dB.includes(y.key)&&(d.current=!0)},g=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),p.createElement(A8,Kt({asChild:!0},a,{focusable:!o,active:u}),p.createElement(lB,Kt({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:Ce(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Ce(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),xB=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=oC(r);return p.createElement(fB,Kt({},i,n,{ref:e}))}),bB=pB,wB=gB,EB=xB;var AB=Qt({defaultClassName:"io59uy3 io59uy0 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1so fyvr1uk fyvr1wg fyvr1yc fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11od fyvr12v7 fyvr12v3 fyvr12vz fyvr12vr _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 io59uy2 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]}),SB=Qt({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const CB=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return J.jsx(ee,{alignItems:"center",children:J.jsx(Ml,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:J.jsx(wB,{className:AB({size:n}),value:i,id:e,disabled:s,children:J.jsx(EB,{className:SB({size:n})})})})})};p.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return J.jsx(bB,{disabled:n,name:s,ref:e,...l,children:J.jsx(ee,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>J.jsx(CB,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function t3(t,[e,r]){return Math.min(r,Math.max(e,t))}const aC=p.forwardRef((t,e)=>p.createElement(Xe.span,Re({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}))),kB=[" ","Enter","ArrowUp","ArrowDown"],PB=[" ","Enter"],c0="Select",[f0,lg,RB]=n0(c0),[Dl,rte]=qr(c0,[RB,Ol]),cg=Ol(),[TB,va]=Dl(c0),[MB,IB]=Dl(c0),_B=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:i,onOpenChange:s,value:o,defaultValue:a,onValueChange:l,dir:c,name:f,autoComplete:u,disabled:d,required:v}=t,g=cg(e),[y,w]=p.useState(null),[x,b]=p.useState(null),[A,P]=p.useState(!1),_=Km(c),[D=!1,M]=ea({prop:n,defaultProp:i,onChange:s}),[L,z]=ea({prop:o,defaultProp:a,onChange:l}),H=p.useRef(null),Y=y?!!y.closest("form"):!0,[Z,O]=p.useState(new Set),h=Array.from(Z).map(S=>S.props.value).join(";");return p.createElement(DD,g,p.createElement(TB,{required:v,scope:e,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:A,onValueNodeHasChildrenChange:P,contentId:no(),value:L,onValueChange:z,open:D,onOpenChange:M,dir:_,triggerPointerDownPosRef:H,disabled:d},p.createElement(f0.Provider,{scope:e},p.createElement(MB,{scope:t.__scopeSelect,onNativeOptionAdd:p.useCallback(S=>{O(k=>new Set(k).add(S))},[]),onNativeOptionRemove:p.useCallback(S=>{O(k=>{const I=new Set(k);return I.delete(S),I})},[])},r)),Y?p.createElement(fC,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:L,onChange:S=>z(S.target.value),disabled:d},L===void 0?p.createElement("option",{value:""}):null,Array.from(Z)):null))},OB="SelectTrigger",NB=p.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=cg(r),o=va(OB,r),a=o.disabled||n,l=It(e,o.onTriggerChange),c=lg(r),[f,u,d]=uC(g=>{const y=c().filter(b=>!b.disabled),w=y.find(b=>b.value===o.value),x=dC(y,g,w);x!==void 0&&o.onValueChange(x.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return p.createElement(LD,Re({asChild:!0},s),p.createElement(Xe.button,Re({type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":cC(o.value)?"":void 0},i,{ref:l,onClick:Ce(i.onClick,g=>{g.currentTarget.focus()}),onPointerDown:Ce(i.onPointerDown,g=>{const y=g.target;y.hasPointerCapture(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:Ce(i.onKeyDown,g=>{const y=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&u(g.key),!(y&&g.key===" ")&&kB.includes(g.key)&&(v(),g.preventDefault())})})))}),DB="SelectValue",LB=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o="",...a}=t,l=va(DB,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=It(e,l.onValueNodeChange);return kn(()=>{c(f)},[c,f]),p.createElement(Xe.span,Re({},a,{ref:u,style:{pointerEvents:"none"}}),cC(l.value)?p.createElement(p.Fragment,null,o):s)}),jB=p.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return p.createElement(Xe.span,Re({"aria-hidden":!0},i,{ref:e}),n||"▼")}),bl="SelectContent",BB=p.forwardRef((t,e)=>{const r=va(bl,t.__scopeSelect),[n,i]=p.useState();if(kn(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?ks.createPortal(p.createElement(lC,{scope:t.__scopeSelect},p.createElement(f0.Slot,{scope:t.__scopeSelect},p.createElement("div",null,t.children))),s):null}return p.createElement($B,Re({},t,{ref:e}))}),Zi=10,[lC,u0]=Dl(bl),$B=p.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w,...x}=t,b=va(bl,r),[A,P]=p.useState(null),[_,D]=p.useState(null),M=It(e,V=>P(V)),[L,z]=p.useState(null),[H,Y]=p.useState(null),Z=lg(r),[O,h]=p.useState(!1),S=p.useRef(!1);p.useEffect(()=>{if(A)return C8(A)},[A]),n8();const k=p.useCallback(V=>{const[q,...K]=Z().map(re=>re.ref.current),[oe]=K.slice(-1),te=document.activeElement;for(const re of V)if(re===te||(re==null||re.scrollIntoView({block:"nearest"}),re===q&&_&&(_.scrollTop=0),re===oe&&_&&(_.scrollTop=_.scrollHeight),re==null||re.focus(),document.activeElement!==te))return},[Z,_]),I=p.useCallback(()=>k([L,A]),[k,L,A]);p.useEffect(()=>{O&&I()},[O,I]);const{onOpenChange:R,triggerPointerDownPosRef:N}=b;p.useEffect(()=>{if(A){let V={x:0,y:0};const q=oe=>{var te,re,Ie,ue;V={x:Math.abs(Math.round(oe.pageX)-((te=(re=N.current)===null||re===void 0?void 0:re.x)!==null&&te!==void 0?te:0)),y:Math.abs(Math.round(oe.pageY)-((Ie=(ue=N.current)===null||ue===void 0?void 0:ue.y)!==null&&Ie!==void 0?Ie:0))}},K=oe=>{V.x<=10&&V.y<=10?oe.preventDefault():A.contains(oe.target)||R(!1),document.removeEventListener("pointermove",q),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",K,{capture:!0})}}},[A,R,N]),p.useEffect(()=>{const V=()=>R(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[R]);const[B,C]=uC(V=>{const q=Z().filter(te=>!te.disabled),K=q.find(te=>te.ref.current===document.activeElement),oe=dC(q,V,K);oe&&setTimeout(()=>oe.ref.current.focus())}),m=p.useCallback((V,q,K)=>{const oe=!S.current&&!K;(b.value!==void 0&&b.value===q||oe)&&(z(V),oe&&(S.current=!0))},[b.value]),T=p.useCallback(()=>A==null?void 0:A.focus(),[A]),F=p.useCallback((V,q,K)=>{const oe=!S.current&&!K;(b.value!==void 0&&b.value===q||oe)&&Y(V)},[b.value]),E=n==="popper"?r3:FB,$=E===r3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w}:{};return p.createElement(lC,{scope:r,content:A,viewport:_,onViewportChange:D,itemRefCallback:m,selectedItem:L,onItemLeave:T,itemTextRefCallback:F,focusSelectedItem:I,selectedItemText:H,position:n,isPositioned:O,searchRef:B},p.createElement(ng,{as:gl,allowPinchZoom:!0},p.createElement(i8,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:Ce(i,V=>{var q;(q=b.trigger)===null||q===void 0||q.focus({preventScroll:!0}),V.preventDefault()})},p.createElement(Qm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},p.createElement(E,Re({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault()},x,$,{onPlaced:()=>h(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Ce(x.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&C(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let oe=Z().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(V.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const te=V.target,re=oe.indexOf(te);oe=oe.slice(re+1)}setTimeout(()=>k(oe)),V.preventDefault()}})}))))))}),FB=p.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=va(bl,r),o=u0(bl,r),[a,l]=p.useState(null),[c,f]=p.useState(null),u=It(e,M=>f(M)),d=lg(r),v=p.useRef(!1),g=p.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=o,A=p.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&x){const M=s.trigger.getBoundingClientRect(),L=c.getBoundingClientRect(),z=s.valueNode.getBoundingClientRect(),H=x.getBoundingClientRect();if(s.dir!=="rtl"){const te=H.left-L.left,re=z.left-te,Ie=M.left-re,ue=M.width+Ie,we=Math.max(ue,L.width),zt=window.innerWidth-Zi,Ve=t3(re,[Zi,zt-we]);a.style.minWidth=ue+"px",a.style.left=Ve+"px"}else{const te=L.right-H.right,re=window.innerWidth-z.right-te,Ie=window.innerWidth-M.right-re,ue=M.width+Ie,we=Math.max(ue,L.width),zt=window.innerWidth-Zi,Ve=t3(re,[Zi,zt-we]);a.style.minWidth=ue+"px",a.style.right=Ve+"px"}const Y=d(),Z=window.innerHeight-Zi*2,O=y.scrollHeight,h=window.getComputedStyle(c),S=parseInt(h.borderTopWidth,10),k=parseInt(h.paddingTop,10),I=parseInt(h.borderBottomWidth,10),R=parseInt(h.paddingBottom,10),N=S+k+O+R+I,B=Math.min(w.offsetHeight*5,N),C=window.getComputedStyle(y),m=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),F=M.top+M.height/2-Zi,E=Z-F,$=w.offsetHeight/2,V=w.offsetTop+$,q=S+k+V,K=N-q;if(q<=F){const te=w===Y[Y.length-1].ref.current;a.style.bottom="0px";const re=c.clientHeight-y.offsetTop-y.offsetHeight,Ie=Math.max(E,$+(te?T:0)+re+I),ue=q+Ie;a.style.height=ue+"px"}else{const te=w===Y[0].ref.current;a.style.top="0px";const Ie=Math.max(F,S+y.offsetTop+(te?m:0)+$)+K;a.style.height=Ie+"px",y.scrollTop=q-F+y.offsetTop}a.style.margin=`${Zi}px 0`,a.style.minHeight=B+"px",a.style.maxHeight=Z+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,x,s.dir,n]);kn(()=>A(),[A]);const[P,_]=p.useState();kn(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const D=p.useCallback(M=>{M&&g.current===!0&&(A(),b==null||b(),g.current=!1)},[A,b]);return p.createElement(UB,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:D},p.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P}},p.createElement(Xe.div,Re({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),r3=p.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Zi,...s}=t,o=cg(r);return p.createElement(jD,Re({},o,s,{ref:e,align:n,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[UB,zB]=Dl(bl,{}),n3="SelectViewport",VB=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=u0(n3,r),s=zB(n3,r),o=It(e,i.onViewportChange),a=p.useRef(0);return p.createElement(p.Fragment,null,p.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),p.createElement(f0.Slot,{scope:r},p.createElement(Xe.div,Re({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Ce(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=s;if(u!=null&&u.current&&f){const d=Math.abs(a.current-c.scrollTop);if(d>0){const v=window.innerHeight-Zi*2,g=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(g,y);if(w0?A:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),qB="SelectGroup",[HB,nte]=Dl(qB),WB=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=no();return p.createElement(HB,{scope:r,id:i},p.createElement(Xe.div,Re({role:"group","aria-labelledby":i},n,{ref:e})))}),qy="SelectItem",[GB,KB]=Dl(qy),QB=p.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=va(qy,r),l=u0(qy,r),c=a.value===n,[f,u]=p.useState(s??""),[d,v]=p.useState(!1),g=It(e,x=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,x,n,i)}),y=no(),w=()=>{i||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.createElement(GB,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:p.useCallback(x=>{u(b=>{var A;return b||((A=x==null?void 0:x.textContent)!==null&&A!==void 0?A:"").trim()})},[])},p.createElement(f0.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},p.createElement(Xe.div,Re({role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},o,{ref:g,onFocus:Ce(o.onFocus,()=>v(!0)),onBlur:Ce(o.onBlur,()=>v(!1)),onPointerUp:Ce(o.onPointerUp,w),onPointerMove:Ce(o.onPointerMove,x=>{if(i){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(o.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:Ce(o.onKeyDown,x=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&x.key===" "||(PB.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})}))))}),Du="SelectItemText",YB=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=va(Du,r),a=u0(Du,r),l=KB(Du,r),c=IB(Du,r),[f,u]=p.useState(null),d=It(e,x=>u(x),l.onItemTextChange,x=>{var b;return(b=a.itemTextRefCallback)===null||b===void 0?void 0:b.call(a,x,l.value,l.disabled)}),v=f==null?void 0:f.textContent,g=p.useMemo(()=>p.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return kn(()=>(y(g),()=>w(g)),[y,w,g]),p.createElement(p.Fragment,null,p.createElement(Xe.span,Re({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ks.createPortal(s.children,o.valueNode):null)});function cC(t){return t===""||t===void 0}const fC=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=p.useRef(null),s=It(e,i),o=zm(r);return p.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==r&&f){const u=new Event("change",{bubbles:!0});f.call(a,r),a.dispatchEvent(u)}},[o,r]),p.createElement(aC,{asChild:!0},p.createElement("select",Re({},n,{ref:s,defaultValue:r})))});fC.displayName="BubbleSelect";function uC(t){const e=Hn(t),r=p.useRef(""),n=p.useRef(0),i=p.useCallback(o=>{const a=r.current+o;e(a),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),s=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function dC(t,e,r){const i=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=r?t.indexOf(r):-1;let o=JB(t,Math.max(s,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function JB(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const XB=_B,ZB=NB,e$=LB,t$=jB,r$=BB,n$=VB,i$=WB,s$=QB,o$=YB;var a$="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",l$=Qt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"gohwum7 gohwum3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"gohwum8 gohwum4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),c$="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",f$="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwumd fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12ws fyvr12wt fyvr12wm fyvr12wn fyvr11h0 fyvr11jw fyvr11ko fyvr12v7 fyvr12v3 fyvr12s1 fyvr12w1 fyvr12vr";const u$=p.forwardRef(({children:t,className:e,...r},n)=>J.jsx(s$,{className:fn(f$,e),...r,ref:n,children:J.jsx(o$,{children:t})})),d0=p.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:i,label:s="",description:o,labelLocation:a="hidden",name:l,options:c,placeholder:f,...u}=t;return J.jsx(Ml,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:J.jsxs(XB,{disabled:n,name:l,...u,children:[J.jsxs(ZB,{id:i??l,className:fn(a$,l$({borderRadius:r})),ref:e,children:[J.jsx(e$,{placeholder:f}),J.jsx(ee,{as:t$,display:"inline-flex",children:J.jsx(ZS,{})})]}),J.jsx(r$,{className:c$,children:J.jsx(n$,{children:J.jsx(i$,{children:c.map(({value:d,label:v,...g})=>J.jsx(u$,{value:d,...g,children:v},d))})})})]})})});p.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?J.jsx(og,{icon:Hm,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return J.jsx(Pr,{ref:e,name:s,leftIcon:fN,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var d$=Qt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const vi=p.forwardRef((t,e)=>{const{size:r="md",...n}=t;return J.jsx(ee,{className:d$({size:r}),color:"text50",ref:e,...n,children:J.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[J.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),J.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});p.forwardRef(({children:t},e)=>J.jsx(ee,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));const hC="Switch",[h$,ite]=qr(hC);h$(hC);Qt({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11g0"},active:{true:"nwwh3zb nwwh3z2 fyvr12w5",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12vp"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11u7 fyvr12sj"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11od fyvr12s7"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12s1"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12s7"]]});const vC="Tabs",[v$,ste]=qr(vC,[Nl]);Nl();v$(vC);var y$="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";p.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return J.jsxs(ee,{className:y$,ref:e,background:"buttonGlass",color:"text80",...i,children:[r&&J.jsx(r,{size:"xs"}),J.jsx(Se,{children:n})]})});const p$="ToastProvider",[m$,ote,g$]=n0("Toast"),[yC,ate]=qr("Toast",[g$]),[lte,pC]=yC(p$),i3="toast.viewportPause",s3="toast.viewportResume",h0="Toast",x$="toast.swipeStart",b$="toast.swipeMove",w$="toast.swipeCancel",E$="toast.swipeEnd",[A$,S$]=yC(h0,{onClose(){}}),C$=p.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:f,onSwipeMove:u,onSwipeCancel:d,onSwipeEnd:v,...g}=t,y=pC(h0,r),[w,x]=p.useState(null),b=It(e,h=>x(h)),A=p.useRef(null),P=p.useRef(null),_=i||y.duration,D=p.useRef(0),M=p.useRef(_),L=p.useRef(0),{onToastAdd:z,onToastRemove:H}=y,Y=Hn(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),Z=p.useCallback(h=>{!h||h===1/0||(window.clearTimeout(L.current),D.current=new Date().getTime(),L.current=window.setTimeout(Y,h))},[Y]);p.useEffect(()=>{const h=y.viewport;if(h){const S=()=>{Z(M.current),c==null||c()},k=()=>{const I=new Date().getTime()-D.current;M.current=M.current-I,window.clearTimeout(L.current),l==null||l()};return h.addEventListener(i3,k),h.addEventListener(s3,S),()=>{h.removeEventListener(i3,k),h.removeEventListener(s3,S)}}},[y.viewport,_,l,c,Z]),p.useEffect(()=>{s&&!y.isClosePausedRef.current&&Z(_)},[s,_,y.isClosePausedRef,Z]),p.useEffect(()=>(z(),()=>H()),[z,H]);const O=p.useMemo(()=>w?gC(w):null,[w]);return y.viewport?p.createElement(p.Fragment,null,O&&p.createElement(k$,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},O),p.createElement(A$,{scope:r,onClose:Y},ks.createPortal(p.createElement(m$.ItemSlot,{scope:r},p.createElement(jN,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||Y(),y.isFocusedToastEscapeKeyDownRef.current=!1})},p.createElement(Xe.li,Re({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},g,{ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ce(t.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,Y()))}),onPointerDown:Ce(t.onPointerDown,h=>{h.button===0&&(A.current={x:h.clientX,y:h.clientY})}),onPointerMove:Ce(t.onPointerMove,h=>{if(!A.current)return;const S=h.clientX-A.current.x,k=h.clientY-A.current.y,I=!!P.current,R=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,B=R?N(0,S):0,C=R?0:N(0,k),m=h.pointerType==="touch"?10:2,T={x:B,y:C},F={originalEvent:h,delta:T};I?(P.current=T,Lu(b$,u,F,{discrete:!1})):o3(T,y.swipeDirection,m)?(P.current=T,Lu(x$,f,F,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(S)>m||Math.abs(k)>m)&&(A.current=null)}),onPointerUp:Ce(t.onPointerUp,h=>{const S=P.current,k=h.target;if(k.hasPointerCapture(h.pointerId)&&k.releasePointerCapture(h.pointerId),P.current=null,A.current=null,S){const I=h.currentTarget,R={originalEvent:h,delta:S};o3(S,y.swipeDirection,y.swipeThreshold)?Lu(E$,v,R,{discrete:!0}):Lu(w$,d,R,{discrete:!0}),I.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});C$.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${h0}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const k$=t=>{const{__scopeToast:e,children:r,...n}=t,i=pC(h0,e),[s,o]=p.useState(!1),[a,l]=p.useState(!1);return I$(()=>o(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.createElement(b8,{asChild:!0},p.createElement(aC,n,s&&p.createElement(p.Fragment,null,i.label," ",r)))},P$="ToastAction",R$=p.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?p.createElement(mC,{altText:r,asChild:!0},p.createElement(M$,Re({},n,{ref:e}))):null});R$.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${P$}\``)}};const T$="ToastClose",M$=p.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=S$(T$,r);return p.createElement(mC,{asChild:!0},p.createElement(Xe.button,Re({type:"button"},n,{ref:e,onClick:Ce(t.onClick,i.onClose)})))}),mC=p.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return p.createElement(Xe.div,Re({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function gC(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),_$(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...gC(n))}}),e}function Lu(t,e,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?qm(i,s):i.dispatchEvent(s)}const o3=(t,e,r=0)=>{const n=Math.abs(t.x),i=Math.abs(t.y),s=n>i;return e==="left"||e==="right"?s&&n>r:!s&&i>r};function I$(t=()=>{}){const e=Hn(t);kn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function _$(t){return t.nodeType===t.ELEMENT_NODE}Qt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});p.createContext(null);var O$="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _15pztn0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr12s1 fyvr12o1 fyvr12wj fyvr128 fyvr11h0",N$="_15pztn2";p.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",name:f,rows:u,resize:d=!1,...v}=t;return J.jsx(Ml,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:J.jsx(ee,{as:r,autoComplete:n,spellCheck:"false",className:fn(O$,d&&N$),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...v})})});var D$=Qt({defaultClassName:"bnrreb5 bnrreb0 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9",xl:"bnrreba"},borderRadius:{circle:"bnrrebb bnrreb1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"bnrrebc bnrreb2 fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"bnrrebd bnrreb3 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"bnrrebe bnrreb4 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]}),L$="bnrrebf",j$="bnrrebh bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const B$=p.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return J.jsx(ee,{className:fn(r,D$({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?J.jsx(yj,{className:L$,disableAnimation:n,src:s}):J.jsx(Se,{className:j$,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})}),[v0,cte]=qr("Tooltip",[Ol]);Ol();const $$="TooltipProvider";v0($$);const xC="Tooltip";v0(xC);const F$="TooltipPortal";v0(F$,{forceMount:void 0});v0(xC,{isInside:!1});/** - * @remix-run/router v1.16.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Lt(){return Lt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function ra(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function z$(){return Math.random().toString(36).substr(2,8)}function l3(t,e){return{usr:t.state,key:t.key,idx:e}}function kf(t,e,r,n){return r===void 0&&(r=null),Lt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Wi(e):e,{state:r,key:e&&e.key||n||z$()})}function Jf(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Wi(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function V$(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Zt.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(Lt({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=Zt.Pop;let w=f(),x=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:x})}function d(w,x){a=Zt.Push;let b=kf(y.location,w,x);r&&r(b,w),c=f()+1;let A=l3(b,c),P=y.createHref(b);try{o.pushState(A,"",P)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(P)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,x){a=Zt.Replace;let b=kf(y.location,w,x);r&&r(b,w),c=f();let A=l3(b,c),P=y.createHref(b);o.replaceState(A,"",P),s&&l&&l({action:a,location:y.location,delta:0})}function g(w){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof w=="string"?w:Jf(w);return b=b.replace(/ $/,"%20"),Fe(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let y={get action(){return a},get location(){return t(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(a3,u),l=w,()=>{i.removeEventListener(a3,u),l=null}},createHref(w){return e(i,w)},createURL:g,encodeLocation(w){let x=g(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var _t;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(_t||(_t={}));const q$=new Set(["lazy","caseSensitive","path","id","index","children"]);function H$(t){return t.index===!0}function Hy(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,s)=>{let o=[...r,s],a=typeof i.id=="string"?i.id:o.join("-");if(Fe(i.index!==!0||!i.children,"Cannot specify children on an index route"),Fe(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),H$(i)){let l=Lt({},i,e(i),{id:a});return n[a]=l,l}else{let l=Lt({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=Hy(i.children,e,o,n)),l}})}function Ha(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?Wi(e):e,i=Xf(n.pathname||"/",r);if(i==null)return null;let s=bC(t);G$(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Fe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Ho([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(Fe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),bC(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:eF(c,s.index),routesMeta:f})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of wC(s.path))i(s,o,l)}),e}function wC(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=wC(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function G$(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:tF(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const K$=/^:[\w-]+$/,Q$=3,Y$=2,J$=1,X$=10,Z$=-2,c3=t=>t==="*";function eF(t,e){let r=t.split("/"),n=r.length;return r.some(c3)&&(n+=Z$),e&&(n+=Y$),r.filter(i=>!c3(i)).reduce((i,s)=>i+(K$.test(s)?Q$:s===""?J$:X$),n)}function tF(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function rF(t,e){let{routesMeta:r}=t,n={},i="/",s=[];for(let o=0;o{let{paramName:d,isOptional:v}=f;if(d==="*"){let y=a[u]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const g=a[u];return v&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:t}}function iF(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),ra(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function sF(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ra(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Xf(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function oF(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Wi(t):t;return{pathname:r?r.startsWith("/")?r:aF(r,e):e,search:uF(n),hash:dF(i)}}function aF(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function j1(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function EC(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function lF(t,e){let r=EC(t);return e?r.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function cF(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Wi(t):(i=Lt({},t),Fe(!i.pathname||!i.pathname.includes("?"),j1("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),j1("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),j1("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let u=e.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?e[u]:"/"}let l=oF(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Ho=t=>t.join("/").replace(/\/\/+/g,"/"),fF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),uF=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dF=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class fg{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function ug(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const AC=["post","put","patch","delete"],hF=new Set(AC),vF=["get",...AC],yF=new Set(vF),pF=new Set([301,302,303,307,308]),mF=new Set([307,308]),B1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},dg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xF=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),SC="remix-router-transitions";function bF(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;Fe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let U=t.detectErrorBoundary;i=G=>({hasErrorBoundary:U(G)})}else i=xF;let s={},o=Hy(t.routes,i,void 0,s),a,l=t.basename||"/",c=t.unstable_dataStrategy||SF,f=Lt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},t.future),u=null,d=new Set,v=null,g=null,y=null,w=t.hydrationData!=null,x=Ha(o,t.history.location,l),b=null;if(x==null){let U=Ln(404,{pathname:t.history.location.pathname}),{matches:G,route:Q}=x3(o);x=G,b={[Q.id]:U}}let A,P=x.some(U=>U.route.lazy),_=x.some(U=>U.route.loader);if(P)A=!1;else if(!_)A=!0;else if(f.v7_partialHydration){let U=t.hydrationData?t.hydrationData.loaderData:null,G=t.hydrationData?t.hydrationData.errors:null,Q=ie=>ie.route.loader?typeof ie.route.loader=="function"&&ie.route.loader.hydrate===!0?!1:U&&U[ie.route.id]!==void 0||G&&G[ie.route.id]!==void 0:!0;if(G){let ie=x.findIndex(he=>G[he.route.id]!==void 0);A=x.slice(0,ie+1).every(Q)}else A=x.every(Q)}else A=t.hydrationData!=null;let D,M={historyAction:t.history.action,location:t.history.location,matches:x,initialized:A,navigation:B1,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||b,fetchers:new Map,blockers:new Map},L=Zt.Pop,z=!1,H,Y=!1,Z=new Map,O=null,h=!1,S=!1,k=[],I=[],R=new Map,N=0,B=-1,C=new Map,m=new Set,T=new Map,F=new Map,E=new Set,$=new Map,V=new Map,q=!1;function K(){if(u=t.history.listen(U=>{let{action:G,location:Q,delta:ie}=U;if(q){q=!1;return}ra(V.size===0||ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let he=vt({currentLocation:M.location,nextLocation:Q,historyAction:G});if(he&&ie!=null){q=!0,t.history.go(ie*-1),In(he,{state:"blocked",location:Q,proceed(){In(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),t.history.go(ie)},reset(){let me=new Map(M.blockers);me.set(he,sc),re({blockers:me})}});return}return zt(G,Q)}),r){LF(e,Z);let U=()=>jF(e,Z);e.addEventListener("pagehide",U),O=()=>e.removeEventListener("pagehide",U)}return M.initialized||zt(Zt.Pop,M.location,{initialHydration:!0}),D}function oe(){u&&u(),O&&O(),d.clear(),H&&H.abort(),M.fetchers.forEach((U,G)=>it(G)),M.blockers.forEach((U,G)=>ht(G))}function te(U){return d.add(U),()=>d.delete(U)}function re(U,G){G===void 0&&(G={}),M=Lt({},M,U);let Q=[],ie=[];f.v7_fetcherPersist&&M.fetchers.forEach((he,me)=>{he.state==="idle"&&(E.has(me)?ie.push(me):Q.push(me))}),[...d].forEach(he=>he(M,{deletedFetchers:ie,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),f.v7_fetcherPersist&&(Q.forEach(he=>M.fetchers.delete(he)),ie.forEach(he=>it(he)))}function Ie(U,G,Q){var ie,he;let{flushSync:me}=Q===void 0?{}:Q,de=M.actionData!=null&&M.navigation.formMethod!=null&&li(M.navigation.formMethod)&&M.navigation.state==="loading"&&((ie=U.state)==null?void 0:ie._isRedirect)!==!0,ye;G.actionData?Object.keys(G.actionData).length>0?ye=G.actionData:ye=null:de?ye=M.actionData:ye=null;let ge=G.loaderData?m3(M.loaderData,G.loaderData,G.matches||[],G.errors):M.loaderData,pe=M.blockers;pe.size>0&&(pe=new Map(pe),pe.forEach((ve,Ke)=>pe.set(Ke,sc)));let Rt=z===!0||M.navigation.formMethod!=null&&li(M.navigation.formMethod)&&((he=U.state)==null?void 0:he._isRedirect)!==!0;a&&(o=a,a=void 0),h||L===Zt.Pop||(L===Zt.Push?t.history.push(U,U.state):L===Zt.Replace&&t.history.replace(U,U.state));let _e;if(L===Zt.Pop){let ve=Z.get(M.location.pathname);ve&&ve.has(U.pathname)?_e={currentLocation:M.location,nextLocation:U}:Z.has(U.pathname)&&(_e={currentLocation:U,nextLocation:M.location})}else if(Y){let ve=Z.get(M.location.pathname);ve?ve.add(U.pathname):(ve=new Set([U.pathname]),Z.set(M.location.pathname,ve)),_e={currentLocation:M.location,nextLocation:U}}re(Lt({},G,{actionData:ye,loaderData:ge,historyAction:L,location:U,initialized:!0,navigation:B1,revalidation:"idle",restoreScrollPosition:xi(U,G.matches||M.matches),preventScrollReset:Rt,blockers:pe}),{viewTransitionOpts:_e,flushSync:me===!0}),L=Zt.Pop,z=!1,Y=!1,h=!1,S=!1,k=[],I=[]}async function ue(U,G){if(typeof U=="number"){t.history.go(U);return}let Q=Wy(M.location,M.matches,l,f.v7_prependBasename,U,f.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:ie,submission:he,error:me}=f3(f.v7_normalizeFormMethod,!1,Q,G),de=M.location,ye=kf(M.location,ie,G&&G.state);ye=Lt({},ye,t.history.encodeLocation(ye));let ge=G&&G.replace!=null?G.replace:void 0,pe=Zt.Push;ge===!0?pe=Zt.Replace:ge===!1||he!=null&&li(he.formMethod)&&he.formAction===M.location.pathname+M.location.search&&(pe=Zt.Replace);let Rt=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,_e=(G&&G.unstable_flushSync)===!0,ve=vt({currentLocation:de,nextLocation:ye,historyAction:pe});if(ve){In(ve,{state:"blocked",location:ye,proceed(){In(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),ue(U,G)},reset(){let Ke=new Map(M.blockers);Ke.set(ve,sc),re({blockers:Ke})}});return}return await zt(pe,ye,{submission:he,pendingError:me,preventScrollReset:Rt,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:_e})}function we(){if(Xn(),re({revalidation:"loading"}),M.navigation.state!=="submitting"){if(M.navigation.state==="idle"){zt(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}zt(L||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}}async function zt(U,G,Q){H&&H.abort(),H=null,L=U,h=(Q&&Q.startUninterruptedRevalidation)===!0,gt(M.location,M.matches),z=(Q&&Q.preventScrollReset)===!0,Y=(Q&&Q.enableViewTransition)===!0;let ie=a||o,he=Q&&Q.overrideNavigation,me=Ha(ie,G,l),de=(Q&&Q.flushSync)===!0;if(!me){let ve=Ln(404,{pathname:G.pathname}),{matches:Ke,route:ke}=x3(ie);lt(),Ie(G,{matches:Ke,loaderData:{},errors:{[ke.id]:ve}},{flushSync:de});return}if(M.initialized&&!S&&MF(M.location,G)&&!(Q&&Q.submission&&li(Q.submission.formMethod))){Ie(G,{matches:me},{flushSync:de});return}H=new AbortController;let ye=Aa(t.history,G,H.signal,Q&&Q.submission),ge;if(Q&&Q.pendingError)ge=[Kc(me).route.id,{type:_t.error,error:Q.pendingError}];else if(Q&&Q.submission&&li(Q.submission.formMethod)){let ve=await Ve(ye,G,Q.submission,me,{replace:Q.replace,flushSync:de});if(ve.shortCircuited)return;ge=ve.pendingActionResult,he=$1(G,Q.submission),de=!1,ye=Aa(t.history,ye.url,ye.signal)}let{shortCircuited:pe,loaderData:Rt,errors:_e}=await ot(ye,G,me,he,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Q&&Q.initialHydration===!0,de,ge);pe||(H=null,Ie(G,Lt({matches:me},g3(ge),{loaderData:Rt,errors:_e})))}async function Ve(U,G,Q,ie,he){he===void 0&&(he={}),Xn();let me=NF(G,Q);re({navigation:me},{flushSync:he.flushSync===!0});let de,ye=Ky(ie,G);if(!ye.route.action&&!ye.route.lazy)de={type:_t.error,error:Ln(405,{method:U.method,pathname:G.pathname,routeId:ye.route.id})};else if(de=(await Ze("action",U,[ye],ie))[0],U.signal.aborted)return{shortCircuited:!0};if(Bo(de)){let ge;return he&&he.replace!=null?ge=he.replace:ge=v3(de.response.headers.get("Location"),new URL(U.url),l)===M.location.pathname+M.location.search,await un(U,de,{submission:Q,replace:ge}),{shortCircuited:!0}}if(jo(de))throw Ln(400,{type:"defer-action"});if(Fn(de)){let ge=Kc(ie,ye.route.id);return(he&&he.replace)!==!0&&(L=Zt.Push),{pendingActionResult:[ge.route.id,de]}}return{pendingActionResult:[ye.route.id,de]}}async function ot(U,G,Q,ie,he,me,de,ye,ge,pe){let Rt=ie||$1(G,he),_e=he||me||E3(Rt),ve=a||o,[Ke,ke]=u3(t.history,M,Q,_e,G,f.v7_partialHydration&&ye===!0,f.unstable_skipActionErrorRevalidation,S,k,I,E,T,m,ve,l,pe);if(lt(De=>!(Q&&Q.some(ur=>ur.route.id===De))||Ke&&Ke.some(ur=>ur.route.id===De)),B=++N,Ke.length===0&&ke.length===0){let De=dt();return Ie(G,Lt({matches:Q,loaderData:{},errors:pe&&Fn(pe[1])?{[pe[0]]:pe[1].error}:null},g3(pe),De?{fetchers:new Map(M.fetchers)}:{}),{flushSync:ge}),{shortCircuited:!0}}if(!h&&(!f.v7_partialHydration||!ye)){ke.forEach(ur=>{let Nr=M.fetchers.get(ur.key),Yt=oc(void 0,Nr?Nr.data:void 0);M.fetchers.set(ur.key,Yt)});let De;pe&&!Fn(pe[1])?De={[pe[0]]:pe[1].data}:M.actionData&&(Object.keys(M.actionData).length===0?De=null:De=M.actionData),re(Lt({navigation:Rt},De!==void 0?{actionData:De}:{},ke.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:ge})}ke.forEach(De=>{R.has(De.key)&&_r(De.key),De.controller&&R.set(De.key,De.controller)});let tt=()=>ke.forEach(De=>_r(De.key));H&&H.signal.addEventListener("abort",tt);let{loaderResults:Or,fetcherResults:Qe}=await ft(M.matches,Q,Ke,ke,U);if(U.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",tt),ke.forEach(De=>R.delete(De.key));let Ye=b3([...Or,...Qe]);if(Ye){if(Ye.idx>=Ke.length){let De=ke[Ye.idx-Ke.length].key;m.add(De)}return await un(U,Ye.result,{replace:de}),{shortCircuited:!0}}let{loaderData:Hr,errors:fr}=p3(M,Q,Ke,Or,pe,ke,Qe,$);$.forEach((De,ur)=>{De.subscribe(Nr=>{(Nr||De.done)&&$.delete(ur)})}),f.v7_partialHydration&&ye&&M.errors&&Object.entries(M.errors).filter(De=>{let[ur]=De;return!Ke.some(Nr=>Nr.route.id===ur)}).forEach(De=>{let[ur,Nr]=De;fr=Object.assign(fr||{},{[ur]:Nr})});let dn=dt(),hn=gi(B),vn=dn||hn||ke.length>0;return Lt({loaderData:Hr,errors:fr},vn?{fetchers:new Map(M.fetchers)}:{})}function Jn(U,G,Q,ie){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");R.has(U)&&_r(U);let he=(ie&&ie.unstable_flushSync)===!0,me=a||o,de=Wy(M.location,M.matches,l,f.v7_prependBasename,Q,f.v7_relativeSplatPath,G,ie==null?void 0:ie.relative),ye=Ha(me,de,l);if(!ye){et(U,G,Ln(404,{pathname:de}),{flushSync:he});return}let{path:ge,submission:pe,error:Rt}=f3(f.v7_normalizeFormMethod,!0,de,ie);if(Rt){et(U,G,Rt,{flushSync:he});return}let _e=Ky(ye,ge);if(z=(ie&&ie.preventScrollReset)===!0,pe&&li(pe.formMethod)){at(U,G,ge,_e,ye,he,pe);return}T.set(U,{routeId:G,path:ge}),Ge(U,G,ge,_e,ye,he,pe)}async function at(U,G,Q,ie,he,me,de){if(Xn(),T.delete(U),!ie.route.action&&!ie.route.lazy){let Yt=Ln(405,{method:de.formMethod,pathname:Q,routeId:G});et(U,G,Yt,{flushSync:me});return}let ye=M.fetchers.get(U);ze(U,DF(de,ye),{flushSync:me});let ge=new AbortController,pe=Aa(t.history,Q,ge.signal,de);R.set(U,ge);let Rt=N,ve=(await Ze("action",pe,[ie],he))[0];if(pe.signal.aborted){R.get(U)===ge&&R.delete(U);return}if(f.v7_fetcherPersist&&E.has(U)){if(Bo(ve)||Fn(ve)){ze(U,Ls(void 0));return}}else{if(Bo(ve))if(R.delete(U),B>Rt){ze(U,Ls(void 0));return}else return m.add(U),ze(U,oc(de)),un(pe,ve,{fetcherSubmission:de});if(Fn(ve)){et(U,G,ve.error);return}}if(jo(ve))throw Ln(400,{type:"defer-action"});let Ke=M.navigation.location||M.location,ke=Aa(t.history,Ke,ge.signal),tt=a||o,Or=M.navigation.state!=="idle"?Ha(tt,M.navigation.location,l):M.matches;Fe(Or,"Didn't find any matches after fetcher action");let Qe=++N;C.set(U,Qe);let Ye=oc(de,ve.data);M.fetchers.set(U,Ye);let[Hr,fr]=u3(t.history,M,Or,de,Ke,!1,f.unstable_skipActionErrorRevalidation,S,k,I,E,T,m,tt,l,[ie.route.id,ve]);fr.filter(Yt=>Yt.key!==U).forEach(Yt=>{let Yi=Yt.key,ma=M.fetchers.get(Yi),Gl=oc(void 0,ma?ma.data:void 0);M.fetchers.set(Yi,Gl),R.has(Yi)&&_r(Yi),Yt.controller&&R.set(Yi,Yt.controller)}),re({fetchers:new Map(M.fetchers)});let dn=()=>fr.forEach(Yt=>_r(Yt.key));ge.signal.addEventListener("abort",dn);let{loaderResults:hn,fetcherResults:vn}=await ft(M.matches,Or,Hr,fr,ke);if(ge.signal.aborted)return;ge.signal.removeEventListener("abort",dn),C.delete(U),R.delete(U),fr.forEach(Yt=>R.delete(Yt.key));let De=b3([...hn,...vn]);if(De){if(De.idx>=Hr.length){let Yt=fr[De.idx-Hr.length].key;m.add(Yt)}return un(ke,De.result)}let{loaderData:ur,errors:Nr}=p3(M,M.matches,Hr,hn,void 0,fr,vn,$);if(M.fetchers.has(U)){let Yt=Ls(ve.data);M.fetchers.set(U,Yt)}gi(Qe),M.navigation.state==="loading"&&Qe>B?(Fe(L,"Expected pending action"),H&&H.abort(),Ie(M.navigation.location,{matches:Or,loaderData:ur,errors:Nr,fetchers:new Map(M.fetchers)})):(re({errors:Nr,loaderData:m3(M.loaderData,ur,Or,Nr),fetchers:new Map(M.fetchers)}),S=!1)}async function Ge(U,G,Q,ie,he,me,de){let ye=M.fetchers.get(U);ze(U,oc(de,ye?ye.data:void 0),{flushSync:me});let ge=new AbortController,pe=Aa(t.history,Q,ge.signal);R.set(U,ge);let Rt=N,ve=(await Ze("loader",pe,[ie],he))[0];if(jo(ve)&&(ve=await RC(ve,pe.signal,!0)||ve),R.get(U)===ge&&R.delete(U),!pe.signal.aborted){if(E.has(U)){ze(U,Ls(void 0));return}if(Bo(ve))if(B>Rt){ze(U,Ls(void 0));return}else{m.add(U),await un(pe,ve);return}if(Fn(ve)){et(U,G,ve.error);return}Fe(!jo(ve),"Unhandled fetcher deferred data"),ze(U,Ls(ve.data))}}async function un(U,G,Q){let{submission:ie,fetcherSubmission:he,replace:me}=Q===void 0?{}:Q;G.response.headers.has("X-Remix-Revalidate")&&(S=!0);let de=G.response.headers.get("Location");Fe(de,"Expected a Location header on the redirect Response"),de=v3(de,new URL(U.url),l);let ye=kf(M.location,de,{_isRedirect:!0});if(r){let Ke=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Ke=!0;else if(dg.test(de)){const ke=t.history.createURL(de);Ke=ke.origin!==e.location.origin||Xf(ke.pathname,l)==null}if(Ke){me?e.location.replace(de):e.location.assign(de);return}}H=null;let ge=me===!0?Zt.Replace:Zt.Push,{formMethod:pe,formAction:Rt,formEncType:_e}=M.navigation;!ie&&!he&&pe&&Rt&&_e&&(ie=E3(M.navigation));let ve=ie||he;if(mF.has(G.response.status)&&ve&&li(ve.formMethod))await zt(ge,ye,{submission:Lt({},ve,{formAction:de}),preventScrollReset:z});else{let Ke=$1(ye,ie);await zt(ge,ye,{overrideNavigation:Ke,fetcherSubmission:he,preventScrollReset:z})}}async function Ze(U,G,Q,ie){try{let he=await CF(c,U,G,Q,ie,s,i);return await Promise.all(he.map((me,de)=>{if(IF(me)){let ye=me.result;return{type:_t.redirect,response:RF(ye,G,Q[de].route.id,ie,l,f.v7_relativeSplatPath)}}return PF(me)}))}catch(he){return Q.map(()=>({type:_t.error,error:he}))}}async function ft(U,G,Q,ie,he){let[me,...de]=await Promise.all([Q.length?Ze("loader",he,Q,G):[],...ie.map(ye=>{if(ye.matches&&ye.match&&ye.controller){let ge=Aa(t.history,ye.path,ye.controller.signal);return Ze("loader",ge,[ye.match],ye.matches).then(pe=>pe[0])}else return Promise.resolve({type:_t.error,error:Ln(404,{pathname:ye.path})})})]);return await Promise.all([w3(U,Q,me,me.map(()=>he.signal),!1,M.loaderData),w3(U,ie.map(ye=>ye.match),de,ie.map(ye=>ye.controller?ye.controller.signal:null),!0)]),{loaderResults:me,fetcherResults:de}}function Xn(){S=!0,k.push(...lt()),T.forEach((U,G)=>{R.has(G)&&(I.push(G),_r(G))})}function ze(U,G,Q){Q===void 0&&(Q={}),M.fetchers.set(U,G),re({fetchers:new Map(M.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function et(U,G,Q,ie){ie===void 0&&(ie={});let he=Kc(M.matches,G);it(U),re({errors:{[he.route.id]:Q},fetchers:new Map(M.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function mi(U){return f.v7_fetcherPersist&&(F.set(U,(F.get(U)||0)+1),E.has(U)&&E.delete(U)),M.fetchers.get(U)||gF}function it(U){let G=M.fetchers.get(U);R.has(U)&&!(G&&G.state==="loading"&&C.has(U))&&_r(U),T.delete(U),C.delete(U),m.delete(U),E.delete(U),M.fetchers.delete(U)}function pt(U){if(f.v7_fetcherPersist){let G=(F.get(U)||0)-1;G<=0?(F.delete(U),E.add(U)):F.set(U,G)}else it(U);re({fetchers:new Map(M.fetchers)})}function _r(U){let G=R.get(U);Fe(G,"Expected fetch controller: "+U),G.abort(),R.delete(U)}function ut(U){for(let G of U){let Q=mi(G),ie=Ls(Q.data);M.fetchers.set(G,ie)}}function dt(){let U=[],G=!1;for(let Q of m){let ie=M.fetchers.get(Q);Fe(ie,"Expected fetcher: "+Q),ie.state==="loading"&&(m.delete(Q),U.push(Q),G=!0)}return ut(U),G}function gi(U){let G=[];for(let[Q,ie]of C)if(ie0}function mt(U,G){let Q=M.blockers.get(U)||sc;return V.get(U)!==G&&V.set(U,G),Q}function ht(U){M.blockers.delete(U),V.delete(U)}function In(U,G){let Q=M.blockers.get(U)||sc;Fe(Q.state==="unblocked"&&G.state==="blocked"||Q.state==="blocked"&&G.state==="blocked"||Q.state==="blocked"&&G.state==="proceeding"||Q.state==="blocked"&&G.state==="unblocked"||Q.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+G.state);let ie=new Map(M.blockers);ie.set(U,G),re({blockers:ie})}function vt(U){let{currentLocation:G,nextLocation:Q,historyAction:ie}=U;if(V.size===0)return;V.size>1&&ra(!1,"A router only supports one blocker at a time");let he=Array.from(V.entries()),[me,de]=he[he.length-1],ye=M.blockers.get(me);if(!(ye&&ye.state==="proceeding")&&de({currentLocation:G,nextLocation:Q,historyAction:ie}))return me}function lt(U){let G=[];return $.forEach((Q,ie)=>{(!U||U(ie))&&(Q.cancel(),G.push(ie),$.delete(ie))}),G}function Qi(U,G,Q){if(v=U,y=G,g=Q||null,!w&&M.navigation===B1){w=!0;let ie=xi(M.location,M.matches);ie!=null&&re({restoreScrollPosition:ie})}return()=>{v=null,y=null,g=null}}function yt(U,G){return g&&g(U,G.map(ie=>W$(ie,M.loaderData)))||U.key}function gt(U,G){if(v&&y){let Q=yt(U,G);v[Q]=y()}}function xi(U,G){if(v){let Q=yt(U,G),ie=v[Q];if(typeof ie=="number")return ie}return null}function xt(U){s={},a=Hy(U,i,void 0,s)}return D={get basename(){return l},get future(){return f},get state(){return M},get routes(){return o},get window(){return e},initialize:K,subscribe:te,enableScrollRestoration:Qi,navigate:ue,fetch:Jn,revalidate:we,createHref:U=>t.history.createHref(U),encodeLocation:U=>t.history.encodeLocation(U),getFetcher:mi,deleteFetcher:pt,dispose:oe,getBlocker:mt,deleteBlocker:ht,_internalFetchControllers:R,_internalActiveDeferreds:$,_internalSetRoutes:xt},D}function wF(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function Wy(t,e,r,n,i,s,o,a){let l,c;if(o){l=[];for(let u of e)if(l.push(u),u.route.id===o){c=u;break}}else l=e,c=e[e.length-1];let f=cF(i||".",lF(l,s),Xf(t.pathname,r)||t.pathname,a==="path");return i==null&&(f.search=t.search,f.hash=t.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!hg(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:Ho([r,f.pathname])),Jf(f)}function f3(t,e,r,n){if(!n||!wF(n))return{path:r};if(n.formMethod&&!OF(n.formMethod))return{path:r,error:Ln(405,{method:n.formMethod})};let i=()=>({path:r,error:Ln(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=kC(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!li(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,w]=g;return""+v+y+"="+w+` -`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!li(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}Fe(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=Gy(n.formData),c=n.formData;else if(n.body instanceof FormData)l=Gy(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=y3(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=y3(l)}catch{return i()}let f={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(li(f.formMethod))return{path:r,submission:f};let u=Wi(r);return e&&u.search&&hg(u.search)&&l.append("index",""),u.search="?"+l,{path:Jf(u),submission:f}}function EF(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function u3(t,e,r,n,i,s,o,a,l,c,f,u,d,v,g,y){let w=y?Fn(y[1])?y[1].error:y[1].data:void 0,x=t.createURL(e.location),b=t.createURL(i),A=y&&Fn(y[1])?y[0]:void 0,P=A?EF(r,A):r,_=y?y[1].statusCode:void 0,D=o&&_&&_>=400,M=P.filter((z,H)=>{let{route:Y}=z;if(Y.lazy)return!0;if(Y.loader==null)return!1;if(s)return typeof Y.loader!="function"||Y.loader.hydrate?!0:e.loaderData[Y.id]===void 0&&(!e.errors||e.errors[Y.id]===void 0);if(AF(e.loaderData,e.matches[H],z)||l.some(h=>h===z.route.id))return!0;let Z=e.matches[H],O=z;return d3(z,Lt({currentUrl:x,currentParams:Z.params,nextUrl:b,nextParams:O.params},n,{actionResult:w,unstable_actionStatus:_,defaultShouldRevalidate:D?!1:a||x.pathname+x.search===b.pathname+b.search||x.search!==b.search||CC(Z,O)}))}),L=[];return u.forEach((z,H)=>{if(s||!r.some(S=>S.route.id===z.routeId)||f.has(H))return;let Y=Ha(v,z.path,g);if(!Y){L.push({key:H,routeId:z.routeId,path:z.path,matches:null,match:null,controller:null});return}let Z=e.fetchers.get(H),O=Ky(Y,z.path),h=!1;d.has(H)?h=!1:c.includes(H)?h=!0:Z&&Z.state!=="idle"&&Z.data===void 0?h=a:h=d3(O,Lt({currentUrl:x,currentParams:e.matches[e.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:w,unstable_actionStatus:_,defaultShouldRevalidate:D?!1:a})),h&&L.push({key:H,routeId:z.routeId,path:z.path,matches:Y,match:O,controller:new AbortController})}),[M,L]}function AF(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function CC(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function d3(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function h3(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];Fe(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";ra(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!q$.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,Lt({},e(i),{lazy:void 0}))}function SF(t){return Promise.all(t.matches.map(e=>e.resolve()))}async function CF(t,e,r,n,i,s,o,a){let l=n.reduce((u,d)=>u.add(d.route.id),new Set),c=new Set,f=await t({matches:i.map(u=>{let d=l.has(u.route.id);return Lt({},u,{shouldLoad:d,resolve:g=>(c.add(u.route.id),d?kF(e,r,u,s,o,g,a):Promise.resolve({type:_t.data,result:void 0}))})}),request:r,params:i[0].params,context:a});return i.forEach(u=>Fe(c.has(u.route.id),'`match.resolve()` was not called for route id "'+u.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((u,d)=>l.has(i[d].route.id))}async function kF(t,e,r,n,i,s,o){let a,l,c=f=>{let u,d=new Promise((y,w)=>u=w);l=()=>u(),e.signal.addEventListener("abort",l);let v=y=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id+"]"))):f({request:e,params:r.params,context:o},...y!==void 0?[y]:[]),g;return s?g=s(y=>v(y)):g=(async()=>{try{return{type:"data",result:await v()}}catch(y){return{type:"error",result:y}}})(),Promise.race([g,d])};try{let f=r.route[t];if(r.route.lazy)if(f){let u,[d]=await Promise.all([c(f).catch(v=>{u=v}),h3(r.route,i,n)]);if(u!==void 0)throw u;a=d}else if(await h3(r.route,i,n),f=r.route[t],f)a=await c(f);else if(t==="action"){let u=new URL(e.url),d=u.pathname+u.search;throw Ln(405,{method:e.method,pathname:d,routeId:r.route.id})}else return{type:_t.data,result:void 0};else if(f)a=await c(f);else{let u=new URL(e.url),d=u.pathname+u.search;throw Ln(404,{pathname:d})}Fe(a.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:_t.error,result:f}}finally{l&&e.signal.removeEventListener("abort",l)}return a}async function PF(t){let{result:e,type:r,status:n}=t;if(PC(e)){let o;try{let a=e.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?e.body==null?o=null:o=await e.json():o=await e.text()}catch(a){return{type:_t.error,error:a}}return r===_t.error?{type:_t.error,error:new fg(e.status,e.statusText,o),statusCode:e.status,headers:e.headers}:{type:_t.data,data:o,statusCode:e.status,headers:e.headers}}if(r===_t.error)return{type:_t.error,error:e,statusCode:ug(e)?e.status:n};if(_F(e)){var i,s;return{type:_t.deferred,deferredData:e,statusCode:(i=e.init)==null?void 0:i.status,headers:((s=e.init)==null?void 0:s.headers)&&new Headers(e.init.headers)}}return{type:_t.data,data:e,statusCode:n}}function RF(t,e,r,n,i,s){let o=t.headers.get("Location");if(Fe(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!dg.test(o)){let a=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=Wy(new URL(e.url),a,i,!0,o,s),t.headers.set("Location",o)}return t}function v3(t,e,r){if(dg.test(t)){let n=t,i=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=Xf(i.pathname,r)!=null;if(i.origin===e.origin&&s)return i.pathname+i.search+i.hash}return t}function Aa(t,e,r,n){let i=t.createURL(kC(e)).toString(),s={signal:r};if(n&&li(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=Gy(n.formData):s.body=n.formData}return new Request(i,s)}function Gy(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function y3(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function TF(t,e,r,n,i,s){let o={},a=null,l,c=!1,f={},u=n&&Fn(n[1])?n[1].error:void 0;return r.forEach((d,v)=>{let g=e[v].route.id;if(Fe(!Bo(d),"Cannot handle redirect results in processLoaderData"),Fn(d)){let y=d.error;if(u!==void 0&&(y=u,u=void 0),a=a||{},s)a[g]=y;else{let w=Kc(t,g);a[w.route.id]==null&&(a[w.route.id]=y)}o[g]=void 0,c||(c=!0,l=ug(d.error)?d.error.status:500),d.headers&&(f[g]=d.headers)}else jo(d)?(i.set(g,d.deferredData),o[g]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers)):(o[g]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:l||200,loaderHeaders:f}}function p3(t,e,r,n,i,s,o,a){let{loaderData:l,errors:c}=TF(e,r,n,i,a,!1);for(let f=0;fn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function x3(t){let e=t.length===1?t[0]:t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ln(t,e){let{pathname:r,routeId:n,method:i,type:s}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):t===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",a='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new fg(t||500,o,new Error(a),!0)}function b3(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(Bo(r))return{result:r,idx:e}}}function kC(t){let e=typeof t=="string"?Wi(t):t;return Jf(Lt({},e,{hash:""}))}function MF(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function IF(t){return PC(t.result)&&pF.has(t.result.status)}function jo(t){return t.type===_t.deferred}function Fn(t){return t.type===_t.error}function Bo(t){return(t&&t.type)===_t.redirect}function _F(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function PC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function OF(t){return yF.has(t.toLowerCase())}function li(t){return hF.has(t.toLowerCase())}async function w3(t,e,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!CC(c,l)&&(s&&s[l.route.id])!==void 0;if(jo(a)&&(i||f)){let u=n[o];Fe(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await RC(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function RC(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:_t.data,data:t.deferredData.unwrappedData}}catch(i){return{type:_t.error,error:i}}return{type:_t.data,data:t.deferredData.data}}}function hg(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Ky(t,e){let r=typeof e=="string"?Wi(e).search:e.search;if(t[t.length-1].route.index&&hg(r||""))return t[t.length-1];let n=EC(t);return n[n.length-1]}function E3(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:s,json:o}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function $1(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function NF(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function oc(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function DF(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Ls(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function LF(t,e){try{let r=t.sessionStorage.getItem(SC);if(r){let n=JSON.parse(r);for(let[i,s]of Object.entries(n||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function jF(t,e){if(e.size>0){let r={};for(let[n,i]of e)r[n]=[...i];try{t.sessionStorage.setItem(SC,JSON.stringify(r))}catch(n){ra(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function lh(){return lh=Object.assign?Object.assign.bind():function(t){for(var e=1;eObject.assign({},w,{params:Object.assign({},a,w.params),pathname:Ho([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Ho([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,r,n);return e&&y?p.createElement(y0.Provider,{value:{location:lh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Zt.Pop}},y):y}function FF(){let t=KF(),e=ug(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},e),r?p.createElement("pre",{style:i},r):null,s)}const UF=p.createElement(FF,null);class zF extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?p.createElement(p0.Provider,{value:this.props.routeContext},p.createElement(_C.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function VF(t){let{routeContext:e,match:r,children:n}=t,i=p.useContext(TC);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(p0.Provider,{value:e},n)}function qF(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if((s=r)!=null&&s.errors)t=r.matches;else return null}let o=t,a=(i=r)==null?void 0:i.errors;if(a!=null){let f=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);f>=0||Fe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((f,u,d)=>{let v,g=!1,y=null,w=null;r&&(v=a&&u.route.id?a[u.route.id]:void 0,y=u.route.errorElement||UF,l&&(c<0&&d===0?(QF("route-fallback",!1),g=!0,w=null):c===d&&(g=!0,w=u.route.hydrateFallbackElement||null)));let x=e.concat(o.slice(0,d+1)),b=()=>{let A;return v?A=y:g?A=w:u.route.Component?A=p.createElement(u.route.Component,null):u.route.element?A=u.route.element:A=f,p.createElement(VF,{match:u,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:A})};return r&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?p.createElement(zF,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var Qy=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Qy||{});function HF(t){let e=p.useContext(MC);return e||Fe(!1),e}function WF(t){let e=p.useContext(p0);return e||Fe(!1),e}function GF(t){let e=WF(),r=e.matches[e.matches.length-1];return r.route.id||Fe(!1),r.route.id}function KF(){var t;let e=p.useContext(_C),r=HF(Qy.UseRouteError),n=GF(Qy.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}const A3={};function QF(t,e,r){!e&&!A3[t]&&(A3[t]=!0)}function YF(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Zt.Pop,navigator:s,static:o=!1,future:a}=t;vg()&&Fe(!1);let l=e.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:s,static:o,future:lh({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof n=="string"&&(n=Wi(n));let{pathname:f="/",search:u="",hash:d="",state:v=null,key:g="default"}=n,y=p.useMemo(()=>{let w=Xf(f,l);return w==null?null:{location:{pathname:w,search:u,hash:d,state:v,key:g},navigationType:i}},[l,f,u,d,v,g,i]);return y==null?null:p.createElement(IC.Provider,{value:c},p.createElement(y0.Provider,{children:r,value:y}))}new Promise(()=>{});function JF(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:p.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:p.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:p.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** - * React Router DOM v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ch(){return ch=Object.assign?Object.assign.bind():function(t){for(var e=1;e{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function lU(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=p.useState(r.state),[o,a]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[f,u]=p.useState(),[d,v]=p.useState(),[g,y]=p.useState(),w=p.useRef(new Map),{v7_startTransition:x}=n||{},b=p.useCallback(M=>{x?oU(M):M()},[x]),A=p.useCallback((M,L)=>{let{deletedFetchers:z,unstable_flushSync:H,unstable_viewTransitionOpts:Y}=L;z.forEach(O=>w.current.delete(O)),M.fetchers.forEach((O,h)=>{O.data!==void 0&&w.current.set(h,O.data)});let Z=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!Y||Z){H?ac(()=>s(M)):b(()=>s(M));return}if(H){ac(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})});let O=r.window.document.startViewTransition(()=>{ac(()=>s(M))});O.finished.finally(()=>{ac(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})})}),ac(()=>v(O));return}d?(f&&f.resolve(),d.skipTransition(),y({state:M,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})):(a(M),c({isTransitioning:!0,flushSync:!1,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation}))},[r.window,d,f,w,b]);p.useLayoutEffect(()=>r.subscribe(A),[r,A]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&u(new aU)},[l]),p.useEffect(()=>{if(f&&o&&r.window){let M=o,L=f.promise,z=r.window.document.startViewTransition(async()=>{b(()=>s(M)),await L});z.finished.finally(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})}),v(z)}},[b,o,f,r.window]),p.useEffect(()=>{f&&o&&i.location.key===o.location.key&&f.resolve()},[f,d,i.location,o]),p.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[l.isTransitioning,g]),p.useEffect(()=>{},[]);let P=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:M=>r.navigate(M),push:(M,L,z)=>r.navigate(M,{state:L,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(M,L,z)=>r.navigate(M,{replace:!0,state:L,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[r]),_=r.basename||"/",D=p.useMemo(()=>({router:r,navigator:P,static:!1,basename:_}),[r,P,_]);return p.createElement(p.Fragment,null,p.createElement(TC.Provider,{value:D},p.createElement(MC.Provider,{value:i},p.createElement(nU.Provider,{value:w.current},p.createElement(rU.Provider,{value:l},p.createElement(YF,{basename:_,location:i.location,navigationType:i.historyAction,navigator:P,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?p.createElement(cU,{routes:r.routes,future:r.future,state:i}):e))))),null)}function cU(t){let{routes:e,future:r,state:n}=t;return $F(e,void 0,n,r)}var k3;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(k3||(k3={}));var P3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(P3||(P3={}));var fU="_1csw4y80 _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8";const OC=t=>{const{value:e,digits:r=6,onChange:n,disabled:i=!1}=t,s=p.useMemo(()=>R3(0,r).map(()=>p.createRef()),[]);p.useEffect(()=>{var c,f;(f=(c=s[0])==null?void 0:c.current)==null||f.focus()},[]);const o=(c,f)=>{var d,v;/^\d$/.test(f)||(f="");const u=[...e];u[c]=f,f!==""&&((v=(d=s[c+1])==null?void 0:d.current)==null||v.focus()),n(u)},a=(c,f)=>{var g,y;const u=s[c].current,d=(g=s[c-1])==null?void 0:g.current,v=(y=s[c+1])==null?void 0:y.current;switch(f.key){case"Backspace":f.preventDefault(),u&&(u.value="",o(c,"")),d==null||d.focus();break;case"ArrowLeft":f.preventDefault(),d==null||d.focus();break;case"ArrowRight":f.preventDefault(),v==null||v.focus();break;default:(u==null?void 0:u.value)===f.key&&(f.preventDefault(),o(c,f.key))}},l=(c,f)=>{var v,g;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((g=(v=s[0])==null?void 0:v.current)==null||g.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return j.jsx(ee,{gap:"2",children:R3(0,r).map(c=>j.jsxs(p.Fragment,{children:[c===r/2&&j.jsx("span",{}),j.jsx(ee,{as:"input",className:fU,value:e[c]||"",ref:s[c],type:"text",inputMode:"numeric",maxLength:1,disabled:i,onFocus:f=>f.target.select(),onPaste:f=>l(c,f),onChange:f=>o(c,f.target.value),onKeyDown:f=>{a(c,f)}})]},c))})},R3=(t,e)=>Array.from({length:e-t},(r,n)=>n+t),NC=()=>j.jsxs(ee,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[j.jsx(Se,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),j.jsx(Se,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function uU(t={}){const{nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}=t,[i,s]=p.useState(!1),o=p.useRef(r);o.current=r;const a=p.useRef(n);return a.current=n,p.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=e,l.onload=()=>{var c;s(!0),(c=o.current)===null||c===void 0||c.call(o)},l.onerror=()=>{var c;s(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[e]),i}const DC=p.createContext(null);function dU({clientId:t,nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=uU({nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}),o=p.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:s}),[t,s]);return gr.createElement(DC.Provider,{value:o},i)}function hU(){const t=p.useContext(DC);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function vU(t){var e;return(e=t==null?void 0:t.clientId)!==null&&e!==void 0?e:t==null?void 0:t.client_id}const yU={large:40,medium:32,small:20};function pU({onSuccess:t,onError:e,useOneTap:r,promptMomentNotification:n,type:i="standard",theme:s="outline",size:o="large",text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d,containerProps:v,...g}){const y=p.useRef(null),{clientId:w,scriptLoadedSuccessfully:x}=hU(),b=p.useRef(t);b.current=t;const A=p.useRef(e);A.current=e;const P=p.useRef(n);return P.current=n,p.useEffect(()=>{var _,D,M,L,z,H,Y,Z,O;if(x)return(M=(D=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||D===void 0?void 0:D.id)===null||M===void 0||M.initialize({client_id:w,callback:h=>{var S;if(!(h!=null&&h.credential))return(S=A.current)===null||S===void 0?void 0:S.call(A);const{credential:k,select_by:I}=h;b.current({credential:k,clientId:vU(h),select_by:I})},...g}),(H=(z=(L=window==null?void 0:window.google)===null||L===void 0?void 0:L.accounts)===null||z===void 0?void 0:z.id)===null||H===void 0||H.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((O=(Z=(Y=window==null?void 0:window.google)===null||Y===void 0?void 0:Y.accounts)===null||Z===void 0?void 0:Z.id)===null||O===void 0||O.prompt(P.current)),()=>{var h,S,k;r&&((k=(S=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||S===void 0?void 0:S.id)===null||k===void 0||k.cancel())}},[w,x,r,i,s,o,a,l,c,f,u]),gr.createElement("div",{...v,ref:y,style:{height:yU[o],...v==null?void 0:v.style}})}function mU(){var t,e,r;(r=(e=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.accounts)===null||e===void 0?void 0:e.id)===null||r===void 0||r.disableAutoSelect()}var LC={},m0={},Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=void 0;var gU=p;function xU(t){(0,gU.useEffect)(function(){if(t){var e=document.querySelectorAll('script[src="'.concat(t,'"]'))[0];e||(e=document.createElement("script"),e.src=t,e.async=!0,document.body.appendChild(e))}},[t])}var bU=xU;Zf.default=bU;var eu={},g0={};Object.defineProperty(g0,"__esModule",{value:!0});g0.default=void 0;var wU=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},n=r.pollFrequency,i=n===void 0?1e3:n,s=r.retries,o=s===void 0?100:s,a=r.parent,l=a===void 0?window:a;if(l&&l.hasOwnProperty(e))return Promise.resolve(l[e]);if(!o)return Promise.resolve(void 0);var c=o-1;return new Promise(function(f){return setTimeout(f,typeof i=="function"?i({retries:c}):i)}).then(function(){return t(e,{pollFrequency:i,parent:l,retries:c})})},EU=wU;g0.default=EU;Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var AU=SU(g0);function SU(t){return t&&t.__esModule?t:{default:t}}var CU="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",kU=function(e){var r=e.authOptions,n=e.onSuccess,i=e.onError;return(0,AU.default)("AppleID").then(function(){return window.AppleID||console.error(new Error("Error loading apple script")),window.AppleID.auth.init(r),window.AppleID.auth.signIn().then(function(s){return n&&n(s),s}).catch(function(s){return i?i(s):console.error(s),null})}).catch(function(s){return i?i(s):console.error(s),null})},PU={APPLE_SCRIPT_SRC:CU,signIn:kU};eu.default=PU;Object.defineProperty(m0,"__esModule",{value:!0});m0.default=void 0;var wi=yg(p),RU=yg(Zf),T3=yg(eu),TU=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function yg(t){return t&&t.__esModule?t:{default:t}}function fh(){return fh=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OU(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}var NU=` -.react-apple-signin-auth-btn { - background-color: transparent; - border: none; - padding: 0; - cursor: pointer; - border-radius: 4px; - padding: 0 8px 0 2px; - font-size: 14px; - font-size: 1em; - line-height: 1; - border: 1px solid #000; - overflow: hidden; - display: inline-flex; - justify-content: center; - align-items: center; -} -.react-apple-signin-auth-btn-light { - background-color: #FFF; - color: #000; - border-color: #000; -} -.react-apple-signin-auth-btn-dark { - background-color: #000; - color: #FFF; - border-color: #FFF; -}`.replace(/ {2}|\n/g,""),DU=function(e){var r=e.onSuccess,n=e.onError,i=e.skipScript,s=i===void 0?!1:i,o=e.authOptions,a=e.iconProps,l=e.render,c=e.uiType,f=c===void 0?"dark":c,u=e.className,d=e.noDefaultStyle,v=d===void 0?!1:d,g=e.buttonExtraChildren,y=g===void 0?"Continue with Apple":g,w=_U(e,TU);(0,RU.default)(s?null:T3.default.APPLE_SCRIPT_SRC);var x=function(P){P&&(P.preventDefault(),P.stopPropagation()),T3.default.signIn({authOptions:o,onSuccess:r,onError:n})},b=MU({children:wi.default.createElement(wi.default.Fragment,null,wi.default.createElement("svg",fh({width:"24px",height:"44px",viewBox:"0 0 24 44"},a),wi.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},wi.default.createElement("rect",{fill:f==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),wi.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:f==="light"?"#000":"#FFF",fillRule:"nonzero"}))),y),onClick:x},w);return l?l(b):wi.default.createElement(wi.default.Fragment,null,wi.default.createElement("button",fh({className:"".concat(v?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(f)).concat(u?" ".concat(u):""),type:"button","aria-label":"Signin with apple ID"},b)),v?null:wi.default.createElement("style",null,NU))},LU=DU;m0.default=LU;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appleAuthHelpers",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"useScript",{enumerable:!0,get:function(){return n.default}}),t.default=void 0;var e=i(m0),r=i(eu),n=i(Zf);function i(o){return o&&o.__esModule?o:{default:o}}var s=e.default;t.default=s})(LC);const jU=Ss(LC);function uh(){return uh=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Vt({},n,i)).then(s=>Jt(s).then(o=>({status:o.status})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.version=(n,i)=>this.fetch(this.url("Version"),Vt({},n,i)).then(s=>Jt(s).then(o=>({version:o.version})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.runtimeStatus=(n,i)=>this.fetch(this.url("RuntimeStatus"),Vt({},n,i)).then(s=>Jt(s).then(o=>({status:o.status})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.getChainID=(n,i)=>this.fetch(this.url("GetChainID"),Vt({},n,i)).then(s=>Jt(s).then(o=>({chainID:o.chainID})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.getEtherBalance=(n,i,s)=>this.fetch(this.url("GetEtherBalance"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({balance:a.balance})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,i,s)=>this.fetch(this.url("GetTokenBalances"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,i,s)=>this.fetch(this.url("GetTokenSupplies"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,i,s)=>this.fetch(this.url("GetTokenSuppliesMap"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({supplies:a.supplies})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,i,s)=>this.fetch(this.url("GetBalanceUpdates"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,i,s)=>this.fetch(this.url("GetTransactionHistory"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,i,s)=>this.fetch(this.url("SyncBalance"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,i,s)=>this.fetch(this.url("FetchTransactionReceipt"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({receipt:a.receipt})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,i,s)=>this.fetch(this.url("GetOrderbookOrders"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,i,s)=>this.fetch(this.url("GetTopOrders"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({orders:a.orders})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,i,s)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({receipt:a.receipt})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,i,s)=>this.fetch(this.url("GetAllWebhookListeners"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({listeners:a.listeners})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,i,s)=>this.fetch(this.url("GetWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({listener:a.listener})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,i,s)=>this.fetch(this.url("AddWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,i,s)=>this.fetch(this.url("UpdateWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,i,s)=>this.fetch(this.url("RemoveWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeReceipts"),Vt(n,i.headers,i.signal)).then(async function(o){await I3(o,i,s)},o=>{i.onError(o,s)});return s()},this.subscribeEvents=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeEvents"),Vt(n,i.headers,i.signal)).then(async function(o){await I3(o,i,s)},o=>{i.onError(o,s)});return s()},this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const I3=async(t,e,r)=>{const{onMessage:n,onOpen:i,onClose:s,onError:o}=e;if(!t.ok){try{await Jt(t)}catch(v){o(v,r)}return}if(!t.body){o(dh.new({status:t.status,cause:"Invalid response, missing body"}),r);return}i&&i();const a=t.body.getReader(),l=new TextDecoder;let c="",f=Date.now();const u=(10+1)*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-f>u)throw hd.new({cause:"Stream timed out"})},u);;){let v,g;try{({value:v,done:g}=await a.read()),f=Date.now(),c+=l.decode(v,{stream:!0})}catch(w){let x="";w instanceof Error&&(x=w.message),w instanceof DOMException&&w.name==="AbortError"?o(qt.new({message:"AbortError",cause:`AbortError: ${x}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(hd.new({cause:`reader.read(): ${x}`}),r);return}let y=c.split(` -`);for(let w=0;w({method:"POST",headers:uh({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Jt=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),dh.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(YC[n]||Pt).new(r)}return r});let Pt=class jC extends Error{constructor(e,r,n,i,s){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,jC.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},$U=class BC extends Pt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,BC.prototype)}},qt=class $C extends Pt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,$C.prototype)}},FU=class FC extends Pt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,FC.prototype)}},UU=class UC extends Pt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,UC.prototype)}},zU=class zC extends Pt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,zC.prototype)}},dh=class VC extends Pt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,VC.prototype)}},VU=class qC extends Pt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,qC.prototype)}},qU=class HC extends Pt{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,HC.prototype)}},HU=class WC extends Pt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,WC.prototype)}},hd=class GC extends Pt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,GC.prototype)}},WU=class KC extends Pt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,KC.prototype)}},GU=class QC extends Pt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,QC.prototype)}};class pg extends Pt{constructor(e="PermissionDenied",r=1001,n="Permission denied",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,pg.prototype)}}class mg extends Pt{constructor(e="SessionExpired",r=1002,n="Session expired",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,mg.prototype)}}class gg extends Pt{constructor(e="MethodNotFound",r=1003,n="Method not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,gg.prototype)}}class xg extends Pt{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,xg.prototype)}}class bg extends Pt{constructor(e="Aborted",r=1005,n="Request aborted",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,bg.prototype)}}class wg extends Pt{constructor(e="Timeout",r=2e3,n="Request timed out",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,wg.prototype)}}class Eg extends Pt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Eg.prototype)}}class Ag extends Pt{constructor(e="Unavailable",r=2002,n="Unavailable resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Ag.prototype)}}class Sg extends Pt{constructor(e="QueryFailed",r=2003,n="Query failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Sg.prototype)}}class Cg extends Pt{constructor(e="NotFound",r=3e3,n="Resource not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Cg.prototype)}}class kg extends Pt{constructor(e="ProjectNotFound",r=3002,n="Project not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,kg.prototype)}}class Pg extends Pt{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Pg.prototype)}}const YC={0:$U,[-1]:qt,[-2]:FU,[-3]:UU,[-4]:zU,[-5]:dh,[-6]:VU,[-7]:qU,[-8]:HU,[-9]:hd,[-10]:WU,1e3:GU,1001:pg,1002:mg,1003:gg,1004:xg,1005:bg,2e3:wg,2001:Eg,2002:Ag,2003:Sg,3e3:Cg,3002:kg,3003:Pg},_3=typeof global=="object"?global.fetch:window.fetch;class JC extends BU{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,_3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(i,s)=>{const o={},a=this.jwtAuth,l=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),l&&l.length>0&&(o["X-Access-Key"]=l),s.headers=uh({},s.headers,o),_3(i,s)},this.fetch=this._fetch}}let X=function(t){return t[t.MAINNET=1]="MAINNET",t[t.ROPSTEN=3]="ROPSTEN",t[t.RINKEBY=4]="RINKEBY",t[t.GOERLI=5]="GOERLI",t[t.KOVAN=42]="KOVAN",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.POLYGON=137]="POLYGON",t[t.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",t[t.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",t[t.POLYGON_AMOY=80002]="POLYGON_AMOY",t[t.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_KOVAN=69]="OPTIMISM_KOVAN",t[t.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",t[t.OPTIMISM_SEPOLIA=11155420]="OPTIMISM_SEPOLIA",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.BASE_SEPOLIA=84532]="BASE_SEPOLIA",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.XAI=660279]="XAI",t[t.XAI_SEPOLIA=37714555429]="XAI_SEPOLIA",t[t.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",t[t.ASTAR_ZKYOTO=6038361]="ASTAR_ZKYOTO",t[t.XR_SEPOLIA=2730]="XR_SEPOLIA",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),qe=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const st={[X.MAINNET]:{chainId:X.MAINNET,type:qe.MAINNET,name:"mainnet",title:"Ethereum",logoURI:`https://assets.sequence.info/images/networks/medium/${X.MAINNET}.webp`,blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[X.ROPSTEN]:{chainId:X.ROPSTEN,type:qe.TESTNET,name:"ropsten",title:"Ropsten",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ROPSTEN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.RINKEBY]:{chainId:X.RINKEBY,type:qe.TESTNET,name:"rinkeby",title:"Rinkeby",logoURI:`https://assets.sequence.info/images/networks/medium/${X.RINKEBY}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.GOERLI]:{chainId:X.GOERLI,type:qe.TESTNET,name:"goerli",title:"Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.KOVAN]:{chainId:X.KOVAN,type:qe.TESTNET,name:"kovan",title:"Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${X.KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"},deprecated:!0},[X.SEPOLIA]:{chainId:X.SEPOLIA,type:qe.TESTNET,name:"sepolia",title:"Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[X.POLYGON]:{chainId:X.POLYGON,type:qe.MAINNET,name:"polygon",title:"Polygon",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON}.webp`,blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[X.POLYGON_MUMBAI]:{chainId:X.POLYGON_MUMBAI,type:qe.TESTNET,name:"mumbai",title:"Polygon Mumbai",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_MUMBAI}.webp`,testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"},deprecated:!0},[X.POLYGON_AMOY]:{chainId:X.POLYGON_AMOY,type:qe.TESTNET,name:"amoy",title:"Polygon Amoy",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_AMOY}.webp`,testnet:!0,blockExplorer:{name:"OKLink (Amoy)",rootUrl:"https://www.oklink.com/amoy"}},[X.POLYGON_ZKEVM]:{chainId:X.POLYGON_ZKEVM,type:qe.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_ZKEVM}.webp`,blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[X.BSC]:{chainId:X.BSC,type:qe.MAINNET,name:"bsc",title:"BNB Smart Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BSC}.webp`,blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[X.BSC_TESTNET]:{chainId:X.BSC_TESTNET,type:qe.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BSC_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[X.OPTIMISM]:{chainId:X.OPTIMISM,type:qe.MAINNET,name:"optimism",title:"Optimism",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM}.webp`,blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[X.OPTIMISM_KOVAN]:{chainId:X.OPTIMISM_KOVAN,type:qe.TESTNET,name:"optimism-kovan",title:"Optimistic Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Kovan)",rootUrl:"https://kovan-optimistic.etherscan.io/"},deprecated:!0},[X.OPTIMISM_GOERLI]:{chainId:X.OPTIMISM_GOERLI,type:qe.TESTNET,name:"optimism-goerli",title:"Optimistic Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Goerli)",rootUrl:"https://goerli-optimistic.etherscan.io/"},deprecated:!0},[X.OPTIMISM_SEPOLIA]:{chainId:X.OPTIMISM_SEPOLIA,type:qe.TESTNET,name:"optimism-sepolia",title:"Optimistic Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Sepolia)",rootUrl:"https://sepolia-optimistic.etherscan.io/"}},[X.ARBITRUM]:{chainId:X.ARBITRUM,type:qe.MAINNET,name:"arbitrum",title:"Arbitrum One",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM}.webp`,blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[X.ARBITRUM_GOERLI]:{chainId:X.ARBITRUM_GOERLI,type:qe.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Goerli Testnet)",rootUrl:"https://testnet.arbiscan.io/"},deprecated:!0},[X.ARBITRUM_SEPOLIA]:{chainId:X.ARBITRUM_SEPOLIA,type:qe.TESTNET,name:"arbitrum-sepolia",title:"Arbitrum Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Sepolia Testnet)",rootUrl:"https://sepolia.arbiscan.io/"}},[X.ARBITRUM_NOVA]:{chainId:X.ARBITRUM_NOVA,type:qe.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_NOVA}.webp`,blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[X.AVALANCHE]:{chainId:X.AVALANCHE,type:qe.MAINNET,name:"avalanche",title:"Avalanche",logoURI:`https://assets.sequence.info/images/networks/medium/${X.AVALANCHE}.webp`,blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[X.AVALANCHE_TESTNET]:{chainId:X.AVALANCHE_TESTNET,type:qe.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.AVALANCHE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[X.GNOSIS]:{chainId:X.GNOSIS,type:qe.MAINNET,name:"gnosis",title:"Gnosis Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${X.GNOSIS}.webp`,blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[X.BASE]:{chainId:X.BASE,type:qe.MAINNET,name:"base",title:"Base (Coinbase)",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE}.webp`,blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[X.BASE_GOERLI]:{chainId:X.BASE_GOERLI,type:qe.TESTNET,name:"base-goerli",title:"Base Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"},deprecated:!0},[X.BASE_SEPOLIA]:{chainId:X.BASE_SEPOLIA,type:qe.TESTNET,name:"base-sepolia",title:"Base Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Base Sepolia Explorer",rootUrl:"https://base-sepolia.blockscout.com/"}},[X.HOMEVERSE]:{chainId:X.HOMEVERSE,type:qe.MAINNET,name:"homeverse",title:"Oasys Homeverse",logoURI:`https://assets.sequence.info/images/networks/medium/${X.HOMEVERSE}.webp`,blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[X.HOMEVERSE_TESTNET]:{chainId:X.HOMEVERSE_TESTNET,type:qe.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.HOMEVERSE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[X.XAI]:{chainId:X.XAI,type:qe.MAINNET,name:"xai",title:"Xai",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XAI}.webp`,blockExplorer:{name:"Xai Explorer",rootUrl:"https://explorer.xai-chain.net/"}},[X.XAI_SEPOLIA]:{chainId:X.XAI_SEPOLIA,type:qe.TESTNET,name:"xai-sepolia",title:"Xai Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XAI_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Xai Sepolia Explorer",rootUrl:"https://testnet-explorer-v2.xai-chain.net/"}},[X.ASTAR_ZKEVM]:{chainId:X.ASTAR_ZKEVM,type:qe.MAINNET,name:"astar-zkevm",title:"Astar zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ASTAR_ZKEVM}.webp`,blockExplorer:{name:"Astar zkEVM Explorer",rootUrl:"https://astar-zkevm.explorer.startale.com/"}},[X.ASTAR_ZKYOTO]:{chainId:X.ASTAR_ZKYOTO,type:qe.TESTNET,name:"astar-zkyoto",title:"Astar zKyoto Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ASTAR_ZKYOTO}.webp`,testnet:!0,blockExplorer:{name:"Astar zKyoto Explorer",rootUrl:"https://astar-zkyoto.blockscout.com/"}},[X.XR_SEPOLIA]:{chainId:X.XR_SEPOLIA,type:qe.TESTNET,name:"xr-sepolia",title:"XR Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XR_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"XR Sepolia Explorer",rootUrl:"https://xr-sepolia-testnet.explorer.caldera.xyz/"}},[X.HARDHAT]:{chainId:X.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[X.HARDHAT_2]:{chainId:X.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var Rg={exports:{}};const KU={},QU=Object.freeze(Object.defineProperty({__proto__:null,default:KU},Symbol.toStringTag,{value:"Module"})),YU=Ih(QU);Rg.exports;(function(t){(function(e,r){function n(O,h){if(!O)throw new Error(h||"Assertion failed")}function i(O,h){O.super_=h;var S=function(){};S.prototype=h.prototype,O.prototype=new S,O.prototype.constructor=O}function s(O,h,S){if(s.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((h==="le"||h==="be")&&(S=h,h=10),this._init(O||0,h||10,S||"be"))}typeof e=="object"?e.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=YU.Buffer}catch{}s.isBN=function(h){return h instanceof s?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,S){return h.cmp(S)>0?h:S},s.min=function(h,S){return h.cmp(S)<0?h:S},s.prototype._init=function(h,S,k){if(typeof h=="number")return this._initNumber(h,S,k);if(typeof h=="object")return this._initArray(h,S,k);S==="hex"&&(S=16),n(S===(S|0)&&S>=2&&S<=36),h=h.toString().replace(/\s+/g,"");var I=0;h[0]==="-"&&(I++,this.negative=1),I=0;I-=3)N=h[I]|h[I-1]<<8|h[I-2]<<16,this.words[R]|=N<>>26-B&67108863,B+=24,B>=26&&(B-=26,R++);else if(k==="le")for(I=0,R=0;I>>26-B&67108863,B+=24,B>=26&&(B-=26,R++);return this._strip()};function a(O,h){var S=O.charCodeAt(h);if(S>=48&&S<=57)return S-48;if(S>=65&&S<=70)return S-55;if(S>=97&&S<=102)return S-87;n(!1,"Invalid character in "+O)}function l(O,h,S){var k=a(O,S);return S-1>=h&&(k|=a(O,S-1)<<4),k}s.prototype._parseHex=function(h,S,k){this.length=Math.ceil((h.length-S)/6),this.words=new Array(this.length);for(var I=0;I=S;I-=2)B=l(h,S,I)<=18?(R-=18,N+=1,this.words[N]|=B>>>26):R+=8;else{var C=h.length-S;for(I=C%2===0?S+1:S;I=18?(R-=18,N+=1,this.words[N]|=B>>>26):R+=8}this._strip()};function c(O,h,S,k){for(var I=0,R=0,N=Math.min(O.length,S),B=h;B=49?R=C-49+10:C>=17?R=C-17+10:R=C,n(C>=0&&R1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(h,S){h=h||10,S=S|0||1;var k;if(h===16||h==="hex"){k="";for(var I=0,R=0,N=0;N>>24-I&16777215,I+=2,I>=26&&(I-=26,N--),R!==0||N!==this.length-1?k=d[6-C.length]+C+k:k=C+k}for(R!==0&&(k=R.toString(16)+k);k.length%S!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(h===(h|0)&&h>=2&&h<=36){var m=v[h],T=g[h];k="";var F=this.clone();for(F.negative=0;!F.isZero();){var E=F.modrn(T).toString(h);F=F.idivn(T),F.isZero()?k=E+k:k=d[m-E.length]+E+k}for(this.isZero()&&(k="0"+k);k.length%S!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(h,S){return this.toArrayLike(o,h,S)}),s.prototype.toArray=function(h,S){return this.toArrayLike(Array,h,S)};var y=function(h,S){return h.allocUnsafe?h.allocUnsafe(S):new h(S)};s.prototype.toArrayLike=function(h,S,k){this._strip();var I=this.byteLength(),R=k||Math.max(1,I);n(I<=R,"byte array longer than desired length"),n(R>0,"Requested array length <= 0");var N=y(h,R),B=S==="le"?"LE":"BE";return this["_toArrayLike"+B](N,I),N},s.prototype._toArrayLikeLE=function(h,S){for(var k=0,I=0,R=0,N=0;R>8&255),k>16&255),N===6?(k>24&255),I=0,N=0):(I=B>>>24,N+=2)}if(k=0&&(h[k--]=B>>8&255),k>=0&&(h[k--]=B>>16&255),N===6?(k>=0&&(h[k--]=B>>24&255),I=0,N=0):(I=B>>>24,N+=2)}if(k>=0)for(h[k--]=I;k>=0;)h[k--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var S=h,k=0;return S>=4096&&(k+=13,S>>>=13),S>=64&&(k+=7,S>>>=7),S>=8&&(k+=4,S>>>=4),S>=2&&(k+=2,S>>>=2),k+S},s.prototype._zeroBits=function(h){if(h===0)return 26;var S=h,k=0;return S&8191||(k+=13,S>>>=13),S&127||(k+=7,S>>>=7),S&15||(k+=4,S>>>=4),S&3||(k+=2,S>>>=2),S&1||k++,k},s.prototype.bitLength=function(){var h=this.words[this.length-1],S=this._countBits(h);return(this.length-1)*26+S};function w(O){for(var h=new Array(O.bitLength()),S=0;S>>I&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,S=0;Sh.length?this.clone().ior(h):h.clone().ior(this)},s.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},s.prototype.iuand=function(h){var S;this.length>h.length?S=h:S=this;for(var k=0;kh.length?this.clone().iand(h):h.clone().iand(this)},s.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},s.prototype.iuxor=function(h){var S,k;this.length>h.length?(S=this,k=h):(S=h,k=this);for(var I=0;Ih.length?this.clone().ixor(h):h.clone().ixor(this)},s.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var S=Math.ceil(h/26)|0,k=h%26;this._expand(S),k>0&&S--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-k),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,S){n(typeof h=="number"&&h>=0);var k=h/26|0,I=h%26;return this._expand(k+1),S?this.words[k]=this.words[k]|1<h.length?(k=this,I=h):(k=h,I=this);for(var R=0,N=0;N>>26;for(;R!==0&&N>>26;if(this.length=k.length,R!==0)this.words[this.length]=R,this.length++;else if(k!==this)for(;Nh.length?this.clone().iadd(h):h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var S=this.iadd(h);return h.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var k=this.cmp(h);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,R;k>0?(I=this,R=h):(I=h,R=this);for(var N=0,B=0;B>26,this.words[B]=S&67108863;for(;N!==0&&B>26,this.words[B]=S&67108863;if(N===0&&B>>26,F=C&67108863,E=Math.min(m,h.length-1),$=Math.max(0,m-O.length+1);$<=E;$++){var V=m-$|0;I=O.words[V]|0,R=h.words[$]|0,N=I*R+F,T+=N/67108864|0,F=N&67108863}S.words[m]=F|0,C=T|0}return C!==0?S.words[m]=C|0:S.length--,S._strip()}var b=function(h,S,k){var I=h.words,R=S.words,N=k.words,B=0,C,m,T,F=I[0]|0,E=F&8191,$=F>>>13,V=I[1]|0,q=V&8191,K=V>>>13,oe=I[2]|0,te=oe&8191,re=oe>>>13,Ie=I[3]|0,ue=Ie&8191,we=Ie>>>13,zt=I[4]|0,Ve=zt&8191,ot=zt>>>13,Jn=I[5]|0,at=Jn&8191,Ge=Jn>>>13,un=I[6]|0,Ze=un&8191,ft=un>>>13,Xn=I[7]|0,ze=Xn&8191,et=Xn>>>13,mi=I[8]|0,it=mi&8191,pt=mi>>>13,_r=I[9]|0,ut=_r&8191,dt=_r>>>13,gi=R[0]|0,mt=gi&8191,ht=gi>>>13,In=R[1]|0,vt=In&8191,lt=In>>>13,Qi=R[2]|0,yt=Qi&8191,gt=Qi>>>13,xi=R[3]|0,xt=xi&8191,U=xi>>>13,G=R[4]|0,Q=G&8191,ie=G>>>13,he=R[5]|0,me=he&8191,de=he>>>13,ye=R[6]|0,ge=ye&8191,pe=ye>>>13,Rt=R[7]|0,_e=Rt&8191,ve=Rt>>>13,Ke=R[8]|0,ke=Ke&8191,tt=Ke>>>13,Or=R[9]|0,Qe=Or&8191,Ye=Or>>>13;k.negative=h.negative^S.negative,k.length=19,C=Math.imul(E,mt),m=Math.imul(E,ht),m=m+Math.imul($,mt)|0,T=Math.imul($,ht);var Hr=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,C=Math.imul(q,mt),m=Math.imul(q,ht),m=m+Math.imul(K,mt)|0,T=Math.imul(K,ht),C=C+Math.imul(E,vt)|0,m=m+Math.imul(E,lt)|0,m=m+Math.imul($,vt)|0,T=T+Math.imul($,lt)|0;var fr=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(fr>>>26)|0,fr&=67108863,C=Math.imul(te,mt),m=Math.imul(te,ht),m=m+Math.imul(re,mt)|0,T=Math.imul(re,ht),C=C+Math.imul(q,vt)|0,m=m+Math.imul(q,lt)|0,m=m+Math.imul(K,vt)|0,T=T+Math.imul(K,lt)|0,C=C+Math.imul(E,yt)|0,m=m+Math.imul(E,gt)|0,m=m+Math.imul($,yt)|0,T=T+Math.imul($,gt)|0;var dn=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(dn>>>26)|0,dn&=67108863,C=Math.imul(ue,mt),m=Math.imul(ue,ht),m=m+Math.imul(we,mt)|0,T=Math.imul(we,ht),C=C+Math.imul(te,vt)|0,m=m+Math.imul(te,lt)|0,m=m+Math.imul(re,vt)|0,T=T+Math.imul(re,lt)|0,C=C+Math.imul(q,yt)|0,m=m+Math.imul(q,gt)|0,m=m+Math.imul(K,yt)|0,T=T+Math.imul(K,gt)|0,C=C+Math.imul(E,xt)|0,m=m+Math.imul(E,U)|0,m=m+Math.imul($,xt)|0,T=T+Math.imul($,U)|0;var hn=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(hn>>>26)|0,hn&=67108863,C=Math.imul(Ve,mt),m=Math.imul(Ve,ht),m=m+Math.imul(ot,mt)|0,T=Math.imul(ot,ht),C=C+Math.imul(ue,vt)|0,m=m+Math.imul(ue,lt)|0,m=m+Math.imul(we,vt)|0,T=T+Math.imul(we,lt)|0,C=C+Math.imul(te,yt)|0,m=m+Math.imul(te,gt)|0,m=m+Math.imul(re,yt)|0,T=T+Math.imul(re,gt)|0,C=C+Math.imul(q,xt)|0,m=m+Math.imul(q,U)|0,m=m+Math.imul(K,xt)|0,T=T+Math.imul(K,U)|0,C=C+Math.imul(E,Q)|0,m=m+Math.imul(E,ie)|0,m=m+Math.imul($,Q)|0,T=T+Math.imul($,ie)|0;var vn=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(vn>>>26)|0,vn&=67108863,C=Math.imul(at,mt),m=Math.imul(at,ht),m=m+Math.imul(Ge,mt)|0,T=Math.imul(Ge,ht),C=C+Math.imul(Ve,vt)|0,m=m+Math.imul(Ve,lt)|0,m=m+Math.imul(ot,vt)|0,T=T+Math.imul(ot,lt)|0,C=C+Math.imul(ue,yt)|0,m=m+Math.imul(ue,gt)|0,m=m+Math.imul(we,yt)|0,T=T+Math.imul(we,gt)|0,C=C+Math.imul(te,xt)|0,m=m+Math.imul(te,U)|0,m=m+Math.imul(re,xt)|0,T=T+Math.imul(re,U)|0,C=C+Math.imul(q,Q)|0,m=m+Math.imul(q,ie)|0,m=m+Math.imul(K,Q)|0,T=T+Math.imul(K,ie)|0,C=C+Math.imul(E,me)|0,m=m+Math.imul(E,de)|0,m=m+Math.imul($,me)|0,T=T+Math.imul($,de)|0;var De=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(De>>>26)|0,De&=67108863,C=Math.imul(Ze,mt),m=Math.imul(Ze,ht),m=m+Math.imul(ft,mt)|0,T=Math.imul(ft,ht),C=C+Math.imul(at,vt)|0,m=m+Math.imul(at,lt)|0,m=m+Math.imul(Ge,vt)|0,T=T+Math.imul(Ge,lt)|0,C=C+Math.imul(Ve,yt)|0,m=m+Math.imul(Ve,gt)|0,m=m+Math.imul(ot,yt)|0,T=T+Math.imul(ot,gt)|0,C=C+Math.imul(ue,xt)|0,m=m+Math.imul(ue,U)|0,m=m+Math.imul(we,xt)|0,T=T+Math.imul(we,U)|0,C=C+Math.imul(te,Q)|0,m=m+Math.imul(te,ie)|0,m=m+Math.imul(re,Q)|0,T=T+Math.imul(re,ie)|0,C=C+Math.imul(q,me)|0,m=m+Math.imul(q,de)|0,m=m+Math.imul(K,me)|0,T=T+Math.imul(K,de)|0,C=C+Math.imul(E,ge)|0,m=m+Math.imul(E,pe)|0,m=m+Math.imul($,ge)|0,T=T+Math.imul($,pe)|0;var ur=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(ur>>>26)|0,ur&=67108863,C=Math.imul(ze,mt),m=Math.imul(ze,ht),m=m+Math.imul(et,mt)|0,T=Math.imul(et,ht),C=C+Math.imul(Ze,vt)|0,m=m+Math.imul(Ze,lt)|0,m=m+Math.imul(ft,vt)|0,T=T+Math.imul(ft,lt)|0,C=C+Math.imul(at,yt)|0,m=m+Math.imul(at,gt)|0,m=m+Math.imul(Ge,yt)|0,T=T+Math.imul(Ge,gt)|0,C=C+Math.imul(Ve,xt)|0,m=m+Math.imul(Ve,U)|0,m=m+Math.imul(ot,xt)|0,T=T+Math.imul(ot,U)|0,C=C+Math.imul(ue,Q)|0,m=m+Math.imul(ue,ie)|0,m=m+Math.imul(we,Q)|0,T=T+Math.imul(we,ie)|0,C=C+Math.imul(te,me)|0,m=m+Math.imul(te,de)|0,m=m+Math.imul(re,me)|0,T=T+Math.imul(re,de)|0,C=C+Math.imul(q,ge)|0,m=m+Math.imul(q,pe)|0,m=m+Math.imul(K,ge)|0,T=T+Math.imul(K,pe)|0,C=C+Math.imul(E,_e)|0,m=m+Math.imul(E,ve)|0,m=m+Math.imul($,_e)|0,T=T+Math.imul($,ve)|0;var Nr=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,C=Math.imul(it,mt),m=Math.imul(it,ht),m=m+Math.imul(pt,mt)|0,T=Math.imul(pt,ht),C=C+Math.imul(ze,vt)|0,m=m+Math.imul(ze,lt)|0,m=m+Math.imul(et,vt)|0,T=T+Math.imul(et,lt)|0,C=C+Math.imul(Ze,yt)|0,m=m+Math.imul(Ze,gt)|0,m=m+Math.imul(ft,yt)|0,T=T+Math.imul(ft,gt)|0,C=C+Math.imul(at,xt)|0,m=m+Math.imul(at,U)|0,m=m+Math.imul(Ge,xt)|0,T=T+Math.imul(Ge,U)|0,C=C+Math.imul(Ve,Q)|0,m=m+Math.imul(Ve,ie)|0,m=m+Math.imul(ot,Q)|0,T=T+Math.imul(ot,ie)|0,C=C+Math.imul(ue,me)|0,m=m+Math.imul(ue,de)|0,m=m+Math.imul(we,me)|0,T=T+Math.imul(we,de)|0,C=C+Math.imul(te,ge)|0,m=m+Math.imul(te,pe)|0,m=m+Math.imul(re,ge)|0,T=T+Math.imul(re,pe)|0,C=C+Math.imul(q,_e)|0,m=m+Math.imul(q,ve)|0,m=m+Math.imul(K,_e)|0,T=T+Math.imul(K,ve)|0,C=C+Math.imul(E,ke)|0,m=m+Math.imul(E,tt)|0,m=m+Math.imul($,ke)|0,T=T+Math.imul($,tt)|0;var Yt=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(ut,mt),m=Math.imul(ut,ht),m=m+Math.imul(dt,mt)|0,T=Math.imul(dt,ht),C=C+Math.imul(it,vt)|0,m=m+Math.imul(it,lt)|0,m=m+Math.imul(pt,vt)|0,T=T+Math.imul(pt,lt)|0,C=C+Math.imul(ze,yt)|0,m=m+Math.imul(ze,gt)|0,m=m+Math.imul(et,yt)|0,T=T+Math.imul(et,gt)|0,C=C+Math.imul(Ze,xt)|0,m=m+Math.imul(Ze,U)|0,m=m+Math.imul(ft,xt)|0,T=T+Math.imul(ft,U)|0,C=C+Math.imul(at,Q)|0,m=m+Math.imul(at,ie)|0,m=m+Math.imul(Ge,Q)|0,T=T+Math.imul(Ge,ie)|0,C=C+Math.imul(Ve,me)|0,m=m+Math.imul(Ve,de)|0,m=m+Math.imul(ot,me)|0,T=T+Math.imul(ot,de)|0,C=C+Math.imul(ue,ge)|0,m=m+Math.imul(ue,pe)|0,m=m+Math.imul(we,ge)|0,T=T+Math.imul(we,pe)|0,C=C+Math.imul(te,_e)|0,m=m+Math.imul(te,ve)|0,m=m+Math.imul(re,_e)|0,T=T+Math.imul(re,ve)|0,C=C+Math.imul(q,ke)|0,m=m+Math.imul(q,tt)|0,m=m+Math.imul(K,ke)|0,T=T+Math.imul(K,tt)|0,C=C+Math.imul(E,Qe)|0,m=m+Math.imul(E,Ye)|0,m=m+Math.imul($,Qe)|0,T=T+Math.imul($,Ye)|0;var Yi=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(ut,vt),m=Math.imul(ut,lt),m=m+Math.imul(dt,vt)|0,T=Math.imul(dt,lt),C=C+Math.imul(it,yt)|0,m=m+Math.imul(it,gt)|0,m=m+Math.imul(pt,yt)|0,T=T+Math.imul(pt,gt)|0,C=C+Math.imul(ze,xt)|0,m=m+Math.imul(ze,U)|0,m=m+Math.imul(et,xt)|0,T=T+Math.imul(et,U)|0,C=C+Math.imul(Ze,Q)|0,m=m+Math.imul(Ze,ie)|0,m=m+Math.imul(ft,Q)|0,T=T+Math.imul(ft,ie)|0,C=C+Math.imul(at,me)|0,m=m+Math.imul(at,de)|0,m=m+Math.imul(Ge,me)|0,T=T+Math.imul(Ge,de)|0,C=C+Math.imul(Ve,ge)|0,m=m+Math.imul(Ve,pe)|0,m=m+Math.imul(ot,ge)|0,T=T+Math.imul(ot,pe)|0,C=C+Math.imul(ue,_e)|0,m=m+Math.imul(ue,ve)|0,m=m+Math.imul(we,_e)|0,T=T+Math.imul(we,ve)|0,C=C+Math.imul(te,ke)|0,m=m+Math.imul(te,tt)|0,m=m+Math.imul(re,ke)|0,T=T+Math.imul(re,tt)|0,C=C+Math.imul(q,Qe)|0,m=m+Math.imul(q,Ye)|0,m=m+Math.imul(K,Qe)|0,T=T+Math.imul(K,Ye)|0;var ma=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(ma>>>26)|0,ma&=67108863,C=Math.imul(ut,yt),m=Math.imul(ut,gt),m=m+Math.imul(dt,yt)|0,T=Math.imul(dt,gt),C=C+Math.imul(it,xt)|0,m=m+Math.imul(it,U)|0,m=m+Math.imul(pt,xt)|0,T=T+Math.imul(pt,U)|0,C=C+Math.imul(ze,Q)|0,m=m+Math.imul(ze,ie)|0,m=m+Math.imul(et,Q)|0,T=T+Math.imul(et,ie)|0,C=C+Math.imul(Ze,me)|0,m=m+Math.imul(Ze,de)|0,m=m+Math.imul(ft,me)|0,T=T+Math.imul(ft,de)|0,C=C+Math.imul(at,ge)|0,m=m+Math.imul(at,pe)|0,m=m+Math.imul(Ge,ge)|0,T=T+Math.imul(Ge,pe)|0,C=C+Math.imul(Ve,_e)|0,m=m+Math.imul(Ve,ve)|0,m=m+Math.imul(ot,_e)|0,T=T+Math.imul(ot,ve)|0,C=C+Math.imul(ue,ke)|0,m=m+Math.imul(ue,tt)|0,m=m+Math.imul(we,ke)|0,T=T+Math.imul(we,tt)|0,C=C+Math.imul(te,Qe)|0,m=m+Math.imul(te,Ye)|0,m=m+Math.imul(re,Qe)|0,T=T+Math.imul(re,Ye)|0;var Gl=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Gl>>>26)|0,Gl&=67108863,C=Math.imul(ut,xt),m=Math.imul(ut,U),m=m+Math.imul(dt,xt)|0,T=Math.imul(dt,U),C=C+Math.imul(it,Q)|0,m=m+Math.imul(it,ie)|0,m=m+Math.imul(pt,Q)|0,T=T+Math.imul(pt,ie)|0,C=C+Math.imul(ze,me)|0,m=m+Math.imul(ze,de)|0,m=m+Math.imul(et,me)|0,T=T+Math.imul(et,de)|0,C=C+Math.imul(Ze,ge)|0,m=m+Math.imul(Ze,pe)|0,m=m+Math.imul(ft,ge)|0,T=T+Math.imul(ft,pe)|0,C=C+Math.imul(at,_e)|0,m=m+Math.imul(at,ve)|0,m=m+Math.imul(Ge,_e)|0,T=T+Math.imul(Ge,ve)|0,C=C+Math.imul(Ve,ke)|0,m=m+Math.imul(Ve,tt)|0,m=m+Math.imul(ot,ke)|0,T=T+Math.imul(ot,tt)|0,C=C+Math.imul(ue,Qe)|0,m=m+Math.imul(ue,Ye)|0,m=m+Math.imul(we,Qe)|0,T=T+Math.imul(we,Ye)|0;var D0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(D0>>>26)|0,D0&=67108863,C=Math.imul(ut,Q),m=Math.imul(ut,ie),m=m+Math.imul(dt,Q)|0,T=Math.imul(dt,ie),C=C+Math.imul(it,me)|0,m=m+Math.imul(it,de)|0,m=m+Math.imul(pt,me)|0,T=T+Math.imul(pt,de)|0,C=C+Math.imul(ze,ge)|0,m=m+Math.imul(ze,pe)|0,m=m+Math.imul(et,ge)|0,T=T+Math.imul(et,pe)|0,C=C+Math.imul(Ze,_e)|0,m=m+Math.imul(Ze,ve)|0,m=m+Math.imul(ft,_e)|0,T=T+Math.imul(ft,ve)|0,C=C+Math.imul(at,ke)|0,m=m+Math.imul(at,tt)|0,m=m+Math.imul(Ge,ke)|0,T=T+Math.imul(Ge,tt)|0,C=C+Math.imul(Ve,Qe)|0,m=m+Math.imul(Ve,Ye)|0,m=m+Math.imul(ot,Qe)|0,T=T+Math.imul(ot,Ye)|0;var L0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(L0>>>26)|0,L0&=67108863,C=Math.imul(ut,me),m=Math.imul(ut,de),m=m+Math.imul(dt,me)|0,T=Math.imul(dt,de),C=C+Math.imul(it,ge)|0,m=m+Math.imul(it,pe)|0,m=m+Math.imul(pt,ge)|0,T=T+Math.imul(pt,pe)|0,C=C+Math.imul(ze,_e)|0,m=m+Math.imul(ze,ve)|0,m=m+Math.imul(et,_e)|0,T=T+Math.imul(et,ve)|0,C=C+Math.imul(Ze,ke)|0,m=m+Math.imul(Ze,tt)|0,m=m+Math.imul(ft,ke)|0,T=T+Math.imul(ft,tt)|0,C=C+Math.imul(at,Qe)|0,m=m+Math.imul(at,Ye)|0,m=m+Math.imul(Ge,Qe)|0,T=T+Math.imul(Ge,Ye)|0;var j0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(j0>>>26)|0,j0&=67108863,C=Math.imul(ut,ge),m=Math.imul(ut,pe),m=m+Math.imul(dt,ge)|0,T=Math.imul(dt,pe),C=C+Math.imul(it,_e)|0,m=m+Math.imul(it,ve)|0,m=m+Math.imul(pt,_e)|0,T=T+Math.imul(pt,ve)|0,C=C+Math.imul(ze,ke)|0,m=m+Math.imul(ze,tt)|0,m=m+Math.imul(et,ke)|0,T=T+Math.imul(et,tt)|0,C=C+Math.imul(Ze,Qe)|0,m=m+Math.imul(Ze,Ye)|0,m=m+Math.imul(ft,Qe)|0,T=T+Math.imul(ft,Ye)|0;var B0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(B0>>>26)|0,B0&=67108863,C=Math.imul(ut,_e),m=Math.imul(ut,ve),m=m+Math.imul(dt,_e)|0,T=Math.imul(dt,ve),C=C+Math.imul(it,ke)|0,m=m+Math.imul(it,tt)|0,m=m+Math.imul(pt,ke)|0,T=T+Math.imul(pt,tt)|0,C=C+Math.imul(ze,Qe)|0,m=m+Math.imul(ze,Ye)|0,m=m+Math.imul(et,Qe)|0,T=T+Math.imul(et,Ye)|0;var $0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+($0>>>26)|0,$0&=67108863,C=Math.imul(ut,ke),m=Math.imul(ut,tt),m=m+Math.imul(dt,ke)|0,T=Math.imul(dt,tt),C=C+Math.imul(it,Qe)|0,m=m+Math.imul(it,Ye)|0,m=m+Math.imul(pt,Qe)|0,T=T+Math.imul(pt,Ye)|0;var F0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(F0>>>26)|0,F0&=67108863,C=Math.imul(ut,Qe),m=Math.imul(ut,Ye),m=m+Math.imul(dt,Qe)|0,T=Math.imul(dt,Ye);var U0=(B+C|0)+((m&8191)<<13)|0;return B=(T+(m>>>13)|0)+(U0>>>26)|0,U0&=67108863,N[0]=Hr,N[1]=fr,N[2]=dn,N[3]=hn,N[4]=vn,N[5]=De,N[6]=ur,N[7]=Nr,N[8]=Yt,N[9]=Yi,N[10]=ma,N[11]=Gl,N[12]=D0,N[13]=L0,N[14]=j0,N[15]=B0,N[16]=$0,N[17]=F0,N[18]=U0,B!==0&&(N[19]=B,k.length++),k};Math.imul||(b=x);function A(O,h,S){S.negative=h.negative^O.negative,S.length=O.length+h.length;for(var k=0,I=0,R=0;R>>26)|0,I+=N>>>26,N&=67108863}S.words[R]=B,k=N,N=I}return k!==0?S.words[R]=k:S.length--,S._strip()}function P(O,h,S){return A(O,h,S)}s.prototype.mulTo=function(h,S){var k,I=this.length+h.length;return this.length===10&&h.length===10?k=b(this,h,S):I<63?k=x(this,h,S):I<1024?k=A(this,h,S):k=P(this,h,S),k},s.prototype.mul=function(h){var S=new s(null);return S.words=new Array(this.length+h.length),this.mulTo(h,S)},s.prototype.mulf=function(h){var S=new s(null);return S.words=new Array(this.length+h.length),P(this,h,S)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var S=h<0;S&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var k=0,I=0;I>=26,k+=R/67108864|0,k+=N>>>26,this.words[I]=N&67108863}return k!==0&&(this.words[I]=k,this.length++),S?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var S=w(h);if(S.length===0)return new s(1);for(var k=this,I=0;I=0);var S=h%26,k=(h-S)/26,I=67108863>>>26-S<<26-S,R;if(S!==0){var N=0;for(R=0;R>>26-S}N&&(this.words[R]=N,this.length++)}if(k!==0){for(R=this.length-1;R>=0;R--)this.words[R+k]=this.words[R];for(R=0;R=0);var I;S?I=(S-S%26)/26:I=0;var R=h%26,N=Math.min((h-R)/26,this.length),B=67108863^67108863>>>R<N)for(this.length-=N,m=0;m=0&&(T!==0||m>=I);m--){var F=this.words[m]|0;this.words[m]=T<<26-R|F>>>R,T=F&B}return C&&T!==0&&(C.words[C.length++]=T),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,S,k){return n(this.negative===0),this.iushrn(h,S,k)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var S=h%26,k=(h-S)/26,I=1<=0);var S=h%26,k=(h-S)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(S!==0&&k++,this.length=Math.min(k,this.length),S!==0){var I=67108863^67108863>>>S<=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},s.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S>26)-(C/67108864|0),this.words[R+k]=N&67108863}for(;R>26,this.words[R+k]=N&67108863;if(B===0)return this._strip();for(n(B===-1),B=0,R=0;R>26,this.words[R]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,S){var k=this.length-h.length,I=this.clone(),R=h,N=R.words[R.length-1]|0,B=this._countBits(N);k=26-B,k!==0&&(R=R.ushln(k),I.iushln(k),N=R.words[R.length-1]|0);var C=I.length-R.length,m;if(S!=="mod"){m=new s(null),m.length=C+1,m.words=new Array(m.length);for(var T=0;T=0;E--){var $=(I.words[R.length+E]|0)*67108864+(I.words[R.length+E-1]|0);for($=Math.min($/N|0,67108863),I._ishlnsubmul(R,$,E);I.negative!==0;)$--,I.negative=0,I._ishlnsubmul(R,1,E),I.isZero()||(I.negative^=1);m&&(m.words[E]=$)}return m&&m._strip(),I._strip(),S!=="div"&&k!==0&&I.iushrn(k),{div:m||null,mod:I}},s.prototype.divmod=function(h,S,k){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var I,R,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,S),S!=="mod"&&(I=N.div.neg()),S!=="div"&&(R=N.mod.neg(),k&&R.negative!==0&&R.iadd(h)),{div:I,mod:R}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),S),S!=="mod"&&(I=N.div.neg()),{div:I,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),S),S!=="div"&&(R=N.mod.neg(),k&&R.negative!==0&&R.isub(h)),{div:N.div,mod:R}):h.length>this.length||this.cmp(h)<0?{div:new s(0),mod:this}:h.length===1?S==="div"?{div:this.divn(h.words[0]),mod:null}:S==="mod"?{div:null,mod:new s(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}:this._wordDiv(h,S)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var S=this.divmod(h);if(S.mod.isZero())return S.div;var k=S.div.negative!==0?S.mod.isub(h):S.mod,I=h.ushrn(1),R=h.andln(1),N=k.cmp(I);return N<0||R===1&&N===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},s.prototype.modrn=function(h){var S=h<0;S&&(h=-h),n(h<=67108863);for(var k=(1<<26)%h,I=0,R=this.length-1;R>=0;R--)I=(k*I+(this.words[R]|0))%h;return S?-I:I},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var S=h<0;S&&(h=-h),n(h<=67108863);for(var k=0,I=this.length-1;I>=0;I--){var R=(this.words[I]|0)+k*67108864;this.words[I]=R/h|0,k=R%h}return this._strip(),S?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();S.negative!==0?S=S.umod(h):S=S.clone();for(var I=new s(1),R=new s(0),N=new s(0),B=new s(1),C=0;S.isEven()&&k.isEven();)S.iushrn(1),k.iushrn(1),++C;for(var m=k.clone(),T=S.clone();!S.isZero();){for(var F=0,E=1;!(S.words[0]&E)&&F<26;++F,E<<=1);if(F>0)for(S.iushrn(F);F-- >0;)(I.isOdd()||R.isOdd())&&(I.iadd(m),R.isub(T)),I.iushrn(1),R.iushrn(1);for(var $=0,V=1;!(k.words[0]&V)&&$<26;++$,V<<=1);if($>0)for(k.iushrn($);$-- >0;)(N.isOdd()||B.isOdd())&&(N.iadd(m),B.isub(T)),N.iushrn(1),B.iushrn(1);S.cmp(k)>=0?(S.isub(k),I.isub(N),R.isub(B)):(k.isub(S),N.isub(I),B.isub(R))}return{a:N,b:B,gcd:k.iushln(C)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();S.negative!==0?S=S.umod(h):S=S.clone();for(var I=new s(1),R=new s(0),N=k.clone();S.cmpn(1)>0&&k.cmpn(1)>0;){for(var B=0,C=1;!(S.words[0]&C)&&B<26;++B,C<<=1);if(B>0)for(S.iushrn(B);B-- >0;)I.isOdd()&&I.iadd(N),I.iushrn(1);for(var m=0,T=1;!(k.words[0]&T)&&m<26;++m,T<<=1);if(m>0)for(k.iushrn(m);m-- >0;)R.isOdd()&&R.iadd(N),R.iushrn(1);S.cmp(k)>=0?(S.isub(k),I.isub(R)):(k.isub(S),R.isub(I))}var F;return S.cmpn(1)===0?F=I:F=R,F.cmpn(0)<0&&F.iadd(h),F},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var S=this.clone(),k=h.clone();S.negative=0,k.negative=0;for(var I=0;S.isEven()&&k.isEven();I++)S.iushrn(1),k.iushrn(1);do{for(;S.isEven();)S.iushrn(1);for(;k.isEven();)k.iushrn(1);var R=S.cmp(k);if(R<0){var N=S;S=k,k=N}else if(R===0||k.cmpn(1)===0)break;S.isub(k)}while(!0);return k.iushln(I)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h=="number");var S=h%26,k=(h-S)/26,I=1<>>26,B&=67108863,this.words[N]=B}return R!==0&&(this.words[N]=R,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var S=h<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var k;if(this.length>1)k=1;else{S&&(h=-h),n(h<=67108863,"Number is too big");var I=this.words[0]|0;k=I===h?0:Ih.length)return 1;if(this.length=0;k--){var I=this.words[k]|0,R=h.words[k]|0;if(I!==R){IR&&(S=1);break}}return S},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new Y(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var _={k256:null,p224:null,p192:null,p25519:null};function D(O,h){this.name=O,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var h=new s(null);return h.words=new Array(Math.ceil(this.n/13)),h},D.prototype.ireduce=function(h){var S=h,k;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),k=S.bitLength();while(k>this.n);var I=k0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},D.prototype.split=function(h,S){h.iushrn(this.n,0,S)},D.prototype.imulK=function(h){return h.imul(this.k)};function M(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(M,D),M.prototype.split=function(h,S){for(var k=4194303,I=Math.min(h.length,9),R=0;R>>22,N=B}N>>>=22,h.words[R-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},M.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var S=0,k=0;k>>=26,h.words[k]=R,S=I}return S!==0&&(h.words[h.length++]=S),h},s._prime=function(h){if(_[h])return _[h];var S;if(h==="k256")S=new M;else if(h==="p224")S=new L;else if(h==="p192")S=new z;else if(h==="p25519")S=new H;else throw new Error("Unknown prime "+h);return _[h]=S,S};function Y(O){if(typeof O=="string"){var h=s._prime(O);this.m=h.p,this.prime=h}else n(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}Y.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},Y.prototype._verify2=function(h,S){n((h.negative|S.negative)===0,"red works only with positives"),n(h.red&&h.red===S.red,"red works only with red numbers")},Y.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},Y.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Y.prototype.add=function(h,S){this._verify2(h,S);var k=h.add(S);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},Y.prototype.iadd=function(h,S){this._verify2(h,S);var k=h.iadd(S);return k.cmp(this.m)>=0&&k.isub(this.m),k},Y.prototype.sub=function(h,S){this._verify2(h,S);var k=h.sub(S);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},Y.prototype.isub=function(h,S){this._verify2(h,S);var k=h.isub(S);return k.cmpn(0)<0&&k.iadd(this.m),k},Y.prototype.shl=function(h,S){return this._verify1(h),this.imod(h.ushln(S))},Y.prototype.imul=function(h,S){return this._verify2(h,S),this.imod(h.imul(S))},Y.prototype.mul=function(h,S){return this._verify2(h,S),this.imod(h.mul(S))},Y.prototype.isqr=function(h){return this.imul(h,h.clone())},Y.prototype.sqr=function(h){return this.mul(h,h)},Y.prototype.sqrt=function(h){if(h.isZero())return h.clone();var S=this.m.andln(3);if(n(S%2===1),S===3){var k=this.m.add(new s(1)).iushrn(2);return this.pow(h,k)}for(var I=this.m.subn(1),R=0;!I.isZero()&&I.andln(1)===0;)R++,I.iushrn(1);n(!I.isZero());var N=new s(1).toRed(this),B=N.redNeg(),C=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new s(2*m*m).toRed(this);this.pow(m,C).cmp(B)!==0;)m.redIAdd(B);for(var T=this.pow(m,I),F=this.pow(h,I.addn(1).iushrn(1)),E=this.pow(h,I),$=R;E.cmp(N)!==0;){for(var V=E,q=0;V.cmp(N)!==0;q++)V=V.redSqr();n(q<$);var K=this.pow(T,new s(1).iushln($-q-1));F=F.redMul(K),T=K.redSqr(),E=E.redMul(T),$=q}return F},Y.prototype.invm=function(h){var S=h._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},Y.prototype.pow=function(h,S){if(S.isZero())return new s(1).toRed(this);if(S.cmpn(1)===0)return h.clone();var k=4,I=new Array(1<=0;R--){for(var T=S.words[R],F=m-1;F>=0;F--){var E=T>>F&1;if(N!==I[0]&&(N=this.sqr(N)),E===0&&B===0){C=0;continue}B<<=1,B|=E,C++,!(C!==k&&(R!==0||F!==0))&&(N=this.mul(N,I[B]),C=0,B=0)}m=26}return N},Y.prototype.convertTo=function(h){var S=h.umod(this.m);return S===h?S.clone():S},Y.prototype.convertFrom=function(h){var S=h.clone();return S.red=null,S},s.mont=function(h){return new Z(h)};function Z(O){Y.call(this,O),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(Z,Y),Z.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},Z.prototype.convertFrom=function(h){var S=this.imod(h.mul(this.rinv));return S.red=null,S},Z.prototype.imul=function(h,S){if(h.isZero()||S.isZero())return h.words[0]=0,h.length=1,h;var k=h.imul(S),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=k.isub(I).iushrn(this.shift),N=R;return R.cmp(this.m)>=0?N=R.isub(this.m):R.cmpn(0)<0&&(N=R.iadd(this.m)),N._forceRed(this)},Z.prototype.mul=function(h,S){if(h.isZero()||S.isZero())return new s(0)._forceRed(this);var k=h.mul(S),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=k.isub(I).iushrn(this.shift),N=R;return R.cmp(this.m)>=0?N=R.isub(this.m):R.cmpn(0)<0&&(N=R.iadd(this.m)),N._forceRed(this)},Z.prototype.invm=function(h){var S=this.imod(h._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(t,aA)})(Rg);var JU=Rg.exports;const Oe=Ss(JU),XU="logger/5.7.0";let O3=!1,N3=!1;const vd={debug:1,default:2,info:2,warning:3,error:4,off:5};let D3=vd.default,F1=null;function ZU(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const L3=ZU();var Yy;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Yy||(Yy={}));var oi;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(oi||(oi={}));const j3="0123456789abcdef";let W=class hr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();vd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(D3>vd[n])&&console.log.apply(console,r)}debug(...e){this._log(hr.levels.DEBUG,e)}info(...e){this._log(hr.levels.INFO,e)}warn(...e){this._log(hr.levels.WARNING,e)}makeError(e,r,n){if(N3)return this.makeError("censored error",r,{});r||(r=hr.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(l=>{const c=n[l];try{if(c instanceof Uint8Array){let f="";for(let u=0;u>4],f+=j3[c[u]&15];i.push(l+"=Uint8Array(0x"+f+")")}else i.push(l+"="+JSON.stringify(c))}catch{i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const s=e;let o="";switch(r){case oi.NUMERIC_FAULT:{o="NUMERIC_FAULT";const l=e;switch(l){case"overflow":case"underflow":case"division-by-zero":o+="-"+l;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case oi.CALL_EXCEPTION:case oi.INSUFFICIENT_FUNDS:case oi.MISSING_NEW:case oi.NONCE_EXPIRED:case oi.REPLACEMENT_UNDERPRICED:case oi.TRANSACTION_REPLACED:case oi.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const a=new Error(e);return a.reason=s,a.code=r,Object.keys(n).forEach(function(l){a[l]=n[l]}),a}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,hr.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i)}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i)}checkNormalize(e){L3&&this.throwError("platform missing String.prototype.normalize",hr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:L3})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,hr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,hr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,hr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",hr.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",hr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",hr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return F1||(F1=new hr(XU)),F1}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",hr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),O3){if(!e)return;this.globalLogger().throwError("error censorship permanent",hr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}N3=!!e,O3=!!r}static setLogLevel(e){const r=vd[e.toLowerCase()];if(r==null){hr.globalLogger().warn("invalid log level - "+e);return}D3=r}static from(e){return new hr(e)}};W.errors=oi;W.levels=Yy;const ez="bytes/5.7.0",Ht=new W(ez);function XC(t){return!!t.toHexString}function nl(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return nl(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function x0(t){return He(t)&&!(t.length%2)||Ll(t)}function B3(t){return typeof t=="number"&&t==t&&t%1===0}function Ll(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!B3(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function ce(t,e){if(e||(e={}),typeof t=="number"){Ht.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),nl(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),XC(t)&&(t=t.toHexString()),He(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Ht.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;ice(i)),r=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(r);return e.reduce((i,s)=>(n.set(s,i),i+s.length),0),nl(n)}function hs(t){let e=ce(t);if(e.length===0)return e;let r=0;for(;re&&Ht.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),nl(r)}function He(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const U1="0123456789abcdef";function fe(t,e){if(e||(e={}),typeof t=="number"){Ht.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=U1[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),XC(t))return t.toHexString();if(He(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Ht.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(Ll(t)){let r="0x";for(let n=0;n>4]+U1[i&15]}return r}return Ht.throwArgumentError("invalid hexlify value","value",t)}function na(t){if(typeof t!="string")t=fe(t);else if(!He(t)||t.length%2)return null;return(t.length-2)/2}function yr(t,e,r){return typeof t!="string"?t=fe(t):(!He(t)||t.length%2)&&Ht.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function rn(t){let e="0x";return t.forEach(r=>{e+=fe(r).substring(2)}),e}function Tg(t){const e=rz(fe(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function rz(t){typeof t!="string"&&(t=fe(t)),He(t)||Ht.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Ht.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function jl(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(x0(t)){let r=ce(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=fe(r.slice(0,32)),e.s=fe(r.slice(32,64))):r.length===65?(e.r=fe(r.slice(0,32)),e.s=fe(r.slice(32,64)),e.v=r[64]):Ht.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Ht.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=fe(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const i=tz(ce(e._vs),32);e._vs=fe(i);const s=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=s:e.recoveryParam!==s&&Ht.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const o=fe(i);e.s==null?e.s=o:e.s!==o&&Ht.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Ht.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const i=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==i&&Ht.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!He(e.r)?Ht.throwArgumentError("signature missing or invalid r","signature",t):e.r=kt(e.r,32),e.s==null||!He(e.s)?Ht.throwArgumentError("signature missing or invalid s","signature",t):e.s=kt(e.s,32);const r=ce(e.s);r[0]>=128&&Ht.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=fe(r);e._vs&&(He(e._vs)||Ht.throwArgumentError("signature invalid _vs","signature",t),e._vs=kt(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Ht.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function $3(t){return t=jl(t),fe(ir([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const ZC="bignumber/5.7.0";var hh=Oe.BN;const es=new W(ZC),z1={},F3=9007199254740991;function nz(t){return t!=null&&(ae.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||He(t)||typeof t=="bigint"||Ll(t))}let U3=!1;class ae{constructor(e,r){e!==z1&&es.throwError("cannot call constructor directly; use BigNumber.from",W.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return en(Be(this).fromTwos(e))}toTwos(e){return en(Be(this).toTwos(e))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(e){return en(Be(this).add(Be(e)))}sub(e){return en(Be(this).sub(Be(e)))}div(e){return ae.from(e).isZero()&&On("division-by-zero","div"),en(Be(this).div(Be(e)))}mul(e){return en(Be(this).mul(Be(e)))}mod(e){const r=Be(e);return r.isNeg()&&On("division-by-zero","mod"),en(Be(this).umod(r))}pow(e){const r=Be(e);return r.isNeg()&&On("negative-power","pow"),en(Be(this).pow(r))}and(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","and"),en(Be(this).and(r))}or(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","or"),en(Be(this).or(r))}xor(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","xor"),en(Be(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&On("negative-width","mask"),en(Be(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&On("negative-width","shl"),en(Be(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&On("negative-width","shr"),en(Be(this).shrn(e))}eq(e){return Be(this).eq(Be(e))}lt(e){return Be(this).lt(Be(e))}lte(e){return Be(this).lte(Be(e))}gt(e){return Be(this).gt(Be(e))}gte(e){return Be(this).gte(Be(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Be(this).isZero()}toNumber(){try{return Be(this).toNumber()}catch{On("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return es.throwError("this platform does not support BigInt",W.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?U3||(U3=!0,es.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?es.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W.errors.UNEXPECTED_ARGUMENT,{}):es.throwError("BigNumber.toString does not accept parameters",W.errors.UNEXPECTED_ARGUMENT,{})),Be(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ae)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ae(z1,Pf(e)):e.match(/^-?[0-9]+$/)?new ae(z1,Pf(new hh(e))):es.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&On("underflow","BigNumber.from",e),(e>=F3||e<=-F3)&&On("overflow","BigNumber.from",e),ae.from(String(e));const r=e;if(typeof r=="bigint")return ae.from(r.toString());if(Ll(r))return ae.from(fe(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return ae.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(He(n)||n[0]==="-"&&He(n.substring(1))))return ae.from(n)}return es.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Pf(t){if(typeof t!="string")return Pf(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&es.throwArgumentError("invalid hex","value",t),t=Pf(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function en(t){return ae.from(Pf(t))}function Be(t){const e=ae.from(t).toHexString();return e[0]==="-"?new hh("-"+e.substring(3),16):new hh(e.substring(2),16)}function On(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),es.throwError(t,W.errors.NUMERIC_FAULT,n)}function iz(t){return new hh(t,36).toString(16)}const Yr=new W(ZC),Qc={},e7=ae.from(0),t7=ae.from(-1);function r7(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),Yr.throwError(t,W.errors.NUMERIC_FAULT,i)}let Yc="0";for(;Yc.length<256;)Yc+=Yc;function Mg(t){if(typeof t!="number")try{t=ae.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+Yc.substring(0,t):Yr.throwArgumentError("invalid decimal size","decimals",t)}function yd(t,e){e==null&&(e=0);const r=Mg(e);t=ae.from(t);const n=t.lt(e7);n&&(t=t.mul(t7));let i=t.mod(r).toString();for(;i.length2&&Yr.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");o[o.length-1]==="0";)o=o.substring(0,o.length-1);for(o.length>r.length-1&&r7("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&Yr.throwArgumentError("invalid fixed format ("+o+" not "+a+")","format."+o,e[o]),e[o]);r=s("signed","boolean",r),n=s("width","number",n),i=s("decimals","number",i)}return n%8&&Yr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Yr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new il(Qc,r,n,i)}}class Cr{constructor(e,r,n,i){e!==Qc&&Yr.throwError("cannot use FixedNumber constructor; use FixedNumber.from",W.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Yr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Cr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(z3.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Cr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(z3.toFormat(r.format))),r}round(e){e==null&&(e=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&Yr.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=Cr.from("1"+Yc.substring(0,e),this.format),i=sz.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&Yr.throwArgumentError("invalid byte width","width",e);const r=ae.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return kt(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Cr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!nz(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),Cr.fromString(yd(e,r),il.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=il.from(r),i=Si(e,n.decimals);!n.signed&&i.lt(e7)&&r7("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=kt(s,n.width/8));const o=yd(i,n.decimals);return new Cr(Qc,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=il.from(r);if(ce(e).length>n.width/8)throw new Error("overflow");let i=ae.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=yd(i,n.decimals);return new Cr(Qc,s,o,n)}static from(e,r){if(typeof e=="string")return Cr.fromString(e,r);if(Ll(e))return Cr.fromBytes(e,r);try{return Cr.fromValue(e,0,r)}catch(n){if(n.code!==W.errors.INVALID_ARGUMENT)throw n}return Yr.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const z3=Cr.from(1),sz=Cr.from("0.5"),oz="properties/5.7.0";var az=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const vh=new W(oz);function ne(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Ni(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function er(t){return az(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const i=t[n];return Promise.resolve(i).then(s=>({key:n,value:s}))});return(yield Promise.all(e)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function n7(t,e){(!t||typeof t!="object")&&vh.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||vh.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function mr(t){const e={};for(const r in t)e[r]=t[r];return e}const lz={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function i7(t){if(t==null||lz[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;ria(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&ne(e,r,ia(n))}return e}return vh.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function ia(t){return cz(t)}class ya{constructor(e){for(const r in e)this[r]=ia(e[r])}}const tu="abi/5.7.0",Ue=new W(tu),sa={};let V3={calldata:!0,memory:!0,storage:!0},fz={calldata:!0,memory:!0};function ju(t,e){if(t==="bytes"||t==="string"){if(V3[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&fz[e])return!0;return(V3[e]||e==="payable")&&Ue.throwArgumentError("invalid modifier","name",e),!1}function uz(t,e){let r=t;function n(a){Ue.throwArgumentError(`unexpected character at position ${a}`,"param",t)}t=t.replace(/\s/g," ");function i(a){let l={type:"",name:"",parent:a,state:{allowType:!0}};return e&&(l.indexed=!1),l}let s={type:"",name:"",state:{allowType:!0}},o=s;for(let a=0;aJSON.parse(i.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==Je.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Je.full?", ":",")+")"):r+=this.type,e!==Je.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Je.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?br.fromString(e,r):br.fromObject(e)}static fromObject(e){return br.isParamType(e)?e:new br(sa,{name:e.name||null,type:Ra(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(br.fromObject):null})}static fromString(e,r){function n(i){return br.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(uz(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Rf(t,e){return vz(t).map(r=>br.fromString(r,e))}class cs{constructor(e,r){e!==sa&&Ue.throwError("use a static from method",W.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),pd(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return cs.isFragment(e)?e:typeof e=="string"?cs.fromString(e):cs.fromObject(e)}static fromObject(e){if(cs.isFragment(e))return e;switch(e.type){case"function":return Ii.fromObject(e);case"event":return is.fromObject(e);case"constructor":return Mi.fromObject(e);case"error":return Vs.fromObject(e);case"fallback":case"receive":return null}return Ue.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?is.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Ii.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Mi.fromString(e.trim()):e.split(" ")[0]==="error"?Vs.fromString(e.substring(5).trim()):Ue.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class is extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Je.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",e!==Je.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?is.fromString(e):is.fromObject(e)}static fromObject(e){if(is.isEventFragment(e))return e;e.type!=="event"&&Ue.throwArgumentError("invalid event object","value",e);const r={name:Tf(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(br.fromObject):[],type:"event"};return new is(sa,r)}static fromString(e){let r=e.match(Mf);r||Ue.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:Ue.warn("unknown modifier: "+i)}}),is.fromObject({name:r[1].trim(),anonymous:n,inputs:Rf(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function s7(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&Ue.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||Ue.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=ae.from(r[1]),r[0]):t}function o7(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function a7(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&Ue.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&Ue.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&Ue.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&Ue.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&Ue.throwArgumentError("unable to determine stateMutability","value",t),e}class Mi extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===Je.sighash&&Ue.throwError("cannot format a constructor for sighash",W.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Mi.fromString(e):Mi.fromObject(e)}static fromObject(e){if(Mi.isConstructorFragment(e))return e;e.type!=="constructor"&&Ue.throwArgumentError("invalid constructor object","value",e);let r=a7(e);r.constant&&Ue.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(br.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ae.from(e.gas):null};return new Mi(sa,n)}static fromString(e){let r={type:"constructor"};e=s7(e,r);let n=e.match(Mf);return(!n||n[1].trim()!=="constructor")&&Ue.throwArgumentError("invalid constructor string","value",e),r.inputs=Rf(n[2].trim(),!1),o7(n[3].trim(),r),Mi.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Ii extends Mi{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Je.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",e!==Je.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?Ii.fromString(e):Ii.fromObject(e)}static fromObject(e){if(Ii.isFunctionFragment(e))return e;e.type!=="function"&&Ue.throwArgumentError("invalid function object","value",e);let r=a7(e);const n={type:e.type,name:Tf(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(br.fromObject):[],outputs:e.outputs?e.outputs.map(br.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ae.from(e.gas):null};return new Ii(sa,n)}static fromString(e){let r={type:"function"};e=s7(e,r);let n=e.split(" returns ");n.length>2&&Ue.throwArgumentError("invalid function string","value",e);let i=n[0].match(Mf);if(i||Ue.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Tf(r.name),r.inputs=Rf(i[2],!1),o7(i[3].trim(),r),n.length>1){let s=n[1].match(Mf);(s[1].trim()!=""||s[3].trim()!="")&&Ue.throwArgumentError("unexpected tokens","value",e),r.outputs=Rf(s[2],!1)}else r.outputs=[];return Ii.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function q3(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ue.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class Vs extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Je.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?Vs.fromString(e):Vs.fromObject(e)}static fromObject(e){if(Vs.isErrorFragment(e))return e;e.type!=="error"&&Ue.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Tf(e.name),inputs:e.inputs?e.inputs.map(br.fromObject):[]};return q3(new Vs(sa,r))}static fromString(e){let r={type:"error"},n=e.match(Mf);return n||Ue.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Tf(r.name),r.inputs=Rf(n[2],!1),q3(Vs.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Ra(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const hz=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Tf(t){return(!t||!t.match(hz))&&Ue.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Mf=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function vz(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&Ig.throwError("value out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=ir([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}}class yh{constructor(e,r,n,i){ne(this,"_data",ce(e)),ne(this,"wordSize",r||32),ne(this,"_coerceFunc",n),ne(this,"allowLoose",i),this._offset=0}get data(){return fe(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):yh.coerce(e,r)}_peekBytes(e,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:Ig.throwError("data out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new yh(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return ae.from(this.readBytes(this.wordSize))}}var l7={exports:{}};/** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.8.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2018 - * @license MIT - */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=aA:s&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),f=[31,7936,2031616,520093696],u=[4,1024,262144,67108864],d=[1,256,65536,16777216],v=[6,1536,393216,100663296],g=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],w=[224,256,384,512],x=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],A={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(E){return Object.prototype.toString.call(E)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(E){return typeof E=="object"&&E.buffer&&E.buffer.constructor===ArrayBuffer});for(var P=function(E,$,V){return function(q){return new m(E,$,E).update(q)[V]()}},_=function(E,$,V){return function(q,K){return new m(E,$,K).update(q)[V]()}},D=function(E,$,V){return function(q,K,oe,te){return h["cshake"+E].update(q,K,oe,te)[V]()}},M=function(E,$,V){return function(q,K,oe,te){return h["kmac"+E].update(q,K,oe,te)[V]()}},L=function(E,$,V,q){for(var K=0;K>5,this.byteCount=this.blockCount<<2,this.outputBlocks=V>>5,this.extraBytes=(V&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}m.prototype.update=function(E){if(this.finalized)throw new Error(r);var $,V=typeof E;if(V!=="string"){if(V==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);$=!0}for(var q=this.blocks,K=this.byteCount,oe=E.length,te=this.blockCount,re=0,Ie=this.s,ue,we;re>2]|=E[re]<>2]|=we<>2]|=(192|we>>6)<>2]|=(128|we&63)<=57344?(q[ue>>2]|=(224|we>>12)<>2]|=(128|we>>6&63)<>2]|=(128|we&63)<>2]|=(240|we>>18)<>2]|=(128|we>>12&63)<>2]|=(128|we>>6&63)<>2]|=(128|we&63)<=K){for(this.start=ue-K,this.block=q[te],ue=0;ue>8,V=E&255;V>0;)K.unshift(V),E=E>>8,V=E&255,++q;return $?K.push(q):K.unshift(q),this.update(K),K.length},m.prototype.encodeString=function(E){var $,V=typeof E;if(V!=="string"){if(V==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);$=!0}var q=0,K=E.length;if($)q=K;else for(var oe=0;oe=57344?q+=3:(te=65536+((te&1023)<<10|E.charCodeAt(++oe)&1023),q+=4)}return q+=this.encode(q*8),this.update(E),q},m.prototype.bytepad=function(E,$){for(var V=this.encode($),q=0;q>2]|=this.padding[$&3],this.lastByteIndex===this.byteCount)for(E[0]=E[V],$=1;$>4&15]+c[re&15]+c[re>>12&15]+c[re>>8&15]+c[re>>20&15]+c[re>>16&15]+c[re>>28&15]+c[re>>24&15];oe%E===0&&(F($),K=0)}return q&&(re=$[K],te+=c[re>>4&15]+c[re&15],q>1&&(te+=c[re>>12&15]+c[re>>8&15]),q>2&&(te+=c[re>>20&15]+c[re>>16&15])),te},m.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,$=this.s,V=this.outputBlocks,q=this.extraBytes,K=0,oe=0,te=this.outputBits>>3,re;q?re=new ArrayBuffer(V+1<<2):re=new ArrayBuffer(te);for(var Ie=new Uint32Array(re);oe>8&255,te[re+2]=Ie>>16&255,te[re+3]=Ie>>24&255;oe%E===0&&F($)}return q&&(re=oe<<2,Ie=$[K],te[re]=Ie&255,q>1&&(te[re+1]=Ie>>8&255),q>2&&(te[re+2]=Ie>>16&255)),te};function T(E,$,V){m.call(this,E,$,V)}T.prototype=new m,T.prototype.finalize=function(){return this.encode(this.outputBits,!0),m.prototype.finalize.call(this)};var F=function(E){var $,V,q,K,oe,te,re,Ie,ue,we,zt,Ve,ot,Jn,at,Ge,un,Ze,ft,Xn,ze,et,mi,it,pt,_r,ut,dt,gi,mt,ht,In,vt,lt,Qi,yt,gt,xi,xt,U,G,Q,ie,he,me,de,ye,ge,pe,Rt,_e,ve,Ke,ke,tt,Or,Qe,Ye,Hr,fr,dn,hn,vn;for(q=0;q<48;q+=2)K=E[0]^E[10]^E[20]^E[30]^E[40],oe=E[1]^E[11]^E[21]^E[31]^E[41],te=E[2]^E[12]^E[22]^E[32]^E[42],re=E[3]^E[13]^E[23]^E[33]^E[43],Ie=E[4]^E[14]^E[24]^E[34]^E[44],ue=E[5]^E[15]^E[25]^E[35]^E[45],we=E[6]^E[16]^E[26]^E[36]^E[46],zt=E[7]^E[17]^E[27]^E[37]^E[47],Ve=E[8]^E[18]^E[28]^E[38]^E[48],ot=E[9]^E[19]^E[29]^E[39]^E[49],$=Ve^(te<<1|re>>>31),V=ot^(re<<1|te>>>31),E[0]^=$,E[1]^=V,E[10]^=$,E[11]^=V,E[20]^=$,E[21]^=V,E[30]^=$,E[31]^=V,E[40]^=$,E[41]^=V,$=K^(Ie<<1|ue>>>31),V=oe^(ue<<1|Ie>>>31),E[2]^=$,E[3]^=V,E[12]^=$,E[13]^=V,E[22]^=$,E[23]^=V,E[32]^=$,E[33]^=V,E[42]^=$,E[43]^=V,$=te^(we<<1|zt>>>31),V=re^(zt<<1|we>>>31),E[4]^=$,E[5]^=V,E[14]^=$,E[15]^=V,E[24]^=$,E[25]^=V,E[34]^=$,E[35]^=V,E[44]^=$,E[45]^=V,$=Ie^(Ve<<1|ot>>>31),V=ue^(ot<<1|Ve>>>31),E[6]^=$,E[7]^=V,E[16]^=$,E[17]^=V,E[26]^=$,E[27]^=V,E[36]^=$,E[37]^=V,E[46]^=$,E[47]^=V,$=we^(K<<1|oe>>>31),V=zt^(oe<<1|K>>>31),E[8]^=$,E[9]^=V,E[18]^=$,E[19]^=V,E[28]^=$,E[29]^=V,E[38]^=$,E[39]^=V,E[48]^=$,E[49]^=V,Jn=E[0],at=E[1],de=E[11]<<4|E[10]>>>28,ye=E[10]<<4|E[11]>>>28,dt=E[20]<<3|E[21]>>>29,gi=E[21]<<3|E[20]>>>29,fr=E[31]<<9|E[30]>>>23,dn=E[30]<<9|E[31]>>>23,Q=E[40]<<18|E[41]>>>14,ie=E[41]<<18|E[40]>>>14,lt=E[2]<<1|E[3]>>>31,Qi=E[3]<<1|E[2]>>>31,Ge=E[13]<<12|E[12]>>>20,un=E[12]<<12|E[13]>>>20,ge=E[22]<<10|E[23]>>>22,pe=E[23]<<10|E[22]>>>22,mt=E[33]<<13|E[32]>>>19,ht=E[32]<<13|E[33]>>>19,hn=E[42]<<2|E[43]>>>30,vn=E[43]<<2|E[42]>>>30,ke=E[5]<<30|E[4]>>>2,tt=E[4]<<30|E[5]>>>2,yt=E[14]<<6|E[15]>>>26,gt=E[15]<<6|E[14]>>>26,Ze=E[25]<<11|E[24]>>>21,ft=E[24]<<11|E[25]>>>21,Rt=E[34]<<15|E[35]>>>17,_e=E[35]<<15|E[34]>>>17,In=E[45]<<29|E[44]>>>3,vt=E[44]<<29|E[45]>>>3,it=E[6]<<28|E[7]>>>4,pt=E[7]<<28|E[6]>>>4,Or=E[17]<<23|E[16]>>>9,Qe=E[16]<<23|E[17]>>>9,xi=E[26]<<25|E[27]>>>7,xt=E[27]<<25|E[26]>>>7,Xn=E[36]<<21|E[37]>>>11,ze=E[37]<<21|E[36]>>>11,ve=E[47]<<24|E[46]>>>8,Ke=E[46]<<24|E[47]>>>8,he=E[8]<<27|E[9]>>>5,me=E[9]<<27|E[8]>>>5,_r=E[18]<<20|E[19]>>>12,ut=E[19]<<20|E[18]>>>12,Ye=E[29]<<7|E[28]>>>25,Hr=E[28]<<7|E[29]>>>25,U=E[38]<<8|E[39]>>>24,G=E[39]<<8|E[38]>>>24,et=E[48]<<14|E[49]>>>18,mi=E[49]<<14|E[48]>>>18,E[0]=Jn^~Ge&Ze,E[1]=at^~un&ft,E[10]=it^~_r&dt,E[11]=pt^~ut&gi,E[20]=lt^~yt&xi,E[21]=Qi^~gt&xt,E[30]=he^~de&ge,E[31]=me^~ye&pe,E[40]=ke^~Or&Ye,E[41]=tt^~Qe&Hr,E[2]=Ge^~Ze&Xn,E[3]=un^~ft&ze,E[12]=_r^~dt&mt,E[13]=ut^~gi&ht,E[22]=yt^~xi&U,E[23]=gt^~xt&G,E[32]=de^~ge&Rt,E[33]=ye^~pe&_e,E[42]=Or^~Ye&fr,E[43]=Qe^~Hr&dn,E[4]=Ze^~Xn&et,E[5]=ft^~ze&mi,E[14]=dt^~mt&In,E[15]=gi^~ht&vt,E[24]=xi^~U&Q,E[25]=xt^~G&ie,E[34]=ge^~Rt&ve,E[35]=pe^~_e&Ke,E[44]=Ye^~fr&hn,E[45]=Hr^~dn&vn,E[6]=Xn^~et&Jn,E[7]=ze^~mi&at,E[16]=mt^~In&it,E[17]=ht^~vt&pt,E[26]=U^~Q<,E[27]=G^~ie&Qi,E[36]=Rt^~ve&he,E[37]=_e^~Ke&me,E[46]=fr^~hn&ke,E[47]=dn^~vn&tt,E[8]=et^~Jn&Ge,E[9]=mi^~at&un,E[18]=In^~it&_r,E[19]=vt^~pt&ut,E[28]=Q^~lt&yt,E[29]=ie^~Qi>,E[38]=ve^~he&de,E[39]=Ke^~me&ye,E[48]=hn^~ke&Or,E[49]=vn^~tt&Qe,E[0]^=y[q],E[1]^=y[q+1]};if(a)t.exports=h;else for(k=0;k>=8;return e}function W3(t,e,r){let n=0;for(let i=0;ie+1+n&&ki.throwError("child data too short",W.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function f7(t,e){if(t.length===0&&ki.throwError("data too short",W.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&ki.throwError("data short segment too short",W.errors.BUFFER_OVERRUN,{});const n=W3(t,e+1,r);return e+1+r+n>t.length&&ki.throwError("data long segment too short",W.errors.BUFFER_OVERRUN,{}),G3(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&ki.throwError("data array too short",W.errors.BUFFER_OVERRUN,{}),G3(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&ki.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const n=W3(t,e+1,r);e+1+r+n>t.length&&ki.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const i=fe(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&ki.throwError("data too short",W.errors.BUFFER_OVERRUN,{});const n=fe(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:fe(t[e])}}function _g(t){const e=ce(t),r=f7(e,0);return r.consumed!==e.length&&ki.throwArgumentError("invalid rlp data","data",t),r.result}const xz="address/5.7.0",Wa=new W(xz);function K3(t){He(t,20)||Wa.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=ce(Et(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const bz=9007199254740991;function wz(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const Og={};for(let t=0;t<10;t++)Og[String(t)]=String(t);for(let t=0;t<26;t++)Og[String.fromCharCode(65+t)]=String(10+t);const Q3=Math.floor(wz(bz));function Ez(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>Og[n]).join("");for(;e.length>=Q3;){let n=e.substring(0,Q3);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function Ut(t){let e=null;if(typeof t!="string"&&Wa.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=K3(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Wa.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==Ez(t)&&Wa.throwArgumentError("bad icap checksum","address",t),e=iz(t.substring(4));e.length<40;)e="0"+e;e=K3("0x"+e)}else Wa.throwArgumentError("invalid address","address",t);return e}function Az(t){try{return Ut(t),!0}catch{}return!1}function u7(t){let e=null;try{e=Ut(t.from)}catch{Wa.throwArgumentError("missing from address","transaction",t)}const r=hs(ce(ae.from(t.nonce).toHexString()));return Ut(yr(Et(wl([e,r])),12))}class Sz extends Rs{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=Ut(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return Ut(kt(e.readValue().toHexString(),20))}}class Cz extends Rs{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}const Ga=new W(tu);function d7(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let l={};n=e.map(c=>{const f=c.localName;return f||Ga.throwError("cannot encode object for signature with missing names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&Ga.throwError("cannot encode object for signature with duplicate names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]=!0,r[f]})}else Ga.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&Ga.throwArgumentError("types/value length mismatch","tuple",r);let i=new Jy(t.wordSize),s=new Jy(t.wordSize),o=[];e.forEach((l,c)=>{let f=n[c];if(l.dynamic){let u=s.length;l.encode(s,f);let d=i.writeUpdatableValue();o.push(v=>{d(v+u)})}else l.encode(i,f)}),o.forEach(l=>{l(i.length)});let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function h7(t,e){let r=[],n=t.subReader(0);e.forEach(s=>{let o=null;if(s.dynamic){let a=t.readValue(),l=n.subReader(a.toNumber());try{o=s.decode(l)}catch(c){if(c.code===W.errors.BUFFER_OVERRUN)throw c;o=c,o.baseType=s.name,o.name=s.localName,o.type=s.type}}else try{o=s.decode(t)}catch(a){if(a.code===W.errors.BUFFER_OVERRUN)throw a;o=a,o.baseType=s.name,o.name=s.localName,o.type=s.type}o!=null&&r.push(o)});const i=e.reduce((s,o)=>{const a=o.localName;return a&&(s[a]||(s[a]=0),s[a]++),s},{});e.forEach((s,o)=>{let a=s.localName;if(!a||i[a]!==1||(a==="length"&&(a="_length"),r[a]!=null))return;const l=r[o];l instanceof Error?Object.defineProperty(r,a,{enumerable:!0,get:()=>{throw l}}):r[a]=l});for(let s=0;s{throw o}})}return Object.freeze(r)}class kz extends Rs{constructor(e,r,n){const i=e.type+"["+(r>=0?r:"")+"]",s=r===-1||e.dynamic;super("array",i,n,s),this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;ne._data.length&&Ga.throwError("insufficient data length",W.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i>6===2;o++)s++;return s}return t===gn.OVERRUN?r.length-e-1:0}function Bz(t,e,r,n,i){return t===gn.OVERLONG?(n.push(i),0):(n.push(65533),m7(t,e,r))}const $z=Object.freeze({error:jz,ignore:m7,replace:Bz});function g7(t,e){e==null&&(e=$z.error),t=ce(t);const r=[];let n=0;for(;n>7)){r.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?n+=e(gn.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(gn.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(gn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(gn.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(gn.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(gn.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function sr(t,e=vo.current){e!=vo.current&&(p7.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const s=t.charCodeAt(n);if(n>=t.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((i&1023)<<10)+(s&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return ce(r)}function Fz(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function ru(t,e){return Fz(g7(t,e))}function Uz(t,e=vo.current){return g7(sr(t,e))}class zz extends v7{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,sr(r))}decode(e){return ru(super.decode(e))}}class Bu extends Rs{constructor(e,r){let n=!1;const i=[];e.forEach(o=>{o.dynamic&&(n=!0),i.push(o.type)});const s="tuple("+i.join(",")+")";super("tuple",s,r,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const s=i.localName;return s&&(n[s]||(n[s]=0),n[s]++),n},{});return this.coders.forEach((n,i)=>{let s=n.localName;!s||r[s]!==1||(s==="length"&&(s="_length"),e[s]==null&&(e[s]=e[i]))}),Object.freeze(e)}encode(e,r){return d7(e,this.coders,r)}decode(e){return e.coerce(this.name,h7(e,this.coders))}}const $u=new W(tu),Vz=new RegExp(/^bytes([0-9]*)$/),qz=new RegExp(/^(u?int)([0-9]*)$/);class Hz{constructor(e){ne(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new Sz(e.name);case"bool":return new Pz(e.name);case"string":return new zz(e.name);case"bytes":return new Rz(e.name);case"array":return new kz(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Bu((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new Mz(e.name)}let r=e.type.match(qz);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&$u.throwArgumentError("invalid "+r[1]+" bit length","param",e),new Dz(n/8,r[1]==="int",e.name)}if(r=e.type.match(Vz),r){let n=parseInt(r[1]);return(n===0||n>32)&&$u.throwArgumentError("invalid bytes length","param",e),new Tz(n,e.name)}return $u.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new yh(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new Jy(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(br.from(i)));return new Bu(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&$u.throwError("types/values length mismatch",W.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(o=>this._getCoder(br.from(o))),i=new Bu(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(br.from(o)));return new Bu(i,"_").decode(this._getReader(ce(r),n))}}const Wz=new Hz;function $o(t){return Et(sr(t))}const x7="hash/5.7.0";function b7(t){t=atob(t);const e=[];for(let r=0;r0&&Array.isArray(a)?i(a,o-1):r.push(a)})};return i(t,e),r}function Gz(t){const e={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,g=v>>1,y=d-1;let w=0;for(let _=0;_1;){let H=D+M>>>1;_>>1|f(),L=L<<1^v,z=(z^v)<<1|v|1;b=L,A=1+z-L}let P=n-4;return x.map(_=>{switch(_-P){case 3:return P+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return P+256+(t[a++]<<8|t[a++]);case 1:return P+t[a++];default:return _-1}})}function Qz(t){let e=0;return()=>t[e++]}function Yz(t){return Qz(Kz(t))}function Jz(t){return t&1?~t>>1:t>>1}function Xz(t,e){let r=Array(t);for(let n=0;ne[o]):r}function eV(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(rV(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(nV(r,t))}return Gz(E7(e))}function tV(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function A7(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function rV(t,e){let r=1+e(),n=e(),i=tV(e),s=A7(i.length,1+t,e);return E7(s.map((o,a)=>{const l=o[0],c=o.slice(1);return Array(i[a]).fill(void 0).map((f,u)=>{let d=u*n;return[l+u*r,c.map(v=>v+d)]})}))}function nV(t,e){let r=1+e();return A7(r,1+t,e).map(i=>[i[0],i.slice(1)])}function iV(t){let e=ph(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=ph(t,e);if(c.length==0)break;n.push({set:new Set(c),node:r()})}n.sort((c,f)=>f.set.size-c.set.size);let i=t(),s=i%3;i=i/3|0;let o=!!(i&1);i>>=1;let a=i==1,l=i==2;return{branches:n,valid:s,fe0f:o,save:a,check:l}}}function sV(){return Yz(b7("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"))}const b0=sV(),oV=new Set(ph(b0)),aV=new Set(ph(b0)),lV=eV(b0),cV=iV(b0),J3=45,X3=95;function S7(t){return Uz(t)}function fV(t){return t.filter(e=>e!=65039)}function C7(t){for(let e of t.split(".")){let r=S7(e);try{for(let n=r.lastIndexOf(X3)-1;n>=0;n--)if(r[n]!==X3)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===J3&&r[3]===J3)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function uV(t){return C7(dV(t,fV))}function dV(t,e){let r=S7(t).reverse(),n=[];for(;r.length;){let i=vV(r);if(i){n.push(...e(i));continue}let s=r.pop();if(oV.has(s)){n.push(s);continue}if(aV.has(s))continue;let o=lV[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return C7(hV(String.fromCodePoint(...n)))}function hV(t){return t.normalize("NFC")}function vV(t,e){var r;let n=cV,i,s,o=[],a=t.length;for(e&&(e.length=0);a;){let l=t[--a];if(n=(r=n.branches.find(c=>c.set.has(l)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)s=l;else if(n.check&&l===s)break;o.push(l),n.fe0f&&(o.push(65039),a>0&&t[a-1]==65039&&a--),n.valid&&(i=o.slice(),n.valid==2&&i.splice(1,1),e&&e.push(...t.slice(a).reverse()),t.length=a)}return i}const yV=new W(x7),k7=new Uint8Array(32);k7.fill(0);function Z3(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function P7(t){const e=sr(uV(t)),r=[];if(t.length===0)return r;let n=0;for(let i=0;i=e.length)throw new Error("invalid ENS name; empty component");return r.push(Z3(e.slice(n))),r}function md(t){typeof t!="string"&&yV.throwArgumentError("invalid ENS name; not a string","name",t);let e=k7;const r=P7(t);for(;r.length;)e=Et(ir([e,Et(r.pop())]));return fe(e)}function pV(t){return fe(ir(P7(t).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}const mV=`Ethereum Signed Message: -`;function gV(t){return typeof t=="string"&&(t=sr(t)),Et(ir([sr(mV),sr(String(t.length)),t]))}var xV=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Dt=new W(x7),R7=new Uint8Array(32);R7.fill(0);const bV=ae.from(-1),T7=ae.from(0),M7=ae.from(1),wV=ae.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function EV(t){const e=ce(t),r=e.length%32;return r?rn([e,R7.slice(r)]):fe(e)}const AV=kt(M7.toHexString(),32),SV=kt(T7.toHexString(),32),eE={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},V1=["name","version","chainId","verifyingContract","salt"];function tE(t){return function(e){return typeof e!="string"&&Dt.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const CV={name:tE("name"),version:tE("version"),chainId:function(t){try{return ae.from(t).toString()}catch{}return Dt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Ut(t).toLowerCase()}catch{}return Dt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=ce(t);if(e.length!==32)throw new Error("bad length");return fe(e)}catch{}return Dt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function q1(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&Dt.throwArgumentError("invalid numeric width","type",t);const i=wV.mask(r?n-1:n),s=r?i.add(M7).mul(bV):T7;return function(o){const a=ae.from(o);return(a.lt(s)||a.gt(i))&&Dt.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),kt(a.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&Dt.throwArgumentError("invalid bytes width","type",t),function(n){return ce(n).length!==r&&Dt.throwArgumentError(`invalid length for ${t}`,"value",n),EV(n)}}}switch(t){case"address":return function(e){return kt(Ut(e),32)};case"bool":return function(e){return e?AV:SV};case"bytes":return function(e){return Et(e)};case"string":return function(e){return $o(e)}}return null}function rE(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Kr{constructor(e){ne(this,"types",Object.freeze(ia(e))),ne(this,"_encoderCache",{}),ne(this,"_types",{});const r={},n={},i={};Object.keys(e).forEach(a=>{r[a]={},n[a]=[],i[a]={}});for(const a in e){const l={};e[a].forEach(c=>{l[c.name]&&Dt.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(a)}`,"types",e),l[c.name]=!0;const f=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];f===a&&Dt.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!q1(f)&&(n[f]||Dt.throwArgumentError(`unknown type ${JSON.stringify(f)}`,"types",e),n[f].push(a),r[a][f]=!0)})}const s=Object.keys(n).filter(a=>n[a].length===0);s.length===0?Dt.throwArgumentError("missing primary type","types",e):s.length>1&&Dt.throwArgumentError(`ambiguous primary types or unused types: ${s.map(a=>JSON.stringify(a)).join(", ")}`,"types",e),ne(this,"primaryType",s[0]);function o(a,l){l[a]&&Dt.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),l[a]=!0,Object.keys(r[a]).forEach(c=>{n[c]&&(o(c,l),Object.keys(l).forEach(f=>{i[f][c]=!0}))}),delete l[a]}o(this.primaryType,{});for(const a in i){const l=Object.keys(i[a]);l.sort(),this._types[a]=rE(a,e[a])+l.map(c=>rE(c,e[c])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const i=q1(e);if(i)return i}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],s=this.getEncoder(i),o=parseInt(r[3]);return a=>{o>=0&&a.length!==o&&Dt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(Et)),Et(rn(l))}}const n=this.types[e];if(n){const i=$o(this._types[e]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?Et(c):c});return o.unshift(i),rn(o)}}return Dt.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||Dt.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Et(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(q1(e))return n(e,r);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const o=i[1],a=parseInt(i[3]);return a>=0&&r.length!==a&&Dt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(l=>this._visit(o,l,n))}const s=this.types[e];return s?s.reduce((o,{name:a,type:l})=>(o[a]=this._visit(l,r[a],n),o),{}):Dt.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Kr(e)}static getPrimaryType(e){return Kr.from(e).primaryType}static hashStruct(e,r,n){return Kr.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=eE[n];i||Dt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>V1.indexOf(n.name)-V1.indexOf(i.name)),Kr.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return rn(["0x1901",Kr.hashDomain(e),Kr.from(r).hash(n)])}static hash(e,r,n){return Et(Kr.encode(e,r,n))}static resolveNames(e,r,n,i){return xV(this,void 0,void 0,function*(){e=mr(e);const s={};e.verifyingContract&&!He(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Kr.from(r);o.visit(n,(a,l)=>(a==="address"&&!He(l,20)&&(s[l]="0x"),l));for(const a in s)s[a]=yield i(a);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),n=o.visit(n,(a,l)=>a==="address"&&s[l]?s[l]:l),{domain:e,value:n}})}static getPayload(e,r,n){Kr.hashDomain(e);const i={},s=[];V1.forEach(l=>{const c=e[l];c!=null&&(i[l]=CV[l](c),s.push({name:l,type:eE[l]}))});const o=Kr.from(r),a=mr(r);return a.EIP712Domain?Dt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):a.EIP712Domain=s,o.encode(n),{types:a,domain:i,primaryType:o.primaryType,message:o.visit(n,(l,c)=>{if(l.match(/^bytes(\d*)/))return fe(ce(c));if(l.match(/^u?int/))return ae.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&Dt.throwArgumentError("invalid string","value",c),c}return Dt.throwArgumentError("unsupported type","type",l)})}}}const Nt=new W(tu);class kV extends ya{}class PV extends ya{}class RV extends ya{}class Xy extends ya{static isIndexed(e){return!!(e&&e._isIndexed)}}const TV={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function nE(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class iE{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,ne(this,"fragments",r.map(n=>cs.from(n)).filter(n=>n!=null)),ne(this,"_abiCoder",Ni(new.target,"getAbiCoder")()),ne(this,"functions",{}),ne(this,"errors",{}),ne(this,"events",{}),ne(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){Nt.warn("duplicate definition - constructor");return}ne(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let s=n.format();if(i[s]){Nt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||ne(this,"deploy",Mi.from({payable:!1,type:"constructor"})),ne(this,"_isInterface",!0)}format(e){e||(e=Je.full),e===Je.sighash&&Nt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Je.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return Wz}static getAddress(e){return Ut(e)}static getSighash(e){return yr($o(e.format()),0,4)}static getEventTopic(e){return $o(e.format())}getFunction(e){if(He(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Nt.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.functions).filter(s=>s.split("(")[0]===n);return i.length===0?Nt.throwArgumentError("no matching function","name",n):i.length>1&&Nt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Ii.fromString(e).format()];return r||Nt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(He(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Nt.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.events).filter(s=>s.split("(")[0]===n);return i.length===0?Nt.throwArgumentError("no matching event","name",n):i.length>1&&Nt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[is.fromString(e).format()];return r||Nt.throwArgumentError("no matching event","signature",e),r}getError(e){if(He(e)){const n=Ni(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}Nt.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.errors).filter(s=>s.split("(")[0]===n);return i.length===0?Nt.throwArgumentError("no matching error","name",n):i.length>1&&Nt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Ii.fromString(e).format()];return r||Nt.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return Ni(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Ni(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=ce(r);return fe(n.slice(0,4))!==this.getSighash(e)&&Nt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",fe(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),fe(ir([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=ce(r);return fe(n.slice(0,4))!==this.getSighash(e)&&Nt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",fe(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),fe(ir([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=ce(r),i=null,s="",o=null,a=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const c=fe(n.slice(0,4)),f=TV[c];if(f)o=this._abiCoder.decode(f.inputs,n.slice(4)),a=f.name,l=f.signature,f.reason&&(i=o[0]),a==="Error"?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:a==="Panic"&&(s=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const u=this.getError(c);o=this._abiCoder.decode(u.inputs,n.slice(4)),a=u.name,l=u.format()}catch{}break}}return Nt.throwError("call revert exception"+s,W.errors.CALL_EXCEPTION,{method:e.format(),data:fe(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),fe(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&Nt.throwError("too many arguments for "+e.format(),W.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(s,o)=>s.type==="string"?$o(o):s.type==="bytes"?Et(fe(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=ae.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),kt(fe(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&Nt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,s);return}s==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?Nt.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,s):Array.isArray(s)?n.push(s.map(l=>i(a,l))):n.push(i(a,s))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],i=[],s=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&Nt.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const l=r[a];if(o.indexed)if(o.type==="string")n.push($o(l));else if(o.type==="bytes")n.push(Et(l));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([o.type],[l]))}else i.push(o),s.push(l)}),{data:this._abiCoder.encode(i,s),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let d=this.getEventTopic(e);(!He(n[0],32)||n[0].toLowerCase()!==d)&&Nt.throwError("fragment/topic mismatch",W.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:n[0]}),n=n.slice(1)}let i=[],s=[],o=[];e.inputs.forEach((d,v)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(br.fromObject({type:"bytes32",name:d.name})),o.push(!0)):(i.push(d),o.push(!1)):(s.push(d),o.push(!1))});let a=n!=null?this._abiCoder.decode(i,ir(n)):null,l=this._abiCoder.decode(s,r,!0),c=[],f=0,u=0;e.inputs.forEach((d,v)=>{if(d.indexed)if(a==null)c[v]=new Xy({_isIndexed:!0,hash:null});else if(o[v])c[v]=new Xy({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(g){c[v]=g}else try{c[v]=l[f++]}catch(g){c[v]=g}if(d.name&&c[d.name]==null){const g=c[v];g instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw nE(`property ${JSON.stringify(d.name)}`,g)}}):c[d.name]=g}});for(let d=0;d{throw nE(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new PV({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:ae.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new kV({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=fe(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new RV({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const MV="abstract-provider/5.7.0";var IV=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const _V=new W(MV);class OV extends ya{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class nu{constructor(){_V.checkAbstract(new.target,nu),ne(this,"_isProvider",!0)}getFeeData(){return IV(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield er({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(o=>null)});let n=null,i=null,s=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,s=ae.from("1500000000"),i=e.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:s,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const NV="abstract-signer/5.7.0";var ei=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Nn=new W(NV),DV=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],LV=[W.errors.INSUFFICIENT_FUNDS,W.errors.NONCE_EXPIRED,W.errors.REPLACEMENT_UNDERPRICED];class Bl{constructor(){Nn.checkAbstract(new.target,Bl),ne(this,"_isSigner",!0)}getBalance(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return ei(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield er(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return ei(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield er(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return ei(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return ei(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return ei(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return ei(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)DV.indexOf(n)===-1&&Nn.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=mr(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&Nn.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return ei(this,void 0,void 0,function*(){const r=yield er(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>ei(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&Nn.throwArgumentError("provided ENS name resolves to null","tx.to",i),s})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?Nn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&Nn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const s=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=s,r.maxPriorityFeePerGas=s}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&Nn.throwError("network does not support EIP-1559",W.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):Nn.throwError("failed to get consistent fee data",W.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(LV.indexOf(i.code)>=0)throw i;return Nn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&Nn.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield er(r)})}_checkProvider(e){this.provider||Nn.throwError("missing provider",W.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class Dg extends Bl{constructor(e,r){super(),ne(this,"address",e),ne(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{Nn.throwError(e,W.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new Dg(this.address,e)}}var I7={},$e={},iu=_7;function _7(t,e){if(!t)throw new Error(e||"Assertion failed")}_7.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Zy={exports:{}};typeof Object.create=="function"?Zy.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Zy.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var jV=Zy.exports,BV=iu,$V=jV;$e.inherits=$V;function FV(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function UV(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=s&63|128):FV(t,i)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=s&63|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=s&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}$e.htonl=O7;function VV(t,e){for(var r="",n=0;n>>0}return s}$e.join32=qV;function HV(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}$e.split32=HV;function WV(t,e){return t>>>e|t<<32-e}$e.rotr32=WV;function GV(t,e){return t<>>32-e}$e.rotl32=GV;function KV(t,e){return t+e>>>0}$e.sum32=KV;function QV(t,e,r){return t+e+r>>>0}$e.sum32_3=QV;function YV(t,e,r,n){return t+e+r+n>>>0}$e.sum32_4=YV;function JV(t,e,r,n,i){return t+e+r+n+i>>>0}$e.sum32_5=JV;function XV(t,e,r,n){var i=t[e],s=t[e+1],o=n+s>>>0,a=(o>>0,t[e+1]=o}$e.sum64=XV;function ZV(t,e,r,n){var i=e+n>>>0,s=(i>>0}$e.sum64_hi=ZV;function eq(t,e,r,n){var i=e+n;return i>>>0}$e.sum64_lo=eq;function tq(t,e,r,n,i,s,o,a){var l=0,c=e;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}$e.sum64_4_hi=tq;function rq(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}$e.sum64_4_lo=rq;function nq(t,e,r,n,i,s,o,a,l,c){var f=0,u=e;u=u+n>>>0,f+=u>>0,f+=u>>0,f+=u>>0,f+=u>>0}$e.sum64_5_hi=nq;function iq(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}$e.sum64_5_lo=iq;function sq(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}$e.rotr64_hi=sq;function oq(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}$e.rotr64_lo=oq;function aq(t,e,r){return t>>>r}$e.shr64_hi=aq;function lq(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}$e.shr64_lo=lq;var $l={},sE=$e,cq=iu;function w0(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}$l.BlockHash=w0;w0.prototype.update=function(e,r){if(e=sE.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=sE.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[s++]=e>>>16&255,i[s++]=e>>>8&255,i[s++]=e&255}else for(i[s++]=e&255,i[s++]=e>>>8&255,i[s++]=e>>>16&255,i[s++]=e>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,o=8;o>>3}Gi.g0_256=vq;function yq(t){return $i(t,17)^$i(t,19)^t>>>10}Gi.g1_256=yq;var El=$e,pq=$l,mq=Gi,H1=El.rotl32,lc=El.sum32,gq=El.sum32_5,xq=mq.ft_1,$7=pq.BlockHash,bq=[1518500249,1859775393,2400959708,3395469782];function Vi(){if(!(this instanceof Vi))return new Vi;$7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}El.inherits(Vi,$7);var wq=Vi;Vi.blockSize=512;Vi.outSize=160;Vi.hmacStrength=80;Vi.padLength=64;Vi.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),lH(e.length<=this.blockSize);for(var r=e.length;r>8,d=f&255;u?l.push(u,d):l.push(d)}return l}r.toArray=n;function i(o){return o.length===1?"0"+o:o}r.zero2=i;function s(o){for(var a="",l=0;l(d>>1)-1?y=(d>>1)-w:y=w,v.isubn(y)):y=0,u[g]=y,v.iushrn(1)}return u}r.getNAF=n;function i(l,c){var f=[[],[]];l=l.clone(),c=c.clone();for(var u=0,d=0,v;l.cmpn(-u)>0||c.cmpn(-d)>0;){var g=l.andln(3)+u&3,y=c.andln(3)+d&3;g===3&&(g=-1),y===3&&(y=-1);var w;g&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-g:w=g):w=0,f[0].push(w);var x;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&g===2?x=-y:x=y):x=0,f[1].push(x),2*u===w+1&&(u=1-u),2*d===x+1&&(d=1-d),l.iushrn(1),c.iushrn(1)}return f}r.getJSF=i;function s(l,c,f){var u="_"+c;l.prototype[c]=function(){return this[u]!==void 0?this[u]:this[u]=f.call(this)}}r.cachedProperty=s;function o(l){return typeof l=="string"?r.toArray(l,"hex"):l}r.parseBytes=o;function a(l){return new Oe(l,"hex","le")}r.intFromLE=a}),mh=Mn.getNAF,uH=Mn.getJSF,gh=Mn.assert;function So(t,e){this.type=t,this.p=new Oe(e.p,16),this.red=e.prime?Oe.red(e.prime):Oe.mont(this.p),this.zero=new Oe(0).toRed(this.red),this.one=new Oe(1).toRed(this.red),this.two=new Oe(2).toRed(this.red),this.n=e.n&&new Oe(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var pa=So;So.prototype.point=function(){throw new Error("Not implemented")};So.prototype.validate=function(){throw new Error("Not implemented")};So.prototype._fixedNafMul=function(e,r){gh(e.precomputed);var n=e._getDoubles(),i=mh(r,1,this._bitLength),s=(1<=a;c--)l=(l<<1)+i[c];o.push(l)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=s;d>0;d--){for(a=0;a=0;l--){for(var c=0;l>=0&&o[l]===0;l--)c++;if(l>=0&&c++,a=a.dblp(c),l<0)break;var f=o[l];gh(f!==0),e.type==="affine"?f>0?a=a.mixedAdd(s[f-1>>1]):a=a.mixedAdd(s[-f-1>>1].neg()):f>0?a=a.add(s[f-1>>1]):a=a.add(s[-f-1>>1].neg())}return e.type==="affine"?a.toP():a};So.prototype._wnafMulAdd=function(e,r,n,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,c=0,f,u,d;for(f=0;f=1;f-=2){var g=f-1,y=f;if(o[g]!==1||o[y]!==1){l[g]=mh(n[g],o[g],this._bitLength),l[y]=mh(n[y],o[y],this._bitLength),c=Math.max(l[g].length,c),c=Math.max(l[y].length,c);continue}var w=[r[g],null,null,r[y]];r[g].y.cmp(r[y].y)===0?(w[1]=r[g].add(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg())):r[g].y.cmp(r[y].y.redNeg())===0?(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].add(r[y].neg())):(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg()));var x=[-3,-1,-5,-7,0,7,5,1,3],b=uH(n[g],n[y]);for(c=Math.max(b[0].length,c),l[g]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var M=0;f>=0;){var L=!0;for(u=0;u=0&&M++,_=_.dblp(M),f<0)break;for(u=0;u0?d=a[u][z-1>>1]:z<0&&(d=a[u][-z-1>>1].neg()),d.type==="affine"?_=_.mixedAdd(d):_=_.add(d))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};Kn.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,s=0;s=0&&(v=c,g=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),g=g.neg()),[{a:u,b:d},{a:v,b:g}]};Qn.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],s=i.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=s.mul(n.a),l=o.mul(i.a),c=s.mul(n.b),f=o.mul(i.b),u=e.sub(a).sub(l),d=c.add(f).neg();return{k1:u,k2:d}};Qn.prototype.pointFromX=function(e,r){e=new Oe(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var s=i.fromRed().isOdd();return(r&&!s||!r&&s)&&(i=i.redNeg()),this.point(e,i)};Qn.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(s).cmpn(0)===0};Qn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};Ar.prototype.isInfinity=function(){return this.inf};Ar.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Ar.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),s=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};Ar.prototype.getX=function(){return this.x.fromRed()};Ar.prototype.getY=function(){return this.y.fromRed()};Ar.prototype.mul=function(e){return e=new Oe(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Ar.prototype.mulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)};Ar.prototype.jmulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)};Ar.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Ar.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(s){return s.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Ar.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function Mr(t,e,r,n){pa.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Oe(0)):(this.x=new Oe(e,16),this.y=new Oe(r,16),this.z=new Oe(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}jg(Mr,pa.BasePoint);Qn.prototype.jpoint=function(e,r,n){return new Mr(this,e,r,n)};Mr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};Mr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Mr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),s=e.x.redMul(n),o=this.y.redMul(r.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),l=i.redSub(s),c=o.redSub(a);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=l.redSqr(),u=f.redMul(l),d=i.redMul(f),v=c.redSqr().redIAdd(u).redISub(d).redISub(d),g=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(v,g,y)};Mr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),s=this.y,o=e.y.redMul(r).redMul(this.z),a=n.redSub(i),l=s.redSub(o);if(a.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),f=c.redMul(a),u=n.redMul(c),d=l.redSqr().redIAdd(f).redISub(u).redISub(u),v=l.redMul(u.redISub(d)).redISub(s.redMul(f)),g=this.z.redMul(a);return this.curve.jpoint(d,v,g)};Mr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(s),this.x.cmp(n)===0)return!0}};Mr.prototype.inspect=function(){return this.isInfinity()?"":""};Mr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var gd=zl(function(t,e){var r=e;r.base=pa,r.short=hH,r.mont=null,r.edwards=null}),xd=zl(function(t,e){var r=e,n=Mn.assert;function i(a){a.type==="short"?this.curve=new gd.short(a):a.type==="edwards"?this.curve=new gd.edwards(a):this.curve=new gd.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function s(a,l){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(r,a,{configurable:!0,enumerable:!0,value:c}),c}})}s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:mn.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:mn.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:mn.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:mn.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:mn.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:mn.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:mn.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var o;try{o=null.crash()}catch{o=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:mn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function yo(t){if(!(this instanceof yo))return new yo(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=fi.toArray(t.entropy,t.entropyEnc||"hex"),r=fi.toArray(t.nonce,t.nonceEnc||"hex"),n=fi.toArray(t.pers,t.persEnc||"hex");Lg(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var J7=yo;yo.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};yo.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=fi.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var vH=Mn.assert;function E0(t,e){if(t instanceof E0)return t;this._importDER(t,e)||(vH(t.r&&t.s,"Signature without r or s"),this.r=new Oe(t.r,16),this.s=new Oe(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var A0=E0;function yH(){this.place=0}function K1(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return i<=127?!1:(e.place=o,i)}function cE(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}E0.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=cE(r),n=cE(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];Q1(i,r.length),i=i.concat(r),i.push(2),Q1(i,n.length);var s=i.concat(n),o=[48];return Q1(o,s.length),o=o.concat(s),Mn.encode(o,e)};var pH=function(){throw new Error("unsupported")},X7=Mn.assert;function Gn(t){if(!(this instanceof Gn))return new Gn(t);typeof t=="string"&&(X7(Object.prototype.hasOwnProperty.call(xd,t),"Unknown curve "+t),t=xd[t]),t instanceof xd.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var mH=Gn;Gn.prototype.keyPair=function(e){return new Bg(this,e)};Gn.prototype.keyFromPrivate=function(e,r){return Bg.fromPrivate(this,e,r)};Gn.prototype.keyFromPublic=function(e,r){return Bg.fromPublic(this,e,r)};Gn.prototype.genKeyPair=function(e){e||(e={});for(var r=new J7({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||pH(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Oe(2));;){var s=new Oe(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};Gn.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};Gn.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new Oe(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new J7({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Oe(1)),f=0;;f++){var u=i.k?i.k(f):new Oe(l.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(c)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var v=d.getX(),g=v.umod(this.n);if(g.cmpn(0)!==0){var y=u.invm(this.n).mul(g.mul(r.getPrivate()).iadd(e));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(g)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new A0({r:g,s:y,recoveryParam:w})}}}}}};Gn.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Oe(e,16)),n=this.keyFromPublic(n,i),r=new A0(r,"hex");var s=r.r,o=r.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(e).umod(this.n),c=a.mul(s).umod(this.n),f;return this.curve._maxwellTrick?(f=this.g.jmulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.eqXToP(s)):(f=this.g.mulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.getX().umod(this.n).cmp(s)===0)};Gn.prototype.recoverPubKey=function(t,e,r,n){X7((3&r)===r,"The recovery param is more than two bits"),e=new A0(e,n);var i=this.n,s=new Oe(t),o=e.r,a=e.s,l=r&1,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?o=this.curve.pointFromX(o.add(this.curve.n),l):o=this.curve.pointFromX(o,l);var f=e.r.invm(i),u=i.sub(s).mul(f).umod(i),d=a.mul(f).umod(i);return this.g.mulAdd(u,o,d)};Gn.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new A0(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var gH=zl(function(t,e){var r=e;r.version="6.5.4",r.utils=Mn,r.rand=function(){throw new Error("unsupported")},r.curve=gd,r.curves=xd,r.ec=mH,r.eddsa=null}),xH=gH.ec;const bH="signing-key/5.7.0",np=new W(bH);let Y1=null;function Pi(){return Y1||(Y1=new xH("secp256k1")),Y1}class sl{constructor(e){ne(this,"curve","secp256k1"),ne(this,"privateKey",fe(e)),na(this.privateKey)!==32&&np.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=Pi().keyFromPrivate(ce(this.privateKey));ne(this,"publicKey","0x"+r.getPublic(!1,"hex")),ne(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),ne(this,"_isSigningKey",!0)}_addPoint(e){const r=Pi().keyFromPublic(ce(this.publicKey)),n=Pi().keyFromPublic(ce(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=Pi().keyFromPrivate(ce(this.privateKey)),n=ce(e);n.length!==32&&np.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return jl({recoveryParam:i.recoveryParam,r:kt("0x"+i.r.toString(16),32),s:kt("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=Pi().keyFromPrivate(ce(this.privateKey)),n=Pi().keyFromPublic(ce(Z7(e)));return kt("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function wH(t,e){const r=jl(e),n={r:ce(r.r),s:ce(r.s)};return"0x"+Pi().recoverPubKey(ce(t),n,r.recoveryParam).encode("hex",!1)}function Z7(t,e){const r=ce(t);if(r.length===32){const n=new sl(r);return e?"0x"+Pi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?fe(r):"0x"+Pi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+Pi().keyFromPublic(r).getPublic(!0,"hex"):fe(r)}return np.throwArgumentError("invalid public or private key","key","[REDACTED]")}const EH="transactions/5.7.0",Fr=new W(EH);var fE;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(fE||(fE={}));function $g(t){return t==="0x"?null:Ut(t)}function $r(t){return t==="0x"?y7:ae.from(t)}const AH=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],SH={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Wo(t){const e=Z7(t);return Ut(yr(Et(yr(e,1)),12))}function e9(t,e){return Wo(wH(ce(t),e))}function xn(t,e){const r=hs(ae.from(t).toHexString());return r.length>32&&Fr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function J1(t,e){return{address:Ut(t),storageKeys:(e||[]).map((r,n)=>(na(r)!==32&&Fr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Vl(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Fr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),J1(r[0],r[1])):J1(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return J1(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function t9(t){return Vl(t).map(e=>[e.address,e.storageKeys])}function r9(t,e){if(t.gasPrice!=null){const n=ae.from(t.gasPrice),i=ae.from(t.maxFeePerGas||0);n.eq(i)||Fr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[xn(t.chainId||0,"chainId"),xn(t.nonce||0,"nonce"),xn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),xn(t.maxFeePerGas||0,"maxFeePerGas"),xn(t.gasLimit||0,"gasLimit"),t.to!=null?Ut(t.to):"0x",xn(t.value||0,"value"),t.data||"0x",t9(t.accessList||[])];if(e){const n=jl(e);r.push(xn(n.recoveryParam,"recoveryParam")),r.push(hs(n.r)),r.push(hs(n.s))}return rn(["0x02",wl(r)])}function n9(t,e){const r=[xn(t.chainId||0,"chainId"),xn(t.nonce||0,"nonce"),xn(t.gasPrice||0,"gasPrice"),xn(t.gasLimit||0,"gasLimit"),t.to!=null?Ut(t.to):"0x",xn(t.value||0,"value"),t.data||"0x",t9(t.accessList||[])];if(e){const n=jl(e);r.push(xn(n.recoveryParam,"recoveryParam")),r.push(hs(n.r)),r.push(hs(n.s))}return rn(["0x01",wl(r)])}function CH(t,e){n7(t,SH);const r=[];AH.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=ce(fe(a,l)),o.length&&a.length!==o.length&&a.length>0&&Fr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=hs(a),a.length>o.maxLength&&Fr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(fe(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Fr.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!x0(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(fe(n)),r.push("0x"),r.push("0x")),!e)return wl(r);const i=jl(e);let s=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),s+=n*2+8,i.v>28&&i.v!==s&&Fr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&Fr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(fe(s)),r.push(hs(ce(i.r))),r.push(hs(ce(i.s))),wl(r)}function uE(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Fr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),CH(t,e);switch(t.type){case 1:return n9(t,e);case 2:return r9(t,e)}return Fr.throwError(`unsupported transaction type: ${t.type}`,W.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function i9(t,e,r){try{const n=$r(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Fr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=kt(e[1],32),t.s=kt(e[2],32);try{const n=Et(r(t));t.from=e9(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function kH(t){const e=_g(t.slice(1));e.length!==9&&e.length!==12&&Fr.throwArgumentError("invalid component count for transaction type: 2","payload",fe(t));const r=$r(e[2]),n=$r(e[3]),i={type:2,chainId:$r(e[0]).toNumber(),nonce:$r(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:$r(e[4]),to:$g(e[5]),value:$r(e[6]),data:e[7],accessList:Vl(e[8])};return e.length===9||(i.hash=Et(t),i9(i,e.slice(9),r9)),i}function PH(t){const e=_g(t.slice(1));e.length!==8&&e.length!==11&&Fr.throwArgumentError("invalid component count for transaction type: 1","payload",fe(t));const r={type:1,chainId:$r(e[0]).toNumber(),nonce:$r(e[1]).toNumber(),gasPrice:$r(e[2]),gasLimit:$r(e[3]),to:$g(e[4]),value:$r(e[5]),data:e[6],accessList:Vl(e[7])};return e.length===8||(r.hash=Et(t),i9(r,e.slice(8),n9)),r}function RH(t){const e=_g(t);e.length!==9&&e.length!==6&&Fr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:$r(e[0]).toNumber(),gasPrice:$r(e[1]),gasLimit:$r(e[2]),to:$g(e[3]),value:$r(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=ae.from(e[6]).toNumber()}catch{return r}if(r.r=kt(e[7],32),r.s=kt(e[8],32),ae.from(r.r).isZero()&&ae.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);r.chainId!==0&&(i.push(fe(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=Et(wl(i));try{r.from=e9(s,{r:fe(r.r),s:fe(r.s),recoveryParam:n})}catch{}r.hash=Et(t)}return r.type=null,r}function TH(t){const e=ce(t);if(e[0]>127)return RH(e);switch(e[0]){case 1:return PH(e);case 2:return kH(e)}return Fr.throwError(`unsupported transaction type: ${e[0]}`,W.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const MH="contracts/5.7.0";var aa=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const tr=new W(MH);function xh(t,e){return aa(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&tr.throwArgumentError("invalid address or ENS name","name",r);try{return Ut(r)}catch{}t||tr.throwError("a provider or signer is needed to resolve ENS names",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&tr.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function bd(t,e,r){return aa(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>bd(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield xh(t,e):r.type==="tuple"?yield bd(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>bd(t,n,r.arrayChildren))):Promise.reject(tr.makeError("invalid value for array",W.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function S0(t,e,r){return aa(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=mr(r.pop())),tr.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=er({override:xh(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>aa(this,void 0,void 0,function*(){return Ut(c.signer)!==c.override&&tr.throwError("Contract with a Signer cannot override from",W.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=xh(t.provider,n.from));const i=yield er({args:bd(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:er(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=ae.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=ae.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=ae.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=ae.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=ae.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=Vl(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=ce(s);for(let u=0;un[c]!=null);return l.length&&tr.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,W.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function IH(t,e){return function(...r){return S0(t,e,r)}}function _H(t,e){const r=t.signer||t.provider;return function(...n){return aa(this,void 0,void 0,function*(){r||tr.throwError("estimate require a provider or signer",W.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield S0(t,e,n);return yield r.estimateGas(i)})}}function OH(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=ia(s),a=null;try{a=t.interface.parseLog(s)}catch{}return a&&(o.args=a.args,o.decode=(l,c)=>t.interface.decodeEventLog(a.eventFragment,l,c),o.event=a.name,o.eventSignature=a.signature),o.removeListener=()=>t.provider,o.getBlock=()=>t.provider.getBlock(i.blockHash),o.getTransaction=()=>t.provider.getTransaction(i.transactionHash),o.getTransactionReceipt=()=>Promise.resolve(i),o}),i))}function s9(t,e,r){const n=t.signer||t.provider;return function(...i){return aa(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=mr(i.pop());l.blockTag!=null&&(s=yield l.blockTag),delete l.blockTag,i.push(l)}t.deployTransaction!=null&&(yield t._deployed(s));const o=yield S0(t,e,i),a=yield n.call(o,s);try{let l=t.interface.decodeFunctionResult(e,a);return r&&e.outputs.length===1&&(l=l[0]),l}catch(l){throw l.code===W.errors.CALL_EXCEPTION&&(l.address=t.address,l.args=i,l.transaction=o),l}})}}function NH(t,e){return function(...r){return aa(this,void 0,void 0,function*(){t.signer||tr.throwError("sending a transaction requires a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield S0(t,e,r),i=yield t.signer.sendTransaction(n);return OH(t,i),i})}}function dE(t,e,r){return e.constant?s9(t,e,r):NH(t,e)}function o9(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class If{constructor(e,r){ne(this,"tag",e),ne(this,"filter",r),this._listeners=[]}addListener(e,r){this._listeners.push({listener:e,once:r})}removeListener(e){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==e?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=e.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(e){}getEmit(e){return[e]}}class DH extends If{constructor(){super("error",null)}}class hE extends If{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&tr.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(o9(s),s),ne(this,"address",e),ne(this,"interface",r),ne(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}getEmit(e){const r=yz(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class vE extends If{constructor(e,r){super("*",{address:e}),ne(this,"address",e),ne(this,"interface",r)}prepareEvent(e){super.prepareEvent(e);try{const r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),e.args=r.args}catch{}}}class LH{constructor(e,r,n){ne(this,"interface",Ni(new.target,"getInterface")(r)),n==null?(ne(this,"provider",null),ne(this,"signer",null)):Bl.isSigner(n)?(ne(this,"provider",n.provider||null),ne(this,"signer",n)):nu.isProvider(n)?(ne(this,"provider",n),ne(this,"signer",null)):tr.throwArgumentError("invalid signer or provider","signerOrProvider",n),ne(this,"callStatic",{}),ne(this,"estimateGas",{}),ne(this,"functions",{}),ne(this,"populateTransaction",{}),ne(this,"filters",{});{const o={};Object.keys(this.interface.events).forEach(a=>{const l=this.interface.events[a];ne(this.filters,a,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(l,c)})),o[l.name]||(o[l.name]=[]),o[l.name].push(a)}),Object.keys(o).forEach(a=>{const l=o[a];l.length===1?ne(this.filters,a,this.filters[l[0]]):tr.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(ne(this,"_runningEvents",{}),ne(this,"_wrappedEmits",{}),e==null&&tr.throwArgumentError("invalid contract address or ENS name","addressOrName",e),ne(this,"address",e),this.provider)ne(this,"resolvedAddress",xh(this.provider,e));else try{ne(this,"resolvedAddress",Promise.resolve(Ut(e)))}catch{tr.throwError("provider is required to use ENS name as contract address",W.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(o=>{});const i={},s={};Object.keys(this.interface.functions).forEach(o=>{const a=this.interface.functions[o];if(s[o]){tr.warn(`Duplicate ABI entry for ${JSON.stringify(o)}`);return}s[o]=!0;{const l=a.name;i[`%${l}`]||(i[`%${l}`]=[]),i[`%${l}`].push(o)}this[o]==null&&ne(this,o,dE(this,a,!0)),this.functions[o]==null&&ne(this.functions,o,dE(this,a,!1)),this.callStatic[o]==null&&ne(this.callStatic,o,s9(this,a,!0)),this.populateTransaction[o]==null&&ne(this.populateTransaction,o,IH(this,a)),this.estimateGas[o]==null&&ne(this.estimateGas,o,_H(this,a))}),Object.keys(i).forEach(o=>{const a=i[o];if(a.length>1)return;o=o.substring(1);const l=a[0];try{this[o]==null&&ne(this,o,this[l])}catch{}this.functions[o]==null&&ne(this.functions,o,this.functions[l]),this.callStatic[o]==null&&ne(this.callStatic,o,this.callStatic[l]),this.populateTransaction[o]==null&&ne(this.populateTransaction,o,this.populateTransaction[l]),this.estimateGas[o]==null&&ne(this.estimateGas,o,this.estimateGas[l])})}static getContractAddress(e){return u7(e)}static getInterface(e){return iE.isInterface(e)?e:new iE(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(r=>(r==="0x"&&tr.throwError("contract not deployed",W.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||tr.throwError("sending a transactions require a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=mr(e||{});return["from","to"].forEach(function(n){r[n]!=null&&tr.throwError("cannot override "+n,W.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new Dg(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&ne(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Xy.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new DH);if(e==="event")return this._normalizeRunningEvent(new If("event",null));if(e==="*")return this._normalizeRunningEvent(new vE(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new hE(this.address,this.interface,r))}if(e.topics&&e.topics.length>0){try{const n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new hE(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new If(o9(r),r))}return this._normalizeRunningEvent(new vE(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const r=this._wrappedEmits[e.tag];r&&e.filter&&(this.provider.off(e.filter,r),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,r,n){const i=ia(r);return i.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),e.prepareEvent(i),i}_addEventListener(e,r,n){if(this.provider||tr.throwError("events require a provider or a signer with a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(r,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const i=s=>{let o=this._wrapEvent(e,s,r);if(o.decodeError==null)try{const a=e.getEmit(o);this.emit(e.filter,...a)}catch(a){o.decodeError=a.error}e.filter!=null&&this.emit("event",o),o.decodeError!=null&&this.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}}queryFilter(e,r,n){const i=this._getRunningEvent(e),s=mr(i.filter);return typeof r=="string"&&He(r,32)?(n!=null&&tr.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=r):(s.fromBlock=r??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(o=>o.map(a=>this._wrapEvent(i,a,null)))}on(e,r){return this._addEventListener(this._getRunningEvent(e),r,!1),this}once(e,r){return this._addEventListener(this._getRunningEvent(e),r,!0),this}emit(e,...r){if(!this.provider)return!1;const n=this._getRunningEvent(e),i=n.run(r)>0;return this._checkRunningEvents(n),i}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(e,r){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(e,r){return this.off(e,r)}}class jH extends LH{}class a9{constructor(e){ne(this,"alphabet",e),ne(this,"base",e.length),ne(this,"_alphabetMap",{}),ne(this,"_leader",e.charAt(0));for(let r=0;r0;)n.push(o%this.base),o=o/this.base|0}let i="";for(let s=0;r[s]===0&&s=0;--s)i+=this.alphabet[n[s]];return i}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;s>0;)r.push(s&255),s>>=8}for(let n=0;e[n]===this._leader&&n>24&255,l[e.length+1]=u>>16&255,l[e.length+2]=u>>8&255,l[e.length+3]=u&255;let d=ce(bh(i,t,l));s||(s=d.length,f=new Uint8Array(s),o=Math.ceil(n/s),c=n-(o-1)*s),f.set(d);for(let y=1;y=256)throw new Error("Depth too large!");return pE(ir([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",fe(this.depth),this.parentFingerprint,kt(fe(this.index),4),this.chainCode,this.privateKey!=null?ir(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new jn(Sa,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let r=this.path;r&&(r+="/"+(e&~fc));const n=new Uint8Array(37);if(e&fc){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(ce(this.privateKey),1),r&&(r+="'")}else n.set(ce(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=ce(bh(Of.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=Uu(ae.from(s).add(this.privateKey).mod(WH)):l=new sl(fe(s))._addPoint(this.publicKey);let c=r;const f=this.mnemonic;return f&&(c=Object.freeze({phrase:f.phrase,path:r,locale:f.locale||"en"})),new jn(Sa,a,l,this.fingerprint,Uu(o),e,this.depth+1,c)}derivePath(e){const r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=fc)throw new Error("invalid path index - "+s);n=n._derive(fc+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=fc)throw new Error("invalid path index - "+s);n=n._derive(o)}else throw new Error("invalid path component - "+s)}return n}static _fromSeed(e,r){const n=ce(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=ce(bh(Of.sha512,GH,n));return new jn(Sa,Uu(i.slice(0,32)),null,"0x00000000",Uu(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=Ug(n),e=zg(f9(e,n),n),jn._fromSeed(QH(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return jn._fromSeed(e,null)}static fromExtendedKey(e){const r=_f.decode(e);(r.length!==82||pE(r.slice(0,78))!==e)&&wh.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=fe(r.slice(5,9)),s=parseInt(fe(r.slice(9,13)).substring(2),16),o=fe(r.slice(13,45)),a=r.slice(45,78);switch(fe(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new jn(Sa,null,fe(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new jn(Sa,fe(a.slice(1)),null,i,o,s,n,null)}return wh.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function QH(t,e){e||(e="");const r=sr("mnemonic"+e,vo.NFKD);return Fg(sr(t,vo.NFKD),r,2048,64,"sha512")}function f9(t,e){e=Ug(e),wh.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=ce(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const s=32*r.length/3,o=r.length/3,a=c9(o);if((ce(la(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return fe(n.slice(0,s/8))}function zg(t,e){if(e=Ug(e),t=ce(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&KH(8-n)),n+=3);const i=t.length/4,s=ce(la(t))[0]&c9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}const YH="random/5.7.0",sp=new W(YH);function JH(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const mE=JH();let wd=mE.crypto||mE.msCrypto;(!wd||!wd.getRandomValues)&&(sp.warn("WARNING: Missing strong random number source"),wd={getRandomValues:function(t){return sp.throwError("no secure random source avaialble",W.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function _c(t){(t<=0||t>1024||t%1||t!=t)&&sp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return wd.getRandomValues(e),ce(e)}var u9={exports:{}};(function(t,e){(function(r){function n(C){return parseInt(C)===C}function i(C){if(!n(C.length))return!1;for(var m=0;m255)return!1;return!0}function s(C,m){if(C.buffer&&ArrayBuffer.isView(C)&&C.name==="Uint8Array")return m&&(C.slice?C=C.slice():C=Array.prototype.slice.call(C)),C;if(Array.isArray(C)){if(!i(C))throw new Error("Array contains invalid value: "+C);return new Uint8Array(C)}if(n(C.length)&&i(C))return new Uint8Array(C);throw new Error("unsupported array-like object")}function o(C){return new Uint8Array(C)}function a(C,m,T,F,E){(F!=null||E!=null)&&(C.slice?C=C.slice(F,E):C=Array.prototype.slice.call(C,F,E)),m.set(C,T)}var l=function(){function C(T){var F=[],E=0;for(T=encodeURI(T);E191&&$<224?(F.push(String.fromCharCode(($&31)<<6|T[E+1]&63)),E+=2):(F.push(String.fromCharCode(($&15)<<12|(T[E+1]&63)<<6|T[E+2]&63)),E+=3)}return F.join("")}return{toBytes:C,fromBytes:m}}(),c=function(){function C(F){for(var E=[],$=0;$>4]+m[V&15])}return E.join("")}return{toBytes:C,fromBytes:T}}(),f={16:10,24:12,32:14},u=[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],d=[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],v=[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],g=[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],y=[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],w=[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],x=[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],b=[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],A=[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],P=[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],_=[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],D=[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],M=[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],L=[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],z=[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 H(C){for(var m=[],T=0;T>2,this._Ke[$][m%4]=E[m],this._Kd[C-$][m%4]=E[m];for(var V=0,q=F,K;q>16&255]<<24^d[K>>8&255]<<16^d[K&255]<<8^d[K>>24&255]^u[V]<<24,V+=1,F!=8)for(var m=1;m>8&255]<<8^d[K>>16&255]<<16^d[K>>24&255]<<24;for(var m=F/2+1;m>2,te=q%4,this._Ke[oe][te]=E[m],this._Kd[C-oe][te]=E[m++],q++}for(var oe=1;oe>24&255]^M[K>>16&255]^L[K>>8&255]^z[K&255]},Y.prototype.encrypt=function(C){if(C.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var m=this._Ke.length-1,T=[0,0,0,0],F=H(C),E=0;E<4;E++)F[E]^=this._Ke[0][E];for(var $=1;$>24&255]^y[F[(E+1)%4]>>16&255]^w[F[(E+2)%4]>>8&255]^x[F[(E+3)%4]&255]^this._Ke[$][E];F=T.slice()}for(var V=o(16),q,E=0;E<4;E++)q=this._Ke[m][E],V[4*E]=(d[F[E]>>24&255]^q>>24)&255,V[4*E+1]=(d[F[(E+1)%4]>>16&255]^q>>16)&255,V[4*E+2]=(d[F[(E+2)%4]>>8&255]^q>>8)&255,V[4*E+3]=(d[F[(E+3)%4]&255]^q)&255;return V},Y.prototype.decrypt=function(C){if(C.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var m=this._Kd.length-1,T=[0,0,0,0],F=H(C),E=0;E<4;E++)F[E]^=this._Kd[0][E];for(var $=1;$>24&255]^A[F[(E+3)%4]>>16&255]^P[F[(E+2)%4]>>8&255]^_[F[(E+1)%4]&255]^this._Kd[$][E];F=T.slice()}for(var V=o(16),q,E=0;E<4;E++)q=this._Kd[m][E],V[4*E]=(v[F[E]>>24&255]^q>>24)&255,V[4*E+1]=(v[F[(E+3)%4]>>16&255]^q>>16)&255,V[4*E+2]=(v[F[(E+2)%4]>>8&255]^q>>8)&255,V[4*E+3]=(v[F[(E+1)%4]&255]^q)&255;return V};var Z=function(C){if(!(this instanceof Z))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Y(C)};Z.prototype.encrypt=function(C){if(C=s(C),C.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var m=o(C.length),T=o(16),F=0;F=0;--m)this._counter[m]=C%256,C=C>>8},k.prototype.setBytes=function(C){if(C=s(C,!0),C.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=C},k.prototype.increment=function(){for(var C=15;C>=0;C--)if(this._counter[C]===255)this._counter[C]=0;else{this._counter[C]++;break}};var I=function(C,m){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",m instanceof k||(m=new k(m)),this._counter=m,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Y(C)};I.prototype.encrypt=function(C){for(var m=s(C,!0),T=0;T16)throw new Error("PKCS#7 padding byte out of range");for(var T=C.length-m,F=0;F=64;){let B=x,C=b,m=A,T=P,F=_,E=D,$=M,V=L,q,K,oe,te,re;for(K=0;K<16;K++)oe=R+K*4,z[K]=(I[oe]&255)<<24|(I[oe+1]&255)<<16|(I[oe+2]&255)<<8|I[oe+3]&255;for(K=16;K<64;K++)q=z[K-2],te=(q>>>17|q<<32-17)^(q>>>19|q<<32-19)^q>>>10,q=z[K-15],re=(q>>>7|q<<32-7)^(q>>>18|q<<32-18)^q>>>3,z[K]=(te+z[K-7]|0)+(re+z[K-16]|0)|0;for(K=0;K<64;K++)te=(((F>>>6|F<<32-6)^(F>>>11|F<<32-11)^(F>>>25|F<<32-25))+(F&E^~F&$)|0)+(V+(w[K]+z[K]|0)|0)|0,re=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&C^B&m^C&m)|0,V=$,$=E,E=F,F=T+te|0,T=m,m=C,C=B,B=te+re|0;x=x+B|0,b=b+C|0,A=A+m|0,P=P+T|0,_=_+F|0,D=D+E|0,M=M+$|0,L=L+V|0,R+=64,N-=64}}H(y);let Y,Z=y.length%64,O=y.length/536870912|0,h=y.length<<3,S=Z<56?56:120,k=y.slice(y.length-Z,y.length);for(k.push(128),Y=Z+1;Y>>24&255),k.push(O>>>16&255),k.push(O>>>8&255),k.push(O>>>0&255),k.push(h>>>24&255),k.push(h>>>16&255),k.push(h>>>8&255),k.push(h>>>0&255),H(k),[x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,M>>>24&255,M>>>16&255,M>>>8&255,M>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255]}function s(y,w,x){y=y.length<=64?y:i(y);const b=64+w.length+4,A=new Array(b),P=new Array(64);let _,D=[];for(_=0;_<64;_++)A[_]=54;for(_=0;_=b-4;L--){if(A[L]++,A[L]<=255)return;A[L]=0}}for(;x>=32;)M(),D=D.concat(i(P.concat(i(A)))),x-=32;return x>0&&(M(),D=D.concat(i(P.concat(i(A))).slice(0,x))),D}function o(y,w,x,b,A){let P;for(f(y,(2*x-1)*16,A,0,16),P=0;P<2*x;P++)c(y,P*16,A,16),l(A,b),f(A,0,y,w+P*16,16);for(P=0;P>>32-w}function l(y,w){f(y,0,w,0,16);for(let x=8;x>0;x-=2)w[4]^=a(w[0]+w[12],7),w[8]^=a(w[4]+w[0],9),w[12]^=a(w[8]+w[4],13),w[0]^=a(w[12]+w[8],18),w[9]^=a(w[5]+w[1],7),w[13]^=a(w[9]+w[5],9),w[1]^=a(w[13]+w[9],13),w[5]^=a(w[1]+w[13],18),w[14]^=a(w[10]+w[6],7),w[2]^=a(w[14]+w[10],9),w[6]^=a(w[2]+w[14],13),w[10]^=a(w[6]+w[2],18),w[3]^=a(w[15]+w[11],7),w[7]^=a(w[3]+w[15],9),w[11]^=a(w[7]+w[3],13),w[15]^=a(w[11]+w[7],18),w[1]^=a(w[0]+w[3],7),w[2]^=a(w[1]+w[0],9),w[3]^=a(w[2]+w[1],13),w[0]^=a(w[3]+w[2],18),w[6]^=a(w[5]+w[4],7),w[7]^=a(w[6]+w[5],9),w[4]^=a(w[7]+w[6],13),w[5]^=a(w[4]+w[7],18),w[11]^=a(w[10]+w[9],7),w[8]^=a(w[11]+w[10],9),w[9]^=a(w[8]+w[11],13),w[10]^=a(w[9]+w[8],18),w[12]^=a(w[15]+w[14],7),w[13]^=a(w[12]+w[15],9),w[14]^=a(w[13]+w[12],13),w[15]^=a(w[14]+w[13],18);for(let x=0;x<16;++x)y[x]+=w[x]}function c(y,w,x,b){for(let A=0;A=256)return!1}return!0}function d(y,w){if(typeof y!="number"||y%1)throw new Error("invalid "+w);return y}function v(y,w,x,b,A,P,_){if(x=d(x,"N"),b=d(b,"r"),A=d(A,"p"),P=d(P,"dkLen"),x===0||x&x-1)throw new Error("N must be power of 2");if(x>2147483647/128/b)throw new Error("N too large");if(b>2147483647/128/A)throw new Error("r too large");if(!u(y))throw new Error("password must be an array or buffer");if(y=Array.prototype.slice.call(y),!u(w))throw new Error("salt must be an array or buffer");w=Array.prototype.slice.call(w);let D=s(y,w,A*128*b);const M=new Uint32Array(A*32*b);for(let F=0;FC&&(F=C);for(let $=0;$C&&(F=C);for(let $=0;$>0&255),D.push(M[$]>>8&255),D.push(M[$]>>16&255),D.push(M[$]>>24&255);const E=s(y,D,P);return _&&_(null,1,E),E}_&&m(T)};if(!_)for(;;){const F=T();if(F!=null)return F}T()}const g={scrypt:function(y,w,x,b,A,P,_){return new Promise(function(D,M){let L=0;_&&_(0),v(y,w,x,b,A,P,function(z,H,Y){if(z)M(z);else if(Y)_&&L!==1&&_(1),D(new Uint8Array(Y));else if(_&&H!==L)return L=H,_(H)})})},syncScrypt:function(y,w,x,b,A,P){return new Uint8Array(v(y,w,x,b,A,P))}};t.exports=g})()})(p9);var rW=p9.exports;const qg=Ss(rW);var nW=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const op=new W(d9);function gE(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class iW extends ya{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function sW(t,e,r){if(rr(t,"crypto/cipher")==="aes-128-ctr"){const i=Go(rr(t,"crypto/cipherparams/iv")),s=new Di.Counter(i),o=new Di.ModeOfOperation.ctr(e,s);return ce(o.decrypt(r))}return null}function m9(t,e){const r=Go(rr(t,"crypto/ciphertext"));if(fe(Et(ir([e.slice(16,32),r]))).substring(2)!==rr(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=sW(t,e.slice(0,16),r);i||op.throwError("unsupported cipher",W.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=Wo(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Ut(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:fe(i)};if(rr(t,"x-ethers/version")==="0.1"){const l=Go(rr(t,"x-ethers/mnemonicCiphertext")),c=Go(rr(t,"x-ethers/mnemonicCounter")),f=new Di.Counter(c),u=new Di.ModeOfOperation.ctr(s,f),d=rr(t,"x-ethers/path")||Nf,v=rr(t,"x-ethers/locale")||"en",g=ce(u.decrypt(l));try{const y=zg(g,v),w=jn.fromMnemonic(y,null,v).derivePath(d);if(w.privateKey!=a.privateKey)throw new Error("mnemonic mismatch");a.mnemonic=w.mnemonic}catch(y){if(y.code!==W.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new iW(a)}function g9(t,e,r,n,i){return ce(Fg(t,e,r,n,i))}function oW(t,e,r,n,i){return Promise.resolve(g9(t,e,r,n,i))}function x9(t,e,r,n,i){const s=Vg(e),o=rr(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return op.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=Go(rr(t,"crypto/kdfparams/salt")),c=parseInt(rr(t,"crypto/kdfparams/n")),f=parseInt(rr(t,"crypto/kdfparams/r")),u=parseInt(rr(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(rr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),n(s,l,c,f,u,64,i)}else if(o.toLowerCase()==="pbkdf2"){const l=Go(rr(t,"crypto/kdfparams/salt"));let c=null;const f=rr(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(rr(t,"crypto/kdfparams/c")),d=parseInt(rr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return op.throwArgumentError("unsupported key-derivation function","kdf",o)}function aW(t,e){const r=JSON.parse(t),n=x9(r,e,g9,qg.syncScrypt);return m9(r,n)}function lW(t,e,r){return nW(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield x9(n,e,oW,qg.scrypt,r);return m9(n,i)})}function cW(t,e,r,n){try{if(Ut(t.address)!==Wo(t.privateKey))throw new Error("address/privateKey mismatch");if(gE(t)){const w=t.mnemonic;if(jn.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Nf).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(w){return Promise.reject(w)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=ce(t.privateKey),s=Vg(e);let o=null,a=null,l=null;if(gE(t)){const w=t.mnemonic;o=ce(f9(w.phrase,w.locale||"en")),a=w.path||Nf,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=ce(r.salt):f=_c(32);let u=null;if(r.iv){if(u=ce(r.iv),u.length!==16)throw new Error("invalid iv")}else u=_c(16);let d=null;if(r.uuid){if(d=ce(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=_c(16);let v=1<<17,g=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(g=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),qg.scrypt(s,f,v,g,y,64,n).then(w=>{w=ce(w);const x=w.slice(0,16),b=w.slice(16,32),A=w.slice(32,64),P=new Di.Counter(u),_=new Di.ModeOfOperation.ctr(x,P),D=ce(_.encrypt(i)),M=Et(ir([b,D])),L={address:t.address.substring(2).toLowerCase(),id:ZH(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:fe(u).substring(2)},ciphertext:fe(D).substring(2),kdf:"scrypt",kdfparams:{salt:fe(f).substring(2),n:v,dklen:32,p:y,r:g},mac:M.substring(2)}};if(o){const z=_c(16),H=new Di.Counter(z),Y=new Di.ModeOfOperation.ctr(A,H),Z=ce(Y.encrypt(o)),O=new Date,h=O.getUTCFullYear()+"-"+uc(O.getUTCMonth()+1,2)+"-"+uc(O.getUTCDate(),2)+"T"+uc(O.getUTCHours(),2)+"-"+uc(O.getUTCMinutes(),2)+"-"+uc(O.getUTCSeconds(),2)+".0Z";L["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+L.address,mnemonicCounter:fe(z).substring(2),mnemonicCiphertext:fe(Z).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(L)})}function fW(t,e,r){if(v9(t)){r&&r(0);const n=h9(t,e);return r&&r(1),Promise.resolve(n)}return y9(t)?lW(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function uW(t,e){if(v9(t))return h9(t,e);if(y9(t))return aW(t,e);throw new Error("invalid JSON wallet")}const dW="wallet/5.7.0";var xE=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Ca=new W(dW);function hW(t){return t!=null&&He(t.privateKey,32)&&t.address!=null}function vW(t){const e=t.mnemonic;return e&&e.phrase}class ss extends Bl{constructor(e,r){if(super(),hW(e)){const n=new sl(e.privateKey);if(ne(this,"_signingKey",()=>n),ne(this,"address",Wo(this.publicKey)),this.address!==Ut(e.address)&&Ca.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),vW(e)){const i=e.mnemonic;ne(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Nf,locale:i.locale||"en"}));const s=this.mnemonic,o=jn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);Wo(o.privateKey)!==this.address&&Ca.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else ne(this,"_mnemonic",()=>null)}else{if(sl.isSigningKey(e))e.curve!=="secp256k1"&&Ca.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),ne(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new sl(e);ne(this,"_signingKey",()=>n)}ne(this,"_mnemonic",()=>null),ne(this,"address",Wo(this.publicKey))}r&&!nu.isProvider(r)&&Ca.throwArgumentError("invalid provider","provider",r),ne(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new ss(this,e)}signTransaction(e){return er(e).then(r=>{r.from!=null&&(Ut(r.from)!==this.address&&Ca.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(Et(uE(r)));return uE(r,n)})}signMessage(e){return xE(this,void 0,void 0,function*(){return $3(this._signingKey().signDigest(gV(e)))})}_signTypedData(e,r,n){return xE(this,void 0,void 0,function*(){const i=yield Kr.resolveNames(e,r,n,s=>(this.provider==null&&Ca.throwError("cannot resolve ENS names without a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return $3(this._signingKey().signDigest(Kr.hash(i.domain,r,i.value)))})}encrypt(e,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),cW(this,e,r,n)}static createRandom(e){let r=_c(16);e||(e={}),e.extraEntropy&&(r=ce(yr(Et(ir([r,e.extraEntropy])),0,16)));const n=zg(r,e.locale);return ss.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return fW(e,r,n).then(i=>new ss(i))}static fromEncryptedJsonSync(e,r){return new ss(uW(e,r))}static fromMnemonic(e,r,n){return r||(r=Nf),new ss(jn.fromMnemonic(e,null,n).derivePath(r))}}const yW="networks/5.7.1",bE=new W(yW);function pW(t){return t&&typeof t.renetwork=="function"}function ns(t){const e=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider&&n.infura!=="-")try{i.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{i.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{i.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const s=["goerli","ropsten","rinkeby","sepolia"];try{const o=new r.PocketProvider(t,n.pocket);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{i.push(new r.CloudflareProvider(t))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const s=["ropsten"],o=new r.AnkrProvider(t,n.ankr);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}if(i.length===0)return null;if(r.FallbackProvider){let s=1;return n.quorum!=null?s=n.quorum:t==="homestead"&&(s=2),new r.FallbackProvider(i,s)}return i[0]};return e.renetwork=function(r){return ns(r)},e}function Eh(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return Eh(t,n)},r}const wE={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ns("homestead")},EE={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ns("ropsten")},AE={chainId:63,name:"classicMordor",_defaultProvider:Eh("https://www.ethercluster.com/mordor","classicMordor")},zu={unspecified:{chainId:0,name:"unspecified"},homestead:wE,mainnet:wE,morden:{chainId:2,name:"morden"},ropsten:EE,testnet:EE,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ns("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ns("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ns("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ns("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Eh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:AE,classicTestnet:AE,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Eh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ns("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ns("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function mW(t){if(t==null)return null;if(typeof t=="number"){for(const n in zu){const i=zu[n];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=zu[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=zu[t.name];if(!e)return typeof t.chainId!="number"&&bE.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&bE.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(pW(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}const gW="web/5.7.1";var xW=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};function bW(t,e){return xW(this,void 0,void 0,function*(){e==null&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),e.fetchOptions!=null){const o=e.fetchOptions;o.mode&&(r.mode=o.mode),o.cache&&(r.cache=o.cache),o.credentials&&(r.credentials=o.credentials),o.redirect&&(r.redirect=o.redirect),o.referrer&&(r.referrer=o.referrer)}const n=yield fetch(t,r),i=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((o,a)=>{s[a.toLowerCase()]=o}):n.headers.keys().forEach(o=>{s[o.toLowerCase()]=n.headers.get(o)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:ce(new Uint8Array(i))}})}var wW=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const ni=new W(gW);function SE(t){return new Promise(e=>{setTimeout(e,t)})}function _s(t,e){if(t==null)return null;if(typeof t=="string")return t;if(x0(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return ru(t)}catch{}return fe(t)}return t}function EW(t){return sr(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function AW(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;ni.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof t=="object"?t.throttleCallback:null,s=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;ni.assertArgument(s>0&&s%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",s);const o=typeof t=="object"?!!t.errorPassThrough:!1,a={};let l=null;const c={method:"GET"};let f=!1,u=2*60*1e3;if(typeof t=="string")l=t;else if(typeof t=="object"){if((t==null||t.url==null)&&ni.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(u=t.timeout),t.headers)for(const x in t.headers)a[x.toLowerCase()]={key:x,value:String(t.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&ni.throwError("basic authentication requires a secure https url",W.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const x=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+w7(sr(x))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=mr(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=l?l.match(d):null;if(v)try{const x={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?b7(v[3]):EW(v[3])};let b=x.body;return r&&(b=r(x.body,x)),Promise.resolve(b)}catch(x){ni.throwError("processing response error",W.errors.SERVER_ERROR,{body:_s(v[1],v[2]),error:x,requestBody:null,requestMethod:"GET",url:l})}e&&(c.method="POST",c.body=e,a["content-type"]==null&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),a["content-length"]==null&&(a["content-length"]={key:"Content-Length",value:String(e.length)}));const g={};Object.keys(a).forEach(x=>{const b=a[x];g[b.key]=b.value}),c.headers=g;const y=function(){let x=null;return{promise:new Promise(function(P,_){u&&(x=setTimeout(()=>{x!=null&&(x=null,_(ni.makeError("timeout",W.errors.TIMEOUT,{requestBody:_s(c.body,g["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){x!=null&&(clearTimeout(x),x=null)}}}(),w=function(){return wW(this,void 0,void 0,function*(){for(let x=0;x=300)&&(y.cancel(),ni.throwError("bad response",W.errors.SERVER_ERROR,{status:b.statusCode,headers:b.headers,body:_s(A,b.headers?b.headers["content-type"]:null),requestBody:_s(c.body,g["content-type"]),requestMethod:c.method,url:l})),r)try{const P=yield r(A,b);return y.cancel(),P}catch(P){if(P.throttleRetry&&x{let a=null;if(s!=null)try{a=JSON.parse(ru(s))}catch(l){ni.throwError("invalid JSON",W.errors.SERVER_ERROR,{body:s,error:l})}return r&&(a=r(a,o)),a},i=null;if(e!=null){i=sr(e);const s=typeof t=="string"?{url:t}:mr(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=mr(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return AW(t,i,n)}function Oc(t,e){return e||(e={}),e=mr(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let i=null,s=!1;const o=()=>s?!1:(s=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{o()&&n(new Error("timeout"))},e.timeout));const a=e.retryLimit;let l=0;function c(){return t().then(function(f){if(f!==void 0)o()&&r(f);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!s){if(l++,l>a){o()&&n(new Error("retry limit reached"));return}let u=e.interval*parseInt(String(Math.random()*Math.pow(2,l)));ue.ceiling&&(u=e.ceiling),setTimeout(c,u)}return null},function(f){o()&&n(f)})}c()})}var Ah="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ap={};for(var Vu=0;Vu>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function b9(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=ol(e)^n>>5}for(e=ol(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=b9(t);if(typeof n=="string")throw new Error(n);for(var i=t+"1",s=0;s>5)throw new Error("Non 5-bit word");n=ol(n)^o,i+=Ah.charAt(o)}for(s=0;s<6;++s)n=ol(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=Ah.charAt(a)}return i}function w9(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(i===-1)return"No separator character for "+t;if(i===0)return"Missing prefix for "+t;var s=t.slice(0,i),o=t.slice(i+1);if(o.length<6)return"Data too short";var a=b9(s);if(typeof a=="string")return a;for(var l=[],c=0;c=o.length)&&l.push(u)}return a!==1?"Invalid checksum for "+t:{prefix:s,words:l}}function CW(){var t=w9.apply(null,arguments);if(typeof t=="object")return t}function kW(t){var e=w9.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function C0(t,e,r,n){for(var i=0,s=0,o=(1<=r;)s-=r,a.push(i>>s&o);if(n)s>0&&a.push(i<=e)return"Excess padding";if(i<this.data(u,!0);return e.transaction={hash:o,type:c,accessList:be.allowNull(this.accessList.bind(this),null),blockHash:be.allowNull(o,null),blockNumber:be.allowNull(l,null),transactionIndex:be.allowNull(l,null),confirmations:be.allowNull(l,null),from:r,gasPrice:be.allowNull(n),maxPriorityFeePerGas:be.allowNull(n),maxFeePerGas:be.allowNull(n),gasLimit:n,to:be.allowNull(r,null),value:n,nonce:l,data:s,r:be.allowNull(this.uint256),s:be.allowNull(this.uint256),v:be.allowNull(l),creates:be.allowNull(r,null),raw:be.allowNull(s)},e.transactionRequest={from:be.allowNull(r),nonce:be.allowNull(l),gasLimit:be.allowNull(n),gasPrice:be.allowNull(n),maxPriorityFeePerGas:be.allowNull(n),maxFeePerGas:be.allowNull(n),to:be.allowNull(r),value:be.allowNull(n),data:be.allowNull(f),type:be.allowNull(l),accessList:be.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:be.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:be.allowNull(this.address,null),from:be.allowNull(this.address,null),contractAddress:be.allowNull(r,null),transactionIndex:l,root:be.allowNull(a),gasUsed:n,logsBloom:be.allowNull(s),blockHash:o,transactionHash:o,logs:be.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:be.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:be.allowNull(n),status:be.allowNull(l),type:c},e.block={hash:be.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:be.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:be.allowNull(r),extraData:s,transactions:be.allowNull(be.arrayOf(o)),baseFeePerGas:be.allowNull(n)},e.blockWithTransactions=mr(e.block),e.blockWithTransactions.transactions=be.allowNull(be.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:be.allowNull(i,void 0),toBlock:be.allowNull(i,void 0),blockHash:be.allowNull(o,void 0),address:be.allowNull(r,void 0),topics:be.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:be.allowNull(l),blockHash:be.allowNull(o),transactionIndex:l,removed:be.allowNull(this.boolean.bind(this)),address:r,data:be.allowFalsish(s,"0x"),topics:be.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return Vl(e||[])}number(e){return e==="0x"?0:ae.from(e).toNumber()}type(e){return e==="0x"||e==null?0:ae.from(e).toNumber()}bigNumber(e){return ae.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),He(e))?e.toLowerCase():dc.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return Ut(e)}callAddress(e){if(!He(e,32))return null;const r=Ut(yr(e,12));return r===Ng?null:r}contractAddress(e){return u7(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||He(e))return Tg(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return na(n)!==32?dc.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=ae.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!He(e))throw new Error("invalid uint256");return kt(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,i=be.check(r,e);return i._difficulty=n==null?null:ae.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return be.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&ae.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const r=be.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;He(n)&&(n=ae.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),He(n)&&(n=ae.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return TH(e)}receiptLog(e){return be.check(this.formats.receiptLog,e)}receipt(e){const r=be.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=ae.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&dc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):dc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&dc.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return be.check(this.formats.filter,e)}filterLog(e){return be.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const i in e)try{const s=e[i](r[i]);s!==void 0&&(n[i]=s)}catch(s){throw s.checkKey=i,s.checkValue=r[i],s}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(e(i))}),n}}}var Pe=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Le=new W(Wg),_W=10;function kE(t){return t==null?"null":(na(t)!==32&&Le.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function PE(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(i=>{r[kE(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return kE(e)}).join("&")}function OW(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function ka(t){if(typeof t=="string"){if(t=t.toLowerCase(),na(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+PE(t);if(OV.isForkEvent(t))throw Le.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+PE(t.topics||[])}throw new Error("invalid event - "+t)}function hc(){return new Date().getTime()}function RE(t){return new Promise(e=>{setTimeout(e,t)})}const NW=["block","network","pending","poll"];let DW=class{constructor(e,r,n){ne(this,"tag",e),ne(this,"listener",r),ne(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const r=e[1],n=OW(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||NW.indexOf(this.tag)>=0}};const LW={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Z1(t){return kt(ae.from(t).toHexString(),32)}function TE(t){return _f.encode(ir([t,yr(la(la(t)),0,4)]))}const E9=new RegExp("^(ipfs)://(.*)$","i"),ME=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),E9,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Ed(t,e){try{return ru(Df(t,e))}catch{}return null}function Df(t,e){if(t==="0x")return null;const r=ae.from(yr(t,e,e+32)).toNumber(),n=ae.from(yr(t,r,r+32)).toNumber();return yr(t,r+32,r+32+n)}function ev(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Le.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function IE(t){const e=ce(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function jW(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function A9(t){const e=[];let r=0;for(let n=0;nae.from(e).eq(1)).catch(e=>{if(e.code===W.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return Pe(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:rn([e,md(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=rn(["0x9061b923",A9([pV(this.name),n.data])]));try{let s=yield this.provider.call(n);return ce(s).length%32===4&&Le.throwError("resolver threw error",W.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=Df(s,0)),s}catch(s){if(s.code===W.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return Pe(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Df(n,0):null})}_getAddress(e,r){const n=LW[String(e)];if(n==null&&Le.throwError(`unsupported coin type: ${e}`,W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=ce(r);if(n.p2pkh!=null){const s=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return TE(ir([[n.p2pkh],"0x"+s[2]]))}}if(n.p2sh!=null){const s=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return TE(ir([[n.p2sh],"0x"+s[2]]))}}if(n.prefix!=null){const s=i[1];let o=i[0];if(o===0?s!==20&&s!==32&&(o=-1):o=-1,o>=0&&i.length===2+s&&s>=1&&s<=75){const a=CE.toWords(i.slice(2));return a.unshift(o),CE.encode(n.prefix,a)}}return null}getAddress(e){return Pe(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===Nz?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===W.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",Z1(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Le.throwError("invalid or unsupported coin data",W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Pe(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;no[l])}return Le.throwError("invalid or unsupported content hash data",W.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Pe(this,void 0,void 0,function*(){let r=sr(e);r=ir([Z1(64),Z1(r.length),r]),r.length%32!==0&&(r=ir([r,kt("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",fe(r));return n==null||n==="0x"?null:ru(n)})}}let tv=null,BW=1;class $W extends nu{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ne(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(r=>{}),this._ready().catch(r=>{});else{const r=Ni(new.target,"getNetwork")(e);r?(ne(this,"_network",r),this.emit("network",r,null)):Le.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Pe(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||Le.throwError("no network detected",W.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:ne(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return Oc(()=>this._ready().then(e=>e,e=>{if(!(e.code===W.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return tv==null&&(tv=new be),tv}static getNetwork(e){return mW(e??"homestead")}ccipReadFetch(e,r,n){return Pe(this,void 0,void 0,function*(){if(this.disableCcipRead||n.length===0)return null;const i=e.to.toLowerCase(),s=r.toLowerCase(),o=[];for(let a=0;a=0?null:JSON.stringify({data:s,sender:i}),u=yield Hg({url:c,errorPassThrough:!0},f,(v,g)=>(v.status=g.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Le.throwError(`response not found during CCIP fetch: ${d}`,W.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Le.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,W.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return Pe(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const s=yield i;if(hc()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=hc(),n=er({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:s})=>{if(s)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),s;const o=hc();return i=ae.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Pe(this,void 0,void 0,function*(){const e=BW++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Le.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Le.makeError("network block skew detected",W.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const s=this._emitted[i];s!=="pending"&&n-s>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const s=i.hash;let o=this.getTransactionReceipt(s).then(a=>(!a||a.blockNumber==null||(this._emitted["t:"+s]=a.blockNumber,this.emit(s,a)),null)).catch(a=>{this.emit("error",a)});r.push(o);break}case"filter":{if(!i._inflight){i._inflight=!0,i._lastBlockNumber===-2&&(i._lastBlockNumber=n-1);const s=i.filter;s.fromBlock=i._lastBlockNumber+1,s.toBlock=n;const o=s.toBlock-this._maxFilterBlockRange;o>s.fromBlock&&(s.fromBlock=o),s.fromBlock<0&&(s.fromBlock=0);const a=this.getLogs(s).then(l=>{i._inflight=!1,l.length!==0&&l.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(s,c)})}).catch(l=>{this.emit("error",l),i._inflight=!1});r.push(a)}break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Pe(this,void 0,void 0,function*(){return Le.throwError("provider does not support network detection",W.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Pe(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),yield RE(0),this._network;const n=Le.makeError("underlying network changed",W.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=hc();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return Pe(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return Pe(this,void 0,void 0,function*(){const s=yield this.getTransactionReceipt(e);return(s?s.confirmations:0)>=r?s:new Promise((o,a)=>{const l=[];let c=!1;const f=function(){return c?!0:(c=!0,l.forEach(d=>{d()}),!1)},u=d=>{d.confirmations{this.removeListener(e,u)}),i){let d=i.startBlock,v=null;const g=y=>Pe(this,void 0,void 0,function*(){c||(yield RE(1e3),this.getTransactionCount(i.from).then(w=>Pe(this,void 0,void 0,function*(){if(!c){if(w<=i.nonce)d=y;else{{const x=yield this.getTransaction(e);if(x&&x.blockNumber!=null)return}for(v==null&&(v=d-3,v{c||this.once("block",g)}))});if(c)return;this.once("block",g),l.push(()=>{this.removeListener("block",g)})}if(typeof n=="number"&&n>0){const d=setTimeout(()=>{f()||a(Le.makeError("timeout exceeded",W.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Pe(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return ae.from(e)}catch(r){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return ae.from(i)}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return ae.from(i).toNumber()}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return fe(i)}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>Tg(o))}),s=yield this.perform("getStorageAt",i);try{return fe(s)}catch(o){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&na(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Le.throwError("Transaction hash mismatch from Provider.sendTransaction.",W.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>Pe(this,void 0,void 0,function*(){s==null&&(s=1),o==null&&(o=0);let a;s!==0&&n!=null&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const l=yield this._waitForTransaction(e.hash,s,o,a);return l==null&&s===0?null:(this._emitted["t:"+e.hash]=l.blockNumber,l.status===0&&Le.throwError("transaction failed",W.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>fe(s)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const s=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,s,i)}catch(s){throw s.transaction=n,s.transactionHash=n.hash,s}})}_getTransactionRequest(e){return Pe(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?this._getAddress(s):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?ae.from(s):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?fe(s):null))}),this.formatter.transactionRequest(yield er(n))})}_getFilter(e){return Pe(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield er(r))})}_call(e,r,n){return Pe(this,void 0,void 0,function*(){n>=_W&&Le.throwError("CCIP read exceeded maximum redirections",W.errors.SERVER_ERROR,{redirects:n,transaction:e});const i=e.to,s=yield this.perform("call",{transaction:e,blockTag:r});if(n>=0&&r==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&na(s)%32===4)try{const o=yr(s,4),a=yr(o,0,32);ae.from(a).eq(i)||Le.throwError("CCIP Read sender did not match",W.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:s});const l=[],c=ae.from(yr(o,32,64)).toNumber(),f=ae.from(yr(o,c,c+32)).toNumber(),u=yr(o,c+32);for(let x=0;xPe(this,void 0,void 0,function*(){const s=yield this.perform("getBlock",i);if(s==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let o=null;for(let l=0;lthis._wrapTransaction(l)),a}return this.formatter.block(s)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Pe(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Oc(()=>Pe(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const i=this.formatter.transactionResponse(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return Pe(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Oc(()=>Pe(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return i}),{oncePoll:this})})}getLogs(e){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield er({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),be.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Pe(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Pe(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Le.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return Pe(this,void 0,void 0,function*(){let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const n=yield this._getResolver(r,"getResolver");if(n!=null){const i=new _E(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return Pe(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Le.throwError("network does not support ENS",W.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+md(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Pe(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(He(e))throw n}typeof e!="string"&&Le.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Pe(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"lookupAddress");if(n==null)return null;const i=Ed(yield this.call({to:n,data:"0x691f3431"+md(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Pe(this,void 0,void 0,function*(){let r=null;if(He(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new _E(this,o,s);try{const a=yield r.getAvatar();if(a)return a.url}catch(a){if(a.code!==W.errors.CALL_EXCEPTION)throw a}try{const a=Ed(yield this.call({to:o,data:"0x691f3431"+md(s).substring(2)}),0);r=yield this.getResolver(a)}catch(a){if(a.code!==W.errors.CALL_EXCEPTION)throw a;return null}}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return Le.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const i=new DW(ka(e),r,n);return this._events.push(i),this._startEvent(i),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,i=[],s=ka(e);return this._events=this._events.filter(o=>o.tag!==s?!0:(setTimeout(()=>{o.listener.apply(this,r)},0),n=!0,o.once?(i.push(o),!1):!0)),i.forEach(o=>{this._stopEvent(o)}),n}listenerCount(e){if(!e)return this._events.length;let r=ka(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=ka(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let i=!1,s=ka(e);return this._events=this._events.filter(o=>o.tag!==s||o.listener!=r||i?!0:(i=!0,n.push(o),!1)),n.forEach(o=>{this._stopEvent(o)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=ka(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var ts=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const ar=new W(Wg),FW=["call","estimateGas"];function Xc(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=He(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if(typeof t=="object"){for(const r in t){const n=Xc(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return Xc(JSON.parse(t),e)}catch{}return null}function S9(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=Xc(e,!0);if(s)return s.data;ar.throwError("missing revert data in call exception; Transaction reverted without a reason string",W.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let s=Xc(e.body,!1);s==null&&(s=Xc(e,!1)),s&&ar.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===W.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&ar.throwError("insufficient funds for intrinsic transaction cost",W.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&ar.throwError("nonce has already been used",W.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&ar.throwError("replacement fee too low",W.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&ar.throwError("legacy pre-eip-155 transactions not supported",W.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),FW.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&ar.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function OE(t){return new Promise(function(e){setTimeout(e,t)})}function UW(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function vc(t){return t&&t.toLowerCase()}const lp={};class C9 extends Bl{constructor(e,r,n){if(super(),e!==lp)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ne(this,"provider",r),n==null&&(n=0),typeof n=="string"?(ne(this,"_address",this.provider.formatter.address(n)),ne(this,"_index",null)):typeof n=="number"?(ne(this,"_index",n),ne(this,"_address",null)):ar.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return ar.throwError("cannot alter JSON-RPC Signer connection",W.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new zW(lp,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&ar.throwError("unknown account #"+this._index,W.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=mr(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=mr(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>ts(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&ar.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),er({tx:er(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&ar.throwArgumentError("from address mismatch","transaction",e):n.from=i;const s=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[s]).then(o=>o,o=>(typeof o.message=="string"&&o.message.match(/user denied/i)&&ar.throwError("user rejected transaction",W.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),S9("sendTransaction",o,s)))})}signTransaction(e){return ar.throwError("signing transactions is unsupported",W.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return ts(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield Oc(()=>ts(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(e){return ts(this,void 0,void 0,function*(){const r=typeof e=="string"?sr(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[fe(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&ar.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return ts(this,void 0,void 0,function*(){const r=typeof e=="string"?sr(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),fe(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&ar.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return ts(this,void 0,void 0,function*(){const i=yield Kr.resolveNames(e,r,n,o=>this.provider.resolveName(o)),s=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(Kr.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&ar.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:r,value:i.value}}),o}})}unlock(e){return ts(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class zW extends C9{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const VW={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let k9=class extends $W{constructor(e,r){let n=r;n==null&&(n=new Promise((i,s)=>{setTimeout(()=>{this.detectNetwork().then(o=>{i(o)},o=>{s(o)})},0)})),super(n),e||(e=Ni(this.constructor,"defaultUrl")()),typeof e=="string"?ne(this,"connection",Object.freeze({url:e})):ne(this,"connection",Object.freeze(mr(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return ts(this,void 0,void 0,function*(){yield OE(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=Ni(this.constructor,"getNetwork");try{return r(ae.from(e).toNumber())}catch(n){return ar.throwError("could not detect network",W.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return ar.throwError("could not detect network",W.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new C9(lp,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:ia(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=Hg(this.connection,JSON.stringify(n),UW).then(o=>(this.emit("debug",{action:"response",request:n,response:o,provider:this}),o),o=>{throw this.emit("debug",{action:"response",error:o,request:n,provider:this}),o});return i&&(this._cache[e]=s,setTimeout(()=>{this._cache[e]=null},0)),s}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[vc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[vc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[vc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[vc(r.address),kt(r.position,32),r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[Ni(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[Ni(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=vc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return ts(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&ae.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=mr(r),r.transaction=mr(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&ar.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return S9(e,i,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){e.send("eth_getFilterChanges",[n]).then(function(s){if(e._pendingFilter!=r)return null;let o=Promise.resolve();return s.forEach(function(a){e._emitted["t:"+a.toLowerCase()]="pending",o=o.then(function(){return e.getTransaction(a).then(function(l){return e.emit("pending",l),null})})}),o.then(function(){return OE(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(s=>{})}return i(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=mr(VW);if(r)for(const s in r)r[s]&&(n[s]=!0);n7(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=Tg(ae.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=fe(e[s]))}),e.accessList&&(i.accessList=Vl(e.accessList)),i}};const qW="units/5.7.0",HW=new W(qW),P9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Gg(t,e){if(typeof e=="string"){const r=P9.indexOf(e);r!==-1&&(e=3*r)}return yd(t,e??18)}function Lf(t,e){if(typeof t!="string"&&HW.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=P9.indexOf(e);r!==-1&&(e=3*r)}return Si(t,e??18)}function WW(t){return Gg(t,18)}function NE(t){return Lf(t,18)}function cp(){return cp=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const i=n.map(c=>c.chainId).sort(),s=i.filter((c,f)=>i.indexOf(c)!==f);if(s.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${s}`);return!1}n.forEach(c=>c.name=c.name.toLowerCase());const o=n.map(c=>c.name).sort(),a=o.filter((c,f)=>o.indexOf(c)!==f);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let l=!1;for(let c=0;c(KW(t,!0,e),t),YW=t=>QW(XW(t)),JW=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=ae.from(e).toNumber();return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(ae.isBigNumber(e)){const r=e.toNumber();return t.find(n=>n.chainId===r)}else return}},XW=t=>{if(!t)return[];const e=t.sort((n,i)=>n.chainId===i.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},Kg=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let i=e[n];return typeof i=="function"?i=i():i==null?i="":typeof i=="object"||typeof i=="symbol"?i=i.toString():i=i.valueOf(),i})):"",R9=t=>Kg("https://${network}-indexer.sequence.app",{network:t}),ZW=t=>Kg("https://${network}-relayer.sequence.app",{network:t}),eG=t=>Kg("https://nodes.sequence.app/${network}",{network:t});function DE(t){return JW(tG,t)}const bt=t=>{const e=eG(t);return{rpcUrl:e,relayer:{url:ZW(t),provider:{url:e}},indexerUrl:R9(t)}},tG=YW([rt({},st[X.POLYGON],bt("polygon"),{isDefaultChain:!0,isAuthChain:!0}),rt({},st[X.MAINNET],bt("mainnet")),rt({},st[X.BSC],bt("bsc")),rt({},st[X.AVALANCHE],bt("avalanche")),rt({},st[X.ARBITRUM],bt("arbitrum")),rt({},st[X.ARBITRUM_NOVA],bt("arbitrum-nova")),rt({},st[X.OPTIMISM],bt("optimism")),rt({},st[X.OPTIMISM_SEPOLIA],bt("optimism-sepolia")),rt({},st[X.POLYGON_ZKEVM],bt("polygon-zkevm")),rt({},st[X.GNOSIS],bt("gnosis")),rt({},st[X.RINKEBY],bt("rinkeby"),{disabled:!0}),rt({},st[X.GOERLI],bt("goerli"),{disabled:!0}),rt({},st[X.SEPOLIA],bt("sepolia")),rt({},st[X.POLYGON_MUMBAI],bt("mumbai"),{disabled:!0}),rt({},st[X.POLYGON_AMOY],bt("amoy")),rt({},st[X.BSC_TESTNET],bt("bsc-testnet")),rt({},st[X.ARBITRUM_SEPOLIA],bt("arbitrum-sepolia")),rt({},st[X.BASE],bt("base")),rt({},st[X.BASE_SEPOLIA],bt("base-sepolia")),rt({},st[X.HOMEVERSE],bt("homeverse")),rt({},st[X.HOMEVERSE_TESTNET],bt("homeverse-testnet")),rt({},st[X.XAI],bt("xai")),rt({},st[X.XAI_SEPOLIA],bt("xai-sepolia")),rt({},st[X.AVALANCHE_TESTNET],bt("avalanche-testnet")),rt({},st[X.ASTAR_ZKEVM],bt("astar-zkevm")),rt({},st[X.ASTAR_ZKYOTO],bt("astar-zkyoto")),rt({},st[X.XR_SEPOLIA],bt("xr-sepolia")),rt({},st[X.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),rt({},st[X.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]),LE=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function rv(){const e=ip.en,r=LE[Math.floor(Math.random()*LE.length)],n=e.getWord(Math.floor(Math.random()*2048)),i=e.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function rG({onSuccess:t}){const[e,r]=p.useState(""),[n,i]=p.useState(),[s,o]=p.useState(!1),[a,l]=p.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await nt.email.initiateAuth({email:u});l(d),r(u)}catch(d){console.error(d),i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const d=await nt.getSessionHash(),{idToken:v}=await nt.email.finalizeAuth({instance:a,answer:u,email:e,sessionHash:d});t(v)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function nG(){const[t,e]=p.useState(""),[r,n]=p.useState(void 0);return p.useEffect(()=>{const i=async()=>{try{e(await nt.getSessionHash())}catch(s){console.error(s),n(s)}};return i(),nt.onSessionStateChanged(i)},[e,n]),{sessionHash:t,error:r,loading:!!t}}function iG(){var P;const{sessionHash:t}=nG(),[e,r]=p.useState(""),n=p.useRef(null),i=(P=n.current)==null?void 0:P.validity.valid,[s,o]=p.useState(!1),[a,l]=p.useState([]),[c,f]=p.useState(!1),{theme:u,setTheme:d}=X8(),{inProgress:v,loading:g,initiateAuth:y,sendChallengeAnswer:w}=rG({onSuccess:async _=>{f(!0);const D=await nt.signIn({idToken:_},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")}});p.useEffect(()=>{(async()=>await nt.isSignedIn()&&Uo.navigate("/"))()},[]);const x=async _=>{const D=await nt.signIn({idToken:_.credential},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")},b="https://"+window.location.host+(window.location.host.includes("github.io")?"/demo-waas-auth":""),A=async _=>{const D=await nt.signIn({idToken:_.authorization.id_token},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")};return j.jsxs(ee,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[j.jsx(ee,{marginBottom:"16",children:j.jsx(NC,{})}),j.jsx(ee,{children:j.jsx(cr,{variant:"primary",label:"Change theme",onClick:()=>d(u==="dark"?"light":"dark")})}),j.jsx(ee,{children:j.jsx(Se,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),w?j.jsxs(ee,{flexDirection:"column",children:[j.jsx(ee,{marginTop:"6",children:j.jsx(Se,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),j.jsx(ee,{marginTop:"4",children:j.jsx(OC,{value:a,digits:6,onChange:l})}),j.jsx(ee,{gap:"2",marginY:"4",children:g||c?j.jsx(vi,{}):j.jsx(cr,{variant:"primary",disabled:a.includes(""),label:"Verify",onClick:()=>w(a.join("")),"data-id":"verifyButton"})})]}):j.jsxs(ee,{marginTop:"5",marginBottom:"4",children:[j.jsxs(Se,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",j.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),j.jsxs(ee,{marginTop:"6",children:[j.jsx(Pr,{name:"email",type:"email",onChange:_=>{r(_.target.value)},ref:n,onKeyDown:_=>{e&&_.key==="Enter"&&y(e)},onBlur:()=>o(!!e&&!i),value:e,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),s&&j.jsx(Se,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:g?j.jsx(vi,{}):j.jsx(cr,{variant:"primary",disabled:!i,label:"Continue",onClick:()=>y(e),"data-id":"continueButton"})})]}),j.jsx("hr",{}),!v&&!!t&&j.jsxs(j.Fragment,{children:[j.jsx(ee,{children:j.jsx(Se,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),j.jsx(pU,{onSuccess:x,shape:"circle",width:230,nonce:t},t),j.jsx(jU,{authOptions:{clientId:"com.horizon.sequence.waas",scope:"openid email",redirectURI:b,usePopup:!0,nonce:t},onError:_=>console.error(_),onSuccess:A,uiType:"dark"},t)]})]})}function sG(t){var e="";return r(t),e;function r(i){if(i===null||typeof i!="object"||i.toJSON!=null)e+=JSON.stringify(i);else if(Array.isArray(i)){e+="[";var s=!1;i.forEach(function(a){s&&(e+=","),s=!0,a===void 0&&(a=null),r(a)}),e+="]"}else{e+="{";var o=Object.keys(i).filter(function(a){return i[a]!==void 0}).sort();o.forEach(function(a,l){return n(i,a,l)}),e+="}"}}function n(i,s,o){o>0&&(e+=","),e+=JSON.stringify(s),e+=":",r(i[s])}}const oG=(t,e)=>e.some(r=>t instanceof r);let jE,BE;function aG(){return jE||(jE=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function lG(){return BE||(BE=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const T9=new WeakMap,fp=new WeakMap,M9=new WeakMap,nv=new WeakMap,Qg=new WeakMap;function cG(t){const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{r(io(t.result)),i()},o=()=>{n(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&T9.set(r,t)}).catch(()=>{}),Qg.set(e,t),e}function fG(t){if(fp.has(t))return;const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{r(),i()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});fp.set(t,e)}let up={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return fp.get(t);if(e==="objectStoreNames")return t.objectStoreNames||M9.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return io(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function uG(t){up=t(up)}function dG(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(iv(this),e,...r);return M9.set(n,e.sort?e.sort():[e]),io(n)}:lG().includes(t)?function(...e){return t.apply(iv(this),e),io(T9.get(this))}:function(...e){return io(t.apply(iv(this),e))}}function hG(t){return typeof t=="function"?dG(t):(t instanceof IDBTransaction&&fG(t),oG(t,aG())?new Proxy(t,up):t)}function io(t){if(t instanceof IDBRequest)return cG(t);if(nv.has(t))return nv.get(t);const e=hG(t);return e!==t&&(nv.set(t,e),Qg.set(e,t)),e}const iv=t=>Qg.get(t);function vG(t,e,{blocked:r,upgrade:n,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=io(o);return n&&o.addEventListener("upgradeneeded",l=>{n(io(o.result),l.oldVersion,l.newVersion,io(o.transaction),l)}),r&&o.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{s&&l.addEventListener("close",()=>s()),i&&l.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const yG=["get","getKey","getAll","getAllKeys","count"],pG=["put","add","delete","clear"],sv=new Map;function $E(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(sv.get(e))return sv.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,i=pG.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||yG.includes(r)))return;const s=async function(o,...a){const l=this.transaction(o,i?"readwrite":"readonly");let c=l.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),i&&l.done]))[0]};return sv.set(e,s),s}uG(t=>({...t,get:(e,r,n)=>$E(e,r)||t.get(e,r,n),has:(e,r)=>!!$E(e,r)||t.has(e,r)}));class Nc extends Error{}Nc.prototype.name="InvalidTokenError";function mG(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function gG(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return mG(e)}catch{return atob(e)}}function xG(t,e){if(typeof t!="string")throw new Nc("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Nc(`Invalid token specified: missing part #${r+1}`);let i;try{i=gG(n)}catch(s){throw new Nc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Nc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const bG=t=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},wG=t=>({httpHandler:t.httpHandler()});var FE;(function(t){t.HEADER="header",t.QUERY="query"})(FE||(FE={}));var UE;(function(t){t.HEADER="header",t.QUERY="query"})(UE||(UE={}));var jf;(function(t){t.HTTP="http",t.HTTPS="https"})(jf||(jf={}));var Sh;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Sh||(Sh={}));var zE;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(zE||(zE={}));const dp="__smithy_context";var VE;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(VE||(VE={}));var qE;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(qE||(qE={}));class Ki{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const e=new Ki({...this,headers:{...this.headers}});return e.query&&(e.query=EG(e.query)),e}}function EG(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Ch{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const AG=t=>e=>async r=>{if(!Ki.isInstance(r.request))return e(r);const{request:n}=r,{handlerProtocol:i=""}=t.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},SG={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},CG=t=>({applyToStack:e=>{e.add(AG(t),SG)}}),kG=()=>(t,e)=>async r=>{var n,i;try{const s=await t(r),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f,overrideOutputFilterSensitiveLog:u}=c,d=f??e.inputFilterSensitiveLog,v=u??e.outputFilterSensitiveLog,{$metadata:g,...y}=s.output;return(n=l==null?void 0:l.info)==null||n.call(l,{clientName:o,commandName:a,input:d(r.input),output:v(y),metadata:g}),s}catch(s){const{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f}=c,u=f??e.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:u(r.input),error:s,metadata:s.$metadata}),s}},PG={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},RG=t=>({applyToStack:e=>{e.add(kG(),PG)}}),HE="X-Amzn-Trace-Id",TG="AWS_LAMBDA_FUNCTION_NAME",MG="_X_AMZN_TRACE_ID",IG=t=>e=>async r=>{const{request:n}=r;if(!Ki.isInstance(n)||t.runtime!=="node"||n.headers.hasOwnProperty(HE))return e(r);const i=process.env[TG],s=process.env[MG],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[HE]=s),e({...r,request:n})},_G={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},OG=t=>({applyToStack:e=>{e.add(IG(t),_G)}});function NG(t){return{...t,customUserAgent:typeof t.customUserAgent=="string"?[[t.customUserAgent]]:t.customUserAgent}}const DG=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),I9=t=>DG.test(t)||t.startsWith("[")&&t.endsWith("]"),LG=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Yg=(t,e=!1)=>{if(!e)return LG.test(t);const r=t.split(".");for(const n of r)if(!Yg(n))return!1;return!0},kh={},Bf="endpoints";function po(t){return typeof t!="object"||t==null?t:"ref"in t?`$${po(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(po).join(", ")})`:JSON.stringify(t,null,2)}class Pn extends Error{constructor(e){super(e),this.name="EndpointError"}}const jG=(t,e)=>t===e,BG=t=>{const e=t.split("."),r=[];for(const n of e){const i=n.indexOf("[");if(i!==-1){if(n.indexOf("]")!==n.length-1)throw new Pn(`Path: '${t}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new Pn(`Invalid array index: '${s}' in path: '${t}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},_9=(t,e)=>BG(e).reduce((r,n)=>{if(typeof r!="object")throw new Pn(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),$G=t=>t!=null,FG=t=>!t,ov={[jf.HTTP]:80,[jf.HTTPS]:443},UG=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:v,protocol:g="",path:y="",query:w={}}=t,x=new URL(`${g}//${d}${v?`:${v}`:""}${y}`);return x.search=Object.entries(w).map(([b,A])=>`${b}=${A}`).join("&"),x}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=e;if(a)return null;const l=o.slice(0,-1);if(!Object.values(jf).includes(l))return null;const c=I9(i),f=r.includes(`${n}:${ov[l]}`)||typeof t=="string"&&t.includes(`${n}:${ov[l]}`),u=`${n}${f?`:${ov[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},zG=(t,e)=>t===e,VG=(t,e,r,n)=>e>=r||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),HG={booleanEquals:jG,getAttr:_9,isSet:$G,isValidHostLabel:Yg,not:FG,parseURL:UG,stringEquals:zG,substring:VG,uriEncode:qG},O9=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let i=0;for(;i({...e.endpointParams,...e.referenceRecord})[t],k0=(t,e,r)=>{if(typeof t=="string")return O9(t,r);if(t.fn)return N9(t,r);if(t.ref)return WG(t,r);throw new Pn(`'${e}': ${String(t)} is not a string, function or reference.`)},N9=({fn:t,argv:e},r)=>{const n=e.map(s=>["boolean","number"].includes(typeof s)?s:k0(s,"arg",r)),i=t.split(".");return i[0]in kh&&i[1]!=null?kh[i[0]][i[1]](...n):HG[t](...n)},GG=({assign:t,...e},r)=>{var i,s;if(t&&t in r.referenceRecord)throw new Pn(`'${t}' is already defined in Reference Record.`);const n=N9(e,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,`${Bf} evaluateCondition: ${po(e)} = ${po(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},Jg=(t=[],e)=>{var n,i;const r={};for(const s of t){const{result:o,toAssign:a}=GG(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!o)return{result:o};a&&(r[a.name]=a.value,(i=(n=e.logger)==null?void 0:n.debug)==null||i.call(n,`${Bf} assign: ${a.name} := ${po(a.value)}`))}return{result:!0,referenceRecord:r}},KG=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=k0(s,"Header value entry",e);if(typeof o!="string")throw new Pn(`Header '${n}' value '${o}' is not a string`);return o})}),{}),D9=(t,e)=>{if(Array.isArray(t))return t.map(r=>D9(r,e));switch(typeof t){case"string":return O9(t,e);case"object":if(t===null)throw new Pn(`Unexpected endpoint property: ${t}`);return L9(t,e);case"boolean":return t;default:throw new Pn(`Unexpected endpoint property type: ${typeof t}`)}},L9=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:D9(i,e)}),{}),QG=(t,e)=>{const r=k0(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new Pn(`Endpoint URL must be a string, got ${typeof r}`)},YG=(t,e)=>{var f,u;const{conditions:r,endpoint:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(!i)return;const o={...e,referenceRecord:{...e.referenceRecord,...s}},{url:a,properties:l,headers:c}=n;return(u=(f=e.logger)==null?void 0:f.debug)==null||u.call(f,`${Bf} Resolving endpoint from template: ${po(n)}`),{...c!=null&&{headers:KG(c,o)},...l!=null&&{properties:L9(l,o)},url:QG(a,o)}},JG=(t,e)=>{const{conditions:r,error:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(i)throw new Pn(k0(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...s}}))},XG=(t,e)=>{const{conditions:r,rules:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(i)return j9(n,{...e,referenceRecord:{...e.referenceRecord,...s}})},j9=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const n=YG(r,e);if(n)return n}else if(r.type==="error")JG(r,e);else if(r.type==="tree"){const n=XG(r,e);if(n)return n}else throw new Pn(`Unknown endpoint rule: ${r}`);throw new Pn("Rules evaluation failed")},ZG=(t,e)=>{var c,f,u,d,v;const{endpointParams:r,logger:n}=e,{parameters:i,rules:s}=t;(f=(c=e.logger)==null?void 0:c.debug)==null||f.call(c,`${Bf} Initial EndpointParams: ${po(r)}`);const o=Object.entries(i).filter(([,g])=>g.default!=null).map(([g,y])=>[g,y.default]);if(o.length>0)for(const[g,y]of o)r[g]=r[g]??y;const a=Object.entries(i).filter(([,g])=>g.required).map(([g])=>g);for(const g of a)if(r[g]==null)throw new Pn(`Missing required parameter: '${g}'`);const l=j9(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=e.endpointParams)!=null&&u.Endpoint)try{const g=new URL(e.endpointParams.Endpoint),{protocol:y,port:w}=g;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=e.logger)==null?void 0:d.debug)==null||v.call(d,`${Bf} Resolved endpoint: ${po(l)}`),l},B9=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!B9(r))return!1;return!0}return!(!Yg(t)||t.length<3||t.length>63||t!==t.toLowerCase()||I9(t))},eK=t=>{const e=t.split(":");if(e.length<6)return null;const[r,n,i,s,o,...a]=e;return r!=="arn"||n===""||i===""||a[0]===""?null:{partition:n,service:i,region:s,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},tK=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],rK="1.1",nK={partitions:tK,version:rK};let iK=nK;const sK=t=>{const{partitions:e}=iK;for(const n of e){const{regions:i,outputs:s}=n;for(const[o,a]of Object.entries(i))if(o===t)return{...s,...a}}for(const n of e){const{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(t))return{...s}}const r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},$9={isVirtualHostableS3Bucket:B9,parseArn:eK,partition:sK};kh.aws=$9;const WE="user-agent",av="x-amz-user-agent",GE=" ",lv="/",oK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,aK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,KE="-",lK=t=>(e,r)=>async n=>{var u,d;const{request:i}=n;if(!Ki.isInstance(i))return e(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(cv))||[],a=(await t.defaultUserAgentProvider()).map(cv),l=((d=t==null?void 0:t.customUserAgent)==null?void 0:d.map(cv))||[],c=[].concat([...a,...o,...l]).join(GE),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(GE);return t.runtime!=="browser"?(f&&(s[av]=s[av]?`${s[WE]} ${f}`:f),s[WE]=c):s[av]=c,e({...n,request:i})},cv=t=>{var o;const e=t[0].split(lv).map(a=>a.replace(oK,KE)).join(lv),r=(o=t[1])==null?void 0:o.replace(aK,KE),n=e.indexOf(lv),i=e.substring(0,n);let s=e.substring(n+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},cK={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},fK=t=>({applyToStack:e=>{e.add(lK(t),cK)}});var QE;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(QE||(QE={}));const uK=!1,dK=!1,P0=t=>t[dp]||(t[dp]={}),so=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},F9=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),YE=t=>F9(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,hK=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return{...t,region:async()=>{if(typeof e=="string")return YE(e);const n=await e();return YE(n)},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return F9(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}};function vK(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const yK=(t,e)=>(r,n)=>async i=>{var c;const s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,i.input)),o=vK(t.httpAuthSchemes),a=P0(n),l=[];for(const f of s){const u=o.get(f.schemeId);if(!u){l.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}const d=u.identityProvider(await e.identityProviderConfigProvider(t));if(!d){l.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:v={},signingProperties:g={}}=((c=f.propertiesExtractor)==null?void 0:c.call(f,t,n))||{};f.identityProperties=Object.assign(f.identityProperties||{},v),f.signingProperties=Object.assign(f.signingProperties||{},g),a.selectedHttpAuthScheme={httpAuthOption:f,identity:await d(f.identityProperties),signer:u.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(l.join(` -`));return r(i)},pK=async t=>{const e=(t==null?void 0:t.Bucket)||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),wK(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!bK(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},mK=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,gK=/(\d+\.){3}\d+/,xK=/\.\./,bK=t=>mK.test(t)&&!gK.test(t)&&!xK.test(t),wK=t=>{const[e,r,n,,,i]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,o=!!(s&&r&&n&&i);if(s&&!o)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return o},EK=(t,e,r)=>{const n=async()=>{const i=r[t]??r[e];return typeof i=="function"?i():i};return t==="credentialScope"||e==="CredentialScope"?async()=>{const i=typeof r.credentials=="function"?await r.credentials():r.credentials;return(i==null?void 0:i.credentialScope)??(i==null?void 0:i.CredentialScope)}:t==="endpoint"||e==="endpoint"?async()=>{const i=await n();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){const{protocol:s,hostname:o,port:a,path:l}=i;return`${s}//${o}${a?":"+a:""}${l}`}}return i}:n},AK=async t=>{};function SK(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in e?Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]:e[n]=i}return e}const Ph=t=>{if(typeof t=="string")return Ph(new URL(t));const{hostname:e,pathname:r,port:n,protocol:i,search:s}=t;let o;return s&&(o=SK(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}},U9=t=>typeof t=="object"?"url"in t?Ph(t.url):t:Ph(t),CK=async(t,e,r,n)=>{if(!r.endpoint){const o=await AK(r.serviceId||"");o&&(r.endpoint=()=>Promise.resolve(U9(o)))}const i=await kK(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},kK=async(t,e,r)=>{var s;const n={},i=((s=e==null?void 0:e.getEndpointParameterInstructions)==null?void 0:s.call(e))||{};for(const[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await EK(a.name,o,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await pK(n),n},PK=({config:t,instructions:e})=>(r,n)=>async i=>{var a,l,c;const s=await CK(i.input,{getEndpointParameterInstructions(){return e}},{...t},n);n.endpointV2=s,n.authSchemes=(a=s.properties)==null?void 0:a.authSchemes;const o=(l=n.authSchemes)==null?void 0:l[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const f=P0(n),u=(c=f==null?void 0:f.selectedHttpAuthScheme)==null?void 0:c.httpAuthOption;u&&(u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...i})},RK=(t,e)=>r=>async n=>{const{response:i}=await r(n);try{const s=await e(i,t);return{response:i,output:s}}catch(s){if(Object.defineProperty(s,"$response",{value:i}),!("$metadata"in s)){const o="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";s.message+=` - `+o,typeof s.$responseBodyText<"u"&&s.$response&&(s.$response.body=s.$responseBodyText)}throw s}},TK=(t,e)=>(r,n)=>async i=>{var a;const s=(a=n.endpointV2)!=null&&a.url&&t.urlParser?async()=>t.urlParser(n.endpointV2.url):t.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const o=await e(i.input,{...t,endpoint:s});return r({...i,request:o})},MK={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Xg={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Zg(t,e,r){return{applyToStack:n=>{n.add(RK(t,r),MK),n.add(TK(t,e),Xg)}}}const z9={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Xg.name},ex=(t,e)=>({applyToStack:r=>{r.addRelativeTo(PK({config:t,instructions:e}),z9)}}),IK=t=>{const e=t.tls??!0,{endpoint:r}=t,n=r!=null?async()=>U9(await so(r)()):void 0;return{...t,endpoint:n,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:so(t.useDualstackEndpoint??!1),useFipsEndpoint:so(t.useFipsEndpoint??!1)}},_K={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:z9.name},OK=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(yK(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),_K)}});Xg.name;const NK=t=>e=>{throw e},DK=(t,e)=>{},LK=t=>(e,r)=>async n=>{if(!Ki.isInstance(n.request))return e(n);const s=P0(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,c=await e({...n,request:await l.sign(n.request,a,o)}).catch((l.errorHandler||NK)(o));return(l.successHandler||DK)(c.response,o),c};var Cl;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Cl||(Cl={}));const Rh=3,jK=Cl.STANDARD,BK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],$K=["TimeoutError","RequestTimeout","RequestTimeoutException"],FK=[500,502,503,504],UK=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],zK=t=>{var e;return(e=t.$metadata)==null?void 0:e.clockSkewCorrected},V9=t=>{var e,r;return((e=t.$metadata)==null?void 0:e.httpStatusCode)===429||BK.includes(t.name)||((r=t.$retryable)==null?void 0:r.throttling)==!0},q9=t=>{var e;return zK(t)||$K.includes(t.name)||UK.includes((t==null?void 0:t.code)||"")||FK.includes(((e=t.$metadata)==null?void 0:e.httpStatusCode)||0)},VK=t=>{var e;if(((e=t.$metadata)==null?void 0:e.httpStatusCode)!==void 0){const r=t.$metadata.httpStatusCode;return 500<=r&&r<=599&&!q9(t)}return!1};class qK{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(e==null?void 0:e.beta)??.7,this.minCapacity=(e==null?void 0:e.minCapacity)??1,this.minFillRate=(e==null?void 0:e.minFillRate)??.5,this.scaleConstant=(e==null?void 0:e.scaleConstant)??.4,this.smooth=(e==null?void 0:e.smooth)??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const r=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const r=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=e}updateClientSendingRate(e){let r;if(this.updateMeasuredRate(),V9(e)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}const hp=100,H9=20*1e3,HK=500,JE=500,WK=5,GK=10,KK=1,QK="amz-sdk-invocation-id",YK="amz-sdk-request",JK=()=>{let t=hp;return{computeNextBackoffDelay:n=>Math.floor(Math.min(H9,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},XE=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(H9,t),getRetryCost:()=>r});class W9{constructor(e){this.maxAttempts=e,this.mode=Cl.STANDARD,this.capacity=JE,this.retryBackoffStrategy=JK(),this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return XE({retryDelay:hp,retryCount:0})}async refreshRetryTokenForRetry(e,r){const n=await this.getMaxAttempts();if(this.shouldRetry(e,r,n)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?HK:hp);const s=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,a=this.getCapacityCost(i);return this.capacity-=a,XE({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(JE,this.capacity+(e.getRetryCost()??KK))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Rh}`),Rh}}shouldRetry(e,r,n){return e.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?GK:WK}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class XK{constructor(e,r){this.maxAttemptsProvider=e,this.mode=Cl.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new qK,this.standardRetryStrategy=new W9(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(e,r)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}let qu;const ZK=new Uint8Array(16);function eQ(){if(!qu&&(qu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qu(ZK)}const Sr=[];for(let t=0;t<256;++t)Sr.push((t+256).toString(16).slice(1));function tQ(t,e=0){return Sr[t[e+0]]+Sr[t[e+1]]+Sr[t[e+2]]+Sr[t[e+3]]+"-"+Sr[t[e+4]]+Sr[t[e+5]]+"-"+Sr[t[e+6]]+Sr[t[e+7]]+"-"+Sr[t[e+8]]+Sr[t[e+9]]+"-"+Sr[t[e+10]]+Sr[t[e+11]]+Sr[t[e+12]]+Sr[t[e+13]]+Sr[t[e+14]]+Sr[t[e+15]]}const rQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ZE={randomUUID:rQ};function nQ(t,e,r){if(ZE.randomUUID&&!e&&!t)return ZE.randomUUID();t=t||{};const n=t.random||(t.rng||eQ)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return tQ(n)}const iQ=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),sQ=t=>{const{retryStrategy:e}=t,r=so(t.maxAttempts??Rh);return{...t,maxAttempts:r,retryStrategy:async()=>e||(await so(t.retryMode)()===Cl.ADAPTIVE?new XK(r):new W9(r))}};class G9{trace(){}debug(){}info(){}warn(){}error(){}}const ko=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},Os=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Th=()=>{let t=[],e=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>e4[v.step]-e4[d.step]||t4[v.priority||"normal"]-t4[d.priority||"normal"]),s=u=>{let d=!1;const v=g=>{const y=ko(g.name,g.aliases);if(y.includes(u)){d=!0;for(const w of y)n.delete(w);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},o=u=>{let d=!1;const v=g=>{if(g.middleware===u){d=!0;for(const y of ko(g.name,g.aliases))n.delete(y);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},a=u=>{var d;return t.forEach(v=>{u.add(v.middleware,{...v})}),e.forEach(v=>{u.addRelativeTo(v.middleware,{...v})}),(d=u.identifyOnResolve)==null||d.call(u,f.identifyOnResolve()),u},l=u=>{const d=[];return u.before.forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d.push(u),u.after.reverse().forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d},c=(u=!1)=>{const d=[],v=[],g={};return t.forEach(w=>{const x={...w,before:[],after:[]};for(const b of ko(x.name,x.aliases))g[b]=x;d.push(x)}),e.forEach(w=>{const x={...w,before:[],after:[]};for(const b of ko(x.name,x.aliases))g[b]=x;v.push(x)}),v.forEach(w=>{if(w.toMiddleware){const x=g[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${Os(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&x.after.push(w),w.relation==="before"&&x.before.push(w)}}),i(d).map(l).reduce((w,x)=>(w.push(...x),w),[])},f={add:(u,d={})=>{const{name:v,override:g,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},x=ko(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${Os(v,y)}'`);for(const b of x){const A=t.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some(M=>M===b))});if(A===-1)continue;const P=t[A];if(P.step!==w.step||w.priority!==P.priority)throw new Error(`"${Os(P.name,P.aliases)}" middleware with ${P.priority} priority in ${P.step} step cannot be overridden by "${Os(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(A,1)}}for(const b of x)n.add(b)}t.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:g,aliases:y}=d,w={middleware:u,...d},x=ko(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${Os(v,y)}'`);for(const b of x){const A=e.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some(M=>M===b))});if(A===-1)continue;const P=e[A];if(P.toMiddleware!==w.toMiddleware||P.relation!==w.relation)throw new Error(`"${Os(P.name,P.aliases)}" middleware ${P.relation} "${P.toMiddleware}" middleware cannot be overridden by "${Os(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(A,1)}}for(const b of x)n.add(b)}e.push(w)},clone:()=>a(Th()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=g=>{const{tags:y,name:w,aliases:x}=g;if(y&&y.includes(u)){const b=ko(w,x);for(const A of b)n.delete(A);return d=!0,!1}return!0};return t=t.filter(v),e=e.filter(v),d},concat:u=>{var v;const d=a(Th());return d.use(u),d.identifyOnResolve(r||d.identifyOnResolve()||(((v=u.identifyOnResolve)==null?void 0:v.call(u))??!1)),d},applyToStack:a,identify:()=>c(!0).map(u=>{const d=u.step??u.relation+" "+u.toMiddleware;return Os(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(g=>g.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},e4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},t4={high:3,normal:2,low:1};class oQ{constructor(e){this.middlewareStack=Th(),this.config=e}send(e,r,n){const i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=e.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(e).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(e).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const mo={},ql=new Array(64);for(let t=0,e="A".charCodeAt(0),r="Z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e);mo[n]=t,ql[t]=n}for(let t=0,e="a".charCodeAt(0),r="z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e),i=t+26;mo[n]=i,ql[i]=n}for(let t=0;t<10;t++){mo[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;mo[e]=r,ql[r]=e}mo["+"]=62;ql[62]="+";mo["/"]=63;ql[63]="/";const al=6,Zc=8,aQ=63,tx=t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;const r=new ArrayBuffer(e),n=new DataView(r);for(let i=0;i>=al;const a=i/4*3;s>>=o%Zc;const l=Math.floor(o/Zc);for(let c=0;c>f)}}return new Uint8Array(r)},kl=t=>new TextEncoder().encode(t),ef=t=>typeof t=="string"?kl(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),K9=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)};function Q9(t){let e;typeof t=="string"?e=kl(t):e=t;const r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let s=0;s>f]}i+="==".slice(0,4-l)}return i}function lQ(t,e="utf-8"){return e==="base64"?Q9(t):K9(t)}function cQ(t,e){return e==="base64"?Ko.mutate(tx(t)):Ko.mutate(kl(t))}class Ko extends Uint8Array{static fromString(e,r="utf-8"){switch(typeof e){case"string":return cQ(e,r);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,Ko.prototype),e}transformToString(e="utf-8"){return lQ(this,e)}}const Ws=t=>encodeURIComponent(t).replace(/[!'()*]/g,fQ),fQ=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function uQ(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=Ws(r),Array.isArray(n))for(let i=0,s=n.length;i{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}const hQ={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class rx{static create(e){return typeof(e==null?void 0:e.handle)=="function"?e:new rx(e)}constructor(e){typeof e=="function"?this.configProvider=e().then(r=>r||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const n=this.config.requestTimeout,i=this.config.keepAlive===!0;if(r!=null&&r.aborted){const y=new Error("Request aborted");return y.name="AbortError",Promise.reject(y)}let s=e.path;const o=uQ(e.query||{});o&&(s+=`?${o}`),e.fragment&&(s+=`#${e.fragment}`);let a="";if(e.username!=null||e.password!=null){const y=e.username??"",w=e.password??"";a=`${y}:${w}@`}const{port:l,method:c}=e,f=`${e.protocol}//${a}${e.hostname}${l?`:${l}`:""}${s}`,u=c==="GET"||c==="HEAD"?void 0:e.body,d={body:u,headers:new Headers(e.headers),method:c};u&&(d.duplex="half"),typeof AbortController<"u"&&(d.signal=r),hQ.supported&&(d.keepalive=i);const v=new Request(f,d),g=[fetch(v).then(y=>{const w=y.headers,x={};for(const A of w.entries())x[A[0]]=A[1];return y.body!=null?{response:new Ch({headers:x,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(A=>({response:new Ch({headers:x,reason:y.statusText,statusCode:y.status,body:A})}))}),dQ(n)];return r&&g.push(new Promise((y,w)=>{r.onabort=()=>{const x=new Error("Request aborted");x.name="AbortError",w(x)}})),Promise.race(g)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=r,n))}httpHandlerConfigs(){return this.config??{}}}const vQ=t=>typeof Blob=="function"&&t instanceof Blob?yQ(t):pQ(t);async function yQ(t){const e=await mQ(t),r=tx(e);return new Uint8Array(r)}async function pQ(t){const e=[],r=t.getReader();let n=!1,i=0;for(;!n;){const{done:a,value:l}=await r.read();l&&(e.push(l),i+=l.length),n=a}const s=new Uint8Array(i);let o=0;for(const a of e)s.set(a,o),o+=a.length;return s}function mQ(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const i=n.result??"",s=i.indexOf(","),o=s>-1?s+1:i.length;e(i.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}const Y9={},vp={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),Y9[t]=e,vp[e]=t}function gQ(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r{if(t instanceof Uint8Array)return Ko.mutate(t);if(!t)return Ko.mutate(new Uint8Array);const r=e.streamCollector(t);return Ko.mutate(await r)};class R0{constructor(){this.middlewareStack=Th()}static classBuilder(){return new bQ}resolveMiddlewareWithContext(e,r,n,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,smithyContext:c,additionalContext:f,CommandCtor:u}){for(const w of i.bind(this)(u,e,r,n))this.middlewareStack.use(w);const d=e.concat(this.middlewareStack),{logger:v}=r,g={logger:v,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,[dp]:{...c},...f},{requestHandler:y}=r;return d.resolve(w=>y.handle(w.request,n||{}),g)}}class bQ{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let r;return r=class extends R0{static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=n??{},e._init(this)}resolveMiddleware(n,i,s){return this.resolveMiddlewareWithContext(n,i,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const wr="***SensitiveInformation***";class nx extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,nx.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Ne=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(t[n]==null||t[n]==="")&&(t[n]=i)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},wQ=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const i=AQ(t),s=i.httpStatusCode?i.httpStatusCode+"":void 0,o=new r({name:(e==null?void 0:e.code)||(e==null?void 0:e.Code)||n||s||"UnknownError",$fault:"client",$metadata:i});throw Ne(o,e)},EQ=t=>({output:e,parsedBody:r,errorCode:n})=>{wQ({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},AQ=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),SQ=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},CQ=t=>{const e=[];for(const r in Sh){const n=Sh[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},kQ=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},PQ=t=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},RQ=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},TQ=t=>({...CQ(t),...PQ(t)}),MQ=t=>({...kQ(t),...RQ(t)}),yp=function(){const t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,[null,...arguments]),r=new e;return Object.setPrototypeOf(r,t.prototype),r};yp.prototype=Object.create(String.prototype,{constructor:{value:yp,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(yp,String);const Ae=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Ae);if(typeof t=="object"){const e={};for(const r of Object.keys(t))t[r]!=null&&(e[r]=Ae(t[r]));return e}return t},IQ=t=>(t==null?void 0:t.body)instanceof ReadableStream,_Q=t=>(e,r)=>async n=>{var o;let i=await t.retryStrategy();const s=await t.maxAttempts();if(OQ(i)){i=i;let a=await i.acquireInitialRetryToken(r.partition_id),l=new Error,c=0,f=0;const{request:u}=n,d=Ki.isInstance(u);for(d&&(u.headers[QK]=nQ());;)try{d&&(u.headers[YK]=`attempt=${c+1}; max=${s}`);const{response:v,output:g}=await e(n);return i.recordSuccess(a),g.$metadata.attempts=c+1,g.$metadata.totalRetryDelay=f,{response:v,output:g}}catch(v){const g=NQ(v);if(l=iQ(v),d&&IQ(u))throw(o=r.logger instanceof G9?console:r.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),l;try{a=await i.refreshRetryTokenForRetry(a,g)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=c+1,l.$metadata.totalRetryDelay=f,l}c=a.getRetryCount();const y=a.getRetryDelay();f+=y,await new Promise(w=>setTimeout(w,y))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)},OQ=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",NQ=t=>{const e={error:t,errorType:DQ(t)},r=jQ(t.$response);return r&&(e.retryAfterHint=r),e},DQ=t=>V9(t)?"THROTTLING":q9(t)?"TRANSIENT":VK(t)?"SERVER_ERROR":"CLIENT_ERROR",J9={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},LQ=t=>({applyToStack:e=>{e.add(_Q(t),J9)}}),jQ=t=>{if(!Ch.isInstance(t))return;const e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;const r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(n*1e3)},BQ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:J9.name},$Q=t=>({applyToStack:e=>{e.addRelativeTo(LK(),BQ)}});class FQ{constructor(e){this.authSchemes=new Map;for(const[r,n]of Object.entries(e))n!==void 0&&this.authSchemes.set(r,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}class UQ{async sign(e,r,n){return e}}const zQ=t=>e=>X9(e)&&e.expiration.getTime()-Date.now()t.expiration!==void 0,HQ=(t,e,r)=>{if(t===void 0)return;const n=typeof t!="function"?async()=>Promise.resolve(t):t;let i,s,o,a=!1;const l=async c=>{s||(s=n(c));try{i=await s,o=!0,a=!1}finally{s=void 0}return i};return e===void 0?async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),i):async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),a?i:r(i)?(e(i)&&await l(c),i):(a=!0,i))},Hu=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},r4="content-length";function WQ(t){return e=>async r=>{const n=r.request;if(Ki.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(r4)===-1)try{const o=t(i);n.headers={...n.headers,[r4]:String(o)}}catch{}}return e({...r,request:n})}}const GQ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},KQ=t=>({applyToStack:e=>{e.add(WQ(t.bodyLengthChecker),GQ)}}),n4=t=>{var e,r;return Ch.isInstance(t)?((e=t.headers)==null?void 0:e.date)??((r=t.headers)==null?void 0:r.Date):void 0},Z9=t=>new Date(Date.now()+t),QQ=(t,e)=>Math.abs(Z9(e).getTime()-t)>=3e5,i4=(t,e)=>{const r=Date.parse(t);return QQ(r,e)?r-Date.now():e},tf=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},YQ=async t=>{var l,c,f;const e=tf("context",t.context),r=tf("config",t.config),n=(f=(c=(l=e.endpointV2)==null?void 0:l.properties)==null?void 0:c.authSchemes)==null?void 0:f[0],s=await tf("signer",r.signer)(n),o=t==null?void 0:t.signingRegion,a=t==null?void 0:t.signingName;return{config:r,signer:s,signingRegion:o,signingName:a}};class JQ{async sign(e,r,n){if(!Ki.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:s,signingRegion:o,signingName:a}=await YQ(n);return await s.sign(e,{signingDate:Z9(i.systemClockOffset),signingRegion:o,signingService:a})}errorHandler(e){return r=>{const n=r.ServerTime??n4(r.$response);if(n){const i=tf("config",e.config),s=i.systemClockOffset;i.systemClockOffset=i4(n,i.systemClockOffset),i.systemClockOffset!==s&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){const n=n4(e);if(n){const i=tf("config",r.config);i.systemClockOffset=i4(n,i.systemClockOffset)}}}const XQ="X-Amz-Algorithm",ZQ="X-Amz-Credential",ek="X-Amz-Date",eY="X-Amz-SignedHeaders",tY="X-Amz-Expires",tk="X-Amz-Signature",rk="X-Amz-Security-Token",nk="authorization",ik=ek.toLowerCase(),rY="date",nY=[nk,ik,rY],iY=tk.toLowerCase(),pp="x-amz-content-sha256",sY=rk.toLowerCase(),oY={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},aY=/^proxy-/,lY=/^sec-/,fv="AWS4-HMAC-SHA256",cY="AWS4-HMAC-SHA256-PAYLOAD",fY="UNSIGNED-PAYLOAD",uY=50,sk="aws4_request",dY=60*60*24*7,Wu={},uv=[],dv=(t,e,r)=>`${t}/${e}/${r}/${sk}`,hY=async(t,e,r,n,i)=>{const s=await s4(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${i}:${Fo(s)}:${e.sessionToken}`;if(o in Wu)return Wu[o];for(uv.push(o);uv.length>uY;)delete Wu[uv.shift()];let a=`AWS4${e.secretAccessKey}`;for(const l of[r,n,i,sk])a=await s4(t,a,l);return Wu[o]=a},s4=(t,e,r)=>{const n=new t(e);return n.update(ef(r)),n.digest()},o4=({headers:t},e,r)=>{const n={};for(const i of Object.keys(t).sort()){if(t[i]==null)continue;const s=i.toLowerCase();(s in oY||e!=null&&e.has(s)||aY.test(s)||lY.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[i].trim().replace(/\s+/g," "))}return n},vY=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===iY)continue;e.push(n);const i=t[n];typeof i=="string"?r[n]=`${Ws(n)}=${Ws(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${Ws(n)}=${Ws(o)}`]),[]).sort().join("&"))}return e.map(n=>r[n]).filter(n=>n).join("&")},yY=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",hv=async({headers:t,body:e},r)=>{for(const n of Object.keys(t))if(n.toLowerCase()===pp)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||yY(e)){const n=new r;return n.update(ef(e)),Fo(await n.digest())}return fY};class pY{format(e){const r=[];for(const s of Object.keys(e)){const o=kl(s);r.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}const n=new Uint8Array(r.reduce((s,o)=>s+o.byteLength,0));let i=0;for(const s of r)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":const a=kl(e.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);const c=new Uint8Array(l.buffer);return c.set(a,3),c;case"timestamp":const f=new Uint8Array(9);return f[0]=8,f.set(ix.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!mY.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(gQ(e.value.replace(/\-/g,"")),1),u}}}var a4;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(a4||(a4={}));const mY=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class ix{constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(e));n>-1&&i>0;n--,i/=256)r[n]=i;return e<0&&l4(r),new ix(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&l4(e),parseInt(Fo(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function l4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const gY=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},ok=({headers:t,query:e,...r})=>({...r,headers:{...t},query:e?xY(e):void 0}),xY=t=>Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{}),bY=(t,e={})=>{var i;const{headers:r,query:n={}}=typeof t.clone=="function"?t.clone():ok(t);for(const s of Object.keys(r)){const o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!((i=e.unhoistableHeaders)!=null&&i.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},c4=t=>{t=typeof t.clone=="function"?t.clone():ok(t);for(const e of Object.keys(t.headers))nY.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},wY=t=>EY(t).toISOString().replace(/\.\d{3}Z$/,"Z"),EY=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class f4{constructor({applyChecksum:e,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerFormatter=new pY,this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=so(n),this.credentialProvider=so(r)}async presign(e,r={}){const{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:l,signingService:c}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const u=l??await this.regionProvider(),{longDate:d,shortDate:v}=Gu(n);if(i>dY)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=dv(v,u,c??this.service),y=bY(c4(e),{unhoistableHeaders:o});f.sessionToken&&(y.query[rk]=f.sessionToken),y.query[XQ]=fv,y.query[ZQ]=`${f.accessKeyId}/${g}`,y.query[ek]=d,y.query[tY]=i.toString(10);const w=o4(y,s,a);return y.query[eY]=u4(w),y.query[tk]=await this.getSignature(d,g,this.getSigningKey(f,u,v,c),this.createCanonicalRequest(y,w,await hv(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){const a=s??await this.regionProvider(),{shortDate:l,longDate:c}=Gu(n),f=dv(l,a,o??this.service),u=await hv({headers:{},body:r},this.sha256),d=new this.sha256;d.update(e);const v=Fo(await d.digest()),g=[cY,c,f,i,v,u].join(` -`);return this.signString(g,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:i,priorSignature:e.priorSignature}).then(o=>({message:e.message,signature:o}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const o=n??await this.regionProvider(),{shortDate:a}=Gu(r),l=new this.sha256(await this.getSigningKey(s,o,a,i));return l.update(ef(e)),Fo(await l.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const l=s??await this.regionProvider(),c=c4(e),{longDate:f,shortDate:u}=Gu(r),d=dv(u,l,o??this.service);c.headers[ik]=f,a.sessionToken&&(c.headers[sY]=a.sessionToken);const v=await hv(c,this.sha256);!gY(pp,c.headers)&&this.applyChecksum&&(c.headers[pp]=v);const g=o4(c,i,n),y=await this.getSignature(f,d,this.getSigningKey(a,l,u,o),this.createCanonicalRequest(c,g,v));return c.headers[nk]=`${fv} Credential=${a.accessKeyId}/${d}, SignedHeaders=${u4(g)}, Signature=${y}`,c}createCanonicalRequest(e,r,n){const i=Object.keys(r).sort();return`${e.method} -${this.getCanonicalPath(e)} -${vY(e)} -${i.map(s=>`${s}:${r[s]}`).join(` -`)} - -${i.join(";")} -${n}`}async createStringToSign(e,r,n){const i=new this.sha256;i.update(ef(n));const s=await i.digest();return`${fv} -${e} -${r} -${Fo(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const r=[];for(const s of e.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));const n=`${e!=null&&e.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(e!=null&&e.endsWith("/"))?"/":""}`;return Ws(n).replace(/%2F/g,"/")}return e}async getSignature(e,r,n,i){const s=await this.createStringToSign(e,r,i),o=new this.sha256(await n);return o.update(ef(s)),Fo(await o.digest())}getSigningKey(e,r,n,i){return hY(this.sha256,e,n,r,i||this.service)}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const Gu=t=>{const e=wY(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.slice(0,8)}},u4=t=>Object.keys(t).sort().join(";"),AY=t=>{let e;t.credentials&&(e=HQ(t.credentials,qQ,X9)),e||(t.credentialDefaultProvider?e=Hu(t.credentialDefaultProvider(Object.assign({},t,{parentClientConfig:t}))):e=async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=t.systemClockOffset||0,sha256:i}=t;let s;return t.signer?s=Hu(t.signer):t.regionInfoProvider?s=()=>Hu(t.region)().then(async o=>[await t.regionInfoProvider(o,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},o]).then(([o,a])=>{const{signingRegion:l,signingService:c}=o;t.signingRegion=t.signingRegion||l||a,t.signingName=t.signingName||c||t.serviceId;const f={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},u=t.signerConstructor||f4;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await Hu(t.region)(),properties:{}},o);const a=o.signingRegion,l=o.signingName;t.signingRegion=t.signingRegion||a,t.signingName=t.signingName||l||t.serviceId;const c={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},f=t.signerConstructor||f4;return new f(c)},{...t,systemClockOffset:n,signingEscapePath:r,credentials:e,signer:s}},SY=(t,e)=>xQ(t,e).then(r=>e.utf8Encoder(r)),T0=(t,e)=>SY(t,e).then(r=>{if(r.length)try{return JSON.parse(r)}catch(n){throw(n==null?void 0:n.name)==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:r}),n}return{}}),CY=async(t,e)=>{const r=await T0(t,e);return r.message=r.message??r.Message,r},kY=(t,e)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(t.headers,"x-amzn-errortype");if(i!==void 0)return n(t.headers[i]);if(e.code!==void 0)return n(e.code);if(e.__type!==void 0)return n(e.__type)},PY=async(t,e,r)=>({operation:P0(e).operation,region:await so(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function RY(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-idp",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function At(t){return{schemeId:"smithy.api#noAuth"}}const TY=t=>{const e=[];switch(t.operation){case"AssociateSoftwareToken":{e.push(At());break}case"ChangePassword":{e.push(At());break}case"ConfirmDevice":{e.push(At());break}case"ConfirmForgotPassword":{e.push(At());break}case"ConfirmSignUp":{e.push(At());break}case"DeleteUser":{e.push(At());break}case"DeleteUserAttributes":{e.push(At());break}case"ForgetDevice":{e.push(At());break}case"ForgotPassword":{e.push(At());break}case"GetDevice":{e.push(At());break}case"GetUser":{e.push(At());break}case"GetUserAttributeVerificationCode":{e.push(At());break}case"GlobalSignOut":{e.push(At());break}case"InitiateAuth":{e.push(At());break}case"ListDevices":{e.push(At());break}case"ResendConfirmationCode":{e.push(At());break}case"RespondToAuthChallenge":{e.push(At());break}case"RevokeToken":{e.push(At());break}case"SetUserMFAPreference":{e.push(At());break}case"SetUserSettings":{e.push(At());break}case"SignUp":{e.push(At());break}case"UpdateAuthEventFeedback":{e.push(At());break}case"UpdateDeviceStatus":{e.push(At());break}case"UpdateUserAttributes":{e.push(At());break}case"VerifySoftwareToken":{e.push(At());break}case"VerifyUserAttribute":{e.push(At());break}default:e.push(RY(t))}return e},MY=t=>({...AY(t)}),IY=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),sx={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},_Y="@aws-sdk/client-cognito-identity-provider",OY="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",NY="3.592.0",DY={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cognito-identity-provider","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity-provider"},LY="./dist-cjs/index.js",jY="./dist-types/index.d.ts",BY="./dist-es/index.js",$Y=!1,FY={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sso-oidc":"3.592.0","@aws-sdk/client-sts":"3.592.0","@aws-sdk/core":"3.592.0","@aws-sdk/credential-provider-node":"3.592.0","@aws-sdk/middleware-host-header":"3.577.0","@aws-sdk/middleware-logger":"3.577.0","@aws-sdk/middleware-recursion-detection":"3.577.0","@aws-sdk/middleware-user-agent":"3.587.0","@aws-sdk/region-config-resolver":"3.587.0","@aws-sdk/types":"3.577.0","@aws-sdk/util-endpoints":"3.587.0","@aws-sdk/util-user-agent-browser":"3.577.0","@aws-sdk/util-user-agent-node":"3.587.0","@smithy/config-resolver":"^3.0.1","@smithy/core":"^2.2.0","@smithy/fetch-http-handler":"^3.0.1","@smithy/hash-node":"^3.0.0","@smithy/invalid-dependency":"^3.0.0","@smithy/middleware-content-length":"^3.0.0","@smithy/middleware-endpoint":"^3.0.1","@smithy/middleware-retry":"^3.0.3","@smithy/middleware-serde":"^3.0.0","@smithy/middleware-stack":"^3.0.0","@smithy/node-config-provider":"^3.1.0","@smithy/node-http-handler":"^3.0.0","@smithy/protocol-http":"^4.0.0","@smithy/smithy-client":"^3.1.1","@smithy/types":"^3.0.0","@smithy/url-parser":"^3.0.0","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.3","@smithy/util-defaults-mode-node":"^3.0.3","@smithy/util-endpoints":"^2.0.1","@smithy/util-middleware":"^3.0.0","@smithy/util-retry":"^3.0.0","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},UY={"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},zY={node:">=16.0.0"},VY={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},qY=["dist-*/**"],HY={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},WY="Apache-2.0",GY={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},KY="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",QY={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},YY={name:_Y,description:OY,version:NY,scripts:DY,main:LY,types:jY,module:BY,sideEffects:$Y,dependencies:FY,devDependencies:UY,engines:zY,typesVersions:VY,files:qY,author:HY,license:WY,browser:GY,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:KY,repository:QY};var ak={};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var mp=function(t,e){return mp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},mp(t,e)};function JY(t,e){mp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var gp=function(){return gp=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function eJ(t,e){return function(r,n){e(r,n,t)}}function tJ(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function rJ(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function nJ(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lk(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function oJ(){for(var t=[],e=0;e1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(g){u(s[0][3],g)}}function l(d){d.value instanceof $f?Promise.resolve(d.value.v).then(c,f):u(s[0][2],d)}function c(d){a("next",d)}function f(d){a("throw",d)}function u(d,v){d(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function cJ(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(o){return(r=!r)?{value:$f(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function fJ(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof xp=="function"?xp(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function uJ(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function dJ(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function hJ(t){return t&&t.__esModule?t:{default:t}}function vJ(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function yJ(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}const pJ=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return gp},__asyncDelegator:cJ,__asyncGenerator:lJ,__asyncValues:fJ,__await:$f,__awaiter:rJ,__classPrivateFieldGet:vJ,__classPrivateFieldSet:yJ,__createBinding:iJ,__decorate:ZY,__exportStar:sJ,__extends:JY,__generator:nJ,__importDefault:hJ,__importStar:dJ,__makeTemplateObject:uJ,__metadata:tJ,__param:eJ,__read:lk,__rest:XY,__spread:oJ,__spreadArrays:aJ,__values:xp},Symbol.toStringTag,{value:"Module"})),Hl=Ih(pJ);var yc={},pc={},mc={},d4;function mJ(){if(d4)return mc;d4=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return mc.isEmptyData=t,mc}var vv={},h4;function ck(){return h4||(h4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])}(vv)),vv}const gJ=t=>{const e=[];for(let r=0,n=t.length;r>6|192,i&63|128);else if(r+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else e.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(e)},xJ=t=>{let e="";for(let r=0,n=t.length;ra.toString(16)).join("%");e+=decodeURIComponent(o)}else e+=String.fromCharCode((i&15)<<12|(t[++r]&63)<<6|t[++r]&63)}return e};function bJ(t){return new TextEncoder().encode(t)}function wJ(t){return new TextDecoder("utf-8").decode(t)}const EJ=t=>typeof TextEncoder=="function"?bJ(t):gJ(t),AJ=t=>typeof TextDecoder=="function"?wJ(t):xJ(t),SJ=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:EJ,toUtf8:AJ},Symbol.toStringTag,{value:"Module"})),fk=Ih(SJ),CJ={};function kJ(){return typeof window<"u"?window:typeof self<"u"?self:CJ}const PJ=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:kJ},Symbol.toStringTag,{value:"Module"})),ox=Ih(PJ);var v4;function uk(){if(v4)return pc;v4=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.Sha256=void 0;var t=mJ(),e=ck(),r=fk,n=ox,i=function(){function a(l){this.secret=l,this.reset()}return a.prototype.update=function(l){var c=this;(0,t.isEmptyData)(l)||(this.operation=this.operation.then(function(f){return f.onerror=function(){c.operation=Promise.reject(new Error("Error encountered updating hash"))},f.process(o(l)),f}),this.operation.catch(function(){}))},a.prototype.digest=function(){return this.operation.then(function(l){return new Promise(function(c,f){l.onerror=function(){f(new Error("Error encountered finalizing hash"))},l.oncomplete=function(){l.result&&c(new Uint8Array(l.result)),f(new Error("Error encountered finalizing hash"))},l.finish()})})},a.prototype.reset=function(){this.secret?(this.operation=s(this.secret).then(function(l){return(0,n.locateWindow)().msCrypto.subtle.sign(e.SHA_256_HMAC_ALGO,l)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-256"))},a}();pc.Sha256=i;function s(a){return new Promise(function(l,c){var f=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",o(a),e.SHA_256_HMAC_ALGO,!1,["sign"]);f.oncomplete=function(){f.result&&l(f.result),c(new Error("ImportKey completed without importing key."))},f.onerror=function(){c(new Error("ImportKey failed to import key."))}})}function o(a){return typeof a=="string"?(0,r.fromUtf8)(a):ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(a)}return pc}var gc={},yv={},xc={},y4;function RJ(){if(y4)return xc;y4=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.convertToBuffer=void 0;var t=fk,e=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:t.fromUtf8;function r(n){return n instanceof Uint8Array?n:typeof n=="string"?e(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return xc.convertToBuffer=r,xc}var bc={},p4;function TJ(){if(p4)return bc;p4=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return bc.isEmptyData=t,bc}var wc={},m4;function MJ(){if(m4)return wc;m4=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}return wc.numToUint8=t,wc}var Ec={},g4;function IJ(){if(g4)return Ec;g4=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var r=new Uint32Array(e.length),n=0;nt.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=n[i++],s--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(i.setUint8(this.bufferLength++,128),s%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,a[o*4+1]=this.state[o]>>>16&255,a[o*4+2]=this.state[o]>>>8&255,a[o*4+3]=this.state[o]>>>0&255;return a},r.prototype.hashBuffer=function(){for(var n=this,i=n.buffer,s=n.state,o=s[0],a=s[1],l=s[2],c=s[3],f=s[4],u=s[5],d=s[6],v=s[7],g=0;g>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(w+this.temp[g-7]|0)+(x+this.temp[g-16]|0)}var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(t.KEY[g]+this.temp[g]|0)|0)|0,A=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&l^a&l)|0;v=d,d=u,u=f,f=c+b|0,c=l,l=a,a=o,o=b+A|0}s[0]+=o,s[1]+=a,s[2]+=l,s[3]+=c,s[4]+=f,s[5]+=u,s[6]+=d,s[7]+=v},r}();return Sc.RawSha256=e,Sc}var A4;function OJ(){if(A4)return Ac;A4=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.Sha256=void 0;var t=Hl,e=hk(),r=_J(),n=ax(),i=function(){function o(a){this.secret=a,this.hash=new r.RawSha256,this.reset()}return o.prototype.update=function(a){if(!((0,n.isEmptyData)(a)||this.error))try{this.hash.update((0,n.convertToBuffer)(a))}catch(l){this.error=l}},o.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},o.prototype.digest=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(a){return[2,this.digestSync()]})})},o.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var a=s(this.secret),l=new Uint8Array(e.BLOCK_SIZE);l.set(a);for(var c=0;ce.BLOCK_SIZE){var l=new r.RawSha256;l.update(a),a=l.digest()}var c=new Uint8Array(e.BLOCK_SIZE);return c.set(a),c}return Ac}var S4;function NJ(){return S4||(S4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Hl;e.__exportStar(OJ(),t)}(pv)),pv}var mv={},ri={},C4;function DJ(){if(C4)return ri;C4=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.supportsZeroByteGCM=ri.supportsSubtleCrypto=ri.supportsSecureRandom=ri.supportsWebCrypto=void 0;var t=Hl,e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(o){if(n(o)&&typeof o.crypto.subtle=="object"){var a=o.crypto.subtle;return i(a)}return!1}ri.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}ri.supportsSecureRandom=n;function i(o){return o&&e.every(function(a){return typeof o[a]=="function"})}ri.supportsSubtleCrypto=i;function s(o){return t.__awaiter(this,void 0,void 0,function(){var a,l;return t.__generator(this,function(c){switch(c.label){case 0:if(!i(o))return[2,!1];c.label=1;case 1:return c.trys.push([1,4,,5]),[4,o.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=c.sent(),[4,o.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return l=c.sent(),[2,l.byteLength===16];case 4:return c.sent(),[2,!1];case 5:return[2]}})})}return ri.supportsZeroByteGCM=s,ri}var k4;function LJ(){return k4||(k4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Hl;e.__exportStar(DJ(),t)}(mv)),mv}var gv={},xv={},P4;function jJ(){return P4||(P4=1,Object.defineProperty(xv,"__esModule",{value:!0})),xv}var bv={},R4;function BJ(){return R4||(R4=1,Object.defineProperty(bv,"__esModule",{value:!0})),bv}var wv={},T4;function $J(){return T4||(T4=1,Object.defineProperty(wv,"__esModule",{value:!0})),wv}var Ev={},M4;function FJ(){return M4||(M4=1,Object.defineProperty(Ev,"__esModule",{value:!0})),Ev}var Cc={},I4;function UJ(){if(I4)return Cc;I4=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.isMsWindow=void 0;var t=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function e(n){return"MSInputMethodContext"in n&&"msCrypto"in n}function r(n){if(e(n)&&n.msCrypto.subtle!==void 0){var i=n.msCrypto,s=i.getRandomValues,o=i.subtle;return t.map(function(a){return o[a]}).concat(s).every(function(a){return typeof a=="function"})}return!1}return Cc.isMsWindow=r,Cc}var _4;function zJ(){return _4||(_4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Hl;e.__exportStar(jJ(),t),e.__exportStar(BJ(),t),e.__exportStar($J(),t),e.__exportStar(FJ(),t),e.__exportStar(UJ(),t)}(gv)),gv}var O4;function VJ(){if(O4)return yc;O4=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.Sha256=void 0;var t=uk(),e=dk(),r=NJ(),n=LJ(),i=zJ(),s=ox,o=ax(),a=function(){function l(c){(0,n.supportsWebCrypto)((0,s.locateWindow)())?this.hash=new e.Sha256(c):(0,i.isMsWindow)((0,s.locateWindow)())?this.hash=new t.Sha256(c):this.hash=new r.Sha256(c)}return l.prototype.update=function(c,f){this.hash.update((0,o.convertToBuffer)(c))},l.prototype.digest=function(){return this.hash.digest()},l.prototype.reset=function(){this.hash.reset()},l}();return yc.Sha256=a,yc}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var e=Hl;e.__exportStar(VJ(),t);var r=uk();Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=dk();Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(ak);const qJ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},vk={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Wr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},js={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class se{static getFirstMatch(e,r){const n=r.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,r){const n=r.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,r,n){if(e.test(r))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,r,n=!1){const i=se.getVersionPrecision(e),s=se.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=se.map([e,r],c=>{const f=o-se.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return se.map(u.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===a)return 0;o-=1}else if(l[0][o]{n[l]=o[l]})}return e}static getBrowserAlias(e){return qJ[e]}static getBrowserTypeByAlias(e){return vk[e]||""}}const wt=/version\/(\d+(\.?_?\d+)+)/i,HJ=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=se.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=se.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=se.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=se.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=se.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},r=se.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=se.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=se.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=se.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=se.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=se.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},r=se.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=se.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=se.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=se.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},r=se.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=se.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=se.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},r=se.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=se.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=se.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=se.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},r=se.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=se.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=se.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=se.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},r=se.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e={name:"Android Browser"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?r:e;return{name:se.getFirstMatch(i,t),version:se.getSecondMatch(i,t)}}}],WJ=[{test:[/Roku\/DVP/],describe(t){const e=se.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Wr.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=se.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Wr.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=se.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=se.getWindowsVersionName(e);return{name:Wr.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:Wr.iOS},r=se.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=se.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=se.getMacOSVersionName(e),n={name:Wr.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=se.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Wr.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=se.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=se.getAndroidVersionName(e),n={name:Wr.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=se.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:Wr.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=se.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||se.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||se.getFirstMatch(/\bbb(\d+)/i,t);return{name:Wr.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=se.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Wr.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=se.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:Wr.Linux}}},{test:[/CrOS/],describe(){return{name:Wr.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=se.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.PlayStation4,version:e}}}],GJ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=se.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:Xt.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xt.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=se.getFirstMatch(/(ipod|iphone)/i,t);return{type:Xt.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xt.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:Xt.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:Xt.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:Xt.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:Xt.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:Xt.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:Xt.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:Xt.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:Xt.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:Xt.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:Xt.tv}}}],KJ=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:js.Blink};const r=se.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:js.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:js.Trident},r=se.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:js.Presto},r=se.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe(t){const e={name:js.Gecko},r=se.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:js.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:js.WebKit},r=se.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];class N4{constructor(e,r=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=se.find(HJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=se.find(WJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:r}=this.getOS();return e?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:r}=this.getPlatform();return e?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const e=se.find(GJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=se.find(KJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return se.assign({},this.parsedResult)}satisfies(e){const r={};let n=0;const i={};let s=0;if(Object.keys(e).forEach(a=>{const l=e[a];typeof l=="string"?(i[a]=l,s+=1):typeof l=="object"&&(r[a]=l,n+=1)}),n>0){const a=Object.keys(r),l=se.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=se.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(r[c]);if(f!==void 0)return f}}if(s>0){const a=Object.keys(i),l=se.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(e,r=!1){const n=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const s=se.getBrowserTypeByAlias(i);return r&&s&&(i=s.toLowerCase()),i===n}compareVersion(e){let r=[0],n=e,i=!1;const s=this.getBrowserVersion();if(typeof s=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(i=!0,n=e.substr(2)):r=[],e[0]===">"?r.push(1):r.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(i=!0,n=e.substr(1)),r.indexOf(se.compareVersions(s,n,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,r=!1){return this.isBrowser(e,r)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(r=>this.is(r))}}/*! - * Bowser - a browser detector - * https://github.com/lancedikson/bowser - * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 - */class yk{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new N4(e,r)}static parse(e){return new N4(e).getResult()}static get BROWSER_MAP(){return vk}static get ENGINE_MAP(){return js}static get OS_MAP(){return Wr}static get PLATFORMS_MAP(){return Xt}}const QJ=({serviceId:t,clientVersion:e})=>async()=>{var i,s,o,a,l;const r=typeof window<"u"&&((i=window==null?void 0:window.navigator)!=null&&i.userAgent)?yk.parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",e],["ua","2.0"],[`os/${((s=r==null?void 0:r.os)==null?void 0:s.name)||"other"}`,(o=r==null?void 0:r.os)==null?void 0:o.version],["lang/js"],["md/browser",`${((a=r==null?void 0:r.browser)==null?void 0:a.name)??"unknown"}_${((l=r==null?void 0:r.browser)==null?void 0:l.version)??"unknown"}`]];return t&&n.push([`api/${t}`,e]),n},YJ=t=>()=>Promise.reject(t),D4=typeof TextEncoder=="function"?new TextEncoder:null,JJ=t=>{if(typeof t=="string"){if(D4)return D4.encode(t).byteLength;let e=t.length;for(let r=e-1;r>=0;r--){const n=t.charCodeAt(r);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&r--}return e}else{if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size}throw new Error(`Body Length computation failed for ${t}`)},pk="required",_i="fn",Oi="argv",Wl="ref",L4=!0,j4="isSet",Ff="booleanEquals",Pa="error",kc="endpoint",Ji="tree",lx="PartitionResult",B4={[pk]:!1,type:"String"},$4={[pk]:!0,default:!1,type:"Boolean"},F4={[Wl]:"Endpoint"},mk={[_i]:Ff,[Oi]:[{[Wl]:"UseFIPS"},!0]},gk={[_i]:Ff,[Oi]:[{[Wl]:"UseDualStack"},!0]},Ei={},U4={[_i]:"getAttr",[Oi]:[{[Wl]:lx},"supportsFIPS"]},z4={[_i]:Ff,[Oi]:[!0,{[_i]:"getAttr",[Oi]:[{[Wl]:lx},"supportsDualStack"]}]},V4=[mk],q4=[gk],H4=[{[Wl]:"Region"}],XJ={version:"1.0",parameters:{Region:B4,UseDualStack:$4,UseFIPS:$4,Endpoint:B4},rules:[{conditions:[{[_i]:j4,[Oi]:[F4]}],rules:[{conditions:V4,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Pa},{conditions:q4,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Pa},{endpoint:{url:F4,properties:Ei,headers:Ei},type:kc}],type:Ji},{conditions:[{[_i]:j4,[Oi]:H4}],rules:[{conditions:[{[_i]:"aws.partition",[Oi]:H4,assign:lx}],rules:[{conditions:[mk,gk],rules:[{conditions:[{[_i]:Ff,[Oi]:[L4,U4]},z4],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Pa}],type:Ji},{conditions:V4,rules:[{conditions:[{[_i]:Ff,[Oi]:[U4,L4]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji},{error:"FIPS is enabled but this partition does not support FIPS",type:Pa}],type:Ji},{conditions:q4,rules:[{conditions:[z4],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji},{error:"DualStack is enabled but this partition does not support DualStack",type:Pa}],type:Ji},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji}],type:Ji},{error:"Invalid Configuration: Missing Region",type:Pa}]},ZJ=XJ,eX=(t,e={})=>ZG(ZJ,{endpointParams:t,logger:e.logger});kh.aws=$9;const tX=t=>({apiVersion:"2016-04-18",base64Decoder:(t==null?void 0:t.base64Decoder)??tx,base64Encoder:(t==null?void 0:t.base64Encoder)??Q9,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??eX,extensions:(t==null?void 0:t.extensions)??[],httpAuthSchemeProvider:(t==null?void 0:t.httpAuthSchemeProvider)??TY,httpAuthSchemes:(t==null?void 0:t.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new JQ},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new UQ}],logger:(t==null?void 0:t.logger)??new G9,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity Provider",urlParser:(t==null?void 0:t.urlParser)??Ph,utf8Decoder:(t==null?void 0:t.utf8Decoder)??kl,utf8Encoder:(t==null?void 0:t.utf8Encoder)??K9}),rX=(t,e,r)=>{let n,i,s,o=!1;const a=async()=>{i||(i=t());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return e===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),n):async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(e(n)&&await a(),n))},nX=["in-region","cross-region","mobile","standard","legacy"],iX=({defaultsMode:t}={})=>rX(async()=>{const e=typeof t=="function"?await t():t;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(sX()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e==null?void 0:e.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${nX.join(", ")}, got ${e}`)}}),sX=()=>{var r,n;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?yk.parse(window.navigator.userAgent):void 0,e=(n=t==null?void 0:t.platform)==null?void 0:n.type;return e==="tablet"||e==="mobile"},oX=t=>{const e=iX(t),r=()=>e().then(SQ),n=tX(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??JJ,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??QJ({serviceId:n.serviceId,clientVersion:YY.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Rh,region:(t==null?void 0:t.region)??YJ("Region is missing"),requestHandler:rx.create((t==null?void 0:t.requestHandler)??r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||jK),sha256:(t==null?void 0:t.sha256)??ak.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??vQ,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(uK)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(dK))}},aX=t=>{let e=async()=>{if(t.region===void 0)throw new Error("Region is missing from runtimeConfig");const r=t.region;return typeof r=="string"?r:r()};return{setRegion(r){e=r},region(){return e}}},lX=t=>({region:t.region()}),cX=t=>{const e=t.httpAuthSchemes;let r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(i){const s=e.findIndex(o=>o.schemeId===i.schemeId);s===-1?e.push(i):e.splice(s,1,i)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){n=i},credentials(){return n}}},fX=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Ku=t=>t,uX=(t,e)=>{const r={...Ku(aX(t)),...Ku(TQ(t)),...Ku(bG(t)),...Ku(cX(t))};return e.forEach(n=>n.configure(r)),{...t,...lX(r),...MQ(r),...wG(r),...fX(r)}};class dX extends oQ{constructor(...[e]){const r=oX(e||{}),n=IY(r),i=hK(n),s=IK(i),o=sQ(s),a=o,l=NG(a),c=MY(l),f=uX(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(LQ(this.config)),this.middlewareStack.use(KQ(this.config)),this.middlewareStack.use(CG(this.config)),this.middlewareStack.use(RG(this.config)),this.middlewareStack.use(OG(this.config)),this.middlewareStack.use(fK(this.config)),this.middlewareStack.use(OK(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use($Q(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return PY}getIdentityProviderConfigProvider(){return async e=>new FQ({"aws.auth#sigv4":e.credentials})}}class Te extends nx{constructor(e){super(e),Object.setPrototypeOf(this,Te.prototype)}}class cx extends Te{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,cx.prototype)}}class fx extends Te{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,fx.prototype)}}class ux extends Te{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,ux.prototype)}}class dx extends Te{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,dx.prototype)}}class hx extends Te{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,hx.prototype)}}class vx extends Te{constructor(e){super({name:"UserImportInProgressException",$fault:"client",...e}),this.name="UserImportInProgressException",this.$fault="client",Object.setPrototypeOf(this,vx.prototype)}}class yx extends Te{constructor(e){super({name:"UserNotFoundException",$fault:"client",...e}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,yx.prototype)}}class px extends Te{constructor(e){super({name:"InvalidLambdaResponseException",$fault:"client",...e}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,px.prototype)}}class mx extends Te{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,mx.prototype)}}class gx extends Te{constructor(e){super({name:"TooManyFailedAttemptsException",$fault:"client",...e}),this.name="TooManyFailedAttemptsException",this.$fault="client",Object.setPrototypeOf(this,gx.prototype)}}class xx extends Te{constructor(e){super({name:"UnexpectedLambdaException",$fault:"client",...e}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,xx.prototype)}}class M0 extends Te{constructor(e){super({name:"UserLambdaValidationException",$fault:"client",...e}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,M0.prototype)}}class bx extends Te{constructor(e){super({name:"CodeDeliveryFailureException",$fault:"client",...e}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,bx.prototype)}}class wx extends Te{constructor(e){super({name:"InvalidPasswordException",$fault:"client",...e}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,wx.prototype)}}class Ex extends Te{constructor(e){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Ex.prototype)}}class Ax extends Te{constructor(e){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...e}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,Ax.prototype)}}class Sx extends Te{constructor(e){super({name:"PreconditionNotMetException",$fault:"client",...e}),this.name="PreconditionNotMetException",this.$fault="client",Object.setPrototypeOf(this,Sx.prototype)}}class Cx extends Te{constructor(e){super({name:"UnsupportedUserStateException",$fault:"client",...e}),this.name="UnsupportedUserStateException",this.$fault="client",Object.setPrototypeOf(this,Cx.prototype)}}class kx extends Te{constructor(e){super({name:"UsernameExistsException",$fault:"client",...e}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,kx.prototype)}}class Px extends Te{constructor(e){super({name:"AliasExistsException",$fault:"client",...e}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,Px.prototype)}}class Rx extends Te{constructor(e){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...e}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Rx.prototype)}}class Tx extends Te{constructor(e){super({name:"MFAMethodNotFoundException",$fault:"client",...e}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Tx.prototype)}}class Mx extends Te{constructor(e){super({name:"PasswordResetRequiredException",$fault:"client",...e}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,Mx.prototype)}}class Ix extends Te{constructor(e){super({name:"UserNotConfirmedException",$fault:"client",...e}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,Ix.prototype)}}class _x extends Te{constructor(e){super({name:"UserPoolAddOnNotEnabledException",$fault:"client",...e}),this.name="UserPoolAddOnNotEnabledException",this.$fault="client",Object.setPrototypeOf(this,_x.prototype)}}class Ox extends Te{constructor(e){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Ox.prototype)}}class Nx extends Te{constructor(e){super({name:"CodeMismatchException",$fault:"client",...e}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,Nx.prototype)}}class Dx extends Te{constructor(e){super({name:"ExpiredCodeException",$fault:"client",...e}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,Dx.prototype)}}class Lx extends Te{constructor(e){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...e}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,Lx.prototype)}}class jx extends Te{constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),this.name="ConcurrentModificationException",this.$fault="client",Object.setPrototypeOf(this,jx.prototype)}}class Bx extends Te{constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,Bx.prototype)}}class $x extends Te{constructor(e){super({name:"GroupExistsException",$fault:"client",...e}),this.name="GroupExistsException",this.$fault="client",Object.setPrototypeOf(this,$x.prototype)}}class Fx extends Te{constructor(e){super({name:"DuplicateProviderException",$fault:"client",...e}),this.name="DuplicateProviderException",this.$fault="client",Object.setPrototypeOf(this,Fx.prototype)}}class Ux extends Te{constructor(e){super({name:"UserPoolTaggingException",$fault:"client",...e}),this.name="UserPoolTaggingException",this.$fault="client",Object.setPrototypeOf(this,Ux.prototype)}}class zx extends Te{constructor(e){super({name:"InvalidOAuthFlowException",$fault:"client",...e}),this.name="InvalidOAuthFlowException",this.$fault="client",Object.setPrototypeOf(this,zx.prototype)}}class Vx extends Te{constructor(e){super({name:"ScopeDoesNotExistException",$fault:"client",...e}),this.name="ScopeDoesNotExistException",this.$fault="client",Object.setPrototypeOf(this,Vx.prototype)}}class qx extends Te{constructor(e){super({name:"UnsupportedIdentityProviderException",$fault:"client",...e}),this.name="UnsupportedIdentityProviderException",this.$fault="client",Object.setPrototypeOf(this,qx.prototype)}}class Hx extends Te{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Hx.prototype)}}class Wx extends Te{constructor(e){super({name:"UnsupportedOperationException",$fault:"client",...e}),this.name="UnsupportedOperationException",this.$fault="client",Object.setPrototypeOf(this,Wx.prototype)}}class Gx extends Te{constructor(e){super({name:"UnsupportedTokenTypeException",$fault:"client",...e}),this.name="UnsupportedTokenTypeException",this.$fault="client",Object.setPrototypeOf(this,Gx.prototype)}}const W4=t=>({...t,...t.Value&&{Value:wr}}),xk=t=>({...t,...t.AccessToken&&{AccessToken:wr},...t.RefreshToken&&{RefreshToken:wr},...t.IdToken&&{IdToken:wr}}),hX=t=>({...t,...t.AuthParameters&&{AuthParameters:wr},...t.ClientId&&{ClientId:wr},...t.UserContextData&&{UserContextData:wr}}),vX=t=>({...t,...t.Session&&{Session:wr},...t.AuthenticationResult&&{AuthenticationResult:xk(t.AuthenticationResult)}}),yX=t=>({...t,...t.ClientId&&{ClientId:wr},...t.Session&&{Session:wr},...t.ChallengeResponses&&{ChallengeResponses:wr},...t.UserContextData&&{UserContextData:wr}}),pX=t=>({...t,...t.Session&&{Session:wr},...t.AuthenticationResult&&{AuthenticationResult:xk(t.AuthenticationResult)}});class Kx extends Te{constructor(e){super({name:"EnableSoftwareTokenMFAException",$fault:"client",...e}),this.name="EnableSoftwareTokenMFAException",this.$fault="client",Object.setPrototypeOf(this,Kx.prototype)}}const mX=t=>({...t,...t.ClientId&&{ClientId:wr},...t.SecretHash&&{SecretHash:wr},...t.Username&&{Username:wr},...t.Password&&{Password:wr},...t.UserAttributes&&{UserAttributes:t.UserAttributes.map(e=>W4(e))},...t.ValidationData&&{ValidationData:t.ValidationData.map(e=>W4(e))},...t.UserContextData&&{UserContextData:wr}}),gX=async(t,e)=>{const r=Jx("InitiateAuth");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},xX=async(t,e)=>{const r=Jx("RespondToAuthChallenge");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},bX=async(t,e)=>{const r=Jx("SignUp");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},wX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},EX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},AX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},Qx=async(t,e)=>{const r={...t,body:await CY(t.body,e)},n=kY(t,r.body);switch(n){case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await OX(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await jX(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await qX(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await GX(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await JX(r);case"UserImportInProgressException":case"com.amazonaws.cognitoidentityprovider#UserImportInProgressException":throw await iZ(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await lZ(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await DX(r);case"LimitExceededException":case"com.amazonaws.cognitoidentityprovider#LimitExceededException":throw await zX(r);case"TooManyFailedAttemptsException":case"com.amazonaws.cognitoidentityprovider#TooManyFailedAttemptsException":throw await YX(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await ZX(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await sZ(r);case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await CX(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await BX(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await $X(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await FX(r);case"PreconditionNotMetException":case"com.amazonaws.cognitoidentityprovider#PreconditionNotMetException":throw await WX(r);case"UnsupportedUserStateException":case"com.amazonaws.cognitoidentityprovider#UnsupportedUserStateException":throw await nZ(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await oZ(r);case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await SX(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await UX(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await VX(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await HX(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await aZ(r);case"UserPoolAddOnNotEnabledException":case"com.amazonaws.cognitoidentityprovider#UserPoolAddOnNotEnabledException":throw await cZ(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await NX(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await kX(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await MX(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await QX(r);case"ConcurrentModificationException":case"com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":throw await PX(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await IX(r);case"GroupExistsException":case"com.amazonaws.cognitoidentityprovider#GroupExistsException":throw await _X(r);case"DuplicateProviderException":case"com.amazonaws.cognitoidentityprovider#DuplicateProviderException":throw await RX(r);case"UserPoolTaggingException":case"com.amazonaws.cognitoidentityprovider#UserPoolTaggingException":throw await fZ(r);case"InvalidOAuthFlowException":case"com.amazonaws.cognitoidentityprovider#InvalidOAuthFlowException":throw await LX(r);case"ScopeDoesNotExistException":case"com.amazonaws.cognitoidentityprovider#ScopeDoesNotExistException":throw await KX(r);case"UnsupportedIdentityProviderException":case"com.amazonaws.cognitoidentityprovider#UnsupportedIdentityProviderException":throw await eZ(r);case"UnauthorizedException":case"com.amazonaws.cognitoidentityprovider#UnauthorizedException":throw await XX(r);case"UnsupportedOperationException":case"com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":throw await tZ(r);case"UnsupportedTokenTypeException":case"com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":throw await rZ(r);case"EnableSoftwareTokenMFAException":case"com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":throw await TX(r);default:const i=r.body;return uZ({output:t,parsedBody:i,errorCode:n})}},SX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Px({$metadata:Me(t),...n});return Ne(i,r)},CX=async(t,e)=>{const r=t.body,n=Ae(r),i=new bx({$metadata:Me(t),...n});return Ne(i,r)},kX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Nx({$metadata:Me(t),...n});return Ne(i,r)},PX=async(t,e)=>{const r=t.body,n=Ae(r),i=new jx({$metadata:Me(t),...n});return Ne(i,r)},RX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Fx({$metadata:Me(t),...n});return Ne(i,r)},TX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Kx({$metadata:Me(t),...n});return Ne(i,r)},MX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Dx({$metadata:Me(t),...n});return Ne(i,r)},IX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Bx({$metadata:Me(t),...n});return Ne(i,r)},_X=async(t,e)=>{const r=t.body,n=Ae(r),i=new $x({$metadata:Me(t),...n});return Ne(i,r)},OX=async(t,e)=>{const r=t.body,n=Ae(r),i=new cx({$metadata:Me(t),...n});return Ne(i,r)},NX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ox({$metadata:Me(t),...n});return Ne(i,r)},DX=async(t,e)=>{const r=t.body,n=Ae(r),i=new px({$metadata:Me(t),...n});return Ne(i,r)},LX=async(t,e)=>{const r=t.body,n=Ae(r),i=new zx({$metadata:Me(t),...n});return Ne(i,r)},jX=async(t,e)=>{const r=t.body,n=Ae(r),i=new fx({$metadata:Me(t),...n});return Ne(i,r)},BX=async(t,e)=>{const r=t.body,n=Ae(r),i=new wx({$metadata:Me(t),...n});return Ne(i,r)},$X=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ex({$metadata:Me(t),...n});return Ne(i,r)},FX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ax({$metadata:Me(t),...n});return Ne(i,r)},UX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Rx({$metadata:Me(t),...n});return Ne(i,r)},zX=async(t,e)=>{const r=t.body,n=Ae(r),i=new mx({$metadata:Me(t),...n});return Ne(i,r)},VX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Tx({$metadata:Me(t),...n});return Ne(i,r)},qX=async(t,e)=>{const r=t.body,n=Ae(r),i=new ux({$metadata:Me(t),...n});return Ne(i,r)},HX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Mx({$metadata:Me(t),...n});return Ne(i,r)},WX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Sx({$metadata:Me(t),...n});return Ne(i,r)},GX=async(t,e)=>{const r=t.body,n=Ae(r),i=new dx({$metadata:Me(t),...n});return Ne(i,r)},KX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Vx({$metadata:Me(t),...n});return Ne(i,r)},QX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Lx({$metadata:Me(t),...n});return Ne(i,r)},YX=async(t,e)=>{const r=t.body,n=Ae(r),i=new gx({$metadata:Me(t),...n});return Ne(i,r)},JX=async(t,e)=>{const r=t.body,n=Ae(r),i=new hx({$metadata:Me(t),...n});return Ne(i,r)},XX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Hx({$metadata:Me(t),...n});return Ne(i,r)},ZX=async(t,e)=>{const r=t.body,n=Ae(r),i=new xx({$metadata:Me(t),...n});return Ne(i,r)},eZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new qx({$metadata:Me(t),...n});return Ne(i,r)},tZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Wx({$metadata:Me(t),...n});return Ne(i,r)},rZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Gx({$metadata:Me(t),...n});return Ne(i,r)},nZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Cx({$metadata:Me(t),...n});return Ne(i,r)},iZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new vx({$metadata:Me(t),...n});return Ne(i,r)},sZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new M0({$metadata:Me(t),...n});return Ne(i,r)},oZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new kx({$metadata:Me(t),...n});return Ne(i,r)},aZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ix({$metadata:Me(t),...n});return Ne(i,r)},lZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new yx({$metadata:Me(t),...n});return Ne(i,r)},cZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new _x({$metadata:Me(t),...n});return Ne(i,r)},fZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ux({$metadata:Me(t),...n});return Ne(i,r)},Me=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),uZ=EQ(Te),Yx=async(t,e,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await t.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:e};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new Ki(c)};function Jx(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}}class dZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","InitiateAuth",{}).n("CognitoIdentityProviderClient","InitiateAuthCommand").f(hX,vX).ser(gX).de(wX).build(){}class hZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","RespondToAuthChallenge",{}).n("CognitoIdentityProviderClient","RespondToAuthChallengeCommand").f(yX,pX).ser(xX).de(EX).build(){}class vZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","SignUp",{}).n("CognitoIdentityProviderClient","SignUpCommand").f(mX,void 0).ser(bX).de(AX).build(){}function zr(){return zr=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}const yZ=["signatures"],pZ="0.0.0";function Yn(t,e,r){const n=Math.floor(Date.now()/1e3),i=n+e;return{version:pZ,issuedAt:n,expiresAt:i,name:t,data:r}}async function mZ(t,e){const r=gZ(e),n=await t.sign(new Uint8Array(r));return zr({},e,{signatures:[{sessionId:await t.sessionId(),signature:n}]})}function gZ(t){const{version:e,issuedAt:r,expiresAt:n,name:i,data:s}=t,a=sr(sG({version:e,issuedAt:r,expiresAt:n,name:i,data:s}));return ce(Et(a))}function xZ(t,e){const r=pi(t,yZ),n=t.expiresAt-t.issuedAt;return r.issuedAt=Math.floor(e.getTime()/1e3),r.expiresAt=r.issuedAt+n,r}function bZ({wallet:t,chainId:e,message:r,lifespan:n}){return Yn("signMessage",n,{wallet:t,network:e.toString(),message:r.startsWith("0x")?r:fe(sr(r))})}const wZ=["lifespan"],EZ=["lifespan"],AZ=["lifespan"],SZ=["lifespan"],CZ=["lifespan"],kZ=["lifespan"];async function PZ({lifespan:t,sessionId:e,idToken:r}){return Yn("openSession",t,{sessionId:e,idToken:r})}async function RZ(t){let{lifespan:e}=t,r=pi(t,wZ);return Yn("validateSession",e,r)}function TZ(t){let{lifespan:e}=t,r=pi(t,EZ);return Yn("finishValidateSession",e,r)}function G4(t){let{lifespan:e}=t,r=pi(t,AZ);return Yn("closeSession",e,r)}function MZ(t){let{lifespan:e}=t,r=pi(t,SZ);return Yn("listSessions",e,r)}function IZ(t){let{lifespan:e}=t,r=pi(t,CZ);return Yn("getSession",e,r)}function _Z(t){let{lifespan:e}=t,r=pi(t,kZ);return Yn("sessionAuthProof",e,r)}class OZ{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Av(n,i,s)).then(o=>Sv(o).then(a=>({session:a.session,response:a.response})),o=>{throw ll.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Av(n,i,s)).then(o=>Sv(o).then(a=>({response:a.response})),o=>{throw ll.new({cause:`fetch(): ${o.message||""}`})}),this.chainList=(n,i)=>this.fetch(this.url("ChainList"),Av({},n,i)).then(s=>Sv(s).then(o=>({chains:o.chains})),s=>{throw ll.new({cause:`fetch(): ${s.message||""}`})}),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Av=(t={},e={},r=null)=>({method:"POST",headers:zr({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Sv=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),I0.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(NZ[n]||Ir).new(r)}return r});class Ir extends Error{constructor(e,r,n,i,s){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,Ir.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}}class Xx extends Ir{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Xx.prototype)}}class ll extends Ir{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ll.prototype)}}class Zx extends Ir{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Zx.prototype)}}class eb extends Ir{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,eb.prototype)}}class tb extends Ir{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,tb.prototype)}}class I0 extends Ir{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,I0.prototype)}}class rb extends Ir{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,rb.prototype)}}class nb extends Ir{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,nb.prototype)}}class ib extends Ir{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ib.prototype)}}class sb extends Ir{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,sb.prototype)}}class ob extends Ir{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ob.prototype)}}class ab extends Ir{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ab.prototype)}}class lb extends Ir{constructor(e="TenantNotFound",r=1001,n="Tenant not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,lb.prototype)}}const NZ={0:Xx,[-1]:ll,[-2]:Zx,[-3]:eb,[-4]:tb,[-5]:I0,[-6]:rb,[-7]:nb,[-8]:ib,[-9]:sb,[-10]:ob,1e3:ab,1001:lb};let Cv=function(t){return t.unknown="unknown",t.erc20Token="erc20Token",t.erc1155Token="erc1155Token",t}({});function ou(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.txHash=="string"&&typeof t.data.receipt=="object"&&typeof t.data.request=="object"}function bk(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.metaTxHash=="string"&&!t.data.txHash&&typeof t.data.request=="object"}function DZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionFailed"&&typeof t.data=="object"&&typeof t.data.request=="object"&&Array.isArray(t.data.simulations)&&typeof t.data.error=="string"}function K4(t){return ou(t)||DZ(t)||bk(t)}function LZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="signedMessage"&&typeof t.data=="object"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function jZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionAuthProof"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"&&typeof t.data.network=="string"&&typeof t.data.wallet=="string"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function BZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="feeOptions"&&typeof t.data=="object"&&Array.isArray(t.data.feeOptions)}function $Z(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="validationRequired"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"}function FZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="finishedSessionValidation"&&typeof t.data=="object"}function UZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionClosed"}function zZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="getSessionResponse"&&typeof t.data=="object"&&typeof t.data.session=="string"&&typeof t.data.wallet=="string"}function Q4(t){var e,r;return!!(t instanceof Ir&&((e=t.cause)!=null&&e.endsWith("intent is invalid: intent expired")||(r=t.cause)!=null&&r.endsWith("intent is invalid: intent issued in the future")))}const VZ=["token","to","value"],qZ=["token","to","id","safe","data"],HZ=["token","to","values","data"],WZ=["to","value","abi","func","args"];function GZ({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i}){return Yn("feeOptions",t,{identifier:r,wallet:e,network:n.toString(),transactions:i.map(s=>{if(!s.to||s.to===Ng)throw new Error("Contract creation not supported");return Ek(s)?{type:"transaction",to:s.to,value:ae.from(s.value||0).toHexString(),data:fe(s.data||[])}:s})})}function au({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i,transactionsFeeQuote:s,transactionsFeeOption:o}){return Yn("sendTransaction",t,{identifier:r,wallet:e,network:n.toString(),transactions:KZ(i,o).map(a=>{if(!a.to||a.to===Ng)throw new Error("Contract creation not supported");return Ek(a)?{type:"transaction",to:a.to,value:ae.from(a.value||0).toHexString(),data:fe(a.data||[])}:a}),transactionsFeeQuote:s})}function KZ(t,e){const r=[...t];if(e)switch(e.token.type){case Cv.unknown:r.push({to:e.to,value:e.value});break;case Cv.erc20Token:if(!e.token.contractAddress)throw new Error("contract address is required");r.push(cb({tokenAddress:e.token.contractAddress,to:e.to,value:e.value}));break;case Cv.erc1155Token:if(!e.token.contractAddress)throw new Error("contract address is required");if(!e.token.tokenID)throw new Error("token ID is required");r.push(fb({tokenAddress:e.token.contractAddress,to:e.to,vals:[{id:e.token.tokenID,amount:e.value}]}));break}return r}function QZ({lifespan:t,chainId:e,wallet:r,metaTxHash:n}){return Yn("getTransactionReceipt",t,{wallet:r,network:e.toString(),metaTxHash:n})}function YZ(t){let{token:e,to:r,value:n}=t,i=pi(t,VZ);return au(zr({transactions:[cb({tokenAddress:e,to:r,value:n.toString()})]},i))}function JZ(t){let{token:e,to:r,id:n,safe:i,data:s}=t,o=pi(t,qZ);return au(zr({transactions:[eee({tokenAddress:e,to:r,id:n,data:s,safe:i})]},o))}function XZ(t){let{token:e,to:r,values:n,data:i}=t,s=pi(t,HZ);const o=n.map(a=>({id:a.id,amount:ae.from(a.amount).toString()}));return au(zr({transactions:[fb({tokenAddress:e,to:r,vals:o,data:i})]},s))}function ZZ(t){let{to:e,value:r,abi:n,func:i,args:s}=t,o=pi(t,WZ);return au(zr({transactions:[wk({to:e,value:ae.from(r).toString(),data:{abi:n,func:i,args:s}})]},o))}function cb(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc20send",tokenAddress:e.token,to:e.to,value:e.value.toString()};if(r.tokenAddress!==void 0)return zr({type:"erc20send"},r);throw new Error("Invalid ERC20 transaction")}function eee(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc721send",tokenAddress:e.token,to:e.to,id:e.id,data:e.data,safe:e.safe};if(r.tokenAddress!==void 0)return zr({type:"erc721send"},r);throw new Error("Invalid ERC721 transaction")}function fb(t){const e=t,r=t;if(e.values!==void 0)return{type:"erc1155send",vals:e.values.map(n=>({id:n.id,amount:ae.from(n.amount).toString()})),tokenAddress:e.token,to:e.to,data:e.data};if(r.vals!==void 0)return{type:"erc1155send",vals:r.vals.map(n=>({id:n.id,amount:ae.from(n.amount).toString()})),tokenAddress:r.tokenAddress,to:r.to,data:r.data};throw new Error("Invalid ERC1155 transaction")}function wk(t){const e=t,r=t;if(e.abi!==void 0)return{type:"delayedEncode",to:e.to,value:ae.from(e.value).toString(),data:{abi:e.abi,func:e.func,args:e.args}};if(r.data!==void 0)return{type:"delayedEncode",to:r.to,value:r.value,data:r.data};throw new Error("Invalid delayed encode transaction")}function tee(t){if(t.length===0)throw new Error("No packets provided");const e=t[0].data.network,r=t[0].data.wallet,n=t[0].expiresAt-t[0].issuedAt,i=t[0].data.identifier,s=t[0].data.transactionsFeeQuote;if(!t.every(o=>o.data.network===e))throw new Error("All packets must have the same chainId");if(!t.every(o=>o.data.wallet===r))throw new Error("All packets must have the same wallet");return Yn("sendTransaction",n,{network:e,wallet:r,identifier:i,transactions:t.flatMap(o=>o.data.transactions),transactionsFeeQuote:s})}function Ek(t){return!["transaction","erc20send","erc721send","erc1155send","delayedEncode"].includes(t.type)}class Ad{constructor(e,r,n){this.store=e,this.key=r,this.defaultValue=n}async get(){const e=await this.store.get(this.key);return e||this.defaultValue}async set(e){e?await this.store.set(this.key,e):await this.store.set(this.key,null)}}class Ak{constructor(){this.store=void 0,Mh.isAvailable()?this.store=new Mh:this.store=new ree}async get(e){return this.store.get(e)}async set(e,r){return this.store.set(e,r)}}class Mh{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(!Mh.isAvailable())throw new Error("No localStorage")}async get(e){return window.localStorage.getItem(e)}async set(e,r){r?window.localStorage.setItem(e,r):window.localStorage.removeItem(e)}}class ree{constructor(){this.store={},this.store={}}async get(e){return this.store[e]||null}async set(e,r){r?this.store[e]=r:delete this.store[e]}}const bp="seq-waas-session-p256k1",wp="seq-waas-session";async function Sk(t,e){const r=await e.get(bp,wp,t);if(!r)throw new Error("No private key found");const n=new ss(r);return{sessionId(){return n.getAddress()},sign(i){return n.signMessage(i)},clear:async()=>{await e.delete(bp,wp,t)}}}async function nee(t,e){const n=await new ss(t).getAddress();return await e.set(bp,wp,n,t),Sk(n,e)}async function iee(t){const e=ss.createRandom();return nee(e.privateKey,t)}let Ck=function(t){return t[t.ECDSAP256K1=0]="ECDSAP256K1",t[t.ECDSAP256R1=1]="ECDSAP256R1",t}({});const Ep="seq-waas-session-p256r1",Ap="seq-waas-session";async function kk(t,e,r){const n=await r.get(Ep,Ap,t);if(!n||!n.privateKey)throw new Error("No private key found");const i=new TextEncoder;return{sessionId:async()=>{const s=await e.exportKey("raw",n.publicKey),o=new Uint8Array(s.byteLength+1);return o[0]=Ck.ECDSAP256R1,o.set(new Uint8Array(s),1),fe(o)},sign:async s=>{typeof s=="string"&&(s.startsWith("0x")?(s=s.slice(2),s=ce(s)):s=i.encode(s));const o=await e.sign({name:"ECDSA",hash:{name:"SHA-256"}},n.privateKey,s);return fe(new Uint8Array(o))},clear:async()=>{await r.delete(Ep,Ap,t)}}}async function see(t,e,r){const n=await aee(e,t.publicKey);return await r.set(Ep,Ap,n,t),kk(n,e,r)}async function oee(t,e){const r=await t.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"]);return see(r,t,e)}async function aee(t,e){const r=await t.exportKey("raw",e),n=new Uint8Array(r.byteLength+1);return n[0]=Ck.ECDSAP256R1,n.set(new Uint8Array(r),1),fe(n)}async function Sp(t,e,r){if(!r)throw new Error("No secure store available");return e?kk(t,e,r):Sk(t,r)}async function lee(t,e){if(!e)throw new Error("No secure store available");return t?oee(t,e):iee(e)}const Cp=Object.entries(st).reduce((t,[e,r])=>(t[r.name]=r.chainId,t),{}),cee=Object.entries(Cp).reduce((t,[e,r])=>(t[r]=e,t),{});function kv(t){const e=typeof t=="number"?t:parseInt(t);if(e in cee)return e;const r=t.toString().toLowerCase();if(r in Cp)return Cp[r];throw new Error(`Unknown network: ${t}`)}const Pk=()=>Rk()?new fee:null;function Rk(){return typeof window=="object"&&typeof window.crypto=="object"&&typeof window.crypto.subtle=="object"}class fee{constructor(){if(!Rk())throw new Error("window.crypto.subtle is not available")}async generateKey(e,r,n){return window.crypto.subtle.generateKey(e,r,n)}async exportKey(e,r){const n=await window.crypto.subtle.exportKey(e,r);return new Uint8Array(n)}async digest(e,r){const n=await window.crypto.subtle.digest(e,r);return new Uint8Array(n)}async sign(e,r,n){const i=await window.crypto.subtle.sign(e,r,n);return new Uint8Array(i)}async verify(e,r,n,i){return window.crypto.subtle.verify(e,r,n,i)}getRandomValues(e){const r=new Uint8Array(e);return window.crypto.getRandomValues(r)}}const Tk=()=>Mk()?new uee:null;function Mk(){return typeof indexedDB=="object"}class uee{constructor(){if(this.db=void 0,!Mk())throw new Error("IndexedDB is not available");this.db=null}async openDB(e,r,n){return this.db?this.db:(this.db=await vG(e,1,{upgrade(i){i.createObjectStore(r)}}),this.db)}async get(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readonly"),o=await i.get(r,n);return await s.done,o}async set(e,r,n,i){const s=await this.openDB(e,r,1),o=s.transaction(r,"readwrite");return await s.put(r,i,n),await o.done,!0}async delete(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readwrite");return await i.delete(r,n),await s.done,!0}}const dee="@0xsequence.waas.wallet",hee="@0xsequence.waas.session_id",vee="@0xsequence.waas.status",Ai=5*60;class yee{constructor(e={network:1},r=new Ak,n=Pk(),i=Tk()){this.config=e,this.store=r,this.cryptoBackend=n,this.secureStoreBackend=i,this.VERSION="0.0.0-dev1",this.status=void 0,this.sessionId=void 0,this.wallet=void 0,this.sessionObservers=[],this.gettingSessionIdPromise=void 0,this.status=new Ad(this.store,vee,"signed-out"),this.sessionId=new Ad(this.store,hee,void 0),this.wallet=new Ad(this.store,dee,void 0)}async getAddress(){return this.getWalletAddress()}async getWalletAddress(){if(!await this.isSignedIn())throw new Error("Not signed in");const e=await this.wallet.get();if(!e)throw new Error("No wallet");return e}async commonArgs(e){var r;return zr({},e,{identifier:e==null?void 0:e.identifier,wallet:await this.getWalletAddress(),lifespan:(r=e==null?void 0:e.lifespan)!=null?r:Ai,chainId:kv(e.network||this.config.network)})}async signIntent(e){const r=await this.sessionId.get();if(r===void 0)throw new Error("session not open");const n=await Sp(r,this.cryptoBackend,this.secureStoreBackend);return mZ(n,e)}async signUsingSessionKey(e){const r=await this.sessionId.get();if(!r)throw new Error("session not open");return(await Sp(r,this.cryptoBackend,this.secureStoreBackend)).sign(e)}async getSessionId(){var e=this;if(this.gettingSessionIdPromise)return this.gettingSessionIdPromise;const r=async function(){let i=await e.sessionId.get();return i||(i=await(await lee(e.cryptoBackend,e.secureStoreBackend)).sessionId(),await e.sessionId.set(i),e.signalObservers(e.sessionObservers,i)),e.gettingSessionIdPromise=void 0,i};return this.gettingSessionIdPromise=r(),this.gettingSessionIdPromise}async signIn({idToken:e}){if(await this.status.get()!=="signed-out")throw await this.completeSignOut(),new Error("you are already signed in");const n=await this.getSessionId(),i=await PZ({idToken:e,sessionId:n,lifespan:Ai});return await this.status.set("pending"),this.signIntent(i)}onSessionStateChanged(e){return this.sessionObservers.push(e),()=>{this.sessionObservers=this.sessionObservers.filter(r=>r!=e)}}async signOut({lifespan:e,sessionId:r}={}){if(r=r||await this.sessionId.get(),!r)throw new Error("session not open");const n=G4({lifespan:e||Ai,sessionId:r});return this.signIntent(n)}async signOutSession(e){const r=G4({lifespan:Ai,sessionId:e});return this.signIntent(r)}async listSessions(){const e=MZ({lifespan:Ai,wallet:await this.getWalletAddress()});return this.signIntent(e)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.wallet.set(void 0),this.sessionId.set(void 0)]),this.signalObservers(this.sessionObservers,null)}async completeSignIn(e){if(e.result)return this.completeSignIn(e.result);const r=await this.status.get();if(e.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending")throw new Error("No pending sign in");return await Promise.all([this.status.set("signed-in"),this.wallet.set(e.data.wallet)]),e.data.wallet}async isSignedIn(){return await this.status.get()==="signed-in"}async sessionAuthProof(e){var r;const n=_Z({lifespan:(r=e.lifespan)!=null?r:Ai,network:kv(e.network||this.config.network).toString(),wallet:await this.getWalletAddress(),nonce:e.nonce});return this.signIntent(n)}async signMessage(e){var r;const n=bZ(zr({chainId:kv(e.network||this.config.network)},e,{lifespan:(r=e.lifespan)!=null?r:Ai,wallet:await this.getWalletAddress()}));return this.signIntent(n)}async sendTransaction(e){const r=au(await this.commonArgs(e));return this.signIntent(r)}async getTransactionReceipt(e){const r=QZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC20(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=YZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC721(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=JZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC1155(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=XZ(await this.commonArgs(e));return this.signIntent(r)}async callContract(e){const r=ZZ(await this.commonArgs(e));return this.signIntent(r)}async feeOptions(e){const r=GZ(await this.commonArgs(e));return this.signIntent(r)}async validateSession({deviceMetadata:e}){const r=await this.sessionId.get();if(!r)throw new Error("session not open");const n=await RZ({lifespan:Ai,sessionId:r,deviceMetadata:e,wallet:await this.getWalletAddress()});return this.signIntent(n)}async getSession(){const e=await this.sessionId.get();if(!e)throw new Error("session not open");const r=IZ({sessionId:e,wallet:await this.getWalletAddress(),lifespan:Ai});return this.signIntent(r)}async finishValidateSession(e,r){const n=await this.sessionId.get();if(!n)throw new Error("session not open");const i=await this.getWalletAddress(),s=TZ({sessionId:n,wallet:i,lifespan:Ai,salt:e,challenge:r});return this.signIntent(s)}async batch(e){const r=tee(e);return this.signIntent(r)}signalObservers(e,r){e.forEach(n=>n(r))}async updateIntentTime(e,r){const n=xZ(e,r);return this.signIntent(n)}}const pee={rpcServer:"http://localhost:9123",emailRegion:"us-east-2"};class mee{constructor(e,r){this.region=e,this.clientId=r,this.cognitoMemo=void 0}cognito(){return this.cognitoMemo||(this.cognitoMemo=new dX({region:this.region})),this.cognitoMemo}signUp(e){return this.cognito().send(new vZ({ClientId:this.clientId,Username:e,Password:"aB1%"+gee(14),UserAttributes:[{Name:"email",Value:e}]}))}signIn(e){return this.cognito().send(new dZ({AuthFlow:"CUSTOM_AUTH",ClientId:this.clientId,AuthParameters:{USERNAME:e}}))}async initiateAuth({email:e}){let r;try{r=await this.signIn(e)}catch(n){if(n instanceof M0&&n.message.includes("user not found"))await this.signUp(e),r=await this.signIn(e);else throw n}if(!r.Session)throw new Error("response session is empty");return{instance:r.Session,email:e}}async finalizeAuth({instance:e,email:r,answer:n,sessionHash:i}){const s=await this.cognito().send(new hZ({ClientId:this.clientId,Session:e,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n},ClientMetadata:{SESSION_HASH:i}}));if(!s.AuthenticationResult||!s.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:s.AuthenticationResult.IdToken}}}function gee(t){return Array.from(xee(t)).map(e=>e.toString(16).padStart(2,"0")).join("")}function xee(t){const e=new Uint8Array(t);if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto.getRandomValues(e);{console.warn("window.crypto.getRandomValues is not available. Falling back to less secure Math.random().");const r=new Uint8Array(t);for(let n=0;n{this.validationRequiredCallback=this.validationRequiredCallback.filter(r=>r!==e)}}async handleValidationRequired({onValidationRequired:e}={}){var r;if(!(e?e():!0))return!1;const i=await this.waas.validateSession({deviceMetadata:(r=await this.deviceName.get())!=null?r:"Unknown device"}),s=await this.sendIntent(i);this.validationRequiredSalt=s.data.salt;for(const o of this.validationRequiredCallback)o();return this.waitForSessionValid()}headers(){return{"X-Access-Key":this.config.projectAccessKey}}async sendIntent(e){if(!await this.waas.getSessionId())throw new Error("session not open");try{return(await this.client.sendIntent({intent:e},this.headers())).response}catch(n){if(Q4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return(await this.client.sendIntent({intent:i},this.headers())).response}throw n}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(e,r){const n=await this.waas.signIn({idToken:e.idToken});if(!xG(e.idToken).iss)throw new Error("Invalid idToken");await this.deviceName.set(r);try{const s=await this.registerSession(n,r);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:s.session.id,wallet:s.response.data.wallet}}),{sessionId:s.session.id,wallet:s.response.data.wallet}}catch(s){throw await this.waas.completeSignOut(),s}}async registerSession(e,r){try{return await this.client.registerSession({intent:e,friendlyName:r},this.headers())}catch(n){if(Q4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return await this.client.registerSession({intent:i,friendlyName:r},this.headers())}throw n}}async refreshSession(){throw new Error("Not implemented")}async getSessionId(){return this.waas.getSessionId()}async getSessionHash(){const e=(await this.waas.getSessionId()).toLowerCase();return Et(sr(e))}async dropSession({sessionId:e,strict:r}={}){const n=await this.waas.getSessionId();if(!n)throw new Error("session not open");const i=e||n;try{const s=await this.waas.signOutSession(i),o=await this.sendIntent(s);if(!UZ(o))throw new Error(`Invalid response: ${JSON.stringify(o)}`)}catch(s){if(r)throw s;console.error(s)}if(i===n){if(!this.secureStoreBackend)throw new Error("No secure store available");(await Sp(n,this.cryptoBackend,this.secureStoreBackend)).clear(),await this.waas.completeSignOut(),await this.deviceName.set(void 0)}}async listSessions(){const e=await this.waas.getSessionId();if(!e)throw new Error("session not open");const r=await this.waas.listSessions();return(await this.sendIntent(r)).data.map(i=>zr({},i,{isThis:i.id===e}))}async getAddress(){return this.waas.getAddress()}async validateSession(e){return await this.isSessionValid()?!0:this.handleValidationRequired(e)}async finishValidateSession(e){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,e),n=await this.sendIntent(r);if(!FZ(n))throw new Error(`Invalid response: ${JSON.stringify(n)}`);return this.validationRequiredSalt="",n.data.isValid}async isSessionValid(){const e=await this.waas.getSession(),r=await this.sendIntent(e);if(!zZ(r))throw new Error(`Invalid response: ${JSON.stringify(r)}`);return r.data.validated}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async sessionAuthProof({nonce:e,network:r,validation:n}){const i=await this.waas.sessionAuthProof({nonce:e,network:r});return await this.trySendIntent({validation:n},i,jZ)}async useIdentifier(e){if(e.identifier)return e;const r=`ts-sdk-${Date.now()}-${await this.waas.getSessionId()}`;return zr({},e,{identifier:r})}async trySendIntent(e,r,n){const i=await this.sendIntent(r);if(n(i))return i;if($Z(i)&&await this.handleValidationRequired(e.validation)){const o=await this.sendIntent(r);if(n(o))return o}throw new Error(JSON.stringify(i))}async signMessage(e){const r=await this.waas.signMessage(await this.useIdentifier(e));return this.trySendIntent(e,r,LZ)}async trySendTransactionIntent(e,r){let n=await this.trySendIntent(r,e,K4);for(;bk(n);){await new Promise(o=>setTimeout(o,1e3));const i={metaTxHash:n.data.metaTxHash,network:e.data.network,identifier:e.data.identifier,validation:r.validation},s=await this.waas.getTransactionReceipt(await this.useIdentifier(i));n=await this.trySendIntent(i,s,K4)}return n}async sendTransaction(e){const r=await this.waas.sendTransaction(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC20(e){const r=await this.waas.sendERC20(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC721(e){const r=await this.waas.sendERC721(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC1155(e){const r=await this.waas.sendERC1155(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async callContract(e){const r=await this.waas.callContract(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async feeOptions(e){const r=await this.waas.feeOptions(await this.useIdentifier(e));return this.trySendIntent(e,r,BZ)}async networkList(){const e=[],r=await this.client.chainList({"X-Access-Key":this.config.projectAccessKey});for(const n of r.chains)e.push({id:n.id,name:n.name,isEnabled:n.isEnabled});return e}onSessionStateChanged(e){return this.waas.onSessionStateChanged(e)}async fetch(e,r){const n=await window.fetch(e,r),i=n.headers.get("date");return i&&(this.lastDate=new Date(i)),n}}async function _0({transactions:t,network:e}){const r=await nt.feeOptions({transactions:t,network:e==null?void 0:e.id});return r.data.feeQuote&&r.data.feeOptions?{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!1}:{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!0}}function O0(t){var s;const{feeOptions:e,onSelected:r}=t,[n,i]=p.useState();return p.useEffect(()=>{e&&e.length>0&&(i(e[0]),r(e[0]))},[e]),p.useEffect(()=>{n&&r(n)},[n]),e?j.jsxs(ee,{marginTop:"5",children:[j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options:"}),j.jsx(ee,{marginTop:"3"}),j.jsx(d0,{name:"chainId",labelLocation:"top",onValueChange:o=>{const a=e.find(l=>l.token.name===o);a&&i(a)},value:(s=n==null?void 0:n.token)==null?void 0:s.name,options:[...e.map(o=>{var a,l,c;return{label:j.jsx(ee,{alignItems:"center",gap:"2",children:j.jsxs(Se,{children:[(a=o==null?void 0:o.token)==null?void 0:a.name," ",Gg(o==null?void 0:o.value,(l=o==null?void 0:o.token)==null?void 0:l.decimals)]})}),value:String((c=o==null?void 0:o.token)==null?void 0:c.name)}})]})]}):j.jsx(ee,{})}const Aee="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function See(t){const[e,r]=p.useState(),[n,i]=p.useState("ETH"),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(),[v,g]=p.useState(!1),[y,w]=p.useState(),[x,b]=p.useState(),[A,P]=p.useState(),[_,D]=p.useState(),[M,L]=p.useState(!1);p.useEffect(()=>{z()},[]),p.useEffect(()=>{var Z,O;if(t.network){const h=DE(t.network.name);if(h){const S=h.name in{polygon:1,mumbai:1}?"MATIC":"ETH";i(S),z(),(Z=h.blockExplorer)!=null&&Z.rootUrl&&o((O=h.blockExplorer)==null?void 0:O.rootUrl)}}},[t.network]);const z=async()=>{if(!t.network)return;const Z=DE(t.network.name);if(!Z)return;const O=await nt.getAddress(),S=await new JC(R9(Z.name),Aee).getEtherBalance({accountAddress:O});r(ae.from(S.balance.balanceWei))},H=async(Z,O)=>{const h=await _0({transactions:[{to:Z,value:NE(O)}],network:t.network});if(h.feeQuote&&h.feeOptions){b(h.feeOptions),D(h.feeQuote),console.log("feeOptions",h);return}L(!0),console.log("tx sponsored")},Y=async(Z,O)=>{var h;try{w(void 0),g(!0);const S=await nt.sendTransaction({transactions:[{to:Z,value:NE(O)}],network:(h=t.network)==null?void 0:h.id,transactionsFeeOption:A,transactionsFeeQuote:_});ou(S)?d(S.data.txHash):w(S.data.error),g(!1)}catch(S){console.error(S),g(!1)}finally{D(void 0),b(void 0),P(void 0),L(!1)}};return j.jsxs(ee,{children:[j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Native token balance: ",WW(e||0)," ",n]}),j.jsx(cr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:z}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"sendNativeTokenTo",type:"text",onChange:Z=>{l(Z.target.value)},value:a,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"sendNativeTokenAmount",type:"text",onChange:Z=>{f(Z.target.value)},value:c,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),y&&j.jsxs(ee,{marginTop:"3",children:["Transaction failed: ",y]}),j.jsx(O0,{feeOptions:x,onSelected:P}),M&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:a===""&&c==="",onClick:()=>H(a,c)}),j.jsx(cr,{marginTop:"5",label:"Send native token",disabled:a===""&&c==="",onClick:()=>Y(a,c)})]}),u&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),j.jsx("br",{}),j.jsx("a",{href:`${s}tx/${u}`,target:"_blank",rel:"noopener noreferrer",children:u})]})]})}function Cee(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState(!0),[o,a]=p.useState(),l=async c=>{s(!0),e(void 0);try{await nt.dropSession({sessionId:c}),e(await nt.listSessions())}catch(f){a(f.message),e(await nt.listSessions())}s(!1)};return p.useEffect(()=>{Promise.all([nt.listSessions(),nt.getSessionId()]).then(([c,f])=>{e(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),j.jsxs(ee,{children:[j.jsxs(ee,{marginBottom:"5",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),t&&j.jsx(j.Fragment,{children:t.map(c=>j.jsx(ee,{children:j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"normal",children:[c.friendlyName,!c.isThis&&j.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&j.jsx(j.Fragment,{children:" (current)"})]})},c.id))}),i&&j.jsx(vi,{})]}),o&&j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function kee(t){const[e,r]=p.useState(""),[n,i]=p.useState(),s=async()=>{var a;const o=await nt.signMessage({message:e,network:(a=t.network)==null?void 0:a.id});i(o.data.signature)};return j.jsxs(ee,{children:[j.jsx(Pr,{name:"signMessageText",type:"text",onChange:o=>{r(o.target.value),n!=""&&i("")},value:e,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),j.jsx(cr,{marginTop:"5",label:"Sign message",disabled:e==="",onClick:()=>s()}),n&&n!==""&&j.jsxs(ee,{flexDirection:"column",marginTop:"5",children:[j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",e,":"]}),j.jsx(ee,{children:j.jsx(Se,{as:"p",wordBreak:"break-word",children:n})})]})]})}function Pee(t){const[e,r]=p.useState(""),[n,i]=p.useState(""),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(),[u,d]=p.useState(!1),[v,g]=p.useState(),[y,w]=p.useState(),[x,b]=p.useState(),[A,P]=p.useState(),[_,D]=p.useState(!1),M=async()=>{const z=await _0({transactions:[wk({to:e,abi:n,func:s,args:JSON.parse(a),value:"0"})],network:t.network});if(z.feeQuote&&z.feeOptions){w(z.feeOptions),P(z.feeQuote),console.log("feeOptions",z);return}D(!0),console.log("tx sponsored")},L=async()=>{var z;try{g(void 0),d(!0);const H=await nt.callContract({network:(z=t.network)==null?void 0:z.id,to:e,abi:n,func:s,args:JSON.parse(a),value:0,transactionsFeeOption:x,transactionsFeeQuote:A});ou(H)?f(H.data.txHash):g(H.data.error),d(!1)}catch(H){console.error(H),d(!1)}};return j.jsxs(ee,{children:[j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractAddress",type:"text",onChange:z=>{r(z.target.value)},value:e,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractAbi",type:"text",onChange:z=>{i(z.target.value)},value:n,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractMethod",type:"text",onChange:z=>{o(z.target.value)},value:s,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractArgs",type:"text",onChange:z=>{l(z.target.value)},value:a,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),j.jsx(O0,{feeOptions:y,onSelected:b}),_&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v&&j.jsxs(ee,{marginTop:"3",children:["Transaction failed: ",v]}),u?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>M()}),j.jsx(cr,{marginTop:"5",label:"Call contract",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>L()})]}),c&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),j.jsx("br",{}),j.jsx("a",{href:`https://polygonscan.com/tx/${c}`,target:"_blank",rel:"noopener noreferrer",children:c})]})]})}const Y4=[{label:"Custom Token",value:"Custom"},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function Ree(t){const[e,r]=p.useState(Y4[0].value),[n,i]=p.useState(""),[s,o]=p.useState(!0),[a,l]=p.useState("---"),[c,f]=p.useState(""),[u,d]=p.useState(""),[v,g]=p.useState(""),[y,w]=p.useState(""),[x,b]=p.useState(!1),[A,P]=p.useState(0),[_,D]=p.useState(),[M,L]=p.useState(),[z,H]=p.useState(),[Y,Z]=p.useState(!1);p.useEffect(()=>{O(n)},[n]);const O=async I=>{var B;if(!Az(I)){l("---");return}l("...");const R=new k9(`https://nodes.sequence.app/${(B=t.network)==null?void 0:B.name}`),N=new jH(I,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],R);try{const[C,m,T]=await Promise.all([N.balanceOf(nt.getAddress()),N.decimals(),N.symbol()]);P(m),l(`${Gg(C,m)} ${T}`)}catch{l("---")}},h=async()=>{const I=await _0({transactions:[cb({token:n,to:c,value:Lf(u,A).toString()})],network:t.network});if(I.feeQuote&&I.feeOptions){D(I.feeOptions),H(I.feeQuote),console.log("feeOptions",I);return}Z(!0),console.log("tx sponsored")},S=async()=>{var I;try{w(""),b(!0);const R=await nt.sendERC20({token:n,to:c,value:Lf(u,A),network:(I=t.network)==null?void 0:I.id,transactionsFeeOption:M,transactionsFeeQuote:z});ou(R)?g(R.data.txHash):w(R.data.error)}catch(R){console.error(R)}finally{b(!1)}},k=I=>{r(I),I==="Custom"?(i(""),o(!0)):(i(I),o(!1))};return j.jsxs(ee,{children:[j.jsxs(ee,{marginTop:"5",children:[j.jsx(d0,{name:"token",options:Y4,value:e??"",onValueChange:I=>k(I)}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:n,disabled:!s,onChange:I=>i(I.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),j.jsxs(ee,{marginTop:"3",children:[j.jsxs(Se,{variant:"normal",color:"text100",children:["Token Balance: ",a]}),j.jsx(cr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>O(n)})]}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:c,onChange:I=>f(I.target.value),placeholder:"Destination Address"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:u,onChange:I=>d(I.target.value),placeholder:"Amount"})}),y&&j.jsx(ee,{marginTop:"3",children:j.jsxs(Se,{color:"error",children:["Error: ",y]})}),j.jsx(O0,{feeOptions:_,onSelected:L}),Y&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),x?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:n===""&&c==="",onClick:()=>h()}),j.jsx(cr,{marginTop:"5",label:"Send Token",onClick:S})]}),v&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),j.jsx("a",{href:`https://polygonscan.com/tx/${v}`,target:"_blank",rel:"noopener noreferrer",children:v})]})]})}const Tee="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function Mee(t){var a;const[e,r]=p.useState(""),[n,i]=p.useState("");p.useEffect(()=>{t.onChange(t.index,e,n)},[e,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return j.jsxs(ee,{style:s,children:[j.jsx(ee,{style:o,children:j.jsx(d0,{name:`sendERC1155TokenId${t.index}`,value:e,disabled:!t.options,onValueChange:l=>{r(l)},options:((a=t.options)==null?void 0:a.balances.map(l=>{var c;return{label:`${((c=l.tokenMetadata)==null?void 0:c.name)||"Unknown"} - ${l.balance}`,value:l.tokenID}}))||[],placeholder:"Select a token"})}),j.jsx(ee,{style:o,children:j.jsx(Pr,{type:"text",value:e,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),j.jsx(ee,{style:o,children:j.jsx(Pr,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),j.jsx(ee,{style:o,children:j.jsx(cr,{label:"Remove",onClick:()=>t.removeTokenEntry(t.index)})})]})}function Iee(t){const[e,r]=p.useState(""),[n,i]=p.useState([]),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(!1),[v,g]=p.useState(void 0),[y,w]=p.useState(),[x,b]=p.useState(),[A,P]=p.useState(),[_,D]=p.useState(!1),M=()=>{i([...n,{tokenId:"",amount:""}])},L=async()=>{if(!e||!t.network)return;const O=t.network.name,h=new JC("https://"+O+"-indexer.sequence.app",Tee),S=e,k=await nt.getAddress(),I=!0;g(await h.getTokenBalances({contractAddress:S,accountAddress:k,includeMetadata:I}))};p.useEffect(()=>{L()},[e]);const z=(O,h)=>{const S=[...n];S[O]=h,i(S)},H=O=>{const h=[...n];h.splice(O,1),i(h)},Y=async()=>{const O=await _0({transactions:[fb({to:s,token:e,values:n.map(h=>({id:h.tokenId,amount:Lf(h.amount,0)}))})],network:t.network});if(O.feeQuote&&O.feeOptions){w(O.feeOptions),P(O.feeQuote),console.log("feeOptions",O);return}D(!0),console.log("tx sponsored")},Z=async()=>{var O;try{f(""),d(!0);const h=await nt.sendERC1155({to:s,token:e,values:n.map(S=>({id:S.tokenId,amount:Lf(S.amount,0)})),network:(O=t.network)==null?void 0:O.id,transactionsFeeOption:x,transactionsFeeQuote:A});ou(h)?l(h.data.txHash):f(h.data.error)}catch(h){console.error(h)}finally{d(!1)}};return j.jsxs(ee,{children:[j.jsx(ee,{marginBottom:"5",children:j.jsx(Pr,{type:"text",value:e,onChange:O=>r(O.target.value),placeholder:"Token Contract Address"})}),j.jsx(ee,{marginBottom:"5",children:j.jsx(cr,{label:"Fetch metadata",onClick:()=>L()})}),n.map((O,h)=>j.jsx(ee,{marginBottom:"3",children:j.jsx(Mee,{index:h,options:v,onChange:(S,k,I)=>z(S,{tokenId:k,amount:I}),removeTokenEntry:H})},h)),j.jsx(cr,{label:"Add Token",onClick:M}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:s,onChange:O=>o(O.target.value),placeholder:"Destination Address"})}),c&&j.jsx(ee,{marginTop:"3",children:j.jsxs(Se,{color:"error",children:["Error: ",c]})}),j.jsx(O0,{feeOptions:y,onSelected:b}),_&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),u?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&s===""&&n.length!==0,onClick:()=>Y()}),j.jsx(cr,{marginTop:"5",label:"Send Tokens",onClick:Z})]}),a&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),j.jsx("a",{href:`https://polygonscan.com/tx/${a}`,target:"_blank",rel:"noopener noreferrer",children:a})]})]})}function _ee(t){var g,y;const[e,r]=p.useState(),[n,i]=p.useState(),[s,o]=p.useState(),[a,l]=p.useState(),[c,f]=p.useState(!1),[u,d]=p.useState(),v=async()=>{var w;try{d(void 0),f(!0);const b=await(await fetch("https://demo-waas-wallet-link-server.tpin.workers.dev/generateNonce",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:t.walletAddress})})).json();o(b.verificationUrl),l(b.nonce);const A=await nt.sessionAuthProof({nonce:b.nonce,network:(w=t.network)==null?void 0:w.name});i(A.data.sessionId),r(A.data.signature),f(!1)}catch(x){console.error(x),f(!1)}};return j.jsxs(ee,{children:[u&&j.jsxs(ee,{marginTop:"3",children:["Transaction failed: ",u]}),c?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsx(ee,{children:j.jsx(cr,{marginTop:"5",label:"Generate EOA Link",disabled:a!==void 0,onClick:()=>v()})}),a&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Verification Link:"}),j.jsx("br",{}),j.jsxs("a",{href:`${s}?nonce=${a}&signature=${e}&sessionId=${n}&chainId=${(g=t.network)==null?void 0:g.id}`,target:"_blank",rel:"noopener noreferrer",children:[s,"?nonce=",a,"&signature=",e,"&sessionId=",n,"&chainId=",(y=t.network)==null?void 0:y.id]})]})]})}const Qu="data:image/png;base64,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",J4="data:image/png;base64,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",Oee="/demo-waas-auth/assets/100-cf3a0cbf.png",Nee="/demo-waas-auth/assets/1101-1d0b8ff9.png",X4="data:image/png;base64,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",Z4="/demo-waas-auth/assets/250-2aa72264.png",eA="/demo-waas-auth/assets/42161-90b816d4.png",Dee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAkxQTFRF////AAAA74Ig8Iwx8ZA4//7974Qj74Mh///+//////78////74Mi//v4//////z5/vfx74Um//37////////////////////////////////////////8ZE774Yn8Y42/fLn////////8Isw////86FW/evc/OXR////+dGt/vPp8Igq++HK+9u/976M8pZE/ezd8Icp+dOx/vbu9KZg/vr2/OjW9a9w9Kll+ti5/e/j/vnz8pxO//r3////8Y838pZD////////////////8Iwy////851Q////+MWX+cyk+tWz+97E8ZI9////8Y0z////////////8ptM/fDk9rZ9972J+93C86Nb8ZM+9riB/OXQ+c+p/OfU/OnY8ZRB////9Kdi9a5u////9axr////////////////////////////////////9Kpn////98KS86Rd/////////vfw/////OPN////859U98GQ////////9rmB+9/G9bJ298CO+Mqg/e3f9bR686JZ8plI9a1t+dKv9bJ18ZA6/vXs8Igs+Mui/e7h/OrZ+Mmf+c6n8phI8Iov86Ve////////+MaZ////8Ikt////+tm7+c2l////++LM98OT8pdG////////+Mid9ruF855S////////////////+Mib////9rN49rd++tq997yG+ta3////98OV////////++DI////////9rV7+tW19bBy/vPq9rqD9Ktp////8ppK////////////////////////Mj9/0QAAAMR0Uk5T/wD/////////Af/+///9/////5/W9TQF4uDZ6MT/////x1L/Av///5b////////////////////////////Q///vCh77/6X/uP//////p/8SDgb/////////////////J///UP8QSyRsVr4rDZr/Wf//bwz/9/9N///8L///////////////////////////////h7H/5P9d///c////j+n////zMuxm/6D//////5v/WFv/MCz///////9U/2M11GLeOHwhNZoAAAr/SURBVHicxVv3Y1RFEJ67JCSXkII5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",tA="data:image/png;base64,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",rA="/demo-waas-auth/assets/56-06b98271.png",dr={MAINNET:1,ROPSTEN:3,RINKEBY:4,GOERLI:5,KOVAN:42,POLYGON:137,POLYGON_MUMBAI:80001,POLYGON_ZKEVM:1101,BSC:56,BSC_TESTNET:97,OPTIMISM:10,OPTIMISM_TESTNET:69,ARBITRUM:42161,ARBITRUM_GOERLI:421613,ARBITRUM_NOVA:42170,AVALANCHE:43114,AVALANCHE_TESTNET:43113,FANTOM:250,FANTOM_TESTNET:4002,GNOSIS:100,AURORA:1313161554,AURORA_TESTNET:1313161556,BASE_GOERLI:84531,HOMEVERSE_TESTNET:40875},Lee={[dr.MAINNET]:Qu,[dr.ROPSTEN]:Qu,[dr.GOERLI]:Qu,[dr.KOVAN]:Qu,[dr.OPTIMISM]:J4,[dr.OPTIMISM_TESTNET]:J4,[dr.POLYGON]:X4,[dr.POLYGON_MUMBAI]:X4,[dr.POLYGON_ZKEVM]:Nee,[dr.ARBITRUM]:eA,[dr.ARBITRUM_NOVA]:Dee,[dr.ARBITRUM_GOERLI]:eA,[dr.GNOSIS]:Oee,[dr.BSC]:rA,[dr.BSC_TESTNET]:rA,[dr.FANTOM]:Z4,[dr.FANTOM_TESTNET]:Z4,[dr.AVALANCHE]:tA,[dr.AVALANCHE_TESTNET]:tA};function jee({onNetworkChange:t}){const[e,r]=p.useState(),[n,i]=p.useState([]);return p.useEffect(()=>{nt.networkList().then(s=>{i(s),r(s[0]),t(s[0])})},[]),n.length===0?j.jsx(ee,{marginY:"5",children:j.jsx(vi,{})}):j.jsxs(ee,{marginBottom:"4",children:[j.jsx(ee,{marginBottom:"4",children:j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Network to use with requests:"})}),j.jsx(ee,{children:j.jsx(d0,{name:"chainId",labelLocation:"top",onValueChange:s=>{const o=n==null?void 0:n.find(a=>a.name===s);o&&(r(o),t(o))},value:e==null?void 0:e.name,options:[...n.map(s=>({label:j.jsxs(ee,{alignItems:"center",gap:"2",children:[j.jsx(B$,{src:Lee[s.id],size:"sm"}),j.jsx(Se,{children:s.name})]}),value:String(s.name)}))]})})]})}function Bee(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState([]),[o,a]=p.useState(!1),[l,c]=p.useState(!1),[f,u]=p.useState();return p.useEffect(()=>{nt.getAddress().then(d=>{e(d)}).catch(d=>{n(d.message)})},[]),p.useEffect(()=>{nt.isSignedIn().then(d=>{d||Uo.navigate("/login")})},[]),p.useEffect(()=>{const d=i.join("");d.length===6&&(c(!0),nt.finishValidateSession(d))},[i]),p.useEffect(()=>{const d=nt.onValidationRequired(()=>{a(!0),nt.waitForSessionValid(6e5,4e3).then(v=>{console.log("isValid",v),s([]),a(!1),c(!1)})});return()=>{d.then(v=>v())}},[]),j.jsxs(j.Fragment,{children:[j.jsx(qS,{children:o&&j.jsx(Wj,{children:j.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:j.jsxs(ee,{flexDirection:"column",alignItems:"center",children:[j.jsx(Se,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),j.jsx(OC,{value:i,digits:6,onChange:s}),j.jsx(ee,{marginTop:"5",children:l&&j.jsx(vi,{})})]})})})}),j.jsxs(ee,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[j.jsx(ee,{marginBottom:"10",children:j.jsx(NC,{})}),j.jsxs(ee,{marginBottom:"5",flexDirection:"row",children:[j.jsxs(Se,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),j.jsx(cr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await nt.dropSession({strict:!1})}catch(d){console.warn(`Could not drop session: ${d.message}`)}mU(),Uo.navigate("/login")}})]}),j.jsx(Ms,{background:"buttonGlass"}),j.jsx(ee,{marginBottom:"5",children:j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),j.jsx(ee,{marginBottom:"5",children:j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"normal",children:t?j.jsx(ee,{children:j.jsx(Se,{children:t})}):j.jsx(vi,{})})}),j.jsx(ee,{marginBottom:"5",children:j.jsx(jee,{onNetworkChange:u})}),j.jsx(ee,{children:r&&j.jsxs(Se,{children:["Error fetching wallet address: ",r]})}),j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Cee,{}),j.jsxs(xa,{marginY:"3",label:"Send native token transaction",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(See,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Send ERC20 transaction",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Ree,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Send ERC1155 transaction",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Iee,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Sign a message",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(kee,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Call contracts",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Pee,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"EOA Link",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(_ee,{network:f,walletAddress:t})]})]})]})}const $ee="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",nA="970987756660-6ibakd38eibf3cg9rq42hri7o0jn5va8.apps.googleusercontent.com",Fee="AQAAAAAAAEGv4rUgioUNUbcdNZlvOZE72JI",Uee="eyJwcm9qZWN0SWQiOjE2ODE1LCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI2N2V2NXVvc3ZxMzVmcGI2OXI3NnJoYnVoIiwicnBjU2VydmVyIjoiaHR0cHM6Ly93YWFzLnNlcXVlbmNlLmFwcCJ9",iA="AQAAAAAAAAK2JvvZhWqZ51riasWBftkrVXE",sA="eyJwcm9qZWN0SWQiOjY5NCwicnBjU2VydmVyIjoiaHR0cHM6Ly9kZXYtd2Fhcy5zZXF1ZW5jZS5hcHAiLCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI1NGF0bjV1cGk2M3FjNTlhMWVtM3ZiaHJzbiJ9";new k9("https://nodes.sequence.app/polygon");const N0=new URLSearchParams(window.location.search),zee=N0.get("env")??"prod";let Ik=N0.get("projectAccessKey")??Fee,_k=N0.get("waasConfigKey")??Uee,Ok=N0.get("googleClientId")??$ee;zee==="dev"&&(console.log("Using dev environment"),console.log(`Project Access Key: ${iA}`),console.log(`Waas Config Key: ${sA}`),console.log(`Google Client ID: ${nA}`),Ik=iA,_k=sA,Ok=nA);const nt=new Eee({network:"polygon",projectAccessKey:Ik,waasConfigKey:_k}),Uo=ZF([{path:"/login",element:j.jsx(iG,{})},{path:"/",element:j.jsx(Bee,{})}]);Pv.createRoot(document.getElementById("root")).render(j.jsx(gr.StrictMode,{children:j.jsx(Uj,{children:j.jsx(dU,{clientId:Ok,children:j.jsx(lU,{router:Uo})})})})); diff --git a/index.html b/index.html index c067296..697935f 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Demo Waas App - +