diff --git a/assets/index-82416acf.js b/assets/index-29d990d4.js similarity index 55% rename from assets/index-82416acf.js rename to assets/index-29d990d4.js index bcca551..cc72e69 100644 --- a/assets/index-82416acf.js +++ b/assets/index-29d990d4.js @@ -1,4 +1,4 @@ -function Uk(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 m4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Oh(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:{}},Lh={},x4={exports:{}},Be={};/** +function Xk(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 kE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function jh(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 RE={exports:{}},zh={},PE={exports:{}},Be={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Uk(t,e){for(var r=0;r>>1,p=T[k];if(0>>1;ki(E,L))Fi(j,E)?(T[k]=j,T[F]=L,k=F):(T[k]=E,T[B]=L,k=B);else if(Fi(j,L))T[k]=j,T[F]=L,k=F;else break e}}return N}function i(T,N){var L=T.sortIndex-N.sortIndex;return L!==0?L: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,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(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 A(T){if(y=!1,S(T),!m)if(r(l)!==null)m=!0,R(_);else{var N=r(c);N!==null&&M(A,N.startTime-T)}}function _(T,N){m=!1,y&&(y=!1,b(O),O=-1),v=!0;var L=d;try{for(S(N),u=r(l);u!==null&&(!(u.expirationTime>N)||T&&!Q());){var k=u.callback;if(typeof k=="function"){u.callback=null,d=u.priorityLevel;var p=k(u.expirationTime<=N);N=t.unstable_now(),typeof p=="function"?u.callback=p:u===r(l)&&n(l),S(N)}else n(l);u=r(l)}if(u!==null)var P=!0;else{var B=r(c);B!==null&&M(A,B.startTime-N),P=!1}return P}finally{u=null,d=L,v=!1}}var D=!1,$=null,O=-1,H=5,Y=-1;function Q(){return!(t.unstable_now()-YT||125k?(T.sortIndex=L,e(c,T),r(l)===null&&T===r(c)&&(y?(b(O),O=-1):y=!0,M(A,L-k))):(T.sortIndex=p,e(l,T),m||v||(m=!0,R(_))),T},t.unstable_shouldYield=Q,t.unstable_wrapCallback=function(T){var N=d;return function(){var L=d;d=N;try{return T.apply(this,arguments)}finally{d=L}}}})(M4);_4.exports=M4;var fR=_4.exports;/** + */(function(t){function e(T,N){var L=T.length;T.push(N);e:for(;0>>1,p=T[k];if(0>>1;ki(E,L))Fi(j,E)?(T[k]=j,T[F]=L,k=F):(T[k]=E,T[B]=L,k=B);else if(Fi(j,L))T[k]=j,T[F]=L,k=F;else break e}}return N}function i(T,N){var L=T.sortIndex-N.sortIndex;return L!==0?L: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,m=!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 S(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 A(T){if(y=!1,S(T),!m)if(r(l)!==null)m=!0,R(_);else{var N=r(c);N!==null&&M(A,N.startTime-T)}}function _(T,N){m=!1,y&&(y=!1,x(O),O=-1),v=!0;var L=d;try{for(S(N),u=r(l);u!==null&&(!(u.expirationTime>N)||T&&!Q());){var k=u.callback;if(typeof k=="function"){u.callback=null,d=u.priorityLevel;var p=k(u.expirationTime<=N);N=t.unstable_now(),typeof p=="function"?u.callback=p:u===r(l)&&n(l),S(N)}else n(l);u=r(l)}if(u!==null)var P=!0;else{var B=r(c);B!==null&&M(A,B.startTime-N),P=!1}return P}finally{u=null,d=L,v=!1}}var D=!1,$=null,O=-1,H=5,Y=-1;function Q(){return!(t.unstable_now()-YT||125k?(T.sortIndex=L,e(c,T),r(l)===null&&T===r(c)&&(y?(x(O),O=-1):y=!0,M(A,L-k))):(T.sortIndex=p,e(l,T),m||v||(m=!0,R(_))),T},t.unstable_shouldYield=Q,t.unstable_wrapCallback=function(T){var N=d;return function(){var L=d;d=N;try{return T.apply(this,arguments)}finally{d=L}}}})(jE);FE.exports=jE;var bR=FE.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function Uk(t,e){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nv=Object.prototype.hasOwnProperty,uR=/^[: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]*$/,kb={},Rb={};function dR(t){return Nv.call(Rb,t)?!0:Nv.call(kb,t)?!1:uR.test(t)?Rb[t]=!0:(kb[t]=!0,!1)}function hR(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 vR(t,e,r,n){if(e===null||typeof e>"u"||hR(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 br={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){br[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];br[e]=new zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){br[t]=new zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){br[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){br[t]=new zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){br[t]=new zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){br[t]=new zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){br[t]=new zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){br[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);br[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);br[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);br[e]=new zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){br[t]=new zr(t,1,!1,t.toLowerCase(),null,!1,!1)});br.xlinkHref=new zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){br[t]=new zr(t,1,!1,t.toLowerCase(),null,!0,!0)});function Np(t,e,r,n){var i=br.hasOwnProperty(e)?br[e]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jv=Object.prototype.hasOwnProperty,wR=/^[: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]*$/,$b={},Db={};function ER(t){return jv.call(Db,t)?!0:jv.call($b,t)?!1:wR.test(t)?Db[t]=!0:($b[t]=!0,!1)}function CR(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 SR(t,e,r,n){if(e===null||typeof e>"u"||CR(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 br={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){br[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];br[e]=new zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){br[t]=new zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){br[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){br[t]=new zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){br[t]=new zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){br[t]=new zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){br[t]=new zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){br[t]=new zr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Bp=/[\-:]([a-z])/g;function Fp(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(Bp,Fp);br[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(Bp,Fp);br[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(Bp,Fp);br[e]=new zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){br[t]=new zr(t,1,!1,t.toLowerCase(),null,!1,!1)});br.xlinkHref=new zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){br[t]=new zr(t,1,!1,t.toLowerCase(),null,!0,!0)});function jp(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{Q0=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Bc(t):""}function yR(t){switch(t.tag){case 5:return Bc(t.type);case 16:return Bc("Lazy");case 13:return Bc("Suspense");case 19:return Bc("SuspenseList");case 0:case 2:case 15:return t=J0(t.type,!1),t;case 11:return t=J0(t.type.render,!1),t;case 1:return t=J0(t.type,!0),t;default:return""}}function Lv(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 ka:return"Fragment";case Aa:return"Portal";case $v:return"Profiler";case $p:return"StrictMode";case Dv:return"Suspense";case Ov:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case D4:return(t.displayName||"Context")+".Consumer";case $4:return(t._context.displayName||"Context")+".Provider";case Dp:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Op:return e=t.displayName||null,e!==null?e:Lv(t.type)||"Memo";case Ms:e=t._payload,t=t._init;try{return Lv(t(e))}catch{}}return null}function pR(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 Lv(e);case 8:return e===$p?"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 Xs(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function L4(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function mR(t){var e=L4(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=mR(t))}function B4(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=L4(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Od(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 Bv(t,e){var r=e.checked;return Dt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Tb(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Xs(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 F4(t,e){e=e.checked,e!=null&&Np(t,"checked",e,!1)}function Fv(t,e){F4(t,e);var r=Xs(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")?jv(t,e.type,r):e.hasOwnProperty("defaultValue")&&jv(t,e.type,Xs(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function _b(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 jv(t,e,r){(e!=="number"||Od(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Fc=Array.isArray;function Ha(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Pu.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function xf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Gc={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},gR=["Webkit","ms","Moz","O"];Object.keys(Gc).forEach(function(t){gR.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Gc[e]=Gc[t]})});function V4(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Gc.hasOwnProperty(t)&&Gc[t]?(""+e).trim():e+"px"}function q4(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=V4(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var xR=Dt({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 Vv(t,e){if(e){if(xR[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(se(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(se(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(se(61))}if(e.style!=null&&typeof e.style!="object")throw Error(se(62))}}function qv(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 Hv=null;function Lp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gv=null,Ga=null,Wa=null;function Nb(t){if(t=ou(t)){if(typeof Gv!="function")throw Error(se(280));var e=t.stateNode;e&&(e=Uh(e),Gv(t.stateNode,t.type,e))}}function H4(t){Ga?Wa?Wa.push(t):Wa=[t]:Ga=t}function G4(){if(Ga){var t=Ga,e=Wa;if(Wa=Ga=null,Nb(t),e)for(t=0;t>>=0,t===0?32:31-(_R(t)/MR|0)|0}var Tu=64,_u=4194304;function jc(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 jd(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=jc(a):(s&=o,s!==0&&(n=jc(s)))}else o=r&~i,o!==0?n=jc(o):s!==0&&(n=jc(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 iu(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ei(e),t[e]=r}function DR(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=Kc),Ub=String.fromCharCode(32),Vb=!1;function d5(t,e){switch(t){case"keyup":return cP.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h5(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ra=!1;function uP(t,e){switch(t){case"compositionend":return h5(e);case"keypress":return e.which!==32?null:(Vb=!0,Ub);case"textInput":return t=e.data,t===Ub&&Vb?null:t;default:return null}}function dP(t,e){if(Ra)return t==="compositionend"||!Hp&&d5(t,e)?(t=f5(),hd=Up=Bs=null,Ra=!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=Wb(r)}}function m5(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?m5(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function g5(){for(var t=window,e=Od();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Od(t.document)}return e}function Gp(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 wP(t){var e=g5(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&m5(r.ownerDocument.documentElement,r)){if(n!==null&&Gp(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=Kb(r,s);var o=Kb(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,Pa=null,Xv=null,Qc=null,Zv=!1;function Yb(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zv||Pa==null||Pa!==Od(n)||(n=Pa,"selectionStart"in n&&Gp(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}),Qc&&Af(Qc,n)||(Qc=n,n=Vd(Xv,"onSelect"),0Ma||(t.current=sy[Ma],sy[Ma]=null,Ma--)}function xt(t,e){Ma++,sy[Ma]=t.current,t.current=e}var Zs={},Tr=fo(Zs),Gr=fo(!1),Vo=Zs;function ll(t,e){var r=t.type.contextTypes;if(!r)return Zs;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 Wr(t){return t=t.childContextTypes,t!=null}function Hd(){St(Gr),St(Tr)}function r2(t,e,r){if(Tr.current!==Zs)throw Error(se(168));xt(Tr,e),xt(Gr,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(se(108,pR(t)||"Unknown",i));return Dt({},r,n)}function Gd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Zs,Vo=Tr.current,xt(Tr,t),xt(Gr,Gr.current),!0}function n2(t,e,r){var n=t.stateNode;if(!n)throw Error(se(169));r?(t=R5(t,e,Vo),n.__reactInternalMemoizedMergedChildContext=t,St(Gr),St(Tr),xt(Tr,t)):St(Gr),xt(Gr,r)}var Zi=null,Vh=!1,u1=!1;function P5(t){Zi===null?Zi=[t]:Zi.push(t)}function NP(t){Vh=!0,P5(t)}function uo(){if(!u1&&Zi!==null){u1=!0;var t=0,e=ot;try{var r=Zi;for(ot=1;t>=o,i-=o,rs=1<<32-ei(e)+i|r<O?(H=$,$=null):H=$.sibling;var Y=d(b,$,S[O],A);if(Y===null){$===null&&($=H);break}t&&$&&Y.alternate===null&&e(b,$),x=s(Y,x,O),D===null?_=Y:D.sibling=Y,D=Y,$=H}if(O===S.length)return r(b,$),Rt&&Co(b,O),_;if($===null){for(;OO?(H=$,$=null):H=$.sibling;var Q=d(b,$,Y.value,A);if(Q===null){$===null&&($=H);break}t&&$&&Q.alternate===null&&e(b,$),x=s(Q,x,O),D===null?_=Q:D.sibling=Q,D=Q,$=H}if(Y.done)return r(b,$),Rt&&Co(b,O),_;if($===null){for(;!Y.done;O++,Y=S.next())Y=u(b,Y.value,A),Y!==null&&(x=s(Y,x,O),D===null?_=Y:D.sibling=Y,D=Y);return Rt&&Co(b,O),_}for($=n(b,$);!Y.done;O++,Y=S.next())Y=v($,b,O,Y.value,A),Y!==null&&(t&&Y.alternate!==null&&$.delete(Y.key===null?O:Y.key),x=s(Y,x,O),D===null?_=Y:D.sibling=Y,D=Y);return t&&$.forEach(function(re){return e(b,re)}),Rt&&Co(b,O),_}function w(b,x,S,A){if(typeof S=="object"&&S!==null&&S.type===ka&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ku:e:{for(var _=S.key,D=x;D!==null;){if(D.key===_){if(_=S.type,_===ka){if(D.tag===7){r(b,D.sibling),x=i(D,S.props.children),x.return=b,b=x;break e}}else if(D.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&f2(_)===D.type){r(b,D.sibling),x=i(D,S.props),x.ref=rc(b,D,S),x.return=b,b=x;break e}r(b,D);break}else e(b,D);D=D.sibling}S.type===ka?(x=Lo(S.props.children,b.mode,A,S.key),x.return=b,b=x):(A=wd(S.type,S.key,S.props,null,b.mode,A),A.ref=rc(b,x,S),A.return=b,b=A)}return o(b);case Aa:e:{for(D=S.key;x!==null;){if(x.key===D)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){r(b,x.sibling),x=i(x,S.children||[]),x.return=b,b=x;break e}else{r(b,x);break}else e(b,x);x=x.sibling}x=x1(S,b.mode,A),x.return=b,b=x}return o(b);case Ms:return D=S._init,w(b,x,D(S._payload),A)}if(Fc(S))return m(b,x,S,A);if(Jl(S))return y(b,x,S,A);Lu(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(r(b,x.sibling),x=i(x,S),x.return=b,b=x):(r(b,x),x=g1(S,b.mode,A),x.return=b,b=x),o(b)):r(b,x)}return w}var fl=O5(!0),L5=O5(!1),au={},$i=fo(au),Tf=fo(au),_f=fo(au);function Mo(t){if(t===au)throw Error(se(174));return t}function tm(t,e){switch(xt(_f,e),xt(Tf,t),xt($i,au),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Uv(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Uv(e,t)}St($i),xt($i,e)}function ul(){St($i),St(Tf),St(_f)}function B5(t){Mo(_f.current);var e=Mo($i.current),r=Uv(e,t.type);e!==r&&(xt(Tf,t),xt($i,r))}function rm(t){Tf.current===t&&(St($i),St(Tf))}var Mt=fo(0);function Xd(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var d1=[];function nm(){for(var t=0;tr?r:4,t(!0);var n=h1.transition;h1.transition={};try{t(!1),e()}finally{ot=r,h1.transition=n}}function e8(){return Pn().memoizedState}function LP(t,e,r){var n=Gs(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},t8(t))r8(e,r);else if(r=I5(t,e,r,n),r!==null){var i=Fr();ti(r,t,n,i),n8(r,e,n)}}function BP(t,e,r){var n=Gs(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(t8(t))r8(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,ii(a,o)){var l=e.interleaved;l===null?(i.next=i,Zp(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=I5(t,e,i,n),r!==null&&(i=Fr(),ti(r,t,n,i),n8(r,e,n))}}function t8(t){var e=t.alternate;return t===$t||e!==null&&e===$t}function r8(t,e){Jc=Zd=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function n8(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Fp(t,r)}}var eh={readContext:Rn,useCallback:Cr,useContext:Cr,useEffect:Cr,useImperativeHandle:Cr,useInsertionEffect:Cr,useLayoutEffect:Cr,useMemo:Cr,useReducer:Cr,useRef:Cr,useState:Cr,useDebugValue:Cr,useDeferredValue:Cr,useTransition:Cr,useMutableSource:Cr,useSyncExternalStore:Cr,useId:Cr,unstable_isNewReconciler:!1},FP={readContext:Rn,useCallback:function(t,e){return mi().memoizedState=[t,e===void 0?null:e],t},useContext:Rn,useEffect:d2,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,md(4194308,4,Y5.bind(null,e,t),r)},useLayoutEffect:function(t,e){return md(4194308,4,t,e)},useInsertionEffect:function(t,e){return md(4,2,t,e)},useMemo:function(t,e){var r=mi();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=mi();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=LP.bind(null,$t,t),[n.memoizedState,t]},useRef:function(t){var e=mi();return t={current:t},e.memoizedState=t},useState:u2,useDebugValue:lm,useDeferredValue:function(t){return mi().memoizedState=t},useTransition:function(){var t=u2(!1),e=t[0];return t=OP.bind(null,t[1]),mi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=$t,i=mi();if(Rt){if(r===void 0)throw Error(se(407));r=r()}else{if(r=e(),dr===null)throw Error(se(349));Ho&30||z5(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,d2(V5.bind(null,n,s,t),[t]),n.flags|=2048,Nf(9,U5.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=mi(),e=dr.identifierPrefix;if(Rt){var r=ns,n=rs;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Mf++,0")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{r1=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Fc(t):""}function AR(t){switch(t.tag){case 5:return Fc(t.type);case 16:return Fc("Lazy");case 13:return Fc("Suspense");case 19:return Fc("SuspenseList");case 0:case 2:case 15:return t=n1(t.type,!1),t;case 11:return t=n1(t.type.render,!1),t;case 1:return t=n1(t.type,!0),t;default:return""}}function qv(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 Ra:return"Fragment";case ka:return"Portal";case zv:return"Profiler";case zp:return"StrictMode";case Uv:return"Suspense";case Vv:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case qE:return(t.displayName||"Context")+".Consumer";case VE:return(t._context.displayName||"Context")+".Provider";case Up:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Vp:return e=t.displayName||null,e!==null?e:qv(t.type)||"Memo";case Ns:e=t._payload,t=t._init;try{return qv(t(e))}catch{}}return null}function kR(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 qv(e);case 8:return e===zp?"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 eo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function GE(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function RR(t){var e=GE(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 _u(t){t._valueTracker||(t._valueTracker=RR(t))}function WE(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=GE(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Fd(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 Hv(t,e){var r=e.checked;return Dt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Lb(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=eo(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 KE(t,e){e=e.checked,e!=null&&jp(t,"checked",e,!1)}function Gv(t,e){KE(t,e);var r=eo(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")?Wv(t,e.type,r):e.hasOwnProperty("defaultValue")&&Wv(t,e.type,eo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Bb(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 Wv(t,e,r){(e!=="number"||Fd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var jc=Array.isArray;function Ga(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Mu.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function bf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Wc={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},PR=["Webkit","ms","Moz","O"];Object.keys(Wc).forEach(function(t){PR.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Wc[e]=Wc[t]})});function XE(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Wc.hasOwnProperty(t)&&Wc[t]?(""+e).trim():e+"px"}function ZE(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=XE(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var TR=Dt({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 Qv(t,e){if(e){if(TR[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(se(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(se(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(se(61))}if(e.style!=null&&typeof e.style!="object")throw Error(se(62))}}function Jv(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 Xv=null;function qp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Zv=null,Wa=null,Ka=null;function zb(t){if(t=au(t)){if(typeof Zv!="function")throw Error(se(280));var e=t.stateNode;e&&(e=Gh(e),Zv(t.stateNode,t.type,e))}}function e5(t){Wa?Ka?Ka.push(t):Ka=[t]:Wa=t}function t5(){if(Wa){var t=Wa,e=Ka;if(Ka=Wa=null,zb(t),e)for(t=0;t>>=0,t===0?32:31-(jR(t)/zR|0)|0}var Iu=64,Nu=4194304;function zc(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 Vd(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=zc(a):(s&=o,s!==0&&(n=zc(s)))}else o=r&~i,o!==0?n=zc(o):s!==0&&(n=zc(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 su(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ei(e),t[e]=r}function HR(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=Yc),Qb=String.fromCharCode(32),Jb=!1;function w5(t,e){switch(t){case"keyup":return xP.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E5(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pa=!1;function wP(t,e){switch(t){case"compositionend":return E5(e);case"keypress":return e.which!==32?null:(Jb=!0,Qb);case"textInput":return t=e.data,t===Qb&&Jb?null:t;default:return null}}function EP(t,e){if(Pa)return t==="compositionend"||!Xp&&w5(t,e)?(t=x5(),pd=Yp=js=null,Pa=!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=t2(r)}}function k5(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?k5(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function R5(){for(var t=window,e=Fd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Fd(t.document)}return e}function Zp(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 MP(t){var e=R5(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&k5(r.ownerDocument.documentElement,r)){if(n!==null&&Zp(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=r2(r,s);var o=r2(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,Ta=null,sy=null,Jc=null,oy=!1;function n2(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;oy||Ta==null||Ta!==Fd(n)||(n=Ta,"selectionStart"in n&&Zp(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}),Jc&&kf(Jc,n)||(Jc=n,n=Gd(sy,"onSelect"),0Ia||(t.current=dy[Ia],dy[Ia]=null,Ia--)}function xt(t,e){Ia++,dy[Ia]=t.current,t.current=e}var to={},Tr=uo(to),Gr=uo(!1),Ho=to;function ll(t,e){var r=t.type.contextTypes;if(!r)return to;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 Wr(t){return t=t.childContextTypes,t!=null}function Kd(){St(Gr),St(Tr)}function f2(t,e,r){if(Tr.current!==to)throw Error(se(168));xt(Tr,e),xt(Gr,r)}function O5(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(se(108,kR(t)||"Unknown",i));return Dt({},r,n)}function Yd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||to,Ho=Tr.current,xt(Tr,t),xt(Gr,Gr.current),!0}function u2(t,e,r){var n=t.stateNode;if(!n)throw Error(se(169));r?(t=O5(t,e,Ho),n.__reactInternalMemoizedMergedChildContext=t,St(Gr),St(Tr),xt(Tr,t)):St(Gr),xt(Gr,r)}var Zi=null,Wh=!1,m1=!1;function L5(t){Zi===null?Zi=[t]:Zi.push(t)}function VP(t){Wh=!0,L5(t)}function ho(){if(!m1&&Zi!==null){m1=!0;var t=0,e=ot;try{var r=Zi;for(ot=1;t>=o,i-=o,rs=1<<32-ei(e)+i|r<O?(H=$,$=null):H=$.sibling;var Y=d(x,$,S[O],A);if(Y===null){$===null&&($=H);break}t&&$&&Y.alternate===null&&e(x,$),b=s(Y,b,O),D===null?_=Y:D.sibling=Y,D=Y,$=H}if(O===S.length)return r(x,$),Rt&&So(x,O),_;if($===null){for(;OO?(H=$,$=null):H=$.sibling;var Q=d(x,$,Y.value,A);if(Q===null){$===null&&($=H);break}t&&$&&Q.alternate===null&&e(x,$),b=s(Q,b,O),D===null?_=Q:D.sibling=Q,D=Q,$=H}if(Y.done)return r(x,$),Rt&&So(x,O),_;if($===null){for(;!Y.done;O++,Y=S.next())Y=u(x,Y.value,A),Y!==null&&(b=s(Y,b,O),D===null?_=Y:D.sibling=Y,D=Y);return Rt&&So(x,O),_}for($=n(x,$);!Y.done;O++,Y=S.next())Y=v($,x,O,Y.value,A),Y!==null&&(t&&Y.alternate!==null&&$.delete(Y.key===null?O:Y.key),b=s(Y,b,O),D===null?_=Y:D.sibling=Y,D=Y);return t&&$.forEach(function(re){return e(x,re)}),Rt&&So(x,O),_}function w(x,b,S,A){if(typeof S=="object"&&S!==null&&S.type===Ra&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Tu:e:{for(var _=S.key,D=b;D!==null;){if(D.key===_){if(_=S.type,_===Ra){if(D.tag===7){r(x,D.sibling),b=i(D,S.props.children),b.return=x,x=b;break e}}else if(D.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ns&&g2(_)===D.type){r(x,D.sibling),b=i(D,S.props),b.ref=nc(x,D,S),b.return=x,x=b;break e}r(x,D);break}else e(x,D);D=D.sibling}S.type===Ra?(b=Fo(S.props.children,x.mode,A,S.key),b.return=x,x=b):(A=Sd(S.type,S.key,S.props,null,x.mode,A),A.ref=nc(x,b,S),A.return=x,x=A)}return o(x);case ka:e:{for(D=S.key;b!==null;){if(b.key===D)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){r(x,b.sibling),b=i(b,S.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else e(x,b);b=b.sibling}b=A1(S,x.mode,A),b.return=x,x=b}return o(x);case Ns:return D=S._init,w(x,b,D(S._payload),A)}if(jc(S))return m(x,b,S,A);if(Xl(S))return y(x,b,S,A);ju(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(r(x,b.sibling),b=i(b,S),b.return=x,x=b):(r(x,b),b=S1(S,x.mode,A),b.return=x,x=b),o(x)):r(x,b)}return w}var fl=H5(!0),G5=H5(!1),lu={},Di=uo(lu),_f=uo(lu),Mf=uo(lu);function Io(t){if(t===lu)throw Error(se(174));return t}function lm(t,e){switch(xt(Mf,e),xt(_f,t),xt(Di,lu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Yv(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Yv(e,t)}St(Di),xt(Di,e)}function ul(){St(Di),St(_f),St(Mf)}function W5(t){Io(Mf.current);var e=Io(Di.current),r=Yv(e,t.type);e!==r&&(xt(_f,t),xt(Di,r))}function cm(t){_f.current===t&&(St(Di),St(_f))}var It=uo(0);function th(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var g1=[];function fm(){for(var t=0;tr?r:4,t(!0);var n=x1.transition;x1.transition={};try{t(!1),e()}finally{ot=r,x1.transition=n}}function c8(){return Pn().memoizedState}function WP(t,e,r){var n=Ks(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},f8(t))u8(e,r);else if(r=z5(t,e,r,n),r!==null){var i=Fr();ti(r,t,n,i),d8(r,e,n)}}function KP(t,e,r){var n=Ks(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(f8(t))u8(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,ii(a,o)){var l=e.interleaved;l===null?(i.next=i,om(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=z5(t,e,i,n),r!==null&&(i=Fr(),ti(r,t,n,i),d8(r,e,n))}}function f8(t){var e=t.alternate;return t===$t||e!==null&&e===$t}function u8(t,e){Xc=rh=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function d8(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Gp(t,r)}}var nh={readContext:Rn,useCallback:Cr,useContext:Cr,useEffect:Cr,useImperativeHandle:Cr,useInsertionEffect:Cr,useLayoutEffect:Cr,useMemo:Cr,useReducer:Cr,useRef:Cr,useState:Cr,useDebugValue:Cr,useDeferredValue:Cr,useTransition:Cr,useMutableSource:Cr,useSyncExternalStore:Cr,useId:Cr,unstable_isNewReconciler:!1},YP={readContext:Rn,useCallback:function(t,e){return gi().memoizedState=[t,e===void 0?null:e],t},useContext:Rn,useEffect:b2,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,bd(4194308,4,i8.bind(null,e,t),r)},useLayoutEffect:function(t,e){return bd(4194308,4,t,e)},useInsertionEffect:function(t,e){return bd(4,2,t,e)},useMemo:function(t,e){var r=gi();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=gi();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=WP.bind(null,$t,t),[n.memoizedState,t]},useRef:function(t){var e=gi();return t={current:t},e.memoizedState=t},useState:x2,useDebugValue:ym,useDeferredValue:function(t){return gi().memoizedState=t},useTransition:function(){var t=x2(!1),e=t[0];return t=GP.bind(null,t[1]),gi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=$t,i=gi();if(Rt){if(r===void 0)throw Error(se(407));r=r()}else{if(r=e(),dr===null)throw Error(se(349));Wo&30||Q5(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,b2(X5.bind(null,n,s,t),[t]),n.flags|=2048,$f(9,J5.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=gi(),e=dr.identifierPrefix;if(Rt){var r=ns,n=rs;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=If++,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[wi]=e,t[Pf]=n,d8(t,e,!1,!1),e.stateNode=t;e:{switch(o=qv(r,n),r){case"dialog":Ct("cancel",t),Ct("close",t),i=n;break;case"iframe":case"object":case"embed":Ct("load",t),i=n;break;case"video":case"audio":for(i=0;ihl&&(e.flags|=128,n=!0,nc(s,!1),e.lanes=4194304)}else{if(!n)if(t=Xd(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),nc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Rt)return Sr(e),null}else 2*Wt()-s.renderingStartTime>hl&&r!==1073741824&&(e.flags|=128,n=!0,nc(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=Wt(),e.sibling=null,r=Mt.current,xt(Mt,n?r&1|2:r&1),e):(Sr(e),null);case 22:case 23:return vm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?tn&1073741824&&(Sr(e),e.subtreeFlags&6&&(e.flags|=8192)):Sr(e),null;case 24:return null;case 25:return null}throw Error(se(156,e.tag))}function WP(t,e){switch(Kp(e),e.tag){case 1:return Wr(e.type)&&Hd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ul(),St(Gr),St(Tr),nm(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return rm(e),null;case 13:if(St(Mt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(se(340));cl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return St(Mt),null;case 4:return ul(),null;case 10:return Xp(e.type._context),null;case 22:case 23:return vm(),null;case 24:return null;default:return null}}var Fu=!1,Ar=!1,KP=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Da(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ft(t,e,n)}else r.current=null}function my(t,e,r){try{r()}catch(n){Ft(t,e,n)}}var w2=!1;function YP(t,e){if(ey=zd,t=g5(),Gp(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(ty={focusedElem:t,selectionRange:r},zd=!1,pe=e;pe!==null;)if(e=pe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,pe=t;else for(;pe!==null;){e=pe;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,b=e.stateNode,x=b.getSnapshotBeforeUpdate(e.elementType===e.type?y:Wn(e.type,y),w);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=e.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(se(163))}}catch(A){Ft(e,e.return,A)}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}return m=w2,w2=!1,m}function Xc(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&&my(e,r,s)}i=i.next}while(i!==n)}}function Gh(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 gy(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 y8(t){var e=t.alternate;e!==null&&(t.alternate=null,y8(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[wi],delete e[Pf],delete e[iy],delete e[MP],delete e[IP])),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 p8(t){return t.tag===5||t.tag===3||t.tag===4}function E2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||p8(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 xy(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=qd));else if(n!==4&&(t=t.child,t!==null))for(xy(t,e,r),t=t.sibling;t!==null;)xy(t,e,r),t=t.sibling}function by(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(by(t,e,r),t=t.sibling;t!==null;)by(t,e,r),t=t.sibling}var mr=null,Yn=!1;function Ss(t,e,r){for(r=r.child;r!==null;)m8(t,e,r),r=r.sibling}function m8(t,e,r){if(Ni&&typeof Ni.onCommitFiberUnmount=="function")try{Ni.onCommitFiberUnmount(Bh,r)}catch{}switch(r.tag){case 5:Ar||Da(r,e);case 6:var n=mr,i=Yn;mr=null,Ss(t,e,r),mr=n,Yn=i,mr!==null&&(Yn?(t=mr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):mr.removeChild(r.stateNode));break;case 18:mr!==null&&(Yn?(t=mr,r=r.stateNode,t.nodeType===8?f1(t.parentNode,r):t.nodeType===1&&f1(t,r),Cf(t)):f1(mr,r.stateNode));break;case 4:n=mr,i=Yn,mr=r.stateNode.containerInfo,Yn=!0,Ss(t,e,r),mr=n,Yn=i;break;case 0:case 11:case 14:case 15:if(!Ar&&(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)&&my(r,e,o),i=i.next}while(i!==n)}Ss(t,e,r);break;case 1:if(!Ar&&(Da(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ft(r,e,a)}Ss(t,e,r);break;case 21:Ss(t,e,r);break;case 22:r.mode&1?(Ar=(n=Ar)||r.memoizedState!==null,Ss(t,e,r),Ar=n):Ss(t,e,r);break;default:Ss(t,e,r)}}function C2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new KP),e.forEach(function(n){var i=iT.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=Wt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*JP(n/1960))-n,10t?16:t,Fs===null)var n=!1;else{if(t=Fs,Fs=null,nh=0,Ke&6)throw Error(se(331));var i=Ke;for(Ke|=4,pe=t.current;pe!==null;){var s=pe,o=s.child;if(pe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lWt()-dm?Oo(t,0):um|=r),Kr(t,e)}function A8(t,e){e===0&&(t.mode&1?(e=_u,_u<<=1,!(_u&130023424)&&(_u=4194304)):e=1);var r=Fr();t=hs(t,e),t!==null&&(iu(t,e,r),Kr(t,r))}function nT(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),A8(t,r)}function iT(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(se(314))}n!==null&&n.delete(e),A8(t,r)}var k8;k8=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Gr.current)Hr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Hr=!1,HP(t,e,r);Hr=!!(t.flags&131072)}else Hr=!1,Rt&&e.flags&1048576&&T5(e,Kd,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;gd(t,e),t=e.pendingProps;var i=ll(e,Tr.current);Ya(e,r),i=sm(null,e,n,t,i,r);var s=om();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,Wr(n)?(s=!0,Gd(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,em(e),i.updater=qh,e.stateNode=i,i._reactInternals=e,fy(e,n,t,r),e=hy(null,e,n,!0,s,r)):(e.tag=0,Rt&&s&&Wp(e),Lr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(gd(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=oT(n),t=Wn(n,t),i){case 0:e=dy(null,e,n,t,r);break e;case 1:e=g2(null,e,n,t,r);break e;case 11:e=p2(null,e,n,t,r);break e;case 14:e=m2(null,e,n,Wn(n.type,t),r);break e}throw Error(se(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),dy(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),g2(t,e,n,i,r);case 3:e:{if(c8(e),t===null)throw Error(se(387));n=e.pendingProps,s=e.memoizedState,i=s.element,N5(t,e),Jd(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=dl(Error(se(423)),e),e=x2(t,e,n,r,i);break e}else if(n!==i){i=dl(Error(se(424)),e),e=x2(t,e,n,r,i);break e}else for(on=Vs(e.stateNode.containerInfo.firstChild),ln=e,Rt=!0,Jn=null,r=L5(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(cl(),n===i){e=vs(t,e,r);break e}Lr(t,e,n,r)}e=e.child}return e;case 5:return B5(e),t===null&&ay(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,ry(n,i)?o=null:s!==null&&ry(n,s)&&(e.flags|=32),l8(t,e),Lr(t,e,o,r),e.child;case 6:return t===null&&ay(e),null;case 13:return f8(t,e,r);case 4:return tm(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=fl(e,null,n,r):Lr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),p2(t,e,n,i,r);case 7:return Lr(t,e,e.pendingProps,r),e.child;case 8:return Lr(t,e,e.pendingProps.children,r),e.child;case 12:return Lr(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,xt(Yd,n._currentValue),n._currentValue=o,s!==null)if(ii(s.value,o)){if(s.children===i.children&&!Gr.current){e=vs(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=os(-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),ly(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(se(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),ly(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}Lr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,Ya(e,r),i=Rn(i),n=n(i),e.flags|=1,Lr(t,e,n,r),e.child;case 14:return n=e.type,i=Wn(n,e.pendingProps),i=Wn(n.type,i),m2(t,e,n,i,r);case 15:return o8(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),gd(t,e),e.tag=1,Wr(n)?(t=!0,Gd(e)):t=!1,Ya(e,r),D5(e,n,i),fy(e,n,i,r),hy(null,e,n,!0,t,r);case 19:return u8(t,e,r);case 22:return a8(t,e,r)}throw Error(se(156,e.tag))};function R8(t,e){return Z4(t,e)}function sT(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 Sn(t,e,r,n){return new sT(t,e,r,n)}function pm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function oT(t){if(typeof t=="function")return pm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Dp)return 11;if(t===Op)return 14}return 2}function Ws(t,e){var r=t.alternate;return r===null?(r=Sn(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 wd(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")pm(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case ka:return Lo(r.children,i,s,e);case $p:o=8,i|=8;break;case $v:return t=Sn(12,r,e,i|2),t.elementType=$v,t.lanes=s,t;case Dv:return t=Sn(13,r,e,i),t.elementType=Dv,t.lanes=s,t;case Ov:return t=Sn(19,r,e,i),t.elementType=Ov,t.lanes=s,t;case O4:return Kh(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $4:o=10;break e;case D4:o=9;break e;case Dp:o=11;break e;case Op:o=14;break e;case Ms:o=16,n=null;break e}throw Error(se(130,t==null?t:typeof t,""))}return e=Sn(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Lo(t,e,r,n){return t=Sn(7,t,n,e),t.lanes=r,t}function Kh(t,e,r,n){return t=Sn(22,t,n,e),t.elementType=O4,t.lanes=r,t.stateNode={isHidden:!1},t}function g1(t,e,r){return t=Sn(6,t,null,e),t.lanes=r,t}function x1(t,e,r){return e=Sn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function aT(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=Z0(0),this.expirationTimes=Z0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Z0(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mm(t,e,r,n,i,s,o,a,l){return t=new aT(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Sn(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},em(s),t}function lT(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M8)}catch(t){console.error(t)}}M8(),T4.exports=hn;var ho=T4.exports;const hT=lo(ho);var M2=ho;Iv.createRoot=M2.createRoot,Iv.hydrateRoot=M2.hydrateRoot;const I8=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Zh=g.createContext({}),e0=g.createContext(null),t0=typeof document<"u",wm=t0?g.useLayoutEffect:g.useEffect,N8=g.createContext({strict:!1});function vT(t,e,r,n){const{visualElement:i}=g.useContext(Zh),s=g.useContext(N8),o=g.useContext(e0),a=g.useContext(I8).reducedMotion,l=g.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;g.useInsertionEffect(()=>{c&&c.update(r,o)});const f=g.useRef(!!window.HandoffAppearAnimations);return wm(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),c}function La(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function yT(t,e,r){return g.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):La(r)&&(r.current=n))},[e])}function Df(t){return typeof t=="string"||Array.isArray(t)}function r0(t){return typeof t=="object"&&typeof t.start=="function"}const Em=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cm=["initial",...Em];function n0(t){return r0(t.animate)||Cm.some(e=>Df(t[e]))}function $8(t){return!!(n0(t)||t.variants)}function pT(t,e){if(n0(t)){const{initial:r,animate:n}=t;return{initial:r===!1||Df(r)?r:void 0,animate:Df(n)?n:void 0}}return t.inherit!==!1?e:{}}function mT(t){const{initial:e,animate:r}=pT(t,g.useContext(Zh));return g.useMemo(()=>({initial:e,animate:r}),[I2(e),I2(r)])}function I2(t){return Array.isArray(t)?t.join(" "):t}const N2={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"]},Of={};for(const t in N2)Of[t]={isEnabled:e=>N2[t].some(r=>!!e[r])};function gT(t){for(const e in t)Of[e]={...Of[e],...t[e]}}const Sm=g.createContext({}),D8=g.createContext({}),xT=Symbol.for("motionComponentSymbol");function bT({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&gT(t);function s(a,l){let c;const f={...g.useContext(I8),...a,layoutId:wT(a)},{isStatic:u}=f,d=mT(a),v=n(a,u);if(!u&&t0){d.visualElement=vT(i,v,f,e);const m=g.useContext(D8),y=g.useContext(N8).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,t,m))}return g.createElement(Zh.Provider,{value:d},c&&d.visualElement?g.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,yT(v,d.visualElement,l),v,u,d.visualElement))}const o=g.forwardRef(s);return o[xT]=i,o}function wT({layoutId:t}){const e=g.useContext(Sm).id;return e&&t!==void 0?e+"-"+t:t}function ET(t){function e(n,i={}){return bT(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 CT=["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 Am(t){return typeof t!="string"||t.includes("-")?!1:!!(CT.indexOf(t)>-1||/[A-Z]/.test(t))}const oh={};function ST(t){Object.assign(oh,t)}const lu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sa=new Set(lu);function O8(t,{layout:e,layoutId:r}){return sa.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!oh[t]||t==="opacity")}const Qr=t=>!!(t&&t.getVelocity),AT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kT=lu.length;function RT(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),B8=L8("--"),Ay=L8("var(--"),PT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,TT=(t,e)=>e&&typeof t=="number"?e.transform(t):t,eo=(t,e,r)=>Math.min(Math.max(r,t),e),oa={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},tf={...oa,transform:t=>eo(0,1,t)},Uu={...oa,default:1},rf=t=>Math.round(t*1e5)/1e5,i0=/(-)?([\d]*\.?[\d])+/g,F8=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,_T=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function cu(t){return typeof t=="string"}const fu=t=>({test:e=>cu(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ps=fu("deg"),Di=fu("%"),Ce=fu("px"),MT=fu("vh"),IT=fu("vw"),$2={...Di,parse:t=>Di.parse(t)/100,transform:t=>Di.transform(t*100)},D2={...oa,transform:Math.round},j8={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,size:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,rotate:Ps,rotateX:Ps,rotateY:Ps,rotateZ:Ps,scale:Uu,scaleX:Uu,scaleY:Uu,scaleZ:Uu,skew:Ps,skewX:Ps,skewY:Ps,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:tf,originX:$2,originY:$2,originZ:Ce,zIndex:D2,fillOpacity:tf,strokeOpacity:tf,numOctaves:D2};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(B8(u)){s[u]=d;continue}const v=j8[u],m=TT(d,v);if(sa.has(u)){if(l=!0,o[u]=m,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=m):i[u]=m}if(e.transform||(l||n?i.transform=RT(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 Rm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function z8(t,e,r){for(const n in e)!Qr(e[n])&&!O8(n,r)&&(t[n]=e[n])}function NT({transformTemplate:t},e,r){return g.useMemo(()=>{const n=Rm();return km(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function $T(t,e,r){const n=t.style||{},i={};return z8(i,n,t),Object.assign(i,NT(t,e,r)),t.transformValues?t.transformValues(i):i}function DT(t,e,r){const n={},i=$T(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 OT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ah(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||OT.has(t)}let U8=t=>!ah(t);function LT(t){t&&(U8=e=>e.startsWith("on")?!ah(e):t(e))}try{LT(require("@emotion/is-prop-valid").default)}catch{}function BT(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(U8(i)||r===!0&&ah(i)||!e&&!ah(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function O2(t,e,r){return typeof t=="string"?t:Ce.transform(e+r*t)}function FT(t,e,r){const n=O2(e,t.x,t.width),i=O2(r,t.y,t.height);return`${n} ${i}`}const jT={offset:"stroke-dashoffset",array:"stroke-dasharray"},zT={offset:"strokeDashoffset",array:"strokeDasharray"};function UT(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?jT:zT;t[s.offset]=Ce.transform(-n);const o=Ce.transform(e),a=Ce.transform(r);t[s.array]=`${o} ${a}`}function Pm(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:m,dimensions:y}=t;v.transform&&(y&&(m.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=FT(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&&UT(v,o,a,l,!1)}const V8=()=>({...Rm(),attrs:{}}),Tm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function VT(t,e,r,n){const i=g.useMemo(()=>{const s=V8();return Pm(s,e,{enableHardwareAcceleration:!1},Tm(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};z8(s,t.style,t),i.style={...s,...i.style}}return i}function qT(t=!1){return(r,n,i,{latestValues:s},o)=>{const l=(Am(r)?VT:DT)(n,s,o,r),f={...BT(n,typeof r=="string",t),...l,ref:i},{children:u}=n,d=g.useMemo(()=>Qr(u)?u.get():u,[u]);return g.createElement(r,{...f,children:d})}}const _m=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function q8(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 H8=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 G8(t,e,r,n){q8(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(H8.has(i)?i:_m(i),e.attrs[i])}function Mm(t,e){const{style:r}=t,n={};for(const i in r)(Qr(r[i])||e.style&&Qr(e.style[i])||O8(i,t))&&(n[i]=r[i]);return n}function W8(t,e){const r=Mm(t,e);for(const n in t)if(Qr(t[n])||Qr(e[n])){const i=lu.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 K8(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const lh=t=>Array.isArray(t),HT=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),GT=t=>lh(t)?t[t.length-1]||0:t;function Ed(t){const e=Qr(t)?t.get():t;return HT(e)?e.toValue():e}function WT({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:KT(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const Y8=t=>(e,r)=>{const n=g.useContext(Zh),i=g.useContext(e0),s=()=>WT(t,e,n,i);return r?s():K8(s)};function KT(t,e,r,n){const i={},s=n(t,{});for(const d in s)i[d]=Ed(s[d]);let{initial:o,animate:a}=t;const l=n0(t),c=$8(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"&&!r0(u)&&(Array.isArray(u)?u:[u]).forEach(v=>{const m=Im(t,v);if(!m)return;const{transitionEnd:y,transition:w,...b}=m;for(const x in b){let S=b[x];if(Array.isArray(S)){const A=f?S.length-1:0;S=S[A]}S!==null&&(i[x]=S)}for(const x in y)i[x]=y[x]}),i}const jt=t=>t;class L2{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 YT(t){let e=new L2,r=new L2,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]=YT(()=>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,QT),1),i.timestamp=u,i.isProcessing=!0,Vu.forEach(o),i.isProcessing=!1,r&&e&&(n=!1,t(a))},l=()=>{r=!0,n=!0,i.isProcessing||t(a)};return{schedule:Vu.reduce((u,d)=>{const v=s[d];return u[d]=(m,y=!1,w=!1)=>(r||l(),v.schedule(m,y,w)),u},{}),cancel:u=>Vu.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:wt,cancel:ys,state:lr,steps:b1}=JT(typeof requestAnimationFrame<"u"?requestAnimationFrame:jt,!0),XT={useVisualState:Y8({scrapeMotionValuesFromProps:W8,createRenderState:V8,onMount:(t,e,{renderState:r,latestValues:n})=>{wt.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),wt.render(()=>{Pm(r,n,{enableHardwareAcceleration:!1},Tm(e.tagName),t.transformTemplate),G8(e,r)})}})},ZT={useVisualState:Y8({scrapeMotionValuesFromProps:Mm,createRenderState:Rm})};function e_(t,{forwardMotionProps:e=!1},r,n){return{...Am(t)?XT:ZT,preloadedFeatures:r,useRender:qT(e),createVisualElement:n,Component:t}}function is(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const Q8=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function s0(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const t_=t=>e=>Q8(e)&&t(e,s0(e));function as(t,e,r,n){return is(t,e,t_(r),n)}const r_=(t,e)=>r=>e(t(r)),Ks=(...t)=>t.reduce(r_);function J8(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const B2=J8("dragHorizontal"),F2=J8("dragVertical");function X8(t){let e=!1;if(t==="y")e=F2();else if(t==="x")e=B2();else{const r=B2(),n=F2();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function Z8(){const t=X8(!0);return t?(t(),!1):!0}class vo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function j2(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.type==="touch"||Z8())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&wt.update(()=>a[n](s,o))};return as(t.current,r,i,{passive:!t.getProps()[n]})}class n_ extends vo{mount(){this.unmount=Ks(j2(this.node,!0),j2(this.node,!1))}unmount(){}}class i_ extends vo{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=Ks(is(this.node.current,"focus",()=>this.onFocus()),is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const eC=(t,e)=>e?t===e?!0:eC(t,e.parentElement):!1;function w1(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,s0(r))}class s_ extends vo{constructor(){super(...arguments),this.removeStartListeners=jt,this.removeEndListeners=jt,this.removeAccessibleListeners=jt,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=as(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f}=this.node.getProps();wt.update(()=>{eC(this.node.current,a.target)?c&&c(a,l):f&&f(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=as(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ks(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()||w1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&wt.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=is(this.node.current,"keyup",o),w1("down",(a,l)=>{this.startPress(a,l)})},r=is(this.node.current,"keydown",e),n=()=>{this.isPressing&&w1("cancel",(s,o)=>this.cancelPress(s,o))},i=is(this.node.current,"blur",n);this.removeAccessibleListeners=Ks(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&&wt.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Z8()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&wt.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=as(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=is(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ks(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ky=new WeakMap,E1=new WeakMap,o_=t=>{const e=ky.get(t.target);e&&e(t)},a_=t=>{t.forEach(o_)};function l_({root:t,...e}){const r=t||document;E1.has(r)||E1.set(r,{});const n=E1.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(a_,{root:t,...e})),n[i]}function c_(t,e,r){const n=l_(e);return ky.set(t,r),n.observe(t),()=>{ky.delete(t),n.unobserve(t)}}const f_={some:0,all:1};class u_ extends vo{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:f_[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 c_(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(d_(e,r))&&this.startObserver()}unmount(){}}function d_({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const h_={inView:{Feature:u_},tap:{Feature:s_},focus:{Feature:i_},hover:{Feature:n_}};function tC(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 y_(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function o0(t,e,r){const n=t.getProps();return Im(n,e,r!==void 0?r:n.custom,v_(t),y_(t))}const p_="framerAppearId",m_="data-"+_m(p_);let g_=jt,Nm=jt;const Ys=t=>t*1e3,ls=t=>t/1e3,x_={current:!1},rC=t=>Array.isArray(t)&&typeof t[0]=="number";function nC(t){return!!(!t||typeof t=="string"&&iC[t]||rC(t)||Array.isArray(t)&&t.every(nC))}const Uc=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,iC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Uc([0,.65,.55,1]),circOut:Uc([.55,0,1,.45]),backIn:Uc([.31,.01,.66,-.59]),backOut:Uc([.33,1.53,.69,.99])};function sC(t){if(t)return rC(t)?Uc(t):Array.isArray(t)?t.map(sC):iC[t]}function b_(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=sC(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 w_(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const oC=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,E_=1e-7,C_=12;function S_(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=oC(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>E_&&++aS_(s,0,1,t,r);return s=>s===0||s===1?s:oC(i(s),e,n)}const A_=uu(.42,0,1,1),k_=uu(0,0,.58,1),aC=uu(.42,0,.58,1),R_=t=>Array.isArray(t)&&typeof t[0]!="number",lC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,cC=t=>e=>1-t(1-e),fC=t=>1-Math.sin(Math.acos(t)),$m=cC(fC),P_=lC($m),uC=uu(.33,1.53,.69,.99),Dm=cC(uC),T_=lC(Dm),__=t=>(t*=2)<1?.5*Dm(t):.5*(2-Math.pow(2,-10*(t-1))),M_={linear:jt,easeIn:A_,easeInOut:aC,easeOut:k_,circIn:fC,circInOut:P_,circOut:$m,backIn:Dm,backInOut:T_,backOut:uC,anticipate:__},z2=t=>{if(Array.isArray(t)){Nm(t.length===4);const[e,r,n,i]=t;return uu(e,r,n,i)}else if(typeof t=="string")return M_[t];return t},Om=(t,e)=>r=>!!(cu(r)&&_T.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),dC=(t,e,r)=>n=>{if(!cu(n))return n;const[i,s,o,a]=n.match(i0);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},I_=t=>eo(0,255,t),C1={...oa,transform:t=>Math.round(I_(t))},Io={test:Om("rgb","red"),parse:dC("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+C1.transform(t)+", "+C1.transform(e)+", "+C1.transform(r)+", "+rf(tf.transform(n))+")"};function N_(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 Ry={test:Om("#"),parse:N_,transform:Io.transform},Ba={test:Om("hsl","hue"),parse:dC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Di.transform(rf(e))+", "+Di.transform(rf(r))+", "+rf(tf.transform(n))+")"},Dr={test:t=>Io.test(t)||Ry.test(t)||Ba.test(t),parse:t=>Io.test(t)?Io.parse(t):Ba.test(t)?Ba.parse(t):Ry.parse(t),transform:t=>cu(t)?t:t.hasOwnProperty("red")?Io.transform(t):Ba.transform(t)},Nt=(t,e,r)=>-r*t+r*e+t;function S1(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 $_({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=S1(l,a,t+1/3),s=S1(l,a,t),o=S1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const A1=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},D_=[Ry,Io,Ba],O_=t=>D_.find(e=>e.test(t));function U2(t){const e=O_(t);let r=e.parse(t);return e===Ba&&(r=$_(r)),r}const hC=(t,e)=>{const r=U2(t),n=U2(e),i={...r};return s=>(i.red=A1(r.red,n.red,s),i.green=A1(r.green,n.green,s),i.blue=A1(r.blue,n.blue,s),i.alpha=Nt(r.alpha,n.alpha,s),Io.transform(i))};function L_(t){var e,r;return isNaN(t)&&cu(t)&&(((e=t.match(i0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(F8))===null||r===void 0?void 0:r.length)||0)>0}const vC={regex:PT,countKey:"Vars",token:"${v}",parse:jt},yC={regex:F8,countKey:"Colors",token:"${c}",parse:Dr.parse},pC={regex:i0,countKey:"Numbers",token:"${n}",parse:oa.parse};function k1(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 ch(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&k1(r,vC),k1(r,yC),k1(r,pC),r}function mC(t){return ch(t).values}function gC(t){const{values:e,numColors:r,numVars:n,tokenised:i}=ch(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function F_(t){const e=mC(t);return gC(t)(e.map(B_))}const to={test:L_,parse:mC,createTransformer:gC,getAnimatableNone:F_},xC=(t,e)=>r=>`${r>0?e:t}`;function bC(t,e){return typeof t=="number"?r=>Nt(t,e,r):Dr.test(t)?hC(t,e):t.startsWith("var(")?xC(t,e):EC(t,e)}const wC=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>bC(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]=bC(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},EC=(t,e)=>{const r=to.createTransformer(e),n=ch(t),i=ch(e);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Ks(wC(n.values,i.values),r):xC(t,e)},Lf=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},V2=(t,e)=>r=>Nt(t,e,r);function z_(t){return typeof t=="number"?V2:typeof t=="string"?Dr.test(t)?hC:EC:Array.isArray(t)?wC:typeof t=="object"?j_:V2}function U_(t,e,r){const n=[],i=r||z_(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=U_(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(eo(t[0],t[s-1],c)):l}function V_(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Lf(0,e,n);t.push(Nt(r,1,i))}}function q_(t){const e=[0];return V_(e,t.length-1),e}function H_(t,e){return t.map(r=>r*e)}function G_(t,e){return t.map(()=>e||aC).splice(0,t.length-1)}function fh({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=R_(n)?n.map(z2):z2(n),s={done:!1,value:e[0]},o=H_(r&&r.length===e.length?r:q_(e),t),a=CC(o,e,{ease:Array.isArray(i)?i:G_(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function SC(t,e){return e?t*(1e3/e):0}const W_=5;function AC(t,e,r){const n=Math.max(e-W_,0);return SC(r-t(n),e-n)}const R1=.001,K_=.01,q2=10,Y_=.05,Q_=1;function J_({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;g_(t<=Ys(q2));let o=1-e;o=eo(Y_,Q_,o),t=eo(K_,q2,ls(t)),o<1?(i=c=>{const f=c*o,u=f*t,d=f-r,v=Py(c,o),m=Math.exp(-u);return R1-d/v*m},s=c=>{const u=c*o*t,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-u),y=Py(Math.pow(c,2),o);return(-i(c)+R1>0?-1:1)*((d-v)*m)/y}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-R1+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=Z_(i,s,a);if(t=Ys(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 X_=12;function Z_(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function rM(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!H2(t,tM)&&H2(t,eM)){const r=J_(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function kC({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,velocity:f,duration:u,isResolvedFromDuration:d}=rM(n),v=f?-ls(f):0,m=l/(2*Math.sqrt(a*c)),y=s-i,w=ls(Math.sqrt(a/c)),b=Math.abs(y)<5;r||(r=b?.01:2),e||(e=b?.005:.5);let x;if(m<1){const S=Py(w,m);x=A=>{const _=Math.exp(-m*w*A);return s-_*((v+m*w*y)/S*Math.sin(S*A)+y*Math.cos(S*A))}}else if(m===1)x=S=>s-Math.exp(-w*S)*(y+(v+w*y)*S);else{const S=w*Math.sqrt(m*m-1);x=A=>{const _=Math.exp(-m*w*A),D=Math.min(S*A,300);return s-_*((v+m*w*y)*Math.sinh(D)+S*y*Math.cosh(D))/S}}return{calculatedDuration:d&&u||null,next:S=>{const A=x(S);if(d)o.done=S>=u;else{let _=v;S!==0&&(m<1?_=AC(x,S,A):_=0);const D=Math.abs(_)<=r,$=Math.abs(s-A)<=e;o.done=D&&$}return o.value=o.done?s:A,o}}}function G2({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=O=>a!==void 0&&Ol,m=O=>a===void 0?l:l===void 0||Math.abs(a-O)-y*Math.exp(-O/n),S=O=>b+x(O),A=O=>{const H=x(O),Y=S(O);d.done=Math.abs(H)<=c,d.value=d.done?b:Y};let _,D;const $=O=>{v(d.value)&&(_=O,D=kC({keyframes:[d.value,m(d.value)],velocity:AC(S,O,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return $(0),{calculatedDuration:null,next:O=>{let H=!1;return!D&&_===void 0&&(H=!0,A(O),$(O)),_!==void 0&&O>_?D.next(O-_):(!H&&A(O),d)}}}const nM=t=>{const e=({timestamp:r})=>t(r);return{start:()=>wt.update(e,!0),stop:()=>ys(e),now:()=>lr.isProcessing?lr.timestamp:performance.now()}},W2=2e4;function K2(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=W2?1/0:e}const iM={decay:G2,inertia:G2,tween:fh,keyframes:fh,spring:kC};function uh({autoplay:t=!0,delay:e=0,driver:r=nM,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,m=!1,y,w;const b=()=>{w=new Promise(k=>{y=k})};b();let x;const S=iM[i]||fh;let A;S!==fh&&typeof n[0]!="number"&&(A=CC([0,100],n,{clamp:!1}),n=[0,100]);const _=S({...d,keyframes:n});let D;a==="mirror"&&(D=S({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let $="idle",O=null,H=null,Y=null;_.calculatedDuration===null&&s&&(_.calculatedDuration=K2(_));const{calculatedDuration:Q}=_;let re=1/0,I=1/0;Q!==null&&(re=Q+o,I=re*(s+1)-o);let h=0;const C=k=>{if(H===null)return;v>0&&(H=Math.min(H,k)),v<0&&(H=Math.min(k-I/v,H)),O!==null?h=O:h=Math.round(k-H)*v;const p=h-e*(v>=0?1:-1),P=v>=0?p<0:p>I;h=Math.max(p,0),$==="finished"&&O===null&&(h=I);let B=h,E=_;if(s){const W=h/re;let ne=Math.floor(W),X=W%1;!X&&W>=1&&(X=1),X===1&&ne--,ne=Math.min(ne,s+1);const ee=!!(ne%2);ee&&(a==="reverse"?(X=1-X,o&&(X-=o/re)):a==="mirror"&&(E=D));let _e=eo(0,1,X);h>I&&(_e=a==="reverse"&&ee?1:0),B=_e*re}const F=P?{done:!1,value:n[0]}:E.next(B);A&&(F.value=A(F.value));let{done:j}=F;!P&&Q!==null&&(j=v>=0?h>=I:h<=0);const z=O===null&&($==="finished"||$==="running"&&j);return u&&u(F.value),z&&T(),F},R=()=>{x&&x.stop(),x=void 0},M=()=>{$="idle",R(),y(),b(),H=Y=null},T=()=>{$="finished",f&&f(),R(),y()},N=()=>{if(m)return;x||(x=r(C));const k=x.now();l&&l(),O!==null?H=k-O:(!H||$==="finished")&&(H=k),$==="finished"&&b(),Y=H,O=null,$="running",x.start()};t&&N();const L={then(k,p){return w.then(k,p)},get time(){return ls(h)},set time(k){k=Ys(k),h=k,O!==null||!x||v===0?O=k:H=x.now()-k/v},get duration(){const k=_.calculatedDuration===null?K2(_):_.calculatedDuration;return ls(k)},get speed(){return v},set speed(k){k===v||!x||(v=k,L.time=ls(h))},get state(){return $},play:N,pause:()=>{$="paused",O=h},stop:()=>{m=!0,$!=="idle"&&($="idle",c&&c(),M())},cancel:()=>{Y!==null&&C(Y),M()},complete:()=>{$="finished"},sample:k=>(H=0,C(k))};return L}function sM(t){let e;return()=>(e===void 0&&(e=t()),e)}const oM=sM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),aM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),qu=10,lM=2e4,cM=(t,e)=>e.type==="spring"||t==="backgroundColor"||!nC(e.ease);function fM(t,e,{onUpdate:r,onComplete:n,...i}){if(!(oM()&&aM.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l;const c=()=>{l=new Promise(x=>{a=x})};c();let{keyframes:f,duration:u=300,ease:d,times:v}=i;if(cM(e,i)){const x=uh({...i,repeat:0,delay:0});let S={done:!1,value:f[0]};const A=[];let _=0;for(;!S.done&&_m.cancel(),w=()=>{wt.update(y),a(),c()};return m.onfinish=()=>{t.set(w_(f,i)),n&&n(),w()},{then(x,S){return l.then(x,S)},attachTimeline(x){return m.timeline=x,m.onfinish=null,jt},get time(){return ls(m.currentTime||0)},set time(x){m.currentTime=Ys(x)},get speed(){return m.playbackRate},set speed(x){m.playbackRate=x},get duration(){return ls(u)},play:()=>{o||(m.play(),ys(y))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:x}=m;if(x){const S=uh({...i,autoplay:!1});t.setWithVelocity(S.sample(x-qu).value,S.sample(x).value,qu)}w()},complete:()=>m.finish(),cancel:w}}function uM({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:jt,pause:jt,stop:jt,then:s=>(s(),Promise.resolve()),cancel:jt,complete:jt});return e?uh({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const dM={type:"spring",stiffness:500,damping:25,restSpeed:10},hM=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),vM={type:"keyframes",duration:.8},yM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pM=(t,{keyframes:e})=>e.length>2?vM:sa.has(t)?t.startsWith("scale")?hM(e[1]):dM:yM,Ty=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url(")),mM=new Set(["brightness","contrast","saturate","opacity"]);function gM(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(i0)||[];if(!n)return t;const i=r.replace(n,"");let s=mM.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const xM=/([a-z-]*)\(.*?\)/g,_y={...to,getAnimatableNone:t=>{const e=t.match(xM);return e?e.map(gM).join(" "):t}},bM={...j8,color:Dr,backgroundColor:Dr,outlineColor:Dr,fill:Dr,stroke:Dr,borderColor:Dr,borderTopColor:Dr,borderRightColor:Dr,borderBottomColor:Dr,borderLeftColor:Dr,filter:_y,WebkitFilter:_y},Lm=t=>bM[t];function RC(t,e){let r=Lm(t);return r!==_y&&(r=to),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const PC=t=>/^0[^.\s]+$/.test(t);function wM(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||PC(t)}function EM(t,e,r,n){const i=Ty(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=TC(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Ys(o);const l=EM(e,t,r,s),c=l[0],f=l[l.length-1],u=Ty(t,c),d=Ty(t,f);let v={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:m=>{e.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(CM(s)||(v={...v,...pM(t,v)}),v.duration&&(v.duration=Ys(v.duration)),v.repeatDelay&&(v.repeatDelay=Ys(v.repeatDelay)),!u||!d||x_.current||s.type===!1)return uM(v);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=fM(e,t,v);if(m)return m}return uh(v)};function dh(t){return!!(Qr(t)&&t.add)}const _C=t=>/^\-?\d*\.?\d+$/.test(t);function Fm(t,e){t.indexOf(e)===-1&&t.push(e)}function jm(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class zm{constructor(){this.subscriptions=[]}add(e){return Fm(this.subscriptions,e),()=>jm(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 AM{constructor(e,r={}){this.version="10.16.4",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}=lr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,wt.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=()=>wt.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=SM(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new zm);const n=this.events[e].add(r);return e==="change"?()=>{n(),wt.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?SC(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 vl(t,e){return new AM(t,e)}const MC=t=>e=>e.test(t),kM={test:t=>t==="auto",parse:t=>t},IC=[oa,Ce,Di,Ps,IT,MT,kM],sc=t=>IC.find(MC(t)),RM=[...IC,Dr,to],PM=t=>RM.find(MC(t));function TM(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,vl(r))}function _M(t,e){const r=o0(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=GT(s[o]);TM(t,o,a)}}function MM(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(y)}return o&&Promise.all(c).then(()=>{o&&_M(t,o)}),c}function My(t,e,r={}){const n=o0(t,e,r.custom);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(NC(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return DM(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 DM(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(OM).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(My(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function OM(t,e){return t.sortNodePosition(e)}function LM(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>My(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=My(t,e,r);else{const i=typeof e=="function"?o0(t,e,r.custom):e;n=Promise.all(NC(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}const BM=[...Em].reverse(),FM=Em.length;function jM(t){return e=>Promise.all(e.map(({animation:r,options:n})=>LM(t,r,n)))}function zM(t){let e=jM(t);const r=VM();let n=!0;const i=(l,c)=>{const f=o0(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 m={},y=1/0;for(let b=0;by&&_;const Y=Array.isArray(A)?A:[A];let Q=Y.reduce(i,{});D===!1&&(Q={});const{prevResolvedValues:re={}}=S,I={...re,...Q},h=C=>{H=!0,v.delete(C),S.needsAnimating[C]=!0};for(const C in I){const R=Q[C],M=re[C];m.hasOwnProperty(C)||(R!==M?lh(R)&&lh(M)?!tC(R,M)||O?h(C):S.protectedKeys[C]=!0:R!==void 0?h(C):v.add(C):R!==void 0&&v.has(C)?h(C):S.protectedKeys[C]=!0)}S.prevProp=A,S.prevResolvedValues=Q,S.isActive&&(m={...m,...Q}),n&&t.blockInitialAnimation&&(H=!1),H&&!$&&d.push(...Y.map(C=>({animation:C,options:{type:x,...l}})))}if(v.size){const b={};v.forEach(x=>{const S=t.getBaseTarget(x);S!==void 0&&(b[x]=S)}),d.push({animation:b})}let w=!!d.length;return n&&f.initial===!1&&!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 m;return(m=v.animationState)===null||m===void 0?void 0:m.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 UM(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!tC(e,t):!1}function xo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function VM(){return{animate:xo(!0),whileInView:xo(),whileHover:xo(),whileTap:xo(),whileDrag:xo(),whileFocus:xo(),exit:xo()}}class qM extends vo{constructor(e){super(e),e.animationState||(e.animationState=zM(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),r0(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 HM=0;class GM extends vo{constructor(){super(...arguments),this.id=HM++}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 WM={animation:{Feature:qM},exit:{Feature:GM}},Y2=(t,e)=>Math.abs(t-e);function KM(t,e){const r=Y2(t.x,e.x),n=Y2(t.y,e.y);return Math.sqrt(r**2+n**2)}class $C{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=T1(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,u=KM(c.offset,{x:0,y:0})>=3;if(!f&&!u)return;const{point:d}=c,{timestamp:v}=lr;this.history.push({...d,timestamp:v});const{onStart:m,onMove:y}=this.handlers;f||(m&&m(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=P1(f,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:u,onSessionEnd:d}=this.handlers,v=T1(c.type==="pointercancel"?this.lastMoveEventInfo:P1(f,this.transformPagePoint),this.history);this.startEvent&&u&&u(c,v),d&&d(c,v)},!Q8(e))return;this.handlers=r,this.transformPagePoint=n;const i=s0(e),s=P1(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=lr;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=r;l&&l(e,T1(s,this.history)),this.removeListeners=Ks(as(window,"pointermove",this.handlePointerMove),as(window,"pointerup",this.handlePointerUp),as(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ys(this.updatePoint)}}function P1(t,e){return e?{point:e(t.point)}:t}function Q2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function T1({point:t},e){return{point:t,delta:Q2(t,DC(e)),offset:Q2(t,YM(e)),velocity:QM(e,.1)}}function YM(t){return t[0]}function DC(t){return t[t.length-1]}function QM(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=DC(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>Ys(e)));)r--;if(!n)return{x:0,y:0};const s=ls(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 fn(t){return t.max-t.min}function Iy(t,e=0,r=.01){return Math.abs(t-e)<=r}function J2(t,e,r,n=.5){t.origin=n,t.originPoint=Nt(e.min,e.max,t.origin),t.scale=fn(r)/fn(e),(Iy(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Nt(r.min,r.max,t.origin)-t.originPoint,(Iy(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nf(t,e,r,n){J2(t.x,e.x,r.x,n?n.originX:void 0),J2(t.y,e.y,r.y,n?n.originY:void 0)}function X2(t,e,r){t.min=r.min+e.min,t.max=t.min+fn(e)}function JM(t,e,r){X2(t.x,e.x,r.x),X2(t.y,e.y,r.y)}function Z2(t,e,r){t.min=e.min-r.min,t.max=t.min+fn(e)}function sf(t,e,r){Z2(t.x,e.x,r.x),Z2(t.y,e.y,r.y)}function XM(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Nt(r,t,n.max):Math.min(t,r)),t}function ew(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 ZM(t,{top:e,left:r,bottom:n,right:i}){return{x:ew(t.x,r,i),y:ew(t.y,e,n)}}function tw(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Lf(e.min,e.max-n,t.min):n>i&&(r=Lf(t.min,t.max-i,e.min)),eo(0,1,r)}function rI(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 Ny=.35;function nI(t=Ny){return t===!1?t=0:t===!0&&(t=Ny),{x:rw(t,"left","right"),y:rw(t,"top","bottom")}}function rw(t,e,r){return{min:nw(t,e),max:nw(t,r)}}function nw(t,e){return typeof t=="number"?t:t[e]||0}const iw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fa=()=>({x:iw(),y:iw()}),sw=()=>({min:0,max:0}),Yt=()=>({x:sw(),y:sw()});function gi(t){return[t("x"),t("y")]}function OC({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function iI({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function sI(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 _1(t){return t===void 0||t===1}function $y({scale:t,scaleX:e,scaleY:r}){return!_1(t)||!_1(e)||!_1(r)}function Ao(t){return $y(t)||LC(t)||t.z||t.rotate||t.rotateX||t.rotateY}function LC(t){return ow(t.x)||ow(t.y)}function ow(t){return t&&t!=="0%"}function hh(t,e,r){const n=t-r,i=e*n;return r+i}function aw(t,e,r,n,i){return i!==void 0&&(t=hh(t,i,n)),hh(t,r,n)+e}function Dy(t,e=0,r=1,n,i){t.min=aw(t.min,e,r,n,i),t.max=aw(t.max,e,r,n,i)}function BC(t,{x:e,y:r}){Dy(t.x,e.translate,e.scale,e.originPoint),Dy(t.y,r.translate,r.scale,r.originPoint)}function oI(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 Ns(t,e){t.min=t.min+e,t.max=t.max+e}function cw(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Nt(t.min,t.max,s);Dy(t,e[r],e[n],o,e.scale)}const aI=["x","scaleX","originX"],lI=["y","scaleY","originY"];function ja(t,e){cw(t.x,e,aI),cw(t.y,e,lI)}function FC(t,e){return OC(sI(t.getBoundingClientRect(),e))}function cI(t,e,r){const n=FC(t,r),{scroll:i}=e;return i&&(Ns(n.x,i.offset.x),Ns(n.y,i.offset.y)),n}const fI=new WeakMap;class uI{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=Yt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=l=>{this.stopAnimation(),r&&this.snapToCursor(s0(l,"page").point)},s=(l,c)=>{const{drag:f,dragPropagation:u,onDragStart:d}=this.getProps();if(f&&!u&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=X8(f),!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),gi(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Di.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const b=w.layout.layoutBox[m];b&&(y=fn(b)*(parseFloat(y)/100))}}this.originPoint[m]=y}),d&&wt.update(()=>d(l,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:f,dragDirectionLock:u,onDirectionLock:d,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:m}=c;if(u&&this.currentDirection===null){this.currentDirection=dI(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),v&&v(l,c)},a=(l,c)=>this.stop(l,c);this.panSession=new $C(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}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&&wt.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||!Hu(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=XM(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&La(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=ZM(n.layoutBox,e):this.constraints=!1,this.elastic=nI(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&gi(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=rI(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!La(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=cI(n,i.root,this.visualElement.getTransformPagePoint());let o=eI(i.layout.layoutBox,s);if(r){const a=r(iI(o));this.hasMutatedConstraints=!!a,a&&(o=OC(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=gi(f=>{if(!Hu(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,m={type:"inertia",velocity:n?e[f]:0,bounceStiffness:d,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(f,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(Bm(e,n,0,r))}stopAnimation(){gi(e=>this.getAxisMotionValue(e).stop())}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){gi(r=>{const{drag:n}=this.getProps();if(!Hu(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]-Nt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!La(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};gi(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=tI({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(),gi(o=>{if(!Hu(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Nt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;fI.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();La(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=is(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(gi(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=Ny,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Hu(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function dI(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class hI extends vo{constructor(e){super(e),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new uI(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}unmount(){this.removeGroupControls(),this.removeListeners()}}const fw=t=>(e,r)=>{t&&wt.update(()=>t(e,r))};class vI extends vo{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(e){this.session=new $C(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}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&&wt.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 yI(){const t=g.useContext(e0);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=g.useId();return g.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}const Cd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const oc={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ce.test(t))t=parseFloat(t);else return t;const r=uw(t,e.target.x),n=uw(t,e.target.y);return`${r}% ${n}%`}},pI={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=to.parse(t);if(i.length>5)return n;const s=to.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=Nt(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 mI extends cr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;ST(gI),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()||wt.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 jC(t){const[e,r]=yI(),n=g.useContext(Sm);return cr.createElement(mI,{...t,layoutGroup:n,switchLayoutGroup:g.useContext(D8),isPresent:e,safeToRemove:r})}const gI={borderRadius:{...oc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oc,borderTopRightRadius:oc,borderBottomLeftRadius:oc,borderBottomRightRadius:oc,boxShadow:pI},zC=["TopLeft","TopRight","BottomLeft","BottomRight"],xI=zC.length,dw=t=>typeof t=="string"?parseFloat(t):t,hw=t=>typeof t=="number"||Ce.test(t);function bI(t,e,r,n,i,s){i?(t.opacity=Nt(0,r.opacity!==void 0?r.opacity:1,wI(n)),t.opacityExit=Nt(e.opacity!==void 0?e.opacity:1,0,EI(n))):s&&(t.opacity=Nt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(Lf(t,e,n))}function yw(t,e){t.min=e.min,t.max=e.max}function pn(t,e){yw(t.x,e.x),yw(t.y,e.y)}function pw(t,e,r,n,i){return t-=e,t=hh(t,1/r,n),i!==void 0&&(t=hh(t,1/i,n)),t}function CI(t,e=0,r=1,n=.5,i,s=t,o=t){if(Di.test(e)&&(e=parseFloat(e),e=Nt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Nt(s.min,s.max,n);t===s&&(a-=e),t.min=pw(t.min,e,r,a,i),t.max=pw(t.max,e,r,a,i)}function mw(t,e,[r,n,i],s,o){CI(t,e[r],e[n],e[i],e.scale,s,o)}const SI=["x","scaleX","originX"],AI=["y","scaleY","originY"];function gw(t,e,r,n){mw(t.x,e,SI,r?r.x:void 0,n?n.x:void 0),mw(t.y,e,AI,r?r.y:void 0,n?n.y:void 0)}function xw(t){return t.translate===0&&t.scale===1}function VC(t){return xw(t.x)&&xw(t.y)}function kI(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 qC(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 bw(t){return fn(t.x)/fn(t.y)}class RI{constructor(){this.members=[]}add(e){Fm(this.members,e),e.scheduleRender()}remove(e){if(jm(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 ww(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 PI=(t,e)=>t.depth-e.depth;class TI{constructor(){this.children=[],this.isDirty=!1}add(e){Fm(this.children,e),this.isDirty=!0}remove(e){jm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(PI),this.isDirty=!1,this.children.forEach(e)}}function _I(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(ys(n),t(s-e))};return wt.read(n,!0),()=>ys(n)}function MI(t){window.MotionDebug&&window.MotionDebug.record(t)}function II(t){return t instanceof SVGElement&&t.tagName!=="svg"}function NI(t,e,r){const n=Qr(t)?t:vl(t);return n.start(Bm("",n,e,r)),n.animation}const Ew=["","X","Y","Z"],Cw=1e3;let $I=0;const ko={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function HC({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=$I++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{ko.totalNodes=ko.resolvedTargetDeltas=ko.recalculatedProjection=0,this.nodes.forEach(LI),this.nodes.forEach(UI),this.nodes.forEach(VI),this.nodes.forEach(BI),MI(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=_I(d,250),Cd.hasAnimatedSinceResize&&(Cd.hasAnimatedSinceResize=!1,this.nodes.forEach(Aw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||KI,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=f.getProps(),x=!this.targetLayout||!qC(this.targetLayout,m)||v,S=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,S);const A={...TC(y,"layout"),onPlay:w,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else d||Aw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,ys(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(qI),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(FI),this.sharedNodes.forEach(HI)}scheduleUpdateProjection(){wt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){wt.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 _=A/1e3;kw(u.x,o.x,_),kw(u.y,o.y,_),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sf(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GI(this.relativeTarget,this.relativeTargetOrigin,d,_),S&&kI(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Yt()),pn(S,this.relativeTarget)),y&&(this.animationValues=f,bI(f,c,this.latestValues,_,x,b)),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&&(ys(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{Cd.hasAnimatedSinceResize=!0,this.currentAnimation=NI(0,Cw,{...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(Cw),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&&GC(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Yt();const u=fn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=fn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}pn(a,l),ja(a,f),nf(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new RI),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(Sw),this.root.sharedNodes.clear()}}}function DI(t){t.updateLayout()}function OI(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"?gi(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=fn(d);d.min=n[u].min,d.max=d.min+v}):GC(s,r.layoutBox,n)&&gi(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=fn(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=Fa();nf(a,n,r.layoutBox);const l=Fa();o?nf(l,t.applyTransform(i,!0),r.measuredBox):nf(l,n,r.layoutBox);const c=!VC(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 m=Yt();sf(m,r.layoutBox,d.layoutBox);const y=Yt();sf(y,n,v.layoutBox),qC(m,y)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,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 LI(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 BI(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function FI(t){t.clearSnapshot()}function Sw(t){t.clearMeasurements()}function jI(t){t.isLayoutDirty=!1}function zI(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Aw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function UI(t){t.resolveTargetDelta()}function VI(t){t.calcProjection()}function qI(t){t.resetRotation()}function HI(t){t.removeLeadSnapshot()}function kw(t,e,r){t.translate=Nt(e.translate,0,r),t.scale=Nt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Rw(t,e,r,n){t.min=Nt(e.min,r.min,n),t.max=Nt(e.max,r.max,n)}function GI(t,e,r,n){Rw(t.x,e.x,r.x,n),Rw(t.y,e.y,r.y,n)}function WI(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const KI={duration:.45,ease:[.4,0,.1,1]},Pw=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Tw=Pw("applewebkit/")&&!Pw("chrome/")?Math.round:jt;function _w(t){t.min=Tw(t.min),t.max=Tw(t.max)}function YI(t){_w(t.x),_w(t.y)}function GC(t,e,r){return t==="position"||t==="preserve-aspect"&&!Iy(bw(e),bw(r),.2)}const QI=HC({attachResizeListener:(t,e)=>is(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),M1={current:void 0},WC=HC({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!M1.current){const t=new QI({});t.mount(window),t.setOptions({layoutScroll:!0}),M1.current=t}return M1.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),JI={pan:{Feature:vI},drag:{Feature:hI,ProjectionNode:WC,MeasureLayout:jC}},XI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ZI(t){const e=XI.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function Oy(t,e,r=1){const[n,i]=ZI(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const o=s.trim();return _C(o)?parseFloat(o):o}else return Ay(i)?Oy(i,e,r+1):i}function eN(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(!Ay(s))return;const o=Oy(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!Ay(s))continue;const o=Oy(s,n);o&&(e[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const tN=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),KC=t=>tN.has(t),rN=t=>Object.keys(t).some(KC),Mw=t=>t===oa||t===Ce,Iw=(t,e)=>parseFloat(t.split(", ")[e]),Nw=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return Iw(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?Iw(s[1],t):0}},nN=new Set(["x","y","z"]),iN=lu.filter(t=>!nN.has(t));function sN(t){const e=[];return iN.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 yl={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:Nw(4,13),y:Nw(5,14)};yl.translateX=yl.x;yl.translateY=yl.y;const oN=(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]=yl[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]=yl[c](l,s)}),t},aN=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter(KC);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=sc(f);const d=e[l];let v;if(lh(d)){const m=d.length,y=d[0]===null?1:0;f=d[y],u=sc(f);for(let w=y;w=0?window.pageYOffset:null,c=oN(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),t0&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function lN(t,e,r,n){return rN(e)?aN(t,e,r,n):{target:e,transitionEnd:n}}const cN=(t,e,r,n)=>{const i=eN(t,e,n);return e=i.target,n=i.transitionEnd,lN(t,e,r,n)},Ly={current:null},YC={current:!1};function fN(){if(YC.current=!0,!!t0)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ly.current=t.matches;t.addListener(e),e()}else Ly.current=!1}function uN(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(Qr(s))t.addValue(i,s),dh(n)&&n.add(i);else if(Qr(o))t.addValue(i,vl(s,{owner:t})),dh(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,vl(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const $w=new WeakMap,QC=Object.keys(Of),dN=QC.length,Dw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],hN=Cm.length;class vN{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=()=>wt.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=n0(r),this.isVariantNode=$8(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&&Qr(d)&&(d.set(a[u],!1),dh(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,$w.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)),YC.current||fN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ly.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){$w.delete(this.current),this.projection&&this.projection.unmount(),ys(this.notifyUpdate),ys(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=sa.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&wt.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):Yt()}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=vl(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&&!Qr(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 zm),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class JC extends vN{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=NM(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){MM(this,n,o);const a=cN(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function yN(t){return window.getComputedStyle(t)}class pN extends JC{readValueFromInstance(e,r){if(sa.has(r)){const n=Lm(r);return n&&n.default||0}else{const n=yN(e),i=(B8(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return FC(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;Qr(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){q8(e,r,n,i)}}class mN extends JC{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(sa.has(r)){const n=Lm(r);return n&&n.default||0}return r=H8.has(r)?r:_m(r),e.getAttribute(r)}measureInstanceViewportBox(){return Yt()}scrapeMotionValuesFromProps(e,r){return W8(e,r)}build(e,r,n,i){Pm(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){G8(e,r,n,i)}mount(e){this.isSVGTag=Tm(e.tagName),super.mount(e)}}const gN=(t,e)=>Am(t)?new mN(e,{enableHardwareAcceleration:!1}):new pN(e,{enableHardwareAcceleration:!0}),xN={layout:{ProjectionNode:WC,MeasureLayout:jC}},bN={...WM,...h_,...JI,...xN},Ja=ET((t,e)=>e_(t,e,bN,gN));function XC(){const t=g.useRef(!1);return wm(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function wN(){const t=XC(),[e,r]=g.useState(0),n=g.useCallback(()=>{t.current&&r(e+1)},[e]);return[g.useCallback(()=>wt.postRender(n),[n]),e]}class EN extends g.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 CN({children:t,isPresent:e}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.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(` +`+s.stack}return{value:t,source:e,stack:i,digest:null}}function E1(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function gy(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var XP=typeof WeakMap=="function"?WeakMap:Map;function h8(t,e,r){r=os(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){sh||(sh=!0,Py=n),gy(t,e)},r}function v8(t,e,r){r=os(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){gy(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){gy(t,e),typeof n!="function"&&(Ws===null?Ws=new Set([this]):Ws.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function w2(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new XP;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=dT.bind(null,t,e,r),e.then(t,t))}function E2(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function C2(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=os(-1,1),e.tag=2,Gs(r,e,1))),r.lanes|=1),t)}var ZP=bs.ReactCurrentOwner,Hr=!1;function Lr(t,e,r,n){e.child=t===null?G5(e,null,r,n):fl(e,t.child,r,n)}function S2(t,e,r,n,i){r=r.render;var s=e.ref;return Qa(e,i),n=dm(t,e,r,n,s,i),r=hm(),t!==null&&!Hr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,vs(t,e,i)):(Rt&&r&&em(e),e.flags|=1,Lr(t,e,n,i),e.child)}function A2(t,e,r,n,i){if(t===null){var s=r.type;return typeof s=="function"&&!Cm(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=s,y8(t,e,s,n,i)):(t=Sd(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:kf,r(o,n)&&t.ref===e.ref)return vs(t,e,i)}return e.flags|=1,t=Ys(s,n),t.ref=e.ref,t.return=e,e.child=t}function y8(t,e,r,n,i){if(t!==null){var s=t.memoizedProps;if(kf(s,n)&&t.ref===e.ref)if(Hr=!1,e.pendingProps=n=s,(t.lanes&i)!==0)t.flags&131072&&(Hr=!0);else return e.lanes=t.lanes,vs(t,e,i)}return xy(t,e,r,n,i)}function p8(t,e,r){var n=e.pendingProps,i=n.children,s=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},xt(La,tn),tn|=r;else{if(!(r&1073741824))return t=s!==null?s.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,xt(La,tn),tn|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,xt(La,tn),tn|=n}else s!==null?(n=s.baseLanes|r,e.memoizedState=null):n=r,xt(La,tn),tn|=n;return Lr(t,e,i,r),e.child}function m8(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function xy(t,e,r,n,i){var s=Wr(r)?Ho:Tr.current;return s=ll(e,s),Qa(e,i),r=dm(t,e,r,n,s,i),n=hm(),t!==null&&!Hr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,vs(t,e,i)):(Rt&&n&&em(e),e.flags|=1,Lr(t,e,r,i),e.child)}function k2(t,e,r,n,i){if(Wr(r)){var s=!0;Yd(e)}else s=!1;if(Qa(e,i),e.stateNode===null)wd(t,e),q5(e,r,n),my(e,r,n,i),n=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Rn(c):(c=Wr(r)?Ho:Tr.current,c=ll(e,c));var f=r.getDerivedStateFromProps,u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==c)&&m2(e,o,n,c),$s=!1;var d=e.memoizedState;o.state=d,eh(e,n,o,i),l=e.memoizedState,a!==n||d!==l||Gr.current||$s?(typeof f=="function"&&(py(e,r,f,n),l=e.memoizedState),(a=$s||p2(e,r,a,n,d,l,c))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),o.props=n,o.state=l,o.context=c,n=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,U5(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:Wn(e.type,a),o.props=c,u=e.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Rn(l):(l=Wr(r)?Ho:Tr.current,l=ll(e,l));var v=r.getDerivedStateFromProps;(f=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==u||d!==l)&&m2(e,o,n,l),$s=!1,d=e.memoizedState,o.state=d,eh(e,n,o,i);var m=e.memoizedState;a!==u||d!==m||Gr.current||$s?(typeof v=="function"&&(py(e,r,v,n),m=e.memoizedState),(c=$s||p2(e,r,c,n,d,m,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=m),o.props=n,o.state=m,o.context=l,n=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),n=!1)}return by(t,e,r,n,s,i)}function by(t,e,r,n,i,s){m8(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return i&&u2(e,r,!1),vs(t,e,s);n=e.stateNode,ZP.current=e;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=fl(e,t.child,null,s),e.child=fl(e,null,a,s)):Lr(t,e,a,s),e.memoizedState=n.state,i&&u2(e,r,!0),e.child}function g8(t){var e=t.stateNode;e.pendingContext?f2(t,e.pendingContext,e.pendingContext!==e.context):e.context&&f2(t,e.context,!1),lm(t,e.containerInfo)}function R2(t,e,r,n,i){return cl(),rm(i),e.flags|=256,Lr(t,e,r,n),e.child}var wy={dehydrated:null,treeContext:null,retryLane:0};function Ey(t){return{baseLanes:t,cachePool:null,transitions:null}}function x8(t,e,r){var n=e.pendingProps,i=It.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),xt(It,i&1),t===null)return vy(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,s?(n=e.mode,s=e.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Xh(o,n,0,null),t=Fo(t,n,r,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Ey(r),e.memoizedState=wy,t):pm(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return eT(t,e,o,n,a,i,r);if(s){s=n.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=Ys(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Ys(a,s):(s=Fo(s,o,r,null),s.flags|=2),s.return=e,n.return=e,n.sibling=s,e.child=n,n=s,s=e.child,o=t.child.memoizedState,o=o===null?Ey(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~r,e.memoizedState=wy,n}return s=t.child,t=s.sibling,n=Ys(s,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function pm(t,e){return e=Xh({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function zu(t,e,r,n){return n!==null&&rm(n),fl(e,t.child,null,r),t=pm(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function eT(t,e,r,n,i,s,o){if(r)return e.flags&256?(e.flags&=-257,n=E1(Error(se(422))),zu(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=n.fallback,i=e.mode,n=Xh({mode:"visible",children:n.children},i,0,null),s=Fo(s,i,o,null),s.flags|=2,n.return=e,s.return=e,n.sibling=s,e.child=n,e.mode&1&&fl(e,t.child,null,o),e.child.memoizedState=Ey(o),e.memoizedState=wy,s);if(!(e.mode&1))return zu(t,e,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(se(419)),n=E1(s,n,void 0),zu(t,e,o,n)}if(a=(o&t.childLanes)!==0,Hr||a){if(n=dr,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,hs(t,i),ti(n,t,i,-1))}return Em(),n=E1(Error(se(421))),zu(t,e,o,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=hT.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,on=Hs(i.nextSibling),ln=e,Rt=!0,Jn=null,t!==null&&(wn[En++]=rs,wn[En++]=ns,wn[En++]=Go,rs=t.id,ns=t.overflow,Go=e),e=pm(e,n.children),e.flags|=4096,e)}function P2(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),yy(t.return,e,r)}function C1(t,e,r,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function b8(t,e,r){var n=e.pendingProps,i=n.revealOrder,s=n.tail;if(Lr(t,e,n.children,r),n=It.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&P2(t,r,e);else if(t.tag===19)P2(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(xt(It,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&th(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),C1(e,!1,i,r,s);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&th(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}C1(e,!0,r,null,s);break;case"together":C1(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function wd(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function vs(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Ko|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(se(153));if(e.child!==null){for(t=e.child,r=Ys(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Ys(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function tT(t,e,r){switch(e.tag){case 3:g8(e),cl();break;case 5:W5(e);break;case 1:Wr(e.type)&&Yd(e);break;case 4:lm(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;xt(Xd,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(xt(It,It.current&1),e.flags|=128,null):r&e.child.childLanes?x8(t,e,r):(xt(It,It.current&1),t=vs(t,e,r),t!==null?t.sibling:null);xt(It,It.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return b8(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),xt(It,It.current),n)break;return null;case 22:case 23:return e.lanes=0,p8(t,e,r)}return vs(t,e,r)}var w8,Cy,E8,C8;w8=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Cy=function(){};E8=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,Io(Di.current);var s=null;switch(r){case"input":i=Hv(t,i),n=Hv(t,n),s=[];break;case"select":i=Dt({},i,{value:void 0}),n=Dt({},n,{value:void 0}),s=[];break;case"textarea":i=Kv(t,i),n=Kv(t,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Wd)}Qv(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(xf.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in n){var l=n[c];if(a=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(s||(s=[]),s.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(xf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ct("scroll",t),s||a===l||(s=[])):(s=s||[]).push(c,l))}r&&(s=s||[]).push("style",r);var c=s;(e.updateQueue=c)&&(e.flags|=4)}};C8=function(t,e,r,n){r!==n&&(e.flags|=4)};function ic(t,e){if(!Rt)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Sr(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function rT(t,e,r){var n=e.pendingProps;switch(tm(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(e),null;case 1:return Wr(e.type)&&Kd(),Sr(e),null;case 3:return n=e.stateNode,ul(),St(Gr),St(Tr),fm(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Fu(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Jn!==null&&(My(Jn),Jn=null))),Cy(t,e),Sr(e),null;case 5:cm(e);var i=Io(Mf.current);if(r=e.type,t!==null&&e.stateNode!=null)E8(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(se(166));return Sr(e),null}if(t=Io(Di.current),Fu(e)){n=e.stateNode,r=e.type;var s=e.memoizedProps;switch(n[Ei]=e,n[Tf]=s,t=(e.mode&1)!==0,r){case"dialog":Ct("cancel",n),Ct("close",n);break;case"iframe":case"object":case"embed":Ct("load",n);break;case"video":case"audio":for(i=0;i<\/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[Ei]=e,t[Tf]=n,w8(t,e,!1,!1),e.stateNode=t;e:{switch(o=Jv(r,n),r){case"dialog":Ct("cancel",t),Ct("close",t),i=n;break;case"iframe":case"object":case"embed":Ct("load",t),i=n;break;case"video":case"audio":for(i=0;ihl&&(e.flags|=128,n=!0,ic(s,!1),e.lanes=4194304)}else{if(!n)if(t=th(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),ic(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Rt)return Sr(e),null}else 2*Wt()-s.renderingStartTime>hl&&r!==1073741824&&(e.flags|=128,n=!0,ic(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=Wt(),e.sibling=null,r=It.current,xt(It,n?r&1|2:r&1),e):(Sr(e),null);case 22:case 23:return wm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?tn&1073741824&&(Sr(e),e.subtreeFlags&6&&(e.flags|=8192)):Sr(e),null;case 24:return null;case 25:return null}throw Error(se(156,e.tag))}function nT(t,e){switch(tm(e),e.tag){case 1:return Wr(e.type)&&Kd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ul(),St(Gr),St(Tr),fm(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return cm(e),null;case 13:if(St(It),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(se(340));cl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return St(It),null;case 4:return ul(),null;case 10:return sm(e.type._context),null;case 22:case 23:return wm(),null;case 24:return null;default:return null}}var Uu=!1,Ar=!1,iT=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Oa(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ft(t,e,n)}else r.current=null}function Sy(t,e,r){try{r()}catch(n){Ft(t,e,n)}}var T2=!1;function sT(t,e){if(ay=qd,t=R5(),Zp(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(ly={focusedElem:t,selectionRange:r},qd=!1,pe=e;pe!==null;)if(e=pe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,pe=t;else for(;pe!==null;){e=pe;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,x=e.stateNode,b=x.getSnapshotBeforeUpdate(e.elementType===e.type?y:Wn(e.type,y),w);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=e.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(se(163))}}catch(A){Ft(e,e.return,A)}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}return m=T2,T2=!1,m}function Zc(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&&Sy(e,r,s)}i=i.next}while(i!==n)}}function Qh(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 Ay(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 S8(t){var e=t.alternate;e!==null&&(t.alternate=null,S8(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ei],delete e[Tf],delete e[uy],delete e[zP],delete e[UP])),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 A8(t){return t.tag===5||t.tag===3||t.tag===4}function _2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||A8(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 ky(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=Wd));else if(n!==4&&(t=t.child,t!==null))for(ky(t,e,r),t=t.sibling;t!==null;)ky(t,e,r),t=t.sibling}function Ry(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(Ry(t,e,r),t=t.sibling;t!==null;)Ry(t,e,r),t=t.sibling}var mr=null,Yn=!1;function ks(t,e,r){for(r=r.child;r!==null;)k8(t,e,r),r=r.sibling}function k8(t,e,r){if($i&&typeof $i.onCommitFiberUnmount=="function")try{$i.onCommitFiberUnmount(Uh,r)}catch{}switch(r.tag){case 5:Ar||Oa(r,e);case 6:var n=mr,i=Yn;mr=null,ks(t,e,r),mr=n,Yn=i,mr!==null&&(Yn?(t=mr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):mr.removeChild(r.stateNode));break;case 18:mr!==null&&(Yn?(t=mr,r=r.stateNode,t.nodeType===8?p1(t.parentNode,r):t.nodeType===1&&p1(t,r),Sf(t)):p1(mr,r.stateNode));break;case 4:n=mr,i=Yn,mr=r.stateNode.containerInfo,Yn=!0,ks(t,e,r),mr=n,Yn=i;break;case 0:case 11:case 14:case 15:if(!Ar&&(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)&&Sy(r,e,o),i=i.next}while(i!==n)}ks(t,e,r);break;case 1:if(!Ar&&(Oa(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ft(r,e,a)}ks(t,e,r);break;case 21:ks(t,e,r);break;case 22:r.mode&1?(Ar=(n=Ar)||r.memoizedState!==null,ks(t,e,r),Ar=n):ks(t,e,r);break;default:ks(t,e,r)}}function M2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new iT),e.forEach(function(n){var i=vT.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=Wt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*aT(n/1960))-n,10t?16:t,zs===null)var n=!1;else{if(t=zs,zs=null,oh=0,Ke&6)throw Error(se(331));var i=Ke;for(Ke|=4,pe=t.current;pe!==null;){var s=pe,o=s.child;if(pe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lWt()-xm?Bo(t,0):gm|=r),Kr(t,e)}function $8(t,e){e===0&&(t.mode&1?(e=Nu,Nu<<=1,!(Nu&130023424)&&(Nu=4194304)):e=1);var r=Fr();t=hs(t,e),t!==null&&(su(t,e,r),Kr(t,r))}function hT(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),$8(t,r)}function vT(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(se(314))}n!==null&&n.delete(e),$8(t,r)}var D8;D8=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Gr.current)Hr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Hr=!1,tT(t,e,r);Hr=!!(t.flags&131072)}else Hr=!1,Rt&&e.flags&1048576&&B5(e,Jd,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;wd(t,e),t=e.pendingProps;var i=ll(e,Tr.current);Qa(e,r),i=dm(null,e,n,t,i,r);var s=hm();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,Wr(n)?(s=!0,Yd(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,am(e),i.updater=Kh,e.stateNode=i,i._reactInternals=e,my(e,n,t,r),e=by(null,e,n,!0,s,r)):(e.tag=0,Rt&&s&&em(e),Lr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(wd(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=pT(n),t=Wn(n,t),i){case 0:e=xy(null,e,n,t,r);break e;case 1:e=k2(null,e,n,t,r);break e;case 11:e=S2(null,e,n,t,r);break e;case 14:e=A2(null,e,n,Wn(n.type,t),r);break e}throw Error(se(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),xy(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),k2(t,e,n,i,r);case 3:e:{if(g8(e),t===null)throw Error(se(387));n=e.pendingProps,s=e.memoizedState,i=s.element,U5(t,e),eh(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=dl(Error(se(423)),e),e=R2(t,e,n,r,i);break e}else if(n!==i){i=dl(Error(se(424)),e),e=R2(t,e,n,r,i);break e}else for(on=Hs(e.stateNode.containerInfo.firstChild),ln=e,Rt=!0,Jn=null,r=G5(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(cl(),n===i){e=vs(t,e,r);break e}Lr(t,e,n,r)}e=e.child}return e;case 5:return W5(e),t===null&&vy(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,cy(n,i)?o=null:s!==null&&cy(n,s)&&(e.flags|=32),m8(t,e),Lr(t,e,o,r),e.child;case 6:return t===null&&vy(e),null;case 13:return x8(t,e,r);case 4:return lm(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=fl(e,null,n,r):Lr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),S2(t,e,n,i,r);case 7:return Lr(t,e,e.pendingProps,r),e.child;case 8:return Lr(t,e,e.pendingProps.children,r),e.child;case 12:return Lr(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,xt(Xd,n._currentValue),n._currentValue=o,s!==null)if(ii(s.value,o)){if(s.children===i.children&&!Gr.current){e=vs(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=os(-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),yy(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(se(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),yy(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}Lr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,Qa(e,r),i=Rn(i),n=n(i),e.flags|=1,Lr(t,e,n,r),e.child;case 14:return n=e.type,i=Wn(n,e.pendingProps),i=Wn(n.type,i),A2(t,e,n,i,r);case 15:return y8(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),wd(t,e),e.tag=1,Wr(n)?(t=!0,Yd(e)):t=!1,Qa(e,r),q5(e,n,i),my(e,n,i,r),by(null,e,n,!0,t,r);case 19:return b8(t,e,r);case 22:return p8(t,e,r)}throw Error(se(156,e.tag))};function O8(t,e){return l5(t,e)}function yT(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 Sn(t,e,r,n){return new yT(t,e,r,n)}function Cm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pT(t){if(typeof t=="function")return Cm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Up)return 11;if(t===Vp)return 14}return 2}function Ys(t,e){var r=t.alternate;return r===null?(r=Sn(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 Sd(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")Cm(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ra:return Fo(r.children,i,s,e);case zp:o=8,i|=8;break;case zv:return t=Sn(12,r,e,i|2),t.elementType=zv,t.lanes=s,t;case Uv:return t=Sn(13,r,e,i),t.elementType=Uv,t.lanes=s,t;case Vv:return t=Sn(19,r,e,i),t.elementType=Vv,t.lanes=s,t;case HE:return Xh(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case VE:o=10;break e;case qE:o=9;break e;case Up:o=11;break e;case Vp:o=14;break e;case Ns:o=16,n=null;break e}throw Error(se(130,t==null?t:typeof t,""))}return e=Sn(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Fo(t,e,r,n){return t=Sn(7,t,n,e),t.lanes=r,t}function Xh(t,e,r,n){return t=Sn(22,t,n,e),t.elementType=HE,t.lanes=r,t.stateNode={isHidden:!1},t}function S1(t,e,r){return t=Sn(6,t,null,e),t.lanes=r,t}function A1(t,e,r){return e=Sn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function mT(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=s1(0),this.expirationTimes=s1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sm(t,e,r,n,i,s,o,a,l){return t=new mT(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Sn(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},am(s),t}function gT(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j8)}catch(t){console.error(t)}}j8(),BE.exports=hn;var vo=BE.exports;const CT=xs(vo);var F2=vo;Fv.createRoot=F2.createRoot,Fv.hydrateRoot=F2.hydrateRoot;const z8=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),n0=g.createContext({}),i0=g.createContext(null),s0=typeof document<"u",Pm=s0?g.useLayoutEffect:g.useEffect,U8=g.createContext({strict:!1});function ST(t,e,r,n){const{visualElement:i}=g.useContext(n0),s=g.useContext(U8),o=g.useContext(i0),a=g.useContext(z8).reducedMotion,l=g.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;g.useInsertionEffect(()=>{c&&c.update(r,o)});const f=g.useRef(!!window.HandoffAppearAnimations);return Pm(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),c}function Ba(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function AT(t,e,r){return g.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):Ba(r)&&(r.current=n))},[e])}function Of(t){return typeof t=="string"||Array.isArray(t)}function o0(t){return typeof t=="object"&&typeof t.start=="function"}const Tm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_m=["initial",...Tm];function a0(t){return o0(t.animate)||_m.some(e=>Of(t[e]))}function V8(t){return!!(a0(t)||t.variants)}function kT(t,e){if(a0(t)){const{initial:r,animate:n}=t;return{initial:r===!1||Of(r)?r:void 0,animate:Of(n)?n:void 0}}return t.inherit!==!1?e:{}}function RT(t){const{initial:e,animate:r}=kT(t,g.useContext(n0));return g.useMemo(()=>({initial:e,animate:r}),[j2(e),j2(r)])}function j2(t){return Array.isArray(t)?t.join(" "):t}const z2={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"]},Lf={};for(const t in z2)Lf[t]={isEnabled:e=>z2[t].some(r=>!!e[r])};function PT(t){for(const e in t)Lf[e]={...Lf[e],...t[e]}}const Mm=g.createContext({}),q8=g.createContext({}),TT=Symbol.for("motionComponentSymbol");function _T({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&PT(t);function s(a,l){let c;const f={...g.useContext(z8),...a,layoutId:MT(a)},{isStatic:u}=f,d=RT(a),v=n(a,u);if(!u&&s0){d.visualElement=ST(i,v,f,e);const m=g.useContext(q8),y=g.useContext(U8).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,t,m))}return g.createElement(n0.Provider,{value:d},c&&d.visualElement?g.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,AT(v,d.visualElement,l),v,u,d.visualElement))}const o=g.forwardRef(s);return o[TT]=i,o}function MT({layoutId:t}){const e=g.useContext(Mm).id;return e&&t!==void 0?e+"-"+t:t}function IT(t){function e(n,i={}){return _T(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 NT=["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 Im(t){return typeof t!="string"||t.includes("-")?!1:!!(NT.indexOf(t)>-1||/[A-Z]/.test(t))}const ch={};function $T(t){Object.assign(ch,t)}const cu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oa=new Set(cu);function H8(t,{layout:e,layoutId:r}){return oa.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!ch[t]||t==="opacity")}const Qr=t=>!!(t&&t.getVelocity),DT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OT=cu.length;function LT(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),W8=G8("--"),Iy=G8("var(--"),BT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,FT=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ro=(t,e,r)=>Math.min(Math.max(r,t),e),aa={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},rf={...aa,transform:t=>ro(0,1,t)},Hu={...aa,default:1},nf=t=>Math.round(t*1e5)/1e5,l0=/(-)?([\d]*\.?[\d])+/g,K8=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,jT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function fu(t){return typeof t=="string"}const uu=t=>({test:e=>fu(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),_s=uu("deg"),Oi=uu("%"),Ce=uu("px"),zT=uu("vh"),UT=uu("vw"),U2={...Oi,parse:t=>Oi.parse(t)/100,transform:t=>Oi.transform(t*100)},V2={...aa,transform:Math.round},Y8={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,size:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,rotate:_s,rotateX:_s,rotateY:_s,rotateZ:_s,scale:Hu,scaleX:Hu,scaleY:Hu,scaleZ:Hu,skew:_s,skewX:_s,skewY:_s,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:rf,originX:U2,originY:U2,originZ:Ce,zIndex:V2,fillOpacity:rf,strokeOpacity:rf,numOctaves:V2};function Nm(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(W8(u)){s[u]=d;continue}const v=Y8[u],m=FT(d,v);if(oa.has(u)){if(l=!0,o[u]=m,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=m):i[u]=m}if(e.transform||(l||n?i.transform=LT(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 $m=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Q8(t,e,r){for(const n in e)!Qr(e[n])&&!H8(n,r)&&(t[n]=e[n])}function VT({transformTemplate:t},e,r){return g.useMemo(()=>{const n=$m();return Nm(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function qT(t,e,r){const n=t.style||{},i={};return Q8(i,n,t),Object.assign(i,VT(t,e,r)),t.transformValues?t.transformValues(i):i}function HT(t,e,r){const n={},i=qT(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 GT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function fh(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||GT.has(t)}let J8=t=>!fh(t);function WT(t){t&&(J8=e=>e.startsWith("on")?!fh(e):t(e))}try{WT(require("@emotion/is-prop-valid").default)}catch{}function KT(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(J8(i)||r===!0&&fh(i)||!e&&!fh(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function q2(t,e,r){return typeof t=="string"?t:Ce.transform(e+r*t)}function YT(t,e,r){const n=q2(e,t.x,t.width),i=q2(r,t.y,t.height);return`${n} ${i}`}const QT={offset:"stroke-dashoffset",array:"stroke-dasharray"},JT={offset:"strokeDashoffset",array:"strokeDasharray"};function XT(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?QT:JT;t[s.offset]=Ce.transform(-n);const o=Ce.transform(e),a=Ce.transform(r);t[s.array]=`${o} ${a}`}function Dm(t,{attrX:e,attrY:r,attrScale:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},f,u,d){if(Nm(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:m,dimensions:y}=t;v.transform&&(y&&(m.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=YT(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&&XT(v,o,a,l,!1)}const X8=()=>({...$m(),attrs:{}}),Om=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ZT(t,e,r,n){const i=g.useMemo(()=>{const s=X8();return Dm(s,e,{enableHardwareAcceleration:!1},Om(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};Q8(s,t.style,t),i.style={...s,...i.style}}return i}function e_(t=!1){return(r,n,i,{latestValues:s},o)=>{const l=(Im(r)?ZT:HT)(n,s,o,r),f={...KT(n,typeof r=="string",t),...l,ref:i},{children:u}=n,d=g.useMemo(()=>Qr(u)?u.get():u,[u]);return g.createElement(r,{...f,children:d})}}const Lm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Z8(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 eC=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 tC(t,e,r,n){Z8(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(eC.has(i)?i:Lm(i),e.attrs[i])}function Bm(t,e){const{style:r}=t,n={};for(const i in r)(Qr(r[i])||e.style&&Qr(e.style[i])||H8(i,t))&&(n[i]=r[i]);return n}function rC(t,e){const r=Bm(t,e);for(const n in t)if(Qr(t[n])||Qr(e[n])){const i=cu.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=t[n]}return r}function Fm(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 nC(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const uh=t=>Array.isArray(t),t_=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),r_=t=>uh(t)?t[t.length-1]||0:t;function Ad(t){const e=Qr(t)?t.get():t;return t_(e)?e.toValue():e}function n_({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:i_(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const iC=t=>(e,r)=>{const n=g.useContext(n0),i=g.useContext(i0),s=()=>n_(t,e,n,i);return r?s():nC(s)};function i_(t,e,r,n){const i={},s=n(t,{});for(const d in s)i[d]=Ad(s[d]);let{initial:o,animate:a}=t;const l=a0(t),c=V8(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"&&!o0(u)&&(Array.isArray(u)?u:[u]).forEach(v=>{const m=Fm(t,v);if(!m)return;const{transitionEnd:y,transition:w,...x}=m;for(const b in x){let S=x[b];if(Array.isArray(S)){const A=f?S.length-1:0;S=S[A]}S!==null&&(i[b]=S)}for(const b in y)i[b]=y[b]}),i}const jt=t=>t;class H2{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 s_(t){let e=new H2,r=new H2,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]=s_(()=>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,o_),1),i.timestamp=u,i.isProcessing=!0,Gu.forEach(o),i.isProcessing=!1,r&&e&&(n=!1,t(a))},l=()=>{r=!0,n=!0,i.isProcessing||t(a)};return{schedule:Gu.reduce((u,d)=>{const v=s[d];return u[d]=(m,y=!1,w=!1)=>(r||l(),v.schedule(m,y,w)),u},{}),cancel:u=>Gu.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:wt,cancel:ys,state:lr,steps:k1}=a_(typeof requestAnimationFrame<"u"?requestAnimationFrame:jt,!0),l_={useVisualState:iC({scrapeMotionValuesFromProps:rC,createRenderState:X8,onMount:(t,e,{renderState:r,latestValues:n})=>{wt.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),wt.render(()=>{Dm(r,n,{enableHardwareAcceleration:!1},Om(e.tagName),t.transformTemplate),tC(e,r)})}})},c_={useVisualState:iC({scrapeMotionValuesFromProps:Bm,createRenderState:$m})};function f_(t,{forwardMotionProps:e=!1},r,n){return{...Im(t)?l_:c_,preloadedFeatures:r,useRender:e_(e),createVisualElement:n,Component:t}}function is(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const sC=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function c0(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const u_=t=>e=>sC(e)&&t(e,c0(e));function as(t,e,r,n){return is(t,e,u_(r),n)}const d_=(t,e)=>r=>e(t(r)),Qs=(...t)=>t.reduce(d_);function oC(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const G2=oC("dragHorizontal"),W2=oC("dragVertical");function aC(t){let e=!1;if(t==="y")e=W2();else if(t==="x")e=G2();else{const r=G2(),n=W2();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function lC(){const t=aC(!0);return t?(t(),!1):!0}class yo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function K2(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.type==="touch"||lC())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&wt.update(()=>a[n](s,o))};return as(t.current,r,i,{passive:!t.getProps()[n]})}class h_ extends yo{mount(){this.unmount=Qs(K2(this.node,!0),K2(this.node,!1))}unmount(){}}class v_ extends yo{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=Qs(is(this.node.current,"focus",()=>this.onFocus()),is(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cC=(t,e)=>e?t===e?!0:cC(t,e.parentElement):!1;function R1(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,c0(r))}class y_ extends yo{constructor(){super(...arguments),this.removeStartListeners=jt,this.removeEndListeners=jt,this.removeAccessibleListeners=jt,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=as(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f}=this.node.getProps();wt.update(()=>{cC(this.node.current,a.target)?c&&c(a,l):f&&f(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=as(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Qs(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()||R1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&wt.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=is(this.node.current,"keyup",o),R1("down",(a,l)=>{this.startPress(a,l)})},r=is(this.node.current,"keydown",e),n=()=>{this.isPressing&&R1("cancel",(s,o)=>this.cancelPress(s,o))},i=is(this.node.current,"blur",n);this.removeAccessibleListeners=Qs(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&&wt.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!lC()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&wt.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=as(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=is(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qs(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ny=new WeakMap,P1=new WeakMap,p_=t=>{const e=Ny.get(t.target);e&&e(t)},m_=t=>{t.forEach(p_)};function g_({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(m_,{root:t,...e})),n[i]}function x_(t,e,r){const n=g_(e);return Ny.set(t,r),n.observe(t),()=>{Ny.delete(t),n.unobserve(t)}}const b_={some:0,all:1};class w_ extends yo{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:b_[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 x_(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(E_(e,r))&&this.startObserver()}unmount(){}}function E_({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const C_={inView:{Feature:w_},tap:{Feature:y_},focus:{Feature:v_},hover:{Feature:h_}};function fC(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 A_(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function f0(t,e,r){const n=t.getProps();return Fm(n,e,r!==void 0?r:n.custom,S_(t),A_(t))}const k_="framerAppearId",R_="data-"+Lm(k_);let P_=jt,jm=jt;const Js=t=>t*1e3,ls=t=>t/1e3,T_={current:!1},uC=t=>Array.isArray(t)&&typeof t[0]=="number";function dC(t){return!!(!t||typeof t=="string"&&hC[t]||uC(t)||Array.isArray(t)&&t.every(dC))}const Vc=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,hC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vc([0,.65,.55,1]),circOut:Vc([.55,0,1,.45]),backIn:Vc([.31,.01,.66,-.59]),backOut:Vc([.33,1.53,.69,.99])};function vC(t){if(t)return uC(t)?Vc(t):Array.isArray(t)?t.map(vC):hC[t]}function __(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=vC(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 M_(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const yC=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,I_=1e-7,N_=12;function $_(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=yC(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>I_&&++a$_(s,0,1,t,r);return s=>s===0||s===1?s:yC(i(s),e,n)}const D_=du(.42,0,1,1),O_=du(0,0,.58,1),pC=du(.42,0,.58,1),L_=t=>Array.isArray(t)&&typeof t[0]!="number",mC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,gC=t=>e=>1-t(1-e),xC=t=>1-Math.sin(Math.acos(t)),zm=gC(xC),B_=mC(zm),bC=du(.33,1.53,.69,.99),Um=gC(bC),F_=mC(Um),j_=t=>(t*=2)<1?.5*Um(t):.5*(2-Math.pow(2,-10*(t-1))),z_={linear:jt,easeIn:D_,easeInOut:pC,easeOut:O_,circIn:xC,circInOut:B_,circOut:zm,backIn:Um,backInOut:F_,backOut:bC,anticipate:j_},Y2=t=>{if(Array.isArray(t)){jm(t.length===4);const[e,r,n,i]=t;return du(e,r,n,i)}else if(typeof t=="string")return z_[t];return t},Vm=(t,e)=>r=>!!(fu(r)&&jT.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),wC=(t,e,r)=>n=>{if(!fu(n))return n;const[i,s,o,a]=n.match(l0);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},U_=t=>ro(0,255,t),T1={...aa,transform:t=>Math.round(U_(t))},No={test:Vm("rgb","red"),parse:wC("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+T1.transform(t)+", "+T1.transform(e)+", "+T1.transform(r)+", "+nf(rf.transform(n))+")"};function V_(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 $y={test:Vm("#"),parse:V_,transform:No.transform},Fa={test:Vm("hsl","hue"),parse:wC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Oi.transform(nf(e))+", "+Oi.transform(nf(r))+", "+nf(rf.transform(n))+")"},Dr={test:t=>No.test(t)||$y.test(t)||Fa.test(t),parse:t=>No.test(t)?No.parse(t):Fa.test(t)?Fa.parse(t):$y.parse(t),transform:t=>fu(t)?t:t.hasOwnProperty("red")?No.transform(t):Fa.transform(t)},Nt=(t,e,r)=>-r*t+r*e+t;function _1(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 q_({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=_1(l,a,t+1/3),s=_1(l,a,t),o=_1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const M1=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},H_=[$y,No,Fa],G_=t=>H_.find(e=>e.test(t));function Q2(t){const e=G_(t);let r=e.parse(t);return e===Fa&&(r=q_(r)),r}const EC=(t,e)=>{const r=Q2(t),n=Q2(e),i={...r};return s=>(i.red=M1(r.red,n.red,s),i.green=M1(r.green,n.green,s),i.blue=M1(r.blue,n.blue,s),i.alpha=Nt(r.alpha,n.alpha,s),No.transform(i))};function W_(t){var e,r;return isNaN(t)&&fu(t)&&(((e=t.match(l0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(K8))===null||r===void 0?void 0:r.length)||0)>0}const CC={regex:BT,countKey:"Vars",token:"${v}",parse:jt},SC={regex:K8,countKey:"Colors",token:"${c}",parse:Dr.parse},AC={regex:l0,countKey:"Numbers",token:"${n}",parse:aa.parse};function I1(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 dh(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&I1(r,CC),I1(r,SC),I1(r,AC),r}function kC(t){return dh(t).values}function RC(t){const{values:e,numColors:r,numVars:n,tokenised:i}=dh(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function Y_(t){const e=kC(t);return RC(t)(e.map(K_))}const no={test:W_,parse:kC,createTransformer:RC,getAnimatableNone:Y_},PC=(t,e)=>r=>`${r>0?e:t}`;function TC(t,e){return typeof t=="number"?r=>Nt(t,e,r):Dr.test(t)?EC(t,e):t.startsWith("var(")?PC(t,e):MC(t,e)}const _C=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>TC(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]=TC(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},MC=(t,e)=>{const r=no.createTransformer(e),n=dh(t),i=dh(e);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Qs(_C(n.values,i.values),r):PC(t,e)},Bf=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},J2=(t,e)=>r=>Nt(t,e,r);function J_(t){return typeof t=="number"?J2:typeof t=="string"?Dr.test(t)?EC:MC:Array.isArray(t)?_C:typeof t=="object"?Q_:J2}function X_(t,e,r){const n=[],i=r||J_(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=X_(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(ro(t[0],t[s-1],c)):l}function Z_(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Bf(0,e,n);t.push(Nt(r,1,i))}}function eM(t){const e=[0];return Z_(e,t.length-1),e}function tM(t,e){return t.map(r=>r*e)}function rM(t,e){return t.map(()=>e||pC).splice(0,t.length-1)}function hh({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=L_(n)?n.map(Y2):Y2(n),s={done:!1,value:e[0]},o=tM(r&&r.length===e.length?r:eM(e),t),a=IC(o,e,{ease:Array.isArray(i)?i:rM(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function NC(t,e){return e?t*(1e3/e):0}const nM=5;function $C(t,e,r){const n=Math.max(e-nM,0);return NC(r-t(n),e-n)}const N1=.001,iM=.01,X2=10,sM=.05,oM=1;function aM({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;P_(t<=Js(X2));let o=1-e;o=ro(sM,oM,o),t=ro(iM,X2,ls(t)),o<1?(i=c=>{const f=c*o,u=f*t,d=f-r,v=Dy(c,o),m=Math.exp(-u);return N1-d/v*m},s=c=>{const u=c*o*t,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-u),y=Dy(Math.pow(c,2),o);return(-i(c)+N1>0?-1:1)*((d-v)*m)/y}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-N1+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=cM(i,s,a);if(t=Js(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 lM=12;function cM(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function dM(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Z2(t,uM)&&Z2(t,fM)){const r=aM(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function DC({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,velocity:f,duration:u,isResolvedFromDuration:d}=dM(n),v=f?-ls(f):0,m=l/(2*Math.sqrt(a*c)),y=s-i,w=ls(Math.sqrt(a/c)),x=Math.abs(y)<5;r||(r=x?.01:2),e||(e=x?.005:.5);let b;if(m<1){const S=Dy(w,m);b=A=>{const _=Math.exp(-m*w*A);return s-_*((v+m*w*y)/S*Math.sin(S*A)+y*Math.cos(S*A))}}else if(m===1)b=S=>s-Math.exp(-w*S)*(y+(v+w*y)*S);else{const S=w*Math.sqrt(m*m-1);b=A=>{const _=Math.exp(-m*w*A),D=Math.min(S*A,300);return s-_*((v+m*w*y)*Math.sinh(D)+S*y*Math.cosh(D))/S}}return{calculatedDuration:d&&u||null,next:S=>{const A=b(S);if(d)o.done=S>=u;else{let _=v;S!==0&&(m<1?_=$C(b,S,A):_=0);const D=Math.abs(_)<=r,$=Math.abs(s-A)<=e;o.done=D&&$}return o.value=o.done?s:A,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=O=>a!==void 0&&Ol,m=O=>a===void 0?l:l===void 0||Math.abs(a-O)-y*Math.exp(-O/n),S=O=>x+b(O),A=O=>{const H=b(O),Y=S(O);d.done=Math.abs(H)<=c,d.value=d.done?x:Y};let _,D;const $=O=>{v(d.value)&&(_=O,D=DC({keyframes:[d.value,m(d.value)],velocity:$C(S,O,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return $(0),{calculatedDuration:null,next:O=>{let H=!1;return!D&&_===void 0&&(H=!0,A(O),$(O)),_!==void 0&&O>_?D.next(O-_):(!H&&A(O),d)}}}const hM=t=>{const e=({timestamp:r})=>t(r);return{start:()=>wt.update(e,!0),stop:()=>ys(e),now:()=>lr.isProcessing?lr.timestamp:performance.now()}},tw=2e4;function rw(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=tw?1/0:e}const vM={decay:ew,inertia:ew,tween:hh,keyframes:hh,spring:DC};function vh({autoplay:t=!0,delay:e=0,driver:r=hM,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,m=!1,y,w;const x=()=>{w=new Promise(k=>{y=k})};x();let b;const S=vM[i]||hh;let A;S!==hh&&typeof n[0]!="number"&&(A=IC([0,100],n,{clamp:!1}),n=[0,100]);const _=S({...d,keyframes:n});let D;a==="mirror"&&(D=S({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let $="idle",O=null,H=null,Y=null;_.calculatedDuration===null&&s&&(_.calculatedDuration=rw(_));const{calculatedDuration:Q}=_;let re=1/0,I=1/0;Q!==null&&(re=Q+o,I=re*(s+1)-o);let h=0;const C=k=>{if(H===null)return;v>0&&(H=Math.min(H,k)),v<0&&(H=Math.min(k-I/v,H)),O!==null?h=O:h=Math.round(k-H)*v;const p=h-e*(v>=0?1:-1),P=v>=0?p<0:p>I;h=Math.max(p,0),$==="finished"&&O===null&&(h=I);let B=h,E=_;if(s){const W=h/re;let ne=Math.floor(W),X=W%1;!X&&W>=1&&(X=1),X===1&&ne--,ne=Math.min(ne,s+1);const ee=!!(ne%2);ee&&(a==="reverse"?(X=1-X,o&&(X-=o/re)):a==="mirror"&&(E=D));let _e=ro(0,1,X);h>I&&(_e=a==="reverse"&&ee?1:0),B=_e*re}const F=P?{done:!1,value:n[0]}:E.next(B);A&&(F.value=A(F.value));let{done:j}=F;!P&&Q!==null&&(j=v>=0?h>=I:h<=0);const z=O===null&&($==="finished"||$==="running"&&j);return u&&u(F.value),z&&T(),F},R=()=>{b&&b.stop(),b=void 0},M=()=>{$="idle",R(),y(),x(),H=Y=null},T=()=>{$="finished",f&&f(),R(),y()},N=()=>{if(m)return;b||(b=r(C));const k=b.now();l&&l(),O!==null?H=k-O:(!H||$==="finished")&&(H=k),$==="finished"&&x(),Y=H,O=null,$="running",b.start()};t&&N();const L={then(k,p){return w.then(k,p)},get time(){return ls(h)},set time(k){k=Js(k),h=k,O!==null||!b||v===0?O=k:H=b.now()-k/v},get duration(){const k=_.calculatedDuration===null?rw(_):_.calculatedDuration;return ls(k)},get speed(){return v},set speed(k){k===v||!b||(v=k,L.time=ls(h))},get state(){return $},play:N,pause:()=>{$="paused",O=h},stop:()=>{m=!0,$!=="idle"&&($="idle",c&&c(),M())},cancel:()=>{Y!==null&&C(Y),M()},complete:()=>{$="finished"},sample:k=>(H=0,C(k))};return L}function yM(t){let e;return()=>(e===void 0&&(e=t()),e)}const pM=yM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Wu=10,gM=2e4,xM=(t,e)=>e.type==="spring"||t==="backgroundColor"||!dC(e.ease);function bM(t,e,{onUpdate:r,onComplete:n,...i}){if(!(pM()&&mM.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l;const c=()=>{l=new Promise(b=>{a=b})};c();let{keyframes:f,duration:u=300,ease:d,times:v}=i;if(xM(e,i)){const b=vh({...i,repeat:0,delay:0});let S={done:!1,value:f[0]};const A=[];let _=0;for(;!S.done&&_m.cancel(),w=()=>{wt.update(y),a(),c()};return m.onfinish=()=>{t.set(M_(f,i)),n&&n(),w()},{then(b,S){return l.then(b,S)},attachTimeline(b){return m.timeline=b,m.onfinish=null,jt},get time(){return ls(m.currentTime||0)},set time(b){m.currentTime=Js(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return ls(u)},play:()=>{o||(m.play(),ys(y))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const S=vh({...i,autoplay:!1});t.setWithVelocity(S.sample(b-Wu).value,S.sample(b).value,Wu)}w()},complete:()=>m.finish(),cancel:w}}function wM({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:jt,pause:jt,stop:jt,then:s=>(s(),Promise.resolve()),cancel:jt,complete:jt});return e?vh({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const EM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),SM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kM=(t,{keyframes:e})=>e.length>2?SM:oa.has(t)?t.startsWith("scale")?CM(e[1]):EM:AM,Oy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(no.test(e)||e==="0")&&!e.startsWith("url(")),RM=new Set(["brightness","contrast","saturate","opacity"]);function PM(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(l0)||[];if(!n)return t;const i=r.replace(n,"");let s=RM.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const TM=/([a-z-]*)\(.*?\)/g,Ly={...no,getAnimatableNone:t=>{const e=t.match(TM);return e?e.map(PM).join(" "):t}},_M={...Y8,color:Dr,backgroundColor:Dr,outlineColor:Dr,fill:Dr,stroke:Dr,borderColor:Dr,borderTopColor:Dr,borderRightColor:Dr,borderBottomColor:Dr,borderLeftColor:Dr,filter:Ly,WebkitFilter:Ly},qm=t=>_M[t];function OC(t,e){let r=qm(t);return r!==Ly&&(r=no),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const LC=t=>/^0[^.\s]+$/.test(t);function MM(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||LC(t)}function IM(t,e,r,n){const i=Oy(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=BC(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Js(o);const l=IM(e,t,r,s),c=l[0],f=l[l.length-1],u=Oy(t,c),d=Oy(t,f);let v={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:m=>{e.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(NM(s)||(v={...v,...kM(t,v)}),v.duration&&(v.duration=Js(v.duration)),v.repeatDelay&&(v.repeatDelay=Js(v.repeatDelay)),!u||!d||T_.current||s.type===!1)return wM(v);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=bM(e,t,v);if(m)return m}return vh(v)};function yh(t){return!!(Qr(t)&&t.add)}const FC=t=>/^\-?\d*\.?\d+$/.test(t);function Gm(t,e){t.indexOf(e)===-1&&t.push(e)}function Wm(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Km{constructor(){this.subscriptions=[]}add(e){return Gm(this.subscriptions,e),()=>Wm(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 DM{constructor(e,r={}){this.version="10.16.4",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}=lr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,wt.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=()=>wt.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=$M(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Km);const n=this.events[e].add(r);return e==="change"?()=>{n(),wt.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?NC(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 vl(t,e){return new DM(t,e)}const jC=t=>e=>e.test(t),OM={test:t=>t==="auto",parse:t=>t},zC=[aa,Ce,Oi,_s,UT,zT,OM],oc=t=>zC.find(jC(t)),LM=[...zC,Dr,no],BM=t=>LM.find(jC(t));function FM(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,vl(r))}function jM(t,e){const r=f0(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=r_(s[o]);FM(t,o,a)}}function zM(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(y)}return o&&Promise.all(c).then(()=>{o&&jM(t,o)}),c}function By(t,e,r={}){const n=f0(t,e,r.custom);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(UC(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return HM(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 HM(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(GM).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(By(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function GM(t,e){return t.sortNodePosition(e)}function WM(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>By(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=By(t,e,r);else{const i=typeof e=="function"?f0(t,e,r.custom):e;n=Promise.all(UC(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}const KM=[...Tm].reverse(),YM=Tm.length;function QM(t){return e=>Promise.all(e.map(({animation:r,options:n})=>WM(t,r,n)))}function JM(t){let e=QM(t);const r=ZM();let n=!0;const i=(l,c)=>{const f=f0(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 m={},y=1/0;for(let x=0;xy&&_;const Y=Array.isArray(A)?A:[A];let Q=Y.reduce(i,{});D===!1&&(Q={});const{prevResolvedValues:re={}}=S,I={...re,...Q},h=C=>{H=!0,v.delete(C),S.needsAnimating[C]=!0};for(const C in I){const R=Q[C],M=re[C];m.hasOwnProperty(C)||(R!==M?uh(R)&&uh(M)?!fC(R,M)||O?h(C):S.protectedKeys[C]=!0:R!==void 0?h(C):v.add(C):R!==void 0&&v.has(C)?h(C):S.protectedKeys[C]=!0)}S.prevProp=A,S.prevResolvedValues=Q,S.isActive&&(m={...m,...Q}),n&&t.blockInitialAnimation&&(H=!1),H&&!$&&d.push(...Y.map(C=>({animation:C,options:{type:b,...l}})))}if(v.size){const x={};v.forEach(b=>{const S=t.getBaseTarget(b);S!==void 0&&(x[b]=S)}),d.push({animation:x})}let w=!!d.length;return n&&f.initial===!1&&!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 m;return(m=v.animationState)===null||m===void 0?void 0:m.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 XM(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!fC(e,t):!1}function bo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ZM(){return{animate:bo(!0),whileInView:bo(),whileHover:bo(),whileTap:bo(),whileDrag:bo(),whileFocus:bo(),exit:bo()}}class eI extends yo{constructor(e){super(e),e.animationState||(e.animationState=JM(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),o0(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 tI=0;class rI extends yo{constructor(){super(...arguments),this.id=tI++}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 nI={animation:{Feature:eI},exit:{Feature:rI}},nw=(t,e)=>Math.abs(t-e);function iI(t,e){const r=nw(t.x,e.x),n=nw(t.y,e.y);return Math.sqrt(r**2+n**2)}class VC{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=D1(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,u=iI(c.offset,{x:0,y:0})>=3;if(!f&&!u)return;const{point:d}=c,{timestamp:v}=lr;this.history.push({...d,timestamp:v});const{onStart:m,onMove:y}=this.handlers;f||(m&&m(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=$1(f,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:u,onSessionEnd:d}=this.handlers,v=D1(c.type==="pointercancel"?this.lastMoveEventInfo:$1(f,this.transformPagePoint),this.history);this.startEvent&&u&&u(c,v),d&&d(c,v)},!sC(e))return;this.handlers=r,this.transformPagePoint=n;const i=c0(e),s=$1(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=lr;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=r;l&&l(e,D1(s,this.history)),this.removeListeners=Qs(as(window,"pointermove",this.handlePointerMove),as(window,"pointerup",this.handlePointerUp),as(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ys(this.updatePoint)}}function $1(t,e){return e?{point:e(t.point)}:t}function iw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function D1({point:t},e){return{point:t,delta:iw(t,qC(e)),offset:iw(t,sI(e)),velocity:oI(e,.1)}}function sI(t){return t[0]}function qC(t){return t[t.length-1]}function oI(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=qC(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>Js(e)));)r--;if(!n)return{x:0,y:0};const s=ls(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 fn(t){return t.max-t.min}function Fy(t,e=0,r=.01){return Math.abs(t-e)<=r}function sw(t,e,r,n=.5){t.origin=n,t.originPoint=Nt(e.min,e.max,t.origin),t.scale=fn(r)/fn(e),(Fy(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Nt(r.min,r.max,t.origin)-t.originPoint,(Fy(t.translate)||isNaN(t.translate))&&(t.translate=0)}function sf(t,e,r,n){sw(t.x,e.x,r.x,n?n.originX:void 0),sw(t.y,e.y,r.y,n?n.originY:void 0)}function ow(t,e,r){t.min=r.min+e.min,t.max=t.min+fn(e)}function aI(t,e,r){ow(t.x,e.x,r.x),ow(t.y,e.y,r.y)}function aw(t,e,r){t.min=e.min-r.min,t.max=t.min+fn(e)}function of(t,e,r){aw(t.x,e.x,r.x),aw(t.y,e.y,r.y)}function lI(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Nt(r,t,n.max):Math.min(t,r)),t}function lw(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 cI(t,{top:e,left:r,bottom:n,right:i}){return{x:lw(t.x,r,i),y:lw(t.y,e,n)}}function cw(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Bf(e.min,e.max-n,t.min):n>i&&(r=Bf(t.min,t.max-i,e.min)),ro(0,1,r)}function dI(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 jy=.35;function hI(t=jy){return t===!1?t=0:t===!0&&(t=jy),{x:fw(t,"left","right"),y:fw(t,"top","bottom")}}function fw(t,e,r){return{min:uw(t,e),max:uw(t,r)}}function uw(t,e){return typeof t=="number"?t:t[e]||0}const dw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ja=()=>({x:dw(),y:dw()}),hw=()=>({min:0,max:0}),Yt=()=>({x:hw(),y:hw()});function xi(t){return[t("x"),t("y")]}function HC({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function vI({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function yI(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 O1(t){return t===void 0||t===1}function zy({scale:t,scaleX:e,scaleY:r}){return!O1(t)||!O1(e)||!O1(r)}function ko(t){return zy(t)||GC(t)||t.z||t.rotate||t.rotateX||t.rotateY}function GC(t){return vw(t.x)||vw(t.y)}function vw(t){return t&&t!=="0%"}function ph(t,e,r){const n=t-r,i=e*n;return r+i}function yw(t,e,r,n,i){return i!==void 0&&(t=ph(t,i,n)),ph(t,r,n)+e}function Uy(t,e=0,r=1,n,i){t.min=yw(t.min,e,r,n,i),t.max=yw(t.max,e,r,n,i)}function WC(t,{x:e,y:r}){Uy(t.x,e.translate,e.scale,e.originPoint),Uy(t.y,r.translate,r.scale,r.originPoint)}function pI(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 Ds(t,e){t.min=t.min+e,t.max=t.max+e}function mw(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Nt(t.min,t.max,s);Uy(t,e[r],e[n],o,e.scale)}const mI=["x","scaleX","originX"],gI=["y","scaleY","originY"];function za(t,e){mw(t.x,e,mI),mw(t.y,e,gI)}function KC(t,e){return HC(yI(t.getBoundingClientRect(),e))}function xI(t,e,r){const n=KC(t,r),{scroll:i}=e;return i&&(Ds(n.x,i.offset.x),Ds(n.y,i.offset.y)),n}const bI=new WeakMap;class wI{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=Yt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=l=>{this.stopAnimation(),r&&this.snapToCursor(c0(l,"page").point)},s=(l,c)=>{const{drag:f,dragPropagation:u,onDragStart:d}=this.getProps();if(f&&!u&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=aC(f),!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),xi(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Oi.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[m];x&&(y=fn(x)*(parseFloat(y)/100))}}this.originPoint[m]=y}),d&&wt.update(()=>d(l,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:f,dragDirectionLock:u,onDirectionLock:d,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:m}=c;if(u&&this.currentDirection===null){this.currentDirection=EI(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),v&&v(l,c)},a=(l,c)=>this.stop(l,c);this.panSession=new VC(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}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&&wt.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||!Ku(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=lI(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&Ba(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=cI(n.layoutBox,e):this.constraints=!1,this.elastic=hI(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&xi(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=dI(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Ba(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=xI(n,i.root,this.visualElement.getTransformPagePoint());let o=fI(i.layout.layoutBox,s);if(r){const a=r(vI(o));this.hasMutatedConstraints=!!a,a&&(o=HC(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=xi(f=>{if(!Ku(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,m={type:"inertia",velocity:n?e[f]:0,bounceStiffness:d,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(f,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(Hm(e,n,0,r))}stopAnimation(){xi(e=>this.getAxisMotionValue(e).stop())}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){xi(r=>{const{drag:n}=this.getProps();if(!Ku(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]-Nt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ba(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};xi(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=uI({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(),xi(o=>{if(!Ku(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Nt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;bI.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();Ba(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=is(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(xi(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=jy,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ku(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function EI(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class CI extends yo{constructor(e){super(e),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new wI(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}unmount(){this.removeGroupControls(),this.removeListeners()}}const gw=t=>(e,r)=>{t&&wt.update(()=>t(e,r))};class SI extends yo{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(e){this.session=new VC(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:gw(e),onStart:gw(r),onMove:n,onEnd:(s,o)=>{delete this.session,i&&wt.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 AI(){const t=g.useContext(i0);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=g.useId();return g.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}const kd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ac={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ce.test(t))t=parseFloat(t);else return t;const r=xw(t,e.target.x),n=xw(t,e.target.y);return`${r}% ${n}%`}},kI={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=no.parse(t);if(i.length>5)return n;const s=no.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=Nt(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 RI extends cr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;$T(PI),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()})),kd.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()||wt.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 YC(t){const[e,r]=AI(),n=g.useContext(Mm);return cr.createElement(RI,{...t,layoutGroup:n,switchLayoutGroup:g.useContext(q8),isPresent:e,safeToRemove:r})}const PI={borderRadius:{...ac,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ac,borderTopRightRadius:ac,borderBottomLeftRadius:ac,borderBottomRightRadius:ac,boxShadow:kI},QC=["TopLeft","TopRight","BottomLeft","BottomRight"],TI=QC.length,bw=t=>typeof t=="string"?parseFloat(t):t,ww=t=>typeof t=="number"||Ce.test(t);function _I(t,e,r,n,i,s){i?(t.opacity=Nt(0,r.opacity!==void 0?r.opacity:1,MI(n)),t.opacityExit=Nt(e.opacity!==void 0?e.opacity:1,0,II(n))):s&&(t.opacity=Nt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(Bf(t,e,n))}function Cw(t,e){t.min=e.min,t.max=e.max}function pn(t,e){Cw(t.x,e.x),Cw(t.y,e.y)}function Sw(t,e,r,n,i){return t-=e,t=ph(t,1/r,n),i!==void 0&&(t=ph(t,1/i,n)),t}function NI(t,e=0,r=1,n=.5,i,s=t,o=t){if(Oi.test(e)&&(e=parseFloat(e),e=Nt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Nt(s.min,s.max,n);t===s&&(a-=e),t.min=Sw(t.min,e,r,a,i),t.max=Sw(t.max,e,r,a,i)}function Aw(t,e,[r,n,i],s,o){NI(t,e[r],e[n],e[i],e.scale,s,o)}const $I=["x","scaleX","originX"],DI=["y","scaleY","originY"];function kw(t,e,r,n){Aw(t.x,e,$I,r?r.x:void 0,n?n.x:void 0),Aw(t.y,e,DI,r?r.y:void 0,n?n.y:void 0)}function Rw(t){return t.translate===0&&t.scale===1}function XC(t){return Rw(t.x)&&Rw(t.y)}function OI(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 ZC(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 Pw(t){return fn(t.x)/fn(t.y)}class LI{constructor(){this.members=[]}add(e){Gm(this.members,e),e.scheduleRender()}remove(e){if(Wm(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 Tw(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 BI=(t,e)=>t.depth-e.depth;class FI{constructor(){this.children=[],this.isDirty=!1}add(e){Gm(this.children,e),this.isDirty=!0}remove(e){Wm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(BI),this.isDirty=!1,this.children.forEach(e)}}function jI(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(ys(n),t(s-e))};return wt.read(n,!0),()=>ys(n)}function zI(t){window.MotionDebug&&window.MotionDebug.record(t)}function UI(t){return t instanceof SVGElement&&t.tagName!=="svg"}function VI(t,e,r){const n=Qr(t)?t:vl(t);return n.start(Hm("",n,e,r)),n.animation}const _w=["","X","Y","Z"],Mw=1e3;let qI=0;const Ro={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function eS({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=qI++,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.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Ro.totalNodes=Ro.resolvedTargetDeltas=Ro.recalculatedProjection=0,this.nodes.forEach(WI),this.nodes.forEach(XI),this.nodes.forEach(ZI),this.nodes.forEach(KI),zI(Ro)},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=jI(d,250),kd.hasAnimatedSinceResize&&(kd.hasAnimatedSinceResize=!1,this.nodes.forEach(Nw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||iN,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=f.getProps(),b=!this.targetLayout||!ZC(this.targetLayout,m)||v,S=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,S);const A={...BC(y,"layout"),onPlay:w,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else d||Nw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,ys(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(eN),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(YI),this.sharedNodes.forEach(tN)}scheduleUpdateProjection(){wt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){wt.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 _=A/1e3;$w(u.x,o.x,_),$w(u.y,o.y,_),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(of(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rN(this.relativeTarget,this.relativeTargetOrigin,d,_),S&&OI(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Yt()),pn(S,this.relativeTarget)),y&&(this.animationValues=f,_I(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&&(ys(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{kd.hasAnimatedSinceResize=!0,this.currentAnimation=VI(0,Mw,{...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(Mw),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&&tS(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Yt();const u=fn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=fn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}pn(a,l),za(a,f),sf(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new LI),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<_w.length;f++){const u="rotate"+_w[f];l[u]&&(c[u]=l[u],o.setStaticValue(u,0))}o.render();for(const f in c)o.setStaticValue(f,c[f]);o.scheduleRender()}getProjectionStyles(o={}){var a,l;const c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};const f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Ad(o.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Ad(o.pointerEvents)||""),this.hasProjected&&!ko(this.latestValues)&&(y.transform=f?f({},""):"none",this.hasProjected=!1),y}const d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=Tw(this.projectionDeltaWithTransform,this.treeScale,d),f&&(c.transform=f(d,c.transform));const{x:v,y:m}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${m.origin*100}% 0`,u.animationValues?c.opacity=u===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in ch){if(d[y]===void 0)continue;const{correct:w,applyTo:x}=ch[y],b=c.transform==="none"?d[y]:w(d[y],u);if(x){const S=x.length;for(let A=0;A{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Iw),this.root.sharedNodes.clear()}}}function HI(t){t.updateLayout()}function GI(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"?xi(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=fn(d);d.min=n[u].min,d.max=d.min+v}):tS(s,r.layoutBox,n)&&xi(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=fn(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=ja();sf(a,n,r.layoutBox);const l=ja();o?sf(l,t.applyTransform(i,!0),r.measuredBox):sf(l,n,r.layoutBox);const c=!XC(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 m=Yt();of(m,r.layoutBox,d.layoutBox);const y=Yt();of(y,n,v.layoutBox),ZC(m,y)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,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 WI(t){Ro.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 KI(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function YI(t){t.clearSnapshot()}function Iw(t){t.clearMeasurements()}function QI(t){t.isLayoutDirty=!1}function JI(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Nw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function XI(t){t.resolveTargetDelta()}function ZI(t){t.calcProjection()}function eN(t){t.resetRotation()}function tN(t){t.removeLeadSnapshot()}function $w(t,e,r){t.translate=Nt(e.translate,0,r),t.scale=Nt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Dw(t,e,r,n){t.min=Nt(e.min,r.min,n),t.max=Nt(e.max,r.max,n)}function rN(t,e,r,n){Dw(t.x,e.x,r.x,n),Dw(t.y,e.y,r.y,n)}function nN(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const iN={duration:.45,ease:[.4,0,.1,1]},Ow=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Lw=Ow("applewebkit/")&&!Ow("chrome/")?Math.round:jt;function Bw(t){t.min=Lw(t.min),t.max=Lw(t.max)}function sN(t){Bw(t.x),Bw(t.y)}function tS(t,e,r){return t==="position"||t==="preserve-aspect"&&!Fy(Pw(e),Pw(r),.2)}const oN=eS({attachResizeListener:(t,e)=>is(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),L1={current:void 0},rS=eS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!L1.current){const t=new oN({});t.mount(window),t.setOptions({layoutScroll:!0}),L1.current=t}return L1.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),aN={pan:{Feature:SI},drag:{Feature:CI,ProjectionNode:rS,MeasureLayout:YC}},lN=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function cN(t){const e=lN.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function Vy(t,e,r=1){const[n,i]=cN(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const o=s.trim();return FC(o)?parseFloat(o):o}else return Iy(i)?Vy(i,e,r+1):i}function fN(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(!Iy(s))return;const o=Vy(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!Iy(s))continue;const o=Vy(s,n);o&&(e[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const uN=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nS=t=>uN.has(t),dN=t=>Object.keys(t).some(nS),Fw=t=>t===aa||t===Ce,jw=(t,e)=>parseFloat(t.split(", ")[e]),zw=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return jw(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?jw(s[1],t):0}},hN=new Set(["x","y","z"]),vN=cu.filter(t=>!hN.has(t));function yN(t){const e=[];return vN.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 yl={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:zw(4,13),y:zw(5,14)};yl.translateX=yl.x;yl.translateY=yl.y;const pN=(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]=yl[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]=yl[c](l,s)}),t},mN=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter(nS);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=oc(f);const d=e[l];let v;if(uh(d)){const m=d.length,y=d[0]===null?1:0;f=d[y],u=oc(f);for(let w=y;w=0?window.pageYOffset:null,c=pN(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),s0&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function gN(t,e,r,n){return dN(e)?mN(t,e,r,n):{target:e,transitionEnd:n}}const xN=(t,e,r,n)=>{const i=fN(t,e,n);return e=i.target,n=i.transitionEnd,gN(t,e,r,n)},qy={current:null},iS={current:!1};function bN(){if(iS.current=!0,!!s0)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qy.current=t.matches;t.addListener(e),e()}else qy.current=!1}function wN(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(Qr(s))t.addValue(i,s),yh(n)&&n.add(i);else if(Qr(o))t.addValue(i,vl(s,{owner:t})),yh(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,vl(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const Uw=new WeakMap,sS=Object.keys(Lf),EN=sS.length,Vw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CN=_m.length;class SN{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=()=>wt.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=a0(r),this.isVariantNode=V8(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&&Qr(d)&&(d.set(a[u],!1),yh(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,Uw.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)),iS.current||bN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qy.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Uw.delete(this.current),this.projection&&this.projection.unmount(),ys(this.notifyUpdate),ys(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=oa.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&wt.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):Yt()}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=vl(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=Fm(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&&!Qr(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 Km),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class oS extends SN{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=VM(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){zM(this,n,o);const a=xN(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function AN(t){return window.getComputedStyle(t)}class kN extends oS{readValueFromInstance(e,r){if(oa.has(r)){const n=qm(r);return n&&n.default||0}else{const n=AN(e),i=(W8(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return KC(e,r)}build(e,r,n,i){Nm(e,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,r){return Bm(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Qr(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){Z8(e,r,n,i)}}class RN extends oS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(oa.has(r)){const n=qm(r);return n&&n.default||0}return r=eC.has(r)?r:Lm(r),e.getAttribute(r)}measureInstanceViewportBox(){return Yt()}scrapeMotionValuesFromProps(e,r){return rC(e,r)}build(e,r,n,i){Dm(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){tC(e,r,n,i)}mount(e){this.isSVGTag=Om(e.tagName),super.mount(e)}}const PN=(t,e)=>Im(t)?new RN(e,{enableHardwareAcceleration:!1}):new kN(e,{enableHardwareAcceleration:!0}),TN={layout:{ProjectionNode:rS,MeasureLayout:YC}},_N={...nI,...C_,...aN,...TN},Xa=IT((t,e)=>f_(t,e,_N,PN));function aS(){const t=g.useRef(!1);return Pm(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function MN(){const t=aS(),[e,r]=g.useState(0),n=g.useCallback(()=>{t.current&&r(e+1)},[e]);return[g.useCallback(()=>wt.postRender(n),[n]),e]}class IN extends g.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 NN({children:t,isPresent:e}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.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; @@ -45,7 +45,7 @@ Error generating stack: `+s.message+` top: ${a}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(c)}},[e]),g.createElement(EN,{isPresent:e,childRef:n,sizeRef:i},g.cloneElement(t,{ref:n}))}const I1=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=K8(SN),l=g.useId(),c=g.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 g.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),g.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=g.createElement(CN,{isPresent:r},t)),g.createElement(e0.Provider,{value:c},t)};function SN(){return new Map}function AN(t){return g.useEffect(()=>()=>t(),[])}const Ea=t=>t.key||"";function kN(t,e){t.forEach(r=>{const n=Ea(r);e.set(n,r)})}function RN(t){const e=[];return g.Children.forEach(t,r=>{g.isValidElement(r)&&e.push(r)}),e}const ZC=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=g.useContext(Sm).forceRender||wN()[0],l=XC(),c=RN(t);let f=c;const u=g.useRef(new Map).current,d=g.useRef(f),v=g.useRef(new Map).current,m=g.useRef(!0);if(wm(()=>{m.current=!1,kN(c,v),d.current=f}),AN(()=>{m.current=!0,v.clear(),u.clear()}),m.current)return g.createElement(g.Fragment,null,f.map(x=>g.createElement(I1,{key:Ea(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},x)));f=[...f];const y=d.current.map(Ea),w=c.map(Ea),b=y.length;for(let x=0;x{if(w.indexOf(S)!==-1)return;const A=v.get(S);if(!A)return;const _=y.indexOf(S);let D=x;if(!D){const $=()=>{v.delete(S),u.delete(S);const O=d.current.findIndex(H=>H.key===S);if(d.current.splice(O,1),!u.size){if(d.current=c,l.current===!1)return;a(),n&&n()}};D=g.createElement(I1,{key:Ea(A),isPresent:!1,onExitComplete:$,custom:e,presenceAffectsLayout:s,mode:o},A),u.set(S,D)}f.splice(_,0,D)}),f=f.map(x=>{const S=x.key;return u.has(S)?x:g.createElement(I1,{key:Ea(x),isPresent:!0,presenceAffectsLayout:s,mode:o},x)}),g.createElement(g.Fragment,null,u.size?f:f.map(x=>g.cloneElement(x)))},PN={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"}};function TN(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 _N(t){var e=TN(t,"string");return typeof e=="symbol"?e:String(e)}function MN(t,e,r){return e=_N(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ow(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 N1(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=N1({},l),d=!1;for(var v of o){var m=l[v];if(m!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=m,u[w]==null&&delete u[w]}}var b=d?N1(N1({},f),u):l,x=function(){var D=b[S],$=i[S];try{if($.mappings)return"continue";if(typeof D=="string"||typeof D=="number")c.push($.values[D].defaultClass);else if(Array.isArray(D))for(var O=0;Ot,$N=function(){return IN(NN)(...arguments)},eS=$N({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"}}},userSelect:{values:{none:{defaultClass:"fyvr11n2"},text:{defaultClass:"fyvr11n3"},all:{defaultClass:"fyvr11n4"},auto:{defaultClass:"fyvr11n5"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n6"},nowrap:{defaultClass:"fyvr11n7"},initial:{defaultClass:"fyvr11n8"},inherit:{defaultClass:"fyvr11n9"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11na"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nb"},"break-word":{defaultClass:"fyvr11nc"},initial:{defaultClass:"fyvr11nd"},inherit:{defaultClass:"fyvr11ne"}}},zIndex:{values:{0:{defaultClass:"fyvr11nf"},1:{defaultClass:"fyvr11ng"},10:{defaultClass:"fyvr11nh"},20:{defaultClass:"fyvr11ni"},30:{defaultClass:"fyvr11nj"},40:{defaultClass:"fyvr11nk"},50:{defaultClass:"fyvr11nl"},"-1":{defaultClass:"fyvr11nm"},auto:{defaultClass:"fyvr11nn"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11no"},"16/9":{defaultClass:"fyvr11np"},"4/3":{defaultClass:"fyvr11nq"},"3/1":{defaultClass:"fyvr11nr"},auto:{defaultClass:"fyvr11ns"}}}}},{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:"fyvr11nt",active:"fyvr11nu",disabled:"fyvr11nv",focus:"fyvr11nw",hover:"fyvr11nx",checked:"fyvr11ny"},defaultClass:"fyvr11nt"},white:{conditions:{base:"fyvr11nz",active:"fyvr11o0",disabled:"fyvr11o1",focus:"fyvr11o2",hover:"fyvr11o3",checked:"fyvr11o4"},defaultClass:"fyvr11nz"},inherit:{conditions:{base:"fyvr11o5",active:"fyvr11o6",disabled:"fyvr11o7",focus:"fyvr11o8",hover:"fyvr11o9",checked:"fyvr11oa"},defaultClass:"fyvr11o5"},transparent:{conditions:{base:"fyvr11ob",active:"fyvr11oc",disabled:"fyvr11od",focus:"fyvr11oe",hover:"fyvr11of",checked:"fyvr11og"},defaultClass:"fyvr11ob"},positive:{conditions:{base:"fyvr11oh",active:"fyvr11oi",disabled:"fyvr11oj",focus:"fyvr11ok",hover:"fyvr11ol",checked:"fyvr11om"},defaultClass:"fyvr11oh"},negative:{conditions:{base:"fyvr11on",active:"fyvr11oo",disabled:"fyvr11op",focus:"fyvr11oq",hover:"fyvr11or",checked:"fyvr11os"},defaultClass:"fyvr11on"},info:{conditions:{base:"fyvr11ot",active:"fyvr11ou",disabled:"fyvr11ov",focus:"fyvr11ow",hover:"fyvr11ox",checked:"fyvr11oy"},defaultClass:"fyvr11ot"},warning:{conditions:{base:"fyvr11oz",active:"fyvr11p0",disabled:"fyvr11p1",focus:"fyvr11p2",hover:"fyvr11p3",checked:"fyvr11p4"},defaultClass:"fyvr11oz"},gradientBackdrop:{conditions:{base:"fyvr11p5",active:"fyvr11p6",disabled:"fyvr11p7",focus:"fyvr11p8",hover:"fyvr11p9",checked:"fyvr11pa"},defaultClass:"fyvr11p5"},gradientPrimary:{conditions:{base:"fyvr11pb",active:"fyvr11pc",disabled:"fyvr11pd",focus:"fyvr11pe",hover:"fyvr11pf",checked:"fyvr11pg"},defaultClass:"fyvr11pb"},gradientSecondary:{conditions:{base:"fyvr11ph",active:"fyvr11pi",disabled:"fyvr11pj",focus:"fyvr11pk",hover:"fyvr11pl",checked:"fyvr11pm"},defaultClass:"fyvr11ph"},backgroundPrimary:{conditions:{base:"fyvr11pn",active:"fyvr11po",disabled:"fyvr11pp",focus:"fyvr11pq",hover:"fyvr11pr",checked:"fyvr11ps"},defaultClass:"fyvr11pn"},backgroundSecondary:{conditions:{base:"fyvr11pt",active:"fyvr11pu",disabled:"fyvr11pv",focus:"fyvr11pw",hover:"fyvr11px",checked:"fyvr11py"},defaultClass:"fyvr11pt"},backgroundContrast:{conditions:{base:"fyvr11pz",active:"fyvr11q0",disabled:"fyvr11q1",focus:"fyvr11q2",hover:"fyvr11q3",checked:"fyvr11q4"},defaultClass:"fyvr11pz"},backgroundMuted:{conditions:{base:"fyvr11q5",active:"fyvr11q6",disabled:"fyvr11q7",focus:"fyvr11q8",hover:"fyvr11q9",checked:"fyvr11qa"},defaultClass:"fyvr11q5"},backgroundControl:{conditions:{base:"fyvr11qb",active:"fyvr11qc",disabled:"fyvr11qd",focus:"fyvr11qe",hover:"fyvr11qf",checked:"fyvr11qg"},defaultClass:"fyvr11qb"},backgroundInverse:{conditions:{base:"fyvr11qh",active:"fyvr11qi",disabled:"fyvr11qj",focus:"fyvr11qk",hover:"fyvr11ql",checked:"fyvr11qm"},defaultClass:"fyvr11qh"},backgroundBackdrop:{conditions:{base:"fyvr11qn",active:"fyvr11qo",disabled:"fyvr11qp",focus:"fyvr11qq",hover:"fyvr11qr",checked:"fyvr11qs"},defaultClass:"fyvr11qn"},backgroundOverlay:{conditions:{base:"fyvr11qt",active:"fyvr11qu",disabled:"fyvr11qv",focus:"fyvr11qw",hover:"fyvr11qx",checked:"fyvr11qy"},defaultClass:"fyvr11qt"},borderNormal:{conditions:{base:"fyvr11qz",active:"fyvr11r0",disabled:"fyvr11r1",focus:"fyvr11r2",hover:"fyvr11r3",checked:"fyvr11r4"},defaultClass:"fyvr11qz"},borderFocus:{conditions:{base:"fyvr11r5",active:"fyvr11r6",disabled:"fyvr11r7",focus:"fyvr11r8",hover:"fyvr11r9",checked:"fyvr11ra"},defaultClass:"fyvr11r5"},buttonGlass:{conditions:{base:"fyvr11rb",active:"fyvr11rc",disabled:"fyvr11rd",focus:"fyvr11re",hover:"fyvr11rf",checked:"fyvr11rg"},defaultClass:"fyvr11rb"},buttonEmphasis:{conditions:{base:"fyvr11rh",active:"fyvr11ri",disabled:"fyvr11rj",focus:"fyvr11rk",hover:"fyvr11rl",checked:"fyvr11rm"},defaultClass:"fyvr11rh"},buttonInverse:{conditions:{base:"fyvr11rn",active:"fyvr11ro",disabled:"fyvr11rp",focus:"fyvr11rq",hover:"fyvr11rr",checked:"fyvr11rs"},defaultClass:"fyvr11rn"},text50:{conditions:{base:"fyvr11rt",active:"fyvr11ru",disabled:"fyvr11rv",focus:"fyvr11rw",hover:"fyvr11rx",checked:"fyvr11ry"},defaultClass:"fyvr11rt"},text80:{conditions:{base:"fyvr11rz",active:"fyvr11s0",disabled:"fyvr11s1",focus:"fyvr11s2",hover:"fyvr11s3",checked:"fyvr11s4"},defaultClass:"fyvr11rz"},text100:{conditions:{base:"fyvr11s5",active:"fyvr11s6",disabled:"fyvr11s7",focus:"fyvr11s8",hover:"fyvr11s9",checked:"fyvr11sa"},defaultClass:"fyvr11s5"},textInverse100:{conditions:{base:"fyvr11sb",active:"fyvr11sc",disabled:"fyvr11sd",focus:"fyvr11se",hover:"fyvr11sf",checked:"fyvr11sg"},defaultClass:"fyvr11sb"},arbitrumDark:{conditions:{base:"fyvr11sh",active:"fyvr11si",disabled:"fyvr11sj",focus:"fyvr11sk",hover:"fyvr11sl",checked:"fyvr11sm"},defaultClass:"fyvr11sh"},arbitrumLight:{conditions:{base:"fyvr11sn",active:"fyvr11so",disabled:"fyvr11sp",focus:"fyvr11sq",hover:"fyvr11sr",checked:"fyvr11ss"},defaultClass:"fyvr11sn"},avalanceDark:{conditions:{base:"fyvr11st",active:"fyvr11su",disabled:"fyvr11sv",focus:"fyvr11sw",hover:"fyvr11sx",checked:"fyvr11sy"},defaultClass:"fyvr11st"},avalanceLight:{conditions:{base:"fyvr11sz",active:"fyvr11t0",disabled:"fyvr11t1",focus:"fyvr11t2",hover:"fyvr11t3",checked:"fyvr11t4"},defaultClass:"fyvr11sz"},bscDark:{conditions:{base:"fyvr11t5",active:"fyvr11t6",disabled:"fyvr11t7",focus:"fyvr11t8",hover:"fyvr11t9",checked:"fyvr11ta"},defaultClass:"fyvr11t5"},bscLight:{conditions:{base:"fyvr11tb",active:"fyvr11tc",disabled:"fyvr11td",focus:"fyvr11te",hover:"fyvr11tf",checked:"fyvr11tg"},defaultClass:"fyvr11tb"},ethereumDark:{conditions:{base:"fyvr11th",active:"fyvr11ti",disabled:"fyvr11tj",focus:"fyvr11tk",hover:"fyvr11tl",checked:"fyvr11tm"},defaultClass:"fyvr11th"},ethereumLight:{conditions:{base:"fyvr11tn",active:"fyvr11to",disabled:"fyvr11tp",focus:"fyvr11tq",hover:"fyvr11tr",checked:"fyvr11ts"},defaultClass:"fyvr11tn"},gnosisDark:{conditions:{base:"fyvr11tt",active:"fyvr11tu",disabled:"fyvr11tv",focus:"fyvr11tw",hover:"fyvr11tx",checked:"fyvr11ty"},defaultClass:"fyvr11tt"},gnosisLight:{conditions:{base:"fyvr11tz",active:"fyvr11u0",disabled:"fyvr11u1",focus:"fyvr11u2",hover:"fyvr11u3",checked:"fyvr11u4"},defaultClass:"fyvr11tz"},polygonDark:{conditions:{base:"fyvr11u5",active:"fyvr11u6",disabled:"fyvr11u7",focus:"fyvr11u8",hover:"fyvr11u9",checked:"fyvr11ua"},defaultClass:"fyvr11u5"},polygonLight:{conditions:{base:"fyvr11ub",active:"fyvr11uc",disabled:"fyvr11ud",focus:"fyvr11ue",hover:"fyvr11uf",checked:"fyvr11ug"},defaultClass:"fyvr11ub"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11uh",active:"fyvr11ui",disabled:"fyvr11uj",focus:"fyvr11uk",hover:"fyvr11ul",checked:"fyvr11um"},defaultClass:"fyvr11uh"},white:{conditions:{base:"fyvr11un",active:"fyvr11uo",disabled:"fyvr11up",focus:"fyvr11uq",hover:"fyvr11ur",checked:"fyvr11us"},defaultClass:"fyvr11un"},inherit:{conditions:{base:"fyvr11ut",active:"fyvr11uu",disabled:"fyvr11uv",focus:"fyvr11uw",hover:"fyvr11ux",checked:"fyvr11uy"},defaultClass:"fyvr11ut"},transparent:{conditions:{base:"fyvr11uz",active:"fyvr11v0",disabled:"fyvr11v1",focus:"fyvr11v2",hover:"fyvr11v3",checked:"fyvr11v4"},defaultClass:"fyvr11uz"},positive:{conditions:{base:"fyvr11v5",active:"fyvr11v6",disabled:"fyvr11v7",focus:"fyvr11v8",hover:"fyvr11v9",checked:"fyvr11va"},defaultClass:"fyvr11v5"},negative:{conditions:{base:"fyvr11vb",active:"fyvr11vc",disabled:"fyvr11vd",focus:"fyvr11ve",hover:"fyvr11vf",checked:"fyvr11vg"},defaultClass:"fyvr11vb"},info:{conditions:{base:"fyvr11vh",active:"fyvr11vi",disabled:"fyvr11vj",focus:"fyvr11vk",hover:"fyvr11vl",checked:"fyvr11vm"},defaultClass:"fyvr11vh"},warning:{conditions:{base:"fyvr11vn",active:"fyvr11vo",disabled:"fyvr11vp",focus:"fyvr11vq",hover:"fyvr11vr",checked:"fyvr11vs"},defaultClass:"fyvr11vn"},gradientBackdrop:{conditions:{base:"fyvr11vt",active:"fyvr11vu",disabled:"fyvr11vv",focus:"fyvr11vw",hover:"fyvr11vx",checked:"fyvr11vy"},defaultClass:"fyvr11vt"},gradientPrimary:{conditions:{base:"fyvr11vz",active:"fyvr11w0",disabled:"fyvr11w1",focus:"fyvr11w2",hover:"fyvr11w3",checked:"fyvr11w4"},defaultClass:"fyvr11vz"},gradientSecondary:{conditions:{base:"fyvr11w5",active:"fyvr11w6",disabled:"fyvr11w7",focus:"fyvr11w8",hover:"fyvr11w9",checked:"fyvr11wa"},defaultClass:"fyvr11w5"},backgroundPrimary:{conditions:{base:"fyvr11wb",active:"fyvr11wc",disabled:"fyvr11wd",focus:"fyvr11we",hover:"fyvr11wf",checked:"fyvr11wg"},defaultClass:"fyvr11wb"},backgroundSecondary:{conditions:{base:"fyvr11wh",active:"fyvr11wi",disabled:"fyvr11wj",focus:"fyvr11wk",hover:"fyvr11wl",checked:"fyvr11wm"},defaultClass:"fyvr11wh"},backgroundContrast:{conditions:{base:"fyvr11wn",active:"fyvr11wo",disabled:"fyvr11wp",focus:"fyvr11wq",hover:"fyvr11wr",checked:"fyvr11ws"},defaultClass:"fyvr11wn"},backgroundMuted:{conditions:{base:"fyvr11wt",active:"fyvr11wu",disabled:"fyvr11wv",focus:"fyvr11ww",hover:"fyvr11wx",checked:"fyvr11wy"},defaultClass:"fyvr11wt"},backgroundControl:{conditions:{base:"fyvr11wz",active:"fyvr11x0",disabled:"fyvr11x1",focus:"fyvr11x2",hover:"fyvr11x3",checked:"fyvr11x4"},defaultClass:"fyvr11wz"},backgroundInverse:{conditions:{base:"fyvr11x5",active:"fyvr11x6",disabled:"fyvr11x7",focus:"fyvr11x8",hover:"fyvr11x9",checked:"fyvr11xa"},defaultClass:"fyvr11x5"},backgroundBackdrop:{conditions:{base:"fyvr11xb",active:"fyvr11xc",disabled:"fyvr11xd",focus:"fyvr11xe",hover:"fyvr11xf",checked:"fyvr11xg"},defaultClass:"fyvr11xb"},backgroundOverlay:{conditions:{base:"fyvr11xh",active:"fyvr11xi",disabled:"fyvr11xj",focus:"fyvr11xk",hover:"fyvr11xl",checked:"fyvr11xm"},defaultClass:"fyvr11xh"},borderNormal:{conditions:{base:"fyvr11xn",active:"fyvr11xo",disabled:"fyvr11xp",focus:"fyvr11xq",hover:"fyvr11xr",checked:"fyvr11xs"},defaultClass:"fyvr11xn"},borderFocus:{conditions:{base:"fyvr11xt",active:"fyvr11xu",disabled:"fyvr11xv",focus:"fyvr11xw",hover:"fyvr11xx",checked:"fyvr11xy"},defaultClass:"fyvr11xt"},buttonGlass:{conditions:{base:"fyvr11xz",active:"fyvr11y0",disabled:"fyvr11y1",focus:"fyvr11y2",hover:"fyvr11y3",checked:"fyvr11y4"},defaultClass:"fyvr11xz"},buttonEmphasis:{conditions:{base:"fyvr11y5",active:"fyvr11y6",disabled:"fyvr11y7",focus:"fyvr11y8",hover:"fyvr11y9",checked:"fyvr11ya"},defaultClass:"fyvr11y5"},buttonInverse:{conditions:{base:"fyvr11yb",active:"fyvr11yc",disabled:"fyvr11yd",focus:"fyvr11ye",hover:"fyvr11yf",checked:"fyvr11yg"},defaultClass:"fyvr11yb"},text50:{conditions:{base:"fyvr11yh",active:"fyvr11yi",disabled:"fyvr11yj",focus:"fyvr11yk",hover:"fyvr11yl",checked:"fyvr11ym"},defaultClass:"fyvr11yh"},text80:{conditions:{base:"fyvr11yn",active:"fyvr11yo",disabled:"fyvr11yp",focus:"fyvr11yq",hover:"fyvr11yr",checked:"fyvr11ys"},defaultClass:"fyvr11yn"},text100:{conditions:{base:"fyvr11yt",active:"fyvr11yu",disabled:"fyvr11yv",focus:"fyvr11yw",hover:"fyvr11yx",checked:"fyvr11yy"},defaultClass:"fyvr11yt"},textInverse100:{conditions:{base:"fyvr11yz",active:"fyvr11z0",disabled:"fyvr11z1",focus:"fyvr11z2",hover:"fyvr11z3",checked:"fyvr11z4"},defaultClass:"fyvr11yz"},arbitrumDark:{conditions:{base:"fyvr11z5",active:"fyvr11z6",disabled:"fyvr11z7",focus:"fyvr11z8",hover:"fyvr11z9",checked:"fyvr11za"},defaultClass:"fyvr11z5"},arbitrumLight:{conditions:{base:"fyvr11zb",active:"fyvr11zc",disabled:"fyvr11zd",focus:"fyvr11ze",hover:"fyvr11zf",checked:"fyvr11zg"},defaultClass:"fyvr11zb"},avalanceDark:{conditions:{base:"fyvr11zh",active:"fyvr11zi",disabled:"fyvr11zj",focus:"fyvr11zk",hover:"fyvr11zl",checked:"fyvr11zm"},defaultClass:"fyvr11zh"},avalanceLight:{conditions:{base:"fyvr11zn",active:"fyvr11zo",disabled:"fyvr11zp",focus:"fyvr11zq",hover:"fyvr11zr",checked:"fyvr11zs"},defaultClass:"fyvr11zn"},bscDark:{conditions:{base:"fyvr11zt",active:"fyvr11zu",disabled:"fyvr11zv",focus:"fyvr11zw",hover:"fyvr11zx",checked:"fyvr11zy"},defaultClass:"fyvr11zt"},bscLight:{conditions:{base:"fyvr11zz",active:"fyvr1200",disabled:"fyvr1201",focus:"fyvr1202",hover:"fyvr1203",checked:"fyvr1204"},defaultClass:"fyvr11zz"},ethereumDark:{conditions:{base:"fyvr1205",active:"fyvr1206",disabled:"fyvr1207",focus:"fyvr1208",hover:"fyvr1209",checked:"fyvr120a"},defaultClass:"fyvr1205"},ethereumLight:{conditions:{base:"fyvr120b",active:"fyvr120c",disabled:"fyvr120d",focus:"fyvr120e",hover:"fyvr120f",checked:"fyvr120g"},defaultClass:"fyvr120b"},gnosisDark:{conditions:{base:"fyvr120h",active:"fyvr120i",disabled:"fyvr120j",focus:"fyvr120k",hover:"fyvr120l",checked:"fyvr120m"},defaultClass:"fyvr120h"},gnosisLight:{conditions:{base:"fyvr120n",active:"fyvr120o",disabled:"fyvr120p",focus:"fyvr120q",hover:"fyvr120r",checked:"fyvr120s"},defaultClass:"fyvr120n"},polygonDark:{conditions:{base:"fyvr120t",active:"fyvr120u",disabled:"fyvr120v",focus:"fyvr120w",hover:"fyvr120x",checked:"fyvr120y"},defaultClass:"fyvr120t"},polygonLight:{conditions:{base:"fyvr120z",active:"fyvr1210",disabled:"fyvr1211",focus:"fyvr1212",hover:"fyvr1213",checked:"fyvr1214"},defaultClass:"fyvr120z"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr1215",active:"fyvr1216",disabled:"fyvr1217",focus:"fyvr1218",hover:"fyvr1219",checked:"fyvr121a"},defaultClass:"fyvr1215"},dashed:{conditions:{base:"fyvr121b",active:"fyvr121c",disabled:"fyvr121d",focus:"fyvr121e",hover:"fyvr121f",checked:"fyvr121g"},defaultClass:"fyvr121b"},dotted:{conditions:{base:"fyvr121h",active:"fyvr121i",disabled:"fyvr121j",focus:"fyvr121k",hover:"fyvr121l",checked:"fyvr121m"},defaultClass:"fyvr121h"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr121n",active:"fyvr121o",disabled:"fyvr121p",focus:"fyvr121q",hover:"fyvr121r",checked:"fyvr121s"},defaultClass:"fyvr121n"},white:{conditions:{base:"fyvr121t",active:"fyvr121u",disabled:"fyvr121v",focus:"fyvr121w",hover:"fyvr121x",checked:"fyvr121y"},defaultClass:"fyvr121t"},inherit:{conditions:{base:"fyvr121z",active:"fyvr1220",disabled:"fyvr1221",focus:"fyvr1222",hover:"fyvr1223",checked:"fyvr1224"},defaultClass:"fyvr121z"},transparent:{conditions:{base:"fyvr1225",active:"fyvr1226",disabled:"fyvr1227",focus:"fyvr1228",hover:"fyvr1229",checked:"fyvr122a"},defaultClass:"fyvr1225"},positive:{conditions:{base:"fyvr122b",active:"fyvr122c",disabled:"fyvr122d",focus:"fyvr122e",hover:"fyvr122f",checked:"fyvr122g"},defaultClass:"fyvr122b"},negative:{conditions:{base:"fyvr122h",active:"fyvr122i",disabled:"fyvr122j",focus:"fyvr122k",hover:"fyvr122l",checked:"fyvr122m"},defaultClass:"fyvr122h"},info:{conditions:{base:"fyvr122n",active:"fyvr122o",disabled:"fyvr122p",focus:"fyvr122q",hover:"fyvr122r",checked:"fyvr122s"},defaultClass:"fyvr122n"},warning:{conditions:{base:"fyvr122t",active:"fyvr122u",disabled:"fyvr122v",focus:"fyvr122w",hover:"fyvr122x",checked:"fyvr122y"},defaultClass:"fyvr122t"},gradientBackdrop:{conditions:{base:"fyvr122z",active:"fyvr1230",disabled:"fyvr1231",focus:"fyvr1232",hover:"fyvr1233",checked:"fyvr1234"},defaultClass:"fyvr122z"},gradientPrimary:{conditions:{base:"fyvr1235",active:"fyvr1236",disabled:"fyvr1237",focus:"fyvr1238",hover:"fyvr1239",checked:"fyvr123a"},defaultClass:"fyvr1235"},gradientSecondary:{conditions:{base:"fyvr123b",active:"fyvr123c",disabled:"fyvr123d",focus:"fyvr123e",hover:"fyvr123f",checked:"fyvr123g"},defaultClass:"fyvr123b"},backgroundPrimary:{conditions:{base:"fyvr123h",active:"fyvr123i",disabled:"fyvr123j",focus:"fyvr123k",hover:"fyvr123l",checked:"fyvr123m"},defaultClass:"fyvr123h"},backgroundSecondary:{conditions:{base:"fyvr123n",active:"fyvr123o",disabled:"fyvr123p",focus:"fyvr123q",hover:"fyvr123r",checked:"fyvr123s"},defaultClass:"fyvr123n"},backgroundContrast:{conditions:{base:"fyvr123t",active:"fyvr123u",disabled:"fyvr123v",focus:"fyvr123w",hover:"fyvr123x",checked:"fyvr123y"},defaultClass:"fyvr123t"},backgroundMuted:{conditions:{base:"fyvr123z",active:"fyvr1240",disabled:"fyvr1241",focus:"fyvr1242",hover:"fyvr1243",checked:"fyvr1244"},defaultClass:"fyvr123z"},backgroundControl:{conditions:{base:"fyvr1245",active:"fyvr1246",disabled:"fyvr1247",focus:"fyvr1248",hover:"fyvr1249",checked:"fyvr124a"},defaultClass:"fyvr1245"},backgroundInverse:{conditions:{base:"fyvr124b",active:"fyvr124c",disabled:"fyvr124d",focus:"fyvr124e",hover:"fyvr124f",checked:"fyvr124g"},defaultClass:"fyvr124b"},backgroundBackdrop:{conditions:{base:"fyvr124h",active:"fyvr124i",disabled:"fyvr124j",focus:"fyvr124k",hover:"fyvr124l",checked:"fyvr124m"},defaultClass:"fyvr124h"},backgroundOverlay:{conditions:{base:"fyvr124n",active:"fyvr124o",disabled:"fyvr124p",focus:"fyvr124q",hover:"fyvr124r",checked:"fyvr124s"},defaultClass:"fyvr124n"},borderNormal:{conditions:{base:"fyvr124t",active:"fyvr124u",disabled:"fyvr124v",focus:"fyvr124w",hover:"fyvr124x",checked:"fyvr124y"},defaultClass:"fyvr124t"},borderFocus:{conditions:{base:"fyvr124z",active:"fyvr1250",disabled:"fyvr1251",focus:"fyvr1252",hover:"fyvr1253",checked:"fyvr1254"},defaultClass:"fyvr124z"},buttonGlass:{conditions:{base:"fyvr1255",active:"fyvr1256",disabled:"fyvr1257",focus:"fyvr1258",hover:"fyvr1259",checked:"fyvr125a"},defaultClass:"fyvr1255"},buttonEmphasis:{conditions:{base:"fyvr125b",active:"fyvr125c",disabled:"fyvr125d",focus:"fyvr125e",hover:"fyvr125f",checked:"fyvr125g"},defaultClass:"fyvr125b"},buttonInverse:{conditions:{base:"fyvr125h",active:"fyvr125i",disabled:"fyvr125j",focus:"fyvr125k",hover:"fyvr125l",checked:"fyvr125m"},defaultClass:"fyvr125h"},text50:{conditions:{base:"fyvr125n",active:"fyvr125o",disabled:"fyvr125p",focus:"fyvr125q",hover:"fyvr125r",checked:"fyvr125s"},defaultClass:"fyvr125n"},text80:{conditions:{base:"fyvr125t",active:"fyvr125u",disabled:"fyvr125v",focus:"fyvr125w",hover:"fyvr125x",checked:"fyvr125y"},defaultClass:"fyvr125t"},text100:{conditions:{base:"fyvr125z",active:"fyvr1260",disabled:"fyvr1261",focus:"fyvr1262",hover:"fyvr1263",checked:"fyvr1264"},defaultClass:"fyvr125z"},textInverse100:{conditions:{base:"fyvr1265",active:"fyvr1266",disabled:"fyvr1267",focus:"fyvr1268",hover:"fyvr1269",checked:"fyvr126a"},defaultClass:"fyvr1265"},arbitrumDark:{conditions:{base:"fyvr126b",active:"fyvr126c",disabled:"fyvr126d",focus:"fyvr126e",hover:"fyvr126f",checked:"fyvr126g"},defaultClass:"fyvr126b"},arbitrumLight:{conditions:{base:"fyvr126h",active:"fyvr126i",disabled:"fyvr126j",focus:"fyvr126k",hover:"fyvr126l",checked:"fyvr126m"},defaultClass:"fyvr126h"},avalanceDark:{conditions:{base:"fyvr126n",active:"fyvr126o",disabled:"fyvr126p",focus:"fyvr126q",hover:"fyvr126r",checked:"fyvr126s"},defaultClass:"fyvr126n"},avalanceLight:{conditions:{base:"fyvr126t",active:"fyvr126u",disabled:"fyvr126v",focus:"fyvr126w",hover:"fyvr126x",checked:"fyvr126y"},defaultClass:"fyvr126t"},bscDark:{conditions:{base:"fyvr126z",active:"fyvr1270",disabled:"fyvr1271",focus:"fyvr1272",hover:"fyvr1273",checked:"fyvr1274"},defaultClass:"fyvr126z"},bscLight:{conditions:{base:"fyvr1275",active:"fyvr1276",disabled:"fyvr1277",focus:"fyvr1278",hover:"fyvr1279",checked:"fyvr127a"},defaultClass:"fyvr1275"},ethereumDark:{conditions:{base:"fyvr127b",active:"fyvr127c",disabled:"fyvr127d",focus:"fyvr127e",hover:"fyvr127f",checked:"fyvr127g"},defaultClass:"fyvr127b"},ethereumLight:{conditions:{base:"fyvr127h",active:"fyvr127i",disabled:"fyvr127j",focus:"fyvr127k",hover:"fyvr127l",checked:"fyvr127m"},defaultClass:"fyvr127h"},gnosisDark:{conditions:{base:"fyvr127n",active:"fyvr127o",disabled:"fyvr127p",focus:"fyvr127q",hover:"fyvr127r",checked:"fyvr127s"},defaultClass:"fyvr127n"},gnosisLight:{conditions:{base:"fyvr127t",active:"fyvr127u",disabled:"fyvr127v",focus:"fyvr127w",hover:"fyvr127x",checked:"fyvr127y"},defaultClass:"fyvr127t"},polygonDark:{conditions:{base:"fyvr127z",active:"fyvr1280",disabled:"fyvr1281",focus:"fyvr1282",hover:"fyvr1283",checked:"fyvr1284"},defaultClass:"fyvr127z"},polygonLight:{conditions:{base:"fyvr1285",active:"fyvr1286",disabled:"fyvr1287",focus:"fyvr1288",hover:"fyvr1289",checked:"fyvr128a"},defaultClass:"fyvr1285"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128b",active:"fyvr128c",disabled:"fyvr128d",focus:"fyvr128e",hover:"fyvr128f",checked:"fyvr128g"},defaultClass:"fyvr128b"},dashed:{conditions:{base:"fyvr128h",active:"fyvr128i",disabled:"fyvr128j",focus:"fyvr128k",hover:"fyvr128l",checked:"fyvr128m"},defaultClass:"fyvr128h"},dotted:{conditions:{base:"fyvr128n",active:"fyvr128o",disabled:"fyvr128p",focus:"fyvr128q",hover:"fyvr128r",checked:"fyvr128s"},defaultClass:"fyvr128n"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr128t",active:"fyvr128u",disabled:"fyvr128v",focus:"fyvr128w",hover:"fyvr128x",checked:"fyvr128y"},defaultClass:"fyvr128t"},white:{conditions:{base:"fyvr128z",active:"fyvr1290",disabled:"fyvr1291",focus:"fyvr1292",hover:"fyvr1293",checked:"fyvr1294"},defaultClass:"fyvr128z"},inherit:{conditions:{base:"fyvr1295",active:"fyvr1296",disabled:"fyvr1297",focus:"fyvr1298",hover:"fyvr1299",checked:"fyvr129a"},defaultClass:"fyvr1295"},transparent:{conditions:{base:"fyvr129b",active:"fyvr129c",disabled:"fyvr129d",focus:"fyvr129e",hover:"fyvr129f",checked:"fyvr129g"},defaultClass:"fyvr129b"},positive:{conditions:{base:"fyvr129h",active:"fyvr129i",disabled:"fyvr129j",focus:"fyvr129k",hover:"fyvr129l",checked:"fyvr129m"},defaultClass:"fyvr129h"},negative:{conditions:{base:"fyvr129n",active:"fyvr129o",disabled:"fyvr129p",focus:"fyvr129q",hover:"fyvr129r",checked:"fyvr129s"},defaultClass:"fyvr129n"},info:{conditions:{base:"fyvr129t",active:"fyvr129u",disabled:"fyvr129v",focus:"fyvr129w",hover:"fyvr129x",checked:"fyvr129y"},defaultClass:"fyvr129t"},warning:{conditions:{base:"fyvr129z",active:"fyvr12a0",disabled:"fyvr12a1",focus:"fyvr12a2",hover:"fyvr12a3",checked:"fyvr12a4"},defaultClass:"fyvr129z"},gradientBackdrop:{conditions:{base:"fyvr12a5",active:"fyvr12a6",disabled:"fyvr12a7",focus:"fyvr12a8",hover:"fyvr12a9",checked:"fyvr12aa"},defaultClass:"fyvr12a5"},gradientPrimary:{conditions:{base:"fyvr12ab",active:"fyvr12ac",disabled:"fyvr12ad",focus:"fyvr12ae",hover:"fyvr12af",checked:"fyvr12ag"},defaultClass:"fyvr12ab"},gradientSecondary:{conditions:{base:"fyvr12ah",active:"fyvr12ai",disabled:"fyvr12aj",focus:"fyvr12ak",hover:"fyvr12al",checked:"fyvr12am"},defaultClass:"fyvr12ah"},backgroundPrimary:{conditions:{base:"fyvr12an",active:"fyvr12ao",disabled:"fyvr12ap",focus:"fyvr12aq",hover:"fyvr12ar",checked:"fyvr12as"},defaultClass:"fyvr12an"},backgroundSecondary:{conditions:{base:"fyvr12at",active:"fyvr12au",disabled:"fyvr12av",focus:"fyvr12aw",hover:"fyvr12ax",checked:"fyvr12ay"},defaultClass:"fyvr12at"},backgroundContrast:{conditions:{base:"fyvr12az",active:"fyvr12b0",disabled:"fyvr12b1",focus:"fyvr12b2",hover:"fyvr12b3",checked:"fyvr12b4"},defaultClass:"fyvr12az"},backgroundMuted:{conditions:{base:"fyvr12b5",active:"fyvr12b6",disabled:"fyvr12b7",focus:"fyvr12b8",hover:"fyvr12b9",checked:"fyvr12ba"},defaultClass:"fyvr12b5"},backgroundControl:{conditions:{base:"fyvr12bb",active:"fyvr12bc",disabled:"fyvr12bd",focus:"fyvr12be",hover:"fyvr12bf",checked:"fyvr12bg"},defaultClass:"fyvr12bb"},backgroundInverse:{conditions:{base:"fyvr12bh",active:"fyvr12bi",disabled:"fyvr12bj",focus:"fyvr12bk",hover:"fyvr12bl",checked:"fyvr12bm"},defaultClass:"fyvr12bh"},backgroundBackdrop:{conditions:{base:"fyvr12bn",active:"fyvr12bo",disabled:"fyvr12bp",focus:"fyvr12bq",hover:"fyvr12br",checked:"fyvr12bs"},defaultClass:"fyvr12bn"},backgroundOverlay:{conditions:{base:"fyvr12bt",active:"fyvr12bu",disabled:"fyvr12bv",focus:"fyvr12bw",hover:"fyvr12bx",checked:"fyvr12by"},defaultClass:"fyvr12bt"},borderNormal:{conditions:{base:"fyvr12bz",active:"fyvr12c0",disabled:"fyvr12c1",focus:"fyvr12c2",hover:"fyvr12c3",checked:"fyvr12c4"},defaultClass:"fyvr12bz"},borderFocus:{conditions:{base:"fyvr12c5",active:"fyvr12c6",disabled:"fyvr12c7",focus:"fyvr12c8",hover:"fyvr12c9",checked:"fyvr12ca"},defaultClass:"fyvr12c5"},buttonGlass:{conditions:{base:"fyvr12cb",active:"fyvr12cc",disabled:"fyvr12cd",focus:"fyvr12ce",hover:"fyvr12cf",checked:"fyvr12cg"},defaultClass:"fyvr12cb"},buttonEmphasis:{conditions:{base:"fyvr12ch",active:"fyvr12ci",disabled:"fyvr12cj",focus:"fyvr12ck",hover:"fyvr12cl",checked:"fyvr12cm"},defaultClass:"fyvr12ch"},buttonInverse:{conditions:{base:"fyvr12cn",active:"fyvr12co",disabled:"fyvr12cp",focus:"fyvr12cq",hover:"fyvr12cr",checked:"fyvr12cs"},defaultClass:"fyvr12cn"},text50:{conditions:{base:"fyvr12ct",active:"fyvr12cu",disabled:"fyvr12cv",focus:"fyvr12cw",hover:"fyvr12cx",checked:"fyvr12cy"},defaultClass:"fyvr12ct"},text80:{conditions:{base:"fyvr12cz",active:"fyvr12d0",disabled:"fyvr12d1",focus:"fyvr12d2",hover:"fyvr12d3",checked:"fyvr12d4"},defaultClass:"fyvr12cz"},text100:{conditions:{base:"fyvr12d5",active:"fyvr12d6",disabled:"fyvr12d7",focus:"fyvr12d8",hover:"fyvr12d9",checked:"fyvr12da"},defaultClass:"fyvr12d5"},textInverse100:{conditions:{base:"fyvr12db",active:"fyvr12dc",disabled:"fyvr12dd",focus:"fyvr12de",hover:"fyvr12df",checked:"fyvr12dg"},defaultClass:"fyvr12db"},arbitrumDark:{conditions:{base:"fyvr12dh",active:"fyvr12di",disabled:"fyvr12dj",focus:"fyvr12dk",hover:"fyvr12dl",checked:"fyvr12dm"},defaultClass:"fyvr12dh"},arbitrumLight:{conditions:{base:"fyvr12dn",active:"fyvr12do",disabled:"fyvr12dp",focus:"fyvr12dq",hover:"fyvr12dr",checked:"fyvr12ds"},defaultClass:"fyvr12dn"},avalanceDark:{conditions:{base:"fyvr12dt",active:"fyvr12du",disabled:"fyvr12dv",focus:"fyvr12dw",hover:"fyvr12dx",checked:"fyvr12dy"},defaultClass:"fyvr12dt"},avalanceLight:{conditions:{base:"fyvr12dz",active:"fyvr12e0",disabled:"fyvr12e1",focus:"fyvr12e2",hover:"fyvr12e3",checked:"fyvr12e4"},defaultClass:"fyvr12dz"},bscDark:{conditions:{base:"fyvr12e5",active:"fyvr12e6",disabled:"fyvr12e7",focus:"fyvr12e8",hover:"fyvr12e9",checked:"fyvr12ea"},defaultClass:"fyvr12e5"},bscLight:{conditions:{base:"fyvr12eb",active:"fyvr12ec",disabled:"fyvr12ed",focus:"fyvr12ee",hover:"fyvr12ef",checked:"fyvr12eg"},defaultClass:"fyvr12eb"},ethereumDark:{conditions:{base:"fyvr12eh",active:"fyvr12ei",disabled:"fyvr12ej",focus:"fyvr12ek",hover:"fyvr12el",checked:"fyvr12em"},defaultClass:"fyvr12eh"},ethereumLight:{conditions:{base:"fyvr12en",active:"fyvr12eo",disabled:"fyvr12ep",focus:"fyvr12eq",hover:"fyvr12er",checked:"fyvr12es"},defaultClass:"fyvr12en"},gnosisDark:{conditions:{base:"fyvr12et",active:"fyvr12eu",disabled:"fyvr12ev",focus:"fyvr12ew",hover:"fyvr12ex",checked:"fyvr12ey"},defaultClass:"fyvr12et"},gnosisLight:{conditions:{base:"fyvr12ez",active:"fyvr12f0",disabled:"fyvr12f1",focus:"fyvr12f2",hover:"fyvr12f3",checked:"fyvr12f4"},defaultClass:"fyvr12ez"},polygonDark:{conditions:{base:"fyvr12f5",active:"fyvr12f6",disabled:"fyvr12f7",focus:"fyvr12f8",hover:"fyvr12f9",checked:"fyvr12fa"},defaultClass:"fyvr12f5"},polygonLight:{conditions:{base:"fyvr12fb",active:"fyvr12fc",disabled:"fyvr12fd",focus:"fyvr12fe",hover:"fyvr12ff",checked:"fyvr12fg"},defaultClass:"fyvr12fb"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12fh",active:"fyvr12fi",disabled:"fyvr12fj",focus:"fyvr12fk",hover:"fyvr12fl",checked:"fyvr12fm"},defaultClass:"fyvr12fh"},dashed:{conditions:{base:"fyvr12fn",active:"fyvr12fo",disabled:"fyvr12fp",focus:"fyvr12fq",hover:"fyvr12fr",checked:"fyvr12fs"},defaultClass:"fyvr12fn"},dotted:{conditions:{base:"fyvr12ft",active:"fyvr12fu",disabled:"fyvr12fv",focus:"fyvr12fw",hover:"fyvr12fx",checked:"fyvr12fy"},defaultClass:"fyvr12ft"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12fz",active:"fyvr12g0",disabled:"fyvr12g1",focus:"fyvr12g2",hover:"fyvr12g3",checked:"fyvr12g4"},defaultClass:"fyvr12fz"},white:{conditions:{base:"fyvr12g5",active:"fyvr12g6",disabled:"fyvr12g7",focus:"fyvr12g8",hover:"fyvr12g9",checked:"fyvr12ga"},defaultClass:"fyvr12g5"},inherit:{conditions:{base:"fyvr12gb",active:"fyvr12gc",disabled:"fyvr12gd",focus:"fyvr12ge",hover:"fyvr12gf",checked:"fyvr12gg"},defaultClass:"fyvr12gb"},transparent:{conditions:{base:"fyvr12gh",active:"fyvr12gi",disabled:"fyvr12gj",focus:"fyvr12gk",hover:"fyvr12gl",checked:"fyvr12gm"},defaultClass:"fyvr12gh"},positive:{conditions:{base:"fyvr12gn",active:"fyvr12go",disabled:"fyvr12gp",focus:"fyvr12gq",hover:"fyvr12gr",checked:"fyvr12gs"},defaultClass:"fyvr12gn"},negative:{conditions:{base:"fyvr12gt",active:"fyvr12gu",disabled:"fyvr12gv",focus:"fyvr12gw",hover:"fyvr12gx",checked:"fyvr12gy"},defaultClass:"fyvr12gt"},info:{conditions:{base:"fyvr12gz",active:"fyvr12h0",disabled:"fyvr12h1",focus:"fyvr12h2",hover:"fyvr12h3",checked:"fyvr12h4"},defaultClass:"fyvr12gz"},warning:{conditions:{base:"fyvr12h5",active:"fyvr12h6",disabled:"fyvr12h7",focus:"fyvr12h8",hover:"fyvr12h9",checked:"fyvr12ha"},defaultClass:"fyvr12h5"},gradientBackdrop:{conditions:{base:"fyvr12hb",active:"fyvr12hc",disabled:"fyvr12hd",focus:"fyvr12he",hover:"fyvr12hf",checked:"fyvr12hg"},defaultClass:"fyvr12hb"},gradientPrimary:{conditions:{base:"fyvr12hh",active:"fyvr12hi",disabled:"fyvr12hj",focus:"fyvr12hk",hover:"fyvr12hl",checked:"fyvr12hm"},defaultClass:"fyvr12hh"},gradientSecondary:{conditions:{base:"fyvr12hn",active:"fyvr12ho",disabled:"fyvr12hp",focus:"fyvr12hq",hover:"fyvr12hr",checked:"fyvr12hs"},defaultClass:"fyvr12hn"},backgroundPrimary:{conditions:{base:"fyvr12ht",active:"fyvr12hu",disabled:"fyvr12hv",focus:"fyvr12hw",hover:"fyvr12hx",checked:"fyvr12hy"},defaultClass:"fyvr12ht"},backgroundSecondary:{conditions:{base:"fyvr12hz",active:"fyvr12i0",disabled:"fyvr12i1",focus:"fyvr12i2",hover:"fyvr12i3",checked:"fyvr12i4"},defaultClass:"fyvr12hz"},backgroundContrast:{conditions:{base:"fyvr12i5",active:"fyvr12i6",disabled:"fyvr12i7",focus:"fyvr12i8",hover:"fyvr12i9",checked:"fyvr12ia"},defaultClass:"fyvr12i5"},backgroundMuted:{conditions:{base:"fyvr12ib",active:"fyvr12ic",disabled:"fyvr12id",focus:"fyvr12ie",hover:"fyvr12if",checked:"fyvr12ig"},defaultClass:"fyvr12ib"},backgroundControl:{conditions:{base:"fyvr12ih",active:"fyvr12ii",disabled:"fyvr12ij",focus:"fyvr12ik",hover:"fyvr12il",checked:"fyvr12im"},defaultClass:"fyvr12ih"},backgroundInverse:{conditions:{base:"fyvr12in",active:"fyvr12io",disabled:"fyvr12ip",focus:"fyvr12iq",hover:"fyvr12ir",checked:"fyvr12is"},defaultClass:"fyvr12in"},backgroundBackdrop:{conditions:{base:"fyvr12it",active:"fyvr12iu",disabled:"fyvr12iv",focus:"fyvr12iw",hover:"fyvr12ix",checked:"fyvr12iy"},defaultClass:"fyvr12it"},backgroundOverlay:{conditions:{base:"fyvr12iz",active:"fyvr12j0",disabled:"fyvr12j1",focus:"fyvr12j2",hover:"fyvr12j3",checked:"fyvr12j4"},defaultClass:"fyvr12iz"},borderNormal:{conditions:{base:"fyvr12j5",active:"fyvr12j6",disabled:"fyvr12j7",focus:"fyvr12j8",hover:"fyvr12j9",checked:"fyvr12ja"},defaultClass:"fyvr12j5"},borderFocus:{conditions:{base:"fyvr12jb",active:"fyvr12jc",disabled:"fyvr12jd",focus:"fyvr12je",hover:"fyvr12jf",checked:"fyvr12jg"},defaultClass:"fyvr12jb"},buttonGlass:{conditions:{base:"fyvr12jh",active:"fyvr12ji",disabled:"fyvr12jj",focus:"fyvr12jk",hover:"fyvr12jl",checked:"fyvr12jm"},defaultClass:"fyvr12jh"},buttonEmphasis:{conditions:{base:"fyvr12jn",active:"fyvr12jo",disabled:"fyvr12jp",focus:"fyvr12jq",hover:"fyvr12jr",checked:"fyvr12js"},defaultClass:"fyvr12jn"},buttonInverse:{conditions:{base:"fyvr12jt",active:"fyvr12ju",disabled:"fyvr12jv",focus:"fyvr12jw",hover:"fyvr12jx",checked:"fyvr12jy"},defaultClass:"fyvr12jt"},text50:{conditions:{base:"fyvr12jz",active:"fyvr12k0",disabled:"fyvr12k1",focus:"fyvr12k2",hover:"fyvr12k3",checked:"fyvr12k4"},defaultClass:"fyvr12jz"},text80:{conditions:{base:"fyvr12k5",active:"fyvr12k6",disabled:"fyvr12k7",focus:"fyvr12k8",hover:"fyvr12k9",checked:"fyvr12ka"},defaultClass:"fyvr12k5"},text100:{conditions:{base:"fyvr12kb",active:"fyvr12kc",disabled:"fyvr12kd",focus:"fyvr12ke",hover:"fyvr12kf",checked:"fyvr12kg"},defaultClass:"fyvr12kb"},textInverse100:{conditions:{base:"fyvr12kh",active:"fyvr12ki",disabled:"fyvr12kj",focus:"fyvr12kk",hover:"fyvr12kl",checked:"fyvr12km"},defaultClass:"fyvr12kh"},arbitrumDark:{conditions:{base:"fyvr12kn",active:"fyvr12ko",disabled:"fyvr12kp",focus:"fyvr12kq",hover:"fyvr12kr",checked:"fyvr12ks"},defaultClass:"fyvr12kn"},arbitrumLight:{conditions:{base:"fyvr12kt",active:"fyvr12ku",disabled:"fyvr12kv",focus:"fyvr12kw",hover:"fyvr12kx",checked:"fyvr12ky"},defaultClass:"fyvr12kt"},avalanceDark:{conditions:{base:"fyvr12kz",active:"fyvr12l0",disabled:"fyvr12l1",focus:"fyvr12l2",hover:"fyvr12l3",checked:"fyvr12l4"},defaultClass:"fyvr12kz"},avalanceLight:{conditions:{base:"fyvr12l5",active:"fyvr12l6",disabled:"fyvr12l7",focus:"fyvr12l8",hover:"fyvr12l9",checked:"fyvr12la"},defaultClass:"fyvr12l5"},bscDark:{conditions:{base:"fyvr12lb",active:"fyvr12lc",disabled:"fyvr12ld",focus:"fyvr12le",hover:"fyvr12lf",checked:"fyvr12lg"},defaultClass:"fyvr12lb"},bscLight:{conditions:{base:"fyvr12lh",active:"fyvr12li",disabled:"fyvr12lj",focus:"fyvr12lk",hover:"fyvr12ll",checked:"fyvr12lm"},defaultClass:"fyvr12lh"},ethereumDark:{conditions:{base:"fyvr12ln",active:"fyvr12lo",disabled:"fyvr12lp",focus:"fyvr12lq",hover:"fyvr12lr",checked:"fyvr12ls"},defaultClass:"fyvr12ln"},ethereumLight:{conditions:{base:"fyvr12lt",active:"fyvr12lu",disabled:"fyvr12lv",focus:"fyvr12lw",hover:"fyvr12lx",checked:"fyvr12ly"},defaultClass:"fyvr12lt"},gnosisDark:{conditions:{base:"fyvr12lz",active:"fyvr12m0",disabled:"fyvr12m1",focus:"fyvr12m2",hover:"fyvr12m3",checked:"fyvr12m4"},defaultClass:"fyvr12lz"},gnosisLight:{conditions:{base:"fyvr12m5",active:"fyvr12m6",disabled:"fyvr12m7",focus:"fyvr12m8",hover:"fyvr12m9",checked:"fyvr12ma"},defaultClass:"fyvr12m5"},polygonDark:{conditions:{base:"fyvr12mb",active:"fyvr12mc",disabled:"fyvr12md",focus:"fyvr12me",hover:"fyvr12mf",checked:"fyvr12mg"},defaultClass:"fyvr12mb"},polygonLight:{conditions:{base:"fyvr12mh",active:"fyvr12mi",disabled:"fyvr12mj",focus:"fyvr12mk",hover:"fyvr12ml",checked:"fyvr12mm"},defaultClass:"fyvr12mh"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12mn",active:"fyvr12mo",disabled:"fyvr12mp",focus:"fyvr12mq",hover:"fyvr12mr",checked:"fyvr12ms"},defaultClass:"fyvr12mn"},dashed:{conditions:{base:"fyvr12mt",active:"fyvr12mu",disabled:"fyvr12mv",focus:"fyvr12mw",hover:"fyvr12mx",checked:"fyvr12my"},defaultClass:"fyvr12mt"},dotted:{conditions:{base:"fyvr12mz",active:"fyvr12n0",disabled:"fyvr12n1",focus:"fyvr12n2",hover:"fyvr12n3",checked:"fyvr12n4"},defaultClass:"fyvr12mz"}}},color:{values:{black:{conditions:{base:"fyvr12n5",active:"fyvr12n6",disabled:"fyvr12n7",focus:"fyvr12n8",hover:"fyvr12n9",checked:"fyvr12na"},defaultClass:"fyvr12n5"},white:{conditions:{base:"fyvr12nb",active:"fyvr12nc",disabled:"fyvr12nd",focus:"fyvr12ne",hover:"fyvr12nf",checked:"fyvr12ng"},defaultClass:"fyvr12nb"},inherit:{conditions:{base:"fyvr12nh",active:"fyvr12ni",disabled:"fyvr12nj",focus:"fyvr12nk",hover:"fyvr12nl",checked:"fyvr12nm"},defaultClass:"fyvr12nh"},transparent:{conditions:{base:"fyvr12nn",active:"fyvr12no",disabled:"fyvr12np",focus:"fyvr12nq",hover:"fyvr12nr",checked:"fyvr12ns"},defaultClass:"fyvr12nn"},positive:{conditions:{base:"fyvr12nt",active:"fyvr12nu",disabled:"fyvr12nv",focus:"fyvr12nw",hover:"fyvr12nx",checked:"fyvr12ny"},defaultClass:"fyvr12nt"},negative:{conditions:{base:"fyvr12nz",active:"fyvr12o0",disabled:"fyvr12o1",focus:"fyvr12o2",hover:"fyvr12o3",checked:"fyvr12o4"},defaultClass:"fyvr12nz"},info:{conditions:{base:"fyvr12o5",active:"fyvr12o6",disabled:"fyvr12o7",focus:"fyvr12o8",hover:"fyvr12o9",checked:"fyvr12oa"},defaultClass:"fyvr12o5"},warning:{conditions:{base:"fyvr12ob",active:"fyvr12oc",disabled:"fyvr12od",focus:"fyvr12oe",hover:"fyvr12of",checked:"fyvr12og"},defaultClass:"fyvr12ob"},gradientBackdrop:{conditions:{base:"fyvr12oh",active:"fyvr12oi",disabled:"fyvr12oj",focus:"fyvr12ok",hover:"fyvr12ol",checked:"fyvr12om"},defaultClass:"fyvr12oh"},gradientPrimary:{conditions:{base:"fyvr12on",active:"fyvr12oo",disabled:"fyvr12op",focus:"fyvr12oq",hover:"fyvr12or",checked:"fyvr12os"},defaultClass:"fyvr12on"},gradientSecondary:{conditions:{base:"fyvr12ot",active:"fyvr12ou",disabled:"fyvr12ov",focus:"fyvr12ow",hover:"fyvr12ox",checked:"fyvr12oy"},defaultClass:"fyvr12ot"},backgroundPrimary:{conditions:{base:"fyvr12oz",active:"fyvr12p0",disabled:"fyvr12p1",focus:"fyvr12p2",hover:"fyvr12p3",checked:"fyvr12p4"},defaultClass:"fyvr12oz"},backgroundSecondary:{conditions:{base:"fyvr12p5",active:"fyvr12p6",disabled:"fyvr12p7",focus:"fyvr12p8",hover:"fyvr12p9",checked:"fyvr12pa"},defaultClass:"fyvr12p5"},backgroundContrast:{conditions:{base:"fyvr12pb",active:"fyvr12pc",disabled:"fyvr12pd",focus:"fyvr12pe",hover:"fyvr12pf",checked:"fyvr12pg"},defaultClass:"fyvr12pb"},backgroundMuted:{conditions:{base:"fyvr12ph",active:"fyvr12pi",disabled:"fyvr12pj",focus:"fyvr12pk",hover:"fyvr12pl",checked:"fyvr12pm"},defaultClass:"fyvr12ph"},backgroundControl:{conditions:{base:"fyvr12pn",active:"fyvr12po",disabled:"fyvr12pp",focus:"fyvr12pq",hover:"fyvr12pr",checked:"fyvr12ps"},defaultClass:"fyvr12pn"},backgroundInverse:{conditions:{base:"fyvr12pt",active:"fyvr12pu",disabled:"fyvr12pv",focus:"fyvr12pw",hover:"fyvr12px",checked:"fyvr12py"},defaultClass:"fyvr12pt"},backgroundBackdrop:{conditions:{base:"fyvr12pz",active:"fyvr12q0",disabled:"fyvr12q1",focus:"fyvr12q2",hover:"fyvr12q3",checked:"fyvr12q4"},defaultClass:"fyvr12pz"},backgroundOverlay:{conditions:{base:"fyvr12q5",active:"fyvr12q6",disabled:"fyvr12q7",focus:"fyvr12q8",hover:"fyvr12q9",checked:"fyvr12qa"},defaultClass:"fyvr12q5"},borderNormal:{conditions:{base:"fyvr12qb",active:"fyvr12qc",disabled:"fyvr12qd",focus:"fyvr12qe",hover:"fyvr12qf",checked:"fyvr12qg"},defaultClass:"fyvr12qb"},borderFocus:{conditions:{base:"fyvr12qh",active:"fyvr12qi",disabled:"fyvr12qj",focus:"fyvr12qk",hover:"fyvr12ql",checked:"fyvr12qm"},defaultClass:"fyvr12qh"},buttonGlass:{conditions:{base:"fyvr12qn",active:"fyvr12qo",disabled:"fyvr12qp",focus:"fyvr12qq",hover:"fyvr12qr",checked:"fyvr12qs"},defaultClass:"fyvr12qn"},buttonEmphasis:{conditions:{base:"fyvr12qt",active:"fyvr12qu",disabled:"fyvr12qv",focus:"fyvr12qw",hover:"fyvr12qx",checked:"fyvr12qy"},defaultClass:"fyvr12qt"},buttonInverse:{conditions:{base:"fyvr12qz",active:"fyvr12r0",disabled:"fyvr12r1",focus:"fyvr12r2",hover:"fyvr12r3",checked:"fyvr12r4"},defaultClass:"fyvr12qz"},text50:{conditions:{base:"fyvr12r5",active:"fyvr12r6",disabled:"fyvr12r7",focus:"fyvr12r8",hover:"fyvr12r9",checked:"fyvr12ra"},defaultClass:"fyvr12r5"},text80:{conditions:{base:"fyvr12rb",active:"fyvr12rc",disabled:"fyvr12rd",focus:"fyvr12re",hover:"fyvr12rf",checked:"fyvr12rg"},defaultClass:"fyvr12rb"},text100:{conditions:{base:"fyvr12rh",active:"fyvr12ri",disabled:"fyvr12rj",focus:"fyvr12rk",hover:"fyvr12rl",checked:"fyvr12rm"},defaultClass:"fyvr12rh"},textInverse100:{conditions:{base:"fyvr12rn",active:"fyvr12ro",disabled:"fyvr12rp",focus:"fyvr12rq",hover:"fyvr12rr",checked:"fyvr12rs"},defaultClass:"fyvr12rn"},arbitrumDark:{conditions:{base:"fyvr12rt",active:"fyvr12ru",disabled:"fyvr12rv",focus:"fyvr12rw",hover:"fyvr12rx",checked:"fyvr12ry"},defaultClass:"fyvr12rt"},arbitrumLight:{conditions:{base:"fyvr12rz",active:"fyvr12s0",disabled:"fyvr12s1",focus:"fyvr12s2",hover:"fyvr12s3",checked:"fyvr12s4"},defaultClass:"fyvr12rz"},avalanceDark:{conditions:{base:"fyvr12s5",active:"fyvr12s6",disabled:"fyvr12s7",focus:"fyvr12s8",hover:"fyvr12s9",checked:"fyvr12sa"},defaultClass:"fyvr12s5"},avalanceLight:{conditions:{base:"fyvr12sb",active:"fyvr12sc",disabled:"fyvr12sd",focus:"fyvr12se",hover:"fyvr12sf",checked:"fyvr12sg"},defaultClass:"fyvr12sb"},bscDark:{conditions:{base:"fyvr12sh",active:"fyvr12si",disabled:"fyvr12sj",focus:"fyvr12sk",hover:"fyvr12sl",checked:"fyvr12sm"},defaultClass:"fyvr12sh"},bscLight:{conditions:{base:"fyvr12sn",active:"fyvr12so",disabled:"fyvr12sp",focus:"fyvr12sq",hover:"fyvr12sr",checked:"fyvr12ss"},defaultClass:"fyvr12sn"},ethereumDark:{conditions:{base:"fyvr12st",active:"fyvr12su",disabled:"fyvr12sv",focus:"fyvr12sw",hover:"fyvr12sx",checked:"fyvr12sy"},defaultClass:"fyvr12st"},ethereumLight:{conditions:{base:"fyvr12sz",active:"fyvr12t0",disabled:"fyvr12t1",focus:"fyvr12t2",hover:"fyvr12t3",checked:"fyvr12t4"},defaultClass:"fyvr12sz"},gnosisDark:{conditions:{base:"fyvr12t5",active:"fyvr12t6",disabled:"fyvr12t7",focus:"fyvr12t8",hover:"fyvr12t9",checked:"fyvr12ta"},defaultClass:"fyvr12t5"},gnosisLight:{conditions:{base:"fyvr12tb",active:"fyvr12tc",disabled:"fyvr12td",focus:"fyvr12te",hover:"fyvr12tf",checked:"fyvr12tg"},defaultClass:"fyvr12tb"},polygonDark:{conditions:{base:"fyvr12th",active:"fyvr12ti",disabled:"fyvr12tj",focus:"fyvr12tk",hover:"fyvr12tl",checked:"fyvr12tm"},defaultClass:"fyvr12th"},polygonLight:{conditions:{base:"fyvr12tn",active:"fyvr12to",disabled:"fyvr12tp",focus:"fyvr12tq",hover:"fyvr12tr",checked:"fyvr12ts"},defaultClass:"fyvr12tn"}}},cursor:{values:{default:{conditions:{base:"fyvr12tt",active:"fyvr12tu",disabled:"fyvr12tv",focus:"fyvr12tw",hover:"fyvr12tx",checked:"fyvr12ty"},defaultClass:"fyvr12tt"},pointer:{conditions:{base:"fyvr12tz",active:"fyvr12u0",disabled:"fyvr12u1",focus:"fyvr12u2",hover:"fyvr12u3",checked:"fyvr12u4"},defaultClass:"fyvr12tz"},text:{conditions:{base:"fyvr12u5",active:"fyvr12u6",disabled:"fyvr12u7",focus:"fyvr12u8",hover:"fyvr12u9",checked:"fyvr12ua"},defaultClass:"fyvr12u5"}}},opacity:{values:{0:{conditions:{base:"fyvr12ub",active:"fyvr12uc",disabled:"fyvr12ud",focus:"fyvr12ue",hover:"fyvr12uf",checked:"fyvr12ug"},defaultClass:"fyvr12ub"},50:{conditions:{base:"fyvr12uh",active:"fyvr12ui",disabled:"fyvr12uj",focus:"fyvr12uk",hover:"fyvr12ul",checked:"fyvr12um"},defaultClass:"fyvr12uh"},80:{conditions:{base:"fyvr12un",active:"fyvr12uo",disabled:"fyvr12up",focus:"fyvr12uq",hover:"fyvr12ur",checked:"fyvr12us"},defaultClass:"fyvr12un"},100:{conditions:{base:"fyvr12ut",active:"fyvr12uu",disabled:"fyvr12uv",focus:"fyvr12uw",hover:"fyvr12ux",checked:"fyvr12uy"},defaultClass:"fyvr12ut"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12uz",active:"fyvr12v0",disabled:"fyvr12v1",focus:"fyvr12v2",hover:"fyvr12v3",checked:"fyvr12v4"},defaultClass:"fyvr12uz"},auto:{conditions:{base:"fyvr12v5",active:"fyvr12v6",disabled:"fyvr12v7",focus:"fyvr12v8",hover:"fyvr12v9",checked:"fyvr12va"},defaultClass:"fyvr12v5"}}},outline:{values:{none:{conditions:{base:"fyvr12vb",active:"fyvr12vc",disabled:"fyvr12vd",focus:"fyvr12ve",hover:"fyvr12vf",checked:"fyvr12vg"},defaultClass:"fyvr12vb"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12vh",active:"fyvr12vi",disabled:"fyvr12vj",focus:"fyvr12vk",hover:"fyvr12vl",checked:"fyvr12vm"},defaultClass:"fyvr12vh"}}}}});const DN=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],By=t=>(t.display||(t.display=Object.keys(t).some(e=>DN.includes(e))?"flex":void 0),eS(t));By.properties=eS.properties;function tS(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{const{as:r="div",sx:n={},className:i,...s}=t,o={},a={};for(const c in s)By.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=By({...o,...n});return g.createElement(r,{className:Xr(l,i),...a,ref:e})});var rS={exports:{}},ac={};/** + `),()=>{document.head.removeChild(c)}},[e]),g.createElement(IN,{isPresent:e,childRef:n,sizeRef:i},g.cloneElement(t,{ref:n}))}const B1=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=nC($N),l=g.useId(),c=g.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 g.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),g.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=g.createElement(NN,{isPresent:r},t)),g.createElement(i0.Provider,{value:c},t)};function $N(){return new Map}function DN(t){return g.useEffect(()=>()=>t(),[])}const Ca=t=>t.key||"";function ON(t,e){t.forEach(r=>{const n=Ca(r);e.set(n,r)})}function LN(t){const e=[];return g.Children.forEach(t,r=>{g.isValidElement(r)&&e.push(r)}),e}const lS=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=g.useContext(Mm).forceRender||MN()[0],l=aS(),c=LN(t);let f=c;const u=g.useRef(new Map).current,d=g.useRef(f),v=g.useRef(new Map).current,m=g.useRef(!0);if(Pm(()=>{m.current=!1,ON(c,v),d.current=f}),DN(()=>{m.current=!0,v.clear(),u.clear()}),m.current)return g.createElement(g.Fragment,null,f.map(b=>g.createElement(B1,{key:Ca(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},b)));f=[...f];const y=d.current.map(Ca),w=c.map(Ca),x=y.length;for(let b=0;b{if(w.indexOf(S)!==-1)return;const A=v.get(S);if(!A)return;const _=y.indexOf(S);let D=b;if(!D){const $=()=>{v.delete(S),u.delete(S);const O=d.current.findIndex(H=>H.key===S);if(d.current.splice(O,1),!u.size){if(d.current=c,l.current===!1)return;a(),n&&n()}};D=g.createElement(B1,{key:Ca(A),isPresent:!1,onExitComplete:$,custom:e,presenceAffectsLayout:s,mode:o},A),u.set(S,D)}f.splice(_,0,D)}),f=f.map(b=>{const S=b.key;return u.has(S)?b:g.createElement(B1,{key:Ca(b),isPresent:!0,presenceAffectsLayout:s,mode:o},b)}),g.createElement(g.Fragment,null,u.size?f:f.map(b=>g.cloneElement(b)))},BN={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"}};function FN(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 jN(t){var e=FN(t,"string");return typeof e=="symbol"?e:String(e)}function zN(t,e,r){return e=jN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qw(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 F1(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=F1({},l),d=!1;for(var v of o){var m=l[v];if(m!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=m,u[w]==null&&delete u[w]}}var x=d?F1(F1({},f),u):l,b=function(){var D=x[S],$=i[S];try{if($.mappings)return"continue";if(typeof D=="string"||typeof D=="number")c.push($.values[D].defaultClass);else if(Array.isArray(D))for(var O=0;Ot,qN=function(){return UN(VN)(...arguments)},cS=qN({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"}}},userSelect:{values:{none:{defaultClass:"fyvr11n2"},text:{defaultClass:"fyvr11n3"},all:{defaultClass:"fyvr11n4"},auto:{defaultClass:"fyvr11n5"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n6"},nowrap:{defaultClass:"fyvr11n7"},initial:{defaultClass:"fyvr11n8"},inherit:{defaultClass:"fyvr11n9"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11na"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nb"},"break-word":{defaultClass:"fyvr11nc"},initial:{defaultClass:"fyvr11nd"},inherit:{defaultClass:"fyvr11ne"}}},zIndex:{values:{0:{defaultClass:"fyvr11nf"},1:{defaultClass:"fyvr11ng"},10:{defaultClass:"fyvr11nh"},20:{defaultClass:"fyvr11ni"},30:{defaultClass:"fyvr11nj"},40:{defaultClass:"fyvr11nk"},50:{defaultClass:"fyvr11nl"},"-1":{defaultClass:"fyvr11nm"},auto:{defaultClass:"fyvr11nn"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11no"},"16/9":{defaultClass:"fyvr11np"},"4/3":{defaultClass:"fyvr11nq"},"3/1":{defaultClass:"fyvr11nr"},auto:{defaultClass:"fyvr11ns"}}}}},{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:"fyvr11nt",active:"fyvr11nu",disabled:"fyvr11nv",focus:"fyvr11nw",hover:"fyvr11nx",checked:"fyvr11ny"},defaultClass:"fyvr11nt"},white:{conditions:{base:"fyvr11nz",active:"fyvr11o0",disabled:"fyvr11o1",focus:"fyvr11o2",hover:"fyvr11o3",checked:"fyvr11o4"},defaultClass:"fyvr11nz"},inherit:{conditions:{base:"fyvr11o5",active:"fyvr11o6",disabled:"fyvr11o7",focus:"fyvr11o8",hover:"fyvr11o9",checked:"fyvr11oa"},defaultClass:"fyvr11o5"},transparent:{conditions:{base:"fyvr11ob",active:"fyvr11oc",disabled:"fyvr11od",focus:"fyvr11oe",hover:"fyvr11of",checked:"fyvr11og"},defaultClass:"fyvr11ob"},positive:{conditions:{base:"fyvr11oh",active:"fyvr11oi",disabled:"fyvr11oj",focus:"fyvr11ok",hover:"fyvr11ol",checked:"fyvr11om"},defaultClass:"fyvr11oh"},negative:{conditions:{base:"fyvr11on",active:"fyvr11oo",disabled:"fyvr11op",focus:"fyvr11oq",hover:"fyvr11or",checked:"fyvr11os"},defaultClass:"fyvr11on"},info:{conditions:{base:"fyvr11ot",active:"fyvr11ou",disabled:"fyvr11ov",focus:"fyvr11ow",hover:"fyvr11ox",checked:"fyvr11oy"},defaultClass:"fyvr11ot"},warning:{conditions:{base:"fyvr11oz",active:"fyvr11p0",disabled:"fyvr11p1",focus:"fyvr11p2",hover:"fyvr11p3",checked:"fyvr11p4"},defaultClass:"fyvr11oz"},gradientBackdrop:{conditions:{base:"fyvr11p5",active:"fyvr11p6",disabled:"fyvr11p7",focus:"fyvr11p8",hover:"fyvr11p9",checked:"fyvr11pa"},defaultClass:"fyvr11p5"},gradientPrimary:{conditions:{base:"fyvr11pb",active:"fyvr11pc",disabled:"fyvr11pd",focus:"fyvr11pe",hover:"fyvr11pf",checked:"fyvr11pg"},defaultClass:"fyvr11pb"},gradientSecondary:{conditions:{base:"fyvr11ph",active:"fyvr11pi",disabled:"fyvr11pj",focus:"fyvr11pk",hover:"fyvr11pl",checked:"fyvr11pm"},defaultClass:"fyvr11ph"},backgroundPrimary:{conditions:{base:"fyvr11pn",active:"fyvr11po",disabled:"fyvr11pp",focus:"fyvr11pq",hover:"fyvr11pr",checked:"fyvr11ps"},defaultClass:"fyvr11pn"},backgroundSecondary:{conditions:{base:"fyvr11pt",active:"fyvr11pu",disabled:"fyvr11pv",focus:"fyvr11pw",hover:"fyvr11px",checked:"fyvr11py"},defaultClass:"fyvr11pt"},backgroundContrast:{conditions:{base:"fyvr11pz",active:"fyvr11q0",disabled:"fyvr11q1",focus:"fyvr11q2",hover:"fyvr11q3",checked:"fyvr11q4"},defaultClass:"fyvr11pz"},backgroundMuted:{conditions:{base:"fyvr11q5",active:"fyvr11q6",disabled:"fyvr11q7",focus:"fyvr11q8",hover:"fyvr11q9",checked:"fyvr11qa"},defaultClass:"fyvr11q5"},backgroundControl:{conditions:{base:"fyvr11qb",active:"fyvr11qc",disabled:"fyvr11qd",focus:"fyvr11qe",hover:"fyvr11qf",checked:"fyvr11qg"},defaultClass:"fyvr11qb"},backgroundInverse:{conditions:{base:"fyvr11qh",active:"fyvr11qi",disabled:"fyvr11qj",focus:"fyvr11qk",hover:"fyvr11ql",checked:"fyvr11qm"},defaultClass:"fyvr11qh"},backgroundBackdrop:{conditions:{base:"fyvr11qn",active:"fyvr11qo",disabled:"fyvr11qp",focus:"fyvr11qq",hover:"fyvr11qr",checked:"fyvr11qs"},defaultClass:"fyvr11qn"},backgroundOverlay:{conditions:{base:"fyvr11qt",active:"fyvr11qu",disabled:"fyvr11qv",focus:"fyvr11qw",hover:"fyvr11qx",checked:"fyvr11qy"},defaultClass:"fyvr11qt"},borderNormal:{conditions:{base:"fyvr11qz",active:"fyvr11r0",disabled:"fyvr11r1",focus:"fyvr11r2",hover:"fyvr11r3",checked:"fyvr11r4"},defaultClass:"fyvr11qz"},borderFocus:{conditions:{base:"fyvr11r5",active:"fyvr11r6",disabled:"fyvr11r7",focus:"fyvr11r8",hover:"fyvr11r9",checked:"fyvr11ra"},defaultClass:"fyvr11r5"},buttonGlass:{conditions:{base:"fyvr11rb",active:"fyvr11rc",disabled:"fyvr11rd",focus:"fyvr11re",hover:"fyvr11rf",checked:"fyvr11rg"},defaultClass:"fyvr11rb"},buttonEmphasis:{conditions:{base:"fyvr11rh",active:"fyvr11ri",disabled:"fyvr11rj",focus:"fyvr11rk",hover:"fyvr11rl",checked:"fyvr11rm"},defaultClass:"fyvr11rh"},buttonInverse:{conditions:{base:"fyvr11rn",active:"fyvr11ro",disabled:"fyvr11rp",focus:"fyvr11rq",hover:"fyvr11rr",checked:"fyvr11rs"},defaultClass:"fyvr11rn"},text50:{conditions:{base:"fyvr11rt",active:"fyvr11ru",disabled:"fyvr11rv",focus:"fyvr11rw",hover:"fyvr11rx",checked:"fyvr11ry"},defaultClass:"fyvr11rt"},text80:{conditions:{base:"fyvr11rz",active:"fyvr11s0",disabled:"fyvr11s1",focus:"fyvr11s2",hover:"fyvr11s3",checked:"fyvr11s4"},defaultClass:"fyvr11rz"},text100:{conditions:{base:"fyvr11s5",active:"fyvr11s6",disabled:"fyvr11s7",focus:"fyvr11s8",hover:"fyvr11s9",checked:"fyvr11sa"},defaultClass:"fyvr11s5"},textInverse100:{conditions:{base:"fyvr11sb",active:"fyvr11sc",disabled:"fyvr11sd",focus:"fyvr11se",hover:"fyvr11sf",checked:"fyvr11sg"},defaultClass:"fyvr11sb"},arbitrumDark:{conditions:{base:"fyvr11sh",active:"fyvr11si",disabled:"fyvr11sj",focus:"fyvr11sk",hover:"fyvr11sl",checked:"fyvr11sm"},defaultClass:"fyvr11sh"},arbitrumLight:{conditions:{base:"fyvr11sn",active:"fyvr11so",disabled:"fyvr11sp",focus:"fyvr11sq",hover:"fyvr11sr",checked:"fyvr11ss"},defaultClass:"fyvr11sn"},avalanceDark:{conditions:{base:"fyvr11st",active:"fyvr11su",disabled:"fyvr11sv",focus:"fyvr11sw",hover:"fyvr11sx",checked:"fyvr11sy"},defaultClass:"fyvr11st"},avalanceLight:{conditions:{base:"fyvr11sz",active:"fyvr11t0",disabled:"fyvr11t1",focus:"fyvr11t2",hover:"fyvr11t3",checked:"fyvr11t4"},defaultClass:"fyvr11sz"},bscDark:{conditions:{base:"fyvr11t5",active:"fyvr11t6",disabled:"fyvr11t7",focus:"fyvr11t8",hover:"fyvr11t9",checked:"fyvr11ta"},defaultClass:"fyvr11t5"},bscLight:{conditions:{base:"fyvr11tb",active:"fyvr11tc",disabled:"fyvr11td",focus:"fyvr11te",hover:"fyvr11tf",checked:"fyvr11tg"},defaultClass:"fyvr11tb"},ethereumDark:{conditions:{base:"fyvr11th",active:"fyvr11ti",disabled:"fyvr11tj",focus:"fyvr11tk",hover:"fyvr11tl",checked:"fyvr11tm"},defaultClass:"fyvr11th"},ethereumLight:{conditions:{base:"fyvr11tn",active:"fyvr11to",disabled:"fyvr11tp",focus:"fyvr11tq",hover:"fyvr11tr",checked:"fyvr11ts"},defaultClass:"fyvr11tn"},gnosisDark:{conditions:{base:"fyvr11tt",active:"fyvr11tu",disabled:"fyvr11tv",focus:"fyvr11tw",hover:"fyvr11tx",checked:"fyvr11ty"},defaultClass:"fyvr11tt"},gnosisLight:{conditions:{base:"fyvr11tz",active:"fyvr11u0",disabled:"fyvr11u1",focus:"fyvr11u2",hover:"fyvr11u3",checked:"fyvr11u4"},defaultClass:"fyvr11tz"},polygonDark:{conditions:{base:"fyvr11u5",active:"fyvr11u6",disabled:"fyvr11u7",focus:"fyvr11u8",hover:"fyvr11u9",checked:"fyvr11ua"},defaultClass:"fyvr11u5"},polygonLight:{conditions:{base:"fyvr11ub",active:"fyvr11uc",disabled:"fyvr11ud",focus:"fyvr11ue",hover:"fyvr11uf",checked:"fyvr11ug"},defaultClass:"fyvr11ub"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11uh",active:"fyvr11ui",disabled:"fyvr11uj",focus:"fyvr11uk",hover:"fyvr11ul",checked:"fyvr11um"},defaultClass:"fyvr11uh"},white:{conditions:{base:"fyvr11un",active:"fyvr11uo",disabled:"fyvr11up",focus:"fyvr11uq",hover:"fyvr11ur",checked:"fyvr11us"},defaultClass:"fyvr11un"},inherit:{conditions:{base:"fyvr11ut",active:"fyvr11uu",disabled:"fyvr11uv",focus:"fyvr11uw",hover:"fyvr11ux",checked:"fyvr11uy"},defaultClass:"fyvr11ut"},transparent:{conditions:{base:"fyvr11uz",active:"fyvr11v0",disabled:"fyvr11v1",focus:"fyvr11v2",hover:"fyvr11v3",checked:"fyvr11v4"},defaultClass:"fyvr11uz"},positive:{conditions:{base:"fyvr11v5",active:"fyvr11v6",disabled:"fyvr11v7",focus:"fyvr11v8",hover:"fyvr11v9",checked:"fyvr11va"},defaultClass:"fyvr11v5"},negative:{conditions:{base:"fyvr11vb",active:"fyvr11vc",disabled:"fyvr11vd",focus:"fyvr11ve",hover:"fyvr11vf",checked:"fyvr11vg"},defaultClass:"fyvr11vb"},info:{conditions:{base:"fyvr11vh",active:"fyvr11vi",disabled:"fyvr11vj",focus:"fyvr11vk",hover:"fyvr11vl",checked:"fyvr11vm"},defaultClass:"fyvr11vh"},warning:{conditions:{base:"fyvr11vn",active:"fyvr11vo",disabled:"fyvr11vp",focus:"fyvr11vq",hover:"fyvr11vr",checked:"fyvr11vs"},defaultClass:"fyvr11vn"},gradientBackdrop:{conditions:{base:"fyvr11vt",active:"fyvr11vu",disabled:"fyvr11vv",focus:"fyvr11vw",hover:"fyvr11vx",checked:"fyvr11vy"},defaultClass:"fyvr11vt"},gradientPrimary:{conditions:{base:"fyvr11vz",active:"fyvr11w0",disabled:"fyvr11w1",focus:"fyvr11w2",hover:"fyvr11w3",checked:"fyvr11w4"},defaultClass:"fyvr11vz"},gradientSecondary:{conditions:{base:"fyvr11w5",active:"fyvr11w6",disabled:"fyvr11w7",focus:"fyvr11w8",hover:"fyvr11w9",checked:"fyvr11wa"},defaultClass:"fyvr11w5"},backgroundPrimary:{conditions:{base:"fyvr11wb",active:"fyvr11wc",disabled:"fyvr11wd",focus:"fyvr11we",hover:"fyvr11wf",checked:"fyvr11wg"},defaultClass:"fyvr11wb"},backgroundSecondary:{conditions:{base:"fyvr11wh",active:"fyvr11wi",disabled:"fyvr11wj",focus:"fyvr11wk",hover:"fyvr11wl",checked:"fyvr11wm"},defaultClass:"fyvr11wh"},backgroundContrast:{conditions:{base:"fyvr11wn",active:"fyvr11wo",disabled:"fyvr11wp",focus:"fyvr11wq",hover:"fyvr11wr",checked:"fyvr11ws"},defaultClass:"fyvr11wn"},backgroundMuted:{conditions:{base:"fyvr11wt",active:"fyvr11wu",disabled:"fyvr11wv",focus:"fyvr11ww",hover:"fyvr11wx",checked:"fyvr11wy"},defaultClass:"fyvr11wt"},backgroundControl:{conditions:{base:"fyvr11wz",active:"fyvr11x0",disabled:"fyvr11x1",focus:"fyvr11x2",hover:"fyvr11x3",checked:"fyvr11x4"},defaultClass:"fyvr11wz"},backgroundInverse:{conditions:{base:"fyvr11x5",active:"fyvr11x6",disabled:"fyvr11x7",focus:"fyvr11x8",hover:"fyvr11x9",checked:"fyvr11xa"},defaultClass:"fyvr11x5"},backgroundBackdrop:{conditions:{base:"fyvr11xb",active:"fyvr11xc",disabled:"fyvr11xd",focus:"fyvr11xe",hover:"fyvr11xf",checked:"fyvr11xg"},defaultClass:"fyvr11xb"},backgroundOverlay:{conditions:{base:"fyvr11xh",active:"fyvr11xi",disabled:"fyvr11xj",focus:"fyvr11xk",hover:"fyvr11xl",checked:"fyvr11xm"},defaultClass:"fyvr11xh"},borderNormal:{conditions:{base:"fyvr11xn",active:"fyvr11xo",disabled:"fyvr11xp",focus:"fyvr11xq",hover:"fyvr11xr",checked:"fyvr11xs"},defaultClass:"fyvr11xn"},borderFocus:{conditions:{base:"fyvr11xt",active:"fyvr11xu",disabled:"fyvr11xv",focus:"fyvr11xw",hover:"fyvr11xx",checked:"fyvr11xy"},defaultClass:"fyvr11xt"},buttonGlass:{conditions:{base:"fyvr11xz",active:"fyvr11y0",disabled:"fyvr11y1",focus:"fyvr11y2",hover:"fyvr11y3",checked:"fyvr11y4"},defaultClass:"fyvr11xz"},buttonEmphasis:{conditions:{base:"fyvr11y5",active:"fyvr11y6",disabled:"fyvr11y7",focus:"fyvr11y8",hover:"fyvr11y9",checked:"fyvr11ya"},defaultClass:"fyvr11y5"},buttonInverse:{conditions:{base:"fyvr11yb",active:"fyvr11yc",disabled:"fyvr11yd",focus:"fyvr11ye",hover:"fyvr11yf",checked:"fyvr11yg"},defaultClass:"fyvr11yb"},text50:{conditions:{base:"fyvr11yh",active:"fyvr11yi",disabled:"fyvr11yj",focus:"fyvr11yk",hover:"fyvr11yl",checked:"fyvr11ym"},defaultClass:"fyvr11yh"},text80:{conditions:{base:"fyvr11yn",active:"fyvr11yo",disabled:"fyvr11yp",focus:"fyvr11yq",hover:"fyvr11yr",checked:"fyvr11ys"},defaultClass:"fyvr11yn"},text100:{conditions:{base:"fyvr11yt",active:"fyvr11yu",disabled:"fyvr11yv",focus:"fyvr11yw",hover:"fyvr11yx",checked:"fyvr11yy"},defaultClass:"fyvr11yt"},textInverse100:{conditions:{base:"fyvr11yz",active:"fyvr11z0",disabled:"fyvr11z1",focus:"fyvr11z2",hover:"fyvr11z3",checked:"fyvr11z4"},defaultClass:"fyvr11yz"},arbitrumDark:{conditions:{base:"fyvr11z5",active:"fyvr11z6",disabled:"fyvr11z7",focus:"fyvr11z8",hover:"fyvr11z9",checked:"fyvr11za"},defaultClass:"fyvr11z5"},arbitrumLight:{conditions:{base:"fyvr11zb",active:"fyvr11zc",disabled:"fyvr11zd",focus:"fyvr11ze",hover:"fyvr11zf",checked:"fyvr11zg"},defaultClass:"fyvr11zb"},avalanceDark:{conditions:{base:"fyvr11zh",active:"fyvr11zi",disabled:"fyvr11zj",focus:"fyvr11zk",hover:"fyvr11zl",checked:"fyvr11zm"},defaultClass:"fyvr11zh"},avalanceLight:{conditions:{base:"fyvr11zn",active:"fyvr11zo",disabled:"fyvr11zp",focus:"fyvr11zq",hover:"fyvr11zr",checked:"fyvr11zs"},defaultClass:"fyvr11zn"},bscDark:{conditions:{base:"fyvr11zt",active:"fyvr11zu",disabled:"fyvr11zv",focus:"fyvr11zw",hover:"fyvr11zx",checked:"fyvr11zy"},defaultClass:"fyvr11zt"},bscLight:{conditions:{base:"fyvr11zz",active:"fyvr1200",disabled:"fyvr1201",focus:"fyvr1202",hover:"fyvr1203",checked:"fyvr1204"},defaultClass:"fyvr11zz"},ethereumDark:{conditions:{base:"fyvr1205",active:"fyvr1206",disabled:"fyvr1207",focus:"fyvr1208",hover:"fyvr1209",checked:"fyvr120a"},defaultClass:"fyvr1205"},ethereumLight:{conditions:{base:"fyvr120b",active:"fyvr120c",disabled:"fyvr120d",focus:"fyvr120e",hover:"fyvr120f",checked:"fyvr120g"},defaultClass:"fyvr120b"},gnosisDark:{conditions:{base:"fyvr120h",active:"fyvr120i",disabled:"fyvr120j",focus:"fyvr120k",hover:"fyvr120l",checked:"fyvr120m"},defaultClass:"fyvr120h"},gnosisLight:{conditions:{base:"fyvr120n",active:"fyvr120o",disabled:"fyvr120p",focus:"fyvr120q",hover:"fyvr120r",checked:"fyvr120s"},defaultClass:"fyvr120n"},polygonDark:{conditions:{base:"fyvr120t",active:"fyvr120u",disabled:"fyvr120v",focus:"fyvr120w",hover:"fyvr120x",checked:"fyvr120y"},defaultClass:"fyvr120t"},polygonLight:{conditions:{base:"fyvr120z",active:"fyvr1210",disabled:"fyvr1211",focus:"fyvr1212",hover:"fyvr1213",checked:"fyvr1214"},defaultClass:"fyvr120z"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr1215",active:"fyvr1216",disabled:"fyvr1217",focus:"fyvr1218",hover:"fyvr1219",checked:"fyvr121a"},defaultClass:"fyvr1215"},dashed:{conditions:{base:"fyvr121b",active:"fyvr121c",disabled:"fyvr121d",focus:"fyvr121e",hover:"fyvr121f",checked:"fyvr121g"},defaultClass:"fyvr121b"},dotted:{conditions:{base:"fyvr121h",active:"fyvr121i",disabled:"fyvr121j",focus:"fyvr121k",hover:"fyvr121l",checked:"fyvr121m"},defaultClass:"fyvr121h"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr121n",active:"fyvr121o",disabled:"fyvr121p",focus:"fyvr121q",hover:"fyvr121r",checked:"fyvr121s"},defaultClass:"fyvr121n"},white:{conditions:{base:"fyvr121t",active:"fyvr121u",disabled:"fyvr121v",focus:"fyvr121w",hover:"fyvr121x",checked:"fyvr121y"},defaultClass:"fyvr121t"},inherit:{conditions:{base:"fyvr121z",active:"fyvr1220",disabled:"fyvr1221",focus:"fyvr1222",hover:"fyvr1223",checked:"fyvr1224"},defaultClass:"fyvr121z"},transparent:{conditions:{base:"fyvr1225",active:"fyvr1226",disabled:"fyvr1227",focus:"fyvr1228",hover:"fyvr1229",checked:"fyvr122a"},defaultClass:"fyvr1225"},positive:{conditions:{base:"fyvr122b",active:"fyvr122c",disabled:"fyvr122d",focus:"fyvr122e",hover:"fyvr122f",checked:"fyvr122g"},defaultClass:"fyvr122b"},negative:{conditions:{base:"fyvr122h",active:"fyvr122i",disabled:"fyvr122j",focus:"fyvr122k",hover:"fyvr122l",checked:"fyvr122m"},defaultClass:"fyvr122h"},info:{conditions:{base:"fyvr122n",active:"fyvr122o",disabled:"fyvr122p",focus:"fyvr122q",hover:"fyvr122r",checked:"fyvr122s"},defaultClass:"fyvr122n"},warning:{conditions:{base:"fyvr122t",active:"fyvr122u",disabled:"fyvr122v",focus:"fyvr122w",hover:"fyvr122x",checked:"fyvr122y"},defaultClass:"fyvr122t"},gradientBackdrop:{conditions:{base:"fyvr122z",active:"fyvr1230",disabled:"fyvr1231",focus:"fyvr1232",hover:"fyvr1233",checked:"fyvr1234"},defaultClass:"fyvr122z"},gradientPrimary:{conditions:{base:"fyvr1235",active:"fyvr1236",disabled:"fyvr1237",focus:"fyvr1238",hover:"fyvr1239",checked:"fyvr123a"},defaultClass:"fyvr1235"},gradientSecondary:{conditions:{base:"fyvr123b",active:"fyvr123c",disabled:"fyvr123d",focus:"fyvr123e",hover:"fyvr123f",checked:"fyvr123g"},defaultClass:"fyvr123b"},backgroundPrimary:{conditions:{base:"fyvr123h",active:"fyvr123i",disabled:"fyvr123j",focus:"fyvr123k",hover:"fyvr123l",checked:"fyvr123m"},defaultClass:"fyvr123h"},backgroundSecondary:{conditions:{base:"fyvr123n",active:"fyvr123o",disabled:"fyvr123p",focus:"fyvr123q",hover:"fyvr123r",checked:"fyvr123s"},defaultClass:"fyvr123n"},backgroundContrast:{conditions:{base:"fyvr123t",active:"fyvr123u",disabled:"fyvr123v",focus:"fyvr123w",hover:"fyvr123x",checked:"fyvr123y"},defaultClass:"fyvr123t"},backgroundMuted:{conditions:{base:"fyvr123z",active:"fyvr1240",disabled:"fyvr1241",focus:"fyvr1242",hover:"fyvr1243",checked:"fyvr1244"},defaultClass:"fyvr123z"},backgroundControl:{conditions:{base:"fyvr1245",active:"fyvr1246",disabled:"fyvr1247",focus:"fyvr1248",hover:"fyvr1249",checked:"fyvr124a"},defaultClass:"fyvr1245"},backgroundInverse:{conditions:{base:"fyvr124b",active:"fyvr124c",disabled:"fyvr124d",focus:"fyvr124e",hover:"fyvr124f",checked:"fyvr124g"},defaultClass:"fyvr124b"},backgroundBackdrop:{conditions:{base:"fyvr124h",active:"fyvr124i",disabled:"fyvr124j",focus:"fyvr124k",hover:"fyvr124l",checked:"fyvr124m"},defaultClass:"fyvr124h"},backgroundOverlay:{conditions:{base:"fyvr124n",active:"fyvr124o",disabled:"fyvr124p",focus:"fyvr124q",hover:"fyvr124r",checked:"fyvr124s"},defaultClass:"fyvr124n"},borderNormal:{conditions:{base:"fyvr124t",active:"fyvr124u",disabled:"fyvr124v",focus:"fyvr124w",hover:"fyvr124x",checked:"fyvr124y"},defaultClass:"fyvr124t"},borderFocus:{conditions:{base:"fyvr124z",active:"fyvr1250",disabled:"fyvr1251",focus:"fyvr1252",hover:"fyvr1253",checked:"fyvr1254"},defaultClass:"fyvr124z"},buttonGlass:{conditions:{base:"fyvr1255",active:"fyvr1256",disabled:"fyvr1257",focus:"fyvr1258",hover:"fyvr1259",checked:"fyvr125a"},defaultClass:"fyvr1255"},buttonEmphasis:{conditions:{base:"fyvr125b",active:"fyvr125c",disabled:"fyvr125d",focus:"fyvr125e",hover:"fyvr125f",checked:"fyvr125g"},defaultClass:"fyvr125b"},buttonInverse:{conditions:{base:"fyvr125h",active:"fyvr125i",disabled:"fyvr125j",focus:"fyvr125k",hover:"fyvr125l",checked:"fyvr125m"},defaultClass:"fyvr125h"},text50:{conditions:{base:"fyvr125n",active:"fyvr125o",disabled:"fyvr125p",focus:"fyvr125q",hover:"fyvr125r",checked:"fyvr125s"},defaultClass:"fyvr125n"},text80:{conditions:{base:"fyvr125t",active:"fyvr125u",disabled:"fyvr125v",focus:"fyvr125w",hover:"fyvr125x",checked:"fyvr125y"},defaultClass:"fyvr125t"},text100:{conditions:{base:"fyvr125z",active:"fyvr1260",disabled:"fyvr1261",focus:"fyvr1262",hover:"fyvr1263",checked:"fyvr1264"},defaultClass:"fyvr125z"},textInverse100:{conditions:{base:"fyvr1265",active:"fyvr1266",disabled:"fyvr1267",focus:"fyvr1268",hover:"fyvr1269",checked:"fyvr126a"},defaultClass:"fyvr1265"},arbitrumDark:{conditions:{base:"fyvr126b",active:"fyvr126c",disabled:"fyvr126d",focus:"fyvr126e",hover:"fyvr126f",checked:"fyvr126g"},defaultClass:"fyvr126b"},arbitrumLight:{conditions:{base:"fyvr126h",active:"fyvr126i",disabled:"fyvr126j",focus:"fyvr126k",hover:"fyvr126l",checked:"fyvr126m"},defaultClass:"fyvr126h"},avalanceDark:{conditions:{base:"fyvr126n",active:"fyvr126o",disabled:"fyvr126p",focus:"fyvr126q",hover:"fyvr126r",checked:"fyvr126s"},defaultClass:"fyvr126n"},avalanceLight:{conditions:{base:"fyvr126t",active:"fyvr126u",disabled:"fyvr126v",focus:"fyvr126w",hover:"fyvr126x",checked:"fyvr126y"},defaultClass:"fyvr126t"},bscDark:{conditions:{base:"fyvr126z",active:"fyvr1270",disabled:"fyvr1271",focus:"fyvr1272",hover:"fyvr1273",checked:"fyvr1274"},defaultClass:"fyvr126z"},bscLight:{conditions:{base:"fyvr1275",active:"fyvr1276",disabled:"fyvr1277",focus:"fyvr1278",hover:"fyvr1279",checked:"fyvr127a"},defaultClass:"fyvr1275"},ethereumDark:{conditions:{base:"fyvr127b",active:"fyvr127c",disabled:"fyvr127d",focus:"fyvr127e",hover:"fyvr127f",checked:"fyvr127g"},defaultClass:"fyvr127b"},ethereumLight:{conditions:{base:"fyvr127h",active:"fyvr127i",disabled:"fyvr127j",focus:"fyvr127k",hover:"fyvr127l",checked:"fyvr127m"},defaultClass:"fyvr127h"},gnosisDark:{conditions:{base:"fyvr127n",active:"fyvr127o",disabled:"fyvr127p",focus:"fyvr127q",hover:"fyvr127r",checked:"fyvr127s"},defaultClass:"fyvr127n"},gnosisLight:{conditions:{base:"fyvr127t",active:"fyvr127u",disabled:"fyvr127v",focus:"fyvr127w",hover:"fyvr127x",checked:"fyvr127y"},defaultClass:"fyvr127t"},polygonDark:{conditions:{base:"fyvr127z",active:"fyvr1280",disabled:"fyvr1281",focus:"fyvr1282",hover:"fyvr1283",checked:"fyvr1284"},defaultClass:"fyvr127z"},polygonLight:{conditions:{base:"fyvr1285",active:"fyvr1286",disabled:"fyvr1287",focus:"fyvr1288",hover:"fyvr1289",checked:"fyvr128a"},defaultClass:"fyvr1285"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128b",active:"fyvr128c",disabled:"fyvr128d",focus:"fyvr128e",hover:"fyvr128f",checked:"fyvr128g"},defaultClass:"fyvr128b"},dashed:{conditions:{base:"fyvr128h",active:"fyvr128i",disabled:"fyvr128j",focus:"fyvr128k",hover:"fyvr128l",checked:"fyvr128m"},defaultClass:"fyvr128h"},dotted:{conditions:{base:"fyvr128n",active:"fyvr128o",disabled:"fyvr128p",focus:"fyvr128q",hover:"fyvr128r",checked:"fyvr128s"},defaultClass:"fyvr128n"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr128t",active:"fyvr128u",disabled:"fyvr128v",focus:"fyvr128w",hover:"fyvr128x",checked:"fyvr128y"},defaultClass:"fyvr128t"},white:{conditions:{base:"fyvr128z",active:"fyvr1290",disabled:"fyvr1291",focus:"fyvr1292",hover:"fyvr1293",checked:"fyvr1294"},defaultClass:"fyvr128z"},inherit:{conditions:{base:"fyvr1295",active:"fyvr1296",disabled:"fyvr1297",focus:"fyvr1298",hover:"fyvr1299",checked:"fyvr129a"},defaultClass:"fyvr1295"},transparent:{conditions:{base:"fyvr129b",active:"fyvr129c",disabled:"fyvr129d",focus:"fyvr129e",hover:"fyvr129f",checked:"fyvr129g"},defaultClass:"fyvr129b"},positive:{conditions:{base:"fyvr129h",active:"fyvr129i",disabled:"fyvr129j",focus:"fyvr129k",hover:"fyvr129l",checked:"fyvr129m"},defaultClass:"fyvr129h"},negative:{conditions:{base:"fyvr129n",active:"fyvr129o",disabled:"fyvr129p",focus:"fyvr129q",hover:"fyvr129r",checked:"fyvr129s"},defaultClass:"fyvr129n"},info:{conditions:{base:"fyvr129t",active:"fyvr129u",disabled:"fyvr129v",focus:"fyvr129w",hover:"fyvr129x",checked:"fyvr129y"},defaultClass:"fyvr129t"},warning:{conditions:{base:"fyvr129z",active:"fyvr12a0",disabled:"fyvr12a1",focus:"fyvr12a2",hover:"fyvr12a3",checked:"fyvr12a4"},defaultClass:"fyvr129z"},gradientBackdrop:{conditions:{base:"fyvr12a5",active:"fyvr12a6",disabled:"fyvr12a7",focus:"fyvr12a8",hover:"fyvr12a9",checked:"fyvr12aa"},defaultClass:"fyvr12a5"},gradientPrimary:{conditions:{base:"fyvr12ab",active:"fyvr12ac",disabled:"fyvr12ad",focus:"fyvr12ae",hover:"fyvr12af",checked:"fyvr12ag"},defaultClass:"fyvr12ab"},gradientSecondary:{conditions:{base:"fyvr12ah",active:"fyvr12ai",disabled:"fyvr12aj",focus:"fyvr12ak",hover:"fyvr12al",checked:"fyvr12am"},defaultClass:"fyvr12ah"},backgroundPrimary:{conditions:{base:"fyvr12an",active:"fyvr12ao",disabled:"fyvr12ap",focus:"fyvr12aq",hover:"fyvr12ar",checked:"fyvr12as"},defaultClass:"fyvr12an"},backgroundSecondary:{conditions:{base:"fyvr12at",active:"fyvr12au",disabled:"fyvr12av",focus:"fyvr12aw",hover:"fyvr12ax",checked:"fyvr12ay"},defaultClass:"fyvr12at"},backgroundContrast:{conditions:{base:"fyvr12az",active:"fyvr12b0",disabled:"fyvr12b1",focus:"fyvr12b2",hover:"fyvr12b3",checked:"fyvr12b4"},defaultClass:"fyvr12az"},backgroundMuted:{conditions:{base:"fyvr12b5",active:"fyvr12b6",disabled:"fyvr12b7",focus:"fyvr12b8",hover:"fyvr12b9",checked:"fyvr12ba"},defaultClass:"fyvr12b5"},backgroundControl:{conditions:{base:"fyvr12bb",active:"fyvr12bc",disabled:"fyvr12bd",focus:"fyvr12be",hover:"fyvr12bf",checked:"fyvr12bg"},defaultClass:"fyvr12bb"},backgroundInverse:{conditions:{base:"fyvr12bh",active:"fyvr12bi",disabled:"fyvr12bj",focus:"fyvr12bk",hover:"fyvr12bl",checked:"fyvr12bm"},defaultClass:"fyvr12bh"},backgroundBackdrop:{conditions:{base:"fyvr12bn",active:"fyvr12bo",disabled:"fyvr12bp",focus:"fyvr12bq",hover:"fyvr12br",checked:"fyvr12bs"},defaultClass:"fyvr12bn"},backgroundOverlay:{conditions:{base:"fyvr12bt",active:"fyvr12bu",disabled:"fyvr12bv",focus:"fyvr12bw",hover:"fyvr12bx",checked:"fyvr12by"},defaultClass:"fyvr12bt"},borderNormal:{conditions:{base:"fyvr12bz",active:"fyvr12c0",disabled:"fyvr12c1",focus:"fyvr12c2",hover:"fyvr12c3",checked:"fyvr12c4"},defaultClass:"fyvr12bz"},borderFocus:{conditions:{base:"fyvr12c5",active:"fyvr12c6",disabled:"fyvr12c7",focus:"fyvr12c8",hover:"fyvr12c9",checked:"fyvr12ca"},defaultClass:"fyvr12c5"},buttonGlass:{conditions:{base:"fyvr12cb",active:"fyvr12cc",disabled:"fyvr12cd",focus:"fyvr12ce",hover:"fyvr12cf",checked:"fyvr12cg"},defaultClass:"fyvr12cb"},buttonEmphasis:{conditions:{base:"fyvr12ch",active:"fyvr12ci",disabled:"fyvr12cj",focus:"fyvr12ck",hover:"fyvr12cl",checked:"fyvr12cm"},defaultClass:"fyvr12ch"},buttonInverse:{conditions:{base:"fyvr12cn",active:"fyvr12co",disabled:"fyvr12cp",focus:"fyvr12cq",hover:"fyvr12cr",checked:"fyvr12cs"},defaultClass:"fyvr12cn"},text50:{conditions:{base:"fyvr12ct",active:"fyvr12cu",disabled:"fyvr12cv",focus:"fyvr12cw",hover:"fyvr12cx",checked:"fyvr12cy"},defaultClass:"fyvr12ct"},text80:{conditions:{base:"fyvr12cz",active:"fyvr12d0",disabled:"fyvr12d1",focus:"fyvr12d2",hover:"fyvr12d3",checked:"fyvr12d4"},defaultClass:"fyvr12cz"},text100:{conditions:{base:"fyvr12d5",active:"fyvr12d6",disabled:"fyvr12d7",focus:"fyvr12d8",hover:"fyvr12d9",checked:"fyvr12da"},defaultClass:"fyvr12d5"},textInverse100:{conditions:{base:"fyvr12db",active:"fyvr12dc",disabled:"fyvr12dd",focus:"fyvr12de",hover:"fyvr12df",checked:"fyvr12dg"},defaultClass:"fyvr12db"},arbitrumDark:{conditions:{base:"fyvr12dh",active:"fyvr12di",disabled:"fyvr12dj",focus:"fyvr12dk",hover:"fyvr12dl",checked:"fyvr12dm"},defaultClass:"fyvr12dh"},arbitrumLight:{conditions:{base:"fyvr12dn",active:"fyvr12do",disabled:"fyvr12dp",focus:"fyvr12dq",hover:"fyvr12dr",checked:"fyvr12ds"},defaultClass:"fyvr12dn"},avalanceDark:{conditions:{base:"fyvr12dt",active:"fyvr12du",disabled:"fyvr12dv",focus:"fyvr12dw",hover:"fyvr12dx",checked:"fyvr12dy"},defaultClass:"fyvr12dt"},avalanceLight:{conditions:{base:"fyvr12dz",active:"fyvr12e0",disabled:"fyvr12e1",focus:"fyvr12e2",hover:"fyvr12e3",checked:"fyvr12e4"},defaultClass:"fyvr12dz"},bscDark:{conditions:{base:"fyvr12e5",active:"fyvr12e6",disabled:"fyvr12e7",focus:"fyvr12e8",hover:"fyvr12e9",checked:"fyvr12ea"},defaultClass:"fyvr12e5"},bscLight:{conditions:{base:"fyvr12eb",active:"fyvr12ec",disabled:"fyvr12ed",focus:"fyvr12ee",hover:"fyvr12ef",checked:"fyvr12eg"},defaultClass:"fyvr12eb"},ethereumDark:{conditions:{base:"fyvr12eh",active:"fyvr12ei",disabled:"fyvr12ej",focus:"fyvr12ek",hover:"fyvr12el",checked:"fyvr12em"},defaultClass:"fyvr12eh"},ethereumLight:{conditions:{base:"fyvr12en",active:"fyvr12eo",disabled:"fyvr12ep",focus:"fyvr12eq",hover:"fyvr12er",checked:"fyvr12es"},defaultClass:"fyvr12en"},gnosisDark:{conditions:{base:"fyvr12et",active:"fyvr12eu",disabled:"fyvr12ev",focus:"fyvr12ew",hover:"fyvr12ex",checked:"fyvr12ey"},defaultClass:"fyvr12et"},gnosisLight:{conditions:{base:"fyvr12ez",active:"fyvr12f0",disabled:"fyvr12f1",focus:"fyvr12f2",hover:"fyvr12f3",checked:"fyvr12f4"},defaultClass:"fyvr12ez"},polygonDark:{conditions:{base:"fyvr12f5",active:"fyvr12f6",disabled:"fyvr12f7",focus:"fyvr12f8",hover:"fyvr12f9",checked:"fyvr12fa"},defaultClass:"fyvr12f5"},polygonLight:{conditions:{base:"fyvr12fb",active:"fyvr12fc",disabled:"fyvr12fd",focus:"fyvr12fe",hover:"fyvr12ff",checked:"fyvr12fg"},defaultClass:"fyvr12fb"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12fh",active:"fyvr12fi",disabled:"fyvr12fj",focus:"fyvr12fk",hover:"fyvr12fl",checked:"fyvr12fm"},defaultClass:"fyvr12fh"},dashed:{conditions:{base:"fyvr12fn",active:"fyvr12fo",disabled:"fyvr12fp",focus:"fyvr12fq",hover:"fyvr12fr",checked:"fyvr12fs"},defaultClass:"fyvr12fn"},dotted:{conditions:{base:"fyvr12ft",active:"fyvr12fu",disabled:"fyvr12fv",focus:"fyvr12fw",hover:"fyvr12fx",checked:"fyvr12fy"},defaultClass:"fyvr12ft"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12fz",active:"fyvr12g0",disabled:"fyvr12g1",focus:"fyvr12g2",hover:"fyvr12g3",checked:"fyvr12g4"},defaultClass:"fyvr12fz"},white:{conditions:{base:"fyvr12g5",active:"fyvr12g6",disabled:"fyvr12g7",focus:"fyvr12g8",hover:"fyvr12g9",checked:"fyvr12ga"},defaultClass:"fyvr12g5"},inherit:{conditions:{base:"fyvr12gb",active:"fyvr12gc",disabled:"fyvr12gd",focus:"fyvr12ge",hover:"fyvr12gf",checked:"fyvr12gg"},defaultClass:"fyvr12gb"},transparent:{conditions:{base:"fyvr12gh",active:"fyvr12gi",disabled:"fyvr12gj",focus:"fyvr12gk",hover:"fyvr12gl",checked:"fyvr12gm"},defaultClass:"fyvr12gh"},positive:{conditions:{base:"fyvr12gn",active:"fyvr12go",disabled:"fyvr12gp",focus:"fyvr12gq",hover:"fyvr12gr",checked:"fyvr12gs"},defaultClass:"fyvr12gn"},negative:{conditions:{base:"fyvr12gt",active:"fyvr12gu",disabled:"fyvr12gv",focus:"fyvr12gw",hover:"fyvr12gx",checked:"fyvr12gy"},defaultClass:"fyvr12gt"},info:{conditions:{base:"fyvr12gz",active:"fyvr12h0",disabled:"fyvr12h1",focus:"fyvr12h2",hover:"fyvr12h3",checked:"fyvr12h4"},defaultClass:"fyvr12gz"},warning:{conditions:{base:"fyvr12h5",active:"fyvr12h6",disabled:"fyvr12h7",focus:"fyvr12h8",hover:"fyvr12h9",checked:"fyvr12ha"},defaultClass:"fyvr12h5"},gradientBackdrop:{conditions:{base:"fyvr12hb",active:"fyvr12hc",disabled:"fyvr12hd",focus:"fyvr12he",hover:"fyvr12hf",checked:"fyvr12hg"},defaultClass:"fyvr12hb"},gradientPrimary:{conditions:{base:"fyvr12hh",active:"fyvr12hi",disabled:"fyvr12hj",focus:"fyvr12hk",hover:"fyvr12hl",checked:"fyvr12hm"},defaultClass:"fyvr12hh"},gradientSecondary:{conditions:{base:"fyvr12hn",active:"fyvr12ho",disabled:"fyvr12hp",focus:"fyvr12hq",hover:"fyvr12hr",checked:"fyvr12hs"},defaultClass:"fyvr12hn"},backgroundPrimary:{conditions:{base:"fyvr12ht",active:"fyvr12hu",disabled:"fyvr12hv",focus:"fyvr12hw",hover:"fyvr12hx",checked:"fyvr12hy"},defaultClass:"fyvr12ht"},backgroundSecondary:{conditions:{base:"fyvr12hz",active:"fyvr12i0",disabled:"fyvr12i1",focus:"fyvr12i2",hover:"fyvr12i3",checked:"fyvr12i4"},defaultClass:"fyvr12hz"},backgroundContrast:{conditions:{base:"fyvr12i5",active:"fyvr12i6",disabled:"fyvr12i7",focus:"fyvr12i8",hover:"fyvr12i9",checked:"fyvr12ia"},defaultClass:"fyvr12i5"},backgroundMuted:{conditions:{base:"fyvr12ib",active:"fyvr12ic",disabled:"fyvr12id",focus:"fyvr12ie",hover:"fyvr12if",checked:"fyvr12ig"},defaultClass:"fyvr12ib"},backgroundControl:{conditions:{base:"fyvr12ih",active:"fyvr12ii",disabled:"fyvr12ij",focus:"fyvr12ik",hover:"fyvr12il",checked:"fyvr12im"},defaultClass:"fyvr12ih"},backgroundInverse:{conditions:{base:"fyvr12in",active:"fyvr12io",disabled:"fyvr12ip",focus:"fyvr12iq",hover:"fyvr12ir",checked:"fyvr12is"},defaultClass:"fyvr12in"},backgroundBackdrop:{conditions:{base:"fyvr12it",active:"fyvr12iu",disabled:"fyvr12iv",focus:"fyvr12iw",hover:"fyvr12ix",checked:"fyvr12iy"},defaultClass:"fyvr12it"},backgroundOverlay:{conditions:{base:"fyvr12iz",active:"fyvr12j0",disabled:"fyvr12j1",focus:"fyvr12j2",hover:"fyvr12j3",checked:"fyvr12j4"},defaultClass:"fyvr12iz"},borderNormal:{conditions:{base:"fyvr12j5",active:"fyvr12j6",disabled:"fyvr12j7",focus:"fyvr12j8",hover:"fyvr12j9",checked:"fyvr12ja"},defaultClass:"fyvr12j5"},borderFocus:{conditions:{base:"fyvr12jb",active:"fyvr12jc",disabled:"fyvr12jd",focus:"fyvr12je",hover:"fyvr12jf",checked:"fyvr12jg"},defaultClass:"fyvr12jb"},buttonGlass:{conditions:{base:"fyvr12jh",active:"fyvr12ji",disabled:"fyvr12jj",focus:"fyvr12jk",hover:"fyvr12jl",checked:"fyvr12jm"},defaultClass:"fyvr12jh"},buttonEmphasis:{conditions:{base:"fyvr12jn",active:"fyvr12jo",disabled:"fyvr12jp",focus:"fyvr12jq",hover:"fyvr12jr",checked:"fyvr12js"},defaultClass:"fyvr12jn"},buttonInverse:{conditions:{base:"fyvr12jt",active:"fyvr12ju",disabled:"fyvr12jv",focus:"fyvr12jw",hover:"fyvr12jx",checked:"fyvr12jy"},defaultClass:"fyvr12jt"},text50:{conditions:{base:"fyvr12jz",active:"fyvr12k0",disabled:"fyvr12k1",focus:"fyvr12k2",hover:"fyvr12k3",checked:"fyvr12k4"},defaultClass:"fyvr12jz"},text80:{conditions:{base:"fyvr12k5",active:"fyvr12k6",disabled:"fyvr12k7",focus:"fyvr12k8",hover:"fyvr12k9",checked:"fyvr12ka"},defaultClass:"fyvr12k5"},text100:{conditions:{base:"fyvr12kb",active:"fyvr12kc",disabled:"fyvr12kd",focus:"fyvr12ke",hover:"fyvr12kf",checked:"fyvr12kg"},defaultClass:"fyvr12kb"},textInverse100:{conditions:{base:"fyvr12kh",active:"fyvr12ki",disabled:"fyvr12kj",focus:"fyvr12kk",hover:"fyvr12kl",checked:"fyvr12km"},defaultClass:"fyvr12kh"},arbitrumDark:{conditions:{base:"fyvr12kn",active:"fyvr12ko",disabled:"fyvr12kp",focus:"fyvr12kq",hover:"fyvr12kr",checked:"fyvr12ks"},defaultClass:"fyvr12kn"},arbitrumLight:{conditions:{base:"fyvr12kt",active:"fyvr12ku",disabled:"fyvr12kv",focus:"fyvr12kw",hover:"fyvr12kx",checked:"fyvr12ky"},defaultClass:"fyvr12kt"},avalanceDark:{conditions:{base:"fyvr12kz",active:"fyvr12l0",disabled:"fyvr12l1",focus:"fyvr12l2",hover:"fyvr12l3",checked:"fyvr12l4"},defaultClass:"fyvr12kz"},avalanceLight:{conditions:{base:"fyvr12l5",active:"fyvr12l6",disabled:"fyvr12l7",focus:"fyvr12l8",hover:"fyvr12l9",checked:"fyvr12la"},defaultClass:"fyvr12l5"},bscDark:{conditions:{base:"fyvr12lb",active:"fyvr12lc",disabled:"fyvr12ld",focus:"fyvr12le",hover:"fyvr12lf",checked:"fyvr12lg"},defaultClass:"fyvr12lb"},bscLight:{conditions:{base:"fyvr12lh",active:"fyvr12li",disabled:"fyvr12lj",focus:"fyvr12lk",hover:"fyvr12ll",checked:"fyvr12lm"},defaultClass:"fyvr12lh"},ethereumDark:{conditions:{base:"fyvr12ln",active:"fyvr12lo",disabled:"fyvr12lp",focus:"fyvr12lq",hover:"fyvr12lr",checked:"fyvr12ls"},defaultClass:"fyvr12ln"},ethereumLight:{conditions:{base:"fyvr12lt",active:"fyvr12lu",disabled:"fyvr12lv",focus:"fyvr12lw",hover:"fyvr12lx",checked:"fyvr12ly"},defaultClass:"fyvr12lt"},gnosisDark:{conditions:{base:"fyvr12lz",active:"fyvr12m0",disabled:"fyvr12m1",focus:"fyvr12m2",hover:"fyvr12m3",checked:"fyvr12m4"},defaultClass:"fyvr12lz"},gnosisLight:{conditions:{base:"fyvr12m5",active:"fyvr12m6",disabled:"fyvr12m7",focus:"fyvr12m8",hover:"fyvr12m9",checked:"fyvr12ma"},defaultClass:"fyvr12m5"},polygonDark:{conditions:{base:"fyvr12mb",active:"fyvr12mc",disabled:"fyvr12md",focus:"fyvr12me",hover:"fyvr12mf",checked:"fyvr12mg"},defaultClass:"fyvr12mb"},polygonLight:{conditions:{base:"fyvr12mh",active:"fyvr12mi",disabled:"fyvr12mj",focus:"fyvr12mk",hover:"fyvr12ml",checked:"fyvr12mm"},defaultClass:"fyvr12mh"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12mn",active:"fyvr12mo",disabled:"fyvr12mp",focus:"fyvr12mq",hover:"fyvr12mr",checked:"fyvr12ms"},defaultClass:"fyvr12mn"},dashed:{conditions:{base:"fyvr12mt",active:"fyvr12mu",disabled:"fyvr12mv",focus:"fyvr12mw",hover:"fyvr12mx",checked:"fyvr12my"},defaultClass:"fyvr12mt"},dotted:{conditions:{base:"fyvr12mz",active:"fyvr12n0",disabled:"fyvr12n1",focus:"fyvr12n2",hover:"fyvr12n3",checked:"fyvr12n4"},defaultClass:"fyvr12mz"}}},color:{values:{black:{conditions:{base:"fyvr12n5",active:"fyvr12n6",disabled:"fyvr12n7",focus:"fyvr12n8",hover:"fyvr12n9",checked:"fyvr12na"},defaultClass:"fyvr12n5"},white:{conditions:{base:"fyvr12nb",active:"fyvr12nc",disabled:"fyvr12nd",focus:"fyvr12ne",hover:"fyvr12nf",checked:"fyvr12ng"},defaultClass:"fyvr12nb"},inherit:{conditions:{base:"fyvr12nh",active:"fyvr12ni",disabled:"fyvr12nj",focus:"fyvr12nk",hover:"fyvr12nl",checked:"fyvr12nm"},defaultClass:"fyvr12nh"},transparent:{conditions:{base:"fyvr12nn",active:"fyvr12no",disabled:"fyvr12np",focus:"fyvr12nq",hover:"fyvr12nr",checked:"fyvr12ns"},defaultClass:"fyvr12nn"},positive:{conditions:{base:"fyvr12nt",active:"fyvr12nu",disabled:"fyvr12nv",focus:"fyvr12nw",hover:"fyvr12nx",checked:"fyvr12ny"},defaultClass:"fyvr12nt"},negative:{conditions:{base:"fyvr12nz",active:"fyvr12o0",disabled:"fyvr12o1",focus:"fyvr12o2",hover:"fyvr12o3",checked:"fyvr12o4"},defaultClass:"fyvr12nz"},info:{conditions:{base:"fyvr12o5",active:"fyvr12o6",disabled:"fyvr12o7",focus:"fyvr12o8",hover:"fyvr12o9",checked:"fyvr12oa"},defaultClass:"fyvr12o5"},warning:{conditions:{base:"fyvr12ob",active:"fyvr12oc",disabled:"fyvr12od",focus:"fyvr12oe",hover:"fyvr12of",checked:"fyvr12og"},defaultClass:"fyvr12ob"},gradientBackdrop:{conditions:{base:"fyvr12oh",active:"fyvr12oi",disabled:"fyvr12oj",focus:"fyvr12ok",hover:"fyvr12ol",checked:"fyvr12om"},defaultClass:"fyvr12oh"},gradientPrimary:{conditions:{base:"fyvr12on",active:"fyvr12oo",disabled:"fyvr12op",focus:"fyvr12oq",hover:"fyvr12or",checked:"fyvr12os"},defaultClass:"fyvr12on"},gradientSecondary:{conditions:{base:"fyvr12ot",active:"fyvr12ou",disabled:"fyvr12ov",focus:"fyvr12ow",hover:"fyvr12ox",checked:"fyvr12oy"},defaultClass:"fyvr12ot"},backgroundPrimary:{conditions:{base:"fyvr12oz",active:"fyvr12p0",disabled:"fyvr12p1",focus:"fyvr12p2",hover:"fyvr12p3",checked:"fyvr12p4"},defaultClass:"fyvr12oz"},backgroundSecondary:{conditions:{base:"fyvr12p5",active:"fyvr12p6",disabled:"fyvr12p7",focus:"fyvr12p8",hover:"fyvr12p9",checked:"fyvr12pa"},defaultClass:"fyvr12p5"},backgroundContrast:{conditions:{base:"fyvr12pb",active:"fyvr12pc",disabled:"fyvr12pd",focus:"fyvr12pe",hover:"fyvr12pf",checked:"fyvr12pg"},defaultClass:"fyvr12pb"},backgroundMuted:{conditions:{base:"fyvr12ph",active:"fyvr12pi",disabled:"fyvr12pj",focus:"fyvr12pk",hover:"fyvr12pl",checked:"fyvr12pm"},defaultClass:"fyvr12ph"},backgroundControl:{conditions:{base:"fyvr12pn",active:"fyvr12po",disabled:"fyvr12pp",focus:"fyvr12pq",hover:"fyvr12pr",checked:"fyvr12ps"},defaultClass:"fyvr12pn"},backgroundInverse:{conditions:{base:"fyvr12pt",active:"fyvr12pu",disabled:"fyvr12pv",focus:"fyvr12pw",hover:"fyvr12px",checked:"fyvr12py"},defaultClass:"fyvr12pt"},backgroundBackdrop:{conditions:{base:"fyvr12pz",active:"fyvr12q0",disabled:"fyvr12q1",focus:"fyvr12q2",hover:"fyvr12q3",checked:"fyvr12q4"},defaultClass:"fyvr12pz"},backgroundOverlay:{conditions:{base:"fyvr12q5",active:"fyvr12q6",disabled:"fyvr12q7",focus:"fyvr12q8",hover:"fyvr12q9",checked:"fyvr12qa"},defaultClass:"fyvr12q5"},borderNormal:{conditions:{base:"fyvr12qb",active:"fyvr12qc",disabled:"fyvr12qd",focus:"fyvr12qe",hover:"fyvr12qf",checked:"fyvr12qg"},defaultClass:"fyvr12qb"},borderFocus:{conditions:{base:"fyvr12qh",active:"fyvr12qi",disabled:"fyvr12qj",focus:"fyvr12qk",hover:"fyvr12ql",checked:"fyvr12qm"},defaultClass:"fyvr12qh"},buttonGlass:{conditions:{base:"fyvr12qn",active:"fyvr12qo",disabled:"fyvr12qp",focus:"fyvr12qq",hover:"fyvr12qr",checked:"fyvr12qs"},defaultClass:"fyvr12qn"},buttonEmphasis:{conditions:{base:"fyvr12qt",active:"fyvr12qu",disabled:"fyvr12qv",focus:"fyvr12qw",hover:"fyvr12qx",checked:"fyvr12qy"},defaultClass:"fyvr12qt"},buttonInverse:{conditions:{base:"fyvr12qz",active:"fyvr12r0",disabled:"fyvr12r1",focus:"fyvr12r2",hover:"fyvr12r3",checked:"fyvr12r4"},defaultClass:"fyvr12qz"},text50:{conditions:{base:"fyvr12r5",active:"fyvr12r6",disabled:"fyvr12r7",focus:"fyvr12r8",hover:"fyvr12r9",checked:"fyvr12ra"},defaultClass:"fyvr12r5"},text80:{conditions:{base:"fyvr12rb",active:"fyvr12rc",disabled:"fyvr12rd",focus:"fyvr12re",hover:"fyvr12rf",checked:"fyvr12rg"},defaultClass:"fyvr12rb"},text100:{conditions:{base:"fyvr12rh",active:"fyvr12ri",disabled:"fyvr12rj",focus:"fyvr12rk",hover:"fyvr12rl",checked:"fyvr12rm"},defaultClass:"fyvr12rh"},textInverse100:{conditions:{base:"fyvr12rn",active:"fyvr12ro",disabled:"fyvr12rp",focus:"fyvr12rq",hover:"fyvr12rr",checked:"fyvr12rs"},defaultClass:"fyvr12rn"},arbitrumDark:{conditions:{base:"fyvr12rt",active:"fyvr12ru",disabled:"fyvr12rv",focus:"fyvr12rw",hover:"fyvr12rx",checked:"fyvr12ry"},defaultClass:"fyvr12rt"},arbitrumLight:{conditions:{base:"fyvr12rz",active:"fyvr12s0",disabled:"fyvr12s1",focus:"fyvr12s2",hover:"fyvr12s3",checked:"fyvr12s4"},defaultClass:"fyvr12rz"},avalanceDark:{conditions:{base:"fyvr12s5",active:"fyvr12s6",disabled:"fyvr12s7",focus:"fyvr12s8",hover:"fyvr12s9",checked:"fyvr12sa"},defaultClass:"fyvr12s5"},avalanceLight:{conditions:{base:"fyvr12sb",active:"fyvr12sc",disabled:"fyvr12sd",focus:"fyvr12se",hover:"fyvr12sf",checked:"fyvr12sg"},defaultClass:"fyvr12sb"},bscDark:{conditions:{base:"fyvr12sh",active:"fyvr12si",disabled:"fyvr12sj",focus:"fyvr12sk",hover:"fyvr12sl",checked:"fyvr12sm"},defaultClass:"fyvr12sh"},bscLight:{conditions:{base:"fyvr12sn",active:"fyvr12so",disabled:"fyvr12sp",focus:"fyvr12sq",hover:"fyvr12sr",checked:"fyvr12ss"},defaultClass:"fyvr12sn"},ethereumDark:{conditions:{base:"fyvr12st",active:"fyvr12su",disabled:"fyvr12sv",focus:"fyvr12sw",hover:"fyvr12sx",checked:"fyvr12sy"},defaultClass:"fyvr12st"},ethereumLight:{conditions:{base:"fyvr12sz",active:"fyvr12t0",disabled:"fyvr12t1",focus:"fyvr12t2",hover:"fyvr12t3",checked:"fyvr12t4"},defaultClass:"fyvr12sz"},gnosisDark:{conditions:{base:"fyvr12t5",active:"fyvr12t6",disabled:"fyvr12t7",focus:"fyvr12t8",hover:"fyvr12t9",checked:"fyvr12ta"},defaultClass:"fyvr12t5"},gnosisLight:{conditions:{base:"fyvr12tb",active:"fyvr12tc",disabled:"fyvr12td",focus:"fyvr12te",hover:"fyvr12tf",checked:"fyvr12tg"},defaultClass:"fyvr12tb"},polygonDark:{conditions:{base:"fyvr12th",active:"fyvr12ti",disabled:"fyvr12tj",focus:"fyvr12tk",hover:"fyvr12tl",checked:"fyvr12tm"},defaultClass:"fyvr12th"},polygonLight:{conditions:{base:"fyvr12tn",active:"fyvr12to",disabled:"fyvr12tp",focus:"fyvr12tq",hover:"fyvr12tr",checked:"fyvr12ts"},defaultClass:"fyvr12tn"}}},cursor:{values:{default:{conditions:{base:"fyvr12tt",active:"fyvr12tu",disabled:"fyvr12tv",focus:"fyvr12tw",hover:"fyvr12tx",checked:"fyvr12ty"},defaultClass:"fyvr12tt"},pointer:{conditions:{base:"fyvr12tz",active:"fyvr12u0",disabled:"fyvr12u1",focus:"fyvr12u2",hover:"fyvr12u3",checked:"fyvr12u4"},defaultClass:"fyvr12tz"},text:{conditions:{base:"fyvr12u5",active:"fyvr12u6",disabled:"fyvr12u7",focus:"fyvr12u8",hover:"fyvr12u9",checked:"fyvr12ua"},defaultClass:"fyvr12u5"}}},opacity:{values:{0:{conditions:{base:"fyvr12ub",active:"fyvr12uc",disabled:"fyvr12ud",focus:"fyvr12ue",hover:"fyvr12uf",checked:"fyvr12ug"},defaultClass:"fyvr12ub"},50:{conditions:{base:"fyvr12uh",active:"fyvr12ui",disabled:"fyvr12uj",focus:"fyvr12uk",hover:"fyvr12ul",checked:"fyvr12um"},defaultClass:"fyvr12uh"},80:{conditions:{base:"fyvr12un",active:"fyvr12uo",disabled:"fyvr12up",focus:"fyvr12uq",hover:"fyvr12ur",checked:"fyvr12us"},defaultClass:"fyvr12un"},100:{conditions:{base:"fyvr12ut",active:"fyvr12uu",disabled:"fyvr12uv",focus:"fyvr12uw",hover:"fyvr12ux",checked:"fyvr12uy"},defaultClass:"fyvr12ut"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12uz",active:"fyvr12v0",disabled:"fyvr12v1",focus:"fyvr12v2",hover:"fyvr12v3",checked:"fyvr12v4"},defaultClass:"fyvr12uz"},auto:{conditions:{base:"fyvr12v5",active:"fyvr12v6",disabled:"fyvr12v7",focus:"fyvr12v8",hover:"fyvr12v9",checked:"fyvr12va"},defaultClass:"fyvr12v5"}}},outline:{values:{none:{conditions:{base:"fyvr12vb",active:"fyvr12vc",disabled:"fyvr12vd",focus:"fyvr12ve",hover:"fyvr12vf",checked:"fyvr12vg"},defaultClass:"fyvr12vb"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12vh",active:"fyvr12vi",disabled:"fyvr12vj",focus:"fyvr12vk",hover:"fyvr12vl",checked:"fyvr12vm"},defaultClass:"fyvr12vh"}}}}});const HN=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],Hy=t=>(t.display||(t.display=Object.keys(t).some(e=>HN.includes(e))?"flex":void 0),cS(t));Hy.properties=cS.properties;function fS(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{const{as:r="div",sx:n={},className:i,...s}=t,o={},a={};for(const c in s)Hy.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=Hy({...o,...n});return g.createElement(r,{className:Xr(l,i),...a,ref:e})});var uS={exports:{}},lc={};/** * @license React * react-jsx-runtime.production.min.js * @@ -53,8 +53,8 @@ Error generating stack: `+s.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Lw;function ON(){if(Lw)return ac;Lw=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}rS.exports=ON();var K=rS.exports;function LN(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 BN(t){var e=LN(t,"string");return typeof e=="symbol"?e:String(e)}function FN(t,e,r){return e=BN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bw(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 Fw(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},Lt=t=>{var e=r=>{var n=t.defaultClassName,i=Fw(Fw({},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)jN(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 jw(t.variantClassNames,r=>jw(r,n=>n.split(" ")[0]))}},e};Lt({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const bo=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return K.jsx(ie,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var zN=Lt({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Le=g.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=PN[n];return K.jsx(ie,{as:r,className:Xr(i,zN({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...v,...d,children:l})});var UN=Lt({defaultClassName:"_140wn8nf fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8ng",feature:"_140wn8nh fyvr11ph fyvr12nb",primary:"fyvr11pb fyvr12nb",glass:"fyvr11rb fyvr12rh",emphasis:"fyvr11rh fyvr12rh",danger:"fyvr11on fyvr12nb",text:"_140wn8nm _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12r5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12tt fyvr12uh",false:"fyvr12tz fyvr12ut fyvr12ur"},size:{xs:"_140wn8nr _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8ns _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nv"},hasLeftIcon:{true:"_140wn8nw"},hasRightIcon:{true:"_140wn8nx"},activeOutline:{light:"_140wn8ny",bold:"_140wn8nz"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n10"],[{iconOnly:!0,size:"sm"},"_140wn8n11"],[{iconOnly:!0,size:"md"},"_140wn8n12"],[{iconOnly:!0,size:"lg"},"_140wn8n13"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n14"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n16"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n17"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n19"]]});const Yr=g.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:m="fit",shape:y="circle",type:w="button",...b}=t,x=f!==void 0&&c!==void 0,S=u!==void 0&&c!==void 0,A=f!==void 0&&c===void 0,_=d==="xs"?"xs":"sm";return K.jsx(ie,{as:r,className:Xr(i,UN({activeOutline:n,disabled:s||l,hasLeftIcon:x,hasRightIcon:S,iconOnly:A,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:m,...b,children:A?K.jsx(f,{size:_}):K.jsxs(ie,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[K.jsxs(ie,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&K.jsx(f,{size:_}),K.jsx(Le,{children:c})]}),u&&K.jsx(u,{size:_})]})})});var VN=Lt({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12ur fyvr12tz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mn fyvr12fh fyvr1215 fyvr128b"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});g.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return K.jsx(ie,{className:Xr(r,VN({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 me(){return me=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>qN(r,e))}function At(...t){return g.useCallback(nS(...t),t)}function _r(t,e=[]){let r=[];function n(s,o){const a=g.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...m}=u,y=(d==null?void 0:d[t][l])||a,w=g.useMemo(()=>m,Object.values(m));return g.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[t][l])||a,m=g.useContext(v);if(m)return m;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=>g.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return g.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,HN(i,...e)]}function HN(...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 g.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function Se(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 Tn(t){const e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function Ko({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=GN({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=Tn(r),l=g.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 GN({defaultProp:t,onChange:e}){const r=g.useState(t),[n]=r,i=g.useRef(n),s=Tn(e);return g.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function Um(t){const e=g.useRef({value:t,previous:t});return g.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const un=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function Vm(t){const[e,r]=g.useState(void 0);return un(()=>{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 WN(t,e){return g.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const yo=t=>{const{present:e,children:r}=t,n=KN(e),i=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),s=At(n.ref,i.ref);return typeof r=="function"||n.isPresent?g.cloneElement(i,{ref:s}):null};yo.displayName="Presence";function KN(t){const[e,r]=g.useState(),n=g.useRef({}),i=g.useRef(t),s=g.useRef("none"),o=t?"mounted":"unmounted",[a,l]=WN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Gu(n.current);s.current=a==="mounted"?c:"none"},[a]),un(()=>{const c=n.current,f=i.current;if(f!==t){const d=s.current,v=Gu(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]),un(()=>{if(e){const c=u=>{const v=Gu(n.current).includes(u.animationName);u.target===e&&v&&ho.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=Gu(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:g.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Gu(t){return(t==null?void 0:t.animationName)||"none"}const pl=g.forwardRef((t,e)=>{const{children:r,...n}=t,i=g.Children.toArray(r),s=i.find(QN);if(s){const o=s.props.children,a=i.map(l=>l===s?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:l);return g.createElement(Fy,me({},n,{ref:e}),g.isValidElement(o)?g.cloneElement(o,void 0,a):null)}return g.createElement(Fy,me({},n,{ref:e}),r)});pl.displayName="Slot";const Fy=g.forwardRef((t,e)=>{const{children:r,...n}=t;return g.isValidElement(r)?g.cloneElement(r,{...JN(n,r.props),ref:e?nS(e,r.ref):r.ref}):g.Children.count(r)>1?g.Children.only(null):null});Fy.displayName="SlotClone";const YN=({children:t})=>g.createElement(g.Fragment,null,t);function QN(t){return g.isValidElement(t)&&t.type===YN}function JN(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 XN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Je=XN.reduce((t,e)=>{const r=g.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?pl:e;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(a,me({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function qm(t,e){t&&ho.flushSync(()=>t.dispatchEvent(e))}const iS="Checkbox",[ZN,CZ]=_r(iS),[e$,t$]=ZN(iS),r$=g.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]=g.useState(null),v=At(e,S=>d(S)),m=g.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,b]=Ko({prop:i,defaultProp:s,onChange:c}),x=g.useRef(w);return g.useEffect(()=>{const S=u==null?void 0:u.form;if(S){const A=()=>b(x.current);return S.addEventListener("reset",A),()=>S.removeEventListener("reset",A)}},[u,b]),g.createElement(e$,{scope:r,state:w,disabled:a},g.createElement(Je.button,me({type:"button",role:"checkbox","aria-checked":Bo(w)?"mixed":w,"aria-required":o,"data-state":sS(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:Se(t.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Se(t.onClick,S=>{b(A=>Bo(A)?!0:!A),y&&(m.current=S.isPropagationStopped(),m.current||S.stopPropagation())})})),y&&g.createElement(s$,{control:u,bubbles:!m.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),n$="CheckboxIndicator",i$=g.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=t$(n$,r);return g.createElement(yo,{present:n||Bo(s.state)||s.state===!0},g.createElement(Je.span,me({"data-state":sS(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),s$=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=g.useRef(null),o=Um(r),a=Vm(e);return g.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=Bo(r),u.call(l,Bo(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),g.createElement("input",me({type:"checkbox","aria-hidden":!0,defaultChecked:Bo(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Bo(t){return t==="indeterminate"}function sS(t){return Bo(t)?"indeterminate":t?"checked":"unchecked"}const o$=r$,a$=i$;var l$=Lt({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const Tl=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?K.jsxs(ie,{flexDirection:"column",gap:"0.5",children:[r&&K.jsx(Le,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&K.jsx(Le,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return K.jsxs(ie,{as:"label",className:l$({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var a0=Lt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const c$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),oS=({size:t="sm",...e})=>K.jsx(ie,{as:c$,className:a0({size:t}),...e}),f$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.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"})}),aS=({size:t="sm",...e})=>K.jsx(ie,{as:f$,className:a0({size:t}),...e}),u$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.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})=>K.jsx(ie,{as:u$,className:a0({size:t}),...e}),d$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.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"})}),h$=({size:t="sm",...e})=>K.jsx(ie,{as:d$,className:a0({size:t}),...e});var v$=Lt({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11h0 fyvr11ko fyvr11jg fyvr12ut fyvr12ur fyvr12uj fyvr12tz fyvr12tv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),y$=Lt({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rh fyvr11rt",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const p$=({size:t="sm"})=>K.jsx(a$,{className:y$({size:t}),children:K.jsx(oS,{size:t})});g.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return K.jsx(Tl,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:K.jsx(o$,{className:v$({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:K.jsx(p$,{})})})});cr.createContext(null);const m$=R4["useId".toString()]||(()=>{});let g$=0;function Qs(t){const[e,r]=g.useState(m$());return un(()=>{t||r(n=>n??String(g$++))},[t]),t||(e?`radix-${e}`:"")}const lS="Collapsible",[x$,SZ]=_r(lS),[b$,Gm]=x$(lS),w$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=Ko({prop:n,defaultProp:i,onChange:o});return g.createElement(b$,{scope:r,disabled:s,contentId:Qs(),open:l,onOpenToggle:g.useCallback(()=>c(f=>!f),[c])},g.createElement(Je.div,me({"data-state":Wm(l),"data-disabled":s?"":void 0},a,{ref:e})))}),E$="CollapsibleTrigger",C$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Gm(E$,r);return g.createElement(Je.button,me({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Wm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:Se(t.onClick,i.onOpenToggle)}))}),cS="CollapsibleContent",S$=g.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Gm(cS,t.__scopeCollapsible);return g.createElement(yo,{present:r||i.open},({present:s})=>g.createElement(A$,me({},n,{ref:e,present:s})))}),A$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Gm(cS,r),[a,l]=g.useState(n),c=g.useRef(null),f=At(e,c),u=g.useRef(0),d=u.current,v=g.useRef(0),m=v.current,y=o.open||a,w=g.useRef(y),b=g.useRef();return g.useEffect(()=>{const x=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(x)},[]),un(()=>{const x=c.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const S=x.getBoundingClientRect();u.current=S.height,v.current=S.width,w.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),l(n)}},[o.open,n]),g.createElement(Je.div,me({"data-state":Wm(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":m?`${m}px`:void 0,...t.style}}),y&&i)});function Wm(t){return t?"open":"closed"}const k$=w$,R$=C$,P$=S$;var zw="64px",T$="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",_$="_4j62fl5",M$="_4j62fl0",I$="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12tz fyvr11n2";const lc=t=>{const{className:e,children:r,defaultOpen:n,onOpenChange:i,label:s,...o}=t,[a,l]=g.useState(n),c=f=>{l(f),i==null||i(f)};return K.jsx(k$,{defaultOpen:n,onOpenChange:c,asChild:!0,children:K.jsxs(ie,{as:Ja.div,className:Xr(e,M$),initial:{height:n?"auto":zw},animate:{height:a?"auto":zw},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...o,children:[K.jsxs(R$,{className:I$,children:[K.jsx(Le,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:s}),K.jsx(ie,{as:Ja.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:n?180:0},animate:{rotate:a?180:0},transition:{ease:"linear",duration:.1},children:K.jsx(aS,{className:_$,color:"text50"})})]}),K.jsx(ZC,{children:a&&K.jsx(P$,{className:T$,asChild:!0,forceMount:!0,children:K.jsx(Ja.div,{initial:{opacity:n?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function l0(t){const e=t+"CollectionProvider",[r,n]=_r(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:m,children:y}=v,w=cr.useRef(null),b=cr.useRef(new Map).current;return cr.createElement(i,{scope:m,itemMap:b,collectionRef:w},y)},a=t+"CollectionSlot",l=cr.forwardRef((v,m)=>{const{scope:y,children:w}=v,b=s(a,y),x=At(m,b.collectionRef);return cr.createElement(pl,{ref:x},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=cr.forwardRef((v,m)=>{const{scope:y,children:w,...b}=v,x=cr.useRef(null),S=At(m,x),A=s(c,y);return cr.useEffect(()=>(A.itemMap.set(x,{ref:x,...b}),()=>void A.itemMap.delete(x))),cr.createElement(pl,{[f]:"",ref:S},w)});function d(v){const m=s(t+"CollectionConsumer",v);return cr.useCallback(()=>{const w=m.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((A,_)=>b.indexOf(A.ref.current)-b.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const N$=g.createContext(void 0);function Km(t){const e=g.useContext(N$);return t||e||"ltr"}function $$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t);g.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const jy="dismissableLayer.update",D$="dismissableLayer.pointerDownOutside",O$="dismissableLayer.focusOutside";let Uw;const L$=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ym=g.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=g.useContext(L$),[u,d]=g.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=g.useState({}),y=At(e,O=>d(O)),w=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(b),S=u?w.indexOf(u):-1,A=f.layersWithOutsidePointerEventsDisabled.size>0,_=S>=x,D=B$(O=>{const H=O.target,Y=[...f.branches].some(Q=>Q.contains(H));!_||Y||(s==null||s(O),a==null||a(O),O.defaultPrevented||l==null||l())},v),$=F$(O=>{const H=O.target;[...f.branches].some(Q=>Q.contains(H))||(o==null||o(O),a==null||a(O),O.defaultPrevented||l==null||l())},v);return $$(O=>{S===f.layers.size-1&&(i==null||i(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},v),g.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Uw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),Vw(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Uw)}},[u,v,n,f]),g.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),Vw())},[u,f]),g.useEffect(()=>{const O=()=>m({});return document.addEventListener(jy,O),()=>document.removeEventListener(jy,O)},[]),g.createElement(Je.div,me({},c,{ref:y,style:{pointerEvents:A?_?"auto":"none":void 0,...t.style},onFocusCapture:Se(t.onFocusCapture,$.onFocusCapture),onBlurCapture:Se(t.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Se(t.onPointerDownCapture,D.onPointerDownCapture)}))});function B$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t),n=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){fS(D$,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()}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 F$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t),n=g.useRef(!1);return g.useEffect(()=>{const i=s=>{s.target&&!n.current&&fS(O$,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 Vw(){const t=new CustomEvent(jy);document.dispatchEvent(t)}function fS(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 j$=Ym;let $1=0;function uS(){g.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:qw()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:qw()),$1++,()=>{$1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),$1--}},[])}function qw(){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 D1="focusScope.autoFocusOnMount",O1="focusScope.autoFocusOnUnmount",Hw={bubbles:!1,cancelable:!0},dS=g.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=g.useState(null),c=Tn(i),f=Tn(s),u=g.useRef(null),d=At(e,y=>l(y)),v=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let y=function(S){if(v.paused||!a)return;const A=S.target;a.contains(A)?u.current=A:Ts(u.current,{select:!0})},w=function(S){if(v.paused||!a)return;const A=S.relatedTarget;A!==null&&(a.contains(A)||Ts(u.current,{select:!0}))},b=function(S){const A=document.activeElement;for(const _ of S)_.removedNodes.length>0&&(a!=null&&a.contains(A)||Ts(a))};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const x=new MutationObserver(b);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),x.disconnect()}}},[n,a,v.paused]),g.useEffect(()=>{if(a){Ww.add(v);const y=document.activeElement;if(!a.contains(y)){const b=new CustomEvent(D1,Hw);a.addEventListener(D1,c),a.dispatchEvent(b),b.defaultPrevented||(z$(G$(hS(a)),{select:!0}),document.activeElement===y&&Ts(a))}return()=>{a.removeEventListener(D1,c),setTimeout(()=>{const b=new CustomEvent(O1,Hw);a.addEventListener(O1,f),a.dispatchEvent(b),b.defaultPrevented||Ts(y??document.body,{select:!0}),a.removeEventListener(O1,f),Ww.remove(v)},0)}}},[a,c,f,v]);const m=g.useCallback(y=>{if(!r&&!n||v.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,b=document.activeElement;if(w&&b){const x=y.currentTarget,[S,A]=U$(x);S&&A?!y.shiftKey&&b===A?(y.preventDefault(),r&&Ts(S,{select:!0})):y.shiftKey&&b===S&&(y.preventDefault(),r&&Ts(A,{select:!0})):b===x&&y.preventDefault()}},[r,n,v.paused]);return g.createElement(Je.div,me({tabIndex:-1},o,{ref:d,onKeyDown:m}))});function z$(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ts(n,{select:e}),document.activeElement!==r)return}function U$(t){const e=hS(t),r=Gw(e,t),n=Gw(e.reverse(),t);return[r,n]}function hS(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 Gw(t,e){for(const r of t)if(!V$(r,{upTo:e}))return r}function V$(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 q$(t){return t instanceof HTMLInputElement&&"select"in t}function Ts(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&q$(t)&&e&&t.select()}}const Ww=H$();function H$(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=Kw(t,e),t.unshift(e)},remove(e){var r;t=Kw(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function Kw(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function G$(t){return t.filter(e=>e.tagName!=="A")}function _l(t){return t.split("-")[1]}function Qm(t){return t==="y"?"height":"width"}function cs(t){return t.split("-")[0]}function aa(t){return["top","bottom"].includes(cs(t))?"x":"y"}function Yw(t,e,r){let{reference:n,floating:i}=t;const s=n.x+n.width/2-i.width/2,o=n.y+n.height/2-i.height/2,a=aa(e),l=Qm(a),c=n[l]/2-i[l]/2,f=a==="x";let u;switch(cs(e)){case"top":u={x:s,y:n.y-i.height};break;case"bottom":u={x:s,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:o};break;case"left":u={x:n.x-i.width,y:o};break;default:u={x:n.x,y:n.y}}switch(_l(e)){case"start":u[a]-=c*(r&&f?-1:1);break;case"end":u[a]+=c*(r&&f?-1:1)}return u}const W$=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}=Yw(c,n,l),d=n,v={},m=0;for(let y=0;y({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:i,y:s,placement:o,rects:a,platform:l,elements:c}=e;if(r==null)return{};const f=vS(n),u={x:i,y:s},d=aa(o),v=Qm(d),m=await l.getDimensions(r),y=d==="y",w=y?"top":"left",b=y?"bottom":"right",x=y?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[d]-u[d]-a.floating[v],A=u[d]-a.reference[d],_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let D=_?_[x]:0;D&&await(l.isElement==null?void 0:l.isElement(_))||(D=c.floating[x]||a.floating[v]);const $=S/2-A/2,O=f[w],H=D-m[v]-f[b],Y=D/2-m[v]/2+$,Q=Uy(O,Y,H),re=_l(o)!=null&&Y!=Q&&a.reference[v]/2-(Yt.concat(e,e+"-start",e+"-end"),[]);const K$={left:"right",right:"left",bottom:"top",top:"bottom"};function yh(t){return t.replace(/left|right|bottom|top/g,e=>K$[e])}function Y$(t,e,r){r===void 0&&(r=!1);const n=_l(t),i=aa(t),s=Qm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=yh(o)),{main:o,cross:yh(o)}}const Q$={start:"end",end:"start"};function L1(t){return t.replace(/start|end/g,e=>Q$[e])}const J$=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:i,rects:s,initialPlacement:o,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=t,w=cs(n),b=cs(o)===o,x=await(a.isRTL==null?void 0:a.isRTL(l.floating)),S=u||(b||!m?[yh(o)]:function(Q){const re=yh(Q);return[L1(Q),re,L1(re)]}(o));u||v==="none"||S.push(...function(Q,re,I,h){const C=_l(Q);let R=function(M,T,N){const L=["left","right"],k=["right","left"],p=["top","bottom"],P=["bottom","top"];switch(M){case"top":case"bottom":return N?T?k:L:T?L:k;case"left":case"right":return T?p:P;default:return[]}}(cs(Q),I==="start",h);return C&&(R=R.map(M=>M+"-"+C),re&&(R=R.concat(R.map(L1)))),R}(o,m,v,x));const A=[o,...S],_=await Bf(e,y),D=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&D.push(_[w]),f){const{main:Q,cross:re}=Y$(n,s,x);D.push(_[Q],_[re])}if($=[...$,{placement:n,overflows:D}],!D.every(Q=>Q<=0)){var O,H;const Q=(((O=i.flip)==null?void 0:O.index)||0)+1,re=A[Q];if(re)return{data:{index:Q,overflows:$},reset:{placement:re}};let I=(H=$.filter(h=>h.overflows[0]<=0).sort((h,C)=>h.overflows[1]-C.overflows[1])[0])==null?void 0:H.placement;if(!I)switch(d){case"bestFit":{var Y;const h=(Y=$.map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:Y[0];h&&(I=h);break}case"initialPlacement":I=o}if(n!==I)return{reset:{placement:I}}}return{}}}};function Jw(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xw(t){return yS.some(e=>t[e]>=0)}const X$=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:r="referenceHidden",...n}=t,{rects:i}=e;switch(r){case"referenceHidden":{const s=Jw(await Bf(e,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xw(s)}}}case"escaped":{const s=Jw(await Bf(e,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:Xw(s)}}}default:return{}}}}},Z$=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await async function(s,o){const{placement:a,platform:l,elements:c}=s,f=await(l.isRTL==null?void 0:l.isRTL(c.floating)),u=cs(a),d=_l(a),v=aa(a)==="x",m=["left","top"].includes(u)?-1:1,y=f&&v?-1:1,w=typeof o=="function"?o(s):o;let{mainAxis:b,crossAxis:x,alignmentAxis:S}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return d&&typeof S=="number"&&(x=d==="end"?-1*S:S),v?{x:x*y,y:b*m}:{x:b*m,y:x*y}}(e,t);return{x:r+i.x,y:n+i.y,data:i}}}};function pS(t){return t==="x"?"y":"x"}const eD=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:b,y:x}=w;return{x:b,y:x}}},...l}=t,c={x:r,y:n},f=await Bf(e,l),u=aa(cs(i)),d=pS(u);let v=c[u],m=c[d];if(s){const w=u==="y"?"bottom":"right";v=Uy(v+f[u==="y"?"top":"left"],v,v-f[w])}if(o){const w=d==="y"?"bottom":"right";m=Uy(m+f[d==="y"?"top":"left"],m,m-f[w])}const y=a.fn({...e,[u]:v,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},tD=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}=t,f={x:r,y:n},u=aa(i),d=pS(u);let v=f[u],m=f[d];const y=typeof a=="function"?a(e):a,w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const S=u==="y"?"height":"width",A=s.reference[u]-s.floating[S]+w.mainAxis,_=s.reference[u]+s.reference[S]-w.mainAxis;v_&&(v=_)}if(c){var b,x;const S=u==="y"?"width":"height",A=["top","left"].includes(cs(i)),_=s.reference[d]-s.floating[S]+(A&&((b=o.offset)==null?void 0:b[d])||0)+(A?0:w.crossAxis),D=s.reference[d]+s.reference[S]+(A?0:((x=o.offset)==null?void 0:x[d])||0)-(A?w.crossAxis:0);m<_?m=_:m>D&&(m=D)}return{[u]:v,[d]:m}}}},rD=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}=t,l=await Bf(e,a),c=cs(r),f=_l(r),u=aa(r)==="x",{width:d,height:v}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,m=f==="end"?"top":"bottom");const w=v-l[m],b=d-l[y],x=!e.middlewareData.shift;let S=w,A=b;if(u){const D=d-l.left-l.right;A=f||x?zy(b,D):D}else{const D=v-l.top-l.bottom;S=f||x?zy(w,D):D}if(x&&!f){const D=Ro(l.left,0),$=Ro(l.right,0),O=Ro(l.top,0),H=Ro(l.bottom,0);u?A=d-2*(D!==0||$!==0?D+$:Ro(l.left,l.right)):S=v-2*(O!==0||H!==0?O+H:Ro(l.top,l.bottom))}await o({...e,availableWidth:A,availableHeight:S});const _=await i.getDimensions(s.floating);return d!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function kn(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ri(t){return kn(t).getComputedStyle(t)}function mS(t){return t instanceof kn(t).Node}function ro(t){return mS(t)?(t.nodeName||"").toLowerCase():""}function si(t){return t instanceof kn(t).HTMLElement}function an(t){return t instanceof kn(t).Element}function Zw(t){return typeof ShadowRoot>"u"?!1:t instanceof kn(t).ShadowRoot||t instanceof ShadowRoot}function Ff(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=ri(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function nD(t){return["table","td","th"].includes(ro(t))}function Vy(t){const e=Jm(),r=ri(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Jm(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function c0(t){return["html","body","#document"].includes(ro(t))}const e3=Math.min,of=Math.max,ph=Math.round;function gS(t){const e=ri(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=si(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=ph(r)!==s||ph(n)!==o;return a&&(r=s,n=o),{width:r,height:n,fallback:a}}function xS(t){return an(t)?t:t.contextElement}const bS={x:1,y:1};function Xa(t){const e=xS(t);if(!si(e))return bS;const r=e.getBoundingClientRect(),{width:n,height:i,fallback:s}=gS(e);let o=(s?ph(r.width):r.width)/n,a=(s?ph(r.height):r.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const t3={x:0,y:0};function wS(t,e,r){var n,i;if(e===void 0&&(e=!0),!Jm())return t3;const s=t?kn(t):window;return!r||e&&r!==s?t3:{x:((n=s.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=s.visualViewport)==null?void 0:i.offsetTop)||0}}function Yo(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=xS(t);let o=bS;e&&(n?an(n)&&(o=Xa(n)):o=Xa(t));const a=wS(s,r,n);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=kn(s),v=n&&an(n)?kn(n):n;let m=d.frameElement;for(;m&&n&&v!==d;){const y=Xa(m),w=m.getBoundingClientRect(),b=getComputedStyle(m);w.x+=(m.clientLeft+parseFloat(b.paddingLeft))*y.x,w.y+=(m.clientTop+parseFloat(b.paddingTop))*y.y,l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=w.x,c+=w.y,m=kn(m).frameElement}}return vh({width:f,height:u,x:l,y:c})}function Js(t){return((mS(t)?t.ownerDocument:t.document)||window.document).documentElement}function f0(t){return an(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ES(t){return Yo(Js(t)).left+f0(t).scrollLeft}function ml(t){if(ro(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Zw(t)&&t.host||Js(t);return Zw(e)?e.host:e}function CS(t){const e=ml(t);return c0(e)?e.ownerDocument.body:si(e)&&Ff(e)?e:CS(e)}function af(t,e){var r;e===void 0&&(e=[]);const n=CS(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),s=kn(n);return i?e.concat(s,s.visualViewport||[],Ff(n)?n:[]):e.concat(n,af(n))}function r3(t,e,r){let n;if(e==="viewport")n=function(i,s){const o=kn(i),a=Js(i),l=o.visualViewport;let c=a.clientWidth,f=a.clientHeight,u=0,d=0;if(l){c=l.width,f=l.height;const v=Jm();(!v||v&&s==="fixed")&&(u=l.offsetLeft,d=l.offsetTop)}return{width:c,height:f,x:u,y:d}}(t,r);else if(e==="document")n=function(i){const s=Js(i),o=f0(i),a=i.ownerDocument.body,l=of(s.scrollWidth,s.clientWidth,a.scrollWidth,a.clientWidth),c=of(s.scrollHeight,s.clientHeight,a.scrollHeight,a.clientHeight);let f=-o.scrollLeft+ES(i);const u=-o.scrollTop;return ri(a).direction==="rtl"&&(f+=of(s.clientWidth,a.clientWidth)-l),{width:l,height:c,x:f,y:u}}(Js(t));else if(an(e))n=function(i,s){const o=Yo(i,!0,s==="fixed"),a=o.top+i.clientTop,l=o.left+i.clientLeft,c=si(i)?Xa(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:a*c.y}}(e,r);else{const i=wS(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return vh(n)}function SS(t,e){const r=ml(t);return!(r===e||!an(r)||c0(r))&&(ri(r).position==="fixed"||SS(r,e))}function n3(t,e){return si(t)&&ri(t).position!=="fixed"?e?e(t):t.offsetParent:null}function i3(t,e){const r=kn(t);if(!si(t))return r;let n=n3(t,e);for(;n&&nD(n)&&ri(n).position==="static";)n=n3(n,e);return n&&(ro(n)==="html"||ro(n)==="body"&&ri(n).position==="static"&&!Vy(n))?r:n||function(i){let s=ml(i);for(;si(s)&&!c0(s);){if(Vy(s))return s;s=ml(s)}return null}(t)||r}function iD(t,e,r){const n=si(e),i=Js(e),s=r==="fixed",o=Yo(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(n||!n&&!s)if((ro(e)!=="body"||Ff(i))&&(a=f0(e)),si(e)){const c=Yo(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=ES(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}const sD={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const s=r==="clippingAncestors"?function(c,f){const u=f.get(c);if(u)return u;let d=af(c).filter(w=>an(w)&&ro(w)!=="body"),v=null;const m=ri(c).position==="fixed";let y=m?ml(c):c;for(;an(y)&&!c0(y);){const w=ri(y),b=Vy(y);b||w.position!=="fixed"||(v=null),(m?!b&&!v:!b&&w.position==="static"&&v&&["absolute","fixed"].includes(v.position)||Ff(y)&&!b&&SS(c,y))?d=d.filter(x=>x!==y):v=w,y=ml(y)}return f.set(c,d),d}(e,this._c):[].concat(r),o=[...s,n],a=o[0],l=o.reduce((c,f)=>{const u=r3(e,f,i);return c.top=of(u.top,c.top),c.right=e3(u.right,c.right),c.bottom=e3(u.bottom,c.bottom),c.left=of(u.left,c.left),c},r3(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=si(r),s=Js(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((ro(r)!=="body"||Ff(s))&&(o=f0(r)),si(r))){const c=Yo(r);a=Xa(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}},isElement:an,getDimensions:function(t){return gS(t)},getOffsetParent:i3,getDocumentElement:Js,getScale:Xa,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||i3,s=this.getDimensions;return{reference:iD(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ri(t).direction==="rtl"};function oD(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=!0,animationFrame:a=!1}=n,l=i||s?[...an(t)?af(t):t.contextElement?af(t.contextElement):[],...af(e)]:[];l.forEach(d=>{const v=!an(d)&&d.toString().includes("V");!i||a&&!v||d.addEventListener("scroll",r,{passive:!0}),s&&d.addEventListener("resize",r)});let c,f=null;o&&(f=new ResizeObserver(()=>{r()}),an(t)&&!a&&f.observe(t),an(t)||!t.contextElement||a||f.observe(t.contextElement),f.observe(e));let u=a?Yo(t):null;return a&&function d(){const v=Yo(t);!u||v.x===u.x&&v.y===u.y&&v.width===u.width&&v.height===u.height||r(),u=v,c=requestAnimationFrame(d)}(),r(),()=>{var d;l.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),(d=f)==null||d.disconnect(),f=null,a&&cancelAnimationFrame(c)}}const aD=(t,e,r)=>{const n=new Map,i={platform:sD,...r},s={...i.platform,_c:n};return W$(t,e,{...i,platform:s})},lD=t=>{const{element:e,padding:r}=t;function n(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){return e&&n(e)?e.current!=null?Qw({element:e.current,padding:r}).fn(i):{}:e?Qw({element:e,padding:r}).fn(i):{}}}};var Sd=typeof document<"u"?g.useLayoutEffect:g.useEffect;function mh(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(!mh(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)&&!mh(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function AS(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function s3(t,e){const r=AS(t);return Math.round(e*r)/r}function o3(t){const e=g.useRef(t);return Sd(()=>{e.current=t}),e}function cD(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]=g.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=g.useState(n);mh(d,n)||v(n);const[m,y]=g.useState(null),[w,b]=g.useState(null),x=g.useCallback(R=>{R!=D.current&&(D.current=R,y(R))},[y]),S=g.useCallback(R=>{R!==$.current&&($.current=R,b(R))},[b]),A=s||m,_=o||w,D=g.useRef(null),$=g.useRef(null),O=g.useRef(f),H=o3(l),Y=o3(i),Q=g.useCallback(()=>{if(!D.current||!$.current)return;const R={placement:e,strategy:r,middleware:d};Y.current&&(R.platform=Y.current),aD(D.current,$.current,R).then(M=>{const T={...M,isPositioned:!0};re.current&&!mh(O.current,T)&&(O.current=T,ho.flushSync(()=>{u(T)}))})},[d,e,r,Y]);Sd(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[c]);const re=g.useRef(!1);Sd(()=>(re.current=!0,()=>{re.current=!1}),[]),Sd(()=>{if(A&&(D.current=A),_&&($.current=_),A&&_){if(H.current)return H.current(A,_,Q);Q()}},[A,_,Q,H]);const I=g.useMemo(()=>({reference:D,floating:$,setReference:x,setFloating:S}),[x,S]),h=g.useMemo(()=>({reference:A,floating:_}),[A,_]),C=g.useMemo(()=>{const R={position:r,left:0,top:0};if(!h.floating)return R;const M=s3(h.floating,f.x),T=s3(h.floating,f.y);return a?{...R,transform:"translate("+M+"px, "+T+"px)",...AS(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:T}},[r,a,h.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:Q,refs:I,elements:h,floatingStyles:C}),[f,Q,I,h,C])}const kS="Popper",[RS,Ml]=_r(kS),[fD,PS]=RS(kS),uD=t=>{const{__scopePopper:e,children:r}=t,[n,i]=g.useState(null);return g.createElement(fD,{scope:e,anchor:n,onAnchorChange:i},r)},dD="PopperAnchor",hD=g.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=PS(dD,r),o=g.useRef(null),a=At(e,o);return g.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:g.createElement(Je.div,me({},i,{ref:a}))}),TS="PopperContent",[vD,AZ]=RS(TS),yD=g.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:m=0,arrowPadding:y=0,collisionBoundary:w=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:S=!1,avoidCollisions:A=!0,onPlaced:_,...D}=t,$=PS(TS,f),[O,H]=g.useState(null),Y=At(e,ce=>H(ce)),[Q,re]=g.useState(null),I=Vm(Q),h=(r=I==null?void 0:I.width)!==null&&r!==void 0?r:0,C=(n=I==null?void 0:I.height)!==null&&n!==void 0?n:0,R=u+(v!=="center"?"-"+v:""),M=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},T=Array.isArray(w)?w:[w],N=T.length>0,L={padding:M,boundary:T.filter(pD),altBoundary:N},{refs:k,floatingStyles:p,placement:P,isPositioned:B,middlewareData:E}=cD({strategy:"fixed",placement:R,whileElementsMounted:oD,elements:{reference:$.anchor},middleware:[Z$({mainAxis:d+C,alignmentAxis:m}),A&&eD({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?tD():void 0,...L}),A&&J$({...L}),rD({...L,apply:({elements:ce,rects:xe,availableWidth:Er,availableHeight:je})=>{const{width:Ye,height:Zr}=xe.reference,Ie=ce.floating.style;Ie.setProperty("--radix-popper-available-width",`${Er}px`),Ie.setProperty("--radix-popper-available-height",`${je}px`),Ie.setProperty("--radix-popper-anchor-width",`${Ye}px`),Ie.setProperty("--radix-popper-anchor-height",`${Zr}px`)}}),Q&&lD({element:Q,padding:y}),mD({arrowWidth:h,arrowHeight:C}),S&&X$({strategy:"referenceHidden"})]}),[F,j]=_S(P),z=Tn(_);un(()=>{B&&(z==null||z())},[B,z]);const W=(i=E.arrow)===null||i===void 0?void 0:i.x,ne=(s=E.arrow)===null||s===void 0?void 0:s.y,X=((o=E.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[ee,_e]=g.useState();return un(()=>{O&&_e(window.getComputedStyle(O).zIndex)},[O]),g.createElement("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...p,transform:B?p.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(a=E.transformOrigin)===null||a===void 0?void 0:a.x,(l=E.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},g.createElement(vD,{scope:f,placedSide:F,onArrowChange:re,arrowX:W,arrowY:ne,shouldHideArrow:X},g.createElement(Je.div,me({"data-side":F,"data-align":j},D,{ref:Y,style:{...D.style,animation:B?void 0:"none",opacity:(c=E.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function pD(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,[m,y]=_S(a),w={start:"0%",center:"50%",end:"100%"}[y],b=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,x=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+v/2;let S="",A="";return m==="bottom"?(S=u?w:`${b}px`,A=`${-v}px`):m==="top"?(S=u?w:`${b}px`,A=`${l.floating.height+v}px`):m==="right"?(S=`${-v}px`,A=u?w:`${x}px`):m==="left"&&(S=`${l.floating.width+v}px`,A=u?w:`${x}px`),{data:{x:S,y:A}}}});function _S(t){const[e,r="center"]=t.split("-");return[e,r]}const gD=uD,xD=hD,bD=yD,MS=g.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?hT.createPortal(g.createElement(Je.div,me({},i,{ref:e})),n):null}),B1="rovingFocusGroup.onEntryFocus",wD={bubbles:!1,cancelable:!0},Xm="RovingFocusGroup",[qy,IS,ED]=l0(Xm),[CD,Il]=_r(Xm,[ED]),[SD,AD]=CD(Xm),kD=g.forwardRef((t,e)=>g.createElement(qy.Provider,{scope:t.__scopeRovingFocusGroup},g.createElement(qy.Slot,{scope:t.__scopeRovingFocusGroup},g.createElement(RD,me({},t,{ref:e}))))),RD=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=g.useRef(null),d=At(e,u),v=Km(s),[m=null,y]=Ko({prop:o,defaultProp:a,onChange:l}),[w,b]=g.useState(!1),x=Tn(c),S=IS(r),A=g.useRef(!1),[_,D]=g.useState(0);return g.useEffect(()=>{const $=u.current;if($)return $.addEventListener(B1,x),()=>$.removeEventListener(B1,x)},[x]),g.createElement(SD,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:m,onItemFocus:g.useCallback($=>y($),[y]),onItemShiftTab:g.useCallback(()=>b(!0),[]),onFocusableItemAdd:g.useCallback(()=>D($=>$+1),[]),onFocusableItemRemove:g.useCallback(()=>D($=>$-1),[])},g.createElement(Je.div,me({tabIndex:w||_===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...t.style},onMouseDown:Se(t.onMouseDown,()=>{A.current=!0}),onFocus:Se(t.onFocus,$=>{const O=!A.current;if($.target===$.currentTarget&&O&&!w){const H=new CustomEvent(B1,wD);if($.currentTarget.dispatchEvent(H),!H.defaultPrevented){const Y=S().filter(C=>C.focusable),Q=Y.find(C=>C.active),re=Y.find(C=>C.id===m),h=[Q,re,...Y].filter(Boolean).map(C=>C.ref.current);NS(h)}}A.current=!1}),onBlur:Se(t.onBlur,()=>b(!1))})))}),PD="RovingFocusGroupItem",TD=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=Qs(),l=s||a,c=AD(PD,r),f=c.currentTabStopId===l,u=IS(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return g.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),g.createElement(qy.ItemSlot,{scope:r,id:l,focusable:n,active:i},g.createElement(Je.span,me({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:Se(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:Se(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Se(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=ID(m,c.orientation,c.dir);if(y!==void 0){m.preventDefault();let b=u().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const x=b.indexOf(m.currentTarget);b=c.loop?ND(b,x+1):b.slice(x+1)}setTimeout(()=>NS(b))}})})))}),_D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function MD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function ID(t,e,r){const n=MD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _D[n]}function NS(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function ND(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const $D=kD,$S=TD;var DD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ha=new WeakMap,Wu=new WeakMap,Ku={},F1=0,DS=function(t){return t&&(t.host||DS(t.parentNode))},OD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=DS(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})},LD=function(t,e,r,n){var i=OD(e,Array.isArray(t)?t:[t]);Ku[r]||(Ku[r]=new WeakMap);var s=Ku[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),m=v!==null&&v!=="false",y=(ha.get(d)||0)+1,w=(s.get(d)||0)+1;ha.set(d,y),s.set(d,w),o.push(d),y===1&&m&&Wu.set(d,!0),w===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}})};return f(e),a.clear(),F1++,function(){o.forEach(function(u){var d=ha.get(u)-1,v=s.get(u)-1;ha.set(u,d),s.set(u,v),d||(Wu.has(u)||u.removeAttribute(n),Wu.delete(u)),v||u.removeAttribute(r)}),F1--,F1||(ha=new WeakMap,ha=new WeakMap,Wu=new WeakMap,Ku={})}},OS=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=e||DD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),LD(n,i,r,"aria-hidden")):function(){return null}},Ei=function(){return Ei=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return eO;var e=tO(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])}},nO=jS(),iO=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(FD,` { + */var Hw;function GN(){if(Hw)return lc;Hw=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 lc.Fragment=r,lc.jsx=o,lc.jsxs=o,lc}uS.exports=GN();var K=uS.exports;function WN(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 KN(t){var e=WN(t,"string");return typeof e=="symbol"?e:String(e)}function YN(t,e,r){return e=KN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gw(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 Ww(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},Lt=t=>{var e=r=>{var n=t.defaultClassName,i=Ww(Ww({},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)QN(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 Kw(t.variantClassNames,r=>Kw(r,n=>n.split(" ")[0]))}},e};Lt({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const wo=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return K.jsx(ie,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var JN=Lt({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Le=g.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=BN[n];return K.jsx(ie,{as:r,className:Xr(i,JN({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...v,...d,children:l})});var XN=Lt({defaultClassName:"_140wn8nf fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8ng",feature:"_140wn8nh fyvr11ph fyvr12nb",primary:"fyvr11pb fyvr12nb",glass:"fyvr11rb fyvr12rh",emphasis:"fyvr11rh fyvr12rh",danger:"fyvr11on fyvr12nb",text:"_140wn8nm _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12r5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12tt fyvr12uh",false:"fyvr12tz fyvr12ut fyvr12ur"},size:{xs:"_140wn8nr _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8ns _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nv"},hasLeftIcon:{true:"_140wn8nw"},hasRightIcon:{true:"_140wn8nx"},activeOutline:{light:"_140wn8ny",bold:"_140wn8nz"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n10"],[{iconOnly:!0,size:"sm"},"_140wn8n11"],[{iconOnly:!0,size:"md"},"_140wn8n12"],[{iconOnly:!0,size:"lg"},"_140wn8n13"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n14"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n16"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n17"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n19"]]});const Yr=g.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:m="fit",shape:y="circle",type:w="button",...x}=t,b=f!==void 0&&c!==void 0,S=u!==void 0&&c!==void 0,A=f!==void 0&&c===void 0,_=d==="xs"?"xs":"sm";return K.jsx(ie,{as:r,className:Xr(i,XN({activeOutline:n,disabled:s||l,hasLeftIcon:b,hasRightIcon:S,iconOnly:A,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:m,...x,children:A?K.jsx(f,{size:_}):K.jsxs(ie,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[K.jsxs(ie,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&K.jsx(f,{size:_}),K.jsx(Le,{children:c})]}),u&&K.jsx(u,{size:_})]})})});var ZN=Lt({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12ur fyvr12tz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mn fyvr12fh fyvr1215 fyvr128b"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});g.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return K.jsx(ie,{className:Xr(r,ZN({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 me(){return me=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>e$(r,e))}function At(...t){return g.useCallback(dS(...t),t)}function _r(t,e=[]){let r=[];function n(s,o){const a=g.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...m}=u,y=(d==null?void 0:d[t][l])||a,w=g.useMemo(()=>m,Object.values(m));return g.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[t][l])||a,m=g.useContext(v);if(m)return m;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=>g.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return g.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,t$(i,...e)]}function t$(...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 g.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function Se(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 Tn(t){const e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function Qo({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=r$({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=Tn(r),l=g.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 r$({defaultProp:t,onChange:e}){const r=g.useState(t),[n]=r,i=g.useRef(n),s=Tn(e);return g.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function Ym(t){const e=g.useRef({value:t,previous:t});return g.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const un=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function Qm(t){const[e,r]=g.useState(void 0);return un(()=>{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 n$(t,e){return g.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const po=t=>{const{present:e,children:r}=t,n=i$(e),i=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),s=At(n.ref,i.ref);return typeof r=="function"||n.isPresent?g.cloneElement(i,{ref:s}):null};po.displayName="Presence";function i$(t){const[e,r]=g.useState(),n=g.useRef({}),i=g.useRef(t),s=g.useRef("none"),o=t?"mounted":"unmounted",[a,l]=n$(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Yu(n.current);s.current=a==="mounted"?c:"none"},[a]),un(()=>{const c=n.current,f=i.current;if(f!==t){const d=s.current,v=Yu(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]),un(()=>{if(e){const c=u=>{const v=Yu(n.current).includes(u.animationName);u.target===e&&v&&vo.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=Yu(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:g.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Yu(t){return(t==null?void 0:t.animationName)||"none"}const pl=g.forwardRef((t,e)=>{const{children:r,...n}=t,i=g.Children.toArray(r),s=i.find(o$);if(s){const o=s.props.children,a=i.map(l=>l===s?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:l);return g.createElement(Gy,me({},n,{ref:e}),g.isValidElement(o)?g.cloneElement(o,void 0,a):null)}return g.createElement(Gy,me({},n,{ref:e}),r)});pl.displayName="Slot";const Gy=g.forwardRef((t,e)=>{const{children:r,...n}=t;return g.isValidElement(r)?g.cloneElement(r,{...a$(n,r.props),ref:e?dS(e,r.ref):r.ref}):g.Children.count(r)>1?g.Children.only(null):null});Gy.displayName="SlotClone";const s$=({children:t})=>g.createElement(g.Fragment,null,t);function o$(t){return g.isValidElement(t)&&t.type===s$}function a$(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 l$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Je=l$.reduce((t,e)=>{const r=g.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?pl:e;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(a,me({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Jm(t,e){t&&vo.flushSync(()=>t.dispatchEvent(e))}const hS="Checkbox",[c$,ZZ]=_r(hS),[f$,u$]=c$(hS),d$=g.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]=g.useState(null),v=At(e,S=>d(S)),m=g.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,x]=Qo({prop:i,defaultProp:s,onChange:c}),b=g.useRef(w);return g.useEffect(()=>{const S=u==null?void 0:u.form;if(S){const A=()=>x(b.current);return S.addEventListener("reset",A),()=>S.removeEventListener("reset",A)}},[u,x]),g.createElement(f$,{scope:r,state:w,disabled:a},g.createElement(Je.button,me({type:"button",role:"checkbox","aria-checked":jo(w)?"mixed":w,"aria-required":o,"data-state":vS(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:Se(t.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Se(t.onClick,S=>{x(A=>jo(A)?!0:!A),y&&(m.current=S.isPropagationStopped(),m.current||S.stopPropagation())})})),y&&g.createElement(y$,{control:u,bubbles:!m.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),h$="CheckboxIndicator",v$=g.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=u$(h$,r);return g.createElement(po,{present:n||jo(s.state)||s.state===!0},g.createElement(Je.span,me({"data-state":vS(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),y$=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=g.useRef(null),o=Ym(r),a=Qm(e);return g.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=jo(r),u.call(l,jo(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),g.createElement("input",me({type:"checkbox","aria-hidden":!0,defaultChecked:jo(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function jo(t){return t==="indeterminate"}function vS(t){return jo(t)?"indeterminate":t?"checked":"unchecked"}const p$=d$,m$=v$;var g$=Lt({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const _l=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?K.jsxs(ie,{flexDirection:"column",gap:"0.5",children:[r&&K.jsx(Le,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&K.jsx(Le,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return K.jsxs(ie,{as:"label",className:g$({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var u0=Lt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const x$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),yS=({size:t="sm",...e})=>K.jsx(ie,{as:x$,className:u0({size:t}),...e}),b$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.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"})}),pS=({size:t="sm",...e})=>K.jsx(ie,{as:b$,className:u0({size:t}),...e}),w$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.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"})}),Xm=({size:t="sm",...e})=>K.jsx(ie,{as:w$,className:u0({size:t}),...e}),E$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.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"})}),C$=({size:t="sm",...e})=>K.jsx(ie,{as:E$,className:u0({size:t}),...e});var S$=Lt({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11h0 fyvr11ko fyvr11jg fyvr12ut fyvr12ur fyvr12uj fyvr12tz fyvr12tv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),A$=Lt({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rh fyvr11rt",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const k$=({size:t="sm"})=>K.jsx(m$,{className:A$({size:t}),children:K.jsx(yS,{size:t})});g.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return K.jsx(_l,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:K.jsx(p$,{className:S$({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:K.jsx(k$,{})})})});cr.createContext(null);const R$=OE["useId".toString()]||(()=>{});let P$=0;function Xs(t){const[e,r]=g.useState(R$());return un(()=>{t||r(n=>n??String(P$++))},[t]),t||(e?`radix-${e}`:"")}const mS="Collapsible",[T$,eee]=_r(mS),[_$,Zm]=T$(mS),M$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=Qo({prop:n,defaultProp:i,onChange:o});return g.createElement(_$,{scope:r,disabled:s,contentId:Xs(),open:l,onOpenToggle:g.useCallback(()=>c(f=>!f),[c])},g.createElement(Je.div,me({"data-state":eg(l),"data-disabled":s?"":void 0},a,{ref:e})))}),I$="CollapsibleTrigger",N$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Zm(I$,r);return g.createElement(Je.button,me({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":eg(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:Se(t.onClick,i.onOpenToggle)}))}),gS="CollapsibleContent",$$=g.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Zm(gS,t.__scopeCollapsible);return g.createElement(po,{present:r||i.open},({present:s})=>g.createElement(D$,me({},n,{ref:e,present:s})))}),D$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Zm(gS,r),[a,l]=g.useState(n),c=g.useRef(null),f=At(e,c),u=g.useRef(0),d=u.current,v=g.useRef(0),m=v.current,y=o.open||a,w=g.useRef(y),x=g.useRef();return g.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),un(()=>{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 S=b.getBoundingClientRect();u.current=S.height,v.current=S.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(n)}},[o.open,n]),g.createElement(Je.div,me({"data-state":eg(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":m?`${m}px`:void 0,...t.style}}),y&&i)});function eg(t){return t?"open":"closed"}const O$=M$,L$=N$,B$=$$;var Yw="64px",F$="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",j$="_4j62fl5",z$="_4j62fl0",U$="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12tz fyvr11n2";const cc=t=>{const{className:e,children:r,defaultOpen:n,onOpenChange:i,label:s,...o}=t,[a,l]=g.useState(n),c=f=>{l(f),i==null||i(f)};return K.jsx(O$,{defaultOpen:n,onOpenChange:c,asChild:!0,children:K.jsxs(ie,{as:Xa.div,className:Xr(e,z$),initial:{height:n?"auto":Yw},animate:{height:a?"auto":Yw},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...o,children:[K.jsxs(L$,{className:U$,children:[K.jsx(Le,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:s}),K.jsx(ie,{as:Xa.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:n?180:0},animate:{rotate:a?180:0},transition:{ease:"linear",duration:.1},children:K.jsx(pS,{className:j$,color:"text50"})})]}),K.jsx(lS,{children:a&&K.jsx(B$,{className:F$,asChild:!0,forceMount:!0,children:K.jsx(Xa.div,{initial:{opacity:n?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function d0(t){const e=t+"CollectionProvider",[r,n]=_r(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:m,children:y}=v,w=cr.useRef(null),x=cr.useRef(new Map).current;return cr.createElement(i,{scope:m,itemMap:x,collectionRef:w},y)},a=t+"CollectionSlot",l=cr.forwardRef((v,m)=>{const{scope:y,children:w}=v,x=s(a,y),b=At(m,x.collectionRef);return cr.createElement(pl,{ref:b},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=cr.forwardRef((v,m)=>{const{scope:y,children:w,...x}=v,b=cr.useRef(null),S=At(m,b),A=s(c,y);return cr.useEffect(()=>(A.itemMap.set(b,{ref:b,...x}),()=>void A.itemMap.delete(b))),cr.createElement(pl,{[f]:"",ref:S},w)});function d(v){const m=s(t+"CollectionConsumer",v);return cr.useCallback(()=>{const w=m.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((A,_)=>x.indexOf(A.ref.current)-x.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const V$=g.createContext(void 0);function tg(t){const e=g.useContext(V$);return t||e||"ltr"}function q$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t);g.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const Wy="dismissableLayer.update",H$="dismissableLayer.pointerDownOutside",G$="dismissableLayer.focusOutside";let Qw;const W$=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rg=g.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=g.useContext(W$),[u,d]=g.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=g.useState({}),y=At(e,O=>d(O)),w=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(x),S=u?w.indexOf(u):-1,A=f.layersWithOutsidePointerEventsDisabled.size>0,_=S>=b,D=K$(O=>{const H=O.target,Y=[...f.branches].some(Q=>Q.contains(H));!_||Y||(s==null||s(O),a==null||a(O),O.defaultPrevented||l==null||l())},v),$=Y$(O=>{const H=O.target;[...f.branches].some(Q=>Q.contains(H))||(o==null||o(O),a==null||a(O),O.defaultPrevented||l==null||l())},v);return q$(O=>{S===f.layers.size-1&&(i==null||i(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},v),g.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Qw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),Jw(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Qw)}},[u,v,n,f]),g.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),Jw())},[u,f]),g.useEffect(()=>{const O=()=>m({});return document.addEventListener(Wy,O),()=>document.removeEventListener(Wy,O)},[]),g.createElement(Je.div,me({},c,{ref:y,style:{pointerEvents:A?_?"auto":"none":void 0,...t.style},onFocusCapture:Se(t.onFocusCapture,$.onFocusCapture),onBlurCapture:Se(t.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Se(t.onPointerDownCapture,D.onPointerDownCapture)}))});function K$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t),n=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){xS(H$,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()}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 Y$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t),n=g.useRef(!1);return g.useEffect(()=>{const i=s=>{s.target&&!n.current&&xS(G$,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 Jw(){const t=new CustomEvent(Wy);document.dispatchEvent(t)}function xS(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?Jm(i,s):i.dispatchEvent(s)}const Q$=rg;let j1=0;function bS(){g.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:Xw()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:Xw()),j1++,()=>{j1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),j1--}},[])}function Xw(){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 z1="focusScope.autoFocusOnMount",U1="focusScope.autoFocusOnUnmount",Zw={bubbles:!1,cancelable:!0},wS=g.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=g.useState(null),c=Tn(i),f=Tn(s),u=g.useRef(null),d=At(e,y=>l(y)),v=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let y=function(S){if(v.paused||!a)return;const A=S.target;a.contains(A)?u.current=A:Ms(u.current,{select:!0})},w=function(S){if(v.paused||!a)return;const A=S.relatedTarget;A!==null&&(a.contains(A)||Ms(u.current,{select:!0}))},x=function(S){const A=document.activeElement;for(const _ of S)_.removedNodes.length>0&&(a!=null&&a.contains(A)||Ms(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]),g.useEffect(()=>{if(a){t3.add(v);const y=document.activeElement;if(!a.contains(y)){const x=new CustomEvent(z1,Zw);a.addEventListener(z1,c),a.dispatchEvent(x),x.defaultPrevented||(J$(rD(ES(a)),{select:!0}),document.activeElement===y&&Ms(a))}return()=>{a.removeEventListener(z1,c),setTimeout(()=>{const x=new CustomEvent(U1,Zw);a.addEventListener(U1,f),a.dispatchEvent(x),x.defaultPrevented||Ms(y??document.body,{select:!0}),a.removeEventListener(U1,f),t3.remove(v)},0)}}},[a,c,f,v]);const m=g.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,[S,A]=X$(b);S&&A?!y.shiftKey&&x===A?(y.preventDefault(),r&&Ms(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&Ms(A,{select:!0})):x===b&&y.preventDefault()}},[r,n,v.paused]);return g.createElement(Je.div,me({tabIndex:-1},o,{ref:d,onKeyDown:m}))});function J$(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ms(n,{select:e}),document.activeElement!==r)return}function X$(t){const e=ES(t),r=e3(e,t),n=e3(e.reverse(),t);return[r,n]}function ES(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 e3(t,e){for(const r of t)if(!Z$(r,{upTo:e}))return r}function Z$(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 eD(t){return t instanceof HTMLInputElement&&"select"in t}function Ms(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&eD(t)&&e&&t.select()}}const t3=tD();function tD(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=r3(t,e),t.unshift(e)},remove(e){var r;t=r3(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function r3(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function rD(t){return t.filter(e=>e.tagName!=="A")}function Ml(t){return t.split("-")[1]}function ng(t){return t==="y"?"height":"width"}function cs(t){return t.split("-")[0]}function la(t){return["top","bottom"].includes(cs(t))?"x":"y"}function n3(t,e,r){let{reference:n,floating:i}=t;const s=n.x+n.width/2-i.width/2,o=n.y+n.height/2-i.height/2,a=la(e),l=ng(a),c=n[l]/2-i[l]/2,f=a==="x";let u;switch(cs(e)){case"top":u={x:s,y:n.y-i.height};break;case"bottom":u={x:s,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:o};break;case"left":u={x:n.x-i.width,y:o};break;default:u={x:n.x,y:n.y}}switch(Ml(e)){case"start":u[a]-=c*(r&&f?-1:1);break;case"end":u[a]+=c*(r&&f?-1:1)}return u}const nD=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}=n3(c,n,l),d=n,v={},m=0;for(let y=0;y({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:i,y:s,placement:o,rects:a,platform:l,elements:c}=e;if(r==null)return{};const f=CS(n),u={x:i,y:s},d=la(o),v=ng(d),m=await l.getDimensions(r),y=d==="y",w=y?"top":"left",x=y?"bottom":"right",b=y?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[d]-u[d]-a.floating[v],A=u[d]-a.reference[d],_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let D=_?_[b]:0;D&&await(l.isElement==null?void 0:l.isElement(_))||(D=c.floating[b]||a.floating[v]);const $=S/2-A/2,O=f[w],H=D-m[v]-f[x],Y=D/2-m[v]/2+$,Q=Yy(O,Y,H),re=Ml(o)!=null&&Y!=Q&&a.reference[v]/2-(Yt.concat(e,e+"-start",e+"-end"),[]);const iD={left:"right",right:"left",bottom:"top",top:"bottom"};function gh(t){return t.replace(/left|right|bottom|top/g,e=>iD[e])}function sD(t,e,r){r===void 0&&(r=!1);const n=Ml(t),i=la(t),s=ng(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=gh(o)),{main:o,cross:gh(o)}}const oD={start:"end",end:"start"};function V1(t){return t.replace(/start|end/g,e=>oD[e])}const aD=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:i,rects:s,initialPlacement:o,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=t,w=cs(n),x=cs(o)===o,b=await(a.isRTL==null?void 0:a.isRTL(l.floating)),S=u||(x||!m?[gh(o)]:function(Q){const re=gh(Q);return[V1(Q),re,V1(re)]}(o));u||v==="none"||S.push(...function(Q,re,I,h){const C=Ml(Q);let R=function(M,T,N){const L=["left","right"],k=["right","left"],p=["top","bottom"],P=["bottom","top"];switch(M){case"top":case"bottom":return N?T?k:L:T?L:k;case"left":case"right":return T?p:P;default:return[]}}(cs(Q),I==="start",h);return C&&(R=R.map(M=>M+"-"+C),re&&(R=R.concat(R.map(V1)))),R}(o,m,v,b));const A=[o,...S],_=await Ff(e,y),D=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&D.push(_[w]),f){const{main:Q,cross:re}=sD(n,s,b);D.push(_[Q],_[re])}if($=[...$,{placement:n,overflows:D}],!D.every(Q=>Q<=0)){var O,H;const Q=(((O=i.flip)==null?void 0:O.index)||0)+1,re=A[Q];if(re)return{data:{index:Q,overflows:$},reset:{placement:re}};let I=(H=$.filter(h=>h.overflows[0]<=0).sort((h,C)=>h.overflows[1]-C.overflows[1])[0])==null?void 0:H.placement;if(!I)switch(d){case"bestFit":{var Y;const h=(Y=$.map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:Y[0];h&&(I=h);break}case"initialPlacement":I=o}if(n!==I)return{reset:{placement:I}}}return{}}}};function s3(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function o3(t){return SS.some(e=>t[e]>=0)}const lD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:r="referenceHidden",...n}=t,{rects:i}=e;switch(r){case"referenceHidden":{const s=s3(await Ff(e,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:o3(s)}}}case"escaped":{const s=s3(await Ff(e,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:o3(s)}}}default:return{}}}}},cD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await async function(s,o){const{placement:a,platform:l,elements:c}=s,f=await(l.isRTL==null?void 0:l.isRTL(c.floating)),u=cs(a),d=Ml(a),v=la(a)==="x",m=["left","top"].includes(u)?-1:1,y=f&&v?-1:1,w=typeof o=="function"?o(s):o;let{mainAxis:x,crossAxis:b,alignmentAxis:S}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return d&&typeof S=="number"&&(b=d==="end"?-1*S:S),v?{x:b*y,y:x*m}:{x:x*m,y:b*y}}(e,t);return{x:r+i.x,y:n+i.y,data:i}}}};function AS(t){return t==="x"?"y":"x"}const fD=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}=t,c={x:r,y:n},f=await Ff(e,l),u=la(cs(i)),d=AS(u);let v=c[u],m=c[d];if(s){const w=u==="y"?"bottom":"right";v=Yy(v+f[u==="y"?"top":"left"],v,v-f[w])}if(o){const w=d==="y"?"bottom":"right";m=Yy(m+f[d==="y"?"top":"left"],m,m-f[w])}const y=a.fn({...e,[u]:v,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},uD=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}=t,f={x:r,y:n},u=la(i),d=AS(u);let v=f[u],m=f[d];const y=typeof a=="function"?a(e):a,w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const S=u==="y"?"height":"width",A=s.reference[u]-s.floating[S]+w.mainAxis,_=s.reference[u]+s.reference[S]-w.mainAxis;v_&&(v=_)}if(c){var x,b;const S=u==="y"?"width":"height",A=["top","left"].includes(cs(i)),_=s.reference[d]-s.floating[S]+(A&&((x=o.offset)==null?void 0:x[d])||0)+(A?0:w.crossAxis),D=s.reference[d]+s.reference[S]+(A?0:((b=o.offset)==null?void 0:b[d])||0)-(A?w.crossAxis:0);m<_?m=_:m>D&&(m=D)}return{[u]:v,[d]:m}}}},dD=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}=t,l=await Ff(e,a),c=cs(r),f=Ml(r),u=la(r)==="x",{width:d,height:v}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,m=f==="end"?"top":"bottom");const w=v-l[m],x=d-l[y],b=!e.middlewareData.shift;let S=w,A=x;if(u){const D=d-l.left-l.right;A=f||b?Ky(x,D):D}else{const D=v-l.top-l.bottom;S=f||b?Ky(w,D):D}if(b&&!f){const D=Po(l.left,0),$=Po(l.right,0),O=Po(l.top,0),H=Po(l.bottom,0);u?A=d-2*(D!==0||$!==0?D+$:Po(l.left,l.right)):S=v-2*(O!==0||H!==0?O+H:Po(l.top,l.bottom))}await o({...e,availableWidth:A,availableHeight:S});const _=await i.getDimensions(s.floating);return d!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function kn(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ri(t){return kn(t).getComputedStyle(t)}function kS(t){return t instanceof kn(t).Node}function io(t){return kS(t)?(t.nodeName||"").toLowerCase():""}function si(t){return t instanceof kn(t).HTMLElement}function an(t){return t instanceof kn(t).Element}function a3(t){return typeof ShadowRoot>"u"?!1:t instanceof kn(t).ShadowRoot||t instanceof ShadowRoot}function jf(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=ri(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function hD(t){return["table","td","th"].includes(io(t))}function Qy(t){const e=ig(),r=ri(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ig(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function h0(t){return["html","body","#document"].includes(io(t))}const l3=Math.min,af=Math.max,xh=Math.round;function RS(t){const e=ri(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=si(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=xh(r)!==s||xh(n)!==o;return a&&(r=s,n=o),{width:r,height:n,fallback:a}}function PS(t){return an(t)?t:t.contextElement}const TS={x:1,y:1};function Za(t){const e=PS(t);if(!si(e))return TS;const r=e.getBoundingClientRect(),{width:n,height:i,fallback:s}=RS(e);let o=(s?xh(r.width):r.width)/n,a=(s?xh(r.height):r.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const c3={x:0,y:0};function _S(t,e,r){var n,i;if(e===void 0&&(e=!0),!ig())return c3;const s=t?kn(t):window;return!r||e&&r!==s?c3:{x:((n=s.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=s.visualViewport)==null?void 0:i.offsetTop)||0}}function Jo(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=PS(t);let o=TS;e&&(n?an(n)&&(o=Za(n)):o=Za(t));const a=_S(s,r,n);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=kn(s),v=n&&an(n)?kn(n):n;let m=d.frameElement;for(;m&&n&&v!==d;){const y=Za(m),w=m.getBoundingClientRect(),x=getComputedStyle(m);w.x+=(m.clientLeft+parseFloat(x.paddingLeft))*y.x,w.y+=(m.clientTop+parseFloat(x.paddingTop))*y.y,l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=w.x,c+=w.y,m=kn(m).frameElement}}return mh({width:f,height:u,x:l,y:c})}function Zs(t){return((kS(t)?t.ownerDocument:t.document)||window.document).documentElement}function v0(t){return an(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function MS(t){return Jo(Zs(t)).left+v0(t).scrollLeft}function ml(t){if(io(t)==="html")return t;const e=t.assignedSlot||t.parentNode||a3(t)&&t.host||Zs(t);return a3(e)?e.host:e}function IS(t){const e=ml(t);return h0(e)?e.ownerDocument.body:si(e)&&jf(e)?e:IS(e)}function lf(t,e){var r;e===void 0&&(e=[]);const n=IS(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),s=kn(n);return i?e.concat(s,s.visualViewport||[],jf(n)?n:[]):e.concat(n,lf(n))}function f3(t,e,r){let n;if(e==="viewport")n=function(i,s){const o=kn(i),a=Zs(i),l=o.visualViewport;let c=a.clientWidth,f=a.clientHeight,u=0,d=0;if(l){c=l.width,f=l.height;const v=ig();(!v||v&&s==="fixed")&&(u=l.offsetLeft,d=l.offsetTop)}return{width:c,height:f,x:u,y:d}}(t,r);else if(e==="document")n=function(i){const s=Zs(i),o=v0(i),a=i.ownerDocument.body,l=af(s.scrollWidth,s.clientWidth,a.scrollWidth,a.clientWidth),c=af(s.scrollHeight,s.clientHeight,a.scrollHeight,a.clientHeight);let f=-o.scrollLeft+MS(i);const u=-o.scrollTop;return ri(a).direction==="rtl"&&(f+=af(s.clientWidth,a.clientWidth)-l),{width:l,height:c,x:f,y:u}}(Zs(t));else if(an(e))n=function(i,s){const o=Jo(i,!0,s==="fixed"),a=o.top+i.clientTop,l=o.left+i.clientLeft,c=si(i)?Za(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:a*c.y}}(e,r);else{const i=_S(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return mh(n)}function NS(t,e){const r=ml(t);return!(r===e||!an(r)||h0(r))&&(ri(r).position==="fixed"||NS(r,e))}function u3(t,e){return si(t)&&ri(t).position!=="fixed"?e?e(t):t.offsetParent:null}function d3(t,e){const r=kn(t);if(!si(t))return r;let n=u3(t,e);for(;n&&hD(n)&&ri(n).position==="static";)n=u3(n,e);return n&&(io(n)==="html"||io(n)==="body"&&ri(n).position==="static"&&!Qy(n))?r:n||function(i){let s=ml(i);for(;si(s)&&!h0(s);){if(Qy(s))return s;s=ml(s)}return null}(t)||r}function vD(t,e,r){const n=si(e),i=Zs(e),s=r==="fixed",o=Jo(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(n||!n&&!s)if((io(e)!=="body"||jf(i))&&(a=v0(e)),si(e)){const c=Jo(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=MS(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}const yD={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const s=r==="clippingAncestors"?function(c,f){const u=f.get(c);if(u)return u;let d=lf(c).filter(w=>an(w)&&io(w)!=="body"),v=null;const m=ri(c).position==="fixed";let y=m?ml(c):c;for(;an(y)&&!h0(y);){const w=ri(y),x=Qy(y);x||w.position!=="fixed"||(v=null),(m?!x&&!v:!x&&w.position==="static"&&v&&["absolute","fixed"].includes(v.position)||jf(y)&&!x&&NS(c,y))?d=d.filter(b=>b!==y):v=w,y=ml(y)}return f.set(c,d),d}(e,this._c):[].concat(r),o=[...s,n],a=o[0],l=o.reduce((c,f)=>{const u=f3(e,f,i);return c.top=af(u.top,c.top),c.right=l3(u.right,c.right),c.bottom=l3(u.bottom,c.bottom),c.left=af(u.left,c.left),c},f3(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=si(r),s=Zs(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((io(r)!=="body"||jf(s))&&(o=v0(r)),si(r))){const c=Jo(r);a=Za(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}},isElement:an,getDimensions:function(t){return RS(t)},getOffsetParent:d3,getDocumentElement:Zs,getScale:Za,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||d3,s=this.getDimensions;return{reference:vD(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ri(t).direction==="rtl"};function pD(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=!0,animationFrame:a=!1}=n,l=i||s?[...an(t)?lf(t):t.contextElement?lf(t.contextElement):[],...lf(e)]:[];l.forEach(d=>{const v=!an(d)&&d.toString().includes("V");!i||a&&!v||d.addEventListener("scroll",r,{passive:!0}),s&&d.addEventListener("resize",r)});let c,f=null;o&&(f=new ResizeObserver(()=>{r()}),an(t)&&!a&&f.observe(t),an(t)||!t.contextElement||a||f.observe(t.contextElement),f.observe(e));let u=a?Jo(t):null;return a&&function d(){const v=Jo(t);!u||v.x===u.x&&v.y===u.y&&v.width===u.width&&v.height===u.height||r(),u=v,c=requestAnimationFrame(d)}(),r(),()=>{var d;l.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),(d=f)==null||d.disconnect(),f=null,a&&cancelAnimationFrame(c)}}const mD=(t,e,r)=>{const n=new Map,i={platform:yD,...r},s={...i.platform,_c:n};return nD(t,e,{...i,platform:s})},gD=t=>{const{element:e,padding:r}=t;function n(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){return e&&n(e)?e.current!=null?i3({element:e.current,padding:r}).fn(i):{}:e?i3({element:e,padding:r}).fn(i):{}}}};var Rd=typeof document<"u"?g.useLayoutEffect:g.useEffect;function bh(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(!bh(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)&&!bh(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function $S(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function h3(t,e){const r=$S(t);return Math.round(e*r)/r}function v3(t){const e=g.useRef(t);return Rd(()=>{e.current=t}),e}function xD(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]=g.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=g.useState(n);bh(d,n)||v(n);const[m,y]=g.useState(null),[w,x]=g.useState(null),b=g.useCallback(R=>{R!=D.current&&(D.current=R,y(R))},[y]),S=g.useCallback(R=>{R!==$.current&&($.current=R,x(R))},[x]),A=s||m,_=o||w,D=g.useRef(null),$=g.useRef(null),O=g.useRef(f),H=v3(l),Y=v3(i),Q=g.useCallback(()=>{if(!D.current||!$.current)return;const R={placement:e,strategy:r,middleware:d};Y.current&&(R.platform=Y.current),mD(D.current,$.current,R).then(M=>{const T={...M,isPositioned:!0};re.current&&!bh(O.current,T)&&(O.current=T,vo.flushSync(()=>{u(T)}))})},[d,e,r,Y]);Rd(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[c]);const re=g.useRef(!1);Rd(()=>(re.current=!0,()=>{re.current=!1}),[]),Rd(()=>{if(A&&(D.current=A),_&&($.current=_),A&&_){if(H.current)return H.current(A,_,Q);Q()}},[A,_,Q,H]);const I=g.useMemo(()=>({reference:D,floating:$,setReference:b,setFloating:S}),[b,S]),h=g.useMemo(()=>({reference:A,floating:_}),[A,_]),C=g.useMemo(()=>{const R={position:r,left:0,top:0};if(!h.floating)return R;const M=h3(h.floating,f.x),T=h3(h.floating,f.y);return a?{...R,transform:"translate("+M+"px, "+T+"px)",...$S(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:T}},[r,a,h.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:Q,refs:I,elements:h,floatingStyles:C}),[f,Q,I,h,C])}const DS="Popper",[OS,Il]=_r(DS),[bD,LS]=OS(DS),wD=t=>{const{__scopePopper:e,children:r}=t,[n,i]=g.useState(null);return g.createElement(bD,{scope:e,anchor:n,onAnchorChange:i},r)},ED="PopperAnchor",CD=g.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=LS(ED,r),o=g.useRef(null),a=At(e,o);return g.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:g.createElement(Je.div,me({},i,{ref:a}))}),BS="PopperContent",[SD,tee]=OS(BS),AD=g.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:m=0,arrowPadding:y=0,collisionBoundary:w=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:S=!1,avoidCollisions:A=!0,onPlaced:_,...D}=t,$=LS(BS,f),[O,H]=g.useState(null),Y=At(e,ce=>H(ce)),[Q,re]=g.useState(null),I=Qm(Q),h=(r=I==null?void 0:I.width)!==null&&r!==void 0?r:0,C=(n=I==null?void 0:I.height)!==null&&n!==void 0?n:0,R=u+(v!=="center"?"-"+v:""),M=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},T=Array.isArray(w)?w:[w],N=T.length>0,L={padding:M,boundary:T.filter(kD),altBoundary:N},{refs:k,floatingStyles:p,placement:P,isPositioned:B,middlewareData:E}=xD({strategy:"fixed",placement:R,whileElementsMounted:pD,elements:{reference:$.anchor},middleware:[cD({mainAxis:d+C,alignmentAxis:m}),A&&fD({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?uD():void 0,...L}),A&&aD({...L}),dD({...L,apply:({elements:ce,rects:xe,availableWidth:Er,availableHeight:je})=>{const{width:Ye,height:Zr}=xe.reference,Ie=ce.floating.style;Ie.setProperty("--radix-popper-available-width",`${Er}px`),Ie.setProperty("--radix-popper-available-height",`${je}px`),Ie.setProperty("--radix-popper-anchor-width",`${Ye}px`),Ie.setProperty("--radix-popper-anchor-height",`${Zr}px`)}}),Q&&gD({element:Q,padding:y}),RD({arrowWidth:h,arrowHeight:C}),S&&lD({strategy:"referenceHidden"})]}),[F,j]=FS(P),z=Tn(_);un(()=>{B&&(z==null||z())},[B,z]);const W=(i=E.arrow)===null||i===void 0?void 0:i.x,ne=(s=E.arrow)===null||s===void 0?void 0:s.y,X=((o=E.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[ee,_e]=g.useState();return un(()=>{O&&_e(window.getComputedStyle(O).zIndex)},[O]),g.createElement("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...p,transform:B?p.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(a=E.transformOrigin)===null||a===void 0?void 0:a.x,(l=E.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},g.createElement(SD,{scope:f,placedSide:F,onArrowChange:re,arrowX:W,arrowY:ne,shouldHideArrow:X},g.createElement(Je.div,me({"data-side":F,"data-align":j},D,{ref:Y,style:{...D.style,animation:B?void 0:"none",opacity:(c=E.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function kD(t){return t!==null}const RD=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,[m,y]=FS(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 S="",A="";return m==="bottom"?(S=u?w:`${x}px`,A=`${-v}px`):m==="top"?(S=u?w:`${x}px`,A=`${l.floating.height+v}px`):m==="right"?(S=`${-v}px`,A=u?w:`${b}px`):m==="left"&&(S=`${l.floating.width+v}px`,A=u?w:`${b}px`),{data:{x:S,y:A}}}});function FS(t){const[e,r="center"]=t.split("-");return[e,r]}const PD=wD,TD=CD,_D=AD,jS=g.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?CT.createPortal(g.createElement(Je.div,me({},i,{ref:e})),n):null}),q1="rovingFocusGroup.onEntryFocus",MD={bubbles:!1,cancelable:!0},sg="RovingFocusGroup",[Jy,zS,ID]=d0(sg),[ND,Nl]=_r(sg,[ID]),[$D,DD]=ND(sg),OD=g.forwardRef((t,e)=>g.createElement(Jy.Provider,{scope:t.__scopeRovingFocusGroup},g.createElement(Jy.Slot,{scope:t.__scopeRovingFocusGroup},g.createElement(LD,me({},t,{ref:e}))))),LD=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=g.useRef(null),d=At(e,u),v=tg(s),[m=null,y]=Qo({prop:o,defaultProp:a,onChange:l}),[w,x]=g.useState(!1),b=Tn(c),S=zS(r),A=g.useRef(!1),[_,D]=g.useState(0);return g.useEffect(()=>{const $=u.current;if($)return $.addEventListener(q1,b),()=>$.removeEventListener(q1,b)},[b]),g.createElement($D,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:m,onItemFocus:g.useCallback($=>y($),[y]),onItemShiftTab:g.useCallback(()=>x(!0),[]),onFocusableItemAdd:g.useCallback(()=>D($=>$+1),[]),onFocusableItemRemove:g.useCallback(()=>D($=>$-1),[])},g.createElement(Je.div,me({tabIndex:w||_===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...t.style},onMouseDown:Se(t.onMouseDown,()=>{A.current=!0}),onFocus:Se(t.onFocus,$=>{const O=!A.current;if($.target===$.currentTarget&&O&&!w){const H=new CustomEvent(q1,MD);if($.currentTarget.dispatchEvent(H),!H.defaultPrevented){const Y=S().filter(C=>C.focusable),Q=Y.find(C=>C.active),re=Y.find(C=>C.id===m),h=[Q,re,...Y].filter(Boolean).map(C=>C.ref.current);US(h)}}A.current=!1}),onBlur:Se(t.onBlur,()=>x(!1))})))}),BD="RovingFocusGroupItem",FD=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=Xs(),l=s||a,c=DD(BD,r),f=c.currentTabStopId===l,u=zS(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return g.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),g.createElement(Jy.ItemSlot,{scope:r,id:l,focusable:n,active:i},g.createElement(Je.span,me({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:Se(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:Se(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Se(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=UD(m,c.orientation,c.dir);if(y!==void 0){m.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(m.currentTarget);x=c.loop?VD(x,b+1):x.slice(b+1)}setTimeout(()=>US(x))}})})))}),jD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function UD(t,e,r){const n=zD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return jD[n]}function US(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function VD(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const qD=OD,VS=FD;var HD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},va=new WeakMap,Qu=new WeakMap,Ju={},H1=0,qS=function(t){return t&&(t.host||qS(t.parentNode))},GD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=qS(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})},WD=function(t,e,r,n){var i=GD(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),m=v!==null&&v!=="false",y=(va.get(d)||0)+1,w=(s.get(d)||0)+1;va.set(d,y),s.set(d,w),o.push(d),y===1&&m&&Qu.set(d,!0),w===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}})};return f(e),a.clear(),H1++,function(){o.forEach(function(u){var d=va.get(u)-1,v=s.get(u)-1;va.set(u,d),s.set(u,v),d||(Qu.has(u)||u.removeAttribute(n),Qu.delete(u)),v||u.removeAttribute(r)}),H1--,H1||(va=new WeakMap,va=new WeakMap,Qu=new WeakMap,Ju={})}},HS=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=e||HD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),WD(n,i,r,"aria-hidden")):function(){return null}},Ci=function(){return Ci=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return fO;var e=uO(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])}},hO=YS(),vO=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(YD,` { overflow: hidden `).concat(n,`; padding-right: `).concat(a,"px ").concat(n,`; } @@ -71,34 +71,34 @@ Error generating stack: `+s.message+` `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` } - .`).concat(Ad,` { + .`).concat(Pd,` { right: `).concat(a,"px ").concat(n,`; } - .`).concat(kd,` { + .`).concat(Td,` { margin-right: `).concat(a,"px ").concat(n,`; } - .`).concat(Ad," .").concat(Ad,` { + .`).concat(Pd," .").concat(Pd,` { right: 0 `).concat(n,`; } - .`).concat(kd," .").concat(kd,` { + .`).concat(Td," .").concat(Td,` { margin-right: 0 `).concat(n,`; } body { - `).concat(jD,": ").concat(a,`px; + `).concat(QD,": ").concat(a,`px; } -`)},sO=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=g.useMemo(function(){return rO(i)},[i]);return g.createElement(nO,{styles:iO(s,!e,i,r?"":"!important")})},Hy=!1;if(typeof window<"u")try{var Yu=Object.defineProperty({},"passive",{get:function(){return Hy=!0,!0}});window.addEventListener("test",Yu,Yu),window.removeEventListener("test",Yu,Yu)}catch{Hy=!1}var va=Hy?{passive:!1}:!1,oO=function(t){return t.tagName==="TEXTAREA"},zS=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!oO(t)&&r[e]==="visible")},aO=function(t){return zS(t,"overflowY")},lO=function(t){return zS(t,"overflowX")},a3=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=US(t,r);if(n){var i=VS(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},cO=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},fO=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},US=function(t,e){return t==="v"?aO(e):lO(e)},VS=function(t,e){return t==="v"?cO(e):fO(e)},uO=function(t,e){return t==="h"&&e==="rtl"?-1:1},dO=function(t,e,r,n,i){var s=uO(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=VS(t,a),m=v[0],y=v[1],w=v[2],b=y-w-s*m;(m||b)&&US(t,a)&&(u+=b,d+=m),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(i&&u===0||!i&&o>u)||!f&&(i&&d===0||!i&&-o>d))&&(c=!0),c},Qu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},l3=function(t){return[t.deltaX,t.deltaY]},c3=function(t){return t&&"current"in t?t.current:t},hO=function(t,e){return t[0]===e[0]&&t[1]===e[1]},vO=function(t){return` +`)},yO=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=g.useMemo(function(){return dO(i)},[i]);return g.createElement(hO,{styles:vO(s,!e,i,r?"":"!important")})},Xy=!1;if(typeof window<"u")try{var Xu=Object.defineProperty({},"passive",{get:function(){return Xy=!0,!0}});window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,Xu)}catch{Xy=!1}var ya=Xy?{passive:!1}:!1,pO=function(t){return t.tagName==="TEXTAREA"},QS=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!pO(t)&&r[e]==="visible")},mO=function(t){return QS(t,"overflowY")},gO=function(t){return QS(t,"overflowX")},y3=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=JS(t,r);if(n){var i=XS(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},xO=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},bO=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},JS=function(t,e){return t==="v"?mO(e):gO(e)},XS=function(t,e){return t==="v"?xO(e):bO(e)},wO=function(t,e){return t==="h"&&e==="rtl"?-1:1},EO=function(t,e,r,n,i){var s=wO(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=XS(t,a),m=v[0],y=v[1],w=v[2],x=y-w-s*m;(m||x)&&JS(t,a)&&(u+=x,d+=m),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(i&&u===0||!i&&o>u)||!f&&(i&&d===0||!i&&-o>d))&&(c=!0),c},Zu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},p3=function(t){return[t.deltaX,t.deltaY]},m3=function(t){return t&&"current"in t?t.current:t},CO=function(t,e){return t[0]===e[0]&&t[1]===e[1]},SO=function(t){return` .block-interactivity-`.concat(t,` {pointer-events: none;} .allow-interactivity-`).concat(t,` {pointer-events: all;} -`)},yO=0,ya=[];function pO(t){var e=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),i=g.useState(yO++)[0],s=g.useState(function(){return jS()})[0],o=g.useRef(t);g.useEffect(function(){o.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=BD([t.lockRef.current],(t.shards||[]).map(c3),!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=g.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var b=Qu(y),x=r.current,S="deltaX"in y?y.deltaX:x[0]-b[0],A="deltaY"in y?y.deltaY:x[1]-b[1],_,D=y.target,$=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in y&&$==="h"&&D.type==="range")return!1;var O=a3($,D);if(!O)return!0;if(O?_=$:(_=$==="v"?"h":"v",O=a3($,D)),!O)return!1;if(!n.current&&"changedTouches"in y&&(S||A)&&(n.current=_),!_)return!0;var H=n.current||_;return dO(H,w,y,H==="h"?S:A,!0)},[]),l=g.useCallback(function(y){var w=y;if(!(!ya.length||ya[ya.length-1]!==s)){var b="deltaY"in w?l3(w):Qu(w),x=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&hO(_.delta,b)})[0];if(x&&x.should){w.cancelable&&w.preventDefault();return}if(!x){var S=(o.current.shards||[]).map(c3).filter(Boolean).filter(function(_){return _.contains(w.target)}),A=S.length>0?a(w,S[0]):!o.current.noIsolation;A&&w.cancelable&&w.preventDefault()}}},[]),c=g.useCallback(function(y,w,b,x){var S={name:y,delta:w,target:b,should:x};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(A){return A!==S})},1)},[]),f=g.useCallback(function(y){r.current=Qu(y),n.current=void 0},[]),u=g.useCallback(function(y){c(y.type,l3(y),y.target,a(y,t.lockRef.current))},[]),d=g.useCallback(function(y){c(y.type,Qu(y),y.target,a(y,t.lockRef.current))},[]);g.useEffect(function(){return ya.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,va),document.addEventListener("touchmove",l,va),document.addEventListener("touchstart",f,va),function(){ya=ya.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,va),document.removeEventListener("touchmove",l,va),document.removeEventListener("touchstart",f,va)}},[]);var v=t.removeScrollBar,m=t.inert;return g.createElement(g.Fragment,null,m?g.createElement(s,{styles:vO(i)}):null,v?g.createElement(sO,{gapMode:"margin"}):null)}const mO=WD(FS,pO);var qS=g.forwardRef(function(t,e){return g.createElement(u0,Ei({},t,{ref:e,sideCar:mO}))});qS.classNames=u0.classNames;const HS=qS,gO=["Enter"," "],d0="Menu",[xO,kZ,bO]=l0(d0),[la,GS]=_r(d0,[bO,Ml,Il]);Ml();const wO=Il();la(d0);const[RZ,EO]=la(d0),CO="MenuPortal";la(CO,{forceMount:void 0});const SO="MenuContent",[PZ,WS]=la(SO),Gy="MenuItem",f3="menu.itemSelect",KS=g.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=g.useRef(null),o=EO(Gy,t.__scopeMenu),a=WS(Gy,t.__scopeMenu),l=At(e,s),c=g.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(f3,{bubbles:!0,cancelable:!0});u.addEventListener(f3,v=>n==null?void 0:n(v),{once:!0}),qm(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return g.createElement(AO,me({},i,{ref:l,disabled:r,onClick:Se(t.onClick,f),onPointerDown:u=>{var d;(d=t.onPointerDown)===null||d===void 0||d.call(t,u),c.current=!0},onPointerUp:Se(t.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Se(t.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||gO.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),AO=g.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=WS(Gy,r),a=wO(r),l=g.useRef(null),c=At(e,l),[f,u]=g.useState(!1),[d,v]=g.useState("");return g.useEffect(()=>{const m=l.current;if(m){var y;v(((y=m.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),g.createElement(xO.ItemSlot,{scope:r,disabled:n,textValue:i??d},g.createElement($S,me({asChild:!0},a,{focusable:!n}),g.createElement(Je.div,me({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:Se(t.onPointerMove,u3(m=>{n?o.onItemLeave(m):(o.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Se(t.onPointerLeave,u3(m=>o.onItemLeave(m))),onFocus:Se(t.onFocus,()=>u(!0)),onBlur:Se(t.onBlur,()=>u(!1))}))))}),kO=g.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return g.createElement(QS,{scope:t.__scopeMenu,checked:r},g.createElement(KS,me({role:"menuitemcheckbox","aria-checked":gh(r)?"mixed":r},i,{ref:e,"data-state":Zm(r),onSelect:Se(i.onSelect,()=>n==null?void 0:n(gh(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),RO="MenuRadioGroup",[TZ,PO]=la(RO,{value:void 0,onValueChange:()=>{}}),TO="MenuRadioItem",_O=g.forwardRef((t,e)=>{const{value:r,...n}=t,i=PO(TO,t.__scopeMenu),s=r===i.value;return g.createElement(QS,{scope:t.__scopeMenu,checked:s},g.createElement(KS,me({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":Zm(s),onSelect:Se(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),YS="MenuItemIndicator",[QS,MO]=la(YS,{checked:!1}),IO=g.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=MO(YS,r);return g.createElement(yo,{present:n||gh(s.checked)||s.checked===!0},g.createElement(Je.span,me({},i,{ref:e,"data-state":Zm(s.checked)})))}),NO="MenuSub";la(NO);function gh(t){return t==="indeterminate"}function Zm(t){return gh(t)?"indeterminate":t?"checked":"unchecked"}function u3(t){return e=>e.pointerType==="mouse"?t(e):void 0}const $O=kO,DO=_O,OO=IO,JS="DropdownMenu",[LO,_Z]=_r(JS,[GS]),eg=GS();LO(JS);const BO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=eg(r);return g.createElement($O,me({},i,n,{ref:e}))}),FO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=eg(r);return g.createElement(DO,me({},i,n,{ref:e}))}),jO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=eg(r);return g.createElement(OO,me({},i,n,{ref:e}))}),zO=BO,UO=FO,XS=jO;var ZS="_1k2mbvi5",eA="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12vk fyvr12ve fyvr11h0 fyvr11ko fyvr11jw fyvr12tz fyvr11n2 fyvr11hw fyvr12r5";const VO=({children:t})=>K.jsx(XS,{className:ZS,children:t});g.forwardRef(({className:t,children:e,...r},n)=>K.jsxs(zO,{className:Xr(eA,t),...r,ref:n,children:[K.jsx(VO,{children:K.jsx(oS,{size:"xs"})}),K.jsx(Le,{variant:"small",children:e})]}));g.forwardRef(({className:t,children:e,...r},n)=>K.jsxs(UO,{className:Xr(eA,t),...r,ref:n,children:[K.jsx(XS,{className:ZS,children:K.jsx(Le,{children:"•"})}),K.jsx(Le,{variant:"small",children:e})]}));const tg=g.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return K.jsx(Yr,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),qO=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var HO="fyvr12vh fyvr12vb fyvr11ho fyvr12ub fyvr1ko fyvr1oo fyvr1mo fyvr1qo",GO="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mt fyvr12fn fyvr121b fyvr128h fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",WO=Lt({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const KO={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"};g.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=g.useRef(null),m=qO(v,e),[y,w]=g.useState(null),b=S=>{const A=S.currentTarget.files;if(!A||!A[0])return;const _=A[0],D=_.name,$=_.size/1e3;w({name:D,size:$,extension:D.split(".").pop()??""}),c==null||c(_)},x=u.map(S=>KO[S]).join(",");return K.jsx(Tl,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:K.jsx(ie,{width:"full",children:K.jsxs(ie,{justifyContent:y?"space-between":"flex-start",color:y?"text100":"text50",className:Xr(GO,WO({borderRadius:r})),children:[y?K.jsxs(ie,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[K.jsx(Le,{children:y.name}),K.jsxs(Le,{color:"text50",variant:"xsmall",children:[y.size.toFixed(2)," kb"]})]}):K.jsx(Le,{children:f}),K.jsx(ie,{accept:x,as:"input",className:HO,cursor:y?"text":"pointer",disabled:i||!!y,id:s??l,name:l,onChange:b,ref:m,type:"file",...d}),y&&K.jsx(tg,{cursor:"pointer",icon:Hm,size:"xs",onClick:S=>{var A;S.preventDefault(),S.stopPropagation(),(A=v.current)!=null&&A.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})})});var YO=Lt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const Wy=1e3,Za=64,U1=Za/2,V1=(t,e=Wy)=>t%e/(Wy/Za),Po=(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)},QO=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:Po(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},JO=(t,e)=>{const r=[];for(let n=0;n{const s=Za/10+V1(n.r,Wy*1.5/(i+1));return{...QO(n.a,n.b,n.c),x:V1(n.x),y:V1(n.y),r:s}})};g.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=JO(r,i);return K.jsxs(ie,{as:"svg",className:Xr(e,YO({size:n})),viewBox:`0 0 ${Za} ${Za}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[K.jsxs("defs",{children:[K.jsx("clipPath",{id:"circle-clip",children:K.jsx("circle",{cx:U1,cy:U1,r:U1})}),K.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[K.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),K.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),K.jsx("feGaussianBlur",{stdDeviation:Za/10,result:"effect1_foregroundBlur"})]}),K.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[K.jsx("stop",{offset:"0",stopColor:o[0].c}),K.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>K.jsxs(g.Fragment,{children:[K.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[K.jsx("stop",{offset:"0",stopColor:a.a}),K.jsx("stop",{offset:"1",stopColor:a.b})]}),K.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[K.jsx("stop",{offset:"0",stopColor:a.c}),K.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),K.jsxs("g",{clipPath:"url(#circle-clip)",children:[K.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),K.jsx("g",{filter:"url(#blur)",children:o.map(a=>K.jsxs(g.Fragment,{children:[K.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),K.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const XO=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=g.useState(!1),o=a=>{s(!0),r==null||r(a)};return K.jsx(ie,{as:Ja.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},tA="Dialog",[rA,MZ]=_r(tA),[ZO,po]=rA(tA),eL=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=g.useRef(null),l=g.useRef(null),[c=!1,f]=Ko({prop:n,defaultProp:i,onChange:s});return g.createElement(ZO,{scope:e,triggerRef:a,contentRef:l,contentId:Qs(),titleId:Qs(),descriptionId:Qs(),open:c,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(u=>!u),[f]),modal:o},r)},nA="DialogPortal",[tL,iA]=rA(nA,{forceMount:void 0}),rL=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=po(nA,e);return g.createElement(tL,{scope:e,forceMount:r},g.Children.map(n,o=>g.createElement(yo,{present:r||s.open},g.createElement(MS,{asChild:!0,container:i},o))))},Ky="DialogOverlay",nL=g.forwardRef((t,e)=>{const r=iA(Ky,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=po(Ky,t.__scopeDialog);return s.modal?g.createElement(yo,{present:n||s.open},g.createElement(iL,me({},i,{ref:e}))):null}),iL=g.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=po(Ky,r);return g.createElement(HS,{as:pl,allowPinchZoom:!0,shards:[i.contentRef]},g.createElement(Je.div,me({"data-state":oA(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),jf="DialogContent",sL=g.forwardRef((t,e)=>{const r=iA(jf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=po(jf,t.__scopeDialog);return g.createElement(yo,{present:n||s.open},s.modal?g.createElement(oL,me({},i,{ref:e})):g.createElement(aL,me({},i,{ref:e})))}),oL=g.forwardRef((t,e)=>{const r=po(jf,t.__scopeDialog),n=g.useRef(null),i=At(e,r.contentRef,n);return g.useEffect(()=>{const s=n.current;if(s)return OS(s)},[]),g.createElement(sA,me({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Se(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Se(t.onFocusOutside,s=>s.preventDefault())}))}),aL=g.forwardRef((t,e)=>{const r=po(jf,t.__scopeDialog),n=g.useRef(!1),i=g.useRef(!1);return g.createElement(sA,me({},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()}}))}),sA=g.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=po(jf,r),l=g.useRef(null),c=At(e,l);return uS(),g.createElement(g.Fragment,null,g.createElement(dS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},g.createElement(Ym,me({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":oA(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),lL="DialogClose",cL=g.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=po(lL,r);return g.createElement(Je.button,me({type:"button"},n,{ref:e,onClick:Se(t.onClick,()=>i.onOpenChange(!1))}))});function oA(t){return t?"open":"closed"}const fL=eL,uL=rL,dL=nL,hL=sL,vL=cL;var yL=Lt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),pL=Lt({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const mL=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return K.jsx(ie,{className:yL({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:K.jsx(ie,{className:pL({direction:n}),background:"backgroundPrimary",...i,children:e})})};var gL="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",xL=Lt({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12vk fyvr12ve fyvr11h0 fyvr11i4 fyvr11hs fyvr11pn fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),bL="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",wL="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const EL=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;return K.jsx(fL,{modal:!0,defaultOpen:!0,onOpenChange:o,children:K.jsx(uL,{forceMount:!0,children:K.jsxs(ie,{className:wL,children:[K.jsx(ie,{as:dL,asChild:!0,background:r,className:bL,forceMount:!0,children:K.jsx(Ja.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")}),K.jsx(hL,{asChild:!0,className:xL({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:u=>{s?o==null||o():u.preventDefault()},onInteractOutside:u=>{s||u.preventDefault()},children:K.jsxs(Ja.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?K.jsx(mL,{children:n}):n,s&&K.jsx(vL,{asChild:!0,children:K.jsx(tg,{icon:Hm,backdropFilter:"blur",size:"xs",className:gL,"aria-label":"Close"})})]},"modal-content")})]})})})};var CL=Lt({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12vh fyvr12vb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),SL="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rh fyvr1g0 fyvr118g",AL=Lt({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const gr=g.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:m="text",numeric:y=!1,...w}=t;return K.jsx(Tl,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:K.jsx(ie,{width:"full",children:K.jsxs(ie,{className:Xr(SL,AL({borderRadius:i})),children:[f&&K.jsx(f,{size:"sm"}),K.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:CL({numeric:y}),disabled:o,id:a??d,name:d,ref:e,type:m,...w}),u&&K.jsx(u,{size:"sm"}),v]})})})}),kL=RegExp("^\\d*(?:\\\\[.])?\\d*$");function RL(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}g.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===""||kL.test(RL(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 K.jsx(gr,{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})});Lt({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},defaultVariants:{},compoundVariants:[]});const aA="Progress",h0=100,[PL,IZ]=_r(aA),[TL,NZ]=PL(aA),_L=g.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=ML,...o}=t,a=Yy(i)?i:h0,l=lA(n,a)?n:null,c=xh(l)?s(l,a):void 0;return g.createElement(TL,{scope:r,value:l,max:a},g.createElement(Je.div,me({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":xh(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":IL(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});_L.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!Yy(n)?new Error(NL(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=Yy(t.max)?t.max:h0;return n!=null&&!lA(n,s)?new Error($L(i,r)):null}};function ML(t,e){return`${Math.round(t/e*100)}%`}function IL(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function xh(t){return typeof t=="number"}function Yy(t){return xh(t)&&!isNaN(t)&&t>0}function lA(t,e){return xh(t)&&!isNaN(t)&&t<=e&&t>=0}function NL(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${h0}\`.`}function $L(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: +`)},AO=0,pa=[];function kO(t){var e=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),i=g.useState(AO++)[0],s=g.useState(function(){return YS()})[0],o=g.useRef(t);g.useEffect(function(){o.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=KD([t.lockRef.current],(t.shards||[]).map(m3),!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=g.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var x=Zu(y),b=r.current,S="deltaX"in y?y.deltaX:b[0]-x[0],A="deltaY"in y?y.deltaY:b[1]-x[1],_,D=y.target,$=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in y&&$==="h"&&D.type==="range")return!1;var O=y3($,D);if(!O)return!0;if(O?_=$:(_=$==="v"?"h":"v",O=y3($,D)),!O)return!1;if(!n.current&&"changedTouches"in y&&(S||A)&&(n.current=_),!_)return!0;var H=n.current||_;return EO(H,w,y,H==="h"?S:A,!0)},[]),l=g.useCallback(function(y){var w=y;if(!(!pa.length||pa[pa.length-1]!==s)){var x="deltaY"in w?p3(w):Zu(w),b=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&CO(_.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var S=(o.current.shards||[]).map(m3).filter(Boolean).filter(function(_){return _.contains(w.target)}),A=S.length>0?a(w,S[0]):!o.current.noIsolation;A&&w.cancelable&&w.preventDefault()}}},[]),c=g.useCallback(function(y,w,x,b){var S={name:y,delta:w,target:x,should:b};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(A){return A!==S})},1)},[]),f=g.useCallback(function(y){r.current=Zu(y),n.current=void 0},[]),u=g.useCallback(function(y){c(y.type,p3(y),y.target,a(y,t.lockRef.current))},[]),d=g.useCallback(function(y){c(y.type,Zu(y),y.target,a(y,t.lockRef.current))},[]);g.useEffect(function(){return pa.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,ya),document.addEventListener("touchmove",l,ya),document.addEventListener("touchstart",f,ya),function(){pa=pa.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,ya),document.removeEventListener("touchmove",l,ya),document.removeEventListener("touchstart",f,ya)}},[]);var v=t.removeScrollBar,m=t.inert;return g.createElement(g.Fragment,null,m?g.createElement(s,{styles:SO(i)}):null,v?g.createElement(yO,{gapMode:"margin"}):null)}const RO=nO(KS,kO);var ZS=g.forwardRef(function(t,e){return g.createElement(y0,Ci({},t,{ref:e,sideCar:RO}))});ZS.classNames=y0.classNames;const eA=ZS,PO=["Enter"," "],p0="Menu",[TO,ree,_O]=d0(p0),[ca,tA]=_r(p0,[_O,Il,Nl]);Il();const MO=Nl();ca(p0);const[nee,IO]=ca(p0),NO="MenuPortal";ca(NO,{forceMount:void 0});const $O="MenuContent",[iee,rA]=ca($O),Zy="MenuItem",g3="menu.itemSelect",nA=g.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=g.useRef(null),o=IO(Zy,t.__scopeMenu),a=rA(Zy,t.__scopeMenu),l=At(e,s),c=g.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(g3,{bubbles:!0,cancelable:!0});u.addEventListener(g3,v=>n==null?void 0:n(v),{once:!0}),Jm(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return g.createElement(DO,me({},i,{ref:l,disabled:r,onClick:Se(t.onClick,f),onPointerDown:u=>{var d;(d=t.onPointerDown)===null||d===void 0||d.call(t,u),c.current=!0},onPointerUp:Se(t.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Se(t.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||PO.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),DO=g.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=rA(Zy,r),a=MO(r),l=g.useRef(null),c=At(e,l),[f,u]=g.useState(!1),[d,v]=g.useState("");return g.useEffect(()=>{const m=l.current;if(m){var y;v(((y=m.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),g.createElement(TO.ItemSlot,{scope:r,disabled:n,textValue:i??d},g.createElement(VS,me({asChild:!0},a,{focusable:!n}),g.createElement(Je.div,me({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:Se(t.onPointerMove,x3(m=>{n?o.onItemLeave(m):(o.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Se(t.onPointerLeave,x3(m=>o.onItemLeave(m))),onFocus:Se(t.onFocus,()=>u(!0)),onBlur:Se(t.onBlur,()=>u(!1))}))))}),OO=g.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return g.createElement(sA,{scope:t.__scopeMenu,checked:r},g.createElement(nA,me({role:"menuitemcheckbox","aria-checked":wh(r)?"mixed":r},i,{ref:e,"data-state":og(r),onSelect:Se(i.onSelect,()=>n==null?void 0:n(wh(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),LO="MenuRadioGroup",[see,BO]=ca(LO,{value:void 0,onValueChange:()=>{}}),FO="MenuRadioItem",jO=g.forwardRef((t,e)=>{const{value:r,...n}=t,i=BO(FO,t.__scopeMenu),s=r===i.value;return g.createElement(sA,{scope:t.__scopeMenu,checked:s},g.createElement(nA,me({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":og(s),onSelect:Se(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),iA="MenuItemIndicator",[sA,zO]=ca(iA,{checked:!1}),UO=g.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=zO(iA,r);return g.createElement(po,{present:n||wh(s.checked)||s.checked===!0},g.createElement(Je.span,me({},i,{ref:e,"data-state":og(s.checked)})))}),VO="MenuSub";ca(VO);function wh(t){return t==="indeterminate"}function og(t){return wh(t)?"indeterminate":t?"checked":"unchecked"}function x3(t){return e=>e.pointerType==="mouse"?t(e):void 0}const qO=OO,HO=jO,GO=UO,oA="DropdownMenu",[WO,oee]=_r(oA,[tA]),ag=tA();WO(oA);const KO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=ag(r);return g.createElement(qO,me({},i,n,{ref:e}))}),YO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=ag(r);return g.createElement(HO,me({},i,n,{ref:e}))}),QO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=ag(r);return g.createElement(GO,me({},i,n,{ref:e}))}),JO=KO,XO=YO,aA=QO;var lA="_1k2mbvi5",cA="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12vk fyvr12ve fyvr11h0 fyvr11ko fyvr11jw fyvr12tz fyvr11n2 fyvr11hw fyvr12r5";const ZO=({children:t})=>K.jsx(aA,{className:lA,children:t});g.forwardRef(({className:t,children:e,...r},n)=>K.jsxs(JO,{className:Xr(cA,t),...r,ref:n,children:[K.jsx(ZO,{children:K.jsx(yS,{size:"xs"})}),K.jsx(Le,{variant:"small",children:e})]}));g.forwardRef(({className:t,children:e,...r},n)=>K.jsxs(XO,{className:Xr(cA,t),...r,ref:n,children:[K.jsx(aA,{className:lA,children:K.jsx(Le,{children:"•"})}),K.jsx(Le,{variant:"small",children:e})]}));const lg=g.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return K.jsx(Yr,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),eL=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var tL="fyvr12vh fyvr12vb fyvr11ho fyvr12ub fyvr1ko fyvr1oo fyvr1mo fyvr1qo",rL="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mt fyvr12fn fyvr121b fyvr128h fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",nL=Lt({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const iL={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"};g.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=g.useRef(null),m=eL(v,e),[y,w]=g.useState(null),x=S=>{const A=S.currentTarget.files;if(!A||!A[0])return;const _=A[0],D=_.name,$=_.size/1e3;w({name:D,size:$,extension:D.split(".").pop()??""}),c==null||c(_)},b=u.map(S=>iL[S]).join(",");return K.jsx(_l,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:K.jsx(ie,{width:"full",children:K.jsxs(ie,{justifyContent:y?"space-between":"flex-start",color:y?"text100":"text50",className:Xr(rL,nL({borderRadius:r})),children:[y?K.jsxs(ie,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[K.jsx(Le,{children:y.name}),K.jsxs(Le,{color:"text50",variant:"xsmall",children:[y.size.toFixed(2)," kb"]})]}):K.jsx(Le,{children:f}),K.jsx(ie,{accept:b,as:"input",className:tL,cursor:y?"text":"pointer",disabled:i||!!y,id:s??l,name:l,onChange:x,ref:m,type:"file",...d}),y&&K.jsx(lg,{cursor:"pointer",icon:Xm,size:"xs",onClick:S=>{var A;S.preventDefault(),S.stopPropagation(),(A=v.current)!=null&&A.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})})});var sL=Lt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const ep=1e3,el=64,K1=el/2,Y1=(t,e=ep)=>t%e/(ep/el),To=(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)},oL=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:To(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},aL=(t,e)=>{const r=[];for(let n=0;n{const s=el/10+Y1(n.r,ep*1.5/(i+1));return{...oL(n.a,n.b,n.c),x:Y1(n.x),y:Y1(n.y),r:s}})};g.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=aL(r,i);return K.jsxs(ie,{as:"svg",className:Xr(e,sL({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:[K.jsxs("defs",{children:[K.jsx("clipPath",{id:"circle-clip",children:K.jsx("circle",{cx:K1,cy:K1,r:K1})}),K.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[K.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),K.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),K.jsx("feGaussianBlur",{stdDeviation:el/10,result:"effect1_foregroundBlur"})]}),K.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[K.jsx("stop",{offset:"0",stopColor:o[0].c}),K.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>K.jsxs(g.Fragment,{children:[K.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[K.jsx("stop",{offset:"0",stopColor:a.a}),K.jsx("stop",{offset:"1",stopColor:a.b})]}),K.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[K.jsx("stop",{offset:"0",stopColor:a.c}),K.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),K.jsxs("g",{clipPath:"url(#circle-clip)",children:[K.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),K.jsx("g",{filter:"url(#blur)",children:o.map(a=>K.jsxs(g.Fragment,{children:[K.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),K.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const lL=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=g.useState(!1),o=a=>{s(!0),r==null||r(a)};return K.jsx(ie,{as:Xa.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},fA="Dialog",[uA,aee]=_r(fA),[cL,mo]=uA(fA),fL=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=g.useRef(null),l=g.useRef(null),[c=!1,f]=Qo({prop:n,defaultProp:i,onChange:s});return g.createElement(cL,{scope:e,triggerRef:a,contentRef:l,contentId:Xs(),titleId:Xs(),descriptionId:Xs(),open:c,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(u=>!u),[f]),modal:o},r)},dA="DialogPortal",[uL,hA]=uA(dA,{forceMount:void 0}),dL=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=mo(dA,e);return g.createElement(uL,{scope:e,forceMount:r},g.Children.map(n,o=>g.createElement(po,{present:r||s.open},g.createElement(jS,{asChild:!0,container:i},o))))},tp="DialogOverlay",hL=g.forwardRef((t,e)=>{const r=hA(tp,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=mo(tp,t.__scopeDialog);return s.modal?g.createElement(po,{present:n||s.open},g.createElement(vL,me({},i,{ref:e}))):null}),vL=g.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=mo(tp,r);return g.createElement(eA,{as:pl,allowPinchZoom:!0,shards:[i.contentRef]},g.createElement(Je.div,me({"data-state":yA(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),zf="DialogContent",yL=g.forwardRef((t,e)=>{const r=hA(zf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=mo(zf,t.__scopeDialog);return g.createElement(po,{present:n||s.open},s.modal?g.createElement(pL,me({},i,{ref:e})):g.createElement(mL,me({},i,{ref:e})))}),pL=g.forwardRef((t,e)=>{const r=mo(zf,t.__scopeDialog),n=g.useRef(null),i=At(e,r.contentRef,n);return g.useEffect(()=>{const s=n.current;if(s)return HS(s)},[]),g.createElement(vA,me({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Se(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Se(t.onFocusOutside,s=>s.preventDefault())}))}),mL=g.forwardRef((t,e)=>{const r=mo(zf,t.__scopeDialog),n=g.useRef(!1),i=g.useRef(!1);return g.createElement(vA,me({},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()}}))}),vA=g.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=mo(zf,r),l=g.useRef(null),c=At(e,l);return bS(),g.createElement(g.Fragment,null,g.createElement(wS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},g.createElement(rg,me({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":yA(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),gL="DialogClose",xL=g.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=mo(gL,r);return g.createElement(Je.button,me({type:"button"},n,{ref:e,onClick:Se(t.onClick,()=>i.onOpenChange(!1))}))});function yA(t){return t?"open":"closed"}const bL=fL,wL=dL,EL=hL,CL=yL,SL=xL;var AL=Lt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),kL=Lt({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const RL=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return K.jsx(ie,{className:AL({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:K.jsx(ie,{className:kL({direction:n}),background:"backgroundPrimary",...i,children:e})})};var PL="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",TL=Lt({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12vk fyvr12ve fyvr11h0 fyvr11i4 fyvr11hs fyvr11pn fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),_L="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",ML="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const IL=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;return K.jsx(bL,{modal:!0,defaultOpen:!0,onOpenChange:o,children:K.jsx(wL,{forceMount:!0,children:K.jsxs(ie,{className:ML,children:[K.jsx(ie,{as:EL,asChild:!0,background:r,className:_L,forceMount:!0,children:K.jsx(Xa.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")}),K.jsx(CL,{asChild:!0,className:TL({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:u=>{s?o==null||o():u.preventDefault()},onInteractOutside:u=>{s||u.preventDefault()},children:K.jsxs(Xa.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?K.jsx(RL,{children:n}):n,s&&K.jsx(SL,{asChild:!0,children:K.jsx(lg,{icon:Xm,backdropFilter:"blur",size:"xs",className:PL,"aria-label":"Close"})})]},"modal-content")})]})})})};var NL=Lt({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12vh fyvr12vb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),$L="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rh fyvr1g0 fyvr118g",DL=Lt({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const gr=g.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:m="text",numeric:y=!1,...w}=t;return K.jsx(_l,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:K.jsx(ie,{width:"full",children:K.jsxs(ie,{className:Xr($L,DL({borderRadius:i})),children:[f&&K.jsx(f,{size:"sm"}),K.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:NL({numeric:y}),disabled:o,id:a??d,name:d,ref:e,type:m,...w}),u&&K.jsx(u,{size:"sm"}),v]})})})}),OL=RegExp("^\\d*(?:\\\\[.])?\\d*$");function LL(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}g.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===""||OL.test(LL(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 K.jsx(gr,{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})});Lt({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},defaultVariants:{},compoundVariants:[]});const pA="Progress",m0=100,[BL,lee]=_r(pA),[FL,cee]=BL(pA),jL=g.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=zL,...o}=t,a=rp(i)?i:m0,l=mA(n,a)?n:null,c=Eh(l)?s(l,a):void 0;return g.createElement(FL,{scope:r,value:l,max:a},g.createElement(Je.div,me({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Eh(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":UL(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});jL.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!rp(n)?new Error(VL(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=rp(t.max)?t.max:m0;return n!=null&&!mA(n,s)?new Error(qL(i,r)):null}};function zL(t,e){return`${Math.round(t/e*100)}%`}function UL(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function Eh(t){return typeof t=="number"}function rp(t){return Eh(t)&&!isNaN(t)&&t>0}function mA(t,e){return Eh(t)&&!isNaN(t)&&t<=e&&t>=0}function VL(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${m0}\`.`}function qL(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 ${h0} if no \`max\` prop is set) + - less than the value passed to \`max\` (or ${m0} if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`}const cA="Radio",[DL,fA]=_r(cA),[OL,LL]=DL(cA),BL=g.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=g.useState(null),d=At(e,y=>u(y)),v=g.useRef(!1),m=f?!!f.closest("form"):!0;return g.createElement(OL,{scope:r,checked:i,disabled:o},g.createElement(Je.button,me({type:"button",role:"radio","aria-checked":i,"data-state":uA(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:Se(t.onClick,y=>{i||l==null||l(),m&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),m&&g.createElement(zL,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),FL="RadioIndicator",jL=g.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=LL(FL,r);return g.createElement(yo,{present:n||s.checked},g.createElement(Je.span,me({"data-state":uA(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),zL=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=g.useRef(null),o=Um(r),a=Vm(e);return g.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]),g.createElement("input",me({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 uA(t){return t?"checked":"unchecked"}const UL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dA="RadioGroup",[VL,$Z]=_r(dA,[Il,fA]),hA=Il(),vA=fA(),[qL,HL]=VL(dA),GL=g.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=hA(r),m=Km(c),[y,w]=Ko({prop:s,defaultProp:i,onChange:u});return g.createElement(qL,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},g.createElement($D,me({asChild:!0},v,{orientation:l,dir:m,loop:f}),g.createElement(Je.div,me({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:m},d,{ref:e}))))}),WL="RadioGroupItem",KL=g.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=HL(WL,r),o=s.disabled||n,a=hA(r),l=vA(r),c=g.useRef(null),f=At(e,c),u=s.value===i.value,d=g.useRef(!1);return g.useEffect(()=>{const v=y=>{UL.includes(y.key)&&(d.current=!0)},m=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",m)}},[]),g.createElement($S,me({asChild:!0},a,{focusable:!o,active:u}),g.createElement(BL,me({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:Se(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Se(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),YL=g.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=vA(r);return g.createElement(jL,me({},i,n,{ref:e}))}),QL=GL,JL=KL,XL=YL;var ZL=Lt({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rh",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),eB=Lt({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11ob fyvr12tz fyvr12tv fyvr12uj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const tB=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return K.jsx(ie,{alignItems:"center",children:K.jsx(Tl,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:K.jsx(JL,{className:eB({size:n}),value:i,id:e,disabled:s,children:K.jsx(XL,{className:ZL({size:n})})})})})};g.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return K.jsx(QL,{disabled:n,name:s,ref:e,...l,children:K.jsx(ie,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>K.jsx(tB,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function d3(t,[e,r]){return Math.min(r,Math.max(e,t))}const yA=g.forwardRef((t,e)=>g.createElement(Je.span,me({},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}}))),rB=[" ","Enter","ArrowUp","ArrowDown"],nB=[" ","Enter"],v0="Select",[y0,rg,iB]=l0(v0),[Nl,DZ]=_r(v0,[iB,Ml]),ng=Ml(),[sB,ca]=Nl(v0),[oB,aB]=Nl(v0),lB=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,m=ng(e),[y,w]=g.useState(null),[b,x]=g.useState(null),[S,A]=g.useState(!1),_=Km(c),[D=!1,$]=Ko({prop:n,defaultProp:i,onChange:s}),[O,H]=Ko({prop:o,defaultProp:a,onChange:l}),Y=g.useRef(null),Q=y?!!y.closest("form"):!0,[re,I]=g.useState(new Set),h=Array.from(re).map(C=>C.props.value).join(";");return g.createElement(gD,m,g.createElement(sB,{required:v,scope:e,trigger:y,onTriggerChange:w,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:Qs(),value:O,onValueChange:H,open:D,onOpenChange:$,dir:_,triggerPointerDownPosRef:Y,disabled:d},g.createElement(y0.Provider,{scope:e},g.createElement(oB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(C=>{I(R=>new Set(R).add(C))},[]),onNativeOptionRemove:g.useCallback(C=>{I(R=>{const M=new Set(R);return M.delete(C),M})},[])},r)),Q?g.createElement(mA,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:O,onChange:C=>H(C.target.value),disabled:d},O===void 0?g.createElement("option",{value:""}):null,Array.from(re)):null))},cB="SelectTrigger",fB=g.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=ng(r),o=ca(cB,r),a=o.disabled||n,l=At(e,o.onTriggerChange),c=rg(r),[f,u,d]=gA(m=>{const y=c().filter(x=>!x.disabled),w=y.find(x=>x.value===o.value),b=xA(y,m,w);b!==void 0&&o.onValueChange(b.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return g.createElement(xD,me({asChild:!0},s),g.createElement(Je.button,me({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":o.value===void 0?"":void 0},i,{ref:l,onClick:Se(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:Se(i.onPointerDown,m=>{const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:Se(i.onKeyDown,m=>{const y=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&u(m.key),!(y&&m.key===" ")&&rB.includes(m.key)&&(v(),m.preventDefault())})})))}),uB="SelectValue",dB=g.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o,...a}=t,l=ca(uB,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=At(e,l.onValueNodeChange);return un(()=>{c(f)},[c,f]),g.createElement(Je.span,me({},a,{ref:u,style:{pointerEvents:"none"}}),l.value===void 0&&o!==void 0?o:s)}),hB=g.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return g.createElement(Je.span,me({"aria-hidden":!0},i,{ref:e}),n||"▼")}),gl="SelectContent",vB=g.forwardRef((t,e)=>{const r=ca(gl,t.__scopeSelect),[n,i]=g.useState();if(un(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?ho.createPortal(g.createElement(pA,{scope:t.__scopeSelect},g.createElement(y0.Slot,{scope:t.__scopeSelect},g.createElement("div",null,t.children))),s):null}return g.createElement(yB,me({},t,{ref:e}))}),Qi=10,[pA,p0]=Nl(gl),yB=g.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:m,hideWhenDetached:y,avoidCollisions:w,...b}=t,x=ca(gl,r),[S,A]=g.useState(null),[_,D]=g.useState(null),$=At(e,j=>A(j)),[O,H]=g.useState(null),[Y,Q]=g.useState(null),re=rg(r),[I,h]=g.useState(!1),C=g.useRef(!1);g.useEffect(()=>{if(S)return OS(S)},[S]),uS();const R=g.useCallback(j=>{const[z,...W]=re().map(ee=>ee.ref.current),[ne]=W.slice(-1),X=document.activeElement;for(const ee of j)if(ee===X||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===z&&_&&(_.scrollTop=0),ee===ne&&_&&(_.scrollTop=_.scrollHeight),ee==null||ee.focus(),document.activeElement!==X))return},[re,_]),M=g.useCallback(()=>R([O,S]),[R,O,S]);g.useEffect(()=>{I&&M()},[I,M]);const{onOpenChange:T,triggerPointerDownPosRef:N}=x;g.useEffect(()=>{if(S){let j={x:0,y:0};const z=ne=>{var X,ee,_e,ce;j={x:Math.abs(Math.round(ne.pageX)-((X=(ee=N.current)===null||ee===void 0?void 0:ee.x)!==null&&X!==void 0?X:0)),y:Math.abs(Math.round(ne.pageY)-((_e=(ce=N.current)===null||ce===void 0?void 0:ce.y)!==null&&_e!==void 0?_e:0))}},W=ne=>{j.x<=10&&j.y<=10?ne.preventDefault():S.contains(ne.target)||T(!1),document.removeEventListener("pointermove",z),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",W,{capture:!0})}}},[S,T,N]),g.useEffect(()=>{const j=()=>T(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[T]);const[L,k]=gA(j=>{const z=re().filter(X=>!X.disabled),W=z.find(X=>X.ref.current===document.activeElement),ne=xA(z,j,W);ne&&setTimeout(()=>ne.ref.current.focus())}),p=g.useCallback((j,z,W)=>{const ne=!C.current&&!W;(x.value!==void 0&&x.value===z||ne)&&(H(j),ne&&(C.current=!0))},[x.value]),P=g.useCallback(()=>S==null?void 0:S.focus(),[S]),B=g.useCallback((j,z,W)=>{const ne=!C.current&&!W;(x.value!==void 0&&x.value===z||ne)&&Q(j)},[x.value]),E=n==="popper"?h3:pB,F=E===h3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:m,hideWhenDetached:y,avoidCollisions:w}:{};return g.createElement(pA,{scope:r,content:S,viewport:_,onViewportChange:D,itemRefCallback:p,selectedItem:O,onItemLeave:P,itemTextRefCallback:B,focusSelectedItem:M,selectedItemText:Y,position:n,isPositioned:I,searchRef:L},g.createElement(HS,{as:pl,allowPinchZoom:!0},g.createElement(dS,{asChild:!0,trapped:x.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:Se(i,j=>{var z;(z=x.trigger)===null||z===void 0||z.focus({preventScroll:!0}),j.preventDefault()})},g.createElement(Ym,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>x.onOpenChange(!1)},g.createElement(E,me({role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:j=>j.preventDefault()},b,F,{onPlaced:()=>h(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Se(b.onKeyDown,j=>{const z=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!z&&j.key.length===1&&k(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let ne=re().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(j.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const X=j.target,ee=ne.indexOf(X);ne=ne.slice(ee+1)}setTimeout(()=>R(ne)),j.preventDefault()}})}))))))}),pB=g.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=ca(gl,r),o=p0(gl,r),[a,l]=g.useState(null),[c,f]=g.useState(null),u=At(e,$=>f($)),d=rg(r),v=g.useRef(!1),m=g.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:b,focusSelectedItem:x}=o,S=g.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&b){const $=s.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),H=s.valueNode.getBoundingClientRect(),Y=b.getBoundingClientRect();if(s.dir!=="rtl"){const X=Y.left-O.left,ee=H.left-X,_e=$.left-ee,ce=$.width+_e,xe=Math.max(ce,O.width),Er=window.innerWidth-Qi,je=d3(ee,[Qi,Er-xe]);a.style.minWidth=ce+"px",a.style.left=je+"px"}else{const X=O.right-Y.right,ee=window.innerWidth-H.right-X,_e=window.innerWidth-$.right-ee,ce=$.width+_e,xe=Math.max(ce,O.width),Er=window.innerWidth-Qi,je=d3(ee,[Qi,Er-xe]);a.style.minWidth=ce+"px",a.style.right=je+"px"}const Q=d(),re=window.innerHeight-Qi*2,I=y.scrollHeight,h=window.getComputedStyle(c),C=parseInt(h.borderTopWidth,10),R=parseInt(h.paddingTop,10),M=parseInt(h.borderBottomWidth,10),T=parseInt(h.paddingBottom,10),N=C+R+I+T+M,L=Math.min(w.offsetHeight*5,N),k=window.getComputedStyle(y),p=parseInt(k.paddingTop,10),P=parseInt(k.paddingBottom,10),B=$.top+$.height/2-Qi,E=re-B,F=w.offsetHeight/2,j=w.offsetTop+F,z=C+R+j,W=N-z;if(z<=B){const X=w===Q[Q.length-1].ref.current;a.style.bottom="0px";const ee=c.clientHeight-y.offsetTop-y.offsetHeight,_e=Math.max(E,F+(X?P:0)+ee+M),ce=z+_e;a.style.height=ce+"px"}else{const X=w===Q[0].ref.current;a.style.top="0px";const _e=Math.max(B,C+y.offsetTop+(X?p:0)+F)+W;a.style.height=_e+"px",y.scrollTop=z-B+y.offsetTop}a.style.margin=`${Qi}px 0`,a.style.minHeight=L+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,b,s.dir,n]);un(()=>S(),[S]);const[A,_]=g.useState();un(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const D=g.useCallback($=>{$&&m.current===!0&&(S(),x==null||x(),m.current=!1)},[S,x]);return g.createElement(mB,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:D},g.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A}},g.createElement(Je.div,me({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),h3=g.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Qi,...s}=t,o=ng(r);return g.createElement(bD,me({},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)"}}))}),[mB,gB]=Nl(gl,{}),v3="SelectViewport",xB=g.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=p0(v3,r),s=gB(v3,r),o=At(e,i.onViewportChange),a=g.useRef(0);return g.createElement(g.Fragment,null,g.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}"}}),g.createElement(y0.Slot,{scope:r},g.createElement(Je.div,me({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Se(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-Qi*2,m=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(m,y);if(w0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),bB="SelectGroup",[wB,OZ]=Nl(bB),EB=g.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=Qs();return g.createElement(wB,{scope:r,id:i},g.createElement(Je.div,me({role:"group","aria-labelledby":i},n,{ref:e})))}),Qy="SelectItem",[CB,SB]=Nl(Qy),AB=g.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=ca(Qy,r),l=p0(Qy,r),c=a.value===n,[f,u]=g.useState(s??""),[d,v]=g.useState(!1),m=At(e,b=>{var x;return(x=l.itemRefCallback)===null||x===void 0?void 0:x.call(l,b,n,i)}),y=Qs(),w=()=>{i||(a.onValueChange(n),a.onOpenChange(!1))};return g.createElement(CB,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:g.useCallback(b=>{u(x=>{var S;return x||((S=b==null?void 0:b.textContent)!==null&&S!==void 0?S:"").trim()})},[])},g.createElement(y0.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},g.createElement(Je.div,me({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:m,onFocus:Se(o.onFocus,()=>v(!0)),onBlur:Se(o.onBlur,()=>v(!1)),onPointerUp:Se(o.onPointerUp,w),onPointerMove:Se(o.onPointerMove,b=>{if(i){var x;(x=l.onItemLeave)===null||x===void 0||x.call(l)}else b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(o.onPointerLeave,b=>{if(b.currentTarget===document.activeElement){var x;(x=l.onItemLeave)===null||x===void 0||x.call(l)}}),onKeyDown:Se(o.onKeyDown,b=>{var x;((x=l.searchRef)===null||x===void 0?void 0:x.current)!==""&&b.key===" "||(nB.includes(b.key)&&w(),b.key===" "&&b.preventDefault())})}))))}),Ju="SelectItemText",kB=g.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=ca(Ju,r),a=p0(Ju,r),l=SB(Ju,r),c=aB(Ju,r),[f,u]=g.useState(null),d=At(e,b=>u(b),l.onItemTextChange,b=>{var x;return(x=a.itemTextRefCallback)===null||x===void 0?void 0:x.call(a,b,l.value,l.disabled)}),v=f==null?void 0:f.textContent,m=g.useMemo(()=>g.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return un(()=>(y(m),()=>w(m)),[y,w,m]),g.createElement(g.Fragment,null,g.createElement(Je.span,me({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ho.createPortal(s.children,o.valueNode):null)}),mA=g.forwardRef((t,e)=>{const{value:r,...n}=t,i=g.useRef(null),s=At(e,i),o=Um(r);return g.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]),g.createElement(yA,{asChild:!0},g.createElement("select",me({},n,{ref:s,defaultValue:r})))});mA.displayName="BubbleSelect";function gA(t){const e=Tn(t),r=g.useRef(""),n=g.useRef(0),i=g.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=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function xA(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=RB(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 RB(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const PB=lB,TB=fB,_B=dB,MB=hB,IB=vB,NB=xB,$B=EB,DB=AB,OB=kB;var LB="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11rb fyvr12rh fyvr11nj",BB="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12vk fyvr12vl fyvr12ve fyvr12vf fyvr11h0 fyvr11jw fyvr11ko fyvr12tz fyvr12tv fyvr12rh fyvr12ut fyvr12uj",FB="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rh fyvr118c fyvr11jw fyvr11n2 fyvr12tz",jB=Lt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const zB=g.forwardRef(({children:t,className:e,...r},n)=>K.jsx(DB,{className:Xr(BB,e),...r,ref:n,children:K.jsx(OB,{children:t})})),bA=g.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 K.jsx(Tl,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:K.jsxs(PB,{disabled:n,name:l,...u,children:[K.jsxs(TB,{id:i??l,className:Xr(FB,jB({borderRadius:r})),ref:e,children:[K.jsx(_B,{placeholder:f}),K.jsx(ie,{as:MB,display:"inline-flex",children:K.jsx(aS,{})})]}),K.jsx(IB,{className:LB,children:K.jsx(NB,{children:K.jsx($B,{children:c.map(({value:d,label:v,...m})=>K.jsx(zB,{value:d,...m,children:v},d))})})})]})})});g.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?K.jsx(tg,{icon:Hm,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return K.jsx(gr,{ref:e,name:s,leftIcon:h$,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var UB=Lt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const ps=g.forwardRef((t,e)=>{const{size:r="md",...n}=t;return K.jsx(ie,{className:UB({size:r}),color:"text50",ref:e,...n,children:K.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[K.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),K.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});g.forwardRef(({children:t},e)=>K.jsx(ie,{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 wA="Switch",[VB,LZ]=_r(wA);VB(wA);Lt({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12ux",false:"nwwh3zb"},disabled:{true:"fyvr12uh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11rn fyvr12rn"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rb"],[{active:!0,variant:"line"},"fyvr12rh"],[{active:!1,variant:"line"},"fyvr12rb"]]});const EA="Tabs",[qB,BZ]=_r(EA,[Il]);Il();qB(EA);var HB="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";g.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return K.jsxs(ie,{className:HB,ref:e,background:"buttonGlass",...i,children:[r&&K.jsx(r,{size:"xs"}),K.jsx(Le,{children:n})]})});const GB="ToastProvider",[WB,FZ,KB]=l0("Toast"),[CA,jZ]=_r("Toast",[KB]),[zZ,SA]=CA(GB),y3="toast.viewportPause",p3="toast.viewportResume",m0="Toast",YB="toast.swipeStart",QB="toast.swipeMove",JB="toast.swipeCancel",XB="toast.swipeEnd",[ZB,eF]=CA(m0,{onClose(){}}),tF=g.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,...m}=t,y=SA(m0,r),[w,b]=g.useState(null),x=At(e,h=>b(h)),S=g.useRef(null),A=g.useRef(null),_=i||y.duration,D=g.useRef(0),$=g.useRef(_),O=g.useRef(0),{onToastAdd:H,onToastRemove:Y}=y,Q=Tn(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),re=g.useCallback(h=>{!h||h===1/0||(window.clearTimeout(O.current),D.current=new Date().getTime(),O.current=window.setTimeout(Q,h))},[Q]);g.useEffect(()=>{const h=y.viewport;if(h){const C=()=>{re($.current),c==null||c()},R=()=>{const M=new Date().getTime()-D.current;$.current=$.current-M,window.clearTimeout(O.current),l==null||l()};return h.addEventListener(y3,R),h.addEventListener(p3,C),()=>{h.removeEventListener(y3,R),h.removeEventListener(p3,C)}}},[y.viewport,_,l,c,re]),g.useEffect(()=>{s&&!y.isClosePausedRef.current&&re(_)},[s,_,y.isClosePausedRef,re]),g.useEffect(()=>(H(),()=>Y()),[H,Y]);const I=g.useMemo(()=>w?kA(w):null,[w]);return y.viewport?g.createElement(g.Fragment,null,I&&g.createElement(rF,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},I),g.createElement(ZB,{scope:r,onClose:Q},ho.createPortal(g.createElement(WB.ItemSlot,{scope:r},g.createElement(j$,{asChild:!0,onEscapeKeyDown:Se(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||Q(),y.isFocusedToastEscapeKeyDownRef.current=!1})},g.createElement(Je.li,me({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},m,{ref:x,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Se(t.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,Q()))}),onPointerDown:Se(t.onPointerDown,h=>{h.button===0&&(S.current={x:h.clientX,y:h.clientY})}),onPointerMove:Se(t.onPointerMove,h=>{if(!S.current)return;const C=h.clientX-S.current.x,R=h.clientY-S.current.y,M=!!A.current,T=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=T?N(0,C):0,k=T?0:N(0,R),p=h.pointerType==="touch"?10:2,P={x:L,y:k},B={originalEvent:h,delta:P};M?(A.current=P,Xu(QB,u,B,{discrete:!1})):m3(P,y.swipeDirection,p)?(A.current=P,Xu(YB,f,B,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(C)>p||Math.abs(R)>p)&&(S.current=null)}),onPointerUp:Se(t.onPointerUp,h=>{const C=A.current,R=h.target;if(R.hasPointerCapture(h.pointerId)&&R.releasePointerCapture(h.pointerId),A.current=null,S.current=null,C){const M=h.currentTarget,T={originalEvent:h,delta:C};m3(C,y.swipeDirection,y.swipeThreshold)?Xu(XB,v,T,{discrete:!0}):Xu(JB,d,T,{discrete:!0}),M.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});tF.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${m0}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const rF=t=>{const{__scopeToast:e,children:r,...n}=t,i=SA(m0,e),[s,o]=g.useState(!1),[a,l]=g.useState(!1);return aF(()=>o(!0)),g.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:g.createElement(MS,{asChild:!0},g.createElement(yA,n,s&&g.createElement(g.Fragment,null,i.label," ",r)))},nF="ToastAction",iF=g.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?g.createElement(AA,{altText:r,asChild:!0},g.createElement(oF,me({},n,{ref:e}))):null});iF.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${nF}\``)}};const sF="ToastClose",oF=g.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=eF(sF,r);return g.createElement(AA,{asChild:!0},g.createElement(Je.button,me({type:"button"},n,{ref:e,onClick:Se(t.onClick,i.onClose)})))}),AA=g.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return g.createElement(Je.div,me({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function kA(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),lF(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(...kA(n))}}),e}function Xu(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 m3=(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 aF(t=()=>{}){const e=Tn(t);un(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function lF(t){return t.nodeType===t.ELEMENT_NODE}Lt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});g.createContext(null);var cF="_15pztn2",fF="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rh fyvr128 fyvr11h0";g.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 K.jsx(Tl,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:K.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:Xr(fF,d&&cF),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...v})})});const Jy=["dark","light"],uF="dark",dF="data-theme",RA="@sequence.theme",hF=()=>{const t=localStorage.getItem(RA);return Jy.includes(t)?t:uF},vF=g.createContext(null),yF=t=>{const[e,r]=g.useState(t.theme||hF());g.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),g.useEffect(()=>{t.theme&&Jy.includes(t.theme)&&r(t.theme)},[t.theme]),g.useEffect(()=>{const i=document.querySelector(":root");i&&i.setAttribute(dF,e)},[e]);const n=g.useMemo(()=>({theme:e,setTheme:i=>{Jy.includes(i)&&(localStorage.setItem(RA,i),r(i))}}),[e]);return K.jsx(vF.Provider,{value:n,children:t.children})};var pF="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11pt fyvr128 fyvr15o fyvr11h0",mF="bnrrebe",gF=Lt({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});g.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return K.jsx(ie,{className:Xr(r,gF({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?K.jsx(XO,{className:mF,disableAnimation:n,src:s}):K.jsx(Le,{className:pF,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})});const[g0,UZ]=_r("Tooltip",[Ml]);Ml();const xF="TooltipProvider";g0(xF);const PA="Tooltip";g0(PA);const bF="TooltipPortal";g0(bF,{forceMount:void 0});g0(PA,{isInside:!1});/** +Defaulting to \`null\`.`}const gA="Radio",[HL,xA]=_r(gA),[GL,WL]=HL(gA),KL=g.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=g.useState(null),d=At(e,y=>u(y)),v=g.useRef(!1),m=f?!!f.closest("form"):!0;return g.createElement(GL,{scope:r,checked:i,disabled:o},g.createElement(Je.button,me({type:"button",role:"radio","aria-checked":i,"data-state":bA(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:Se(t.onClick,y=>{i||l==null||l(),m&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),m&&g.createElement(JL,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),YL="RadioIndicator",QL=g.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=WL(YL,r);return g.createElement(po,{present:n||s.checked},g.createElement(Je.span,me({"data-state":bA(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),JL=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=g.useRef(null),o=Ym(r),a=Qm(e);return g.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]),g.createElement("input",me({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 bA(t){return t?"checked":"unchecked"}const XL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wA="RadioGroup",[ZL,fee]=_r(wA,[Nl,xA]),EA=Nl(),CA=xA(),[eB,tB]=ZL(wA),rB=g.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=EA(r),m=tg(c),[y,w]=Qo({prop:s,defaultProp:i,onChange:u});return g.createElement(eB,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},g.createElement(qD,me({asChild:!0},v,{orientation:l,dir:m,loop:f}),g.createElement(Je.div,me({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:m},d,{ref:e}))))}),nB="RadioGroupItem",iB=g.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=tB(nB,r),o=s.disabled||n,a=EA(r),l=CA(r),c=g.useRef(null),f=At(e,c),u=s.value===i.value,d=g.useRef(!1);return g.useEffect(()=>{const v=y=>{XL.includes(y.key)&&(d.current=!0)},m=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",m)}},[]),g.createElement(VS,me({asChild:!0},a,{focusable:!o,active:u}),g.createElement(KL,me({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:Se(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Se(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),sB=g.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=CA(r);return g.createElement(QL,me({},i,n,{ref:e}))}),oB=rB,aB=iB,lB=sB;var cB=Lt({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rh",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),fB=Lt({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11ob fyvr12tz fyvr12tv fyvr12uj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const uB=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return K.jsx(ie,{alignItems:"center",children:K.jsx(_l,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:K.jsx(aB,{className:fB({size:n}),value:i,id:e,disabled:s,children:K.jsx(lB,{className:cB({size:n})})})})})};g.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return K.jsx(oB,{disabled:n,name:s,ref:e,...l,children:K.jsx(ie,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>K.jsx(uB,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function b3(t,[e,r]){return Math.min(r,Math.max(e,t))}const SA=g.forwardRef((t,e)=>g.createElement(Je.span,me({},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}}))),dB=[" ","Enter","ArrowUp","ArrowDown"],hB=[" ","Enter"],g0="Select",[x0,cg,vB]=d0(g0),[$l,uee]=_r(g0,[vB,Il]),fg=Il(),[yB,fa]=$l(g0),[pB,mB]=$l(g0),gB=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,m=fg(e),[y,w]=g.useState(null),[x,b]=g.useState(null),[S,A]=g.useState(!1),_=tg(c),[D=!1,$]=Qo({prop:n,defaultProp:i,onChange:s}),[O,H]=Qo({prop:o,defaultProp:a,onChange:l}),Y=g.useRef(null),Q=y?!!y.closest("form"):!0,[re,I]=g.useState(new Set),h=Array.from(re).map(C=>C.props.value).join(";");return g.createElement(PD,m,g.createElement(yB,{required:v,scope:e,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:Xs(),value:O,onValueChange:H,open:D,onOpenChange:$,dir:_,triggerPointerDownPosRef:Y,disabled:d},g.createElement(x0.Provider,{scope:e},g.createElement(pB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(C=>{I(R=>new Set(R).add(C))},[]),onNativeOptionRemove:g.useCallback(C=>{I(R=>{const M=new Set(R);return M.delete(C),M})},[])},r)),Q?g.createElement(kA,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:O,onChange:C=>H(C.target.value),disabled:d},O===void 0?g.createElement("option",{value:""}):null,Array.from(re)):null))},xB="SelectTrigger",bB=g.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=fg(r),o=fa(xB,r),a=o.disabled||n,l=At(e,o.onTriggerChange),c=cg(r),[f,u,d]=RA(m=>{const y=c().filter(b=>!b.disabled),w=y.find(b=>b.value===o.value),x=PA(y,m,w);x!==void 0&&o.onValueChange(x.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return g.createElement(TD,me({asChild:!0},s),g.createElement(Je.button,me({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":o.value===void 0?"":void 0},i,{ref:l,onClick:Se(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:Se(i.onPointerDown,m=>{const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:Se(i.onKeyDown,m=>{const y=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&u(m.key),!(y&&m.key===" ")&&dB.includes(m.key)&&(v(),m.preventDefault())})})))}),wB="SelectValue",EB=g.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o,...a}=t,l=fa(wB,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=At(e,l.onValueNodeChange);return un(()=>{c(f)},[c,f]),g.createElement(Je.span,me({},a,{ref:u,style:{pointerEvents:"none"}}),l.value===void 0&&o!==void 0?o:s)}),CB=g.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return g.createElement(Je.span,me({"aria-hidden":!0},i,{ref:e}),n||"▼")}),gl="SelectContent",SB=g.forwardRef((t,e)=>{const r=fa(gl,t.__scopeSelect),[n,i]=g.useState();if(un(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?vo.createPortal(g.createElement(AA,{scope:t.__scopeSelect},g.createElement(x0.Slot,{scope:t.__scopeSelect},g.createElement("div",null,t.children))),s):null}return g.createElement(AB,me({},t,{ref:e}))}),Qi=10,[AA,b0]=$l(gl),AB=g.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:m,hideWhenDetached:y,avoidCollisions:w,...x}=t,b=fa(gl,r),[S,A]=g.useState(null),[_,D]=g.useState(null),$=At(e,j=>A(j)),[O,H]=g.useState(null),[Y,Q]=g.useState(null),re=cg(r),[I,h]=g.useState(!1),C=g.useRef(!1);g.useEffect(()=>{if(S)return HS(S)},[S]),bS();const R=g.useCallback(j=>{const[z,...W]=re().map(ee=>ee.ref.current),[ne]=W.slice(-1),X=document.activeElement;for(const ee of j)if(ee===X||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===z&&_&&(_.scrollTop=0),ee===ne&&_&&(_.scrollTop=_.scrollHeight),ee==null||ee.focus(),document.activeElement!==X))return},[re,_]),M=g.useCallback(()=>R([O,S]),[R,O,S]);g.useEffect(()=>{I&&M()},[I,M]);const{onOpenChange:T,triggerPointerDownPosRef:N}=b;g.useEffect(()=>{if(S){let j={x:0,y:0};const z=ne=>{var X,ee,_e,ce;j={x:Math.abs(Math.round(ne.pageX)-((X=(ee=N.current)===null||ee===void 0?void 0:ee.x)!==null&&X!==void 0?X:0)),y:Math.abs(Math.round(ne.pageY)-((_e=(ce=N.current)===null||ce===void 0?void 0:ce.y)!==null&&_e!==void 0?_e:0))}},W=ne=>{j.x<=10&&j.y<=10?ne.preventDefault():S.contains(ne.target)||T(!1),document.removeEventListener("pointermove",z),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",W,{capture:!0})}}},[S,T,N]),g.useEffect(()=>{const j=()=>T(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[T]);const[L,k]=RA(j=>{const z=re().filter(X=>!X.disabled),W=z.find(X=>X.ref.current===document.activeElement),ne=PA(z,j,W);ne&&setTimeout(()=>ne.ref.current.focus())}),p=g.useCallback((j,z,W)=>{const ne=!C.current&&!W;(b.value!==void 0&&b.value===z||ne)&&(H(j),ne&&(C.current=!0))},[b.value]),P=g.useCallback(()=>S==null?void 0:S.focus(),[S]),B=g.useCallback((j,z,W)=>{const ne=!C.current&&!W;(b.value!==void 0&&b.value===z||ne)&&Q(j)},[b.value]),E=n==="popper"?w3:kB,F=E===w3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:m,hideWhenDetached:y,avoidCollisions:w}:{};return g.createElement(AA,{scope:r,content:S,viewport:_,onViewportChange:D,itemRefCallback:p,selectedItem:O,onItemLeave:P,itemTextRefCallback:B,focusSelectedItem:M,selectedItemText:Y,position:n,isPositioned:I,searchRef:L},g.createElement(eA,{as:pl,allowPinchZoom:!0},g.createElement(wS,{asChild:!0,trapped:b.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:Se(i,j=>{var z;(z=b.trigger)===null||z===void 0||z.focus({preventScroll:!0}),j.preventDefault()})},g.createElement(rg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},g.createElement(E,me({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:j=>j.preventDefault()},x,F,{onPlaced:()=>h(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Se(x.onKeyDown,j=>{const z=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!z&&j.key.length===1&&k(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let ne=re().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(j.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const X=j.target,ee=ne.indexOf(X);ne=ne.slice(ee+1)}setTimeout(()=>R(ne)),j.preventDefault()}})}))))))}),kB=g.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=fa(gl,r),o=b0(gl,r),[a,l]=g.useState(null),[c,f]=g.useState(null),u=At(e,$=>f($)),d=cg(r),v=g.useRef(!1),m=g.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=o,S=g.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&x){const $=s.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),H=s.valueNode.getBoundingClientRect(),Y=x.getBoundingClientRect();if(s.dir!=="rtl"){const X=Y.left-O.left,ee=H.left-X,_e=$.left-ee,ce=$.width+_e,xe=Math.max(ce,O.width),Er=window.innerWidth-Qi,je=b3(ee,[Qi,Er-xe]);a.style.minWidth=ce+"px",a.style.left=je+"px"}else{const X=O.right-Y.right,ee=window.innerWidth-H.right-X,_e=window.innerWidth-$.right-ee,ce=$.width+_e,xe=Math.max(ce,O.width),Er=window.innerWidth-Qi,je=b3(ee,[Qi,Er-xe]);a.style.minWidth=ce+"px",a.style.right=je+"px"}const Q=d(),re=window.innerHeight-Qi*2,I=y.scrollHeight,h=window.getComputedStyle(c),C=parseInt(h.borderTopWidth,10),R=parseInt(h.paddingTop,10),M=parseInt(h.borderBottomWidth,10),T=parseInt(h.paddingBottom,10),N=C+R+I+T+M,L=Math.min(w.offsetHeight*5,N),k=window.getComputedStyle(y),p=parseInt(k.paddingTop,10),P=parseInt(k.paddingBottom,10),B=$.top+$.height/2-Qi,E=re-B,F=w.offsetHeight/2,j=w.offsetTop+F,z=C+R+j,W=N-z;if(z<=B){const X=w===Q[Q.length-1].ref.current;a.style.bottom="0px";const ee=c.clientHeight-y.offsetTop-y.offsetHeight,_e=Math.max(E,F+(X?P:0)+ee+M),ce=z+_e;a.style.height=ce+"px"}else{const X=w===Q[0].ref.current;a.style.top="0px";const _e=Math.max(B,C+y.offsetTop+(X?p:0)+F)+W;a.style.height=_e+"px",y.scrollTop=z-B+y.offsetTop}a.style.margin=`${Qi}px 0`,a.style.minHeight=L+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,x,s.dir,n]);un(()=>S(),[S]);const[A,_]=g.useState();un(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const D=g.useCallback($=>{$&&m.current===!0&&(S(),b==null||b(),m.current=!1)},[S,b]);return g.createElement(RB,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:D},g.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A}},g.createElement(Je.div,me({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),w3=g.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Qi,...s}=t,o=fg(r);return g.createElement(_D,me({},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)"}}))}),[RB,PB]=$l(gl,{}),E3="SelectViewport",TB=g.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=b0(E3,r),s=PB(E3,r),o=At(e,i.onViewportChange),a=g.useRef(0);return g.createElement(g.Fragment,null,g.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}"}}),g.createElement(x0.Slot,{scope:r},g.createElement(Je.div,me({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Se(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-Qi*2,m=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(m,y);if(w0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),_B="SelectGroup",[MB,dee]=$l(_B),IB=g.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=Xs();return g.createElement(MB,{scope:r,id:i},g.createElement(Je.div,me({role:"group","aria-labelledby":i},n,{ref:e})))}),np="SelectItem",[NB,$B]=$l(np),DB=g.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=fa(np,r),l=b0(np,r),c=a.value===n,[f,u]=g.useState(s??""),[d,v]=g.useState(!1),m=At(e,x=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,x,n,i)}),y=Xs(),w=()=>{i||(a.onValueChange(n),a.onOpenChange(!1))};return g.createElement(NB,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:g.useCallback(x=>{u(b=>{var S;return b||((S=x==null?void 0:x.textContent)!==null&&S!==void 0?S:"").trim()})},[])},g.createElement(x0.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},g.createElement(Je.div,me({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:m,onFocus:Se(o.onFocus,()=>v(!0)),onBlur:Se(o.onBlur,()=>v(!1)),onPointerUp:Se(o.onPointerUp,w),onPointerMove:Se(o.onPointerMove,x=>{if(i){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(o.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:Se(o.onKeyDown,x=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&x.key===" "||(hB.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})}))))}),ed="SelectItemText",OB=g.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=fa(ed,r),a=b0(ed,r),l=$B(ed,r),c=mB(ed,r),[f,u]=g.useState(null),d=At(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,m=g.useMemo(()=>g.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return un(()=>(y(m),()=>w(m)),[y,w,m]),g.createElement(g.Fragment,null,g.createElement(Je.span,me({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?vo.createPortal(s.children,o.valueNode):null)}),kA=g.forwardRef((t,e)=>{const{value:r,...n}=t,i=g.useRef(null),s=At(e,i),o=Ym(r);return g.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]),g.createElement(SA,{asChild:!0},g.createElement("select",me({},n,{ref:s,defaultValue:r})))});kA.displayName="BubbleSelect";function RA(t){const e=Tn(t),r=g.useRef(""),n=g.useRef(0),i=g.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=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function PA(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=LB(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 LB(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const BB=gB,FB=bB,jB=EB,zB=CB,UB=SB,VB=TB,qB=IB,HB=DB,GB=OB;var WB="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11rb fyvr12rh fyvr11nj",KB="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12vk fyvr12vl fyvr12ve fyvr12vf fyvr11h0 fyvr11jw fyvr11ko fyvr12tz fyvr12tv fyvr12rh fyvr12ut fyvr12uj",YB="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rh fyvr118c fyvr11jw fyvr11n2 fyvr12tz",QB=Lt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const JB=g.forwardRef(({children:t,className:e,...r},n)=>K.jsx(HB,{className:Xr(KB,e),...r,ref:n,children:K.jsx(GB,{children:t})})),TA=g.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 K.jsx(_l,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:K.jsxs(BB,{disabled:n,name:l,...u,children:[K.jsxs(FB,{id:i??l,className:Xr(YB,QB({borderRadius:r})),ref:e,children:[K.jsx(jB,{placeholder:f}),K.jsx(ie,{as:zB,display:"inline-flex",children:K.jsx(pS,{})})]}),K.jsx(UB,{className:WB,children:K.jsx(VB,{children:K.jsx(qB,{children:c.map(({value:d,label:v,...m})=>K.jsx(JB,{value:d,...m,children:v},d))})})})]})})});g.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?K.jsx(lg,{icon:Xm,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return K.jsx(gr,{ref:e,name:s,leftIcon:C$,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var XB=Lt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const ps=g.forwardRef((t,e)=>{const{size:r="md",...n}=t;return K.jsx(ie,{className:XB({size:r}),color:"text50",ref:e,...n,children:K.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[K.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),K.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});g.forwardRef(({children:t},e)=>K.jsx(ie,{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 _A="Switch",[ZB,hee]=_r(_A);ZB(_A);Lt({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12ux",false:"nwwh3zb"},disabled:{true:"fyvr12uh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11rn fyvr12rn"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rb"],[{active:!0,variant:"line"},"fyvr12rh"],[{active:!1,variant:"line"},"fyvr12rb"]]});const MA="Tabs",[eF,vee]=_r(MA,[Nl]);Nl();eF(MA);var tF="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";g.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return K.jsxs(ie,{className:tF,ref:e,background:"buttonGlass",...i,children:[r&&K.jsx(r,{size:"xs"}),K.jsx(Le,{children:n})]})});const rF="ToastProvider",[nF,yee,iF]=d0("Toast"),[IA,pee]=_r("Toast",[iF]),[mee,NA]=IA(rF),C3="toast.viewportPause",S3="toast.viewportResume",w0="Toast",sF="toast.swipeStart",oF="toast.swipeMove",aF="toast.swipeCancel",lF="toast.swipeEnd",[cF,fF]=IA(w0,{onClose(){}}),uF=g.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,...m}=t,y=NA(w0,r),[w,x]=g.useState(null),b=At(e,h=>x(h)),S=g.useRef(null),A=g.useRef(null),_=i||y.duration,D=g.useRef(0),$=g.useRef(_),O=g.useRef(0),{onToastAdd:H,onToastRemove:Y}=y,Q=Tn(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),re=g.useCallback(h=>{!h||h===1/0||(window.clearTimeout(O.current),D.current=new Date().getTime(),O.current=window.setTimeout(Q,h))},[Q]);g.useEffect(()=>{const h=y.viewport;if(h){const C=()=>{re($.current),c==null||c()},R=()=>{const M=new Date().getTime()-D.current;$.current=$.current-M,window.clearTimeout(O.current),l==null||l()};return h.addEventListener(C3,R),h.addEventListener(S3,C),()=>{h.removeEventListener(C3,R),h.removeEventListener(S3,C)}}},[y.viewport,_,l,c,re]),g.useEffect(()=>{s&&!y.isClosePausedRef.current&&re(_)},[s,_,y.isClosePausedRef,re]),g.useEffect(()=>(H(),()=>Y()),[H,Y]);const I=g.useMemo(()=>w?DA(w):null,[w]);return y.viewport?g.createElement(g.Fragment,null,I&&g.createElement(dF,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},I),g.createElement(cF,{scope:r,onClose:Q},vo.createPortal(g.createElement(nF.ItemSlot,{scope:r},g.createElement(Q$,{asChild:!0,onEscapeKeyDown:Se(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||Q(),y.isFocusedToastEscapeKeyDownRef.current=!1})},g.createElement(Je.li,me({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},m,{ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Se(t.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,Q()))}),onPointerDown:Se(t.onPointerDown,h=>{h.button===0&&(S.current={x:h.clientX,y:h.clientY})}),onPointerMove:Se(t.onPointerMove,h=>{if(!S.current)return;const C=h.clientX-S.current.x,R=h.clientY-S.current.y,M=!!A.current,T=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=T?N(0,C):0,k=T?0:N(0,R),p=h.pointerType==="touch"?10:2,P={x:L,y:k},B={originalEvent:h,delta:P};M?(A.current=P,td(oF,u,B,{discrete:!1})):A3(P,y.swipeDirection,p)?(A.current=P,td(sF,f,B,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(C)>p||Math.abs(R)>p)&&(S.current=null)}),onPointerUp:Se(t.onPointerUp,h=>{const C=A.current,R=h.target;if(R.hasPointerCapture(h.pointerId)&&R.releasePointerCapture(h.pointerId),A.current=null,S.current=null,C){const M=h.currentTarget,T={originalEvent:h,delta:C};A3(C,y.swipeDirection,y.swipeThreshold)?td(lF,v,T,{discrete:!0}):td(aF,d,T,{discrete:!0}),M.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});uF.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${w0}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const dF=t=>{const{__scopeToast:e,children:r,...n}=t,i=NA(w0,e),[s,o]=g.useState(!1),[a,l]=g.useState(!1);return mF(()=>o(!0)),g.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:g.createElement(jS,{asChild:!0},g.createElement(SA,n,s&&g.createElement(g.Fragment,null,i.label," ",r)))},hF="ToastAction",vF=g.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?g.createElement($A,{altText:r,asChild:!0},g.createElement(pF,me({},n,{ref:e}))):null});vF.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${hF}\``)}};const yF="ToastClose",pF=g.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=fF(yF,r);return g.createElement($A,{asChild:!0},g.createElement(Je.button,me({type:"button"},n,{ref:e,onClick:Se(t.onClick,i.onClose)})))}),$A=g.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return g.createElement(Je.div,me({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function DA(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),gF(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(...DA(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?Jm(i,s):i.dispatchEvent(s)}const A3=(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 mF(t=()=>{}){const e=Tn(t);un(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function gF(t){return t.nodeType===t.ELEMENT_NODE}Lt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});g.createContext(null);var xF="_15pztn2",bF="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rh fyvr128 fyvr11h0";g.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 K.jsx(_l,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:K.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:Xr(bF,d&&xF),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...v})})});const ip=["dark","light"],wF="dark",EF="data-theme",OA="@sequence.theme",CF=()=>{const t=localStorage.getItem(OA);return ip.includes(t)?t:wF},SF=g.createContext(null),AF=t=>{const[e,r]=g.useState(t.theme||CF());g.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),g.useEffect(()=>{t.theme&&ip.includes(t.theme)&&r(t.theme)},[t.theme]),g.useEffect(()=>{const i=document.querySelector(":root");i&&i.setAttribute(EF,e)},[e]);const n=g.useMemo(()=>({theme:e,setTheme:i=>{ip.includes(i)&&(localStorage.setItem(OA,i),r(i))}}),[e]);return K.jsx(SF.Provider,{value:n,children:t.children})};var kF="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11pt fyvr128 fyvr15o fyvr11h0",RF="bnrrebe",PF=Lt({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});g.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return K.jsx(ie,{className:Xr(r,PF({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?K.jsx(lL,{className:RF,disableAnimation:n,src:s}):K.jsx(Le,{className:kF,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})});const[E0,gee]=_r("Tooltip",[Il]);Il();const TF="TooltipProvider";E0(TF);const LA="Tooltip";E0(LA);const _F="TooltipPortal";E0(_F,{forceMount:void 0});E0(LA,{isInside:!1});/** * @remix-run/router v1.7.2 * * Copyright (c) Remix Software Inc. @@ -107,8 +107,8 @@ Defaulting to \`null\`.`}const cA="Radio",[DL,fA]=_r(cA),[OL,LL]=DL(cA),BL=g.for * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function kt(){return kt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Qo(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function EF(){return Math.random().toString(36).substr(2,8)}function x3(t,e){return{usr:t.state,key:t.key,idx:e}}function zf(t,e,r,n){return r===void 0&&(r=null),kt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ui(e):e,{state:r,key:e&&e.key||n||EF()})}function du(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 Ui(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 CF(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Qt.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(kt({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=Qt.Pop;let w=f(),b=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:b})}function d(w,b){a=Qt.Push;let x=zf(y.location,w,b);r&&r(x,w),c=f()+1;let S=x3(x,c),A=y.createHref(x);try{o.pushState(S,"",A)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(A)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,b){a=Qt.Replace;let x=zf(y.location,w,b);r&&r(x,w),c=f();let S=x3(x,c),A=y.createHref(x);o.replaceState(S,"",A),s&&l&&l({action:a,location:y.location,delta:0})}function m(w){let b=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:du(w);return He(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}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(g3,u),l=w,()=>{i.removeEventListener(g3,u),l=null}},createHref(w){return e(i,w)},createURL:m,encodeLocation(w){let b=m(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var rr;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(rr||(rr={}));const SF=new Set(["lazy","caseSensitive","path","id","index","children"]);function AF(t){return t.index===!0}function Xy(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(He(i.index!==!0||!i.children,"Cannot specify children on an index route"),He(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),AF(i)){let l=kt({},i,e(i),{id:a});return n[a]=l,l}else{let l=kt({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=Xy(i.children,e,o,n)),l}})}function za(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?Ui(e):e,i=hu(n.pathname||"/",r);if(i==null)return null;let s=TA(t);kF(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("/")&&(He(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=Fo([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),TA(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:NF(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 _A(s.path))i(s,o,l)}),e}function _A(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=_A(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 kF(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:$F(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const RF=/^:\w+$/,PF=3,TF=2,_F=1,MF=10,IF=-2,b3=t=>t==="*";function NF(t,e){let r=t.split("/"),n=r.length;return r.some(b3)&&(n+=IF),e&&(n+=TF),r.filter(i=>!b3(i)).reduce((i,s)=>i+(RF.test(s)?PF:s===""?_F:MF),n)}function $F(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 DF(t,e){let{routesMeta:r}=t,n={},i="/",s=[];for(let o=0;o{if(f==="*"){let d=a[u]||"";o=s.slice(0,s.length-d.length).replace(/(.)\/+$/,"$1")}return c[f]=FF(a[u]||"",f),c},{}),pathname:s,pathnameBase:o,pattern:t}}function LF(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Qo(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)=>(n.push(a),"/([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function BF(t){try{return decodeURI(t)}catch(e){return Qo(!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 FF(t,e){try{return decodeURIComponent(t)}catch(r){return Qo(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function hu(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 jF(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Ui(t):t;return{pathname:r?r.startsWith("/")?r:zF(r,e):e,search:qF(n),hash:HF(i)}}function zF(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 q1(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 MA(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function UF(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Ui(t):(i=kt({},t),He(!i.pathname||!i.pathname.includes("?"),q1("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),q1("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),q1("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(n||o==null)a=r;else{let u=e.length-1;if(o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?e[u]:"/"}let l=jF(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Fo=t=>t.join("/").replace(/\/\/+/g,"/"),VF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),qF=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,HF=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class ig{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 IA(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const NA=["post","put","patch","delete"],GF=new Set(NA),WF=["get",...NA],KF=new Set(WF),YF=new Set([301,302,303,307,308]),QF=new Set([307,308]),H1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},JF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$A=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,XF=t=>({hasErrorBoundary:!!t.hasErrorBoundary});function ZF(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;He(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 G=t.detectErrorBoundary;i=q=>({hasErrorBoundary:G(q)})}else i=XF;let s={},o=Xy(t.routes,i,void 0,s),a,l=t.basename||"/",c=kt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),f=null,u=new Set,d=null,v=null,m=null,y=t.hydrationData!=null,w=za(o,t.history.location,l),b=null;if(w==null){let G=xn(404,{pathname:t.history.location.pathname}),{matches:q,route:J}=P3(o);w=q,b={[J.id]:G}}let x=!w.some(G=>G.route.lazy)&&(!w.some(G=>G.route.loader)||t.hydrationData!=null),S,A={historyAction:t.history.action,location:t.history.location,matches:w,initialized:x,navigation:H1,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},_=Qt.Pop,D=!1,$,O=!1,H=!1,Y=[],Q=[],re=new Map,I=0,h=-1,C=new Map,R=new Set,M=new Map,T=new Map,N=new Map,L=!1;function k(){return f=t.history.listen(G=>{let{action:q,location:J,delta:he}=G;if(L){L=!1;return}Qo(N.size===0||he!=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 ye=ct({currentLocation:A.location,nextLocation:J,historyAction:q});if(ye&&he!=null){L=!0,t.history.go(he*-1),et(ye,{state:"blocked",location:J,proceed(){et(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),t.history.go(he)},reset(){let ve=new Map(A.blockers);ve.set(ye,cc),B({blockers:ve})}});return}return z(q,J)}),A.initialized||z(Qt.Pop,A.location),S}function p(){f&&f(),u.clear(),$&&$.abort(),A.fetchers.forEach((G,q)=>Zr(q)),A.blockers.forEach((G,q)=>fi(q))}function P(G){return u.add(G),()=>u.delete(G)}function B(G){A=kt({},A,G),u.forEach(q=>q(A))}function E(G,q){var J,he;let ye=A.actionData!=null&&A.navigation.formMethod!=null&&Qn(A.navigation.formMethod)&&A.navigation.state==="loading"&&((J=G.state)==null?void 0:J._isRedirect)!==!0,ve;q.actionData?Object.keys(q.actionData).length>0?ve=q.actionData:ve=null:ye?ve=A.actionData:ve=null;let Ee=q.loaderData?R3(A.loaderData,q.loaderData,q.matches||[],q.errors):A.loaderData,de=A.blockers;de.size>0&&(de=new Map(de),de.forEach((Ve,Me)=>de.set(Me,cc)));let fe=D===!0||A.navigation.formMethod!=null&&Qn(A.navigation.formMethod)&&((he=G.state)==null?void 0:he._isRedirect)!==!0;a&&(o=a,a=void 0),O||_===Qt.Pop||(_===Qt.Push?t.history.push(G,G.state):_===Qt.Replace&&t.history.replace(G,G.state)),B(kt({},q,{actionData:ve,loaderData:Ee,historyAction:_,location:G,initialized:!0,navigation:H1,revalidation:"idle",restoreScrollPosition:ut(G,q.matches||A.matches),preventScrollReset:fe,blockers:de})),_=Qt.Pop,D=!1,O=!1,H=!1,Y=[],Q=[]}async function F(G,q){if(typeof G=="number"){t.history.go(G);return}let J=Zy(A.location,A.matches,l,c.v7_prependBasename,G,q==null?void 0:q.fromRouteId,q==null?void 0:q.relative),{path:he,submission:ye,error:ve}=w3(c.v7_normalizeFormMethod,!1,J,q),Ee=A.location,de=zf(A.location,he,q&&q.state);de=kt({},de,t.history.encodeLocation(de));let fe=q&&q.replace!=null?q.replace:void 0,Ve=Qt.Push;fe===!0?Ve=Qt.Replace:fe===!1||ye!=null&&Qn(ye.formMethod)&&ye.formAction===A.location.pathname+A.location.search&&(Ve=Qt.Replace);let Me=q&&"preventScrollReset"in q?q.preventScrollReset===!0:void 0,be=ct({currentLocation:Ee,nextLocation:de,historyAction:Ve});if(be){et(be,{state:"blocked",location:de,proceed(){et(be,{state:"proceeding",proceed:void 0,reset:void 0,location:de}),F(G,q)},reset(){let rt=new Map(A.blockers);rt.set(be,cc),B({blockers:rt})}});return}return await z(Ve,de,{submission:ye,pendingError:ve,preventScrollReset:Me,replace:q&&q.replace})}function j(){if(je(),B({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){z(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}z(_||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function z(G,q,J){$&&$.abort(),$=null,_=G,O=(J&&J.startUninterruptedRevalidation)===!0,Hi(A.location,A.matches),D=(J&&J.preventScrollReset)===!0;let he=a||o,ye=J&&J.overrideNavigation,ve=za(he,q,l);if(!ve){let rt=xn(404,{pathname:q.pathname}),{matches:ke,route:Ge}=P3(he);Ln(),E(q,{matches:ke,loaderData:{},errors:{[Ge.id]:rt}});return}if(A.initialized&&!H&&ij(A.location,q)&&!(J&&J.submission&&Qn(J.submission.formMethod))){E(q,{matches:ve});return}$=new AbortController;let Ee=uc(t.history,q,$.signal,J&&J.submission),de,fe;if(J&&J.pendingError)fe={[Ua(ve).route.id]:J.pendingError};else if(J&&J.submission&&Qn(J.submission.formMethod)){let rt=await W(Ee,q,J.submission,ve,{replace:J.replace});if(rt.shortCircuited)return;de=rt.pendingActionData,fe=rt.pendingActionError,ye=Zu(q,J.submission),Ee=new Request(Ee.url,{signal:Ee.signal})}let{shortCircuited:Ve,loaderData:Me,errors:be}=await ne(Ee,q,ve,ye,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,de,fe);Ve||($=null,E(q,kt({matches:ve},de?{actionData:de}:{},{loaderData:Me,errors:be})))}async function W(G,q,J,he,ye){ye===void 0&&(ye={}),je();let ve=cj(q,J);B({navigation:ve});let Ee,de=tp(he,q);if(!de.route.action&&!de.route.lazy)Ee={type:rr.error,error:xn(405,{method:G.method,pathname:q.pathname,routeId:de.route.id})};else if(Ee=await fc("action",G,de,he,s,i,l),G.signal.aborted)return{shortCircuited:!0};if(el(Ee)){let fe;return ye&&ye.replace!=null?fe=ye.replace:fe=Ee.location===A.location.pathname+A.location.search,await xe(A,Ee,{submission:J,replace:fe}),{shortCircuited:!0}}if(lf(Ee)){let fe=Ua(he,de.route.id);return(ye&&ye.replace)!==!0&&(_=Qt.Push),{pendingActionData:{},pendingActionError:{[fe.route.id]:Ee.error}}}if(No(Ee))throw xn(400,{type:"defer-action"});return{pendingActionData:{[de.route.id]:Ee.data}}}async function ne(G,q,J,he,ye,ve,Ee,de,fe){let Ve=he||Zu(q,ye),Me=ye||ve||M3(Ve),be=a||o,[rt,ke]=E3(t.history,A,J,Me,q,H,Y,Q,M,R,be,l,de,fe);if(Ln(De=>!(J&&J.some($e=>$e.route.id===De))||rt&&rt.some($e=>$e.route.id===De)),h=++I,rt.length===0&&ke.length===0){let De=ci();return E(q,kt({matches:J,loaderData:{},errors:fe||null},de?{actionData:de}:{},De?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!O){ke.forEach($e=>{let qe=A.fetchers.get($e.key),Fn=dc(void 0,qe?qe.data:void 0);A.fetchers.set($e.key,Fn)});let De=de||A.actionData;B(kt({navigation:Ve},De?Object.keys(De).length===0?{actionData:null}:{actionData:De}:{},ke.length>0?{fetchers:new Map(A.fetchers)}:{}))}ke.forEach(De=>{re.has(De.key)&&Ie(De.key),De.controller&&re.set(De.key,De.controller)});let Ge=()=>ke.forEach(De=>Ie(De.key));$&&$.signal.addEventListener("abort",Ge);let{results:Mr,loaderResults:Xe,fetcherResults:nt}=await Er(A.matches,J,rt,ke,G);if(G.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ge),ke.forEach(De=>re.delete(De.key));let vr=T3(Mr);if(vr){if(vr.idx>=rt.length){let De=ke[vr.idx-rt.length].key;R.add(De)}return await xe(A,vr.result,{replace:Ee}),{shortCircuited:!0}}let{loaderData:ze,errors:tt}=k3(A,J,rt,Xe,fe,ke,nt,T);T.forEach((De,$e)=>{De.subscribe(qe=>{(qe||De.done)&&T.delete($e)})});let Bn=ci(),it=lt(h),st=Bn||it||ke.length>0;return kt({loaderData:ze,errors:tt},st?{fetchers:new Map(A.fetchers)}:{})}function X(G){return A.fetchers.get(G)||JF}function ee(G,q,J,he){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.");re.has(G)&&Ie(G);let ye=a||o,ve=Zy(A.location,A.matches,l,c.v7_prependBasename,J,q,he==null?void 0:he.relative),Ee=za(ye,ve,l);if(!Ee){Ye(G,q,xn(404,{pathname:ve}));return}let{path:de,submission:fe,error:Ve}=w3(c.v7_normalizeFormMethod,!0,ve,he);if(Ve){Ye(G,q,Ve);return}let Me=tp(Ee,de);if(D=(he&&he.preventScrollReset)===!0,fe&&Qn(fe.formMethod)){_e(G,q,de,Me,Ee,fe);return}M.set(G,{routeId:q,path:de}),ce(G,q,de,Me,Ee,fe)}async function _e(G,q,J,he,ye,ve){if(je(),M.delete(G),!he.route.action&&!he.route.lazy){let Ae=xn(405,{method:ve.formMethod,pathname:J,routeId:q});Ye(G,q,Ae);return}let Ee=A.fetchers.get(G),de=fj(ve,Ee);A.fetchers.set(G,de),B({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=uc(t.history,J,fe.signal,ve);re.set(G,fe);let Me=I,be=await fc("action",Ve,he,ye,s,i,l);if(Ve.signal.aborted){re.get(G)===fe&&re.delete(G);return}if(el(be))if(re.delete(G),h>Me){let Ae=Ca(void 0);A.fetchers.set(G,Ae),B({fetchers:new Map(A.fetchers)});return}else{R.add(G);let Ae=dc(ve);return A.fetchers.set(G,Ae),B({fetchers:new Map(A.fetchers)}),xe(A,be,{submission:ve,isFetchActionRedirect:!0})}if(lf(be)){Ye(G,q,be.error);return}if(No(be))throw xn(400,{type:"defer-action"});let rt=A.navigation.location||A.location,ke=uc(t.history,rt,fe.signal),Ge=a||o,Mr=A.navigation.state!=="idle"?za(Ge,A.navigation.location,l):A.matches;He(Mr,"Didn't find any matches after fetcher action");let Xe=++I;C.set(G,Xe);let nt=dc(ve,be.data);A.fetchers.set(G,nt);let[vr,ze]=E3(t.history,A,Mr,ve,rt,H,Y,Q,M,R,Ge,l,{[he.route.id]:be.data},void 0);ze.filter(Ae=>Ae.key!==G).forEach(Ae=>{let Ze=Ae.key,jn=A.fetchers.get(Ze),ui=dc(void 0,jn?jn.data:void 0);A.fetchers.set(Ze,ui),re.has(Ze)&&Ie(Ze),Ae.controller&&re.set(Ze,Ae.controller)}),B({fetchers:new Map(A.fetchers)});let tt=()=>ze.forEach(Ae=>Ie(Ae.key));fe.signal.addEventListener("abort",tt);let{results:Bn,loaderResults:it,fetcherResults:st}=await Er(A.matches,Mr,vr,ze,ke);if(fe.signal.aborted)return;fe.signal.removeEventListener("abort",tt),C.delete(G),re.delete(G),ze.forEach(Ae=>re.delete(Ae.key));let De=T3(Bn);if(De){if(De.idx>=vr.length){let Ae=ze[De.idx-vr.length].key;R.add(Ae)}return xe(A,De.result)}let{loaderData:$e,errors:qe}=k3(A,A.matches,vr,it,void 0,ze,st,T);if(A.fetchers.has(G)){let Ae=Ca(be.data);A.fetchers.set(G,Ae)}let Fn=lt(Xe);A.navigation.state==="loading"&&Xe>h?(He(_,"Expected pending action"),$&&$.abort(),E(A.navigation.location,{matches:Mr,loaderData:$e,errors:qe,fetchers:new Map(A.fetchers)})):(B(kt({errors:qe,loaderData:R3(A.loaderData,$e,Mr,qe)},Fn||ze.length>0?{fetchers:new Map(A.fetchers)}:{})),H=!1)}async function ce(G,q,J,he,ye,ve){let Ee=A.fetchers.get(G),de=dc(ve,Ee?Ee.data:void 0);A.fetchers.set(G,de),B({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=uc(t.history,J,fe.signal);re.set(G,fe);let Me=I,be=await fc("loader",Ve,he,ye,s,i,l);if(No(be)&&(be=await LA(be,Ve.signal,!0)||be),re.get(G)===fe&&re.delete(G),Ve.signal.aborted)return;if(el(be))if(h>Me){let ke=Ca(void 0);A.fetchers.set(G,ke),B({fetchers:new Map(A.fetchers)});return}else{R.add(G),await xe(A,be);return}if(lf(be)){let ke=Ua(A.matches,q);A.fetchers.delete(G),B({fetchers:new Map(A.fetchers),errors:{[ke.route.id]:be.error}});return}He(!No(be),"Unhandled fetcher deferred data");let rt=Ca(be.data);A.fetchers.set(G,rt),B({fetchers:new Map(A.fetchers)})}async function xe(G,q,J){let{submission:he,replace:ye,isFetchActionRedirect:ve}=J===void 0?{}:J;q.revalidate&&(H=!0);let Ee=zf(G.location,q.location,kt({_isRedirect:!0},ve?{_isFetchActionRedirect:!0}:{}));if(He(Ee,"Expected a location on the redirect navigation"),$A.test(q.location)&&r){let Ve=t.history.createURL(q.location),Me=hu(Ve.pathname,l)==null;if(e.location.origin!==Ve.origin||Me){ye?e.location.replace(q.location):e.location.assign(q.location);return}}$=null;let de=ye===!0?Qt.Replace:Qt.Push,fe=he||M3(G.navigation);if(QF.has(q.status)&&fe&&Qn(fe.formMethod))await z(de,Ee,{submission:kt({},fe,{formAction:q.location}),preventScrollReset:D});else if(ve)await z(de,Ee,{overrideNavigation:Zu(Ee),fetcherSubmission:fe,preventScrollReset:D});else{let Ve=Zu(Ee,fe);await z(de,Ee,{overrideNavigation:Ve,preventScrollReset:D})}}async function Er(G,q,J,he,ye){let ve=await Promise.all([...J.map(fe=>fc("loader",ye,fe,q,s,i,l)),...he.map(fe=>fe.matches&&fe.match&&fe.controller?fc("loader",uc(t.history,fe.path,fe.controller.signal),fe.match,fe.matches,s,i,l):{type:rr.error,error:xn(404,{pathname:fe.path})})]),Ee=ve.slice(0,J.length),de=ve.slice(J.length);return await Promise.all([_3(G,J,Ee,Ee.map(()=>ye.signal),!1,A.loaderData),_3(G,he.map(fe=>fe.match),de,he.map(fe=>fe.controller?fe.controller.signal:null),!0)]),{results:ve,loaderResults:Ee,fetcherResults:de}}function je(){H=!0,Y.push(...Ln()),M.forEach((G,q)=>{re.has(q)&&(Q.push(q),Ie(q))})}function Ye(G,q,J){let he=Ua(A.matches,q);Zr(G),B({errors:{[he.route.id]:J},fetchers:new Map(A.fetchers)})}function Zr(G){let q=A.fetchers.get(G);re.has(G)&&!(q&&q.state==="loading"&&C.has(G))&&Ie(G),M.delete(G),C.delete(G),R.delete(G),A.fetchers.delete(G)}function Ie(G){let q=re.get(G);He(q,"Expected fetch controller: "+G),q.abort(),re.delete(G)}function at(G){for(let q of G){let J=X(q),he=Ca(J.data);A.fetchers.set(q,he)}}function ci(){let G=[],q=!1;for(let J of R){let he=A.fetchers.get(J);He(he,"Expected fetcher: "+J),he.state==="loading"&&(R.delete(J),G.push(J),q=!0)}return at(G),q}function lt(G){let q=[];for(let[J,he]of C)if(he0}function dt(G,q){let J=A.blockers.get(G)||cc;return N.get(G)!==q&&N.set(G,q),J}function fi(G){A.blockers.delete(G),N.delete(G)}function et(G,q){let J=A.blockers.get(G)||cc;He(J.state==="unblocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="proceeding"||J.state==="blocked"&&q.state==="unblocked"||J.state==="proceeding"&&q.state==="unblocked","Invalid blocker state transition: "+J.state+" -> "+q.state);let he=new Map(A.blockers);he.set(G,q),B({blockers:he})}function ct(G){let{currentLocation:q,nextLocation:J,historyAction:he}=G;if(N.size===0)return;N.size>1&&Qo(!1,"A router only supports one blocker at a time");let ye=Array.from(N.entries()),[ve,Ee]=ye[ye.length-1],de=A.blockers.get(ve);if(!(de&&de.state==="proceeding")&&Ee({currentLocation:q,nextLocation:J,historyAction:he}))return ve}function Ln(G){let q=[];return T.forEach((J,he)=>{(!G||G(he))&&(J.cancel(),q.push(he),T.delete(he))}),q}function ht(G,q,J){if(d=G,m=q,v=J||null,!y&&A.navigation===H1){y=!0;let he=ut(A.location,A.matches);he!=null&&B({restoreScrollPosition:he})}return()=>{d=null,m=null,v=null}}function ft(G,q){return v&&v(G,q.map(he=>lj(he,A.loaderData)))||G.key}function Hi(G,q){if(d&&m){let J=ft(G,q);d[J]=m()}}function ut(G,q){if(d){let J=ft(G,q),he=d[J];if(typeof he=="number")return he}return null}function vt(G){s={},a=Xy(G,i,void 0,s)}return S={get basename(){return l},get state(){return A},get routes(){return o},initialize:k,subscribe:P,enableScrollRestoration:ht,navigate:F,fetch:ee,revalidate:j,createHref:G=>t.history.createHref(G),encodeLocation:G=>t.history.encodeLocation(G),getFetcher:X,deleteFetcher:Zr,dispose:p,getBlocker:dt,deleteBlocker:fi,_internalFetchControllers:re,_internalActiveDeferreds:T,_internalSetRoutes:vt},S}function ej(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function Zy(t,e,r,n,i,s,o){let a,l;if(s!=null&&o!=="path"){a=[];for(let f of e)if(a.push(f),f.route.id===s){l=f;break}}else a=e,l=e[e.length-1];let c=UF(i||".",MA(a).map(f=>f.pathnameBase),hu(t.pathname,r)||t.pathname,o==="path");return i==null&&(c.search=t.search,c.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!sg(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Fo([r,c.pathname])),du(c)}function w3(t,e,r,n){if(!n||!ej(n))return{path:r};if(n.formMethod&&!aj(n.formMethod))return{path:r,error:xn(405,{method:n.formMethod})};let i=()=>({path:r,error:xn(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=OA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Qn(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,m)=>{let[y,w]=m;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(!Qn(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()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=ep(n.formData),c=n.formData;else if(n.body instanceof FormData)l=ep(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=A3(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=A3(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(Qn(f.formMethod))return{path:r,submission:f};let u=Ui(r);return e&&u.search&&sg(u.search)&&l.append("index",""),u.search="?"+l,{path:du(u),submission:f}}function tj(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 E3(t,e,r,n,i,s,o,a,l,c,f,u,d,v){let m=v?Object.values(v)[0]:d?Object.values(d)[0]:void 0,y=t.createURL(e.location),w=t.createURL(i),b=v?Object.keys(v)[0]:void 0,S=tj(r,b).filter((_,D)=>{if(_.route.lazy)return!0;if(_.route.loader==null)return!1;if(rj(e.loaderData,e.matches[D],_)||o.some(H=>H===_.route.id))return!0;let $=e.matches[D],O=_;return C3(_,kt({currentUrl:y,currentParams:$.params,nextUrl:w,nextParams:O.params},n,{actionResult:m,defaultShouldRevalidate:s||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||DA($,O)}))}),A=[];return l.forEach((_,D)=>{if(!r.some(Q=>Q.route.id===_.routeId))return;let $=za(f,_.path,u);if(!$){A.push({key:D,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let O=e.fetchers.get(D),H=tp($,_.path),Y=!1;c.has(D)?Y=!1:a.includes(D)?Y=!0:O&&O.state!=="idle"&&O.data===void 0?Y=s:Y=C3(H,kt({currentUrl:y,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:m,defaultShouldRevalidate:s})),Y&&A.push({key:D,routeId:_.routeId,path:_.path,matches:$,match:H,controller:new AbortController})}),[S,A]}function rj(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function DA(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function C3(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function S3(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];He(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Qo(!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&&!SF.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,kt({},e(i),{lazy:void 0}))}async function fc(t,e,r,n,i,s,o,a){a===void 0&&(a={});let l,c,f,u=m=>{let y,w=new Promise((b,x)=>y=x);return f=()=>y(),e.signal.addEventListener("abort",f),Promise.race([m({request:e,params:r.params,context:a.requestContext}),w])};try{let m=r.route[t];if(r.route.lazy)if(m)c=(await Promise.all([u(m),S3(r.route,s,i)]))[0];else if(await S3(r.route,s,i),m=r.route[t],m)c=await u(m);else if(t==="action"){let y=new URL(e.url),w=y.pathname+y.search;throw xn(405,{method:e.method,pathname:w,routeId:r.route.id})}else return{type:rr.data,data:void 0};else if(m)c=await u(m);else{let y=new URL(e.url),w=y.pathname+y.search;throw xn(404,{pathname:w})}He(c!==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(m){l=rr.error,c=m}finally{f&&e.signal.removeEventListener("abort",f)}if(oj(c)){let m=c.status;if(YF.has(m)){let b=c.headers.get("Location");if(He(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!$A.test(b))b=Zy(new URL(e.url),n.slice(0,n.indexOf(r)+1),o,!0,b);else if(!a.isStaticRequest){let x=new URL(e.url),S=b.startsWith("//")?new URL(x.protocol+b):new URL(b),A=hu(S.pathname,o)!=null;S.origin===x.origin&&A&&(b=S.pathname+S.search+S.hash)}if(a.isStaticRequest)throw c.headers.set("Location",b),c;return{type:rr.redirect,status:m,location:b,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:l||rr.data,response:c};let y,w=c.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?y=await c.json():y=await c.text(),l===rr.error?{type:l,error:new ig(m,c.statusText,y),headers:c.headers}:{type:rr.data,data:y,statusCode:c.status,headers:c.headers}}if(l===rr.error)return{type:l,error:c};if(sj(c)){var d,v;return{type:rr.deferred,deferredData:c,statusCode:(d=c.init)==null?void 0:d.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:rr.data,data:c}}function uc(t,e,r,n){let i=t.createURL(OA(e)).toString(),s={signal:r};if(n&&Qn(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=ep(n.formData):s.body=n.formData}return new Request(i,s)}function ep(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function A3(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function nj(t,e,r,n,i){let s={},o=null,a,l=!1,c={};return r.forEach((f,u)=>{let d=e[u].route.id;if(He(!el(f),"Cannot handle redirect results in processLoaderData"),lf(f)){let v=Ua(t,d),m=f.error;n&&(m=Object.values(n)[0],n=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=m),s[d]=void 0,l||(l=!0,a=IA(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else No(f)?(i.set(d,f.deferredData),s[d]=f.deferredData.data):s[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(a=f.statusCode),f.headers&&(c[d]=f.headers)}),n&&(o=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function k3(t,e,r,n,i,s,o,a){let{loaderData:l,errors:c}=nj(e,r,n,i,a);for(let f=0;fn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function P3(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function xn(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 ig(t||500,o,new Error(a),!0)}function T3(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(el(r))return{result:r,idx:e}}}function OA(t){let e=typeof t=="string"?Ui(t):t;return du(kt({},e,{hash:""}))}function ij(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function No(t){return t.type===rr.deferred}function lf(t){return t.type===rr.error}function el(t){return(t&&t.type)===rr.redirect}function sj(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 oj(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function aj(t){return KF.has(t.toLowerCase())}function Qn(t){return GF.has(t.toLowerCase())}async function _3(t,e,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!DA(c,l)&&(s&&s[l.route.id])!==void 0;if(No(a)&&(i||f)){let u=n[o];He(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await LA(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function LA(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:rr.data,data:t.deferredData.unwrappedData}}catch(i){return{type:rr.error,error:i}}return{type:rr.data,data:t.deferredData.data}}}function sg(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function lj(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function tp(t,e){let r=typeof e=="string"?Ui(e).search:e.search;if(t[t.length-1].route.index&&sg(r||""))return t[t.length-1];let n=MA(t);return n[n.length-1]}function M3(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 Zu(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 cj(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 dc(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," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function fj(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," _hasFetcherDoneAnything ":!0}}function Ca(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}/** + */function kt(){return kt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function xl(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function IF(){return Math.random().toString(36).substr(2,8)}function R3(t,e){return{usr:t.state,key:t.key,idx:e}}function Uf(t,e,r,n){return r===void 0&&(r=null),kt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ws(e):e,{state:r,key:e&&e.key||n||IF()})}function hu(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 ws(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 NF(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Qt.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(kt({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=Qt.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=Qt.Push;let b=Uf(y.location,w,x);r&&r(b,w),c=f()+1;let S=R3(b,c),A=y.createHref(b);try{o.pushState(S,"",A)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(A)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,x){a=Qt.Replace;let b=Uf(y.location,w,x);r&&r(b,w),c=f();let S=R3(b,c),A=y.createHref(b);o.replaceState(S,"",A),s&&l&&l({action:a,location:y.location,delta:0})}function m(w){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof w=="string"?w:hu(w);return He(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(k3,u),l=w,()=>{i.removeEventListener(k3,u),l=null}},createHref(w){return e(i,w)},createURL:m,encodeLocation(w){let x=m(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var rr;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(rr||(rr={}));const $F=new Set(["lazy","caseSensitive","path","id","index","children"]);function DF(t){return t.index===!0}function sp(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(He(i.index!==!0||!i.children,"Cannot specify children on an index route"),He(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),DF(i)){let l=kt({},i,e(i),{id:a});return n[a]=l,l}else{let l=kt({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=sp(i.children,e,o,n)),l}})}function Ua(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?ws(e):e,i=vu(n.pathname||"/",r);if(i==null)return null;let s=BA(t);OF(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("/")&&(He(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=zo([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),BA(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:VF(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 FA(s.path))i(s,o,l)}),e}function FA(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=FA(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 OF(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:qF(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const LF=/^:\w+$/,BF=3,FF=2,jF=1,zF=10,UF=-2,P3=t=>t==="*";function VF(t,e){let r=t.split("/"),n=r.length;return r.some(P3)&&(n+=UF),e&&(n+=FF),r.filter(i=>!P3(i)).reduce((i,s)=>i+(LF.test(s)?BF:s===""?jF:zF),n)}function qF(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 HF(t,e){let{routesMeta:r}=t,n={},i="/",s=[];for(let o=0;o{if(f==="*"){let d=a[u]||"";o=s.slice(0,s.length-d.length).replace(/(.)\/+$/,"$1")}return c[f]=YF(a[u]||"",f),c},{}),pathname:s,pathnameBase:o,pattern:t}}function WF(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),xl(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)=>(n.push(a),"/([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function KF(t){try{return decodeURI(t)}catch(e){return xl(!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 YF(t,e){try{return decodeURIComponent(t)}catch(r){return xl(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function vu(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 QF(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?ws(t):t;return{pathname:r?r.startsWith("/")?r:JF(r,e):e,search:ej(n),hash:tj(i)}}function JF(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 Q1(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 jA(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function XF(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=ws(t):(i=kt({},t),He(!i.pathname||!i.pathname.includes("?"),Q1("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),Q1("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),Q1("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(n||o==null)a=r;else{let u=e.length-1;if(o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?e[u]:"/"}let l=QF(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const zo=t=>t.join("/").replace(/\/\/+/g,"/"),ZF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ej=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,tj=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class ug{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 zA(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const UA=["post","put","patch","delete"],rj=new Set(UA),nj=["get",...UA],ij=new Set(nj),sj=new Set([301,302,303,307,308]),oj=new Set([307,308]),J1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},aj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},VA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lj=t=>({hasErrorBoundary:!!t.hasErrorBoundary});function cj(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;He(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 G=t.detectErrorBoundary;i=q=>({hasErrorBoundary:G(q)})}else i=lj;let s={},o=sp(t.routes,i,void 0,s),a,l=t.basename||"/",c=kt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),f=null,u=new Set,d=null,v=null,m=null,y=t.hydrationData!=null,w=Ua(o,t.history.location,l),x=null;if(w==null){let G=xn(404,{pathname:t.history.location.pathname}),{matches:q,route:J}=O3(o);w=q,x={[J.id]:G}}let b=!w.some(G=>G.route.lazy)&&(!w.some(G=>G.route.loader)||t.hydrationData!=null),S,A={historyAction:t.history.action,location:t.history.location,matches:w,initialized:b,navigation:J1,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||x,fetchers:new Map,blockers:new Map},_=Qt.Pop,D=!1,$,O=!1,H=!1,Y=[],Q=[],re=new Map,I=0,h=-1,C=new Map,R=new Set,M=new Map,T=new Map,N=new Map,L=!1;function k(){return f=t.history.listen(G=>{let{action:q,location:J,delta:he}=G;if(L){L=!1;return}xl(N.size===0||he!=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 ye=ct({currentLocation:A.location,nextLocation:J,historyAction:q});if(ye&&he!=null){L=!0,t.history.go(he*-1),et(ye,{state:"blocked",location:J,proceed(){et(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),t.history.go(he)},reset(){let ve=new Map(A.blockers);ve.set(ye,fc),B({blockers:ve})}});return}return z(q,J)}),A.initialized||z(Qt.Pop,A.location),S}function p(){f&&f(),u.clear(),$&&$.abort(),A.fetchers.forEach((G,q)=>Zr(q)),A.blockers.forEach((G,q)=>fi(q))}function P(G){return u.add(G),()=>u.delete(G)}function B(G){A=kt({},A,G),u.forEach(q=>q(A))}function E(G,q){var J,he;let ye=A.actionData!=null&&A.navigation.formMethod!=null&&Qn(A.navigation.formMethod)&&A.navigation.state==="loading"&&((J=G.state)==null?void 0:J._isRedirect)!==!0,ve;q.actionData?Object.keys(q.actionData).length>0?ve=q.actionData:ve=null:ye?ve=A.actionData:ve=null;let Ee=q.loaderData?D3(A.loaderData,q.loaderData,q.matches||[],q.errors):A.loaderData,de=A.blockers;de.size>0&&(de=new Map(de),de.forEach((Ve,Me)=>de.set(Me,fc)));let fe=D===!0||A.navigation.formMethod!=null&&Qn(A.navigation.formMethod)&&((he=G.state)==null?void 0:he._isRedirect)!==!0;a&&(o=a,a=void 0),O||_===Qt.Pop||(_===Qt.Push?t.history.push(G,G.state):_===Qt.Replace&&t.history.replace(G,G.state)),B(kt({},q,{actionData:ve,loaderData:Ee,historyAction:_,location:G,initialized:!0,navigation:J1,revalidation:"idle",restoreScrollPosition:ut(G,q.matches||A.matches),preventScrollReset:fe,blockers:de})),_=Qt.Pop,D=!1,O=!1,H=!1,Y=[],Q=[]}async function F(G,q){if(typeof G=="number"){t.history.go(G);return}let J=op(A.location,A.matches,l,c.v7_prependBasename,G,q==null?void 0:q.fromRouteId,q==null?void 0:q.relative),{path:he,submission:ye,error:ve}=T3(c.v7_normalizeFormMethod,!1,J,q),Ee=A.location,de=Uf(A.location,he,q&&q.state);de=kt({},de,t.history.encodeLocation(de));let fe=q&&q.replace!=null?q.replace:void 0,Ve=Qt.Push;fe===!0?Ve=Qt.Replace:fe===!1||ye!=null&&Qn(ye.formMethod)&&ye.formAction===A.location.pathname+A.location.search&&(Ve=Qt.Replace);let Me=q&&"preventScrollReset"in q?q.preventScrollReset===!0:void 0,be=ct({currentLocation:Ee,nextLocation:de,historyAction:Ve});if(be){et(be,{state:"blocked",location:de,proceed(){et(be,{state:"proceeding",proceed:void 0,reset:void 0,location:de}),F(G,q)},reset(){let rt=new Map(A.blockers);rt.set(be,fc),B({blockers:rt})}});return}return await z(Ve,de,{submission:ye,pendingError:ve,preventScrollReset:Me,replace:q&&q.replace})}function j(){if(je(),B({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){z(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}z(_||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function z(G,q,J){$&&$.abort(),$=null,_=G,O=(J&&J.startUninterruptedRevalidation)===!0,Hi(A.location,A.matches),D=(J&&J.preventScrollReset)===!0;let he=a||o,ye=J&&J.overrideNavigation,ve=Ua(he,q,l);if(!ve){let rt=xn(404,{pathname:q.pathname}),{matches:ke,route:Ge}=O3(he);Ln(),E(q,{matches:ke,loaderData:{},errors:{[Ge.id]:rt}});return}if(A.initialized&&!H&&vj(A.location,q)&&!(J&&J.submission&&Qn(J.submission.formMethod))){E(q,{matches:ve});return}$=new AbortController;let Ee=dc(t.history,q,$.signal,J&&J.submission),de,fe;if(J&&J.pendingError)fe={[Va(ve).route.id]:J.pendingError};else if(J&&J.submission&&Qn(J.submission.formMethod)){let rt=await W(Ee,q,J.submission,ve,{replace:J.replace});if(rt.shortCircuited)return;de=rt.pendingActionData,fe=rt.pendingActionError,ye=rd(q,J.submission),Ee=new Request(Ee.url,{signal:Ee.signal})}let{shortCircuited:Ve,loaderData:Me,errors:be}=await ne(Ee,q,ve,ye,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,de,fe);Ve||($=null,E(q,kt({matches:ve},de?{actionData:de}:{},{loaderData:Me,errors:be})))}async function W(G,q,J,he,ye){ye===void 0&&(ye={}),je();let ve=xj(q,J);B({navigation:ve});let Ee,de=lp(he,q);if(!de.route.action&&!de.route.lazy)Ee={type:rr.error,error:xn(405,{method:G.method,pathname:q.pathname,routeId:de.route.id})};else if(Ee=await uc("action",G,de,he,s,i,l),G.signal.aborted)return{shortCircuited:!0};if(tl(Ee)){let fe;return ye&&ye.replace!=null?fe=ye.replace:fe=Ee.location===A.location.pathname+A.location.search,await xe(A,Ee,{submission:J,replace:fe}),{shortCircuited:!0}}if(cf(Ee)){let fe=Va(he,de.route.id);return(ye&&ye.replace)!==!0&&(_=Qt.Push),{pendingActionData:{},pendingActionError:{[fe.route.id]:Ee.error}}}if($o(Ee))throw xn(400,{type:"defer-action"});return{pendingActionData:{[de.route.id]:Ee.data}}}async function ne(G,q,J,he,ye,ve,Ee,de,fe){let Ve=he||rd(q,ye),Me=ye||ve||F3(Ve),be=a||o,[rt,ke]=_3(t.history,A,J,Me,q,H,Y,Q,M,R,be,l,de,fe);if(Ln(De=>!(J&&J.some($e=>$e.route.id===De))||rt&&rt.some($e=>$e.route.id===De)),h=++I,rt.length===0&&ke.length===0){let De=ci();return E(q,kt({matches:J,loaderData:{},errors:fe||null},de?{actionData:de}:{},De?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!O){ke.forEach($e=>{let qe=A.fetchers.get($e.key),Fn=hc(void 0,qe?qe.data:void 0);A.fetchers.set($e.key,Fn)});let De=de||A.actionData;B(kt({navigation:Ve},De?Object.keys(De).length===0?{actionData:null}:{actionData:De}:{},ke.length>0?{fetchers:new Map(A.fetchers)}:{}))}ke.forEach(De=>{re.has(De.key)&&Ie(De.key),De.controller&&re.set(De.key,De.controller)});let Ge=()=>ke.forEach(De=>Ie(De.key));$&&$.signal.addEventListener("abort",Ge);let{results:Mr,loaderResults:Xe,fetcherResults:nt}=await Er(A.matches,J,rt,ke,G);if(G.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ge),ke.forEach(De=>re.delete(De.key));let vr=L3(Mr);if(vr){if(vr.idx>=rt.length){let De=ke[vr.idx-rt.length].key;R.add(De)}return await xe(A,vr.result,{replace:Ee}),{shortCircuited:!0}}let{loaderData:ze,errors:tt}=$3(A,J,rt,Xe,fe,ke,nt,T);T.forEach((De,$e)=>{De.subscribe(qe=>{(qe||De.done)&&T.delete($e)})});let Bn=ci(),it=lt(h),st=Bn||it||ke.length>0;return kt({loaderData:ze,errors:tt},st?{fetchers:new Map(A.fetchers)}:{})}function X(G){return A.fetchers.get(G)||aj}function ee(G,q,J,he){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.");re.has(G)&&Ie(G);let ye=a||o,ve=op(A.location,A.matches,l,c.v7_prependBasename,J,q,he==null?void 0:he.relative),Ee=Ua(ye,ve,l);if(!Ee){Ye(G,q,xn(404,{pathname:ve}));return}let{path:de,submission:fe,error:Ve}=T3(c.v7_normalizeFormMethod,!0,ve,he);if(Ve){Ye(G,q,Ve);return}let Me=lp(Ee,de);if(D=(he&&he.preventScrollReset)===!0,fe&&Qn(fe.formMethod)){_e(G,q,de,Me,Ee,fe);return}M.set(G,{routeId:q,path:de}),ce(G,q,de,Me,Ee,fe)}async function _e(G,q,J,he,ye,ve){if(je(),M.delete(G),!he.route.action&&!he.route.lazy){let Ae=xn(405,{method:ve.formMethod,pathname:J,routeId:q});Ye(G,q,Ae);return}let Ee=A.fetchers.get(G),de=bj(ve,Ee);A.fetchers.set(G,de),B({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=dc(t.history,J,fe.signal,ve);re.set(G,fe);let Me=I,be=await uc("action",Ve,he,ye,s,i,l);if(Ve.signal.aborted){re.get(G)===fe&&re.delete(G);return}if(tl(be))if(re.delete(G),h>Me){let Ae=Sa(void 0);A.fetchers.set(G,Ae),B({fetchers:new Map(A.fetchers)});return}else{R.add(G);let Ae=hc(ve);return A.fetchers.set(G,Ae),B({fetchers:new Map(A.fetchers)}),xe(A,be,{submission:ve,isFetchActionRedirect:!0})}if(cf(be)){Ye(G,q,be.error);return}if($o(be))throw xn(400,{type:"defer-action"});let rt=A.navigation.location||A.location,ke=dc(t.history,rt,fe.signal),Ge=a||o,Mr=A.navigation.state!=="idle"?Ua(Ge,A.navigation.location,l):A.matches;He(Mr,"Didn't find any matches after fetcher action");let Xe=++I;C.set(G,Xe);let nt=hc(ve,be.data);A.fetchers.set(G,nt);let[vr,ze]=_3(t.history,A,Mr,ve,rt,H,Y,Q,M,R,Ge,l,{[he.route.id]:be.data},void 0);ze.filter(Ae=>Ae.key!==G).forEach(Ae=>{let Ze=Ae.key,jn=A.fetchers.get(Ze),ui=hc(void 0,jn?jn.data:void 0);A.fetchers.set(Ze,ui),re.has(Ze)&&Ie(Ze),Ae.controller&&re.set(Ze,Ae.controller)}),B({fetchers:new Map(A.fetchers)});let tt=()=>ze.forEach(Ae=>Ie(Ae.key));fe.signal.addEventListener("abort",tt);let{results:Bn,loaderResults:it,fetcherResults:st}=await Er(A.matches,Mr,vr,ze,ke);if(fe.signal.aborted)return;fe.signal.removeEventListener("abort",tt),C.delete(G),re.delete(G),ze.forEach(Ae=>re.delete(Ae.key));let De=L3(Bn);if(De){if(De.idx>=vr.length){let Ae=ze[De.idx-vr.length].key;R.add(Ae)}return xe(A,De.result)}let{loaderData:$e,errors:qe}=$3(A,A.matches,vr,it,void 0,ze,st,T);if(A.fetchers.has(G)){let Ae=Sa(be.data);A.fetchers.set(G,Ae)}let Fn=lt(Xe);A.navigation.state==="loading"&&Xe>h?(He(_,"Expected pending action"),$&&$.abort(),E(A.navigation.location,{matches:Mr,loaderData:$e,errors:qe,fetchers:new Map(A.fetchers)})):(B(kt({errors:qe,loaderData:D3(A.loaderData,$e,Mr,qe)},Fn||ze.length>0?{fetchers:new Map(A.fetchers)}:{})),H=!1)}async function ce(G,q,J,he,ye,ve){let Ee=A.fetchers.get(G),de=hc(ve,Ee?Ee.data:void 0);A.fetchers.set(G,de),B({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=dc(t.history,J,fe.signal);re.set(G,fe);let Me=I,be=await uc("loader",Ve,he,ye,s,i,l);if($o(be)&&(be=await GA(be,Ve.signal,!0)||be),re.get(G)===fe&&re.delete(G),Ve.signal.aborted)return;if(tl(be))if(h>Me){let ke=Sa(void 0);A.fetchers.set(G,ke),B({fetchers:new Map(A.fetchers)});return}else{R.add(G),await xe(A,be);return}if(cf(be)){let ke=Va(A.matches,q);A.fetchers.delete(G),B({fetchers:new Map(A.fetchers),errors:{[ke.route.id]:be.error}});return}He(!$o(be),"Unhandled fetcher deferred data");let rt=Sa(be.data);A.fetchers.set(G,rt),B({fetchers:new Map(A.fetchers)})}async function xe(G,q,J){let{submission:he,replace:ye,isFetchActionRedirect:ve}=J===void 0?{}:J;q.revalidate&&(H=!0);let Ee=Uf(G.location,q.location,kt({_isRedirect:!0},ve?{_isFetchActionRedirect:!0}:{}));if(He(Ee,"Expected a location on the redirect navigation"),VA.test(q.location)&&r){let Ve=t.history.createURL(q.location),Me=vu(Ve.pathname,l)==null;if(e.location.origin!==Ve.origin||Me){ye?e.location.replace(q.location):e.location.assign(q.location);return}}$=null;let de=ye===!0?Qt.Replace:Qt.Push,fe=he||F3(G.navigation);if(oj.has(q.status)&&fe&&Qn(fe.formMethod))await z(de,Ee,{submission:kt({},fe,{formAction:q.location}),preventScrollReset:D});else if(ve)await z(de,Ee,{overrideNavigation:rd(Ee),fetcherSubmission:fe,preventScrollReset:D});else{let Ve=rd(Ee,fe);await z(de,Ee,{overrideNavigation:Ve,preventScrollReset:D})}}async function Er(G,q,J,he,ye){let ve=await Promise.all([...J.map(fe=>uc("loader",ye,fe,q,s,i,l)),...he.map(fe=>fe.matches&&fe.match&&fe.controller?uc("loader",dc(t.history,fe.path,fe.controller.signal),fe.match,fe.matches,s,i,l):{type:rr.error,error:xn(404,{pathname:fe.path})})]),Ee=ve.slice(0,J.length),de=ve.slice(J.length);return await Promise.all([B3(G,J,Ee,Ee.map(()=>ye.signal),!1,A.loaderData),B3(G,he.map(fe=>fe.match),de,he.map(fe=>fe.controller?fe.controller.signal:null),!0)]),{results:ve,loaderResults:Ee,fetcherResults:de}}function je(){H=!0,Y.push(...Ln()),M.forEach((G,q)=>{re.has(q)&&(Q.push(q),Ie(q))})}function Ye(G,q,J){let he=Va(A.matches,q);Zr(G),B({errors:{[he.route.id]:J},fetchers:new Map(A.fetchers)})}function Zr(G){let q=A.fetchers.get(G);re.has(G)&&!(q&&q.state==="loading"&&C.has(G))&&Ie(G),M.delete(G),C.delete(G),R.delete(G),A.fetchers.delete(G)}function Ie(G){let q=re.get(G);He(q,"Expected fetch controller: "+G),q.abort(),re.delete(G)}function at(G){for(let q of G){let J=X(q),he=Sa(J.data);A.fetchers.set(q,he)}}function ci(){let G=[],q=!1;for(let J of R){let he=A.fetchers.get(J);He(he,"Expected fetcher: "+J),he.state==="loading"&&(R.delete(J),G.push(J),q=!0)}return at(G),q}function lt(G){let q=[];for(let[J,he]of C)if(he0}function dt(G,q){let J=A.blockers.get(G)||fc;return N.get(G)!==q&&N.set(G,q),J}function fi(G){A.blockers.delete(G),N.delete(G)}function et(G,q){let J=A.blockers.get(G)||fc;He(J.state==="unblocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="proceeding"||J.state==="blocked"&&q.state==="unblocked"||J.state==="proceeding"&&q.state==="unblocked","Invalid blocker state transition: "+J.state+" -> "+q.state);let he=new Map(A.blockers);he.set(G,q),B({blockers:he})}function ct(G){let{currentLocation:q,nextLocation:J,historyAction:he}=G;if(N.size===0)return;N.size>1&&xl(!1,"A router only supports one blocker at a time");let ye=Array.from(N.entries()),[ve,Ee]=ye[ye.length-1],de=A.blockers.get(ve);if(!(de&&de.state==="proceeding")&&Ee({currentLocation:q,nextLocation:J,historyAction:he}))return ve}function Ln(G){let q=[];return T.forEach((J,he)=>{(!G||G(he))&&(J.cancel(),q.push(he),T.delete(he))}),q}function ht(G,q,J){if(d=G,m=q,v=J||null,!y&&A.navigation===J1){y=!0;let he=ut(A.location,A.matches);he!=null&&B({restoreScrollPosition:he})}return()=>{d=null,m=null,v=null}}function ft(G,q){return v&&v(G,q.map(he=>gj(he,A.loaderData)))||G.key}function Hi(G,q){if(d&&m){let J=ft(G,q);d[J]=m()}}function ut(G,q){if(d){let J=ft(G,q),he=d[J];if(typeof he=="number")return he}return null}function vt(G){s={},a=sp(G,i,void 0,s)}return S={get basename(){return l},get state(){return A},get routes(){return o},initialize:k,subscribe:P,enableScrollRestoration:ht,navigate:F,fetch:ee,revalidate:j,createHref:G=>t.history.createHref(G),encodeLocation:G=>t.history.encodeLocation(G),getFetcher:X,deleteFetcher:Zr,dispose:p,getBlocker:dt,deleteBlocker:fi,_internalFetchControllers:re,_internalActiveDeferreds:T,_internalSetRoutes:vt},S}function fj(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function op(t,e,r,n,i,s,o){let a,l;if(s!=null&&o!=="path"){a=[];for(let f of e)if(a.push(f),f.route.id===s){l=f;break}}else a=e,l=e[e.length-1];let c=XF(i||".",jA(a).map(f=>f.pathnameBase),vu(t.pathname,r)||t.pathname,o==="path");return i==null&&(c.search=t.search,c.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!dg(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:zo([r,c.pathname])),hu(c)}function T3(t,e,r,n){if(!n||!fj(n))return{path:r};if(n.formMethod&&!mj(n.formMethod))return{path:r,error:xn(405,{method:n.formMethod})};let i=()=>({path:r,error:xn(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=HA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Qn(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,m)=>{let[y,w]=m;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(!Qn(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()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=ap(n.formData),c=n.formData;else if(n.body instanceof FormData)l=ap(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=N3(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=N3(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(Qn(f.formMethod))return{path:r,submission:f};let u=ws(r);return e&&u.search&&dg(u.search)&&l.append("index",""),u.search="?"+l,{path:hu(u),submission:f}}function uj(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 _3(t,e,r,n,i,s,o,a,l,c,f,u,d,v){let m=v?Object.values(v)[0]:d?Object.values(d)[0]:void 0,y=t.createURL(e.location),w=t.createURL(i),x=v?Object.keys(v)[0]:void 0,S=uj(r,x).filter((_,D)=>{if(_.route.lazy)return!0;if(_.route.loader==null)return!1;if(dj(e.loaderData,e.matches[D],_)||o.some(H=>H===_.route.id))return!0;let $=e.matches[D],O=_;return M3(_,kt({currentUrl:y,currentParams:$.params,nextUrl:w,nextParams:O.params},n,{actionResult:m,defaultShouldRevalidate:s||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||qA($,O)}))}),A=[];return l.forEach((_,D)=>{if(!r.some(Q=>Q.route.id===_.routeId))return;let $=Ua(f,_.path,u);if(!$){A.push({key:D,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let O=e.fetchers.get(D),H=lp($,_.path),Y=!1;c.has(D)?Y=!1:a.includes(D)?Y=!0:O&&O.state!=="idle"&&O.data===void 0?Y=s:Y=M3(H,kt({currentUrl:y,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:m,defaultShouldRevalidate:s})),Y&&A.push({key:D,routeId:_.routeId,path:_.path,matches:$,match:H,controller:new AbortController})}),[S,A]}function dj(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function qA(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function M3(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function I3(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];He(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";xl(!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&&!$F.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,kt({},e(i),{lazy:void 0}))}async function uc(t,e,r,n,i,s,o,a){a===void 0&&(a={});let l,c,f,u=m=>{let y,w=new Promise((x,b)=>y=b);return f=()=>y(),e.signal.addEventListener("abort",f),Promise.race([m({request:e,params:r.params,context:a.requestContext}),w])};try{let m=r.route[t];if(r.route.lazy)if(m)c=(await Promise.all([u(m),I3(r.route,s,i)]))[0];else if(await I3(r.route,s,i),m=r.route[t],m)c=await u(m);else if(t==="action"){let y=new URL(e.url),w=y.pathname+y.search;throw xn(405,{method:e.method,pathname:w,routeId:r.route.id})}else return{type:rr.data,data:void 0};else if(m)c=await u(m);else{let y=new URL(e.url),w=y.pathname+y.search;throw xn(404,{pathname:w})}He(c!==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(m){l=rr.error,c=m}finally{f&&e.signal.removeEventListener("abort",f)}if(pj(c)){let m=c.status;if(sj.has(m)){let x=c.headers.get("Location");if(He(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!VA.test(x))x=op(new URL(e.url),n.slice(0,n.indexOf(r)+1),o,!0,x);else if(!a.isStaticRequest){let b=new URL(e.url),S=x.startsWith("//")?new URL(b.protocol+x):new URL(x),A=vu(S.pathname,o)!=null;S.origin===b.origin&&A&&(x=S.pathname+S.search+S.hash)}if(a.isStaticRequest)throw c.headers.set("Location",x),c;return{type:rr.redirect,status:m,location:x,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:l||rr.data,response:c};let y,w=c.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?y=await c.json():y=await c.text(),l===rr.error?{type:l,error:new ug(m,c.statusText,y),headers:c.headers}:{type:rr.data,data:y,statusCode:c.status,headers:c.headers}}if(l===rr.error)return{type:l,error:c};if(yj(c)){var d,v;return{type:rr.deferred,deferredData:c,statusCode:(d=c.init)==null?void 0:d.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:rr.data,data:c}}function dc(t,e,r,n){let i=t.createURL(HA(e)).toString(),s={signal:r};if(n&&Qn(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=ap(n.formData):s.body=n.formData}return new Request(i,s)}function ap(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function N3(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function hj(t,e,r,n,i){let s={},o=null,a,l=!1,c={};return r.forEach((f,u)=>{let d=e[u].route.id;if(He(!tl(f),"Cannot handle redirect results in processLoaderData"),cf(f)){let v=Va(t,d),m=f.error;n&&(m=Object.values(n)[0],n=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=m),s[d]=void 0,l||(l=!0,a=zA(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else $o(f)?(i.set(d,f.deferredData),s[d]=f.deferredData.data):s[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(a=f.statusCode),f.headers&&(c[d]=f.headers)}),n&&(o=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function $3(t,e,r,n,i,s,o,a){let{loaderData:l,errors:c}=hj(e,r,n,i,a);for(let f=0;fn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function O3(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function xn(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 ug(t||500,o,new Error(a),!0)}function L3(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(tl(r))return{result:r,idx:e}}}function HA(t){let e=typeof t=="string"?ws(t):t;return hu(kt({},e,{hash:""}))}function vj(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function $o(t){return t.type===rr.deferred}function cf(t){return t.type===rr.error}function tl(t){return(t&&t.type)===rr.redirect}function yj(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 pj(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function mj(t){return ij.has(t.toLowerCase())}function Qn(t){return rj.has(t.toLowerCase())}async function B3(t,e,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!qA(c,l)&&(s&&s[l.route.id])!==void 0;if($o(a)&&(i||f)){let u=n[o];He(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await GA(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function GA(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:rr.data,data:t.deferredData.unwrappedData}}catch(i){return{type:rr.error,error:i}}return{type:rr.data,data:t.deferredData.data}}}function dg(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function gj(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function lp(t,e){let r=typeof e=="string"?ws(e).search:e.search;if(t[t.length-1].route.index&&dg(r||""))return t[t.length-1];let n=jA(t);return n[n.length-1]}function F3(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 rd(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 xj(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 hc(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," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function bj(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," _hasFetcherDoneAnything ":!0}}function Sa(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.2 * * Copyright (c) Remix Software Inc. @@ -117,7 +117,7 @@ Defaulting to \`null\`.`}const cA="Radio",[DL,fA]=_r(cA),[OL,LL]=DL(cA),BL=g.for * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function rp(){return rp=Object.assign?Object.assign.bind():function(t){for(var e=1;eObject.assign({},y,{params:Object.assign({},o,y.params),pathname:Fo([a,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:Fo([a,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r);return e&&m?g.createElement(x0.Provider,{value:{location:rp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Qt.Pop}},m):m}function hj(){let t=wj(),e=IA(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 g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),r?g.createElement("pre",{style:i},r):null,s)}const vj=g.createElement(hj,null);class yj extends g.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||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?g.createElement(b0.Provider,{value:this.props.routeContext},g.createElement(zA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pj(t){let{routeContext:e,match:r,children:n}=t,i=g.useContext(BA);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(b0.Provider,{value:e},n)}function mj(t,e,r){var n;if(e===void 0&&(e=[]),r===void 0&&(r=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let s=t,o=(n=r)==null?void 0:n.errors;if(o!=null){let a=s.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));a>=0||He(!1),s=s.slice(0,Math.min(s.length,a+1))}return s.reduceRight((a,l,c)=>{let f=l.route.id?o==null?void 0:o[l.route.id]:null,u=null;r&&(u=l.route.errorElement||vj);let d=e.concat(s.slice(0,c+1)),v=()=>{let m;return f?m=u:l.route.Component?m=g.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,g.createElement(pj,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:r!=null},children:m})};return r&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?g.createElement(yj,{location:r.location,revalidation:r.revalidation,component:u,error:f,children:v(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):v()},null)}var I3;(function(t){t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate"})(I3||(I3={}));var bh;(function(t){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"})(bh||(bh={}));function gj(t){let e=g.useContext(FA);return e||He(!1),e}function xj(t){let e=g.useContext(b0);return e||He(!1),e}function bj(t){let e=xj(),r=e.matches[e.matches.length-1];return r.route.id||He(!1),r.route.id}function wj(){var t;let e=g.useContext(zA),r=gj(bh.UseRouteError),n=bj(bh.UseRouteError);return e||((t=r.errors)==null?void 0:t[n])}const Ej="startTransition",N3=R4[Ej];function Cj(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=g.useState(r.state),{v7_startTransition:o}=n||{},a=g.useCallback(u=>{o&&N3?N3(()=>s(u)):s(u)},[s,o]);g.useLayoutEffect(()=>r.subscribe(a),[r,a]);let l=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:u=>r.navigate(u),push:(u,d,v)=>r.navigate(u,{state:d,preventScrollReset:v==null?void 0:v.preventScrollReset}),replace:(u,d,v)=>r.navigate(u,{replace:!0,state:d,preventScrollReset:v==null?void 0:v.preventScrollReset})}),[r]),c=r.basename||"/",f=g.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return g.createElement(g.Fragment,null,g.createElement(BA.Provider,{value:f},g.createElement(FA.Provider,{value:i},g.createElement(Aj,{basename:c,location:i.location,navigationType:i.historyAction,navigator:l},i.initialized?g.createElement(Sj,{routes:r.routes,state:i}):e))),null)}function Sj(t){let{routes:e,state:r}=t;return dj(e,void 0,r)}function Aj(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Qt.Pop,navigator:s,static:o=!1}=t;og()&&He(!1);let a=e.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:a,navigator:s,static:o}),[a,s,o]);typeof n=="string"&&(n=Ui(n));let{pathname:c="/",search:f="",hash:u="",state:d=null,key:v="default"}=n,m=g.useMemo(()=>{let y=hu(c,a);return y==null?null:{location:{pathname:y,search:f,hash:u,state:d,key:v},navigationType:i}},[a,c,f,u,d,v,i]);return m==null?null:g.createElement(jA.Provider,{value:l},g.createElement(x0.Provider,{children:r,value:m}))}var $3;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})($3||($3={}));new Promise(()=>{});function kj(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:g.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:g.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** + */function cp(){return cp=Object.assign?Object.assign.bind():function(t){for(var e=1;eObject.assign({},y,{params:Object.assign({},o,y.params),pathname:zo([a,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:zo([a,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r);return e&&m?g.createElement(C0.Provider,{value:{location:cp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Qt.Pop}},m):m}function Cj(){let t=Mj(),e=zA(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 g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),r?g.createElement("pre",{style:i},r):null,s)}const Sj=g.createElement(Cj,null);class Aj extends g.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||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?g.createElement(S0.Provider,{value:this.props.routeContext},g.createElement(QA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kj(t){let{routeContext:e,match:r,children:n}=t,i=g.useContext(WA);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(S0.Provider,{value:e},n)}function Rj(t,e,r){var n;if(e===void 0&&(e=[]),r===void 0&&(r=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let s=t,o=(n=r)==null?void 0:n.errors;if(o!=null){let a=s.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));a>=0||He(!1),s=s.slice(0,Math.min(s.length,a+1))}return s.reduceRight((a,l,c)=>{let f=l.route.id?o==null?void 0:o[l.route.id]:null,u=null;r&&(u=l.route.errorElement||Sj);let d=e.concat(s.slice(0,c+1)),v=()=>{let m;return f?m=u:l.route.Component?m=g.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,g.createElement(kj,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:r!=null},children:m})};return r&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?g.createElement(Aj,{location:r.location,revalidation:r.revalidation,component:u,error:f,children:v(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):v()},null)}var j3;(function(t){t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate"})(j3||(j3={}));var Ch;(function(t){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"})(Ch||(Ch={}));function Pj(t){let e=g.useContext(KA);return e||He(!1),e}function Tj(t){let e=g.useContext(S0);return e||He(!1),e}function _j(t){let e=Tj(),r=e.matches[e.matches.length-1];return r.route.id||He(!1),r.route.id}function Mj(){var t;let e=g.useContext(QA),r=Pj(Ch.UseRouteError),n=_j(Ch.UseRouteError);return e||((t=r.errors)==null?void 0:t[n])}const Ij="startTransition",z3=OE[Ij];function Nj(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=g.useState(r.state),{v7_startTransition:o}=n||{},a=g.useCallback(u=>{o&&z3?z3(()=>s(u)):s(u)},[s,o]);g.useLayoutEffect(()=>r.subscribe(a),[r,a]);let l=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:u=>r.navigate(u),push:(u,d,v)=>r.navigate(u,{state:d,preventScrollReset:v==null?void 0:v.preventScrollReset}),replace:(u,d,v)=>r.navigate(u,{replace:!0,state:d,preventScrollReset:v==null?void 0:v.preventScrollReset})}),[r]),c=r.basename||"/",f=g.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return g.createElement(g.Fragment,null,g.createElement(WA.Provider,{value:f},g.createElement(KA.Provider,{value:i},g.createElement(Dj,{basename:c,location:i.location,navigationType:i.historyAction,navigator:l},i.initialized?g.createElement($j,{routes:r.routes,state:i}):e))),null)}function $j(t){let{routes:e,state:r}=t;return Ej(e,void 0,r)}function Dj(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Qt.Pop,navigator:s,static:o=!1}=t;hg()&&He(!1);let a=e.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:a,navigator:s,static:o}),[a,s,o]);typeof n=="string"&&(n=ws(n));let{pathname:c="/",search:f="",hash:u="",state:d=null,key:v="default"}=n,m=g.useMemo(()=>{let y=vu(c,a);return y==null?null:{location:{pathname:y,search:f,hash:u,state:d,key:v},navigationType:i}},[a,c,f,u,d,v,i]);return m==null?null:g.createElement(YA.Provider,{value:l},g.createElement(C0.Provider,{children:r,value:m}))}var U3;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(U3||(U3={}));new Promise(()=>{});function Oj(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:g.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:g.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** * React Router DOM v6.14.2 * * Copyright (c) Remix Software Inc. @@ -126,17 +126,43 @@ Defaulting to \`null\`.`}const cA="Radio",[DL,fA]=_r(cA),[OL,LL]=DL(cA),BL=g.for * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function wh(){return wh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{value:e,digits:r=6,onChange:n,disabled:i=!1}=t,s=g.useMemo(()=>L3(0,r).map(()=>g.createRef()),[]);g.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 m,y;const u=s[c].current,d=(m=s[c-1])==null?void 0:m.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,m;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((m=(v=s[0])==null?void 0:v.current)==null||m.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return U.jsx(ie,{gap:"2",children:L3(0,r).map(c=>U.jsxs(g.Fragment,{children:[c===r/2&&U.jsx("span",{}),U.jsx(ie,{as:"input",className:_j,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))})},L3=(t,e)=>Array.from({length:e-t},(r,n)=>n+t),VA=()=>U.jsxs(ie,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[U.jsx(Le,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),U.jsx(Le,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function Mj(t={}){const{nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}=t,[i,s]=g.useState(!1),o=g.useRef(r);o.current=r;const a=g.useRef(n);return a.current=n,g.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 qA=g.createContext(null);function Ij({clientId:t,nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=Mj({nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}),o=g.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:s}),[t,s]);return cr.createElement(qA.Provider,{value:o},i)}function Nj(){const t=g.useContext(qA);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function $j(t){var e;return(e=t==null?void 0:t.clientId)!==null&&e!==void 0?e:t==null?void 0:t.client_id}const Dj={large:40,medium:32,small:20};function Oj({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,...m}){const y=g.useRef(null),{clientId:w,scriptLoadedSuccessfully:b}=Nj(),x=g.useRef(t);x.current=t;const S=g.useRef(e);S.current=e;const A=g.useRef(n);return A.current=n,g.useEffect(()=>{var _,D,$,O,H,Y,Q,re,I;if(b)return($=(D=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||D===void 0?void 0:D.id)===null||$===void 0||$.initialize({client_id:w,callback:h=>{var C;if(!(h!=null&&h.credential))return(C=S.current)===null||C===void 0?void 0:C.call(S);const{credential:R,select_by:M}=h;x.current({credential:R,clientId:$j(h),select_by:M})},...m}),(Y=(H=(O=window==null?void 0:window.google)===null||O===void 0?void 0:O.accounts)===null||H===void 0?void 0:H.id)===null||Y===void 0||Y.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((I=(re=(Q=window==null?void 0:window.google)===null||Q===void 0?void 0:Q.accounts)===null||re===void 0?void 0:re.id)===null||I===void 0||I.prompt(A.current)),()=>{var h,C,R;r&&((R=(C=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||C===void 0?void 0:C.id)===null||R===void 0||R.cancel())}},[w,b,r,i,s,o,a,l,c,f,u]),cr.createElement("div",{...v,ref:y,style:{height:Dj[o],...v==null?void 0:v.style}})}function Lj(){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()}let ue=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.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_TESTNET=69]="OPTIMISM_TESTNET",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.FANTOM=250]="FANTOM",t[t.FANTOM_TESTNET=4002]="FANTOM_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.AURORA=1313161554]="AURORA",t[t.AURORA_TESTNET=1313161556]="AURORA_TESTNET",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),yt=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const Ut={[ue.MAINNET]:{chainId:ue.MAINNET,type:yt.MAINNET,name:"mainnet",title:"Ethereum",blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.ROPSTEN]:{chainId:ue.ROPSTEN,type:yt.TESTNET,name:"ropsten",title:"Ropsten",testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.RINKEBY]:{chainId:ue.RINKEBY,type:yt.TESTNET,name:"rinkeby",title:"Rinkeby",testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.GOERLI]:{chainId:ue.GOERLI,type:yt.TESTNET,name:"goerli",title:"Goerli",testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.KOVAN]:{chainId:ue.KOVAN,type:yt.TESTNET,name:"kovan",title:"Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"}},[ue.SEPOLIA]:{chainId:ue.SEPOLIA,type:yt.TESTNET,name:"sepolia",title:"Sepolia",testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[ue.POLYGON]:{chainId:ue.POLYGON,type:yt.MAINNET,name:"polygon",title:"Polygon",blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[ue.POLYGON_MUMBAI]:{chainId:ue.POLYGON_MUMBAI,type:yt.TESTNET,name:"mumbai",title:"Polygon Mumbai",testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"}},[ue.POLYGON_ZKEVM]:{chainId:ue.POLYGON_ZKEVM,type:yt.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[ue.BSC]:{chainId:ue.BSC,type:yt.MAINNET,name:"bsc",title:"BNB Smart Chain",blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[ue.BSC_TESTNET]:{chainId:ue.BSC_TESTNET,type:yt.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[ue.OPTIMISM]:{chainId:ue.OPTIMISM,type:yt.MAINNET,name:"optimism",title:"Optimism",blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[ue.OPTIMISM_TESTNET]:{chainId:ue.OPTIMISM_TESTNET,type:yt.TESTNET,name:"optimism-testnet",title:"Optimistic Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Optimism Testnet)",rootUrl:"https://kovan-optimistic.etherscan.io/"}},[ue.ARBITRUM]:{chainId:ue.ARBITRUM,type:yt.MAINNET,name:"arbitrum",title:"Arbitrum One",blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[ue.ARBITRUM_GOERLI]:{chainId:ue.ARBITRUM_GOERLI,type:yt.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",testnet:!0,blockExplorer:{name:"Arbiscan (Testnet)",rootUrl:"https://testnet.arbiscan.io/"}},[ue.ARBITRUM_NOVA]:{chainId:ue.ARBITRUM_NOVA,type:yt.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[ue.AVALANCHE]:{chainId:ue.AVALANCHE,type:yt.MAINNET,name:"avalanche",title:"Avalanche",blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[ue.AVALANCHE_TESTNET]:{chainId:ue.AVALANCHE_TESTNET,type:yt.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[ue.FANTOM]:{chainId:ue.FANTOM,type:yt.MAINNET,name:"fantom",title:"Fantom",blockExplorer:{name:"FTMScan",rootUrl:"https://ftmscan.com/"}},[ue.FANTOM_TESTNET]:{chainId:ue.FANTOM_TESTNET,type:yt.TESTNET,name:"fantom-testnet",title:"Fantom Testnet",testnet:!0,blockExplorer:{name:"FTMScan (Testnet)",rootUrl:"https://testnet.ftmscan.com/"}},[ue.GNOSIS]:{chainId:ue.GNOSIS,type:yt.MAINNET,name:"gnosis",title:"Gnosis Chain",blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[ue.AURORA]:{chainId:ue.AURORA,type:yt.MAINNET,name:"aurora",title:"Aurora",blockExplorer:{name:"Aurora Explorer",rootUrl:"https://aurorascan.dev/"}},[ue.AURORA_TESTNET]:{chainId:ue.AURORA_TESTNET,type:yt.TESTNET,name:"aurora-testnet",title:"Aurora Testnet",testnet:!0,blockExplorer:{name:"Aurora Explorer (Testnet)",rootUrl:"https://testnet.aurorascan.dev/"}},[ue.BASE]:{chainId:ue.BASE,type:yt.MAINNET,name:"base",title:"Base (Coinbase)",blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[ue.BASE_GOERLI]:{chainId:ue.BASE_GOERLI,type:yt.TESTNET,name:"base-goerli",title:"Base Goerli",testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"}},[ue.HOMEVERSE]:{chainId:ue.HOMEVERSE,type:yt.MAINNET,name:"homeverse",title:"Oasys Homeverse",blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[ue.HOMEVERSE_TESTNET]:{chainId:ue.HOMEVERSE_TESTNET,type:yt.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[ue.HARDHAT]:{chainId:ue.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[ue.HARDHAT_2]:{chainId:ue.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var ag={exports:{}};const Bj={},Fj=Object.freeze(Object.defineProperty({__proto__:null,default:Bj},Symbol.toStringTag,{value:"Module"})),jj=Oh(Fj);ag.exports;(function(t){(function(e,r){function n(I,h){if(!I)throw new Error(h||"Assertion failed")}function i(I,h){I.super_=h;var C=function(){};C.prototype=h.prototype,I.prototype=new C,I.prototype.constructor=I}function s(I,h,C){if(s.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((h==="le"||h==="be")&&(C=h,h=10),this._init(I||0,h||10,C||"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=jj.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,C){return h.cmp(C)>0?h:C},s.min=function(h,C){return h.cmp(C)<0?h:C},s.prototype._init=function(h,C,R){if(typeof h=="number")return this._initNumber(h,C,R);if(typeof h=="object")return this._initArray(h,C,R);C==="hex"&&(C=16),n(C===(C|0)&&C>=2&&C<=36),h=h.toString().replace(/\s+/g,"");var M=0;h[0]==="-"&&(M++,this.negative=1),M=0;M-=3)N=h[M]|h[M-1]<<8|h[M-2]<<16,this.words[T]|=N<>>26-L&67108863,L+=24,L>=26&&(L-=26,T++);else if(R==="le")for(M=0,T=0;M>>26-L&67108863,L+=24,L>=26&&(L-=26,T++);return this._strip()};function a(I,h){var C=I.charCodeAt(h);if(C>=48&&C<=57)return C-48;if(C>=65&&C<=70)return C-55;if(C>=97&&C<=102)return C-87;n(!1,"Invalid character in "+I)}function l(I,h,C){var R=a(I,C);return C-1>=h&&(R|=a(I,C-1)<<4),R}s.prototype._parseHex=function(h,C,R){this.length=Math.ceil((h.length-C)/6),this.words=new Array(this.length);for(var M=0;M=C;M-=2)L=l(h,C,M)<=18?(T-=18,N+=1,this.words[N]|=L>>>26):T+=8;else{var k=h.length-C;for(M=k%2===0?C+1:C;M=18?(T-=18,N+=1,this.words[N]|=L>>>26):T+=8}this._strip()};function c(I,h,C,R){for(var M=0,T=0,N=Math.min(I.length,C),L=h;L=49?T=k-49+10:k>=17?T=k-17+10:T=k,n(k>=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],m=[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,C){h=h||10,C=C|0||1;var R;if(h===16||h==="hex"){R="";for(var M=0,T=0,N=0;N>>24-M&16777215,M+=2,M>=26&&(M-=26,N--),T!==0||N!==this.length-1?R=d[6-k.length]+k+R:R=k+R}for(T!==0&&(R=T.toString(16)+R);R.length%C!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}if(h===(h|0)&&h>=2&&h<=36){var p=v[h],P=m[h];R="";var B=this.clone();for(B.negative=0;!B.isZero();){var E=B.modrn(P).toString(h);B=B.idivn(P),B.isZero()?R=E+R:R=d[p-E.length]+E+R}for(this.isZero()&&(R="0"+R);R.length%C!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}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,C){return this.toArrayLike(o,h,C)}),s.prototype.toArray=function(h,C){return this.toArrayLike(Array,h,C)};var y=function(h,C){return h.allocUnsafe?h.allocUnsafe(C):new h(C)};s.prototype.toArrayLike=function(h,C,R){this._strip();var M=this.byteLength(),T=R||Math.max(1,M);n(M<=T,"byte array longer than desired length"),n(T>0,"Requested array length <= 0");var N=y(h,T),L=C==="le"?"LE":"BE";return this["_toArrayLike"+L](N,M),N},s.prototype._toArrayLikeLE=function(h,C){for(var R=0,M=0,T=0,N=0;T>8&255),R>16&255),N===6?(R>24&255),M=0,N=0):(M=L>>>24,N+=2)}if(R=0&&(h[R--]=L>>8&255),R>=0&&(h[R--]=L>>16&255),N===6?(R>=0&&(h[R--]=L>>24&255),M=0,N=0):(M=L>>>24,N+=2)}if(R>=0)for(h[R--]=M;R>=0;)h[R--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var C=h,R=0;return C>=4096&&(R+=13,C>>>=13),C>=64&&(R+=7,C>>>=7),C>=8&&(R+=4,C>>>=4),C>=2&&(R+=2,C>>>=2),R+C},s.prototype._zeroBits=function(h){if(h===0)return 26;var C=h,R=0;return C&8191||(R+=13,C>>>=13),C&127||(R+=7,C>>>=7),C&15||(R+=4,C>>>=4),C&3||(R+=2,C>>>=2),C&1||R++,R},s.prototype.bitLength=function(){var h=this.words[this.length-1],C=this._countBits(h);return(this.length-1)*26+C};function w(I){for(var h=new Array(I.bitLength()),C=0;C>>M&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,C=0;Ch.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 C;this.length>h.length?C=h:C=this;for(var R=0;Rh.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 C,R;this.length>h.length?(C=this,R=h):(C=h,R=this);for(var M=0;Mh.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 C=Math.ceil(h/26)|0,R=h%26;this._expand(C),R>0&&C--;for(var M=0;M0&&(this.words[M]=~this.words[M]&67108863>>26-R),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,C){n(typeof h=="number"&&h>=0);var R=h/26|0,M=h%26;return this._expand(R+1),C?this.words[R]=this.words[R]|1<h.length?(R=this,M=h):(R=h,M=this);for(var T=0,N=0;N>>26;for(;T!==0&&N>>26;if(this.length=R.length,T!==0)this.words[this.length]=T,this.length++;else if(R!==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 C=this.iadd(h);return h.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var R=this.cmp(h);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;var M,T;R>0?(M=this,T=h):(M=h,T=this);for(var N=0,L=0;L>26,this.words[L]=C&67108863;for(;N!==0&&L>26,this.words[L]=C&67108863;if(N===0&&L>>26,B=k&67108863,E=Math.min(p,h.length-1),F=Math.max(0,p-I.length+1);F<=E;F++){var j=p-F|0;M=I.words[j]|0,T=h.words[F]|0,N=M*T+B,P+=N/67108864|0,B=N&67108863}C.words[p]=B|0,k=P|0}return k!==0?C.words[p]=k|0:C.length--,C._strip()}var x=function(h,C,R){var M=h.words,T=C.words,N=R.words,L=0,k,p,P,B=M[0]|0,E=B&8191,F=B>>>13,j=M[1]|0,z=j&8191,W=j>>>13,ne=M[2]|0,X=ne&8191,ee=ne>>>13,_e=M[3]|0,ce=_e&8191,xe=_e>>>13,Er=M[4]|0,je=Er&8191,Ye=Er>>>13,Zr=M[5]|0,Ie=Zr&8191,at=Zr>>>13,ci=M[6]|0,lt=ci&8191,dt=ci>>>13,fi=M[7]|0,et=fi&8191,ct=fi>>>13,Ln=M[8]|0,ht=Ln&8191,ft=Ln>>>13,Hi=M[9]|0,ut=Hi&8191,vt=Hi>>>13,G=T[0]|0,q=G&8191,J=G>>>13,he=T[1]|0,ye=he&8191,ve=he>>>13,Ee=T[2]|0,de=Ee&8191,fe=Ee>>>13,Ve=T[3]|0,Me=Ve&8191,be=Ve>>>13,rt=T[4]|0,ke=rt&8191,Ge=rt>>>13,Mr=T[5]|0,Xe=Mr&8191,nt=Mr>>>13,vr=T[6]|0,ze=vr&8191,tt=vr>>>13,Bn=T[7]|0,it=Bn&8191,st=Bn>>>13,De=T[8]|0,$e=De&8191,qe=De>>>13,Fn=T[9]|0,Ae=Fn&8191,Ze=Fn>>>13;R.negative=h.negative^C.negative,R.length=19,k=Math.imul(E,q),p=Math.imul(E,J),p=p+Math.imul(F,q)|0,P=Math.imul(F,J);var jn=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(jn>>>26)|0,jn&=67108863,k=Math.imul(z,q),p=Math.imul(z,J),p=p+Math.imul(W,q)|0,P=Math.imul(W,J),k=k+Math.imul(E,ye)|0,p=p+Math.imul(E,ve)|0,p=p+Math.imul(F,ye)|0,P=P+Math.imul(F,ve)|0;var ui=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(ui>>>26)|0,ui&=67108863,k=Math.imul(X,q),p=Math.imul(X,J),p=p+Math.imul(ee,q)|0,P=Math.imul(ee,J),k=k+Math.imul(z,ye)|0,p=p+Math.imul(z,ve)|0,p=p+Math.imul(W,ye)|0,P=P+Math.imul(W,ve)|0,k=k+Math.imul(E,de)|0,p=p+Math.imul(E,fe)|0,p=p+Math.imul(F,de)|0,P=P+Math.imul(F,fe)|0;var ws=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(ws>>>26)|0,ws&=67108863,k=Math.imul(ce,q),p=Math.imul(ce,J),p=p+Math.imul(xe,q)|0,P=Math.imul(xe,J),k=k+Math.imul(X,ye)|0,p=p+Math.imul(X,ve)|0,p=p+Math.imul(ee,ye)|0,P=P+Math.imul(ee,ve)|0,k=k+Math.imul(z,de)|0,p=p+Math.imul(z,fe)|0,p=p+Math.imul(W,de)|0,P=P+Math.imul(W,fe)|0,k=k+Math.imul(E,Me)|0,p=p+Math.imul(E,be)|0,p=p+Math.imul(F,Me)|0,P=P+Math.imul(F,be)|0;var Es=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Es>>>26)|0,Es&=67108863,k=Math.imul(je,q),p=Math.imul(je,J),p=p+Math.imul(Ye,q)|0,P=Math.imul(Ye,J),k=k+Math.imul(ce,ye)|0,p=p+Math.imul(ce,ve)|0,p=p+Math.imul(xe,ye)|0,P=P+Math.imul(xe,ve)|0,k=k+Math.imul(X,de)|0,p=p+Math.imul(X,fe)|0,p=p+Math.imul(ee,de)|0,P=P+Math.imul(ee,fe)|0,k=k+Math.imul(z,Me)|0,p=p+Math.imul(z,be)|0,p=p+Math.imul(W,Me)|0,P=P+Math.imul(W,be)|0,k=k+Math.imul(E,ke)|0,p=p+Math.imul(E,Ge)|0,p=p+Math.imul(F,ke)|0,P=P+Math.imul(F,Ge)|0;var Cs=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,k=Math.imul(Ie,q),p=Math.imul(Ie,J),p=p+Math.imul(at,q)|0,P=Math.imul(at,J),k=k+Math.imul(je,ye)|0,p=p+Math.imul(je,ve)|0,p=p+Math.imul(Ye,ye)|0,P=P+Math.imul(Ye,ve)|0,k=k+Math.imul(ce,de)|0,p=p+Math.imul(ce,fe)|0,p=p+Math.imul(xe,de)|0,P=P+Math.imul(xe,fe)|0,k=k+Math.imul(X,Me)|0,p=p+Math.imul(X,be)|0,p=p+Math.imul(ee,Me)|0,P=P+Math.imul(ee,be)|0,k=k+Math.imul(z,ke)|0,p=p+Math.imul(z,Ge)|0,p=p+Math.imul(W,ke)|0,P=P+Math.imul(W,Ge)|0,k=k+Math.imul(E,Xe)|0,p=p+Math.imul(E,nt)|0,p=p+Math.imul(F,Xe)|0,P=P+Math.imul(F,nt)|0;var $0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+($0>>>26)|0,$0&=67108863,k=Math.imul(lt,q),p=Math.imul(lt,J),p=p+Math.imul(dt,q)|0,P=Math.imul(dt,J),k=k+Math.imul(Ie,ye)|0,p=p+Math.imul(Ie,ve)|0,p=p+Math.imul(at,ye)|0,P=P+Math.imul(at,ve)|0,k=k+Math.imul(je,de)|0,p=p+Math.imul(je,fe)|0,p=p+Math.imul(Ye,de)|0,P=P+Math.imul(Ye,fe)|0,k=k+Math.imul(ce,Me)|0,p=p+Math.imul(ce,be)|0,p=p+Math.imul(xe,Me)|0,P=P+Math.imul(xe,be)|0,k=k+Math.imul(X,ke)|0,p=p+Math.imul(X,Ge)|0,p=p+Math.imul(ee,ke)|0,P=P+Math.imul(ee,Ge)|0,k=k+Math.imul(z,Xe)|0,p=p+Math.imul(z,nt)|0,p=p+Math.imul(W,Xe)|0,P=P+Math.imul(W,nt)|0,k=k+Math.imul(E,ze)|0,p=p+Math.imul(E,tt)|0,p=p+Math.imul(F,ze)|0,P=P+Math.imul(F,tt)|0;var D0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(D0>>>26)|0,D0&=67108863,k=Math.imul(et,q),p=Math.imul(et,J),p=p+Math.imul(ct,q)|0,P=Math.imul(ct,J),k=k+Math.imul(lt,ye)|0,p=p+Math.imul(lt,ve)|0,p=p+Math.imul(dt,ye)|0,P=P+Math.imul(dt,ve)|0,k=k+Math.imul(Ie,de)|0,p=p+Math.imul(Ie,fe)|0,p=p+Math.imul(at,de)|0,P=P+Math.imul(at,fe)|0,k=k+Math.imul(je,Me)|0,p=p+Math.imul(je,be)|0,p=p+Math.imul(Ye,Me)|0,P=P+Math.imul(Ye,be)|0,k=k+Math.imul(ce,ke)|0,p=p+Math.imul(ce,Ge)|0,p=p+Math.imul(xe,ke)|0,P=P+Math.imul(xe,Ge)|0,k=k+Math.imul(X,Xe)|0,p=p+Math.imul(X,nt)|0,p=p+Math.imul(ee,Xe)|0,P=P+Math.imul(ee,nt)|0,k=k+Math.imul(z,ze)|0,p=p+Math.imul(z,tt)|0,p=p+Math.imul(W,ze)|0,P=P+Math.imul(W,tt)|0,k=k+Math.imul(E,it)|0,p=p+Math.imul(E,st)|0,p=p+Math.imul(F,it)|0,P=P+Math.imul(F,st)|0;var O0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(O0>>>26)|0,O0&=67108863,k=Math.imul(ht,q),p=Math.imul(ht,J),p=p+Math.imul(ft,q)|0,P=Math.imul(ft,J),k=k+Math.imul(et,ye)|0,p=p+Math.imul(et,ve)|0,p=p+Math.imul(ct,ye)|0,P=P+Math.imul(ct,ve)|0,k=k+Math.imul(lt,de)|0,p=p+Math.imul(lt,fe)|0,p=p+Math.imul(dt,de)|0,P=P+Math.imul(dt,fe)|0,k=k+Math.imul(Ie,Me)|0,p=p+Math.imul(Ie,be)|0,p=p+Math.imul(at,Me)|0,P=P+Math.imul(at,be)|0,k=k+Math.imul(je,ke)|0,p=p+Math.imul(je,Ge)|0,p=p+Math.imul(Ye,ke)|0,P=P+Math.imul(Ye,Ge)|0,k=k+Math.imul(ce,Xe)|0,p=p+Math.imul(ce,nt)|0,p=p+Math.imul(xe,Xe)|0,P=P+Math.imul(xe,nt)|0,k=k+Math.imul(X,ze)|0,p=p+Math.imul(X,tt)|0,p=p+Math.imul(ee,ze)|0,P=P+Math.imul(ee,tt)|0,k=k+Math.imul(z,it)|0,p=p+Math.imul(z,st)|0,p=p+Math.imul(W,it)|0,P=P+Math.imul(W,st)|0,k=k+Math.imul(E,$e)|0,p=p+Math.imul(E,qe)|0,p=p+Math.imul(F,$e)|0,P=P+Math.imul(F,qe)|0;var L0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(L0>>>26)|0,L0&=67108863,k=Math.imul(ut,q),p=Math.imul(ut,J),p=p+Math.imul(vt,q)|0,P=Math.imul(vt,J),k=k+Math.imul(ht,ye)|0,p=p+Math.imul(ht,ve)|0,p=p+Math.imul(ft,ye)|0,P=P+Math.imul(ft,ve)|0,k=k+Math.imul(et,de)|0,p=p+Math.imul(et,fe)|0,p=p+Math.imul(ct,de)|0,P=P+Math.imul(ct,fe)|0,k=k+Math.imul(lt,Me)|0,p=p+Math.imul(lt,be)|0,p=p+Math.imul(dt,Me)|0,P=P+Math.imul(dt,be)|0,k=k+Math.imul(Ie,ke)|0,p=p+Math.imul(Ie,Ge)|0,p=p+Math.imul(at,ke)|0,P=P+Math.imul(at,Ge)|0,k=k+Math.imul(je,Xe)|0,p=p+Math.imul(je,nt)|0,p=p+Math.imul(Ye,Xe)|0,P=P+Math.imul(Ye,nt)|0,k=k+Math.imul(ce,ze)|0,p=p+Math.imul(ce,tt)|0,p=p+Math.imul(xe,ze)|0,P=P+Math.imul(xe,tt)|0,k=k+Math.imul(X,it)|0,p=p+Math.imul(X,st)|0,p=p+Math.imul(ee,it)|0,P=P+Math.imul(ee,st)|0,k=k+Math.imul(z,$e)|0,p=p+Math.imul(z,qe)|0,p=p+Math.imul(W,$e)|0,P=P+Math.imul(W,qe)|0,k=k+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ze)|0,p=p+Math.imul(F,Ae)|0,P=P+Math.imul(F,Ze)|0;var B0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(B0>>>26)|0,B0&=67108863,k=Math.imul(ut,ye),p=Math.imul(ut,ve),p=p+Math.imul(vt,ye)|0,P=Math.imul(vt,ve),k=k+Math.imul(ht,de)|0,p=p+Math.imul(ht,fe)|0,p=p+Math.imul(ft,de)|0,P=P+Math.imul(ft,fe)|0,k=k+Math.imul(et,Me)|0,p=p+Math.imul(et,be)|0,p=p+Math.imul(ct,Me)|0,P=P+Math.imul(ct,be)|0,k=k+Math.imul(lt,ke)|0,p=p+Math.imul(lt,Ge)|0,p=p+Math.imul(dt,ke)|0,P=P+Math.imul(dt,Ge)|0,k=k+Math.imul(Ie,Xe)|0,p=p+Math.imul(Ie,nt)|0,p=p+Math.imul(at,Xe)|0,P=P+Math.imul(at,nt)|0,k=k+Math.imul(je,ze)|0,p=p+Math.imul(je,tt)|0,p=p+Math.imul(Ye,ze)|0,P=P+Math.imul(Ye,tt)|0,k=k+Math.imul(ce,it)|0,p=p+Math.imul(ce,st)|0,p=p+Math.imul(xe,it)|0,P=P+Math.imul(xe,st)|0,k=k+Math.imul(X,$e)|0,p=p+Math.imul(X,qe)|0,p=p+Math.imul(ee,$e)|0,P=P+Math.imul(ee,qe)|0,k=k+Math.imul(z,Ae)|0,p=p+Math.imul(z,Ze)|0,p=p+Math.imul(W,Ae)|0,P=P+Math.imul(W,Ze)|0;var F0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(F0>>>26)|0,F0&=67108863,k=Math.imul(ut,de),p=Math.imul(ut,fe),p=p+Math.imul(vt,de)|0,P=Math.imul(vt,fe),k=k+Math.imul(ht,Me)|0,p=p+Math.imul(ht,be)|0,p=p+Math.imul(ft,Me)|0,P=P+Math.imul(ft,be)|0,k=k+Math.imul(et,ke)|0,p=p+Math.imul(et,Ge)|0,p=p+Math.imul(ct,ke)|0,P=P+Math.imul(ct,Ge)|0,k=k+Math.imul(lt,Xe)|0,p=p+Math.imul(lt,nt)|0,p=p+Math.imul(dt,Xe)|0,P=P+Math.imul(dt,nt)|0,k=k+Math.imul(Ie,ze)|0,p=p+Math.imul(Ie,tt)|0,p=p+Math.imul(at,ze)|0,P=P+Math.imul(at,tt)|0,k=k+Math.imul(je,it)|0,p=p+Math.imul(je,st)|0,p=p+Math.imul(Ye,it)|0,P=P+Math.imul(Ye,st)|0,k=k+Math.imul(ce,$e)|0,p=p+Math.imul(ce,qe)|0,p=p+Math.imul(xe,$e)|0,P=P+Math.imul(xe,qe)|0,k=k+Math.imul(X,Ae)|0,p=p+Math.imul(X,Ze)|0,p=p+Math.imul(ee,Ae)|0,P=P+Math.imul(ee,Ze)|0;var j0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(j0>>>26)|0,j0&=67108863,k=Math.imul(ut,Me),p=Math.imul(ut,be),p=p+Math.imul(vt,Me)|0,P=Math.imul(vt,be),k=k+Math.imul(ht,ke)|0,p=p+Math.imul(ht,Ge)|0,p=p+Math.imul(ft,ke)|0,P=P+Math.imul(ft,Ge)|0,k=k+Math.imul(et,Xe)|0,p=p+Math.imul(et,nt)|0,p=p+Math.imul(ct,Xe)|0,P=P+Math.imul(ct,nt)|0,k=k+Math.imul(lt,ze)|0,p=p+Math.imul(lt,tt)|0,p=p+Math.imul(dt,ze)|0,P=P+Math.imul(dt,tt)|0,k=k+Math.imul(Ie,it)|0,p=p+Math.imul(Ie,st)|0,p=p+Math.imul(at,it)|0,P=P+Math.imul(at,st)|0,k=k+Math.imul(je,$e)|0,p=p+Math.imul(je,qe)|0,p=p+Math.imul(Ye,$e)|0,P=P+Math.imul(Ye,qe)|0,k=k+Math.imul(ce,Ae)|0,p=p+Math.imul(ce,Ze)|0,p=p+Math.imul(xe,Ae)|0,P=P+Math.imul(xe,Ze)|0;var z0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(z0>>>26)|0,z0&=67108863,k=Math.imul(ut,ke),p=Math.imul(ut,Ge),p=p+Math.imul(vt,ke)|0,P=Math.imul(vt,Ge),k=k+Math.imul(ht,Xe)|0,p=p+Math.imul(ht,nt)|0,p=p+Math.imul(ft,Xe)|0,P=P+Math.imul(ft,nt)|0,k=k+Math.imul(et,ze)|0,p=p+Math.imul(et,tt)|0,p=p+Math.imul(ct,ze)|0,P=P+Math.imul(ct,tt)|0,k=k+Math.imul(lt,it)|0,p=p+Math.imul(lt,st)|0,p=p+Math.imul(dt,it)|0,P=P+Math.imul(dt,st)|0,k=k+Math.imul(Ie,$e)|0,p=p+Math.imul(Ie,qe)|0,p=p+Math.imul(at,$e)|0,P=P+Math.imul(at,qe)|0,k=k+Math.imul(je,Ae)|0,p=p+Math.imul(je,Ze)|0,p=p+Math.imul(Ye,Ae)|0,P=P+Math.imul(Ye,Ze)|0;var U0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(U0>>>26)|0,U0&=67108863,k=Math.imul(ut,Xe),p=Math.imul(ut,nt),p=p+Math.imul(vt,Xe)|0,P=Math.imul(vt,nt),k=k+Math.imul(ht,ze)|0,p=p+Math.imul(ht,tt)|0,p=p+Math.imul(ft,ze)|0,P=P+Math.imul(ft,tt)|0,k=k+Math.imul(et,it)|0,p=p+Math.imul(et,st)|0,p=p+Math.imul(ct,it)|0,P=P+Math.imul(ct,st)|0,k=k+Math.imul(lt,$e)|0,p=p+Math.imul(lt,qe)|0,p=p+Math.imul(dt,$e)|0,P=P+Math.imul(dt,qe)|0,k=k+Math.imul(Ie,Ae)|0,p=p+Math.imul(Ie,Ze)|0,p=p+Math.imul(at,Ae)|0,P=P+Math.imul(at,Ze)|0;var V0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(V0>>>26)|0,V0&=67108863,k=Math.imul(ut,ze),p=Math.imul(ut,tt),p=p+Math.imul(vt,ze)|0,P=Math.imul(vt,tt),k=k+Math.imul(ht,it)|0,p=p+Math.imul(ht,st)|0,p=p+Math.imul(ft,it)|0,P=P+Math.imul(ft,st)|0,k=k+Math.imul(et,$e)|0,p=p+Math.imul(et,qe)|0,p=p+Math.imul(ct,$e)|0,P=P+Math.imul(ct,qe)|0,k=k+Math.imul(lt,Ae)|0,p=p+Math.imul(lt,Ze)|0,p=p+Math.imul(dt,Ae)|0,P=P+Math.imul(dt,Ze)|0;var q0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(q0>>>26)|0,q0&=67108863,k=Math.imul(ut,it),p=Math.imul(ut,st),p=p+Math.imul(vt,it)|0,P=Math.imul(vt,st),k=k+Math.imul(ht,$e)|0,p=p+Math.imul(ht,qe)|0,p=p+Math.imul(ft,$e)|0,P=P+Math.imul(ft,qe)|0,k=k+Math.imul(et,Ae)|0,p=p+Math.imul(et,Ze)|0,p=p+Math.imul(ct,Ae)|0,P=P+Math.imul(ct,Ze)|0;var H0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(H0>>>26)|0,H0&=67108863,k=Math.imul(ut,$e),p=Math.imul(ut,qe),p=p+Math.imul(vt,$e)|0,P=Math.imul(vt,qe),k=k+Math.imul(ht,Ae)|0,p=p+Math.imul(ht,Ze)|0,p=p+Math.imul(ft,Ae)|0,P=P+Math.imul(ft,Ze)|0;var G0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(G0>>>26)|0,G0&=67108863,k=Math.imul(ut,Ae),p=Math.imul(ut,Ze),p=p+Math.imul(vt,Ae)|0,P=Math.imul(vt,Ze);var W0=(L+k|0)+((p&8191)<<13)|0;return L=(P+(p>>>13)|0)+(W0>>>26)|0,W0&=67108863,N[0]=jn,N[1]=ui,N[2]=ws,N[3]=Es,N[4]=Cs,N[5]=$0,N[6]=D0,N[7]=O0,N[8]=L0,N[9]=B0,N[10]=F0,N[11]=j0,N[12]=z0,N[13]=U0,N[14]=V0,N[15]=q0,N[16]=H0,N[17]=G0,N[18]=W0,L!==0&&(N[19]=L,R.length++),R};Math.imul||(x=b);function S(I,h,C){C.negative=h.negative^I.negative,C.length=I.length+h.length;for(var R=0,M=0,T=0;T>>26)|0,M+=N>>>26,N&=67108863}C.words[T]=L,R=N,N=M}return R!==0?C.words[T]=R:C.length--,C._strip()}function A(I,h,C){return S(I,h,C)}s.prototype.mulTo=function(h,C){var R,M=this.length+h.length;return this.length===10&&h.length===10?R=x(this,h,C):M<63?R=b(this,h,C):M<1024?R=S(this,h,C):R=A(this,h,C),R},s.prototype.mul=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),this.mulTo(h,C)},s.prototype.mulf=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),A(this,h,C)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var C=h<0;C&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var R=0,M=0;M>=26,R+=T/67108864|0,R+=N>>>26,this.words[M]=N&67108863}return R!==0&&(this.words[M]=R,this.length++),C?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 C=w(h);if(C.length===0)return new s(1);for(var R=this,M=0;M=0);var C=h%26,R=(h-C)/26,M=67108863>>>26-C<<26-C,T;if(C!==0){var N=0;for(T=0;T>>26-C}N&&(this.words[T]=N,this.length++)}if(R!==0){for(T=this.length-1;T>=0;T--)this.words[T+R]=this.words[T];for(T=0;T=0);var M;C?M=(C-C%26)/26:M=0;var T=h%26,N=Math.min((h-T)/26,this.length),L=67108863^67108863>>>T<N)for(this.length-=N,p=0;p=0&&(P!==0||p>=M);p--){var B=this.words[p]|0;this.words[p]=P<<26-T|B>>>T,P=B&L}return k&&P!==0&&(k.words[k.length++]=P),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,C,R){return n(this.negative===0),this.iushrn(h,C,R)},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 C=h%26,R=(h-C)/26,M=1<=0);var C=h%26,R=(h-C)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=R)return this;if(C!==0&&R++,this.length=Math.min(R,this.length),C!==0){var M=67108863^67108863>>>C<=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+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 C=0;C>26)-(k/67108864|0),this.words[T+R]=N&67108863}for(;T>26,this.words[T+R]=N&67108863;if(L===0)return this._strip();for(n(L===-1),L=0,T=0;T>26,this.words[T]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,C){var R=this.length-h.length,M=this.clone(),T=h,N=T.words[T.length-1]|0,L=this._countBits(N);R=26-L,R!==0&&(T=T.ushln(R),M.iushln(R),N=T.words[T.length-1]|0);var k=M.length-T.length,p;if(C!=="mod"){p=new s(null),p.length=k+1,p.words=new Array(p.length);for(var P=0;P=0;E--){var F=(M.words[T.length+E]|0)*67108864+(M.words[T.length+E-1]|0);for(F=Math.min(F/N|0,67108863),M._ishlnsubmul(T,F,E);M.negative!==0;)F--,M.negative=0,M._ishlnsubmul(T,1,E),M.isZero()||(M.negative^=1);p&&(p.words[E]=F)}return p&&p._strip(),M._strip(),C!=="div"&&R!==0&&M.iushrn(R),{div:p||null,mod:M}},s.prototype.divmod=function(h,C,R){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var M,T,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,C),C!=="mod"&&(M=N.div.neg()),C!=="div"&&(T=N.mod.neg(),R&&T.negative!==0&&T.iadd(h)),{div:M,mod:T}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),C),C!=="mod"&&(M=N.div.neg()),{div:M,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),C),C!=="div"&&(T=N.mod.neg(),R&&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?C==="div"?{div:this.divn(h.words[0]),mod:null}:C==="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,C)},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 C=this.divmod(h);if(C.mod.isZero())return C.div;var R=C.div.negative!==0?C.mod.isub(h):C.mod,M=h.ushrn(1),T=h.andln(1),N=R.cmp(M);return N<0||T===1&&N===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},s.prototype.modrn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var R=(1<<26)%h,M=0,T=this.length-1;T>=0;T--)M=(R*M+(this.words[T]|0))%h;return C?-M:M},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var R=0,M=this.length-1;M>=0;M--){var T=(this.words[M]|0)+R*67108864;this.words[M]=T/h|0,R=T%h}return this._strip(),C?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 C=this,R=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=new s(0),L=new s(1),k=0;C.isEven()&&R.isEven();)C.iushrn(1),R.iushrn(1),++k;for(var p=R.clone(),P=C.clone();!C.isZero();){for(var B=0,E=1;!(C.words[0]&E)&&B<26;++B,E<<=1);if(B>0)for(C.iushrn(B);B-- >0;)(M.isOdd()||T.isOdd())&&(M.iadd(p),T.isub(P)),M.iushrn(1),T.iushrn(1);for(var F=0,j=1;!(R.words[0]&j)&&F<26;++F,j<<=1);if(F>0)for(R.iushrn(F);F-- >0;)(N.isOdd()||L.isOdd())&&(N.iadd(p),L.isub(P)),N.iushrn(1),L.iushrn(1);C.cmp(R)>=0?(C.isub(R),M.isub(N),T.isub(L)):(R.isub(C),N.isub(M),L.isub(T))}return{a:N,b:L,gcd:R.iushln(k)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var C=this,R=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=R.clone();C.cmpn(1)>0&&R.cmpn(1)>0;){for(var L=0,k=1;!(C.words[0]&k)&&L<26;++L,k<<=1);if(L>0)for(C.iushrn(L);L-- >0;)M.isOdd()&&M.iadd(N),M.iushrn(1);for(var p=0,P=1;!(R.words[0]&P)&&p<26;++p,P<<=1);if(p>0)for(R.iushrn(p);p-- >0;)T.isOdd()&&T.iadd(N),T.iushrn(1);C.cmp(R)>=0?(C.isub(R),M.isub(T)):(R.isub(C),T.isub(M))}var B;return C.cmpn(1)===0?B=M:B=T,B.cmpn(0)<0&&B.iadd(h),B},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var C=this.clone(),R=h.clone();C.negative=0,R.negative=0;for(var M=0;C.isEven()&&R.isEven();M++)C.iushrn(1),R.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;R.isEven();)R.iushrn(1);var T=C.cmp(R);if(T<0){var N=C;C=R,R=N}else if(T===0||R.cmpn(1)===0)break;C.isub(R)}while(!0);return R.iushln(M)},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 C=h%26,R=(h-C)/26,M=1<>>26,L&=67108863,this.words[N]=L}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 C=h<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this._strip();var R;if(this.length>1)R=1;else{C&&(h=-h),n(h<=67108863,"Number is too big");var M=this.words[0]|0;R=M===h?0:Mh.length)return 1;if(this.length=0;R--){var M=this.words[R]|0,T=h.words[R]|0;if(M!==T){MT&&(C=1);break}}return C},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 Q(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(I,h){this.name=I,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 C=h,R;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),R=C.bitLength();while(R>this.n);var M=R0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},D.prototype.split=function(h,C){h.iushrn(this.n,0,C)},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,C){for(var R=4194303,M=Math.min(h.length,9),T=0;T>>22,N=L}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 C=0,R=0;R>>=26,h.words[R]=T,C=M}return C!==0&&(h.words[h.length++]=C),h},s._prime=function(h){if(_[h])return _[h];var C;if(h==="k256")C=new $;else if(h==="p224")C=new O;else if(h==="p192")C=new H;else if(h==="p25519")C=new Y;else throw new Error("Unknown prime "+h);return _[h]=C,C};function Q(I){if(typeof I=="string"){var h=s._prime(I);this.m=h.p,this.prime=h}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}Q.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},Q.prototype._verify2=function(h,C){n((h.negative|C.negative)===0,"red works only with positives"),n(h.red&&h.red===C.red,"red works only with red numbers")},Q.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},Q.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Q.prototype.add=function(h,C){this._verify2(h,C);var R=h.add(C);return R.cmp(this.m)>=0&&R.isub(this.m),R._forceRed(this)},Q.prototype.iadd=function(h,C){this._verify2(h,C);var R=h.iadd(C);return R.cmp(this.m)>=0&&R.isub(this.m),R},Q.prototype.sub=function(h,C){this._verify2(h,C);var R=h.sub(C);return R.cmpn(0)<0&&R.iadd(this.m),R._forceRed(this)},Q.prototype.isub=function(h,C){this._verify2(h,C);var R=h.isub(C);return R.cmpn(0)<0&&R.iadd(this.m),R},Q.prototype.shl=function(h,C){return this._verify1(h),this.imod(h.ushln(C))},Q.prototype.imul=function(h,C){return this._verify2(h,C),this.imod(h.imul(C))},Q.prototype.mul=function(h,C){return this._verify2(h,C),this.imod(h.mul(C))},Q.prototype.isqr=function(h){return this.imul(h,h.clone())},Q.prototype.sqr=function(h){return this.mul(h,h)},Q.prototype.sqrt=function(h){if(h.isZero())return h.clone();var C=this.m.andln(3);if(n(C%2===1),C===3){var R=this.m.add(new s(1)).iushrn(2);return this.pow(h,R)}for(var M=this.m.subn(1),T=0;!M.isZero()&&M.andln(1)===0;)T++,M.iushrn(1);n(!M.isZero());var N=new s(1).toRed(this),L=N.redNeg(),k=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new s(2*p*p).toRed(this);this.pow(p,k).cmp(L)!==0;)p.redIAdd(L);for(var P=this.pow(p,M),B=this.pow(h,M.addn(1).iushrn(1)),E=this.pow(h,M),F=T;E.cmp(N)!==0;){for(var j=E,z=0;j.cmp(N)!==0;z++)j=j.redSqr();n(z=0;T--){for(var P=C.words[T],B=p-1;B>=0;B--){var E=P>>B&1;if(N!==M[0]&&(N=this.sqr(N)),E===0&&L===0){k=0;continue}L<<=1,L|=E,k++,!(k!==R&&(T!==0||B!==0))&&(N=this.mul(N,M[L]),k=0,L=0)}p=26}return N},Q.prototype.convertTo=function(h){var C=h.umod(this.m);return C===h?C.clone():C},Q.prototype.convertFrom=function(h){var C=h.clone();return C.red=null,C},s.mont=function(h){return new re(h)};function re(I){Q.call(this,I),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(re,Q),re.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},re.prototype.convertFrom=function(h){var C=this.imod(h.mul(this.rinv));return C.red=null,C},re.prototype.imul=function(h,C){if(h.isZero()||C.isZero())return h.words[0]=0,h.length=1,h;var R=h.imul(C),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=R.isub(M).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)},re.prototype.mul=function(h,C){if(h.isZero()||C.isZero())return new s(0)._forceRed(this);var R=h.mul(C),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=R.isub(M).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)},re.prototype.invm=function(h){var C=this.imod(h._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(t,m4)})(ag);var zj=ag.exports;const Pe=lo(zj),Uj="logger/5.7.0";let B3=!1,F3=!1;const Rd={debug:1,default:2,info:2,warning:3,error:4,off:5};let j3=Rd.default,G1=null;function Vj(){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 z3=Vj();var np;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(np||(np={}));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 U3="0123456789abcdef";let V=class tr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Rd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(j3>Rd[n])&&console.log.apply(console,r)}debug(...e){this._log(tr.levels.DEBUG,e)}info(...e){this._log(tr.levels.INFO,e)}warn(...e){this._log(tr.levels.WARNING,e)}makeError(e,r,n){if(F3)return this.makeError("censored error",r,{});r||(r=tr.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+=U3[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,tr.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){z3&&this.throwError("platform missing String.prototype.normalize",tr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:z3})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,tr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,tr.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,tr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",tr.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",tr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",tr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return G1||(G1=new tr(Uj)),G1}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",tr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),B3){if(!e)return;this.globalLogger().throwError("error censorship permanent",tr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}F3=!!e,B3=!!r}static setLogLevel(e){const r=Rd[e.toLowerCase()];if(r==null){tr.globalLogger().warn("invalid log level - "+e);return}j3=r}static from(e){return new tr(e)}};V.errors=Kn;V.levels=np;const qj="bytes/5.7.0",Bt=new V(qj);function HA(t){return!!t.toHexString}function tl(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return tl(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function w0(t){return We(t)&&!(t.length%2)||$l(t)}function V3(t){return typeof t=="number"&&t==t&&t%1===0}function $l(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!V3(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function ae(t,e){if(e||(e={}),typeof t=="number"){Bt.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),tl(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),HA(t)&&(t=t.toHexString()),We(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Bt.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;iae(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),tl(n)}function fs(t){let e=ae(t);if(e.length===0)return e;let r=0;for(;re&&Bt.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),tl(r)}function We(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const W1="0123456789abcdef";function le(t,e){if(e||(e={}),typeof t=="number"){Bt.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=W1[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),HA(t))return t.toHexString();if(We(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Bt.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if($l(t)){let r="0x";for(let n=0;n>4]+W1[i&15]}return r}return Bt.throwArgumentError("invalid hexlify value","value",t)}function Jo(t){if(typeof t!="string")t=le(t);else if(!We(t)||t.length%2)return null;return(t.length-2)/2}function ir(t,e,r){return typeof t!="string"?t=le(t):(!We(t)||t.length%2)&&Bt.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function qr(t){let e="0x";return t.forEach(r=>{e+=le(r).substring(2)}),e}function lg(t){const e=Gj(le(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function Gj(t){typeof t!="string"&&(t=le(t)),We(t)||Bt.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Bt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Dl(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(w0(t)){let r=ae(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=le(r.slice(0,32)),e.s=le(r.slice(32,64))):r.length===65?(e.r=le(r.slice(0,32)),e.s=le(r.slice(32,64)),e.v=r[64]):Bt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Bt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=le(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=Hj(ae(e._vs),32);e._vs=le(i);const s=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=s:e.recoveryParam!==s&&Bt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const o=le(i);e.s==null?e.s=o:e.s!==o&&Bt.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Bt.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&&Bt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!We(e.r)?Bt.throwArgumentError("signature missing or invalid r","signature",t):e.r=Et(e.r,32),e.s==null||!We(e.s)?Bt.throwArgumentError("signature missing or invalid s","signature",t):e.s=Et(e.s,32);const r=ae(e.s);r[0]>=128&&Bt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=le(r);e._vs&&(We(e._vs)||Bt.throwArgumentError("signature invalid _vs","signature",t),e._vs=Et(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Bt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function q3(t){return t=Dl(t),le(Kt([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const GA="bignumber/5.7.0";var Eh=Pe.BN;const Ji=new V(GA),K1={},H3=9007199254740991;function Wj(t){return t!=null&&(oe.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||We(t)||typeof t=="bigint"||$l(t))}let G3=!1;class oe{constructor(e,r){e!==K1&&Ji.throwError("cannot call constructor directly; use BigNumber.from",V.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Ur(Oe(this).fromTwos(e))}toTwos(e){return Ur(Oe(this).toTwos(e))}abs(){return this._hex[0]==="-"?oe.from(this._hex.substring(1)):this}add(e){return Ur(Oe(this).add(Oe(e)))}sub(e){return Ur(Oe(this).sub(Oe(e)))}div(e){return oe.from(e).isZero()&&mn("division-by-zero","div"),Ur(Oe(this).div(Oe(e)))}mul(e){return Ur(Oe(this).mul(Oe(e)))}mod(e){const r=Oe(e);return r.isNeg()&&mn("division-by-zero","mod"),Ur(Oe(this).umod(r))}pow(e){const r=Oe(e);return r.isNeg()&&mn("negative-power","pow"),Ur(Oe(this).pow(r))}and(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","and"),Ur(Oe(this).and(r))}or(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","or"),Ur(Oe(this).or(r))}xor(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","xor"),Ur(Oe(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&mn("negative-width","mask"),Ur(Oe(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&mn("negative-width","shl"),Ur(Oe(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&mn("negative-width","shr"),Ur(Oe(this).shrn(e))}eq(e){return Oe(this).eq(Oe(e))}lt(e){return Oe(this).lt(Oe(e))}lte(e){return Oe(this).lte(Oe(e))}gt(e){return Oe(this).gt(Oe(e))}gte(e){return Oe(this).gte(Oe(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Oe(this).isZero()}toNumber(){try{return Oe(this).toNumber()}catch{mn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Ji.throwError("this platform does not support BigInt",V.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?G3||(G3=!0,Ji.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Ji.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",V.errors.UNEXPECTED_ARGUMENT,{}):Ji.throwError("BigNumber.toString does not accept parameters",V.errors.UNEXPECTED_ARGUMENT,{})),Oe(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof oe)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new oe(K1,Uf(e)):e.match(/^-?[0-9]+$/)?new oe(K1,Uf(new Eh(e))):Ji.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&mn("underflow","BigNumber.from",e),(e>=H3||e<=-H3)&&mn("overflow","BigNumber.from",e),oe.from(String(e));const r=e;if(typeof r=="bigint")return oe.from(r.toString());if($l(r))return oe.from(le(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return oe.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(We(n)||n[0]==="-"&&We(n.substring(1))))return oe.from(n)}return Ji.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Uf(t){if(typeof t!="string")return Uf(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Ji.throwArgumentError("invalid hex","value",t),t=Uf(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 Ur(t){return oe.from(Uf(t))}function Oe(t){const e=oe.from(t).toHexString();return e[0]==="-"?new Eh("-"+e.substring(3),16):new Eh(e.substring(2),16)}function mn(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),Ji.throwError(t,V.errors.NUMERIC_FAULT,n)}function Kj(t){return new Eh(t,36).toString(16)}const Br=new V(GA),cf={},WA=oe.from(0),KA=oe.from(-1);function YA(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),Br.throwError(t,V.errors.NUMERIC_FAULT,i)}let ff="0";for(;ff.length<256;)ff+=ff;function cg(t){if(typeof t!="number")try{t=oe.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+ff.substring(0,t):Br.throwArgumentError("invalid decimal size","decimals",t)}function Pd(t,e){e==null&&(e=0);const r=cg(e);t=oe.from(t);const n=t.lt(WA);n&&(t=t.mul(KA));let i=t.mod(r).toString();for(;i.length2&&Br.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&&YA("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&Br.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&&Br.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Br.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new rl(cf,r,n,i)}}class pr{constructor(e,r,n,i){e!==cf&&Br.throwError("cannot use FixedNumber constructor; use FixedNumber.from",V.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&&Br.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=pi(this._value,this.format.decimals),n=pi(e._value,e.format.decimals);return pr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=pi(this._value,this.format.decimals),n=pi(e._value,e.format.decimals);return pr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=pi(this._value,this.format.decimals),n=pi(e._value,e.format.decimals);return pr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=pi(this._value,this.format.decimals),n=pi(e._value,e.format.decimals);return pr.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=pr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(W3.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=pr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(W3.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)&&Br.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=pr.from("1"+ff.substring(0,e),this.format),i=Yj.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&&Br.throwArgumentError("invalid byte width","width",e);const r=oe.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Et(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return pr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!Wj(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),pr.fromString(Pd(e,r),rl.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=rl.from(r),i=pi(e,n.decimals);!n.signed&&i.lt(WA)&&YA("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=Et(s,n.width/8));const o=Pd(i,n.decimals);return new pr(cf,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=rl.from(r);if(ae(e).length>n.width/8)throw new Error("overflow");let i=oe.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=Pd(i,n.decimals);return new pr(cf,s,o,n)}static from(e,r){if(typeof e=="string")return pr.fromString(e,r);if($l(e))return pr.fromBytes(e,r);try{return pr.fromValue(e,0,r)}catch(n){if(n.code!==V.errors.INVALID_ARGUMENT)throw n}return Br.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const W3=pr.from(1),Yj=pr.from("0.5"),Qj="properties/5.7.0";var Jj=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 Ch=new V(Qj);function Z(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Mi(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 qt(t){return Jj(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 QA(t,e){(!t||typeof t!="object")&&Ch.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||Ch.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function ar(t){const e={};for(const r in t)e[r]=t[r];return e}const Xj={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function JA(t){if(t==null||Xj[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;rXo(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&Z(e,r,Xo(n))}return e}return Ch.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function Xo(t){return Zj(t)}class fa{constructor(e){for(const r in e)this[r]=Xo(e[r])}}const vu="abi/5.7.0",Ue=new V(vu),Zo={};let K3={calldata:!0,memory:!0,storage:!0},ez={calldata:!0,memory:!0};function ed(t,e){if(t==="bytes"||t==="string"){if(K3[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&ez[e])return!0;return(K3[e]||e==="payable")&&Ue.throwArgumentError("invalid modifier","name",e),!1}function tz(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!==Qe.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Qe.full?", ":",")+")"):r+=this.type,e!==Qe.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Qe.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?ur.fromString(e,r):ur.fromObject(e)}static fromObject(e){return ur.isParamType(e)?e:new ur(Zo,{name:e.name||null,type:Sa(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(ur.fromObject):null})}static fromString(e,r){function n(i){return ur.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(tz(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Vf(t,e){return iz(t).map(r=>ur.fromString(r,e))}class ss{constructor(e,r){e!==Zo&&Ue.throwError("use a static from method",V.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Td(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return ss.isFragment(e)?e:typeof e=="string"?ss.fromString(e):ss.fromObject(e)}static fromObject(e){if(ss.isFragment(e))return e;switch(e.type){case"function":return Si.fromObject(e);case"event":return ts.fromObject(e);case"constructor":return Ci.fromObject(e);case"error":return Os.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"?ts.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Si.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Ci.fromString(e.trim()):e.split(" ")[0]==="error"?Os.fromString(e.substring(5).trim()):Ue.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class ts extends ss{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.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!==Qe.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",e!==Qe.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?ts.fromString(e):ts.fromObject(e)}static fromObject(e){if(ts.isEventFragment(e))return e;e.type!=="event"&&Ue.throwArgumentError("invalid event object","value",e);const r={name:qf(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(ur.fromObject):[],type:"event"};return new ts(Zo,r)}static fromString(e){let r=e.match(Hf);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)}}),ts.fromObject({name:r[1].trim(),anonymous:n,inputs:Vf(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function XA(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=oe.from(r[1]),r[0]):t}function ZA(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 e7(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 Ci extends ss{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.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===Qe.sighash&&Ue.throwError("cannot format a constructor for sighash",V.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Ci.fromString(e):Ci.fromObject(e)}static fromObject(e){if(Ci.isConstructorFragment(e))return e;e.type!=="constructor"&&Ue.throwArgumentError("invalid constructor object","value",e);let r=e7(e);r.constant&&Ue.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(ur.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?oe.from(e.gas):null};return new Ci(Zo,n)}static fromString(e){let r={type:"constructor"};e=XA(e,r);let n=e.match(Hf);return(!n||n[1].trim()!=="constructor")&&Ue.throwArgumentError("invalid constructor string","value",e),r.inputs=Vf(n[2].trim(),!1),ZA(n[3].trim(),r),Ci.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Si extends Ci{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.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!==Qe.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",e!==Qe.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"?Si.fromString(e):Si.fromObject(e)}static fromObject(e){if(Si.isFunctionFragment(e))return e;e.type!=="function"&&Ue.throwArgumentError("invalid function object","value",e);let r=e7(e);const n={type:e.type,name:qf(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(ur.fromObject):[],outputs:e.outputs?e.outputs.map(ur.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?oe.from(e.gas):null};return new Si(Zo,n)}static fromString(e){let r={type:"function"};e=XA(e,r);let n=e.split(" returns ");n.length>2&&Ue.throwArgumentError("invalid function string","value",e);let i=n[0].match(Hf);if(i||Ue.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&qf(r.name),r.inputs=Vf(i[2],!1),ZA(i[3].trim(),r),n.length>1){let s=n[1].match(Hf);(s[1].trim()!=""||s[3].trim()!="")&&Ue.throwArgumentError("unexpected tokens","value",e),r.outputs=Vf(s[2],!1)}else r.outputs=[];return Si.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function Y3(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ue.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class Os extends ss{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Qe.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?Os.fromString(e):Os.fromObject(e)}static fromObject(e){if(Os.isErrorFragment(e))return e;e.type!=="error"&&Ue.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:qf(e.name),inputs:e.inputs?e.inputs.map(ur.fromObject):[]};return Y3(new Os(Zo,r))}static fromString(e){let r={type:"error"},n=e.match(Hf);return n||Ue.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&qf(r.name),r.inputs=Vf(n[2],!1),Y3(Os.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Sa(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const nz=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function qf(t){return(!t||!t.match(nz))&&Ue.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Hf=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function iz(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&fg.throwError("value out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=Kt([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 Sh{constructor(e,r,n,i){Z(this,"_data",ae(e)),Z(this,"wordSize",r||32),Z(this,"_coerceFunc",n),Z(this,"allowLoose",i),this._offset=0}get data(){return le(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):Sh.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:fg.throwError("data out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new Sh(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 oe.from(this.readBytes(this.wordSize))}}var t7={exports:{}};/** + */function Sh(){return Sh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{value:e,digits:r=6,onChange:n,disabled:i=!1}=t,s=g.useMemo(()=>H3(0,r).map(()=>g.createRef()),[]);g.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 m,y;const u=s[c].current,d=(m=s[c-1])==null?void 0:m.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,m;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((m=(v=s[0])==null?void 0:v.current)==null||m.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return U.jsx(ie,{gap:"2",children:H3(0,r).map(c=>U.jsxs(g.Fragment,{children:[c===r/2&&U.jsx("span",{}),U.jsx(ie,{as:"input",className:jj,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))})},H3=(t,e)=>Array.from({length:e-t},(r,n)=>n+t),XA=()=>U.jsxs(ie,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[U.jsx(Le,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),U.jsx(Le,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function zj(t={}){const{nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}=t,[i,s]=g.useState(!1),o=g.useRef(r);o.current=r;const a=g.useRef(n);return a.current=n,g.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 ZA=g.createContext(null);function Uj({clientId:t,nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=zj({nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}),o=g.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:s}),[t,s]);return cr.createElement(ZA.Provider,{value:o},i)}function Vj(){const t=g.useContext(ZA);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function qj(t){var e;return(e=t==null?void 0:t.clientId)!==null&&e!==void 0?e:t==null?void 0:t.client_id}const Hj={large:40,medium:32,small:20};function Gj({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,...m}){const y=g.useRef(null),{clientId:w,scriptLoadedSuccessfully:x}=Vj(),b=g.useRef(t);b.current=t;const S=g.useRef(e);S.current=e;const A=g.useRef(n);return A.current=n,g.useEffect(()=>{var _,D,$,O,H,Y,Q,re,I;if(x)return($=(D=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||D===void 0?void 0:D.id)===null||$===void 0||$.initialize({client_id:w,callback:h=>{var C;if(!(h!=null&&h.credential))return(C=S.current)===null||C===void 0?void 0:C.call(S);const{credential:R,select_by:M}=h;b.current({credential:R,clientId:qj(h),select_by:M})},...m}),(Y=(H=(O=window==null?void 0:window.google)===null||O===void 0?void 0:O.accounts)===null||H===void 0?void 0:H.id)===null||Y===void 0||Y.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((I=(re=(Q=window==null?void 0:window.google)===null||Q===void 0?void 0:Q.accounts)===null||re===void 0?void 0:re.id)===null||I===void 0||I.prompt(A.current)),()=>{var h,C,R;r&&((R=(C=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||C===void 0?void 0:C.id)===null||R===void 0||R.cancel())}},[w,x,r,i,s,o,a,l,c,f,u]),cr.createElement("div",{...v,ref:y,style:{height:Hj[o],...v==null?void 0:v.style}})}function Wj(){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 e7={},A0={},yu={};Object.defineProperty(yu,"__esModule",{value:!0});yu.default=void 0;var Kj=g;function Yj(t){(0,Kj.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 Qj=Yj;yu.default=Qj;var pu={},k0={};Object.defineProperty(k0,"__esModule",{value:!0});k0.default=void 0;var Jj=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})})},Xj=Jj;k0.default=Xj;Object.defineProperty(pu,"__esModule",{value:!0});pu.default=void 0;var Zj=ez(k0);function ez(t){return t&&t.__esModule?t:{default:t}}var tz="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",rz=function(e){var r=e.authOptions,n=e.onSuccess,i=e.onError;return(0,Zj.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})},nz={APPLE_SCRIPT_SRC:tz,signIn:rz};pu.default=nz;Object.defineProperty(A0,"__esModule",{value:!0});A0.default=void 0;var hi=vg(g),iz=vg(yu),G3=vg(pu),sz=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function vg(t){return t&&t.__esModule?t:{default:t}}function Ah(){return Ah=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function cz(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 fz=` +.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,""),uz=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,m=e.buttonExtraChildren,y=m===void 0?"Continue with Apple":m,w=lz(e,sz);(0,iz.default)(s?null:G3.default.APPLE_SCRIPT_SRC);var x=function(A){A&&(A.preventDefault(),A.stopPropagation()),G3.default.signIn({authOptions:o,onSuccess:r,onError:n})},b=oz({children:hi.default.createElement(hi.default.Fragment,null,hi.default.createElement("svg",Ah({width:"24px",height:"44px",viewBox:"0 0 24 44"},a),hi.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},hi.default.createElement("rect",{fill:f==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),hi.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):hi.default.createElement(hi.default.Fragment,null,hi.default.createElement("button",Ah({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:hi.default.createElement("style",null,fz))},dz=uz;A0.default=dz;(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(A0),r=i(pu),n=i(yu);function i(o){return o&&o.__esModule?o:{default:o}}var s=e.default;t.default=s})(e7);const hz=xs(e7);let ue=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.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_TESTNET=69]="OPTIMISM_TESTNET",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.FANTOM=250]="FANTOM",t[t.FANTOM_TESTNET=4002]="FANTOM_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.AURORA=1313161554]="AURORA",t[t.AURORA_TESTNET=1313161556]="AURORA_TESTNET",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),yt=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const Ut={[ue.MAINNET]:{chainId:ue.MAINNET,type:yt.MAINNET,name:"mainnet",title:"Ethereum",blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.ROPSTEN]:{chainId:ue.ROPSTEN,type:yt.TESTNET,name:"ropsten",title:"Ropsten",testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.RINKEBY]:{chainId:ue.RINKEBY,type:yt.TESTNET,name:"rinkeby",title:"Rinkeby",testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.GOERLI]:{chainId:ue.GOERLI,type:yt.TESTNET,name:"goerli",title:"Goerli",testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.KOVAN]:{chainId:ue.KOVAN,type:yt.TESTNET,name:"kovan",title:"Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"}},[ue.SEPOLIA]:{chainId:ue.SEPOLIA,type:yt.TESTNET,name:"sepolia",title:"Sepolia",testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[ue.POLYGON]:{chainId:ue.POLYGON,type:yt.MAINNET,name:"polygon",title:"Polygon",blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[ue.POLYGON_MUMBAI]:{chainId:ue.POLYGON_MUMBAI,type:yt.TESTNET,name:"mumbai",title:"Polygon Mumbai",testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"}},[ue.POLYGON_ZKEVM]:{chainId:ue.POLYGON_ZKEVM,type:yt.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[ue.BSC]:{chainId:ue.BSC,type:yt.MAINNET,name:"bsc",title:"BNB Smart Chain",blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[ue.BSC_TESTNET]:{chainId:ue.BSC_TESTNET,type:yt.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[ue.OPTIMISM]:{chainId:ue.OPTIMISM,type:yt.MAINNET,name:"optimism",title:"Optimism",blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[ue.OPTIMISM_TESTNET]:{chainId:ue.OPTIMISM_TESTNET,type:yt.TESTNET,name:"optimism-testnet",title:"Optimistic Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Optimism Testnet)",rootUrl:"https://kovan-optimistic.etherscan.io/"}},[ue.ARBITRUM]:{chainId:ue.ARBITRUM,type:yt.MAINNET,name:"arbitrum",title:"Arbitrum One",blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[ue.ARBITRUM_GOERLI]:{chainId:ue.ARBITRUM_GOERLI,type:yt.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",testnet:!0,blockExplorer:{name:"Arbiscan (Testnet)",rootUrl:"https://testnet.arbiscan.io/"}},[ue.ARBITRUM_NOVA]:{chainId:ue.ARBITRUM_NOVA,type:yt.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[ue.AVALANCHE]:{chainId:ue.AVALANCHE,type:yt.MAINNET,name:"avalanche",title:"Avalanche",blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[ue.AVALANCHE_TESTNET]:{chainId:ue.AVALANCHE_TESTNET,type:yt.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[ue.FANTOM]:{chainId:ue.FANTOM,type:yt.MAINNET,name:"fantom",title:"Fantom",blockExplorer:{name:"FTMScan",rootUrl:"https://ftmscan.com/"}},[ue.FANTOM_TESTNET]:{chainId:ue.FANTOM_TESTNET,type:yt.TESTNET,name:"fantom-testnet",title:"Fantom Testnet",testnet:!0,blockExplorer:{name:"FTMScan (Testnet)",rootUrl:"https://testnet.ftmscan.com/"}},[ue.GNOSIS]:{chainId:ue.GNOSIS,type:yt.MAINNET,name:"gnosis",title:"Gnosis Chain",blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[ue.AURORA]:{chainId:ue.AURORA,type:yt.MAINNET,name:"aurora",title:"Aurora",blockExplorer:{name:"Aurora Explorer",rootUrl:"https://aurorascan.dev/"}},[ue.AURORA_TESTNET]:{chainId:ue.AURORA_TESTNET,type:yt.TESTNET,name:"aurora-testnet",title:"Aurora Testnet",testnet:!0,blockExplorer:{name:"Aurora Explorer (Testnet)",rootUrl:"https://testnet.aurorascan.dev/"}},[ue.BASE]:{chainId:ue.BASE,type:yt.MAINNET,name:"base",title:"Base (Coinbase)",blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[ue.BASE_GOERLI]:{chainId:ue.BASE_GOERLI,type:yt.TESTNET,name:"base-goerli",title:"Base Goerli",testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"}},[ue.HOMEVERSE]:{chainId:ue.HOMEVERSE,type:yt.MAINNET,name:"homeverse",title:"Oasys Homeverse",blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[ue.HOMEVERSE_TESTNET]:{chainId:ue.HOMEVERSE_TESTNET,type:yt.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[ue.HARDHAT]:{chainId:ue.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[ue.HARDHAT_2]:{chainId:ue.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var yg={exports:{}};const vz={},yz=Object.freeze(Object.defineProperty({__proto__:null,default:vz},Symbol.toStringTag,{value:"Module"})),pz=jh(yz);yg.exports;(function(t){(function(e,r){function n(I,h){if(!I)throw new Error(h||"Assertion failed")}function i(I,h){I.super_=h;var C=function(){};C.prototype=h.prototype,I.prototype=new C,I.prototype.constructor=I}function s(I,h,C){if(s.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((h==="le"||h==="be")&&(C=h,h=10),this._init(I||0,h||10,C||"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=pz.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,C){return h.cmp(C)>0?h:C},s.min=function(h,C){return h.cmp(C)<0?h:C},s.prototype._init=function(h,C,R){if(typeof h=="number")return this._initNumber(h,C,R);if(typeof h=="object")return this._initArray(h,C,R);C==="hex"&&(C=16),n(C===(C|0)&&C>=2&&C<=36),h=h.toString().replace(/\s+/g,"");var M=0;h[0]==="-"&&(M++,this.negative=1),M=0;M-=3)N=h[M]|h[M-1]<<8|h[M-2]<<16,this.words[T]|=N<>>26-L&67108863,L+=24,L>=26&&(L-=26,T++);else if(R==="le")for(M=0,T=0;M>>26-L&67108863,L+=24,L>=26&&(L-=26,T++);return this._strip()};function a(I,h){var C=I.charCodeAt(h);if(C>=48&&C<=57)return C-48;if(C>=65&&C<=70)return C-55;if(C>=97&&C<=102)return C-87;n(!1,"Invalid character in "+I)}function l(I,h,C){var R=a(I,C);return C-1>=h&&(R|=a(I,C-1)<<4),R}s.prototype._parseHex=function(h,C,R){this.length=Math.ceil((h.length-C)/6),this.words=new Array(this.length);for(var M=0;M=C;M-=2)L=l(h,C,M)<=18?(T-=18,N+=1,this.words[N]|=L>>>26):T+=8;else{var k=h.length-C;for(M=k%2===0?C+1:C;M=18?(T-=18,N+=1,this.words[N]|=L>>>26):T+=8}this._strip()};function c(I,h,C,R){for(var M=0,T=0,N=Math.min(I.length,C),L=h;L=49?T=k-49+10:k>=17?T=k-17+10:T=k,n(k>=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],m=[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,C){h=h||10,C=C|0||1;var R;if(h===16||h==="hex"){R="";for(var M=0,T=0,N=0;N>>24-M&16777215,M+=2,M>=26&&(M-=26,N--),T!==0||N!==this.length-1?R=d[6-k.length]+k+R:R=k+R}for(T!==0&&(R=T.toString(16)+R);R.length%C!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}if(h===(h|0)&&h>=2&&h<=36){var p=v[h],P=m[h];R="";var B=this.clone();for(B.negative=0;!B.isZero();){var E=B.modrn(P).toString(h);B=B.idivn(P),B.isZero()?R=E+R:R=d[p-E.length]+E+R}for(this.isZero()&&(R="0"+R);R.length%C!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}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,C){return this.toArrayLike(o,h,C)}),s.prototype.toArray=function(h,C){return this.toArrayLike(Array,h,C)};var y=function(h,C){return h.allocUnsafe?h.allocUnsafe(C):new h(C)};s.prototype.toArrayLike=function(h,C,R){this._strip();var M=this.byteLength(),T=R||Math.max(1,M);n(M<=T,"byte array longer than desired length"),n(T>0,"Requested array length <= 0");var N=y(h,T),L=C==="le"?"LE":"BE";return this["_toArrayLike"+L](N,M),N},s.prototype._toArrayLikeLE=function(h,C){for(var R=0,M=0,T=0,N=0;T>8&255),R>16&255),N===6?(R>24&255),M=0,N=0):(M=L>>>24,N+=2)}if(R=0&&(h[R--]=L>>8&255),R>=0&&(h[R--]=L>>16&255),N===6?(R>=0&&(h[R--]=L>>24&255),M=0,N=0):(M=L>>>24,N+=2)}if(R>=0)for(h[R--]=M;R>=0;)h[R--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var C=h,R=0;return C>=4096&&(R+=13,C>>>=13),C>=64&&(R+=7,C>>>=7),C>=8&&(R+=4,C>>>=4),C>=2&&(R+=2,C>>>=2),R+C},s.prototype._zeroBits=function(h){if(h===0)return 26;var C=h,R=0;return C&8191||(R+=13,C>>>=13),C&127||(R+=7,C>>>=7),C&15||(R+=4,C>>>=4),C&3||(R+=2,C>>>=2),C&1||R++,R},s.prototype.bitLength=function(){var h=this.words[this.length-1],C=this._countBits(h);return(this.length-1)*26+C};function w(I){for(var h=new Array(I.bitLength()),C=0;C>>M&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,C=0;Ch.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 C;this.length>h.length?C=h:C=this;for(var R=0;Rh.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 C,R;this.length>h.length?(C=this,R=h):(C=h,R=this);for(var M=0;Mh.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 C=Math.ceil(h/26)|0,R=h%26;this._expand(C),R>0&&C--;for(var M=0;M0&&(this.words[M]=~this.words[M]&67108863>>26-R),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,C){n(typeof h=="number"&&h>=0);var R=h/26|0,M=h%26;return this._expand(R+1),C?this.words[R]=this.words[R]|1<h.length?(R=this,M=h):(R=h,M=this);for(var T=0,N=0;N>>26;for(;T!==0&&N>>26;if(this.length=R.length,T!==0)this.words[this.length]=T,this.length++;else if(R!==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 C=this.iadd(h);return h.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var R=this.cmp(h);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;var M,T;R>0?(M=this,T=h):(M=h,T=this);for(var N=0,L=0;L>26,this.words[L]=C&67108863;for(;N!==0&&L>26,this.words[L]=C&67108863;if(N===0&&L>>26,B=k&67108863,E=Math.min(p,h.length-1),F=Math.max(0,p-I.length+1);F<=E;F++){var j=p-F|0;M=I.words[j]|0,T=h.words[F]|0,N=M*T+B,P+=N/67108864|0,B=N&67108863}C.words[p]=B|0,k=P|0}return k!==0?C.words[p]=k|0:C.length--,C._strip()}var b=function(h,C,R){var M=h.words,T=C.words,N=R.words,L=0,k,p,P,B=M[0]|0,E=B&8191,F=B>>>13,j=M[1]|0,z=j&8191,W=j>>>13,ne=M[2]|0,X=ne&8191,ee=ne>>>13,_e=M[3]|0,ce=_e&8191,xe=_e>>>13,Er=M[4]|0,je=Er&8191,Ye=Er>>>13,Zr=M[5]|0,Ie=Zr&8191,at=Zr>>>13,ci=M[6]|0,lt=ci&8191,dt=ci>>>13,fi=M[7]|0,et=fi&8191,ct=fi>>>13,Ln=M[8]|0,ht=Ln&8191,ft=Ln>>>13,Hi=M[9]|0,ut=Hi&8191,vt=Hi>>>13,G=T[0]|0,q=G&8191,J=G>>>13,he=T[1]|0,ye=he&8191,ve=he>>>13,Ee=T[2]|0,de=Ee&8191,fe=Ee>>>13,Ve=T[3]|0,Me=Ve&8191,be=Ve>>>13,rt=T[4]|0,ke=rt&8191,Ge=rt>>>13,Mr=T[5]|0,Xe=Mr&8191,nt=Mr>>>13,vr=T[6]|0,ze=vr&8191,tt=vr>>>13,Bn=T[7]|0,it=Bn&8191,st=Bn>>>13,De=T[8]|0,$e=De&8191,qe=De>>>13,Fn=T[9]|0,Ae=Fn&8191,Ze=Fn>>>13;R.negative=h.negative^C.negative,R.length=19,k=Math.imul(E,q),p=Math.imul(E,J),p=p+Math.imul(F,q)|0,P=Math.imul(F,J);var jn=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(jn>>>26)|0,jn&=67108863,k=Math.imul(z,q),p=Math.imul(z,J),p=p+Math.imul(W,q)|0,P=Math.imul(W,J),k=k+Math.imul(E,ye)|0,p=p+Math.imul(E,ve)|0,p=p+Math.imul(F,ye)|0,P=P+Math.imul(F,ve)|0;var ui=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(ui>>>26)|0,ui&=67108863,k=Math.imul(X,q),p=Math.imul(X,J),p=p+Math.imul(ee,q)|0,P=Math.imul(ee,J),k=k+Math.imul(z,ye)|0,p=p+Math.imul(z,ve)|0,p=p+Math.imul(W,ye)|0,P=P+Math.imul(W,ve)|0,k=k+Math.imul(E,de)|0,p=p+Math.imul(E,fe)|0,p=p+Math.imul(F,de)|0,P=P+Math.imul(F,fe)|0;var Cs=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,k=Math.imul(ce,q),p=Math.imul(ce,J),p=p+Math.imul(xe,q)|0,P=Math.imul(xe,J),k=k+Math.imul(X,ye)|0,p=p+Math.imul(X,ve)|0,p=p+Math.imul(ee,ye)|0,P=P+Math.imul(ee,ve)|0,k=k+Math.imul(z,de)|0,p=p+Math.imul(z,fe)|0,p=p+Math.imul(W,de)|0,P=P+Math.imul(W,fe)|0,k=k+Math.imul(E,Me)|0,p=p+Math.imul(E,be)|0,p=p+Math.imul(F,Me)|0,P=P+Math.imul(F,be)|0;var Ss=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Ss>>>26)|0,Ss&=67108863,k=Math.imul(je,q),p=Math.imul(je,J),p=p+Math.imul(Ye,q)|0,P=Math.imul(Ye,J),k=k+Math.imul(ce,ye)|0,p=p+Math.imul(ce,ve)|0,p=p+Math.imul(xe,ye)|0,P=P+Math.imul(xe,ve)|0,k=k+Math.imul(X,de)|0,p=p+Math.imul(X,fe)|0,p=p+Math.imul(ee,de)|0,P=P+Math.imul(ee,fe)|0,k=k+Math.imul(z,Me)|0,p=p+Math.imul(z,be)|0,p=p+Math.imul(W,Me)|0,P=P+Math.imul(W,be)|0,k=k+Math.imul(E,ke)|0,p=p+Math.imul(E,Ge)|0,p=p+Math.imul(F,ke)|0,P=P+Math.imul(F,Ge)|0;var As=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(As>>>26)|0,As&=67108863,k=Math.imul(Ie,q),p=Math.imul(Ie,J),p=p+Math.imul(at,q)|0,P=Math.imul(at,J),k=k+Math.imul(je,ye)|0,p=p+Math.imul(je,ve)|0,p=p+Math.imul(Ye,ye)|0,P=P+Math.imul(Ye,ve)|0,k=k+Math.imul(ce,de)|0,p=p+Math.imul(ce,fe)|0,p=p+Math.imul(xe,de)|0,P=P+Math.imul(xe,fe)|0,k=k+Math.imul(X,Me)|0,p=p+Math.imul(X,be)|0,p=p+Math.imul(ee,Me)|0,P=P+Math.imul(ee,be)|0,k=k+Math.imul(z,ke)|0,p=p+Math.imul(z,Ge)|0,p=p+Math.imul(W,ke)|0,P=P+Math.imul(W,Ge)|0,k=k+Math.imul(E,Xe)|0,p=p+Math.imul(E,nt)|0,p=p+Math.imul(F,Xe)|0,P=P+Math.imul(F,nt)|0;var j0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(j0>>>26)|0,j0&=67108863,k=Math.imul(lt,q),p=Math.imul(lt,J),p=p+Math.imul(dt,q)|0,P=Math.imul(dt,J),k=k+Math.imul(Ie,ye)|0,p=p+Math.imul(Ie,ve)|0,p=p+Math.imul(at,ye)|0,P=P+Math.imul(at,ve)|0,k=k+Math.imul(je,de)|0,p=p+Math.imul(je,fe)|0,p=p+Math.imul(Ye,de)|0,P=P+Math.imul(Ye,fe)|0,k=k+Math.imul(ce,Me)|0,p=p+Math.imul(ce,be)|0,p=p+Math.imul(xe,Me)|0,P=P+Math.imul(xe,be)|0,k=k+Math.imul(X,ke)|0,p=p+Math.imul(X,Ge)|0,p=p+Math.imul(ee,ke)|0,P=P+Math.imul(ee,Ge)|0,k=k+Math.imul(z,Xe)|0,p=p+Math.imul(z,nt)|0,p=p+Math.imul(W,Xe)|0,P=P+Math.imul(W,nt)|0,k=k+Math.imul(E,ze)|0,p=p+Math.imul(E,tt)|0,p=p+Math.imul(F,ze)|0,P=P+Math.imul(F,tt)|0;var z0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(z0>>>26)|0,z0&=67108863,k=Math.imul(et,q),p=Math.imul(et,J),p=p+Math.imul(ct,q)|0,P=Math.imul(ct,J),k=k+Math.imul(lt,ye)|0,p=p+Math.imul(lt,ve)|0,p=p+Math.imul(dt,ye)|0,P=P+Math.imul(dt,ve)|0,k=k+Math.imul(Ie,de)|0,p=p+Math.imul(Ie,fe)|0,p=p+Math.imul(at,de)|0,P=P+Math.imul(at,fe)|0,k=k+Math.imul(je,Me)|0,p=p+Math.imul(je,be)|0,p=p+Math.imul(Ye,Me)|0,P=P+Math.imul(Ye,be)|0,k=k+Math.imul(ce,ke)|0,p=p+Math.imul(ce,Ge)|0,p=p+Math.imul(xe,ke)|0,P=P+Math.imul(xe,Ge)|0,k=k+Math.imul(X,Xe)|0,p=p+Math.imul(X,nt)|0,p=p+Math.imul(ee,Xe)|0,P=P+Math.imul(ee,nt)|0,k=k+Math.imul(z,ze)|0,p=p+Math.imul(z,tt)|0,p=p+Math.imul(W,ze)|0,P=P+Math.imul(W,tt)|0,k=k+Math.imul(E,it)|0,p=p+Math.imul(E,st)|0,p=p+Math.imul(F,it)|0,P=P+Math.imul(F,st)|0;var U0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(U0>>>26)|0,U0&=67108863,k=Math.imul(ht,q),p=Math.imul(ht,J),p=p+Math.imul(ft,q)|0,P=Math.imul(ft,J),k=k+Math.imul(et,ye)|0,p=p+Math.imul(et,ve)|0,p=p+Math.imul(ct,ye)|0,P=P+Math.imul(ct,ve)|0,k=k+Math.imul(lt,de)|0,p=p+Math.imul(lt,fe)|0,p=p+Math.imul(dt,de)|0,P=P+Math.imul(dt,fe)|0,k=k+Math.imul(Ie,Me)|0,p=p+Math.imul(Ie,be)|0,p=p+Math.imul(at,Me)|0,P=P+Math.imul(at,be)|0,k=k+Math.imul(je,ke)|0,p=p+Math.imul(je,Ge)|0,p=p+Math.imul(Ye,ke)|0,P=P+Math.imul(Ye,Ge)|0,k=k+Math.imul(ce,Xe)|0,p=p+Math.imul(ce,nt)|0,p=p+Math.imul(xe,Xe)|0,P=P+Math.imul(xe,nt)|0,k=k+Math.imul(X,ze)|0,p=p+Math.imul(X,tt)|0,p=p+Math.imul(ee,ze)|0,P=P+Math.imul(ee,tt)|0,k=k+Math.imul(z,it)|0,p=p+Math.imul(z,st)|0,p=p+Math.imul(W,it)|0,P=P+Math.imul(W,st)|0,k=k+Math.imul(E,$e)|0,p=p+Math.imul(E,qe)|0,p=p+Math.imul(F,$e)|0,P=P+Math.imul(F,qe)|0;var V0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(V0>>>26)|0,V0&=67108863,k=Math.imul(ut,q),p=Math.imul(ut,J),p=p+Math.imul(vt,q)|0,P=Math.imul(vt,J),k=k+Math.imul(ht,ye)|0,p=p+Math.imul(ht,ve)|0,p=p+Math.imul(ft,ye)|0,P=P+Math.imul(ft,ve)|0,k=k+Math.imul(et,de)|0,p=p+Math.imul(et,fe)|0,p=p+Math.imul(ct,de)|0,P=P+Math.imul(ct,fe)|0,k=k+Math.imul(lt,Me)|0,p=p+Math.imul(lt,be)|0,p=p+Math.imul(dt,Me)|0,P=P+Math.imul(dt,be)|0,k=k+Math.imul(Ie,ke)|0,p=p+Math.imul(Ie,Ge)|0,p=p+Math.imul(at,ke)|0,P=P+Math.imul(at,Ge)|0,k=k+Math.imul(je,Xe)|0,p=p+Math.imul(je,nt)|0,p=p+Math.imul(Ye,Xe)|0,P=P+Math.imul(Ye,nt)|0,k=k+Math.imul(ce,ze)|0,p=p+Math.imul(ce,tt)|0,p=p+Math.imul(xe,ze)|0,P=P+Math.imul(xe,tt)|0,k=k+Math.imul(X,it)|0,p=p+Math.imul(X,st)|0,p=p+Math.imul(ee,it)|0,P=P+Math.imul(ee,st)|0,k=k+Math.imul(z,$e)|0,p=p+Math.imul(z,qe)|0,p=p+Math.imul(W,$e)|0,P=P+Math.imul(W,qe)|0,k=k+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ze)|0,p=p+Math.imul(F,Ae)|0,P=P+Math.imul(F,Ze)|0;var q0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(q0>>>26)|0,q0&=67108863,k=Math.imul(ut,ye),p=Math.imul(ut,ve),p=p+Math.imul(vt,ye)|0,P=Math.imul(vt,ve),k=k+Math.imul(ht,de)|0,p=p+Math.imul(ht,fe)|0,p=p+Math.imul(ft,de)|0,P=P+Math.imul(ft,fe)|0,k=k+Math.imul(et,Me)|0,p=p+Math.imul(et,be)|0,p=p+Math.imul(ct,Me)|0,P=P+Math.imul(ct,be)|0,k=k+Math.imul(lt,ke)|0,p=p+Math.imul(lt,Ge)|0,p=p+Math.imul(dt,ke)|0,P=P+Math.imul(dt,Ge)|0,k=k+Math.imul(Ie,Xe)|0,p=p+Math.imul(Ie,nt)|0,p=p+Math.imul(at,Xe)|0,P=P+Math.imul(at,nt)|0,k=k+Math.imul(je,ze)|0,p=p+Math.imul(je,tt)|0,p=p+Math.imul(Ye,ze)|0,P=P+Math.imul(Ye,tt)|0,k=k+Math.imul(ce,it)|0,p=p+Math.imul(ce,st)|0,p=p+Math.imul(xe,it)|0,P=P+Math.imul(xe,st)|0,k=k+Math.imul(X,$e)|0,p=p+Math.imul(X,qe)|0,p=p+Math.imul(ee,$e)|0,P=P+Math.imul(ee,qe)|0,k=k+Math.imul(z,Ae)|0,p=p+Math.imul(z,Ze)|0,p=p+Math.imul(W,Ae)|0,P=P+Math.imul(W,Ze)|0;var H0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(H0>>>26)|0,H0&=67108863,k=Math.imul(ut,de),p=Math.imul(ut,fe),p=p+Math.imul(vt,de)|0,P=Math.imul(vt,fe),k=k+Math.imul(ht,Me)|0,p=p+Math.imul(ht,be)|0,p=p+Math.imul(ft,Me)|0,P=P+Math.imul(ft,be)|0,k=k+Math.imul(et,ke)|0,p=p+Math.imul(et,Ge)|0,p=p+Math.imul(ct,ke)|0,P=P+Math.imul(ct,Ge)|0,k=k+Math.imul(lt,Xe)|0,p=p+Math.imul(lt,nt)|0,p=p+Math.imul(dt,Xe)|0,P=P+Math.imul(dt,nt)|0,k=k+Math.imul(Ie,ze)|0,p=p+Math.imul(Ie,tt)|0,p=p+Math.imul(at,ze)|0,P=P+Math.imul(at,tt)|0,k=k+Math.imul(je,it)|0,p=p+Math.imul(je,st)|0,p=p+Math.imul(Ye,it)|0,P=P+Math.imul(Ye,st)|0,k=k+Math.imul(ce,$e)|0,p=p+Math.imul(ce,qe)|0,p=p+Math.imul(xe,$e)|0,P=P+Math.imul(xe,qe)|0,k=k+Math.imul(X,Ae)|0,p=p+Math.imul(X,Ze)|0,p=p+Math.imul(ee,Ae)|0,P=P+Math.imul(ee,Ze)|0;var G0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(G0>>>26)|0,G0&=67108863,k=Math.imul(ut,Me),p=Math.imul(ut,be),p=p+Math.imul(vt,Me)|0,P=Math.imul(vt,be),k=k+Math.imul(ht,ke)|0,p=p+Math.imul(ht,Ge)|0,p=p+Math.imul(ft,ke)|0,P=P+Math.imul(ft,Ge)|0,k=k+Math.imul(et,Xe)|0,p=p+Math.imul(et,nt)|0,p=p+Math.imul(ct,Xe)|0,P=P+Math.imul(ct,nt)|0,k=k+Math.imul(lt,ze)|0,p=p+Math.imul(lt,tt)|0,p=p+Math.imul(dt,ze)|0,P=P+Math.imul(dt,tt)|0,k=k+Math.imul(Ie,it)|0,p=p+Math.imul(Ie,st)|0,p=p+Math.imul(at,it)|0,P=P+Math.imul(at,st)|0,k=k+Math.imul(je,$e)|0,p=p+Math.imul(je,qe)|0,p=p+Math.imul(Ye,$e)|0,P=P+Math.imul(Ye,qe)|0,k=k+Math.imul(ce,Ae)|0,p=p+Math.imul(ce,Ze)|0,p=p+Math.imul(xe,Ae)|0,P=P+Math.imul(xe,Ze)|0;var W0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(W0>>>26)|0,W0&=67108863,k=Math.imul(ut,ke),p=Math.imul(ut,Ge),p=p+Math.imul(vt,ke)|0,P=Math.imul(vt,Ge),k=k+Math.imul(ht,Xe)|0,p=p+Math.imul(ht,nt)|0,p=p+Math.imul(ft,Xe)|0,P=P+Math.imul(ft,nt)|0,k=k+Math.imul(et,ze)|0,p=p+Math.imul(et,tt)|0,p=p+Math.imul(ct,ze)|0,P=P+Math.imul(ct,tt)|0,k=k+Math.imul(lt,it)|0,p=p+Math.imul(lt,st)|0,p=p+Math.imul(dt,it)|0,P=P+Math.imul(dt,st)|0,k=k+Math.imul(Ie,$e)|0,p=p+Math.imul(Ie,qe)|0,p=p+Math.imul(at,$e)|0,P=P+Math.imul(at,qe)|0,k=k+Math.imul(je,Ae)|0,p=p+Math.imul(je,Ze)|0,p=p+Math.imul(Ye,Ae)|0,P=P+Math.imul(Ye,Ze)|0;var K0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(K0>>>26)|0,K0&=67108863,k=Math.imul(ut,Xe),p=Math.imul(ut,nt),p=p+Math.imul(vt,Xe)|0,P=Math.imul(vt,nt),k=k+Math.imul(ht,ze)|0,p=p+Math.imul(ht,tt)|0,p=p+Math.imul(ft,ze)|0,P=P+Math.imul(ft,tt)|0,k=k+Math.imul(et,it)|0,p=p+Math.imul(et,st)|0,p=p+Math.imul(ct,it)|0,P=P+Math.imul(ct,st)|0,k=k+Math.imul(lt,$e)|0,p=p+Math.imul(lt,qe)|0,p=p+Math.imul(dt,$e)|0,P=P+Math.imul(dt,qe)|0,k=k+Math.imul(Ie,Ae)|0,p=p+Math.imul(Ie,Ze)|0,p=p+Math.imul(at,Ae)|0,P=P+Math.imul(at,Ze)|0;var Y0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Y0>>>26)|0,Y0&=67108863,k=Math.imul(ut,ze),p=Math.imul(ut,tt),p=p+Math.imul(vt,ze)|0,P=Math.imul(vt,tt),k=k+Math.imul(ht,it)|0,p=p+Math.imul(ht,st)|0,p=p+Math.imul(ft,it)|0,P=P+Math.imul(ft,st)|0,k=k+Math.imul(et,$e)|0,p=p+Math.imul(et,qe)|0,p=p+Math.imul(ct,$e)|0,P=P+Math.imul(ct,qe)|0,k=k+Math.imul(lt,Ae)|0,p=p+Math.imul(lt,Ze)|0,p=p+Math.imul(dt,Ae)|0,P=P+Math.imul(dt,Ze)|0;var Q0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Q0>>>26)|0,Q0&=67108863,k=Math.imul(ut,it),p=Math.imul(ut,st),p=p+Math.imul(vt,it)|0,P=Math.imul(vt,st),k=k+Math.imul(ht,$e)|0,p=p+Math.imul(ht,qe)|0,p=p+Math.imul(ft,$e)|0,P=P+Math.imul(ft,qe)|0,k=k+Math.imul(et,Ae)|0,p=p+Math.imul(et,Ze)|0,p=p+Math.imul(ct,Ae)|0,P=P+Math.imul(ct,Ze)|0;var J0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(J0>>>26)|0,J0&=67108863,k=Math.imul(ut,$e),p=Math.imul(ut,qe),p=p+Math.imul(vt,$e)|0,P=Math.imul(vt,qe),k=k+Math.imul(ht,Ae)|0,p=p+Math.imul(ht,Ze)|0,p=p+Math.imul(ft,Ae)|0,P=P+Math.imul(ft,Ze)|0;var X0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(X0>>>26)|0,X0&=67108863,k=Math.imul(ut,Ae),p=Math.imul(ut,Ze),p=p+Math.imul(vt,Ae)|0,P=Math.imul(vt,Ze);var Z0=(L+k|0)+((p&8191)<<13)|0;return L=(P+(p>>>13)|0)+(Z0>>>26)|0,Z0&=67108863,N[0]=jn,N[1]=ui,N[2]=Cs,N[3]=Ss,N[4]=As,N[5]=j0,N[6]=z0,N[7]=U0,N[8]=V0,N[9]=q0,N[10]=H0,N[11]=G0,N[12]=W0,N[13]=K0,N[14]=Y0,N[15]=Q0,N[16]=J0,N[17]=X0,N[18]=Z0,L!==0&&(N[19]=L,R.length++),R};Math.imul||(b=x);function S(I,h,C){C.negative=h.negative^I.negative,C.length=I.length+h.length;for(var R=0,M=0,T=0;T>>26)|0,M+=N>>>26,N&=67108863}C.words[T]=L,R=N,N=M}return R!==0?C.words[T]=R:C.length--,C._strip()}function A(I,h,C){return S(I,h,C)}s.prototype.mulTo=function(h,C){var R,M=this.length+h.length;return this.length===10&&h.length===10?R=b(this,h,C):M<63?R=x(this,h,C):M<1024?R=S(this,h,C):R=A(this,h,C),R},s.prototype.mul=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),this.mulTo(h,C)},s.prototype.mulf=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),A(this,h,C)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var C=h<0;C&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var R=0,M=0;M>=26,R+=T/67108864|0,R+=N>>>26,this.words[M]=N&67108863}return R!==0&&(this.words[M]=R,this.length++),C?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 C=w(h);if(C.length===0)return new s(1);for(var R=this,M=0;M=0);var C=h%26,R=(h-C)/26,M=67108863>>>26-C<<26-C,T;if(C!==0){var N=0;for(T=0;T>>26-C}N&&(this.words[T]=N,this.length++)}if(R!==0){for(T=this.length-1;T>=0;T--)this.words[T+R]=this.words[T];for(T=0;T=0);var M;C?M=(C-C%26)/26:M=0;var T=h%26,N=Math.min((h-T)/26,this.length),L=67108863^67108863>>>T<N)for(this.length-=N,p=0;p=0&&(P!==0||p>=M);p--){var B=this.words[p]|0;this.words[p]=P<<26-T|B>>>T,P=B&L}return k&&P!==0&&(k.words[k.length++]=P),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,C,R){return n(this.negative===0),this.iushrn(h,C,R)},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 C=h%26,R=(h-C)/26,M=1<=0);var C=h%26,R=(h-C)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=R)return this;if(C!==0&&R++,this.length=Math.min(R,this.length),C!==0){var M=67108863^67108863>>>C<=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+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 C=0;C>26)-(k/67108864|0),this.words[T+R]=N&67108863}for(;T>26,this.words[T+R]=N&67108863;if(L===0)return this._strip();for(n(L===-1),L=0,T=0;T>26,this.words[T]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,C){var R=this.length-h.length,M=this.clone(),T=h,N=T.words[T.length-1]|0,L=this._countBits(N);R=26-L,R!==0&&(T=T.ushln(R),M.iushln(R),N=T.words[T.length-1]|0);var k=M.length-T.length,p;if(C!=="mod"){p=new s(null),p.length=k+1,p.words=new Array(p.length);for(var P=0;P=0;E--){var F=(M.words[T.length+E]|0)*67108864+(M.words[T.length+E-1]|0);for(F=Math.min(F/N|0,67108863),M._ishlnsubmul(T,F,E);M.negative!==0;)F--,M.negative=0,M._ishlnsubmul(T,1,E),M.isZero()||(M.negative^=1);p&&(p.words[E]=F)}return p&&p._strip(),M._strip(),C!=="div"&&R!==0&&M.iushrn(R),{div:p||null,mod:M}},s.prototype.divmod=function(h,C,R){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var M,T,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,C),C!=="mod"&&(M=N.div.neg()),C!=="div"&&(T=N.mod.neg(),R&&T.negative!==0&&T.iadd(h)),{div:M,mod:T}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),C),C!=="mod"&&(M=N.div.neg()),{div:M,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),C),C!=="div"&&(T=N.mod.neg(),R&&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?C==="div"?{div:this.divn(h.words[0]),mod:null}:C==="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,C)},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 C=this.divmod(h);if(C.mod.isZero())return C.div;var R=C.div.negative!==0?C.mod.isub(h):C.mod,M=h.ushrn(1),T=h.andln(1),N=R.cmp(M);return N<0||T===1&&N===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},s.prototype.modrn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var R=(1<<26)%h,M=0,T=this.length-1;T>=0;T--)M=(R*M+(this.words[T]|0))%h;return C?-M:M},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var R=0,M=this.length-1;M>=0;M--){var T=(this.words[M]|0)+R*67108864;this.words[M]=T/h|0,R=T%h}return this._strip(),C?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 C=this,R=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=new s(0),L=new s(1),k=0;C.isEven()&&R.isEven();)C.iushrn(1),R.iushrn(1),++k;for(var p=R.clone(),P=C.clone();!C.isZero();){for(var B=0,E=1;!(C.words[0]&E)&&B<26;++B,E<<=1);if(B>0)for(C.iushrn(B);B-- >0;)(M.isOdd()||T.isOdd())&&(M.iadd(p),T.isub(P)),M.iushrn(1),T.iushrn(1);for(var F=0,j=1;!(R.words[0]&j)&&F<26;++F,j<<=1);if(F>0)for(R.iushrn(F);F-- >0;)(N.isOdd()||L.isOdd())&&(N.iadd(p),L.isub(P)),N.iushrn(1),L.iushrn(1);C.cmp(R)>=0?(C.isub(R),M.isub(N),T.isub(L)):(R.isub(C),N.isub(M),L.isub(T))}return{a:N,b:L,gcd:R.iushln(k)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var C=this,R=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=R.clone();C.cmpn(1)>0&&R.cmpn(1)>0;){for(var L=0,k=1;!(C.words[0]&k)&&L<26;++L,k<<=1);if(L>0)for(C.iushrn(L);L-- >0;)M.isOdd()&&M.iadd(N),M.iushrn(1);for(var p=0,P=1;!(R.words[0]&P)&&p<26;++p,P<<=1);if(p>0)for(R.iushrn(p);p-- >0;)T.isOdd()&&T.iadd(N),T.iushrn(1);C.cmp(R)>=0?(C.isub(R),M.isub(T)):(R.isub(C),T.isub(M))}var B;return C.cmpn(1)===0?B=M:B=T,B.cmpn(0)<0&&B.iadd(h),B},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var C=this.clone(),R=h.clone();C.negative=0,R.negative=0;for(var M=0;C.isEven()&&R.isEven();M++)C.iushrn(1),R.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;R.isEven();)R.iushrn(1);var T=C.cmp(R);if(T<0){var N=C;C=R,R=N}else if(T===0||R.cmpn(1)===0)break;C.isub(R)}while(!0);return R.iushln(M)},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 C=h%26,R=(h-C)/26,M=1<>>26,L&=67108863,this.words[N]=L}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 C=h<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this._strip();var R;if(this.length>1)R=1;else{C&&(h=-h),n(h<=67108863,"Number is too big");var M=this.words[0]|0;R=M===h?0:Mh.length)return 1;if(this.length=0;R--){var M=this.words[R]|0,T=h.words[R]|0;if(M!==T){MT&&(C=1);break}}return C},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 Q(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(I,h){this.name=I,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 C=h,R;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),R=C.bitLength();while(R>this.n);var M=R0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},D.prototype.split=function(h,C){h.iushrn(this.n,0,C)},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,C){for(var R=4194303,M=Math.min(h.length,9),T=0;T>>22,N=L}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 C=0,R=0;R>>=26,h.words[R]=T,C=M}return C!==0&&(h.words[h.length++]=C),h},s._prime=function(h){if(_[h])return _[h];var C;if(h==="k256")C=new $;else if(h==="p224")C=new O;else if(h==="p192")C=new H;else if(h==="p25519")C=new Y;else throw new Error("Unknown prime "+h);return _[h]=C,C};function Q(I){if(typeof I=="string"){var h=s._prime(I);this.m=h.p,this.prime=h}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}Q.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},Q.prototype._verify2=function(h,C){n((h.negative|C.negative)===0,"red works only with positives"),n(h.red&&h.red===C.red,"red works only with red numbers")},Q.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},Q.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Q.prototype.add=function(h,C){this._verify2(h,C);var R=h.add(C);return R.cmp(this.m)>=0&&R.isub(this.m),R._forceRed(this)},Q.prototype.iadd=function(h,C){this._verify2(h,C);var R=h.iadd(C);return R.cmp(this.m)>=0&&R.isub(this.m),R},Q.prototype.sub=function(h,C){this._verify2(h,C);var R=h.sub(C);return R.cmpn(0)<0&&R.iadd(this.m),R._forceRed(this)},Q.prototype.isub=function(h,C){this._verify2(h,C);var R=h.isub(C);return R.cmpn(0)<0&&R.iadd(this.m),R},Q.prototype.shl=function(h,C){return this._verify1(h),this.imod(h.ushln(C))},Q.prototype.imul=function(h,C){return this._verify2(h,C),this.imod(h.imul(C))},Q.prototype.mul=function(h,C){return this._verify2(h,C),this.imod(h.mul(C))},Q.prototype.isqr=function(h){return this.imul(h,h.clone())},Q.prototype.sqr=function(h){return this.mul(h,h)},Q.prototype.sqrt=function(h){if(h.isZero())return h.clone();var C=this.m.andln(3);if(n(C%2===1),C===3){var R=this.m.add(new s(1)).iushrn(2);return this.pow(h,R)}for(var M=this.m.subn(1),T=0;!M.isZero()&&M.andln(1)===0;)T++,M.iushrn(1);n(!M.isZero());var N=new s(1).toRed(this),L=N.redNeg(),k=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new s(2*p*p).toRed(this);this.pow(p,k).cmp(L)!==0;)p.redIAdd(L);for(var P=this.pow(p,M),B=this.pow(h,M.addn(1).iushrn(1)),E=this.pow(h,M),F=T;E.cmp(N)!==0;){for(var j=E,z=0;j.cmp(N)!==0;z++)j=j.redSqr();n(z=0;T--){for(var P=C.words[T],B=p-1;B>=0;B--){var E=P>>B&1;if(N!==M[0]&&(N=this.sqr(N)),E===0&&L===0){k=0;continue}L<<=1,L|=E,k++,!(k!==R&&(T!==0||B!==0))&&(N=this.mul(N,M[L]),k=0,L=0)}p=26}return N},Q.prototype.convertTo=function(h){var C=h.umod(this.m);return C===h?C.clone():C},Q.prototype.convertFrom=function(h){var C=h.clone();return C.red=null,C},s.mont=function(h){return new re(h)};function re(I){Q.call(this,I),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(re,Q),re.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},re.prototype.convertFrom=function(h){var C=this.imod(h.mul(this.rinv));return C.red=null,C},re.prototype.imul=function(h,C){if(h.isZero()||C.isZero())return h.words[0]=0,h.length=1,h;var R=h.imul(C),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=R.isub(M).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)},re.prototype.mul=function(h,C){if(h.isZero()||C.isZero())return new s(0)._forceRed(this);var R=h.mul(C),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=R.isub(M).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)},re.prototype.invm=function(h){var C=this.imod(h._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(t,kE)})(yg);var mz=yg.exports;const Pe=xs(mz),gz="logger/5.7.0";let K3=!1,Y3=!1;const _d={debug:1,default:2,info:2,warning:3,error:4,off:5};let Q3=_d.default,X1=null;function xz(){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 J3=xz();var fp;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(fp||(fp={}));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 X3="0123456789abcdef";let V=class tr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();_d[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(Q3>_d[n])&&console.log.apply(console,r)}debug(...e){this._log(tr.levels.DEBUG,e)}info(...e){this._log(tr.levels.INFO,e)}warn(...e){this._log(tr.levels.WARNING,e)}makeError(e,r,n){if(Y3)return this.makeError("censored error",r,{});r||(r=tr.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+=X3[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,tr.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){J3&&this.throwError("platform missing String.prototype.normalize",tr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:J3})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,tr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,tr.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,tr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",tr.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",tr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",tr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return X1||(X1=new tr(gz)),X1}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",tr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),K3){if(!e)return;this.globalLogger().throwError("error censorship permanent",tr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Y3=!!e,K3=!!r}static setLogLevel(e){const r=_d[e.toLowerCase()];if(r==null){tr.globalLogger().warn("invalid log level - "+e);return}Q3=r}static from(e){return new tr(e)}};V.errors=Kn;V.levels=fp;const bz="bytes/5.7.0",Bt=new V(bz);function t7(t){return!!t.toHexString}function rl(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return rl(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function R0(t){return We(t)&&!(t.length%2)||Dl(t)}function Z3(t){return typeof t=="number"&&t==t&&t%1===0}function Dl(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!Z3(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function ae(t,e){if(e||(e={}),typeof t=="number"){Bt.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),rl(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),t7(t)&&(t=t.toHexString()),We(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Bt.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;iae(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),rl(n)}function fs(t){let e=ae(t);if(e.length===0)return e;let r=0;for(;re&&Bt.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),rl(r)}function We(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const Z1="0123456789abcdef";function le(t,e){if(e||(e={}),typeof t=="number"){Bt.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=Z1[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),t7(t))return t.toHexString();if(We(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Bt.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(Dl(t)){let r="0x";for(let n=0;n>4]+Z1[i&15]}return r}return Bt.throwArgumentError("invalid hexlify value","value",t)}function Xo(t){if(typeof t!="string")t=le(t);else if(!We(t)||t.length%2)return null;return(t.length-2)/2}function ir(t,e,r){return typeof t!="string"?t=le(t):(!We(t)||t.length%2)&&Bt.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function qr(t){let e="0x";return t.forEach(r=>{e+=le(r).substring(2)}),e}function pg(t){const e=Ez(le(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function Ez(t){typeof t!="string"&&(t=le(t)),We(t)||Bt.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Bt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Ol(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(R0(t)){let r=ae(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=le(r.slice(0,32)),e.s=le(r.slice(32,64))):r.length===65?(e.r=le(r.slice(0,32)),e.s=le(r.slice(32,64)),e.v=r[64]):Bt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Bt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=le(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=wz(ae(e._vs),32);e._vs=le(i);const s=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=s:e.recoveryParam!==s&&Bt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const o=le(i);e.s==null?e.s=o:e.s!==o&&Bt.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Bt.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&&Bt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!We(e.r)?Bt.throwArgumentError("signature missing or invalid r","signature",t):e.r=Et(e.r,32),e.s==null||!We(e.s)?Bt.throwArgumentError("signature missing or invalid s","signature",t):e.s=Et(e.s,32);const r=ae(e.s);r[0]>=128&&Bt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=le(r);e._vs&&(We(e._vs)||Bt.throwArgumentError("signature invalid _vs","signature",t),e._vs=Et(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Bt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function e6(t){return t=Ol(t),le(Kt([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const r7="bignumber/5.7.0";var kh=Pe.BN;const Ji=new V(r7),ev={},t6=9007199254740991;function Cz(t){return t!=null&&(oe.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||We(t)||typeof t=="bigint"||Dl(t))}let r6=!1;class oe{constructor(e,r){e!==ev&&Ji.throwError("cannot call constructor directly; use BigNumber.from",V.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Ur(Oe(this).fromTwos(e))}toTwos(e){return Ur(Oe(this).toTwos(e))}abs(){return this._hex[0]==="-"?oe.from(this._hex.substring(1)):this}add(e){return Ur(Oe(this).add(Oe(e)))}sub(e){return Ur(Oe(this).sub(Oe(e)))}div(e){return oe.from(e).isZero()&&mn("division-by-zero","div"),Ur(Oe(this).div(Oe(e)))}mul(e){return Ur(Oe(this).mul(Oe(e)))}mod(e){const r=Oe(e);return r.isNeg()&&mn("division-by-zero","mod"),Ur(Oe(this).umod(r))}pow(e){const r=Oe(e);return r.isNeg()&&mn("negative-power","pow"),Ur(Oe(this).pow(r))}and(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","and"),Ur(Oe(this).and(r))}or(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","or"),Ur(Oe(this).or(r))}xor(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","xor"),Ur(Oe(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&mn("negative-width","mask"),Ur(Oe(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&mn("negative-width","shl"),Ur(Oe(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&mn("negative-width","shr"),Ur(Oe(this).shrn(e))}eq(e){return Oe(this).eq(Oe(e))}lt(e){return Oe(this).lt(Oe(e))}lte(e){return Oe(this).lte(Oe(e))}gt(e){return Oe(this).gt(Oe(e))}gte(e){return Oe(this).gte(Oe(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Oe(this).isZero()}toNumber(){try{return Oe(this).toNumber()}catch{mn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Ji.throwError("this platform does not support BigInt",V.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?r6||(r6=!0,Ji.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Ji.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",V.errors.UNEXPECTED_ARGUMENT,{}):Ji.throwError("BigNumber.toString does not accept parameters",V.errors.UNEXPECTED_ARGUMENT,{})),Oe(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof oe)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new oe(ev,Vf(e)):e.match(/^-?[0-9]+$/)?new oe(ev,Vf(new kh(e))):Ji.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&mn("underflow","BigNumber.from",e),(e>=t6||e<=-t6)&&mn("overflow","BigNumber.from",e),oe.from(String(e));const r=e;if(typeof r=="bigint")return oe.from(r.toString());if(Dl(r))return oe.from(le(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return oe.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(We(n)||n[0]==="-"&&We(n.substring(1))))return oe.from(n)}return Ji.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Vf(t){if(typeof t!="string")return Vf(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Ji.throwArgumentError("invalid hex","value",t),t=Vf(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 Ur(t){return oe.from(Vf(t))}function Oe(t){const e=oe.from(t).toHexString();return e[0]==="-"?new kh("-"+e.substring(3),16):new kh(e.substring(2),16)}function mn(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),Ji.throwError(t,V.errors.NUMERIC_FAULT,n)}function Sz(t){return new kh(t,36).toString(16)}const Br=new V(r7),ff={},n7=oe.from(0),i7=oe.from(-1);function s7(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),Br.throwError(t,V.errors.NUMERIC_FAULT,i)}let uf="0";for(;uf.length<256;)uf+=uf;function mg(t){if(typeof t!="number")try{t=oe.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+uf.substring(0,t):Br.throwArgumentError("invalid decimal size","decimals",t)}function Md(t,e){e==null&&(e=0);const r=mg(e);t=oe.from(t);const n=t.lt(n7);n&&(t=t.mul(i7));let i=t.mod(r).toString();for(;i.length2&&Br.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&&s7("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&Br.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&&Br.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Br.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new nl(ff,r,n,i)}}class pr{constructor(e,r,n,i){e!==ff&&Br.throwError("cannot use FixedNumber constructor; use FixedNumber.from",V.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&&Br.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.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=pr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(n6.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=pr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(n6.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)&&Br.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=pr.from("1"+uf.substring(0,e),this.format),i=Az.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&&Br.throwArgumentError("invalid byte width","width",e);const r=oe.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Et(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return pr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!Cz(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),pr.fromString(Md(e,r),nl.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=nl.from(r),i=mi(e,n.decimals);!n.signed&&i.lt(n7)&&s7("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=Et(s,n.width/8));const o=Md(i,n.decimals);return new pr(ff,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=nl.from(r);if(ae(e).length>n.width/8)throw new Error("overflow");let i=oe.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=Md(i,n.decimals);return new pr(ff,s,o,n)}static from(e,r){if(typeof e=="string")return pr.fromString(e,r);if(Dl(e))return pr.fromBytes(e,r);try{return pr.fromValue(e,0,r)}catch(n){if(n.code!==V.errors.INVALID_ARGUMENT)throw n}return Br.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const n6=pr.from(1),Az=pr.from("0.5"),kz="properties/5.7.0";var Rz=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 Rh=new V(kz);function Z(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Ii(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 qt(t){return Rz(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 o7(t,e){(!t||typeof t!="object")&&Rh.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||Rh.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function ar(t){const e={};for(const r in t)e[r]=t[r];return e}const Pz={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function a7(t){if(t==null||Pz[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;rZo(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&Z(e,r,Zo(n))}return e}return Rh.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function Zo(t){return Tz(t)}class ua{constructor(e){for(const r in e)this[r]=Zo(e[r])}}const mu="abi/5.7.0",Ue=new V(mu),ea={};let i6={calldata:!0,memory:!0,storage:!0},_z={calldata:!0,memory:!0};function nd(t,e){if(t==="bytes"||t==="string"){if(i6[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&_z[e])return!0;return(i6[e]||e==="payable")&&Ue.throwArgumentError("invalid modifier","name",e),!1}function Mz(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!==Qe.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Qe.full?", ":",")+")"):r+=this.type,e!==Qe.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Qe.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?ur.fromString(e,r):ur.fromObject(e)}static fromObject(e){return ur.isParamType(e)?e:new ur(ea,{name:e.name||null,type:Aa(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(ur.fromObject):null})}static fromString(e,r){function n(i){return ur.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(Mz(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function qf(t,e){return $z(t).map(r=>ur.fromString(r,e))}class ss{constructor(e,r){e!==ea&&Ue.throwError("use a static from method",V.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Id(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return ss.isFragment(e)?e:typeof e=="string"?ss.fromString(e):ss.fromObject(e)}static fromObject(e){if(ss.isFragment(e))return e;switch(e.type){case"function":return Ai.fromObject(e);case"event":return ts.fromObject(e);case"constructor":return Si.fromObject(e);case"error":return Bs.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"?ts.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Ai.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Si.fromString(e.trim()):e.split(" ")[0]==="error"?Bs.fromString(e.substring(5).trim()):Ue.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class ts extends ss{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.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!==Qe.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",e!==Qe.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?ts.fromString(e):ts.fromObject(e)}static fromObject(e){if(ts.isEventFragment(e))return e;e.type!=="event"&&Ue.throwArgumentError("invalid event object","value",e);const r={name:Hf(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(ur.fromObject):[],type:"event"};return new ts(ea,r)}static fromString(e){let r=e.match(Gf);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)}}),ts.fromObject({name:r[1].trim(),anonymous:n,inputs:qf(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function l7(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=oe.from(r[1]),r[0]):t}function c7(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 f7(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 Si extends ss{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.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===Qe.sighash&&Ue.throwError("cannot format a constructor for sighash",V.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Si.fromString(e):Si.fromObject(e)}static fromObject(e){if(Si.isConstructorFragment(e))return e;e.type!=="constructor"&&Ue.throwArgumentError("invalid constructor object","value",e);let r=f7(e);r.constant&&Ue.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(ur.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?oe.from(e.gas):null};return new Si(ea,n)}static fromString(e){let r={type:"constructor"};e=l7(e,r);let n=e.match(Gf);return(!n||n[1].trim()!=="constructor")&&Ue.throwArgumentError("invalid constructor string","value",e),r.inputs=qf(n[2].trim(),!1),c7(n[3].trim(),r),Si.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Ai extends Si{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.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!==Qe.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",e!==Qe.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"?Ai.fromString(e):Ai.fromObject(e)}static fromObject(e){if(Ai.isFunctionFragment(e))return e;e.type!=="function"&&Ue.throwArgumentError("invalid function object","value",e);let r=f7(e);const n={type:e.type,name:Hf(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(ur.fromObject):[],outputs:e.outputs?e.outputs.map(ur.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?oe.from(e.gas):null};return new Ai(ea,n)}static fromString(e){let r={type:"function"};e=l7(e,r);let n=e.split(" returns ");n.length>2&&Ue.throwArgumentError("invalid function string","value",e);let i=n[0].match(Gf);if(i||Ue.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Hf(r.name),r.inputs=qf(i[2],!1),c7(i[3].trim(),r),n.length>1){let s=n[1].match(Gf);(s[1].trim()!=""||s[3].trim()!="")&&Ue.throwArgumentError("unexpected tokens","value",e),r.outputs=qf(s[2],!1)}else r.outputs=[];return Ai.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function s6(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ue.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class Bs extends ss{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Qe.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?Bs.fromString(e):Bs.fromObject(e)}static fromObject(e){if(Bs.isErrorFragment(e))return e;e.type!=="error"&&Ue.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Hf(e.name),inputs:e.inputs?e.inputs.map(ur.fromObject):[]};return s6(new Bs(ea,r))}static fromString(e){let r={type:"error"},n=e.match(Gf);return n||Ue.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Hf(r.name),r.inputs=qf(n[2],!1),s6(Bs.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Aa(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const Nz=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Hf(t){return(!t||!t.match(Nz))&&Ue.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Gf=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function $z(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&gg.throwError("value out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=Kt([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 Ph{constructor(e,r,n,i){Z(this,"_data",ae(e)),Z(this,"wordSize",r||32),Z(this,"_coerceFunc",n),Z(this,"allowLoose",i),this._offset=0}get data(){return le(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):Ph.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:gg.throwError("data out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new Ph(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 oe.from(this.readBytes(this.wordSize))}}var u7={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=m4: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],m=[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],b=[128,256],x=["hex","buffer","arrayBuffer","array","digest"],S={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 A=function(E,F,j){return function(z){return new p(E,F,E).update(z)[j]()}},_=function(E,F,j){return function(z,W){return new p(E,F,W).update(z)[j]()}},D=function(E,F,j){return function(z,W,ne,X){return h["cshake"+E].update(z,W,ne,X)[j]()}},$=function(E,F,j){return function(z,W,ne,X){return h["kmac"+E].update(z,W,ne,X)[j]()}},O=function(E,F,j,z){for(var W=0;W>5,this.byteCount=this.blockCount<<2,this.outputBlocks=j>>5,this.extraBytes=(j&31)>>3;for(var z=0;z<50;++z)this.s[z]=0}p.prototype.update=function(E){if(this.finalized)throw new Error(r);var F,j=typeof E;if(j!=="string"){if(j==="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);F=!0}for(var z=this.blocks,W=this.byteCount,ne=E.length,X=this.blockCount,ee=0,_e=this.s,ce,xe;ee>2]|=E[ee]<>2]|=xe<>2]|=(192|xe>>6)<>2]|=(128|xe&63)<=57344?(z[ce>>2]|=(224|xe>>12)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<>2]|=(240|xe>>18)<>2]|=(128|xe>>12&63)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<=W){for(this.start=ce-W,this.block=z[X],ce=0;ce>8,j=E&255;j>0;)W.unshift(j),E=E>>8,j=E&255,++z;return F?W.push(z):W.unshift(z),this.update(W),W.length},p.prototype.encodeString=function(E){var F,j=typeof E;if(j!=="string"){if(j==="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);F=!0}var z=0,W=E.length;if(F)z=W;else for(var ne=0;ne=57344?z+=3:(X=65536+((X&1023)<<10|E.charCodeAt(++ne)&1023),z+=4)}return z+=this.encode(z*8),this.update(E),z},p.prototype.bytepad=function(E,F){for(var j=this.encode(F),z=0;z>2]|=this.padding[F&3],this.lastByteIndex===this.byteCount)for(E[0]=E[j],F=1;F>4&15]+c[ee&15]+c[ee>>12&15]+c[ee>>8&15]+c[ee>>20&15]+c[ee>>16&15]+c[ee>>28&15]+c[ee>>24&15];ne%E===0&&(B(F),W=0)}return z&&(ee=F[W],X+=c[ee>>4&15]+c[ee&15],z>1&&(X+=c[ee>>12&15]+c[ee>>8&15]),z>2&&(X+=c[ee>>20&15]+c[ee>>16&15])),X},p.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,F=this.s,j=this.outputBlocks,z=this.extraBytes,W=0,ne=0,X=this.outputBits>>3,ee;z?ee=new ArrayBuffer(j+1<<2):ee=new ArrayBuffer(X);for(var _e=new Uint32Array(ee);ne>8&255,X[ee+2]=_e>>16&255,X[ee+3]=_e>>24&255;ne%E===0&&B(F)}return z&&(ee=ne<<2,_e=F[W],X[ee]=_e&255,z>1&&(X[ee+1]=_e>>8&255),z>2&&(X[ee+2]=_e>>16&255)),X};function P(E,F,j){p.call(this,E,F,j)}P.prototype=new p,P.prototype.finalize=function(){return this.encode(this.outputBits,!0),p.prototype.finalize.call(this)};var B=function(E){var F,j,z,W,ne,X,ee,_e,ce,xe,Er,je,Ye,Zr,Ie,at,ci,lt,dt,fi,et,ct,Ln,ht,ft,Hi,ut,vt,G,q,J,he,ye,ve,Ee,de,fe,Ve,Me,be,rt,ke,Ge,Mr,Xe,nt,vr,ze,tt,Bn,it,st,De,$e,qe,Fn,Ae,Ze,jn,ui,ws,Es,Cs;for(z=0;z<48;z+=2)W=E[0]^E[10]^E[20]^E[30]^E[40],ne=E[1]^E[11]^E[21]^E[31]^E[41],X=E[2]^E[12]^E[22]^E[32]^E[42],ee=E[3]^E[13]^E[23]^E[33]^E[43],_e=E[4]^E[14]^E[24]^E[34]^E[44],ce=E[5]^E[15]^E[25]^E[35]^E[45],xe=E[6]^E[16]^E[26]^E[36]^E[46],Er=E[7]^E[17]^E[27]^E[37]^E[47],je=E[8]^E[18]^E[28]^E[38]^E[48],Ye=E[9]^E[19]^E[29]^E[39]^E[49],F=je^(X<<1|ee>>>31),j=Ye^(ee<<1|X>>>31),E[0]^=F,E[1]^=j,E[10]^=F,E[11]^=j,E[20]^=F,E[21]^=j,E[30]^=F,E[31]^=j,E[40]^=F,E[41]^=j,F=W^(_e<<1|ce>>>31),j=ne^(ce<<1|_e>>>31),E[2]^=F,E[3]^=j,E[12]^=F,E[13]^=j,E[22]^=F,E[23]^=j,E[32]^=F,E[33]^=j,E[42]^=F,E[43]^=j,F=X^(xe<<1|Er>>>31),j=ee^(Er<<1|xe>>>31),E[4]^=F,E[5]^=j,E[14]^=F,E[15]^=j,E[24]^=F,E[25]^=j,E[34]^=F,E[35]^=j,E[44]^=F,E[45]^=j,F=_e^(je<<1|Ye>>>31),j=ce^(Ye<<1|je>>>31),E[6]^=F,E[7]^=j,E[16]^=F,E[17]^=j,E[26]^=F,E[27]^=j,E[36]^=F,E[37]^=j,E[46]^=F,E[47]^=j,F=xe^(W<<1|ne>>>31),j=Er^(ne<<1|W>>>31),E[8]^=F,E[9]^=j,E[18]^=F,E[19]^=j,E[28]^=F,E[29]^=j,E[38]^=F,E[39]^=j,E[48]^=F,E[49]^=j,Zr=E[0],Ie=E[1],nt=E[11]<<4|E[10]>>>28,vr=E[10]<<4|E[11]>>>28,vt=E[20]<<3|E[21]>>>29,G=E[21]<<3|E[20]>>>29,ui=E[31]<<9|E[30]>>>23,ws=E[30]<<9|E[31]>>>23,ke=E[40]<<18|E[41]>>>14,Ge=E[41]<<18|E[40]>>>14,ve=E[2]<<1|E[3]>>>31,Ee=E[3]<<1|E[2]>>>31,at=E[13]<<12|E[12]>>>20,ci=E[12]<<12|E[13]>>>20,ze=E[22]<<10|E[23]>>>22,tt=E[23]<<10|E[22]>>>22,q=E[33]<<13|E[32]>>>19,J=E[32]<<13|E[33]>>>19,Es=E[42]<<2|E[43]>>>30,Cs=E[43]<<2|E[42]>>>30,$e=E[5]<<30|E[4]>>>2,qe=E[4]<<30|E[5]>>>2,de=E[14]<<6|E[15]>>>26,fe=E[15]<<6|E[14]>>>26,lt=E[25]<<11|E[24]>>>21,dt=E[24]<<11|E[25]>>>21,Bn=E[34]<<15|E[35]>>>17,it=E[35]<<15|E[34]>>>17,he=E[45]<<29|E[44]>>>3,ye=E[44]<<29|E[45]>>>3,ht=E[6]<<28|E[7]>>>4,ft=E[7]<<28|E[6]>>>4,Fn=E[17]<<23|E[16]>>>9,Ae=E[16]<<23|E[17]>>>9,Ve=E[26]<<25|E[27]>>>7,Me=E[27]<<25|E[26]>>>7,fi=E[36]<<21|E[37]>>>11,et=E[37]<<21|E[36]>>>11,st=E[47]<<24|E[46]>>>8,De=E[46]<<24|E[47]>>>8,Mr=E[8]<<27|E[9]>>>5,Xe=E[9]<<27|E[8]>>>5,Hi=E[18]<<20|E[19]>>>12,ut=E[19]<<20|E[18]>>>12,Ze=E[29]<<7|E[28]>>>25,jn=E[28]<<7|E[29]>>>25,be=E[38]<<8|E[39]>>>24,rt=E[39]<<8|E[38]>>>24,ct=E[48]<<14|E[49]>>>18,Ln=E[49]<<14|E[48]>>>18,E[0]=Zr^~at<,E[1]=Ie^~ci&dt,E[10]=ht^~Hi&vt,E[11]=ft^~ut&G,E[20]=ve^~de&Ve,E[21]=Ee^~fe&Me,E[30]=Mr^~nt&ze,E[31]=Xe^~vr&tt,E[40]=$e^~Fn&Ze,E[41]=qe^~Ae&jn,E[2]=at^~lt&fi,E[3]=ci^~dt&et,E[12]=Hi^~vt&q,E[13]=ut^~G&J,E[22]=de^~Ve&be,E[23]=fe^~Me&rt,E[32]=nt^~ze&Bn,E[33]=vr^~tt&it,E[42]=Fn^~Ze&ui,E[43]=Ae^~jn&ws,E[4]=lt^~fi&ct,E[5]=dt^~et&Ln,E[14]=vt^~q&he,E[15]=G^~J&ye,E[24]=Ve^~be&ke,E[25]=Me^~rt&Ge,E[34]=ze^~Bn&st,E[35]=tt^~it&De,E[44]=Ze^~ui&Es,E[45]=jn^~ws&Cs,E[6]=fi^~ct&Zr,E[7]=et^~Ln&Ie,E[16]=q^~he&ht,E[17]=J^~ye&ft,E[26]=be^~ke&ve,E[27]=rt^~Ge&Ee,E[36]=Bn^~st&Mr,E[37]=it^~De&Xe,E[46]=ui^~Es&$e,E[47]=ws^~Cs&qe,E[8]=ct^~Zr&at,E[9]=Ln^~Ie&ci,E[18]=he^~ht&Hi,E[19]=ye^~ft&ut,E[28]=ke^~ve&de,E[29]=Ge^~Ee&fe,E[38]=st^~Mr&nt,E[39]=De^~Xe&vr,E[48]=Es^~$e&Fn,E[49]=Cs^~qe&Ae,E[0]^=y[z],E[1]^=y[z+1]};if(a)t.exports=h;else for(R=0;R>=8;return e}function J3(t,e,r){let n=0;for(let i=0;ie+1+n&&xi.throwError("child data too short",V.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function n7(t,e){if(t.length===0&&xi.throwError("data too short",V.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&xi.throwError("data short segment too short",V.errors.BUFFER_OVERRUN,{});const n=J3(t,e+1,r);return e+1+r+n>t.length&&xi.throwError("data long segment too short",V.errors.BUFFER_OVERRUN,{}),X3(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&xi.throwError("data array too short",V.errors.BUFFER_OVERRUN,{}),X3(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&xi.throwError("data array too short",V.errors.BUFFER_OVERRUN,{});const n=J3(t,e+1,r);e+1+r+n>t.length&&xi.throwError("data array too short",V.errors.BUFFER_OVERRUN,{});const i=le(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&&xi.throwError("data too short",V.errors.BUFFER_OVERRUN,{});const n=le(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:le(t[e])}}function ug(t){const e=ae(t),r=n7(e,0);return r.consumed!==e.length&&xi.throwArgumentError("invalid rlp data","data",t),r.result}const cz="address/5.7.0",Va=new V(cz);function Z3(t){We(t,20)||Va.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=ae(bt(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 fz=9007199254740991;function uz(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const dg={};for(let t=0;t<10;t++)dg[String(t)]=String(t);for(let t=0;t<26;t++)dg[String.fromCharCode(65+t)]=String(10+t);const e6=Math.floor(uz(fz));function dz(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>dg[n]).join("");for(;e.length>=e6;){let n=e.substring(0,e6);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 Ot(t){let e=null;if(typeof t!="string"&&Va.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Z3(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Va.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)!==dz(t)&&Va.throwArgumentError("bad icap checksum","address",t),e=Kj(t.substring(4));e.length<40;)e="0"+e;e=Z3("0x"+e)}else Va.throwArgumentError("invalid address","address",t);return e}function hz(t){try{return Ot(t),!0}catch{}return!1}function i7(t){let e=null;try{e=Ot(t.from)}catch{Va.throwArgumentError("missing from address","transaction",t)}const r=fs(ae(oe.from(t.nonce).toHexString()));return Ot(ir(bt(xl([e,r])),12))}class vz extends bs{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=Ot(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return Ot(Et(e.readValue().toHexString(),20))}}class yz extends bs{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 qa=new V(vu);function s7(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||qa.throwError("cannot encode object for signature with missing names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&qa.throwError("cannot encode object for signature with duplicate names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]=!0,r[f]})}else qa.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&qa.throwArgumentError("types/value length mismatch","tuple",r);let i=new ip(t.wordSize),s=new ip(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 o7(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===V.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===V.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 pz extends bs{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&&qa.throwError("insufficient data length",V.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i>6===2;o++)s++;return s}return t===nn.OVERRUN?r.length-e-1:0}function Pz(t,e,r,n,i){return t===nn.OVERLONG?(n.push(i),0):(n.push(65533),u7(t,e,r))}const Tz=Object.freeze({error:Rz,ignore:u7,replace:Pz});function d7(t,e){e==null&&(e=Tz.error),t=ae(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(nn.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(nn.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(nn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(nn.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(nn.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(nn.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function Zt(t,e=no.current){e!=no.current&&(f7.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 ae(r)}function _z(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function yu(t,e){return _z(d7(t,e))}function Mz(t,e=no.current){return d7(Zt(t,e))}class Iz extends a7{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,Zt(r))}decode(e){return yu(super.decode(e))}}class td extends bs{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 s7(e,this.coders,r)}decode(e){return e.coerce(this.name,o7(e,this.coders))}}const rd=new V(vu),Nz=new RegExp(/^bytes([0-9]*)$/),$z=new RegExp(/^(u?int)([0-9]*)$/);class Dz{constructor(e){Z(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new vz(e.name);case"bool":return new mz(e.name);case"string":return new Iz(e.name);case"bytes":return new gz(e.name);case"array":return new pz(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new td((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new bz(e.name)}let r=e.type.match($z);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&rd.throwArgumentError("invalid "+r[1]+" bit length","param",e),new Az(n/8,r[1]==="int",e.name)}if(r=e.type.match(Nz),r){let n=parseInt(r[1]);return(n===0||n>32)&&rd.throwArgumentError("invalid bytes length","param",e),new xz(n,e.name)}return rd.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new Sh(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new ip(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(ur.from(i)));return new td(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&rd.throwError("types/values length mismatch",V.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(o=>this._getCoder(ur.from(o))),i=new td(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(ur.from(o)));return new td(i,"_").decode(this._getReader(ae(r),n))}}const Oz=new Dz;function $o(t){return bt(Zt(t))}const h7="hash/5.7.0";function v7(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 Lz(t){const e={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,m=v>>1,y=d-1;let w=0;for(let _=0;_1;){let Y=D+$>>>1;_>>1|f(),O=O<<1^v,H=(H^v)<<1|v|1;x=O,S=1+H-O}let A=n-4;return b.map(_=>{switch(_-A){case 3:return A+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return A+256+(t[a++]<<8|t[a++]);case 1:return A+t[a++];default:return _-1}})}function Fz(t){let e=0;return()=>t[e++]}function jz(t){return Fz(Bz(t))}function zz(t){return t&1?~t>>1:t>>1}function Uz(t,e){let r=Array(t);for(let n=0;ne[o]):r}function qz(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(Gz(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(Wz(r,t))}return Lz(p7(e))}function Hz(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function m7(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function Gz(t,e){let r=1+e(),n=e(),i=Hz(e),s=m7(i.length,1+t,e);return p7(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 Wz(t,e){let r=1+e();return m7(r,1+t,e).map(i=>[i[0],i.slice(1)])}function Kz(t){let e=Ah(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=Ah(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 Yz(){return jz(v7("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const E0=Yz(),Qz=new Set(Ah(E0)),Jz=new Set(Ah(E0)),Xz=qz(E0),Zz=Kz(E0),r6=45,n6=95;function g7(t){return Mz(t)}function eU(t){return t.filter(e=>e!=65039)}function x7(t){for(let e of t.split(".")){let r=g7(e);try{for(let n=r.lastIndexOf(n6)-1;n>=0;n--)if(r[n]!==n6)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===r6&&r[3]===r6)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function tU(t){return x7(rU(t,eU))}function rU(t,e){let r=g7(t).reverse(),n=[];for(;r.length;){let i=iU(r);if(i){n.push(...e(i));continue}let s=r.pop();if(Qz.has(s)){n.push(s);continue}if(Jz.has(s))continue;let o=Xz[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return x7(nU(String.fromCodePoint(...n)))}function nU(t){return t.normalize("NFC")}function iU(t,e){var r;let n=Zz,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 sU=new V(h7),b7=new Uint8Array(32);b7.fill(0);function i6(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function w7(t){const e=Zt(tU(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(i6(e.slice(n))),r}function _d(t){typeof t!="string"&&sU.throwArgumentError("invalid ENS name; not a string","name",t);let e=b7;const r=w7(t);for(;r.length;)e=bt(Kt([e,bt(r.pop())]));return le(e)}function oU(t){return le(Kt(w7(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 aU=`Ethereum Signed Message: -`;function lU(t){return typeof t=="string"&&(t=Zt(t)),bt(Kt([Zt(aU),Zt(String(t.length)),t]))}var cU=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 _t=new V(h7),E7=new Uint8Array(32);E7.fill(0);const fU=oe.from(-1),C7=oe.from(0),S7=oe.from(1),uU=oe.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function dU(t){const e=ae(t),r=e.length%32;return r?qr([e,E7.slice(r)]):le(e)}const hU=Et(S7.toHexString(),32),vU=Et(C7.toHexString(),32),s6={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Y1=["name","version","chainId","verifyingContract","salt"];function o6(t){return function(e){return typeof e!="string"&&_t.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const yU={name:o6("name"),version:o6("version"),chainId:function(t){try{return oe.from(t).toString()}catch{}return _t.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Ot(t).toLowerCase()}catch{}return _t.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=ae(t);if(e.length!==32)throw new Error("bad length");return le(e)}catch{}return _t.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))&&_t.throwArgumentError("invalid numeric width","type",t);const i=uU.mask(r?n-1:n),s=r?i.add(S7).mul(fU):C7;return function(o){const a=oe.from(o);return(a.lt(s)||a.gt(i))&&_t.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),Et(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))&&_t.throwArgumentError("invalid bytes width","type",t),function(n){return ae(n).length!==r&&_t.throwArgumentError(`invalid length for ${t}`,"value",n),dU(n)}}}switch(t){case"address":return function(e){return Et(Ot(e),32)};case"bool":return function(e){return e?hU:vU};case"bytes":return function(e){return bt(e)};case"string":return function(e){return $o(e)}}return null}function a6(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Or{constructor(e){Z(this,"types",Object.freeze(Xo(e))),Z(this,"_encoderCache",{}),Z(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]&&_t.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&&_t.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!Q1(f)&&(n[f]||_t.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?_t.throwArgumentError("missing primary type","types",e):s.length>1&&_t.throwArgumentError(`ambiguous primary types or unused types: ${s.map(a=>JSON.stringify(a)).join(", ")}`,"types",e),Z(this,"primaryType",s[0]);function o(a,l){l[a]&&_t.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]=a6(a,e[a])+l.map(c=>a6(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&&_t.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(bt)),bt(qr(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]?bt(c):c});return o.unshift(i),qr(o)}}return _t.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||_t.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return bt(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&&_t.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),{}):_t.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Or(e)}static getPrimaryType(e){return Or.from(e).primaryType}static hashStruct(e,r,n){return Or.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=s6[n];i||_t.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>Y1.indexOf(n.name)-Y1.indexOf(i.name)),Or.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return qr(["0x1901",Or.hashDomain(e),Or.from(r).hash(n)])}static hash(e,r,n){return bt(Or.encode(e,r,n))}static resolveNames(e,r,n,i){return cU(this,void 0,void 0,function*(){e=ar(e);const s={};e.verifyingContract&&!We(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Or.from(r);o.visit(n,(a,l)=>(a==="address"&&!We(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){Or.hashDomain(e);const i={},s=[];Y1.forEach(l=>{const c=e[l];c!=null&&(i[l]=yU[l](c),s.push({name:l,type:s6[l]}))});const o=Or.from(r),a=ar(r);return a.EIP712Domain?_t.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 le(ae(c));if(l.match(/^u?int/))return oe.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&_t.throwArgumentError("invalid string","value",c),c}return _t.throwArgumentError("unsupported type","type",l)})}}}const Pt=new V(vu);class pU extends fa{}class mU extends fa{}class gU extends fa{}class sp extends fa{static isIndexed(e){return!!(e&&e._isIndexed)}}const xU={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function l6(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class c6{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,Z(this,"fragments",r.map(n=>ss.from(n)).filter(n=>n!=null)),Z(this,"_abiCoder",Mi(new.target,"getAbiCoder")()),Z(this,"functions",{}),Z(this,"errors",{}),Z(this,"events",{}),Z(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){Pt.warn("duplicate definition - constructor");return}Z(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]){Pt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||Z(this,"deploy",Ci.from({payable:!1,type:"constructor"})),Z(this,"_isInterface",!0)}format(e){e||(e=Qe.full),e===Qe.sighash&&Pt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Qe.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return Oz}static getAddress(e){return Ot(e)}static getSighash(e){return ir($o(e.format()),0,4)}static getEventTopic(e){return $o(e.format())}getFunction(e){if(We(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Pt.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?Pt.throwArgumentError("no matching function","name",n):i.length>1&&Pt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Si.fromString(e).format()];return r||Pt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(We(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Pt.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?Pt.throwArgumentError("no matching event","name",n):i.length>1&&Pt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[ts.fromString(e).format()];return r||Pt.throwArgumentError("no matching event","signature",e),r}getError(e){if(We(e)){const n=Mi(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}Pt.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?Pt.throwArgumentError("no matching error","name",n):i.length>1&&Pt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Si.fromString(e).format()];return r||Pt.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 Mi(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Mi(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=ae(r);return le(n.slice(0,4))!==this.getSighash(e)&&Pt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",le(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),le(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=ae(r);return le(n.slice(0,4))!==this.getSighash(e)&&Pt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",le(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),le(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=ae(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=le(n.slice(0,4)),f=xU[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 Pt.throwError("call revert exception"+s,V.errors.CALL_EXCEPTION,{method:e.format(),data:le(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),le(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&Pt.throwError("too many arguments for "+e.format(),V.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"?bt(le(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=oe.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),Et(le(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&Pt.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"?Pt.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&&Pt.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(bt(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);(!We(n[0],32)||n[0].toLowerCase()!==d)&&Pt.throwError("fragment/topic mismatch",V.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(ur.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,Kt(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 sp({_isIndexed:!0,hash:null});else if(o[v])c[v]=new sp({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(m){c[v]=m}else try{c[v]=l[f++]}catch(m){c[v]=m}if(d.name&&c[d.name]==null){const m=c[v];m instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw l6(`property ${JSON.stringify(d.name)}`,m)}}):c[d.name]=m}});for(let d=0;d{throw l6(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new mU({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:oe.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new pU({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=le(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new gU({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 bU="abstract-provider/5.7.0";var wU=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 EU=new V(bU);class CU extends fa{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class pu{constructor(){EU.checkAbstract(new.target,pu),Z(this,"_isProvider",!0)}getFeeData(){return wU(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield qt({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=oe.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 SU="abstract-signer/5.7.0";var Un=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 gn=new V(SU),AU=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],kU=[V.errors.INSUFFICIENT_FUNDS,V.errors.NONCE_EXPIRED,V.errors.REPLACEMENT_UNDERPRICED];class Ol{constructor(){gn.checkAbstract(new.target,Ol),Z(this,"_isSigner",!0)}getBalance(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return Un(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield qt(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return Un(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield qt(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return Un(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 Un(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Un(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Un(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)AU.indexOf(n)===-1&&gn.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=ar(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()&&gn.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return Un(this,void 0,void 0,function*(){const r=yield qt(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>Un(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&gn.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)?gn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&gn.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&&gn.throwError("network does not support EIP-1559",V.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):gn.throwError("failed to get consistent fee data",V.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(kU.indexOf(i.code)>=0)throw i;return gn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.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]&&gn.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield qt(r)})}_checkProvider(e){this.provider||gn.throwError("missing provider",V.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class hg extends Ol{constructor(e,r){super(),Z(this,"address",e),Z(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{gn.throwError(e,V.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 hg(this.address,e)}}var A7={},Fe={},mu=k7;function k7(t,e){if(!t)throw new Error(e||"Assertion failed")}k7.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var op={exports:{}};typeof Object.create=="function"?op.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:op.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 RU=op.exports,PU=mu,TU=RU;Fe.inherits=TU;function _U(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function MU(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):_U(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=R7;function NU(t,e){for(var r="",n=0;n>>0}return s}Fe.join32=$U;function DU(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=DU;function OU(t,e){return t>>>e|t<<32-e}Fe.rotr32=OU;function LU(t,e){return t<>>32-e}Fe.rotl32=LU;function BU(t,e){return t+e>>>0}Fe.sum32=BU;function FU(t,e,r){return t+e+r>>>0}Fe.sum32_3=FU;function jU(t,e,r,n){return t+e+r+n>>>0}Fe.sum32_4=jU;function zU(t,e,r,n,i){return t+e+r+n+i>>>0}Fe.sum32_5=zU;function UU(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=UU;function VU(t,e,r,n){var i=e+n>>>0,s=(i>>0}Fe.sum64_hi=VU;function qU(t,e,r,n){var i=e+n;return i>>>0}Fe.sum64_lo=qU;function HU(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=HU;function GU(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}Fe.sum64_4_lo=GU;function WU(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=WU;function KU(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}Fe.sum64_5_lo=KU;function YU(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}Fe.rotr64_hi=YU;function QU(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.rotr64_lo=QU;function JU(t,e,r){return t>>>r}Fe.shr64_hi=JU;function XU(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.shr64_lo=XU;var Ll={},f6=Fe,ZU=mu;function C0(){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}Ll.BlockHash=C0;C0.prototype.update=function(e,r){if(e=f6.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=f6.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}Vi.g0_256=iV;function sV(t){return Oi(t,17)^Oi(t,19)^t>>>10}Vi.g1_256=sV;var bl=Fe,oV=Ll,aV=Vi,J1=bl.rotl32,hc=bl.sum32,lV=bl.sum32_5,cV=aV.ft_1,N7=oV.BlockHash,fV=[1518500249,1859775393,2400959708,3395469782];function Fi(){if(!(this instanceof Fi))return new Fi;N7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}bl.inherits(Fi,N7);var uV=Fi;Fi.blockSize=512;Fi.outSize=160;Fi.hmacStrength=80;Fi.padLength=64;Fi.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()),XV(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[m]=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 m=l.andln(3)+u&3,y=c.andln(3)+d&3;m===3&&(m=-1),y===3&&(y=-1);var w;m&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-m:w=m):w=0,f[0].push(w);var b;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&m===2?b=-y:b=y):b=0,f[1].push(b),2*u===w+1&&(u=1-u),2*d===b+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 Pe(l,"hex","le")}r.intFromLE=a}),kh=yn.getNAF,tq=yn.getJSF,Rh=yn.assert;function mo(t,e){this.type=t,this.p=new Pe(e.p,16),this.red=e.prime?Pe.red(e.prime):Pe.mont(this.p),this.zero=new Pe(0).toRed(this.red),this.one=new Pe(1).toRed(this.red),this.two=new Pe(2).toRed(this.red),this.n=e.n&&new Pe(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 ua=mo;mo.prototype.point=function(){throw new Error("Not implemented")};mo.prototype.validate=function(){throw new Error("Not implemented")};mo.prototype._fixedNafMul=function(e,r){Rh(e.precomputed);var n=e._getDoubles(),i=kh(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];Rh(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};mo.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 m=f-1,y=f;if(o[m]!==1||o[y]!==1){l[m]=kh(n[m],o[m],this._bitLength),l[y]=kh(n[y],o[y],this._bitLength),c=Math.max(l[m].length,c),c=Math.max(l[y].length,c);continue}var w=[r[m],null,null,r[y]];r[m].y.cmp(r[y].y)===0?(w[1]=r[m].add(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg())):r[m].y.cmp(r[y].y.redNeg())===0?(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].add(r[y].neg())):(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],x=tq(n[m],n[y]);for(c=Math.max(x[0].length,c),l[m]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var $=0;f>=0;){var O=!0;for(u=0;u=0&&$++,_=_.dblp($),f<0)break;for(u=0;u0?d=a[u][H-1>>1]:H<0&&(d=a[u][-H-1>>1].neg()),d.type==="affine"?_=_.mixedAdd(d):_=_.add(d))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};In.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,m=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),m=m.neg()),[{a:u,b:d},{a:v,b:m}]};Nn.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}};Nn.prototype.pointFromX=function(e,r){e=new Pe(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)};Nn.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};Nn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};hr.prototype.isInfinity=function(){return this.inf};hr.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)};hr.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)};hr.prototype.getX=function(){return this.x.fromRed()};hr.prototype.getY=function(){return this.y.fromRed()};hr.prototype.mul=function(e){return e=new Pe(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)};hr.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)};hr.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)};hr.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)};hr.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};hr.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 wr(t,e,r,n){ua.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Pe(0)):(this.x=new Pe(e,16),this.y=new Pe(r,16),this.z=new Pe(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}yg(wr,ua.BasePoint);Nn.prototype.jpoint=function(e,r,n){return new wr(this,e,r,n)};wr.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)};wr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};wr.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),m=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(v,m,y)};wr.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)),m=this.z.redMul(a);return this.curve.jpoint(d,v,m)};wr.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}};wr.prototype.inspect=function(){return this.isInfinity()?"":""};wr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Md=jl(function(t,e){var r=e;r.base=ua,r.short=nq,r.mont=null,r.edwards=null}),Id=jl(function(t,e){var r=e,n=yn.assert;function i(a){a.type==="short"?this.curve=new Md.short(a):a.type==="edwards"?this.curve=new Md.edwards(a):this.curve=new Md.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:rn.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:rn.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:rn.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:rn.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:rn.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:rn.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:rn.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:rn.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=Zn.toArray(t.entropy,t.entropyEnc||"hex"),r=Zn.toArray(t.nonce,t.nonceEnc||"hex"),n=Zn.toArray(t.pers,t.persEnc||"hex");vg(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var H7=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=Zn.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var iq=yn.assert;function S0(t,e){if(t instanceof S0)return t;this._importDER(t,e)||(iq(t.r&&t.s,"Signature without r or s"),this.r=new Pe(t.r,16),this.s=new Pe(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var A0=S0;function sq(){this.place=0}function ev(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 v6(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)}S0.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=v6(r),n=v6(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];tv(i,r.length),i=i.concat(r),i.push(2),tv(i,n.length);var s=i.concat(n),o=[48];return tv(o,s.length),o=o.concat(s),yn.encode(o,e)};var oq=function(){throw new Error("unsupported")},G7=yn.assert;function _n(t){if(!(this instanceof _n))return new _n(t);typeof t=="string"&&(G7(Object.prototype.hasOwnProperty.call(Id,t),"Unknown curve "+t),t=Id[t]),t instanceof Id.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 aq=_n;_n.prototype.keyPair=function(e){return new pg(this,e)};_n.prototype.keyFromPrivate=function(e,r){return pg.fromPrivate(this,e,r)};_n.prototype.keyFromPublic=function(e,r){return pg.fromPublic(this,e,r)};_n.prototype.genKeyPair=function(e){e||(e={});for(var r=new H7({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||oq(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Pe(2));;){var s=new Pe(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};_n.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};_n.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 Pe(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new H7({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Pe(1)),f=0;;f++){var u=i.k?i.k(f):new Pe(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(),m=v.umod(this.n);if(m.cmpn(0)!==0){var y=u.invm(this.n).mul(m.mul(r.getPrivate()).iadd(e));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(m)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new A0({r:m,s:y,recoveryParam:w})}}}}}};_n.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Pe(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)};_n.prototype.recoverPubKey=function(t,e,r,n){G7((3&r)===r,"The recovery param is more than two bits"),e=new A0(e,n);var i=this.n,s=new Pe(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)};_n.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 lq=jl(function(t,e){var r=e;r.version="6.5.4",r.utils=yn,r.rand=function(){throw new Error("unsupported")},r.curve=Md,r.curves=Id,r.ec=aq,r.eddsa=null}),cq=lq.ec;const fq="signing-key/5.7.0",fp=new V(fq);let rv=null;function bi(){return rv||(rv=new cq("secp256k1")),rv}class nl{constructor(e){Z(this,"curve","secp256k1"),Z(this,"privateKey",le(e)),Jo(this.privateKey)!==32&&fp.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=bi().keyFromPrivate(ae(this.privateKey));Z(this,"publicKey","0x"+r.getPublic(!1,"hex")),Z(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),Z(this,"_isSigningKey",!0)}_addPoint(e){const r=bi().keyFromPublic(ae(this.publicKey)),n=bi().keyFromPublic(ae(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=bi().keyFromPrivate(ae(this.privateKey)),n=ae(e);n.length!==32&&fp.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return Dl({recoveryParam:i.recoveryParam,r:Et("0x"+i.r.toString(16),32),s:Et("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=bi().keyFromPrivate(ae(this.privateKey)),n=bi().keyFromPublic(ae(W7(e)));return Et("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function uq(t,e){const r=Dl(e),n={r:ae(r.r),s:ae(r.s)};return"0x"+bi().recoverPubKey(ae(t),n,r.recoveryParam).encode("hex",!1)}function W7(t,e){const r=ae(t);if(r.length===32){const n=new nl(r);return e?"0x"+bi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?le(r):"0x"+bi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+bi().keyFromPublic(r).getPublic(!0,"hex"):le(r)}return fp.throwArgumentError("invalid public or private key","key","[REDACTED]")}const dq="transactions/5.7.0",Rr=new V(dq);var y6;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(y6||(y6={}));function mg(t){return t==="0x"?null:Ot(t)}function kr(t){return t==="0x"?c7:oe.from(t)}const hq=[{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"}],vq={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function jo(t){const e=W7(t);return Ot(ir(bt(ir(e,1)),12))}function K7(t,e){return jo(uq(ae(t),e))}function sn(t,e){const r=fs(oe.from(t).toHexString());return r.length>32&&Rr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function nv(t,e){return{address:Ot(t),storageKeys:(e||[]).map((r,n)=>(Jo(r)!==32&&Rr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function zl(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Rr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),nv(r[0],r[1])):nv(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return nv(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function Y7(t){return zl(t).map(e=>[e.address,e.storageKeys])}function Q7(t,e){if(t.gasPrice!=null){const n=oe.from(t.gasPrice),i=oe.from(t.maxFeePerGas||0);n.eq(i)||Rr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[sn(t.chainId||0,"chainId"),sn(t.nonce||0,"nonce"),sn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),sn(t.maxFeePerGas||0,"maxFeePerGas"),sn(t.gasLimit||0,"gasLimit"),t.to!=null?Ot(t.to):"0x",sn(t.value||0,"value"),t.data||"0x",Y7(t.accessList||[])];if(e){const n=Dl(e);r.push(sn(n.recoveryParam,"recoveryParam")),r.push(fs(n.r)),r.push(fs(n.s))}return qr(["0x02",xl(r)])}function J7(t,e){const r=[sn(t.chainId||0,"chainId"),sn(t.nonce||0,"nonce"),sn(t.gasPrice||0,"gasPrice"),sn(t.gasLimit||0,"gasLimit"),t.to!=null?Ot(t.to):"0x",sn(t.value||0,"value"),t.data||"0x",Y7(t.accessList||[])];if(e){const n=Dl(e);r.push(sn(n.recoveryParam,"recoveryParam")),r.push(fs(n.r)),r.push(fs(n.s))}return qr(["0x01",xl(r)])}function yq(t,e){QA(t,vq);const r=[];hq.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=ae(le(a,l)),o.length&&a.length!==o.length&&a.length>0&&Rr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=fs(a),a.length>o.maxLength&&Rr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(le(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Rr.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!w0(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(le(n)),r.push("0x"),r.push("0x")),!e)return xl(r);const i=Dl(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&&Rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&Rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(le(s)),r.push(fs(ae(i.r))),r.push(fs(ae(i.s))),xl(r)}function p6(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Rr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),yq(t,e);switch(t.type){case 1:return J7(t,e);case 2:return Q7(t,e)}return Rr.throwError(`unsupported transaction type: ${t.type}`,V.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function X7(t,e,r){try{const n=kr(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Rr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Et(e[1],32),t.s=Et(e[2],32);try{const n=bt(r(t));t.from=K7(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function pq(t){const e=ug(t.slice(1));e.length!==9&&e.length!==12&&Rr.throwArgumentError("invalid component count for transaction type: 2","payload",le(t));const r=kr(e[2]),n=kr(e[3]),i={type:2,chainId:kr(e[0]).toNumber(),nonce:kr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:kr(e[4]),to:mg(e[5]),value:kr(e[6]),data:e[7],accessList:zl(e[8])};return e.length===9||(i.hash=bt(t),X7(i,e.slice(9),Q7)),i}function mq(t){const e=ug(t.slice(1));e.length!==8&&e.length!==11&&Rr.throwArgumentError("invalid component count for transaction type: 1","payload",le(t));const r={type:1,chainId:kr(e[0]).toNumber(),nonce:kr(e[1]).toNumber(),gasPrice:kr(e[2]),gasLimit:kr(e[3]),to:mg(e[4]),value:kr(e[5]),data:e[6],accessList:zl(e[7])};return e.length===8||(r.hash=bt(t),X7(r,e.slice(8),J7)),r}function gq(t){const e=ug(t);e.length!==9&&e.length!==6&&Rr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:kr(e[0]).toNumber(),gasPrice:kr(e[1]),gasLimit:kr(e[2]),to:mg(e[3]),value:kr(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=oe.from(e[6]).toNumber()}catch{return r}if(r.r=Et(e[7],32),r.s=Et(e[8],32),oe.from(r.r).isZero()&&oe.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(le(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=bt(xl(i));try{r.from=K7(s,{r:le(r.r),s:le(r.s),recoveryParam:n})}catch{}r.hash=bt(t)}return r.type=null,r}function xq(t){const e=ae(t);if(e[0]>127)return gq(e);switch(e[0]){case 1:return mq(e);case 2:return pq(e)}return Rr.throwError(`unsupported transaction type: ${e[0]}`,V.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const bq="contracts/5.7.0";var ta=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 Ht=new V(bq);function Ph(t,e){return ta(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&Ht.throwArgumentError("invalid address or ENS name","name",r);try{return Ot(r)}catch{}t||Ht.throwError("a provider or signer is needed to resolve ENS names",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&Ht.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Nd(t,e,r){return ta(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Nd(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield Ph(t,e):r.type==="tuple"?yield Nd(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>Nd(t,n,r.arrayChildren))):Promise.reject(Ht.makeError("invalid value for array",V.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function k0(t,e,r){return ta(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=ar(r.pop())),Ht.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=qt({override:Ph(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>ta(this,void 0,void 0,function*(){return Ot(c.signer)!==c.override&&Ht.throwError("Contract with a Signer cannot override from",V.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=Ph(t.provider,n.from));const i=yield qt({args:Nd(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:qt(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=oe.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=oe.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=oe.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=oe.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=oe.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=zl(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=ae(s);for(let u=0;un[c]!=null);return l.length&&Ht.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,V.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function wq(t,e){return function(...r){return k0(t,e,r)}}function Eq(t,e){const r=t.signer||t.provider;return function(...n){return ta(this,void 0,void 0,function*(){r||Ht.throwError("estimate require a provider or signer",V.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield k0(t,e,n);return yield r.estimateGas(i)})}}function Cq(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=Xo(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 Z7(t,e,r){const n=t.signer||t.provider;return function(...i){return ta(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=ar(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 k0(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===V.errors.CALL_EXCEPTION&&(l.address=t.address,l.args=i,l.transaction=o),l}})}}function Sq(t,e){return function(...r){return ta(this,void 0,void 0,function*(){t.signer||Ht.throwError("sending a transaction requires a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield k0(t,e,r),i=yield t.signer.sendTransaction(n);return Cq(t,i),i})}}function m6(t,e,r){return e.constant?Z7(t,e,r):Sq(t,e)}function e9(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 Gf{constructor(e,r){Z(this,"tag",e),Z(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 Aq extends Gf{constructor(){super("error",null)}}class g6 extends Gf{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&Ht.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(e9(s),s),Z(this,"address",e),Z(this,"interface",r),Z(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=sz(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class x6 extends Gf{constructor(e,r){super("*",{address:e}),Z(this,"address",e),Z(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 kq{constructor(e,r,n){Z(this,"interface",Mi(new.target,"getInterface")(r)),n==null?(Z(this,"provider",null),Z(this,"signer",null)):Ol.isSigner(n)?(Z(this,"provider",n.provider||null),Z(this,"signer",n)):pu.isProvider(n)?(Z(this,"provider",n),Z(this,"signer",null)):Ht.throwArgumentError("invalid signer or provider","signerOrProvider",n),Z(this,"callStatic",{}),Z(this,"estimateGas",{}),Z(this,"functions",{}),Z(this,"populateTransaction",{}),Z(this,"filters",{});{const o={};Object.keys(this.interface.events).forEach(a=>{const l=this.interface.events[a];Z(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?Z(this.filters,a,this.filters[l[0]]):Ht.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(Z(this,"_runningEvents",{}),Z(this,"_wrappedEmits",{}),e==null&&Ht.throwArgumentError("invalid contract address or ENS name","addressOrName",e),Z(this,"address",e),this.provider)Z(this,"resolvedAddress",Ph(this.provider,e));else try{Z(this,"resolvedAddress",Promise.resolve(Ot(e)))}catch{Ht.throwError("provider is required to use ENS name as contract address",V.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]){Ht.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&&Z(this,o,m6(this,a,!0)),this.functions[o]==null&&Z(this.functions,o,m6(this,a,!1)),this.callStatic[o]==null&&Z(this.callStatic,o,Z7(this,a,!0)),this.populateTransaction[o]==null&&Z(this.populateTransaction,o,wq(this,a)),this.estimateGas[o]==null&&Z(this.estimateGas,o,Eq(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&&Z(this,o,this[l])}catch{}this.functions[o]==null&&Z(this.functions,o,this.functions[l]),this.callStatic[o]==null&&Z(this.callStatic,o,this.callStatic[l]),this.populateTransaction[o]==null&&Z(this.populateTransaction,o,this.populateTransaction[l]),this.estimateGas[o]==null&&Z(this.estimateGas,o,this.estimateGas[l])})}static getContractAddress(e){return i7(e)}static getInterface(e){return c6.isInterface(e)?e:new c6(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"&&Ht.throwError("contract not deployed",V.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Ht.throwError("sending a transactions require a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=ar(e||{});return["from","to"].forEach(function(n){r[n]!=null&&Ht.throwError("cannot override "+n,V.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new hg(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Z(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return sp.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 Aq);if(e==="event")return this._normalizeRunningEvent(new Gf("event",null));if(e==="*")return this._normalizeRunningEvent(new x6(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new g6(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 g6(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Gf(e9(r),r))}return this._normalizeRunningEvent(new x6(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=Xo(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||Ht.throwError("events require a provider or a signer with a provider",V.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=ar(i.filter);return typeof r=="string"&&We(r,32)?(n!=null&&Ht.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 Rq extends kq{}class t9{constructor(e){Z(this,"alphabet",e),Z(this,"base",e.length),Z(this,"_alphabetMap",{}),Z(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=ae(Th(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>5,this.byteCount=this.blockCount<<2,this.outputBlocks=j>>5,this.extraBytes=(j&31)>>3;for(var z=0;z<50;++z)this.s[z]=0}p.prototype.update=function(E){if(this.finalized)throw new Error(r);var F,j=typeof E;if(j!=="string"){if(j==="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);F=!0}for(var z=this.blocks,W=this.byteCount,ne=E.length,X=this.blockCount,ee=0,_e=this.s,ce,xe;ee>2]|=E[ee]<>2]|=xe<>2]|=(192|xe>>6)<>2]|=(128|xe&63)<=57344?(z[ce>>2]|=(224|xe>>12)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<>2]|=(240|xe>>18)<>2]|=(128|xe>>12&63)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<=W){for(this.start=ce-W,this.block=z[X],ce=0;ce>8,j=E&255;j>0;)W.unshift(j),E=E>>8,j=E&255,++z;return F?W.push(z):W.unshift(z),this.update(W),W.length},p.prototype.encodeString=function(E){var F,j=typeof E;if(j!=="string"){if(j==="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);F=!0}var z=0,W=E.length;if(F)z=W;else for(var ne=0;ne=57344?z+=3:(X=65536+((X&1023)<<10|E.charCodeAt(++ne)&1023),z+=4)}return z+=this.encode(z*8),this.update(E),z},p.prototype.bytepad=function(E,F){for(var j=this.encode(F),z=0;z>2]|=this.padding[F&3],this.lastByteIndex===this.byteCount)for(E[0]=E[j],F=1;F>4&15]+c[ee&15]+c[ee>>12&15]+c[ee>>8&15]+c[ee>>20&15]+c[ee>>16&15]+c[ee>>28&15]+c[ee>>24&15];ne%E===0&&(B(F),W=0)}return z&&(ee=F[W],X+=c[ee>>4&15]+c[ee&15],z>1&&(X+=c[ee>>12&15]+c[ee>>8&15]),z>2&&(X+=c[ee>>20&15]+c[ee>>16&15])),X},p.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,F=this.s,j=this.outputBlocks,z=this.extraBytes,W=0,ne=0,X=this.outputBits>>3,ee;z?ee=new ArrayBuffer(j+1<<2):ee=new ArrayBuffer(X);for(var _e=new Uint32Array(ee);ne>8&255,X[ee+2]=_e>>16&255,X[ee+3]=_e>>24&255;ne%E===0&&B(F)}return z&&(ee=ne<<2,_e=F[W],X[ee]=_e&255,z>1&&(X[ee+1]=_e>>8&255),z>2&&(X[ee+2]=_e>>16&255)),X};function P(E,F,j){p.call(this,E,F,j)}P.prototype=new p,P.prototype.finalize=function(){return this.encode(this.outputBits,!0),p.prototype.finalize.call(this)};var B=function(E){var F,j,z,W,ne,X,ee,_e,ce,xe,Er,je,Ye,Zr,Ie,at,ci,lt,dt,fi,et,ct,Ln,ht,ft,Hi,ut,vt,G,q,J,he,ye,ve,Ee,de,fe,Ve,Me,be,rt,ke,Ge,Mr,Xe,nt,vr,ze,tt,Bn,it,st,De,$e,qe,Fn,Ae,Ze,jn,ui,Cs,Ss,As;for(z=0;z<48;z+=2)W=E[0]^E[10]^E[20]^E[30]^E[40],ne=E[1]^E[11]^E[21]^E[31]^E[41],X=E[2]^E[12]^E[22]^E[32]^E[42],ee=E[3]^E[13]^E[23]^E[33]^E[43],_e=E[4]^E[14]^E[24]^E[34]^E[44],ce=E[5]^E[15]^E[25]^E[35]^E[45],xe=E[6]^E[16]^E[26]^E[36]^E[46],Er=E[7]^E[17]^E[27]^E[37]^E[47],je=E[8]^E[18]^E[28]^E[38]^E[48],Ye=E[9]^E[19]^E[29]^E[39]^E[49],F=je^(X<<1|ee>>>31),j=Ye^(ee<<1|X>>>31),E[0]^=F,E[1]^=j,E[10]^=F,E[11]^=j,E[20]^=F,E[21]^=j,E[30]^=F,E[31]^=j,E[40]^=F,E[41]^=j,F=W^(_e<<1|ce>>>31),j=ne^(ce<<1|_e>>>31),E[2]^=F,E[3]^=j,E[12]^=F,E[13]^=j,E[22]^=F,E[23]^=j,E[32]^=F,E[33]^=j,E[42]^=F,E[43]^=j,F=X^(xe<<1|Er>>>31),j=ee^(Er<<1|xe>>>31),E[4]^=F,E[5]^=j,E[14]^=F,E[15]^=j,E[24]^=F,E[25]^=j,E[34]^=F,E[35]^=j,E[44]^=F,E[45]^=j,F=_e^(je<<1|Ye>>>31),j=ce^(Ye<<1|je>>>31),E[6]^=F,E[7]^=j,E[16]^=F,E[17]^=j,E[26]^=F,E[27]^=j,E[36]^=F,E[37]^=j,E[46]^=F,E[47]^=j,F=xe^(W<<1|ne>>>31),j=Er^(ne<<1|W>>>31),E[8]^=F,E[9]^=j,E[18]^=F,E[19]^=j,E[28]^=F,E[29]^=j,E[38]^=F,E[39]^=j,E[48]^=F,E[49]^=j,Zr=E[0],Ie=E[1],nt=E[11]<<4|E[10]>>>28,vr=E[10]<<4|E[11]>>>28,vt=E[20]<<3|E[21]>>>29,G=E[21]<<3|E[20]>>>29,ui=E[31]<<9|E[30]>>>23,Cs=E[30]<<9|E[31]>>>23,ke=E[40]<<18|E[41]>>>14,Ge=E[41]<<18|E[40]>>>14,ve=E[2]<<1|E[3]>>>31,Ee=E[3]<<1|E[2]>>>31,at=E[13]<<12|E[12]>>>20,ci=E[12]<<12|E[13]>>>20,ze=E[22]<<10|E[23]>>>22,tt=E[23]<<10|E[22]>>>22,q=E[33]<<13|E[32]>>>19,J=E[32]<<13|E[33]>>>19,Ss=E[42]<<2|E[43]>>>30,As=E[43]<<2|E[42]>>>30,$e=E[5]<<30|E[4]>>>2,qe=E[4]<<30|E[5]>>>2,de=E[14]<<6|E[15]>>>26,fe=E[15]<<6|E[14]>>>26,lt=E[25]<<11|E[24]>>>21,dt=E[24]<<11|E[25]>>>21,Bn=E[34]<<15|E[35]>>>17,it=E[35]<<15|E[34]>>>17,he=E[45]<<29|E[44]>>>3,ye=E[44]<<29|E[45]>>>3,ht=E[6]<<28|E[7]>>>4,ft=E[7]<<28|E[6]>>>4,Fn=E[17]<<23|E[16]>>>9,Ae=E[16]<<23|E[17]>>>9,Ve=E[26]<<25|E[27]>>>7,Me=E[27]<<25|E[26]>>>7,fi=E[36]<<21|E[37]>>>11,et=E[37]<<21|E[36]>>>11,st=E[47]<<24|E[46]>>>8,De=E[46]<<24|E[47]>>>8,Mr=E[8]<<27|E[9]>>>5,Xe=E[9]<<27|E[8]>>>5,Hi=E[18]<<20|E[19]>>>12,ut=E[19]<<20|E[18]>>>12,Ze=E[29]<<7|E[28]>>>25,jn=E[28]<<7|E[29]>>>25,be=E[38]<<8|E[39]>>>24,rt=E[39]<<8|E[38]>>>24,ct=E[48]<<14|E[49]>>>18,Ln=E[49]<<14|E[48]>>>18,E[0]=Zr^~at<,E[1]=Ie^~ci&dt,E[10]=ht^~Hi&vt,E[11]=ft^~ut&G,E[20]=ve^~de&Ve,E[21]=Ee^~fe&Me,E[30]=Mr^~nt&ze,E[31]=Xe^~vr&tt,E[40]=$e^~Fn&Ze,E[41]=qe^~Ae&jn,E[2]=at^~lt&fi,E[3]=ci^~dt&et,E[12]=Hi^~vt&q,E[13]=ut^~G&J,E[22]=de^~Ve&be,E[23]=fe^~Me&rt,E[32]=nt^~ze&Bn,E[33]=vr^~tt&it,E[42]=Fn^~Ze&ui,E[43]=Ae^~jn&Cs,E[4]=lt^~fi&ct,E[5]=dt^~et&Ln,E[14]=vt^~q&he,E[15]=G^~J&ye,E[24]=Ve^~be&ke,E[25]=Me^~rt&Ge,E[34]=ze^~Bn&st,E[35]=tt^~it&De,E[44]=Ze^~ui&Ss,E[45]=jn^~Cs&As,E[6]=fi^~ct&Zr,E[7]=et^~Ln&Ie,E[16]=q^~he&ht,E[17]=J^~ye&ft,E[26]=be^~ke&ve,E[27]=rt^~Ge&Ee,E[36]=Bn^~st&Mr,E[37]=it^~De&Xe,E[46]=ui^~Ss&$e,E[47]=Cs^~As&qe,E[8]=ct^~Zr&at,E[9]=Ln^~Ie&ci,E[18]=he^~ht&Hi,E[19]=ye^~ft&ut,E[28]=ke^~ve&de,E[29]=Ge^~Ee&fe,E[38]=st^~Mr&nt,E[39]=De^~Xe&vr,E[48]=Ss^~$e&Fn,E[49]=As^~qe&Ae,E[0]^=y[z],E[1]^=y[z+1]};if(a)t.exports=h;else for(R=0;R>=8;return e}function a6(t,e,r){let n=0;for(let i=0;ie+1+n&&bi.throwError("child data too short",V.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function h7(t,e){if(t.length===0&&bi.throwError("data too short",V.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&bi.throwError("data short segment too short",V.errors.BUFFER_OVERRUN,{});const n=a6(t,e+1,r);return e+1+r+n>t.length&&bi.throwError("data long segment too short",V.errors.BUFFER_OVERRUN,{}),l6(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",V.errors.BUFFER_OVERRUN,{}),l6(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",V.errors.BUFFER_OVERRUN,{});const n=a6(t,e+1,r);e+1+r+n>t.length&&bi.throwError("data array too short",V.errors.BUFFER_OVERRUN,{});const i=le(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",V.errors.BUFFER_OVERRUN,{});const n=le(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:le(t[e])}}function xg(t){const e=ae(t),r=h7(e,0);return r.consumed!==e.length&&bi.throwArgumentError("invalid rlp data","data",t),r.result}const Fz="address/5.7.0",qa=new V(Fz);function c6(t){We(t,20)||qa.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=ae(bt(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 jz=9007199254740991;function zz(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const bg={};for(let t=0;t<10;t++)bg[String(t)]=String(t);for(let t=0;t<26;t++)bg[String.fromCharCode(65+t)]=String(10+t);const f6=Math.floor(zz(jz));function Uz(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>bg[n]).join("");for(;e.length>=f6;){let n=e.substring(0,f6);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 Ot(t){let e=null;if(typeof t!="string"&&qa.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=c6(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&qa.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)!==Uz(t)&&qa.throwArgumentError("bad icap checksum","address",t),e=Sz(t.substring(4));e.length<40;)e="0"+e;e=c6("0x"+e)}else qa.throwArgumentError("invalid address","address",t);return e}function Vz(t){try{return Ot(t),!0}catch{}return!1}function v7(t){let e=null;try{e=Ot(t.from)}catch{qa.throwArgumentError("missing from address","transaction",t)}const r=fs(ae(oe.from(t.nonce).toHexString()));return Ot(ir(bt(bl([e,r])),12))}class qz extends Es{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=Ot(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return Ot(Et(e.readValue().toHexString(),20))}}class Hz extends Es{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 Ha=new V(mu);function y7(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||Ha.throwError("cannot encode object for signature with missing names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&Ha.throwError("cannot encode object for signature with duplicate names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]=!0,r[f]})}else Ha.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&Ha.throwArgumentError("types/value length mismatch","tuple",r);let i=new up(t.wordSize),s=new up(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 p7(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===V.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===V.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 Gz extends Es{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&&Ha.throwError("insufficient data length",V.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i>6===2;o++)s++;return s}return t===nn.OVERRUN?r.length-e-1:0}function iU(t,e,r,n,i){return t===nn.OVERLONG?(n.push(i),0):(n.push(65533),w7(t,e,r))}const sU=Object.freeze({error:nU,ignore:w7,replace:iU});function E7(t,e){e==null&&(e=sU.error),t=ae(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(nn.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(nn.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(nn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(nn.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(nn.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(nn.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function Zt(t,e=so.current){e!=so.current&&(b7.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 ae(r)}function oU(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function gu(t,e){return oU(E7(t,e))}function aU(t,e=so.current){return E7(Zt(t,e))}class lU extends m7{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,Zt(r))}decode(e){return gu(super.decode(e))}}class id extends Es{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 y7(e,this.coders,r)}decode(e){return e.coerce(this.name,p7(e,this.coders))}}const sd=new V(mu),cU=new RegExp(/^bytes([0-9]*)$/),fU=new RegExp(/^(u?int)([0-9]*)$/);class uU{constructor(e){Z(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new qz(e.name);case"bool":return new Wz(e.name);case"string":return new lU(e.name);case"bytes":return new Kz(e.name);case"array":return new Gz(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new id((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new Qz(e.name)}let r=e.type.match(fU);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&sd.throwArgumentError("invalid "+r[1]+" bit length","param",e),new tU(n/8,r[1]==="int",e.name)}if(r=e.type.match(cU),r){let n=parseInt(r[1]);return(n===0||n>32)&&sd.throwArgumentError("invalid bytes length","param",e),new Yz(n,e.name)}return sd.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new Ph(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new up(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(ur.from(i)));return new id(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&sd.throwError("types/values length mismatch",V.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(o=>this._getCoder(ur.from(o))),i=new id(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(ur.from(o)));return new id(i,"_").decode(this._getReader(ae(r),n))}}const dU=new uU;function Do(t){return bt(Zt(t))}const C7="hash/5.7.0";function S7(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 hU(t){const e={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,m=v>>1,y=d-1;let w=0;for(let _=0;_1;){let Y=D+$>>>1;_>>1|f(),O=O<<1^v,H=(H^v)<<1|v|1;b=O,S=1+H-O}let A=n-4;return x.map(_=>{switch(_-A){case 3:return A+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return A+256+(t[a++]<<8|t[a++]);case 1:return A+t[a++];default:return _-1}})}function yU(t){let e=0;return()=>t[e++]}function pU(t){return yU(vU(t))}function mU(t){return t&1?~t>>1:t>>1}function gU(t,e){let r=Array(t);for(let n=0;ne[o]):r}function bU(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(EU(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(CU(r,t))}return hU(k7(e))}function wU(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function R7(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function EU(t,e){let r=1+e(),n=e(),i=wU(e),s=R7(i.length,1+t,e);return k7(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 CU(t,e){let r=1+e();return R7(r,1+t,e).map(i=>[i[0],i.slice(1)])}function SU(t){let e=Th(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=Th(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 AU(){return pU(S7("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const P0=AU(),kU=new Set(Th(P0)),RU=new Set(Th(P0)),PU=bU(P0),TU=SU(P0),d6=45,h6=95;function P7(t){return aU(t)}function _U(t){return t.filter(e=>e!=65039)}function T7(t){for(let e of t.split(".")){let r=P7(e);try{for(let n=r.lastIndexOf(h6)-1;n>=0;n--)if(r[n]!==h6)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===d6&&r[3]===d6)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function MU(t){return T7(IU(t,_U))}function IU(t,e){let r=P7(t).reverse(),n=[];for(;r.length;){let i=$U(r);if(i){n.push(...e(i));continue}let s=r.pop();if(kU.has(s)){n.push(s);continue}if(RU.has(s))continue;let o=PU[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return T7(NU(String.fromCodePoint(...n)))}function NU(t){return t.normalize("NFC")}function $U(t,e){var r;let n=TU,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 DU=new V(C7),_7=new Uint8Array(32);_7.fill(0);function v6(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function M7(t){const e=Zt(MU(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(v6(e.slice(n))),r}function Nd(t){typeof t!="string"&&DU.throwArgumentError("invalid ENS name; not a string","name",t);let e=_7;const r=M7(t);for(;r.length;)e=bt(Kt([e,bt(r.pop())]));return le(e)}function OU(t){return le(Kt(M7(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 LU=`Ethereum Signed Message: +`;function BU(t){return typeof t=="string"&&(t=Zt(t)),bt(Kt([Zt(LU),Zt(String(t.length)),t]))}var FU=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 Mt=new V(C7),I7=new Uint8Array(32);I7.fill(0);const jU=oe.from(-1),N7=oe.from(0),$7=oe.from(1),zU=oe.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function UU(t){const e=ae(t),r=e.length%32;return r?qr([e,I7.slice(r)]):le(e)}const VU=Et($7.toHexString(),32),qU=Et(N7.toHexString(),32),y6={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},tv=["name","version","chainId","verifyingContract","salt"];function p6(t){return function(e){return typeof e!="string"&&Mt.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const HU={name:p6("name"),version:p6("version"),chainId:function(t){try{return oe.from(t).toString()}catch{}return Mt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Ot(t).toLowerCase()}catch{}return Mt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=ae(t);if(e.length!==32)throw new Error("bad length");return le(e)}catch{}return Mt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function rv(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))&&Mt.throwArgumentError("invalid numeric width","type",t);const i=zU.mask(r?n-1:n),s=r?i.add($7).mul(jU):N7;return function(o){const a=oe.from(o);return(a.lt(s)||a.gt(i))&&Mt.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),Et(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))&&Mt.throwArgumentError("invalid bytes width","type",t),function(n){return ae(n).length!==r&&Mt.throwArgumentError(`invalid length for ${t}`,"value",n),UU(n)}}}switch(t){case"address":return function(e){return Et(Ot(e),32)};case"bool":return function(e){return e?VU:qU};case"bytes":return function(e){return bt(e)};case"string":return function(e){return Do(e)}}return null}function m6(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Or{constructor(e){Z(this,"types",Object.freeze(Zo(e))),Z(this,"_encoderCache",{}),Z(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]&&Mt.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&&Mt.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!rv(f)&&(n[f]||Mt.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?Mt.throwArgumentError("missing primary type","types",e):s.length>1&&Mt.throwArgumentError(`ambiguous primary types or unused types: ${s.map(a=>JSON.stringify(a)).join(", ")}`,"types",e),Z(this,"primaryType",s[0]);function o(a,l){l[a]&&Mt.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]=m6(a,e[a])+l.map(c=>m6(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=rv(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&&Mt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(bt)),bt(qr(l))}}const n=this.types[e];if(n){const i=Do(this._types[e]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?bt(c):c});return o.unshift(i),qr(o)}}return Mt.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||Mt.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return bt(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(rv(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&&Mt.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),{}):Mt.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Or(e)}static getPrimaryType(e){return Or.from(e).primaryType}static hashStruct(e,r,n){return Or.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=y6[n];i||Mt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>tv.indexOf(n.name)-tv.indexOf(i.name)),Or.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return qr(["0x1901",Or.hashDomain(e),Or.from(r).hash(n)])}static hash(e,r,n){return bt(Or.encode(e,r,n))}static resolveNames(e,r,n,i){return FU(this,void 0,void 0,function*(){e=ar(e);const s={};e.verifyingContract&&!We(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Or.from(r);o.visit(n,(a,l)=>(a==="address"&&!We(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){Or.hashDomain(e);const i={},s=[];tv.forEach(l=>{const c=e[l];c!=null&&(i[l]=HU[l](c),s.push({name:l,type:y6[l]}))});const o=Or.from(r),a=ar(r);return a.EIP712Domain?Mt.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 le(ae(c));if(l.match(/^u?int/))return oe.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&Mt.throwArgumentError("invalid string","value",c),c}return Mt.throwArgumentError("unsupported type","type",l)})}}}const Tt=new V(mu);class GU extends ua{}class WU extends ua{}class KU extends ua{}class dp extends ua{static isIndexed(e){return!!(e&&e._isIndexed)}}const YU={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function g6(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class x6{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,Z(this,"fragments",r.map(n=>ss.from(n)).filter(n=>n!=null)),Z(this,"_abiCoder",Ii(new.target,"getAbiCoder")()),Z(this,"functions",{}),Z(this,"errors",{}),Z(this,"events",{}),Z(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){Tt.warn("duplicate definition - constructor");return}Z(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]){Tt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||Z(this,"deploy",Si.from({payable:!1,type:"constructor"})),Z(this,"_isInterface",!0)}format(e){e||(e=Qe.full),e===Qe.sighash&&Tt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Qe.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return dU}static getAddress(e){return Ot(e)}static getSighash(e){return ir(Do(e.format()),0,4)}static getEventTopic(e){return Do(e.format())}getFunction(e){if(We(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Tt.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?Tt.throwArgumentError("no matching function","name",n):i.length>1&&Tt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Ai.fromString(e).format()];return r||Tt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(We(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Tt.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?Tt.throwArgumentError("no matching event","name",n):i.length>1&&Tt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[ts.fromString(e).format()];return r||Tt.throwArgumentError("no matching event","signature",e),r}getError(e){if(We(e)){const n=Ii(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}Tt.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?Tt.throwArgumentError("no matching error","name",n):i.length>1&&Tt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Ai.fromString(e).format()];return r||Tt.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 Ii(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Ii(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=ae(r);return le(n.slice(0,4))!==this.getSighash(e)&&Tt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",le(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),le(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=ae(r);return le(n.slice(0,4))!==this.getSighash(e)&&Tt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",le(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),le(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=ae(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=le(n.slice(0,4)),f=YU[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 Tt.throwError("call revert exception"+s,V.errors.CALL_EXCEPTION,{method:e.format(),data:le(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),le(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&Tt.throwError("too many arguments for "+e.format(),V.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(s,o)=>s.type==="string"?Do(o):s.type==="bytes"?bt(le(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=oe.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),Et(le(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&Tt.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"?Tt.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&&Tt.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(Do(l));else if(o.type==="bytes")n.push(bt(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);(!We(n[0],32)||n[0].toLowerCase()!==d)&&Tt.throwError("fragment/topic mismatch",V.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(ur.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,Kt(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 dp({_isIndexed:!0,hash:null});else if(o[v])c[v]=new dp({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(m){c[v]=m}else try{c[v]=l[f++]}catch(m){c[v]=m}if(d.name&&c[d.name]==null){const m=c[v];m instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw g6(`property ${JSON.stringify(d.name)}`,m)}}):c[d.name]=m}});for(let d=0;d{throw g6(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new WU({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:oe.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new GU({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=le(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new KU({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 QU="abstract-provider/5.7.0";var JU=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 XU=new V(QU);class ZU extends ua{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class xu{constructor(){XU.checkAbstract(new.target,xu),Z(this,"_isProvider",!0)}getFeeData(){return JU(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield qt({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=oe.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 eV="abstract-signer/5.7.0";var Un=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 gn=new V(eV),tV=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],rV=[V.errors.INSUFFICIENT_FUNDS,V.errors.NONCE_EXPIRED,V.errors.REPLACEMENT_UNDERPRICED];class Ll{constructor(){gn.checkAbstract(new.target,Ll),Z(this,"_isSigner",!0)}getBalance(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return Un(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield qt(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return Un(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield qt(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return Un(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 Un(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Un(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Un(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)tV.indexOf(n)===-1&&gn.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=ar(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()&&gn.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return Un(this,void 0,void 0,function*(){const r=yield qt(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>Un(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&gn.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)?gn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&gn.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&&gn.throwError("network does not support EIP-1559",V.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):gn.throwError("failed to get consistent fee data",V.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(rV.indexOf(i.code)>=0)throw i;return gn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.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]&&gn.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield qt(r)})}_checkProvider(e){this.provider||gn.throwError("missing provider",V.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class wg extends Ll{constructor(e,r){super(),Z(this,"address",e),Z(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{gn.throwError(e,V.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 wg(this.address,e)}}var D7={},Fe={},bu=O7;function O7(t,e){if(!t)throw new Error(e||"Assertion failed")}O7.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var hp={exports:{}};typeof Object.create=="function"?hp.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:hp.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 nV=hp.exports,iV=bu,sV=nV;Fe.inherits=sV;function oV(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function aV(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):oV(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=L7;function cV(t,e){for(var r="",n=0;n>>0}return s}Fe.join32=fV;function uV(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=uV;function dV(t,e){return t>>>e|t<<32-e}Fe.rotr32=dV;function hV(t,e){return t<>>32-e}Fe.rotl32=hV;function vV(t,e){return t+e>>>0}Fe.sum32=vV;function yV(t,e,r){return t+e+r>>>0}Fe.sum32_3=yV;function pV(t,e,r,n){return t+e+r+n>>>0}Fe.sum32_4=pV;function mV(t,e,r,n,i){return t+e+r+n+i>>>0}Fe.sum32_5=mV;function gV(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=gV;function xV(t,e,r,n){var i=e+n>>>0,s=(i>>0}Fe.sum64_hi=xV;function bV(t,e,r,n){var i=e+n;return i>>>0}Fe.sum64_lo=bV;function wV(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=wV;function EV(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}Fe.sum64_4_lo=EV;function CV(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=CV;function SV(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}Fe.sum64_5_lo=SV;function AV(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}Fe.rotr64_hi=AV;function kV(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.rotr64_lo=kV;function RV(t,e,r){return t>>>r}Fe.shr64_hi=RV;function PV(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.shr64_lo=PV;var Bl={},b6=Fe,TV=bu;function T0(){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}Bl.BlockHash=T0;T0.prototype.update=function(e,r){if(e=b6.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=b6.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}Vi.g0_256=$V;function DV(t){return Li(t,17)^Li(t,19)^t>>>10}Vi.g1_256=DV;var wl=Fe,OV=Bl,LV=Vi,nv=wl.rotl32,vc=wl.sum32,BV=wl.sum32_5,FV=LV.ft_1,V7=OV.BlockHash,jV=[1518500249,1859775393,2400959708,3395469782];function ji(){if(!(this instanceof ji))return new ji;V7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}wl.inherits(ji,V7);var zV=ji;ji.blockSize=512;ji.outSize=160;ji.hmacStrength=80;ji.padLength=64;ji.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()),Pq(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[m]=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 m=l.andln(3)+u&3,y=c.andln(3)+d&3;m===3&&(m=-1),y===3&&(y=-1);var w;m&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-m:w=m):w=0,f[0].push(w);var x;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&m===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 Pe(l,"hex","le")}r.intFromLE=a}),_h=yn.getNAF,Mq=yn.getJSF,Mh=yn.assert;function go(t,e){this.type=t,this.p=new Pe(e.p,16),this.red=e.prime?Pe.red(e.prime):Pe.mont(this.p),this.zero=new Pe(0).toRed(this.red),this.one=new Pe(1).toRed(this.red),this.two=new Pe(2).toRed(this.red),this.n=e.n&&new Pe(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 da=go;go.prototype.point=function(){throw new Error("Not implemented")};go.prototype.validate=function(){throw new Error("Not implemented")};go.prototype._fixedNafMul=function(e,r){Mh(e.precomputed);var n=e._getDoubles(),i=_h(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];Mh(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};go.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 m=f-1,y=f;if(o[m]!==1||o[y]!==1){l[m]=_h(n[m],o[m],this._bitLength),l[y]=_h(n[y],o[y],this._bitLength),c=Math.max(l[m].length,c),c=Math.max(l[y].length,c);continue}var w=[r[m],null,null,r[y]];r[m].y.cmp(r[y].y)===0?(w[1]=r[m].add(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg())):r[m].y.cmp(r[y].y.redNeg())===0?(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].add(r[y].neg())):(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg()));var x=[-3,-1,-5,-7,0,7,5,1,3],b=Mq(n[m],n[y]);for(c=Math.max(b[0].length,c),l[m]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var $=0;f>=0;){var O=!0;for(u=0;u=0&&$++,_=_.dblp($),f<0)break;for(u=0;u0?d=a[u][H-1>>1]:H<0&&(d=a[u][-H-1>>1].neg()),d.type==="affine"?_=_.mixedAdd(d):_=_.add(d))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};In.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,m=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),m=m.neg()),[{a:u,b:d},{a:v,b:m}]};Nn.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}};Nn.prototype.pointFromX=function(e,r){e=new Pe(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)};Nn.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};Nn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};hr.prototype.isInfinity=function(){return this.inf};hr.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)};hr.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)};hr.prototype.getX=function(){return this.x.fromRed()};hr.prototype.getY=function(){return this.y.fromRed()};hr.prototype.mul=function(e){return e=new Pe(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)};hr.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)};hr.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)};hr.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)};hr.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};hr.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 wr(t,e,r,n){da.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Pe(0)):(this.x=new Pe(e,16),this.y=new Pe(r,16),this.z=new Pe(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}Cg(wr,da.BasePoint);Nn.prototype.jpoint=function(e,r,n){return new wr(this,e,r,n)};wr.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)};wr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};wr.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),m=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(v,m,y)};wr.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)),m=this.z.redMul(a);return this.curve.jpoint(d,v,m)};wr.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}};wr.prototype.inspect=function(){return this.isInfinity()?"":""};wr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var $d=zl(function(t,e){var r=e;r.base=da,r.short=Nq,r.mont=null,r.edwards=null}),Dd=zl(function(t,e){var r=e,n=yn.assert;function i(a){a.type==="short"?this.curve=new $d.short(a):a.type==="edwards"?this.curve=new $d.edwards(a):this.curve=new $d.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:rn.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:rn.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:rn.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:rn.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:rn.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:rn.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:rn.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:rn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function oo(t){if(!(this instanceof oo))return new oo(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=Zn.toArray(t.entropy,t.entropyEnc||"hex"),r=Zn.toArray(t.nonce,t.nonceEnc||"hex"),n=Zn.toArray(t.pers,t.persEnc||"hex");Eg(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var t9=oo;oo.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};oo.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=Zn.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var $q=yn.assert;function _0(t,e){if(t instanceof _0)return t;this._importDER(t,e)||($q(t.r&&t.s,"Signature without r or s"),this.r=new Pe(t.r,16),this.s=new Pe(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var M0=_0;function Dq(){this.place=0}function ov(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 S6(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)}_0.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=S6(r),n=S6(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];av(i,r.length),i=i.concat(r),i.push(2),av(i,n.length);var s=i.concat(n),o=[48];return av(o,s.length),o=o.concat(s),yn.encode(o,e)};var Oq=function(){throw new Error("unsupported")},r9=yn.assert;function _n(t){if(!(this instanceof _n))return new _n(t);typeof t=="string"&&(r9(Object.prototype.hasOwnProperty.call(Dd,t),"Unknown curve "+t),t=Dd[t]),t instanceof Dd.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 Lq=_n;_n.prototype.keyPair=function(e){return new Sg(this,e)};_n.prototype.keyFromPrivate=function(e,r){return Sg.fromPrivate(this,e,r)};_n.prototype.keyFromPublic=function(e,r){return Sg.fromPublic(this,e,r)};_n.prototype.genKeyPair=function(e){e||(e={});for(var r=new t9({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Oq(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Pe(2));;){var s=new Pe(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};_n.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};_n.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 Pe(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new t9({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Pe(1)),f=0;;f++){var u=i.k?i.k(f):new Pe(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(),m=v.umod(this.n);if(m.cmpn(0)!==0){var y=u.invm(this.n).mul(m.mul(r.getPrivate()).iadd(e));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(m)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new M0({r:m,s:y,recoveryParam:w})}}}}}};_n.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Pe(e,16)),n=this.keyFromPublic(n,i),r=new M0(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)};_n.prototype.recoverPubKey=function(t,e,r,n){r9((3&r)===r,"The recovery param is more than two bits"),e=new M0(e,n);var i=this.n,s=new Pe(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)};_n.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new M0(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 Bq=zl(function(t,e){var r=e;r.version="6.5.4",r.utils=yn,r.rand=function(){throw new Error("unsupported")},r.curve=$d,r.curves=Dd,r.ec=Lq,r.eddsa=null}),Fq=Bq.ec;const jq="signing-key/5.7.0",mp=new V(jq);let lv=null;function wi(){return lv||(lv=new Fq("secp256k1")),lv}class il{constructor(e){Z(this,"curve","secp256k1"),Z(this,"privateKey",le(e)),Xo(this.privateKey)!==32&&mp.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=wi().keyFromPrivate(ae(this.privateKey));Z(this,"publicKey","0x"+r.getPublic(!1,"hex")),Z(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),Z(this,"_isSigningKey",!0)}_addPoint(e){const r=wi().keyFromPublic(ae(this.publicKey)),n=wi().keyFromPublic(ae(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=wi().keyFromPrivate(ae(this.privateKey)),n=ae(e);n.length!==32&&mp.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return Ol({recoveryParam:i.recoveryParam,r:Et("0x"+i.r.toString(16),32),s:Et("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=wi().keyFromPrivate(ae(this.privateKey)),n=wi().keyFromPublic(ae(n9(e)));return Et("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function zq(t,e){const r=Ol(e),n={r:ae(r.r),s:ae(r.s)};return"0x"+wi().recoverPubKey(ae(t),n,r.recoveryParam).encode("hex",!1)}function n9(t,e){const r=ae(t);if(r.length===32){const n=new il(r);return e?"0x"+wi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?le(r):"0x"+wi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+wi().keyFromPublic(r).getPublic(!0,"hex"):le(r)}return mp.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Uq="transactions/5.7.0",Rr=new V(Uq);var A6;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(A6||(A6={}));function Ag(t){return t==="0x"?null:Ot(t)}function kr(t){return t==="0x"?x7:oe.from(t)}const Vq=[{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"}],qq={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Uo(t){const e=n9(t);return Ot(ir(bt(ir(e,1)),12))}function i9(t,e){return Uo(zq(ae(t),e))}function sn(t,e){const r=fs(oe.from(t).toHexString());return r.length>32&&Rr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function cv(t,e){return{address:Ot(t),storageKeys:(e||[]).map((r,n)=>(Xo(r)!==32&&Rr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Ul(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Rr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),cv(r[0],r[1])):cv(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return cv(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function s9(t){return Ul(t).map(e=>[e.address,e.storageKeys])}function o9(t,e){if(t.gasPrice!=null){const n=oe.from(t.gasPrice),i=oe.from(t.maxFeePerGas||0);n.eq(i)||Rr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[sn(t.chainId||0,"chainId"),sn(t.nonce||0,"nonce"),sn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),sn(t.maxFeePerGas||0,"maxFeePerGas"),sn(t.gasLimit||0,"gasLimit"),t.to!=null?Ot(t.to):"0x",sn(t.value||0,"value"),t.data||"0x",s9(t.accessList||[])];if(e){const n=Ol(e);r.push(sn(n.recoveryParam,"recoveryParam")),r.push(fs(n.r)),r.push(fs(n.s))}return qr(["0x02",bl(r)])}function a9(t,e){const r=[sn(t.chainId||0,"chainId"),sn(t.nonce||0,"nonce"),sn(t.gasPrice||0,"gasPrice"),sn(t.gasLimit||0,"gasLimit"),t.to!=null?Ot(t.to):"0x",sn(t.value||0,"value"),t.data||"0x",s9(t.accessList||[])];if(e){const n=Ol(e);r.push(sn(n.recoveryParam,"recoveryParam")),r.push(fs(n.r)),r.push(fs(n.s))}return qr(["0x01",bl(r)])}function Hq(t,e){o7(t,qq);const r=[];Vq.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=ae(le(a,l)),o.length&&a.length!==o.length&&a.length>0&&Rr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=fs(a),a.length>o.maxLength&&Rr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(le(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Rr.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!R0(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(le(n)),r.push("0x"),r.push("0x")),!e)return bl(r);const i=Ol(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&&Rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&Rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(le(s)),r.push(fs(ae(i.r))),r.push(fs(ae(i.s))),bl(r)}function k6(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Rr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),Hq(t,e);switch(t.type){case 1:return a9(t,e);case 2:return o9(t,e)}return Rr.throwError(`unsupported transaction type: ${t.type}`,V.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function l9(t,e,r){try{const n=kr(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Rr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Et(e[1],32),t.s=Et(e[2],32);try{const n=bt(r(t));t.from=i9(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function Gq(t){const e=xg(t.slice(1));e.length!==9&&e.length!==12&&Rr.throwArgumentError("invalid component count for transaction type: 2","payload",le(t));const r=kr(e[2]),n=kr(e[3]),i={type:2,chainId:kr(e[0]).toNumber(),nonce:kr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:kr(e[4]),to:Ag(e[5]),value:kr(e[6]),data:e[7],accessList:Ul(e[8])};return e.length===9||(i.hash=bt(t),l9(i,e.slice(9),o9)),i}function Wq(t){const e=xg(t.slice(1));e.length!==8&&e.length!==11&&Rr.throwArgumentError("invalid component count for transaction type: 1","payload",le(t));const r={type:1,chainId:kr(e[0]).toNumber(),nonce:kr(e[1]).toNumber(),gasPrice:kr(e[2]),gasLimit:kr(e[3]),to:Ag(e[4]),value:kr(e[5]),data:e[6],accessList:Ul(e[7])};return e.length===8||(r.hash=bt(t),l9(r,e.slice(8),a9)),r}function Kq(t){const e=xg(t);e.length!==9&&e.length!==6&&Rr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:kr(e[0]).toNumber(),gasPrice:kr(e[1]),gasLimit:kr(e[2]),to:Ag(e[3]),value:kr(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=oe.from(e[6]).toNumber()}catch{return r}if(r.r=Et(e[7],32),r.s=Et(e[8],32),oe.from(r.r).isZero()&&oe.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(le(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=bt(bl(i));try{r.from=i9(s,{r:le(r.r),s:le(r.s),recoveryParam:n})}catch{}r.hash=bt(t)}return r.type=null,r}function Yq(t){const e=ae(t);if(e[0]>127)return Kq(e);switch(e[0]){case 1:return Wq(e);case 2:return Gq(e)}return Rr.throwError(`unsupported transaction type: ${e[0]}`,V.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const Qq="contracts/5.7.0";var ra=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 Ht=new V(Qq);function Ih(t,e){return ra(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&Ht.throwArgumentError("invalid address or ENS name","name",r);try{return Ot(r)}catch{}t||Ht.throwError("a provider or signer is needed to resolve ENS names",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&Ht.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Od(t,e,r){return ra(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Od(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield Ih(t,e):r.type==="tuple"?yield Od(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>Od(t,n,r.arrayChildren))):Promise.reject(Ht.makeError("invalid value for array",V.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function I0(t,e,r){return ra(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=ar(r.pop())),Ht.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=qt({override:Ih(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>ra(this,void 0,void 0,function*(){return Ot(c.signer)!==c.override&&Ht.throwError("Contract with a Signer cannot override from",V.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=Ih(t.provider,n.from));const i=yield qt({args:Od(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:qt(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=oe.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=oe.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=oe.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=oe.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=oe.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=Ul(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=ae(s);for(let u=0;un[c]!=null);return l.length&&Ht.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,V.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function Jq(t,e){return function(...r){return I0(t,e,r)}}function Xq(t,e){const r=t.signer||t.provider;return function(...n){return ra(this,void 0,void 0,function*(){r||Ht.throwError("estimate require a provider or signer",V.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield I0(t,e,n);return yield r.estimateGas(i)})}}function Zq(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=Zo(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 c9(t,e,r){const n=t.signer||t.provider;return function(...i){return ra(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=ar(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 I0(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===V.errors.CALL_EXCEPTION&&(l.address=t.address,l.args=i,l.transaction=o),l}})}}function eH(t,e){return function(...r){return ra(this,void 0,void 0,function*(){t.signer||Ht.throwError("sending a transaction requires a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield I0(t,e,r),i=yield t.signer.sendTransaction(n);return Zq(t,i),i})}}function R6(t,e,r){return e.constant?c9(t,e,r):eH(t,e)}function f9(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 Wf{constructor(e,r){Z(this,"tag",e),Z(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 tH extends Wf{constructor(){super("error",null)}}class P6 extends Wf{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&Ht.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(f9(s),s),Z(this,"address",e),Z(this,"interface",r),Z(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=Dz(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class T6 extends Wf{constructor(e,r){super("*",{address:e}),Z(this,"address",e),Z(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 rH{constructor(e,r,n){Z(this,"interface",Ii(new.target,"getInterface")(r)),n==null?(Z(this,"provider",null),Z(this,"signer",null)):Ll.isSigner(n)?(Z(this,"provider",n.provider||null),Z(this,"signer",n)):xu.isProvider(n)?(Z(this,"provider",n),Z(this,"signer",null)):Ht.throwArgumentError("invalid signer or provider","signerOrProvider",n),Z(this,"callStatic",{}),Z(this,"estimateGas",{}),Z(this,"functions",{}),Z(this,"populateTransaction",{}),Z(this,"filters",{});{const o={};Object.keys(this.interface.events).forEach(a=>{const l=this.interface.events[a];Z(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?Z(this.filters,a,this.filters[l[0]]):Ht.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(Z(this,"_runningEvents",{}),Z(this,"_wrappedEmits",{}),e==null&&Ht.throwArgumentError("invalid contract address or ENS name","addressOrName",e),Z(this,"address",e),this.provider)Z(this,"resolvedAddress",Ih(this.provider,e));else try{Z(this,"resolvedAddress",Promise.resolve(Ot(e)))}catch{Ht.throwError("provider is required to use ENS name as contract address",V.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]){Ht.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&&Z(this,o,R6(this,a,!0)),this.functions[o]==null&&Z(this.functions,o,R6(this,a,!1)),this.callStatic[o]==null&&Z(this.callStatic,o,c9(this,a,!0)),this.populateTransaction[o]==null&&Z(this.populateTransaction,o,Jq(this,a)),this.estimateGas[o]==null&&Z(this.estimateGas,o,Xq(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&&Z(this,o,this[l])}catch{}this.functions[o]==null&&Z(this.functions,o,this.functions[l]),this.callStatic[o]==null&&Z(this.callStatic,o,this.callStatic[l]),this.populateTransaction[o]==null&&Z(this.populateTransaction,o,this.populateTransaction[l]),this.estimateGas[o]==null&&Z(this.estimateGas,o,this.estimateGas[l])})}static getContractAddress(e){return v7(e)}static getInterface(e){return x6.isInterface(e)?e:new x6(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"&&Ht.throwError("contract not deployed",V.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Ht.throwError("sending a transactions require a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=ar(e||{});return["from","to"].forEach(function(n){r[n]!=null&&Ht.throwError("cannot override "+n,V.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new wg(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Z(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return dp.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 tH);if(e==="event")return this._normalizeRunningEvent(new Wf("event",null));if(e==="*")return this._normalizeRunningEvent(new T6(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new P6(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 P6(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Wf(f9(r),r))}return this._normalizeRunningEvent(new T6(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=Zo(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||Ht.throwError("events require a provider or a signer with a provider",V.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=ar(i.filter);return typeof r=="string"&&We(r,32)?(n!=null&&Ht.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 nH extends rH{}class u9{constructor(e){Z(this,"alphabet",e),Z(this,"base",e.length),Z(this,"_alphabetMap",{}),Z(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=ae(Nh(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 w6(Kt([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",le(this.depth),this.parentFingerprint,Et(le(this.index),4),this.chainCode,this.privateKey!=null?Kt(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new bn(pa,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&~yc));const n=new Uint8Array(37);if(e&yc){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(ae(this.privateKey),1),r&&(r+="'")}else n.set(ae(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=ae(Th(Kf.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=id(oe.from(s).add(this.privateKey).mod(Oq)):l=new nl(le(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 bn(pa,a,l,this.fingerprint,id(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=yc)throw new Error("invalid path index - "+s);n=n._derive(yc+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=yc)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=ae(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=ae(Th(Kf.sha512,Lq,n));return new bn(pa,id(i.slice(0,32)),null,"0x00000000",id(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=xg(n),e=bg(i9(e,n),n),bn._fromSeed(Fq(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return bn._fromSeed(e,null)}static fromExtendedKey(e){const r=Wf.decode(e);(r.length!==82||w6(r.slice(0,78))!==e)&&_h.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=le(r.slice(5,9)),s=parseInt(le(r.slice(9,13)).substring(2),16),o=le(r.slice(13,45)),a=r.slice(45,78);switch(le(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new bn(pa,null,le(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new bn(pa,le(a.slice(1)),null,i,o,s,n,null)}return _h.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Fq(t,e){e||(e="");const r=Zt("mnemonic"+e,no.NFKD);return gg(Zt(t,no.NFKD),r,2048,64,"sha512")}function i9(t,e){e=xg(e),_h.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=ae(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=n9(o);if((ae(ra(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return le(n.slice(0,s/8))}function bg(t,e){if(e=xg(e),t=ae(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]&Bq(8-n)),n+=3);const i=t.length/4,s=ae(ra(t))[0]&n9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}const jq="random/5.7.0",dp=new V(jq);function zq(){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 E6=zq();let $d=E6.crypto||E6.msCrypto;(!$d||!$d.getRandomValues)&&(dp.warn("WARNING: Missing strong random number source"),$d={getRandomValues:function(t){return dp.throwError("no secure random source avaialble",V.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function Vc(t){(t<=0||t>1024||t%1||t!=t)&&dp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return $d.getRandomValues(e),ae(e)}var s9={exports:{}};(function(t,e){(function(r){function n(k){return parseInt(k)===k}function i(k){if(!n(k.length))return!1;for(var p=0;p255)return!1;return!0}function s(k,p){if(k.buffer&&ArrayBuffer.isView(k)&&k.name==="Uint8Array")return p&&(k.slice?k=k.slice():k=Array.prototype.slice.call(k)),k;if(Array.isArray(k)){if(!i(k))throw new Error("Array contains invalid value: "+k);return new Uint8Array(k)}if(n(k.length)&&i(k))return new Uint8Array(k);throw new Error("unsupported array-like object")}function o(k){return new Uint8Array(k)}function a(k,p,P,B,E){(B!=null||E!=null)&&(k.slice?k=k.slice(B,E):k=Array.prototype.slice.call(k,B,E)),p.set(k,P)}var l=function(){function k(P){var B=[],E=0;for(P=encodeURI(P);E191&&F<224?(B.push(String.fromCharCode((F&31)<<6|P[E+1]&63)),E+=2):(B.push(String.fromCharCode((F&15)<<12|(P[E+1]&63)<<6|P[E+2]&63)),E+=3)}return B.join("")}return{toBytes:k,fromBytes:p}}(),c=function(){function k(B){for(var E=[],F=0;F>4]+p[j&15])}return E.join("")}return{toBytes:k,fromBytes:P}}(),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],m=[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],b=[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],x=[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],S=[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],A=[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],$=[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],O=[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],H=[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 Y(k){for(var p=[],P=0;P>2,this._Ke[F][p%4]=E[p],this._Kd[k-F][p%4]=E[p];for(var j=0,z=B,W;z>16&255]<<24^d[W>>8&255]<<16^d[W&255]<<8^d[W>>24&255]^u[j]<<24,j+=1,B!=8)for(var p=1;p>8&255]<<8^d[W>>16&255]<<16^d[W>>24&255]<<24;for(var p=B/2+1;p>2,X=z%4,this._Ke[ne][X]=E[p],this._Kd[k-ne][X]=E[p++],z++}for(var ne=1;ne>24&255]^$[W>>16&255]^O[W>>8&255]^H[W&255]},Q.prototype.encrypt=function(k){if(k.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var p=this._Ke.length-1,P=[0,0,0,0],B=Y(k),E=0;E<4;E++)B[E]^=this._Ke[0][E];for(var F=1;F>24&255]^y[B[(E+1)%4]>>16&255]^w[B[(E+2)%4]>>8&255]^b[B[(E+3)%4]&255]^this._Ke[F][E];B=P.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Ke[p][E],j[4*E]=(d[B[E]>>24&255]^z>>24)&255,j[4*E+1]=(d[B[(E+1)%4]>>16&255]^z>>16)&255,j[4*E+2]=(d[B[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(d[B[(E+3)%4]&255]^z)&255;return j},Q.prototype.decrypt=function(k){if(k.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var p=this._Kd.length-1,P=[0,0,0,0],B=Y(k),E=0;E<4;E++)B[E]^=this._Kd[0][E];for(var F=1;F>24&255]^S[B[(E+3)%4]>>16&255]^A[B[(E+2)%4]>>8&255]^_[B[(E+1)%4]&255]^this._Kd[F][E];B=P.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Kd[p][E],j[4*E]=(v[B[E]>>24&255]^z>>24)&255,j[4*E+1]=(v[B[(E+3)%4]>>16&255]^z>>16)&255,j[4*E+2]=(v[B[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(v[B[(E+1)%4]&255]^z)&255;return j};var re=function(k){if(!(this instanceof re))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Q(k)};re.prototype.encrypt=function(k){if(k=s(k),k.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=o(k.length),P=o(16),B=0;B=0;--p)this._counter[p]=k%256,k=k>>8},R.prototype.setBytes=function(k){if(k=s(k,!0),k.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=k},R.prototype.increment=function(){for(var k=15;k>=0;k--)if(this._counter[k]===255)this._counter[k]=0;else{this._counter[k]++;break}};var M=function(k,p){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",p instanceof R||(p=new R(p)),this._counter=p,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Q(k)};M.prototype.encrypt=function(k){for(var p=s(k,!0),P=0;P16)throw new Error("PKCS#7 padding byte out of range");for(var P=k.length-p,B=0;B=64;){let L=b,k=x,p=S,P=A,B=_,E=D,F=$,j=O,z,W,ne,X,ee;for(W=0;W<16;W++)ne=T+W*4,H[W]=(M[ne]&255)<<24|(M[ne+1]&255)<<16|(M[ne+2]&255)<<8|M[ne+3]&255;for(W=16;W<64;W++)z=H[W-2],X=(z>>>17|z<<32-17)^(z>>>19|z<<32-19)^z>>>10,z=H[W-15],ee=(z>>>7|z<<32-7)^(z>>>18|z<<32-18)^z>>>3,H[W]=(X+H[W-7]|0)+(ee+H[W-16]|0)|0;for(W=0;W<64;W++)X=(((B>>>6|B<<32-6)^(B>>>11|B<<32-11)^(B>>>25|B<<32-25))+(B&E^~B&F)|0)+(j+(w[W]+H[W]|0)|0)|0,ee=((L>>>2|L<<32-2)^(L>>>13|L<<32-13)^(L>>>22|L<<32-22))+(L&k^L&p^k&p)|0,j=F,F=E,E=B,B=P+X|0,P=p,p=k,k=L,L=X+ee|0;b=b+L|0,x=x+k|0,S=S+p|0,A=A+P|0,_=_+B|0,D=D+E|0,$=$+F|0,O=O+j|0,T+=64,N-=64}}Y(y);let Q,re=y.length%64,I=y.length/536870912|0,h=y.length<<3,C=re<56?56:120,R=y.slice(y.length-re,y.length);for(R.push(128),Q=re+1;Q>>24&255),R.push(I>>>16&255),R.push(I>>>8&255),R.push(I>>>0&255),R.push(h>>>24&255),R.push(h>>>16&255),R.push(h>>>8&255),R.push(h>>>0&255),Y(R),[b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,$>>>24&255,$>>>16&255,$>>>8&255,$>>>0&255,O>>>24&255,O>>>16&255,O>>>8&255,O>>>0&255]}function s(y,w,b){y=y.length<=64?y:i(y);const x=64+w.length+4,S=new Array(x),A=new Array(64);let _,D=[];for(_=0;_<64;_++)S[_]=54;for(_=0;_=x-4;O--){if(S[O]++,S[O]<=255)return;S[O]=0}}for(;b>=32;)$(),D=D.concat(i(A.concat(i(S)))),b-=32;return b>0&&($(),D=D.concat(i(A.concat(i(S))).slice(0,b))),D}function o(y,w,b,x,S){let A;for(f(y,(2*b-1)*16,S,0,16),A=0;A<2*b;A++)c(y,A*16,S,16),l(S,x),f(S,0,y,w+A*16,16);for(A=0;A>>32-w}function l(y,w){f(y,0,w,0,16);for(let b=8;b>0;b-=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 b=0;b<16;++b)y[b]+=w[b]}function c(y,w,b,x){for(let S=0;S=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,b,x,S,A,_){if(b=d(b,"N"),x=d(x,"r"),S=d(S,"p"),A=d(A,"dkLen"),b===0||b&b-1)throw new Error("N must be power of 2");if(b>2147483647/128/x)throw new Error("N too large");if(x>2147483647/128/S)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,S*128*x);const $=new Uint32Array(S*32*x);for(let B=0;B<$.length;B++){const E=B*4;$[B]=(D[E+3]&255)<<24|(D[E+2]&255)<<16|(D[E+1]&255)<<8|(D[E+0]&255)<<0}const O=new Uint32Array(64*x),H=new Uint32Array(32*x*b),Y=32*x,Q=new Uint32Array(16),re=new Uint32Array(16),I=S*b*2;let h=0,C=null,R=!1,M=0,T=0,N,L;const k=_?parseInt(1e3/x):4294967295,p=typeof setImmediate<"u"?setImmediate:setTimeout,P=function(){if(R)return _(new Error("cancelled"),h/I);let B;switch(M){case 0:L=T*32*x,f($,L,O,0,Y),M=1,N=0;case 1:B=b-N,B>k&&(B=k);for(let F=0;Fk&&(B=k);for(let F=0;F>0&255),D.push($[F]>>8&255),D.push($[F]>>16&255),D.push($[F]>>24&255);const E=s(y,D,A);return _&&_(null,1,E),E}_&&p(P)};if(!_)for(;;){const B=P();if(B!=null)return B}P()}const m={scrypt:function(y,w,b,x,S,A,_){return new Promise(function(D,$){let O=0;_&&_(0),v(y,w,b,x,S,A,function(H,Y,Q){if(H)$(H);else if(Q)_&&O!==1&&_(1),D(new Uint8Array(Q));else if(_&&Y!==O)return O=Y,_(Y)})})},syncScrypt:function(y,w,b,x,S,A){return new Uint8Array(v(y,w,b,x,S,A))}};t.exports=m})()})(f9);var Gq=f9.exports;const Eg=lo(Gq);var Wq=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 hp=new V(o9);function C6(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class Kq extends fa{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function Yq(t,e,r){if(Gt(t,"crypto/cipher")==="aes-128-ctr"){const i=zo(Gt(t,"crypto/cipherparams/iv")),s=new Ii.Counter(i),o=new Ii.ModeOfOperation.ctr(e,s);return ae(o.decrypt(r))}return null}function u9(t,e){const r=zo(Gt(t,"crypto/ciphertext"));if(le(bt(Kt([e.slice(16,32),r]))).substring(2)!==Gt(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=Yq(t,e.slice(0,16),r);i||hp.throwError("unsupported cipher",V.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=jo(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Ot(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:le(i)};if(Gt(t,"x-ethers/version")==="0.1"){const l=zo(Gt(t,"x-ethers/mnemonicCiphertext")),c=zo(Gt(t,"x-ethers/mnemonicCounter")),f=new Ii.Counter(c),u=new Ii.ModeOfOperation.ctr(s,f),d=Gt(t,"x-ethers/path")||Yf,v=Gt(t,"x-ethers/locale")||"en",m=ae(u.decrypt(l));try{const y=bg(m,v),w=bn.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!==V.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new Kq(a)}function d9(t,e,r,n,i){return ae(gg(t,e,r,n,i))}function Qq(t,e,r,n,i){return Promise.resolve(d9(t,e,r,n,i))}function h9(t,e,r,n,i){const s=wg(e),o=Gt(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return hp.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=zo(Gt(t,"crypto/kdfparams/salt")),c=parseInt(Gt(t,"crypto/kdfparams/n")),f=parseInt(Gt(t,"crypto/kdfparams/r")),u=parseInt(Gt(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(Gt(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=zo(Gt(t,"crypto/kdfparams/salt"));let c=null;const f=Gt(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(Gt(t,"crypto/kdfparams/c")),d=parseInt(Gt(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return hp.throwArgumentError("unsupported key-derivation function","kdf",o)}function Jq(t,e){const r=JSON.parse(t),n=h9(r,e,d9,Eg.syncScrypt);return u9(r,n)}function Xq(t,e,r){return Wq(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield h9(n,e,Qq,Eg.scrypt,r);return u9(n,i)})}function Zq(t,e,r,n){try{if(Ot(t.address)!==jo(t.privateKey))throw new Error("address/privateKey mismatch");if(C6(t)){const w=t.mnemonic;if(bn.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Yf).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=ae(t.privateKey),s=wg(e);let o=null,a=null,l=null;if(C6(t)){const w=t.mnemonic;o=ae(i9(w.phrase,w.locale||"en")),a=w.path||Yf,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=ae(r.salt):f=Vc(32);let u=null;if(r.iv){if(u=ae(r.iv),u.length!==16)throw new Error("invalid iv")}else u=Vc(16);let d=null;if(r.uuid){if(d=ae(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=Vc(16);let v=1<<17,m=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(m=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),Eg.scrypt(s,f,v,m,y,64,n).then(w=>{w=ae(w);const b=w.slice(0,16),x=w.slice(16,32),S=w.slice(32,64),A=new Ii.Counter(u),_=new Ii.ModeOfOperation.ctr(b,A),D=ae(_.encrypt(i)),$=bt(Kt([x,D])),O={address:t.address.substring(2).toLowerCase(),id:Vq(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:le(u).substring(2)},ciphertext:le(D).substring(2),kdf:"scrypt",kdfparams:{salt:le(f).substring(2),n:v,dklen:32,p:y,r:m},mac:$.substring(2)}};if(o){const H=Vc(16),Y=new Ii.Counter(H),Q=new Ii.ModeOfOperation.ctr(S,Y),re=ae(Q.encrypt(o)),I=new Date,h=I.getUTCFullYear()+"-"+pc(I.getUTCMonth()+1,2)+"-"+pc(I.getUTCDate(),2)+"T"+pc(I.getUTCHours(),2)+"-"+pc(I.getUTCMinutes(),2)+"-"+pc(I.getUTCSeconds(),2)+".0Z";O["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+O.address,mnemonicCounter:le(H).substring(2),mnemonicCiphertext:le(re).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(O)})}function eH(t,e,r){if(l9(t)){r&&r(0);const n=a9(t,e);return r&&r(1),Promise.resolve(n)}return c9(t)?Xq(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function tH(t,e){if(l9(t))return a9(t,e);if(c9(t))return Jq(t,e);throw new Error("invalid JSON wallet")}const rH="wallet/5.7.0";var S6=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 ma=new V(rH);function nH(t){return t!=null&&We(t.privateKey,32)&&t.address!=null}function iH(t){const e=t.mnemonic;return e&&e.phrase}class Xn extends Ol{constructor(e,r){if(super(),nH(e)){const n=new nl(e.privateKey);if(Z(this,"_signingKey",()=>n),Z(this,"address",jo(this.publicKey)),this.address!==Ot(e.address)&&ma.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),iH(e)){const i=e.mnemonic;Z(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Yf,locale:i.locale||"en"}));const s=this.mnemonic,o=bn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);jo(o.privateKey)!==this.address&&ma.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Z(this,"_mnemonic",()=>null)}else{if(nl.isSigningKey(e))e.curve!=="secp256k1"&&ma.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Z(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new nl(e);Z(this,"_signingKey",()=>n)}Z(this,"_mnemonic",()=>null),Z(this,"address",jo(this.publicKey))}r&&!pu.isProvider(r)&&ma.throwArgumentError("invalid provider","provider",r),Z(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 Xn(this,e)}signTransaction(e){return qt(e).then(r=>{r.from!=null&&(Ot(r.from)!==this.address&&ma.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(bt(p6(r)));return p6(r,n)})}signMessage(e){return S6(this,void 0,void 0,function*(){return q3(this._signingKey().signDigest(lU(e)))})}_signTypedData(e,r,n){return S6(this,void 0,void 0,function*(){const i=yield Or.resolveNames(e,r,n,s=>(this.provider==null&&ma.throwError("cannot resolve ENS names without a provider",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return q3(this._signingKey().signDigest(Or.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={}),Zq(this,e,r,n)}static createRandom(e){let r=Vc(16);e||(e={}),e.extraEntropy&&(r=ae(ir(bt(Kt([r,e.extraEntropy])),0,16)));const n=bg(r,e.locale);return Xn.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return eH(e,r,n).then(i=>new Xn(i))}static fromEncryptedJsonSync(e,r){return new Xn(tH(e,r))}static fromMnemonic(e,r,n){return r||(r=Yf),new Xn(bn.fromMnemonic(e,null,n).derivePath(r))}}const sH="networks/5.7.1",A6=new V(sH);function oH(t){return t&&typeof t.renetwork=="function"}function es(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 es(r)},e}function Mh(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return Mh(t,n)},r}const k6={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:es("homestead")},R6={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:es("ropsten")},P6={chainId:63,name:"classicMordor",_defaultProvider:Mh("https://www.ethercluster.com/mordor","classicMordor")},sd={unspecified:{chainId:0,name:"unspecified"},homestead:k6,mainnet:k6,morden:{chainId:2,name:"morden"},ropsten:R6,testnet:R6,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:es("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:es("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:es("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:es("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Mh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:P6,classicTestnet:P6,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Mh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:es("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:es("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 aH(t){if(t==null)return null;if(typeof t=="number"){for(const n in sd){const i=sd[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=sd[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=sd[t.name];if(!e)return typeof t.chainId!="number"&&A6.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&A6.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(oH(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 lH="web/5.7.1";var cH=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 fH(t,e){return cH(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:ae(new Uint8Array(i))}})}var uH=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 V(lH);function T6(t){return new Promise(e=>{setTimeout(e,t)})}function ks(t,e){if(t==null)return null;if(typeof t=="string")return t;if(w0(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return yu(t)}catch{}return le(t)}return t}function dH(t){return Zt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function hH(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;Hn.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;Hn.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)&&Hn.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(u=t.timeout),t.headers)for(const b in t.headers)a[b.toLowerCase()]={key:b,value:String(t.headers[b])},["if-none-match","if-modified-since"].indexOf(b.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&Hn.throwError("basic authentication requires a secure https url",V.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const b=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+y7(Zt(b))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=ar(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=l?l.match(d):null;if(v)try{const b={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?v7(v[3]):dH(v[3])};let x=b.body;return r&&(x=r(b.body,b)),Promise.resolve(x)}catch(b){Hn.throwError("processing response error",V.errors.SERVER_ERROR,{body:ks(v[1],v[2]),error:b,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 m={};Object.keys(a).forEach(b=>{const x=a[b];m[x.key]=x.value}),c.headers=m;const y=function(){let b=null;return{promise:new Promise(function(A,_){u&&(b=setTimeout(()=>{b!=null&&(b=null,_(Hn.makeError("timeout",V.errors.TIMEOUT,{requestBody:ks(c.body,m["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){b!=null&&(clearTimeout(b),b=null)}}}(),w=function(){return uH(this,void 0,void 0,function*(){for(let b=0;b=300)&&(y.cancel(),Hn.throwError("bad response",V.errors.SERVER_ERROR,{status:x.statusCode,headers:x.headers,body:ks(S,x.headers?x.headers["content-type"]:null),requestBody:ks(c.body,m["content-type"]),requestMethod:c.method,url:l})),r)try{const A=yield r(S,x);return y.cancel(),A}catch(A){if(A.throttleRetry&&b{let a=null;if(s!=null)try{a=JSON.parse(yu(s))}catch(l){Hn.throwError("invalid JSON",V.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}:ar(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=ar(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return hH(t,i,n)}function qc(t,e){return e||(e={}),e=ar(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 Ih="qpzry9x8gf2tvdw0s3jn54khce6mua7l",vp={};for(var od=0;od>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 v9(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=il(e)^n>>5}for(e=il(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=v9(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=il(n)^o,i+=Ih.charAt(o)}for(s=0;s<6;++s)n=il(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=Ih.charAt(a)}return i}function y9(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=v9(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 yH(){var t=y9.apply(null,arguments);if(typeof t=="object")return t}function pH(t){var e=y9.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function R0(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:ge.allowNull(this.accessList.bind(this),null),blockHash:ge.allowNull(o,null),blockNumber:ge.allowNull(l,null),transactionIndex:ge.allowNull(l,null),confirmations:ge.allowNull(l,null),from:r,gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),gasLimit:n,to:ge.allowNull(r,null),value:n,nonce:l,data:s,r:ge.allowNull(this.uint256),s:ge.allowNull(this.uint256),v:ge.allowNull(l),creates:ge.allowNull(r,null),raw:ge.allowNull(s)},e.transactionRequest={from:ge.allowNull(r),nonce:ge.allowNull(l),gasLimit:ge.allowNull(n),gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),to:ge.allowNull(r),value:ge.allowNull(n),data:ge.allowNull(f),type:ge.allowNull(l),accessList:ge.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:ge.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:ge.allowNull(this.address,null),from:ge.allowNull(this.address,null),contractAddress:ge.allowNull(r,null),transactionIndex:l,root:ge.allowNull(a),gasUsed:n,logsBloom:ge.allowNull(s),blockHash:o,transactionHash:o,logs:ge.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:ge.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:ge.allowNull(n),status:ge.allowNull(l),type:c},e.block={hash:ge.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:ge.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:ge.allowNull(r),extraData:s,transactions:ge.allowNull(ge.arrayOf(o)),baseFeePerGas:ge.allowNull(n)},e.blockWithTransactions=ar(e.block),e.blockWithTransactions.transactions=ge.allowNull(ge.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:ge.allowNull(i,void 0),toBlock:ge.allowNull(i,void 0),blockHash:ge.allowNull(o,void 0),address:ge.allowNull(r,void 0),topics:ge.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:ge.allowNull(l),blockHash:ge.allowNull(o),transactionIndex:l,removed:ge.allowNull(this.boolean.bind(this)),address:r,data:ge.allowFalsish(s,"0x"),topics:ge.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return zl(e||[])}number(e){return e==="0x"?0:oe.from(e).toNumber()}type(e){return e==="0x"||e==null?0:oe.from(e).toNumber()}bigNumber(e){return oe.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),We(e))?e.toLowerCase():mc.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 Ot(e)}callAddress(e){if(!We(e,32))return null;const r=Ot(ir(e,12));return r===l7?null:r}contractAddress(e){return i7(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"||We(e))return lg(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return Jo(n)!==32?mc.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=oe.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!We(e))throw new Error("invalid uint256");return Et(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=ge.check(r,e);return i._difficulty=n==null?null:oe.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return ge.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&oe.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=ge.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;We(n)&&(n=oe.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),We(n)&&(n=oe.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 xq(e)}receiptLog(e){return ge.check(this.formats.receiptLog,e)}receipt(e){const r=ge.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=oe.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&mc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):mc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&mc.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 ge.check(this.formats.filter,e)}filterLog(e){return ge.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 Re=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 Ne=new V(Sg),EH=10;function M6(t){return t==null?"null":(Jo(t)!==32&&Ne.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function I6(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[M6(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return M6(e)}).join("&")}function CH(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 ga(t){if(typeof t=="string"){if(t=t.toLowerCase(),Jo(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+I6(t);if(CU.isForkEvent(t))throw Ne.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+I6(t.topics||[])}throw new Error("invalid event - "+t)}function gc(){return new Date().getTime()}function N6(t){return new Promise(e=>{setTimeout(e,t)})}const SH=["block","network","pending","poll"];let AH=class{constructor(e,r,n){Z(this,"tag",e),Z(this,"listener",r),Z(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=CH(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||SH.indexOf(this.tag)>=0}};const kH={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 sv(t){return Et(oe.from(t).toHexString(),32)}function $6(t){return Wf.encode(Kt([t,ir(ra(ra(t)),0,4)]))}const p9=new RegExp("^(ipfs)://(.*)$","i"),D6=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),p9,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Dd(t,e){try{return yu(Qf(t,e))}catch{}return null}function Qf(t,e){if(t==="0x")return null;const r=oe.from(ir(t,e,e+32)).toNumber(),n=oe.from(ir(t,r,r+32)).toNumber();return ir(t,r+32,r+32+n)}function ov(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Ne.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function O6(t){const e=ae(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 RH(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function m9(t){const e=[];let r=0;for(let n=0;noe.from(e).eq(1)).catch(e=>{if(e.code===V.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return Re(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:qr([e,_d(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=qr(["0x9061b923",m9([oU(this.name),n.data])]));try{let s=yield this.provider.call(n);return ae(s).length%32===4&&Ne.throwError("resolver threw error",V.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=Qf(s,0)),s}catch(s){if(s.code===V.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return Re(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Qf(n,0):null})}_getAddress(e,r){const n=kH[String(e)];if(n==null&&Ne.throwError(`unsupported coin type: ${e}`,V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=ae(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 $6(Kt([[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 $6(Kt([[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=_6.toWords(i.slice(2));return a.unshift(o),_6.encode(n.prefix,a)}}return null}getAddress(e){return Re(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===Sz?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===V.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",sv(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Ne.throwError("invalid or unsupported coin data",V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Re(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 Ne.throwError("invalid or unsupported content hash data",V.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Re(this,void 0,void 0,function*(){let r=Zt(e);r=Kt([sv(64),sv(r.length),r]),r.length%32!==0&&(r=Kt([r,Et("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",le(r));return n==null||n==="0x"?null:yu(n)})}}let av=null,PH=1;class TH extends pu{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),Z(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=Mi(new.target,"getNetwork")(e);r?(Z(this,"_network",r),this.emit("network",r,null)):Ne.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Re(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||Ne.throwError("no network detected",V.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:Z(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return qc(()=>this._ready().then(e=>e,e=>{if(!(e.code===V.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return av==null&&(av=new ge),av}static getNetwork(e){return aH(e??"homestead")}ccipReadFetch(e,r,n){return Re(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 Cg({url:c,errorPassThrough:!0},f,(v,m)=>(v.status=m.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Ne.throwError(`response not found during CCIP fetch: ${d}`,V.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Ne.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,V.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return Re(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(gc()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=gc(),n=qt({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=gc();return i=oe.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Re(this,void 0,void 0,function*(){const e=PH++,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)Ne.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Ne.makeError("network block skew detected",V.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 Re(this,void 0,void 0,function*(){return Ne.throwError("provider does not support network detection",V.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Re(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 N6(0),this._network;const n=Ne.makeError("underlying network changed",V.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=gc();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 Re(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return Re(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 m=y=>Re(this,void 0,void 0,function*(){c||(yield N6(1e3),this.getTransactionCount(i.from).then(w=>Re(this,void 0,void 0,function*(){if(!c){if(w<=i.nonce)d=y;else{{const b=yield this.getTransaction(e);if(b&&b.blockNumber!=null)return}for(v==null&&(v=d-3,v{c||this.once("block",m)}))});if(c)return;this.once("block",m),l.push(()=>{this.removeListener("block",m)})}if(typeof n=="number"&&n>0){const d=setTimeout(()=>{f()||a(Ne.makeError("timeout exceeded",V.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Re(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return oe.from(e)}catch(r){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return oe.from(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return oe.from(i).toNumber()}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return le(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>lg(o))}),s=yield this.perform("getStorageAt",i);try{return le(s)}catch(o){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&Jo(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Ne.throwError("Transaction hash mismatch from Provider.sendTransaction.",V.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>Re(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&&Ne.throwError("transaction failed",V.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>le(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 Re(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?oe.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?le(s):null))}),this.formatter.transactionRequest(yield qt(n))})}_getFilter(e){return Re(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 qt(r))})}_call(e,r,n){return Re(this,void 0,void 0,function*(){n>=EH&&Ne.throwError("CCIP read exceeded maximum redirections",V.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"&&Jo(s)%32===4)try{const o=ir(s,4),a=ir(o,0,32);oe.from(a).eq(i)||Ne.throwError("CCIP Read sender did not match",V.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:s});const l=[],c=oe.from(ir(o,32,64)).toNumber(),f=oe.from(ir(o,c,c+32)).toNumber(),u=ir(o,c+32);for(let b=0;bRe(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 Re(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return qc(()=>Re(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 Re(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return qc(()=>Re(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 Re(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield qt({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),ge.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Re(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Re(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Ne.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 Re(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 L6(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return Re(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Ne.throwError("network does not support ENS",V.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+_d(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Re(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(We(e))throw n}typeof e!="string"&&Ne.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Re(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=Dd(yield this.call({to:n,data:"0x691f3431"+_d(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Re(this,void 0,void 0,function*(){let r=null;if(We(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new L6(this,o,s);try{const a=yield r.getAvatar();if(a)return a.url}catch(a){if(a.code!==V.errors.CALL_EXCEPTION)throw a}try{const a=Dd(yield this.call({to:o,data:"0x691f3431"+_d(s).substring(2)}),0);r=yield this.getResolver(a)}catch(a){if(a.code!==V.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 Ne.throwError(e+" not implemented",V.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 AH(ga(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=ga(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=ga(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=ga(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=ga(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=ga(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var Xi=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 Jt=new V(Sg),_H=["call","estimateGas"];function df(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=We(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=df(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return df(JSON.parse(t),e)}catch{}return null}function g9(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=df(e,!0);if(s)return s.data;Jt.throwError("missing revert data in call exception; Transaction reverted without a reason string",V.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let s=df(e.body,!1);s==null&&(s=df(e,!1)),s&&Jt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===V.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)&&Jt.throwError("insufficient funds for intrinsic transaction cost",V.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&Jt.throwError("nonce has already been used",V.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Jt.throwError("replacement fee too low",V.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&Jt.throwError("legacy pre-eip-155 transactions not supported",V.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),_H.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Jt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function B6(t){return new Promise(function(e){setTimeout(e,t)})}function MH(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 xc(t){return t&&t.toLowerCase()}const yp={};class x9 extends Ol{constructor(e,r,n){if(super(),e!==yp)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Z(this,"provider",r),n==null&&(n=0),typeof n=="string"?(Z(this,"_address",this.provider.formatter.address(n)),Z(this,"_index",null)):typeof n=="number"?(Z(this,"_index",n),Z(this,"_address",null)):Jt.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return Jt.throwError("cannot alter JSON-RPC Signer connection",V.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new IH(yp,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&&Jt.throwError("unknown account #"+this._index,V.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=ar(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=ar(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>Xi(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&Jt.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),qt({tx:qt(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&Jt.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)&&Jt.throwError("user rejected transaction",V.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),g9("sendTransaction",o,s)))})}signTransaction(e){return Jt.throwError("signing transactions is unsupported",V.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Xi(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 qc(()=>Xi(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 Xi(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",[le(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return Xi(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(),le(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return Xi(this,void 0,void 0,function*(){const i=yield Or.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(Or.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:r,value:i.value}}),o}})}unlock(e){return Xi(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class IH extends x9{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 NH={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let $H=class extends TH{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=Mi(this.constructor,"defaultUrl")()),typeof e=="string"?Z(this,"connection",Object.freeze({url:e})):Z(this,"connection",Object.freeze(ar(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 Xi(this,void 0,void 0,function*(){yield B6(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=Mi(this.constructor,"getNetwork");try{return r(oe.from(e).toNumber())}catch(n){return Jt.throwError("could not detect network",V.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return Jt.throwError("could not detect network",V.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new x9(yp,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:Xo(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=Cg(this.connection,JSON.stringify(n),MH).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",[xc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[xc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[xc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[xc(r.address),Et(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",[Mi(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[Mi(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=xc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return Xi(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&oe.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=ar(r),r.transaction=ar(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&Jt.throwError(e+" not implemented",V.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return g9(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 B6(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=ar(NH);if(r)for(const s in r)r[s]&&(n[s]=!0);QA(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=lg(oe.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=le(e[s]))}),e.accessList&&(i.accessList=zl(e.accessList)),i}};const DH="units/5.7.0",OH=new V(DH),b9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function w9(t,e){if(typeof e=="string"){const r=b9.indexOf(e);r!==-1&&(e=3*r)}return Pd(t,e??18)}function Ag(t,e){if(typeof t!="string"&&OH.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=b9.indexOf(e);r!==-1&&(e=3*r)}return pi(t,e??18)}function LH(t){return w9(t,18)}function BH(t){return Ag(t,18)}function pp(){return pp=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(jH(t,!0,e),t),UH=t=>zH(VH(t)),VH=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})):"",qH=t=>kg("https://${network}-indexer.sequence.app",{network:t}),HH=t=>kg("https://${network}-relayer.sequence.app",{network:t}),GH=t=>kg("https://nodes.sequence.app/${network}",{network:t}),er=t=>{const e=GH(t);return{rpcUrl:e,relayer:{url:HH(t),provider:{url:e}},indexerUrl:qH(t)}};UH([Tt({},Ut[ue.POLYGON],er("polygon"),{isDefaultChain:!0,isAuthChain:!0}),Tt({},Ut[ue.MAINNET],er("mainnet")),Tt({},Ut[ue.BSC],er("bsc")),Tt({},Ut[ue.AVALANCHE],er("avalanche")),Tt({},Ut[ue.ARBITRUM],er("arbitrum")),Tt({},Ut[ue.ARBITRUM_NOVA],er("arbitrum-nova")),Tt({},Ut[ue.OPTIMISM],er("optimism")),Tt({},Ut[ue.POLYGON_ZKEVM],er("polygon-zkevm")),Tt({},Ut[ue.GNOSIS],er("gnosis")),Tt({},Ut[ue.RINKEBY],er("rinkeby"),{disabled:!0}),Tt({},Ut[ue.GOERLI],er("goerli")),Tt({},Ut[ue.SEPOLIA],er("sepolia")),Tt({},Ut[ue.POLYGON_MUMBAI],er("mumbai")),Tt({},Ut[ue.BSC_TESTNET],er("bsc-testnet")),Tt({},Ut[ue.ARBITRUM_GOERLI],er("arbitrum-goerli")),Tt({},Ut[ue.BASE],er("base")),Tt({},Ut[ue.BASE_GOERLI],er("base-goerli")),Tt({},Ut[ue.HOMEVERSE_TESTNET],er("homeverse-testnet")),Tt({},Ut[ue.AVALANCHE_TESTNET],er("avalanche-testnet")),Tt({},Ut[ue.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),Tt({},Ut[ue.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]);const F6=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function j6(){const e=up.en,r=F6[Math.floor(Math.random()*F6.length)],n=e.getWord(Math.floor(Math.random()*2048)),i=e.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function WH({onSuccess:t}){const[e,r]=g.useState(""),[n,i]=g.useState(),[s,o]=g.useState(!1),[a,l]=g.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await It.email.initiateAuth({email:u});l(d),r(u)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const{idToken:d}=await It.email.finalizeAuth({instance:a,answer:u,email:e});t(d)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function KH(){var y;const[t,e]=g.useState(""),r=g.useRef(null),n=(y=r.current)==null?void 0:y.validity.valid,[i,s]=g.useState(!1),[o,a]=g.useState([]),[l,c]=g.useState(!1),{inProgress:f,loading:u,initiateAuth:d,sendChallengeAnswer:v}=WH({onSuccess:async w=>{c(!0);const b=await It.signIn({idToken:w},j6());console.log(`Wallet address: ${b}`),ol.navigate("/")}});g.useEffect(()=>{(async()=>await It.isSignedIn()&&ol.navigate("/"))()},[]);const m=async w=>{const b=await It.signIn({idToken:w.credential},j6());console.log(`Wallet address: ${b}`),ol.navigate("/")};return U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"16",children:U.jsx(VA,{})}),U.jsx(ie,{children:U.jsx(Le,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),v?U.jsxs(ie,{flexDirection:"column",children:[U.jsx(ie,{marginTop:"6",children:U.jsx(Le,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),U.jsx(ie,{marginTop:"4",children:U.jsx(UA,{value:o,digits:6,onChange:a})}),U.jsx(ie,{gap:"2",marginY:"4",children:u||l?U.jsx(ps,{}):U.jsx(Yr,{variant:"primary",disabled:o.includes(""),label:"Verify",onClick:()=>v(o.join("")),"data-id":"verifyButton"})})]}):U.jsxs(ie,{marginTop:"5",marginBottom:"4",children:[U.jsxs(Le,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",U.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),U.jsxs(ie,{marginTop:"6",children:[U.jsx(gr,{name:"email",type:"email",onChange:w=>{e(w.target.value)},ref:r,onKeyDown:w=>{t&&w.key==="Enter"&&d(t)},onBlur:()=>s(!!t&&!n),value:t,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),i&&U.jsx(Le,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:u?U.jsx(ps,{}):U.jsx(Yr,{variant:"primary",disabled:!n,label:"Continue",onClick:()=>d(t),"data-id":"continueButton"})})]}),U.jsx("hr",{}),!f&&U.jsxs(U.Fragment,{children:[U.jsx(ie,{children:U.jsx(Le,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),U.jsx(Oj,{onSuccess:m,shape:"circle",width:230})]})]})}function YH(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 Rg=t=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},Pg=t=>({httpHandler:t.httpHandler()});var z6;(function(t){t.HEADER="header",t.QUERY="query"})(z6||(z6={}));var U6;(function(t){t.HEADER="header",t.QUERY="query"})(U6||(U6={}));var Jf;(function(t){t.HTTP="http",t.HTTPS="https"})(Jf||(Jf={}));var Nh;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Nh||(Nh={}));var V6;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(V6||(V6={}));const so="__smithy_context";var q6;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(q6||(q6={}));var H6;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(H6||(H6={}));class Mn{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 Mn({...this,headers:{...this.headers}});return e.query&&(e.query=QH(e.query)),e}}function QH(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class $h{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 JH=t=>e=>async r=>{if(!Mn.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)},XH={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Tg=t=>({applyToStack:e=>{e.add(JH(t),XH)}}),ZH=()=>(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:m,...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:m}),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}},eG={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},_g=t=>({applyToStack:e=>{e.add(ZH(),eG)}}),G6="X-Amzn-Trace-Id",tG="AWS_LAMBDA_FUNCTION_NAME",rG="_X_AMZN_TRACE_ID",nG=t=>e=>async r=>{const{request:n}=r;if(!Mn.isInstance(n)||t.runtime!=="node"||n.headers.hasOwnProperty(G6))return e(r);const i=process.env[tG],s=process.env[rG],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[G6]=s),e({...r,request:n})},iG={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Mg=t=>({applyToStack:e=>{e.add(nG(t),iG)}});class Ig extends Error{constructor(e,r=!0){super(e),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,Ig.prototype)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}class Ul extends Ig{constructor(e,r=!0){super(e,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Ul.prototype)}}const E9=(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))};var lv={};/*! ***************************************************************************** +`)}static register(e,r){r||(r=e.locale)}}const cH="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo";let df=null;function _6(t){if(df==null&&(df=cH.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),wu.check(t)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw df=null,new Error("BIP39 Wordlist for en (English) FAILED")}class fH extends wu{constructor(){super("en")}getWord(e){return _6(this),df[e]}getWordIndex(e){return _6(this),df.indexOf(e)}}const d9=new fH;wu.register(d9);const gp={en:d9},uH="hdnode/5.7.0",$h=new V(uH),dH=oe.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),hH=Zt("Bitcoin seed"),pc=2147483648;function h9(t){return(1<=256)throw new Error("Depth too large!");return M6(Kt([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",le(this.depth),this.parentFingerprint,Et(le(this.index),4),this.chainCode,this.privateKey!=null?Kt(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new bn(ma,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&~pc));const n=new Uint8Array(37);if(e&pc){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(ae(this.privateKey),1),r&&(r+="'")}else n.set(ae(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=ae(Nh(Yf.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=ad(oe.from(s).add(this.privateKey).mod(dH)):l=new il(le(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 bn(ma,a,l,this.fingerprint,ad(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=pc)throw new Error("invalid path index - "+s);n=n._derive(pc+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=pc)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=ae(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=ae(Nh(Yf.sha512,hH,n));return new bn(ma,ad(i.slice(0,32)),null,"0x00000000",ad(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=Rg(n),e=Pg(v9(e,n),n),bn._fromSeed(yH(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return bn._fromSeed(e,null)}static fromExtendedKey(e){const r=Kf.decode(e);(r.length!==82||M6(r.slice(0,78))!==e)&&$h.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=le(r.slice(5,9)),s=parseInt(le(r.slice(9,13)).substring(2),16),o=le(r.slice(13,45)),a=r.slice(45,78);switch(le(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new bn(ma,null,le(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new bn(ma,le(a.slice(1)),null,i,o,s,n,null)}return $h.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function yH(t,e){e||(e="");const r=Zt("mnemonic"+e,so.NFKD);return kg(Zt(t,so.NFKD),r,2048,64,"sha512")}function v9(t,e){e=Rg(e),$h.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=ae(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=h9(o);if((ae(na(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return le(n.slice(0,s/8))}function Pg(t,e){if(e=Rg(e),t=ae(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]&vH(8-n)),n+=3);const i=t.length/4,s=ae(na(t))[0]&h9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}const pH="random/5.7.0",xp=new V(pH);function mH(){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 I6=mH();let Ld=I6.crypto||I6.msCrypto;(!Ld||!Ld.getRandomValues)&&(xp.warn("WARNING: Missing strong random number source"),Ld={getRandomValues:function(t){return xp.throwError("no secure random source avaialble",V.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function qc(t){(t<=0||t>1024||t%1||t!=t)&&xp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return Ld.getRandomValues(e),ae(e)}var y9={exports:{}};(function(t,e){(function(r){function n(k){return parseInt(k)===k}function i(k){if(!n(k.length))return!1;for(var p=0;p255)return!1;return!0}function s(k,p){if(k.buffer&&ArrayBuffer.isView(k)&&k.name==="Uint8Array")return p&&(k.slice?k=k.slice():k=Array.prototype.slice.call(k)),k;if(Array.isArray(k)){if(!i(k))throw new Error("Array contains invalid value: "+k);return new Uint8Array(k)}if(n(k.length)&&i(k))return new Uint8Array(k);throw new Error("unsupported array-like object")}function o(k){return new Uint8Array(k)}function a(k,p,P,B,E){(B!=null||E!=null)&&(k.slice?k=k.slice(B,E):k=Array.prototype.slice.call(k,B,E)),p.set(k,P)}var l=function(){function k(P){var B=[],E=0;for(P=encodeURI(P);E191&&F<224?(B.push(String.fromCharCode((F&31)<<6|P[E+1]&63)),E+=2):(B.push(String.fromCharCode((F&15)<<12|(P[E+1]&63)<<6|P[E+2]&63)),E+=3)}return B.join("")}return{toBytes:k,fromBytes:p}}(),c=function(){function k(B){for(var E=[],F=0;F>4]+p[j&15])}return E.join("")}return{toBytes:k,fromBytes:P}}(),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],m=[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],S=[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],A=[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],$=[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],O=[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],H=[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 Y(k){for(var p=[],P=0;P>2,this._Ke[F][p%4]=E[p],this._Kd[k-F][p%4]=E[p];for(var j=0,z=B,W;z>16&255]<<24^d[W>>8&255]<<16^d[W&255]<<8^d[W>>24&255]^u[j]<<24,j+=1,B!=8)for(var p=1;p>8&255]<<8^d[W>>16&255]<<16^d[W>>24&255]<<24;for(var p=B/2+1;p>2,X=z%4,this._Ke[ne][X]=E[p],this._Kd[k-ne][X]=E[p++],z++}for(var ne=1;ne>24&255]^$[W>>16&255]^O[W>>8&255]^H[W&255]},Q.prototype.encrypt=function(k){if(k.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var p=this._Ke.length-1,P=[0,0,0,0],B=Y(k),E=0;E<4;E++)B[E]^=this._Ke[0][E];for(var F=1;F>24&255]^y[B[(E+1)%4]>>16&255]^w[B[(E+2)%4]>>8&255]^x[B[(E+3)%4]&255]^this._Ke[F][E];B=P.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Ke[p][E],j[4*E]=(d[B[E]>>24&255]^z>>24)&255,j[4*E+1]=(d[B[(E+1)%4]>>16&255]^z>>16)&255,j[4*E+2]=(d[B[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(d[B[(E+3)%4]&255]^z)&255;return j},Q.prototype.decrypt=function(k){if(k.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var p=this._Kd.length-1,P=[0,0,0,0],B=Y(k),E=0;E<4;E++)B[E]^=this._Kd[0][E];for(var F=1;F>24&255]^S[B[(E+3)%4]>>16&255]^A[B[(E+2)%4]>>8&255]^_[B[(E+1)%4]&255]^this._Kd[F][E];B=P.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Kd[p][E],j[4*E]=(v[B[E]>>24&255]^z>>24)&255,j[4*E+1]=(v[B[(E+3)%4]>>16&255]^z>>16)&255,j[4*E+2]=(v[B[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(v[B[(E+1)%4]&255]^z)&255;return j};var re=function(k){if(!(this instanceof re))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Q(k)};re.prototype.encrypt=function(k){if(k=s(k),k.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=o(k.length),P=o(16),B=0;B=0;--p)this._counter[p]=k%256,k=k>>8},R.prototype.setBytes=function(k){if(k=s(k,!0),k.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=k},R.prototype.increment=function(){for(var k=15;k>=0;k--)if(this._counter[k]===255)this._counter[k]=0;else{this._counter[k]++;break}};var M=function(k,p){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",p instanceof R||(p=new R(p)),this._counter=p,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Q(k)};M.prototype.encrypt=function(k){for(var p=s(k,!0),P=0;P16)throw new Error("PKCS#7 padding byte out of range");for(var P=k.length-p,B=0;B=64;){let L=x,k=b,p=S,P=A,B=_,E=D,F=$,j=O,z,W,ne,X,ee;for(W=0;W<16;W++)ne=T+W*4,H[W]=(M[ne]&255)<<24|(M[ne+1]&255)<<16|(M[ne+2]&255)<<8|M[ne+3]&255;for(W=16;W<64;W++)z=H[W-2],X=(z>>>17|z<<32-17)^(z>>>19|z<<32-19)^z>>>10,z=H[W-15],ee=(z>>>7|z<<32-7)^(z>>>18|z<<32-18)^z>>>3,H[W]=(X+H[W-7]|0)+(ee+H[W-16]|0)|0;for(W=0;W<64;W++)X=(((B>>>6|B<<32-6)^(B>>>11|B<<32-11)^(B>>>25|B<<32-25))+(B&E^~B&F)|0)+(j+(w[W]+H[W]|0)|0)|0,ee=((L>>>2|L<<32-2)^(L>>>13|L<<32-13)^(L>>>22|L<<32-22))+(L&k^L&p^k&p)|0,j=F,F=E,E=B,B=P+X|0,P=p,p=k,k=L,L=X+ee|0;x=x+L|0,b=b+k|0,S=S+p|0,A=A+P|0,_=_+B|0,D=D+E|0,$=$+F|0,O=O+j|0,T+=64,N-=64}}Y(y);let Q,re=y.length%64,I=y.length/536870912|0,h=y.length<<3,C=re<56?56:120,R=y.slice(y.length-re,y.length);for(R.push(128),Q=re+1;Q>>24&255),R.push(I>>>16&255),R.push(I>>>8&255),R.push(I>>>0&255),R.push(h>>>24&255),R.push(h>>>16&255),R.push(h>>>8&255),R.push(h>>>0&255),Y(R),[x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,$>>>24&255,$>>>16&255,$>>>8&255,$>>>0&255,O>>>24&255,O>>>16&255,O>>>8&255,O>>>0&255]}function s(y,w,x){y=y.length<=64?y:i(y);const b=64+w.length+4,S=new Array(b),A=new Array(64);let _,D=[];for(_=0;_<64;_++)S[_]=54;for(_=0;_=b-4;O--){if(S[O]++,S[O]<=255)return;S[O]=0}}for(;x>=32;)$(),D=D.concat(i(A.concat(i(S)))),x-=32;return x>0&&($(),D=D.concat(i(A.concat(i(S))).slice(0,x))),D}function o(y,w,x,b,S){let A;for(f(y,(2*x-1)*16,S,0,16),A=0;A<2*x;A++)c(y,A*16,S,16),l(S,b),f(S,0,y,w+A*16,16);for(A=0;A>>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 S=0;S=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,S,A,_){if(x=d(x,"N"),b=d(b,"r"),S=d(S,"p"),A=d(A,"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/S)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,S*128*b);const $=new Uint32Array(S*32*b);for(let B=0;B<$.length;B++){const E=B*4;$[B]=(D[E+3]&255)<<24|(D[E+2]&255)<<16|(D[E+1]&255)<<8|(D[E+0]&255)<<0}const O=new Uint32Array(64*b),H=new Uint32Array(32*b*x),Y=32*b,Q=new Uint32Array(16),re=new Uint32Array(16),I=S*x*2;let h=0,C=null,R=!1,M=0,T=0,N,L;const k=_?parseInt(1e3/b):4294967295,p=typeof setImmediate<"u"?setImmediate:setTimeout,P=function(){if(R)return _(new Error("cancelled"),h/I);let B;switch(M){case 0:L=T*32*b,f($,L,O,0,Y),M=1,N=0;case 1:B=x-N,B>k&&(B=k);for(let F=0;Fk&&(B=k);for(let F=0;F>0&255),D.push($[F]>>8&255),D.push($[F]>>16&255),D.push($[F]>>24&255);const E=s(y,D,A);return _&&_(null,1,E),E}_&&p(P)};if(!_)for(;;){const B=P();if(B!=null)return B}P()}const m={scrypt:function(y,w,x,b,S,A,_){return new Promise(function(D,$){let O=0;_&&_(0),v(y,w,x,b,S,A,function(H,Y,Q){if(H)$(H);else if(Q)_&&O!==1&&_(1),D(new Uint8Array(Q));else if(_&&Y!==O)return O=Y,_(Y)})})},syncScrypt:function(y,w,x,b,S,A){return new Uint8Array(v(y,w,x,b,S,A))}};t.exports=m})()})(b9);var EH=b9.exports;const _g=xs(EH);var CH=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 bp=new V(p9);function N6(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class SH extends ua{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function AH(t,e,r){if(Gt(t,"crypto/cipher")==="aes-128-ctr"){const i=Vo(Gt(t,"crypto/cipherparams/iv")),s=new Ni.Counter(i),o=new Ni.ModeOfOperation.ctr(e,s);return ae(o.decrypt(r))}return null}function w9(t,e){const r=Vo(Gt(t,"crypto/ciphertext"));if(le(bt(Kt([e.slice(16,32),r]))).substring(2)!==Gt(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=AH(t,e.slice(0,16),r);i||bp.throwError("unsupported cipher",V.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=Uo(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Ot(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:le(i)};if(Gt(t,"x-ethers/version")==="0.1"){const l=Vo(Gt(t,"x-ethers/mnemonicCiphertext")),c=Vo(Gt(t,"x-ethers/mnemonicCounter")),f=new Ni.Counter(c),u=new Ni.ModeOfOperation.ctr(s,f),d=Gt(t,"x-ethers/path")||Qf,v=Gt(t,"x-ethers/locale")||"en",m=ae(u.decrypt(l));try{const y=Pg(m,v),w=bn.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!==V.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new SH(a)}function E9(t,e,r,n,i){return ae(kg(t,e,r,n,i))}function kH(t,e,r,n,i){return Promise.resolve(E9(t,e,r,n,i))}function C9(t,e,r,n,i){const s=Tg(e),o=Gt(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return bp.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=Vo(Gt(t,"crypto/kdfparams/salt")),c=parseInt(Gt(t,"crypto/kdfparams/n")),f=parseInt(Gt(t,"crypto/kdfparams/r")),u=parseInt(Gt(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(Gt(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=Vo(Gt(t,"crypto/kdfparams/salt"));let c=null;const f=Gt(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(Gt(t,"crypto/kdfparams/c")),d=parseInt(Gt(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return bp.throwArgumentError("unsupported key-derivation function","kdf",o)}function RH(t,e){const r=JSON.parse(t),n=C9(r,e,E9,_g.syncScrypt);return w9(r,n)}function PH(t,e,r){return CH(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield C9(n,e,kH,_g.scrypt,r);return w9(n,i)})}function TH(t,e,r,n){try{if(Ot(t.address)!==Uo(t.privateKey))throw new Error("address/privateKey mismatch");if(N6(t)){const w=t.mnemonic;if(bn.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Qf).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=ae(t.privateKey),s=Tg(e);let o=null,a=null,l=null;if(N6(t)){const w=t.mnemonic;o=ae(v9(w.phrase,w.locale||"en")),a=w.path||Qf,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=ae(r.salt):f=qc(32);let u=null;if(r.iv){if(u=ae(r.iv),u.length!==16)throw new Error("invalid iv")}else u=qc(16);let d=null;if(r.uuid){if(d=ae(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=qc(16);let v=1<<17,m=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(m=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),_g.scrypt(s,f,v,m,y,64,n).then(w=>{w=ae(w);const x=w.slice(0,16),b=w.slice(16,32),S=w.slice(32,64),A=new Ni.Counter(u),_=new Ni.ModeOfOperation.ctr(x,A),D=ae(_.encrypt(i)),$=bt(Kt([b,D])),O={address:t.address.substring(2).toLowerCase(),id:xH(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:le(u).substring(2)},ciphertext:le(D).substring(2),kdf:"scrypt",kdfparams:{salt:le(f).substring(2),n:v,dklen:32,p:y,r:m},mac:$.substring(2)}};if(o){const H=qc(16),Y=new Ni.Counter(H),Q=new Ni.ModeOfOperation.ctr(S,Y),re=ae(Q.encrypt(o)),I=new Date,h=I.getUTCFullYear()+"-"+mc(I.getUTCMonth()+1,2)+"-"+mc(I.getUTCDate(),2)+"T"+mc(I.getUTCHours(),2)+"-"+mc(I.getUTCMinutes(),2)+"-"+mc(I.getUTCSeconds(),2)+".0Z";O["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+O.address,mnemonicCounter:le(H).substring(2),mnemonicCiphertext:le(re).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(O)})}function _H(t,e,r){if(g9(t)){r&&r(0);const n=m9(t,e);return r&&r(1),Promise.resolve(n)}return x9(t)?PH(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function MH(t,e){if(g9(t))return m9(t,e);if(x9(t))return RH(t,e);throw new Error("invalid JSON wallet")}const IH="wallet/5.7.0";var $6=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 ga=new V(IH);function NH(t){return t!=null&&We(t.privateKey,32)&&t.address!=null}function $H(t){const e=t.mnemonic;return e&&e.phrase}class Xn extends Ll{constructor(e,r){if(super(),NH(e)){const n=new il(e.privateKey);if(Z(this,"_signingKey",()=>n),Z(this,"address",Uo(this.publicKey)),this.address!==Ot(e.address)&&ga.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),$H(e)){const i=e.mnemonic;Z(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Qf,locale:i.locale||"en"}));const s=this.mnemonic,o=bn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);Uo(o.privateKey)!==this.address&&ga.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Z(this,"_mnemonic",()=>null)}else{if(il.isSigningKey(e))e.curve!=="secp256k1"&&ga.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Z(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new il(e);Z(this,"_signingKey",()=>n)}Z(this,"_mnemonic",()=>null),Z(this,"address",Uo(this.publicKey))}r&&!xu.isProvider(r)&&ga.throwArgumentError("invalid provider","provider",r),Z(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 Xn(this,e)}signTransaction(e){return qt(e).then(r=>{r.from!=null&&(Ot(r.from)!==this.address&&ga.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(bt(k6(r)));return k6(r,n)})}signMessage(e){return $6(this,void 0,void 0,function*(){return e6(this._signingKey().signDigest(BU(e)))})}_signTypedData(e,r,n){return $6(this,void 0,void 0,function*(){const i=yield Or.resolveNames(e,r,n,s=>(this.provider==null&&ga.throwError("cannot resolve ENS names without a provider",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return e6(this._signingKey().signDigest(Or.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={}),TH(this,e,r,n)}static createRandom(e){let r=qc(16);e||(e={}),e.extraEntropy&&(r=ae(ir(bt(Kt([r,e.extraEntropy])),0,16)));const n=Pg(r,e.locale);return Xn.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return _H(e,r,n).then(i=>new Xn(i))}static fromEncryptedJsonSync(e,r){return new Xn(MH(e,r))}static fromMnemonic(e,r,n){return r||(r=Qf),new Xn(bn.fromMnemonic(e,null,n).derivePath(r))}}const DH="networks/5.7.1",D6=new V(DH);function OH(t){return t&&typeof t.renetwork=="function"}function es(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 es(r)},e}function Dh(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return Dh(t,n)},r}const O6={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:es("homestead")},L6={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:es("ropsten")},B6={chainId:63,name:"classicMordor",_defaultProvider:Dh("https://www.ethercluster.com/mordor","classicMordor")},ld={unspecified:{chainId:0,name:"unspecified"},homestead:O6,mainnet:O6,morden:{chainId:2,name:"morden"},ropsten:L6,testnet:L6,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:es("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:es("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:es("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:es("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Dh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:B6,classicTestnet:B6,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Dh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:es("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:es("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 LH(t){if(t==null)return null;if(typeof t=="number"){for(const n in ld){const i=ld[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=ld[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=ld[t.name];if(!e)return typeof t.chainId!="number"&&D6.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&D6.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(OH(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 BH="web/5.7.1";var FH=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 jH(t,e){return FH(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:ae(new Uint8Array(i))}})}var zH=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 V(BH);function F6(t){return new Promise(e=>{setTimeout(e,t)})}function Ps(t,e){if(t==null)return null;if(typeof t=="string")return t;if(R0(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return gu(t)}catch{}return le(t)}return t}function UH(t){return Zt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function VH(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;Hn.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;Hn.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)&&Hn.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&&Hn.throwError("basic authentication requires a secure https url",V.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const x=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+A7(Zt(x))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=ar(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]?S7(v[3]):UH(v[3])};let b=x.body;return r&&(b=r(x.body,x)),Promise.resolve(b)}catch(x){Hn.throwError("processing response error",V.errors.SERVER_ERROR,{body:Ps(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 m={};Object.keys(a).forEach(x=>{const b=a[x];m[b.key]=b.value}),c.headers=m;const y=function(){let x=null;return{promise:new Promise(function(A,_){u&&(x=setTimeout(()=>{x!=null&&(x=null,_(Hn.makeError("timeout",V.errors.TIMEOUT,{requestBody:Ps(c.body,m["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){x!=null&&(clearTimeout(x),x=null)}}}(),w=function(){return zH(this,void 0,void 0,function*(){for(let x=0;x=300)&&(y.cancel(),Hn.throwError("bad response",V.errors.SERVER_ERROR,{status:b.statusCode,headers:b.headers,body:Ps(S,b.headers?b.headers["content-type"]:null),requestBody:Ps(c.body,m["content-type"]),requestMethod:c.method,url:l})),r)try{const A=yield r(S,b);return y.cancel(),A}catch(A){if(A.throttleRetry&&x{let a=null;if(s!=null)try{a=JSON.parse(gu(s))}catch(l){Hn.throwError("invalid JSON",V.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}:ar(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=ar(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return VH(t,i,n)}function Hc(t,e){return e||(e={}),e=ar(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 Oh="qpzry9x8gf2tvdw0s3jn54khce6mua7l",wp={};for(var cd=0;cd>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 S9(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=sl(e)^n>>5}for(e=sl(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=S9(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=sl(n)^o,i+=Oh.charAt(o)}for(s=0;s<6;++s)n=sl(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=Oh.charAt(a)}return i}function A9(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=S9(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 HH(){var t=A9.apply(null,arguments);if(typeof t=="object")return t}function GH(t){var e=A9.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function N0(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:ge.allowNull(this.accessList.bind(this),null),blockHash:ge.allowNull(o,null),blockNumber:ge.allowNull(l,null),transactionIndex:ge.allowNull(l,null),confirmations:ge.allowNull(l,null),from:r,gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),gasLimit:n,to:ge.allowNull(r,null),value:n,nonce:l,data:s,r:ge.allowNull(this.uint256),s:ge.allowNull(this.uint256),v:ge.allowNull(l),creates:ge.allowNull(r,null),raw:ge.allowNull(s)},e.transactionRequest={from:ge.allowNull(r),nonce:ge.allowNull(l),gasLimit:ge.allowNull(n),gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),to:ge.allowNull(r),value:ge.allowNull(n),data:ge.allowNull(f),type:ge.allowNull(l),accessList:ge.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:ge.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:ge.allowNull(this.address,null),from:ge.allowNull(this.address,null),contractAddress:ge.allowNull(r,null),transactionIndex:l,root:ge.allowNull(a),gasUsed:n,logsBloom:ge.allowNull(s),blockHash:o,transactionHash:o,logs:ge.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:ge.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:ge.allowNull(n),status:ge.allowNull(l),type:c},e.block={hash:ge.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:ge.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:ge.allowNull(r),extraData:s,transactions:ge.allowNull(ge.arrayOf(o)),baseFeePerGas:ge.allowNull(n)},e.blockWithTransactions=ar(e.block),e.blockWithTransactions.transactions=ge.allowNull(ge.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:ge.allowNull(i,void 0),toBlock:ge.allowNull(i,void 0),blockHash:ge.allowNull(o,void 0),address:ge.allowNull(r,void 0),topics:ge.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:ge.allowNull(l),blockHash:ge.allowNull(o),transactionIndex:l,removed:ge.allowNull(this.boolean.bind(this)),address:r,data:ge.allowFalsish(s,"0x"),topics:ge.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return Ul(e||[])}number(e){return e==="0x"?0:oe.from(e).toNumber()}type(e){return e==="0x"||e==null?0:oe.from(e).toNumber()}bigNumber(e){return oe.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),We(e))?e.toLowerCase():gc.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 Ot(e)}callAddress(e){if(!We(e,32))return null;const r=Ot(ir(e,12));return r===g7?null:r}contractAddress(e){return v7(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"||We(e))return pg(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return Xo(n)!==32?gc.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=oe.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!We(e))throw new Error("invalid uint256");return Et(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=ge.check(r,e);return i._difficulty=n==null?null:oe.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return ge.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&oe.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=ge.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;We(n)&&(n=oe.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),We(n)&&(n=oe.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 Yq(e)}receiptLog(e){return ge.check(this.formats.receiptLog,e)}receipt(e){const r=ge.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=oe.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&gc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):gc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&gc.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 ge.check(this.formats.filter,e)}filterLog(e){return ge.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 Re=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 Ne=new V(Ig),XH=10;function z6(t){return t==null?"null":(Xo(t)!==32&&Ne.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function U6(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[z6(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return z6(e)}).join("&")}function ZH(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 xa(t){if(typeof t=="string"){if(t=t.toLowerCase(),Xo(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+U6(t);if(ZU.isForkEvent(t))throw Ne.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+U6(t.topics||[])}throw new Error("invalid event - "+t)}function xc(){return new Date().getTime()}function V6(t){return new Promise(e=>{setTimeout(e,t)})}const eG=["block","network","pending","poll"];let tG=class{constructor(e,r,n){Z(this,"tag",e),Z(this,"listener",r),Z(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=ZH(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||eG.indexOf(this.tag)>=0}};const rG={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 uv(t){return Et(oe.from(t).toHexString(),32)}function q6(t){return Kf.encode(Kt([t,ir(na(na(t)),0,4)]))}const k9=new RegExp("^(ipfs)://(.*)$","i"),H6=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),k9,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Bd(t,e){try{return gu(Jf(t,e))}catch{}return null}function Jf(t,e){if(t==="0x")return null;const r=oe.from(ir(t,e,e+32)).toNumber(),n=oe.from(ir(t,r,r+32)).toNumber();return ir(t,r+32,r+32+n)}function dv(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Ne.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function G6(t){const e=ae(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 nG(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function R9(t){const e=[];let r=0;for(let n=0;noe.from(e).eq(1)).catch(e=>{if(e.code===V.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return Re(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:qr([e,Nd(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=qr(["0x9061b923",R9([OU(this.name),n.data])]));try{let s=yield this.provider.call(n);return ae(s).length%32===4&&Ne.throwError("resolver threw error",V.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=Jf(s,0)),s}catch(s){if(s.code===V.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return Re(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Jf(n,0):null})}_getAddress(e,r){const n=rG[String(e)];if(n==null&&Ne.throwError(`unsupported coin type: ${e}`,V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=ae(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 q6(Kt([[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 q6(Kt([[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=j6.toWords(i.slice(2));return a.unshift(o),j6.encode(n.prefix,a)}}return null}getAddress(e){return Re(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===eU?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===V.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",uv(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Ne.throwError("invalid or unsupported coin data",V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Re(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 Ne.throwError("invalid or unsupported content hash data",V.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Re(this,void 0,void 0,function*(){let r=Zt(e);r=Kt([uv(64),uv(r.length),r]),r.length%32!==0&&(r=Kt([r,Et("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",le(r));return n==null||n==="0x"?null:gu(n)})}}let hv=null,iG=1;class sG extends xu{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),Z(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=Ii(new.target,"getNetwork")(e);r?(Z(this,"_network",r),this.emit("network",r,null)):Ne.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Re(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||Ne.throwError("no network detected",V.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:Z(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return Hc(()=>this._ready().then(e=>e,e=>{if(!(e.code===V.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return hv==null&&(hv=new ge),hv}static getNetwork(e){return LH(e??"homestead")}ccipReadFetch(e,r,n){return Re(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 Mg({url:c,errorPassThrough:!0},f,(v,m)=>(v.status=m.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Ne.throwError(`response not found during CCIP fetch: ${d}`,V.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Ne.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,V.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return Re(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(xc()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=xc(),n=qt({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=xc();return i=oe.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Re(this,void 0,void 0,function*(){const e=iG++,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)Ne.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Ne.makeError("network block skew detected",V.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 Re(this,void 0,void 0,function*(){return Ne.throwError("provider does not support network detection",V.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Re(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 V6(0),this._network;const n=Ne.makeError("underlying network changed",V.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=xc();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 Re(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return Re(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 m=y=>Re(this,void 0,void 0,function*(){c||(yield V6(1e3),this.getTransactionCount(i.from).then(w=>Re(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",m)}))});if(c)return;this.once("block",m),l.push(()=>{this.removeListener("block",m)})}if(typeof n=="number"&&n>0){const d=setTimeout(()=>{f()||a(Ne.makeError("timeout exceeded",V.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Re(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return oe.from(e)}catch(r){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return oe.from(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return oe.from(i).toNumber()}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return le(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>pg(o))}),s=yield this.perform("getStorageAt",i);try{return le(s)}catch(o){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&Xo(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Ne.throwError("Transaction hash mismatch from Provider.sendTransaction.",V.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>Re(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&&Ne.throwError("transaction failed",V.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>le(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 Re(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?oe.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?le(s):null))}),this.formatter.transactionRequest(yield qt(n))})}_getFilter(e){return Re(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 qt(r))})}_call(e,r,n){return Re(this,void 0,void 0,function*(){n>=XH&&Ne.throwError("CCIP read exceeded maximum redirections",V.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"&&Xo(s)%32===4)try{const o=ir(s,4),a=ir(o,0,32);oe.from(a).eq(i)||Ne.throwError("CCIP Read sender did not match",V.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:s});const l=[],c=oe.from(ir(o,32,64)).toNumber(),f=oe.from(ir(o,c,c+32)).toNumber(),u=ir(o,c+32);for(let x=0;xRe(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 Re(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Hc(()=>Re(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 Re(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Hc(()=>Re(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 Re(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield qt({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),ge.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Re(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Re(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Ne.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 Re(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 W6(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return Re(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Ne.throwError("network does not support ENS",V.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+Nd(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Re(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(We(e))throw n}typeof e!="string"&&Ne.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Re(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=Bd(yield this.call({to:n,data:"0x691f3431"+Nd(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Re(this,void 0,void 0,function*(){let r=null;if(We(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new W6(this,o,s);try{const a=yield r.getAvatar();if(a)return a.url}catch(a){if(a.code!==V.errors.CALL_EXCEPTION)throw a}try{const a=Bd(yield this.call({to:o,data:"0x691f3431"+Nd(s).substring(2)}),0);r=yield this.getResolver(a)}catch(a){if(a.code!==V.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 Ne.throwError(e+" not implemented",V.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 tG(xa(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=xa(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=xa(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=xa(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=xa(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=xa(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var Xi=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 Jt=new V(Ig),oG=["call","estimateGas"];function hf(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=We(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=hf(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return hf(JSON.parse(t),e)}catch{}return null}function P9(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=hf(e,!0);if(s)return s.data;Jt.throwError("missing revert data in call exception; Transaction reverted without a reason string",V.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let s=hf(e.body,!1);s==null&&(s=hf(e,!1)),s&&Jt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===V.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)&&Jt.throwError("insufficient funds for intrinsic transaction cost",V.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&Jt.throwError("nonce has already been used",V.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Jt.throwError("replacement fee too low",V.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&Jt.throwError("legacy pre-eip-155 transactions not supported",V.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),oG.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Jt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function K6(t){return new Promise(function(e){setTimeout(e,t)})}function aG(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 bc(t){return t&&t.toLowerCase()}const Ep={};class T9 extends Ll{constructor(e,r,n){if(super(),e!==Ep)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Z(this,"provider",r),n==null&&(n=0),typeof n=="string"?(Z(this,"_address",this.provider.formatter.address(n)),Z(this,"_index",null)):typeof n=="number"?(Z(this,"_index",n),Z(this,"_address",null)):Jt.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return Jt.throwError("cannot alter JSON-RPC Signer connection",V.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new lG(Ep,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&&Jt.throwError("unknown account #"+this._index,V.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=ar(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=ar(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>Xi(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&Jt.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),qt({tx:qt(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&Jt.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)&&Jt.throwError("user rejected transaction",V.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),P9("sendTransaction",o,s)))})}signTransaction(e){return Jt.throwError("signing transactions is unsupported",V.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Xi(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 Hc(()=>Xi(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 Xi(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",[le(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return Xi(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(),le(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return Xi(this,void 0,void 0,function*(){const i=yield Or.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(Or.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:r,value:i.value}}),o}})}unlock(e){return Xi(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class lG extends T9{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 cG={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let fG=class extends sG{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=Ii(this.constructor,"defaultUrl")()),typeof e=="string"?Z(this,"connection",Object.freeze({url:e})):Z(this,"connection",Object.freeze(ar(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 Xi(this,void 0,void 0,function*(){yield K6(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=Ii(this.constructor,"getNetwork");try{return r(oe.from(e).toNumber())}catch(n){return Jt.throwError("could not detect network",V.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return Jt.throwError("could not detect network",V.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new T9(Ep,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:Zo(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=Mg(this.connection,JSON.stringify(n),aG).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",[bc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[bc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[bc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[bc(r.address),Et(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",[Ii(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[Ii(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=bc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return Xi(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&oe.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=ar(r),r.transaction=ar(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&Jt.throwError(e+" not implemented",V.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return P9(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 K6(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=ar(cG);if(r)for(const s in r)r[s]&&(n[s]=!0);o7(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=pg(oe.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=le(e[s]))}),e.accessList&&(i.accessList=Ul(e.accessList)),i}};const uG="units/5.7.0",dG=new V(uG),_9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function M9(t,e){if(typeof e=="string"){const r=_9.indexOf(e);r!==-1&&(e=3*r)}return Md(t,e??18)}function Ng(t,e){if(typeof t!="string"&&dG.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=_9.indexOf(e);r!==-1&&(e=3*r)}return mi(t,e??18)}function hG(t){return M9(t,18)}function vG(t){return Ng(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(pG(t,!0,e),t),gG=t=>mG(xG(t)),xG=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},$g=(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})):"",bG=t=>$g("https://${network}-indexer.sequence.app",{network:t}),wG=t=>$g("https://${network}-relayer.sequence.app",{network:t}),EG=t=>$g("https://nodes.sequence.app/${network}",{network:t}),er=t=>{const e=EG(t);return{rpcUrl:e,relayer:{url:wG(t),provider:{url:e}},indexerUrl:bG(t)}};gG([_t({},Ut[ue.POLYGON],er("polygon"),{isDefaultChain:!0,isAuthChain:!0}),_t({},Ut[ue.MAINNET],er("mainnet")),_t({},Ut[ue.BSC],er("bsc")),_t({},Ut[ue.AVALANCHE],er("avalanche")),_t({},Ut[ue.ARBITRUM],er("arbitrum")),_t({},Ut[ue.ARBITRUM_NOVA],er("arbitrum-nova")),_t({},Ut[ue.OPTIMISM],er("optimism")),_t({},Ut[ue.POLYGON_ZKEVM],er("polygon-zkevm")),_t({},Ut[ue.GNOSIS],er("gnosis")),_t({},Ut[ue.RINKEBY],er("rinkeby"),{disabled:!0}),_t({},Ut[ue.GOERLI],er("goerli")),_t({},Ut[ue.SEPOLIA],er("sepolia")),_t({},Ut[ue.POLYGON_MUMBAI],er("mumbai")),_t({},Ut[ue.BSC_TESTNET],er("bsc-testnet")),_t({},Ut[ue.ARBITRUM_GOERLI],er("arbitrum-goerli")),_t({},Ut[ue.BASE],er("base")),_t({},Ut[ue.BASE_GOERLI],er("base-goerli")),_t({},Ut[ue.HOMEVERSE_TESTNET],er("homeverse-testnet")),_t({},Ut[ue.AVALANCHE_TESTNET],er("avalanche-testnet")),_t({},Ut[ue.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),_t({},Ut[ue.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]);const Y6=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function vv(){const e=gp.en,r=Y6[Math.floor(Math.random()*Y6.length)],n=e.getWord(Math.floor(Math.random()*2048)),i=e.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function CG({onSuccess:t}){const[e,r]=g.useState(""),[n,i]=g.useState(),[s,o]=g.useState(!1),[a,l]=g.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await Pt.email.initiateAuth({email:u});l(d),r(u)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const{idToken:d}=await Pt.email.finalizeAuth({instance:a,answer:u,email:e});t(d)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function SG(){var w;const[t,e]=g.useState(""),r=g.useRef(null),n=(w=r.current)==null?void 0:w.validity.valid,[i,s]=g.useState(!1),[o,a]=g.useState([]),[l,c]=g.useState(!1),{inProgress:f,loading:u,initiateAuth:d,sendChallengeAnswer:v}=CG({onSuccess:async x=>{c(!0);const b=await Pt.signIn({idToken:x},vv());console.log(`Wallet address: ${b}`),Lo.navigate("/")}});g.useEffect(()=>{(async()=>await Pt.isSignedIn()&&Lo.navigate("/"))()},[]);const m=async x=>{const b=await Pt.signIn({idToken:x.credential},vv());console.log(`Wallet address: ${b}`),Lo.navigate("/")},y=async x=>{const b=await Pt.signIn({idToken:x.authorization.id_token},vv());console.log(`Wallet address: ${b}`),Lo.navigate("/")};return U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"16",children:U.jsx(XA,{})}),U.jsx(ie,{children:U.jsx(Le,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),v?U.jsxs(ie,{flexDirection:"column",children:[U.jsx(ie,{marginTop:"6",children:U.jsx(Le,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),U.jsx(ie,{marginTop:"4",children:U.jsx(JA,{value:o,digits:6,onChange:a})}),U.jsx(ie,{gap:"2",marginY:"4",children:u||l?U.jsx(ps,{}):U.jsx(Yr,{variant:"primary",disabled:o.includes(""),label:"Verify",onClick:()=>v(o.join("")),"data-id":"verifyButton"})})]}):U.jsxs(ie,{marginTop:"5",marginBottom:"4",children:[U.jsxs(Le,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",U.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),U.jsxs(ie,{marginTop:"6",children:[U.jsx(gr,{name:"email",type:"email",onChange:x=>{e(x.target.value)},ref:r,onKeyDown:x=>{t&&x.key==="Enter"&&d(t)},onBlur:()=>s(!!t&&!n),value:t,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),i&&U.jsx(Le,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:u?U.jsx(ps,{}):U.jsx(Yr,{variant:"primary",disabled:!n,label:"Continue",onClick:()=>d(t),"data-id":"continueButton"})})]}),U.jsx("hr",{}),!f&&U.jsxs(U.Fragment,{children:[U.jsx(ie,{children:U.jsx(Le,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),U.jsx(Gj,{onSuccess:m,shape:"circle",width:230}),{}.VITE_APPLE_CLIENT_ID&&U.jsx(hz,{authOptions:{clientId:{}.VITE_APPLE_CLIENT_ID,scope:"openid email",redirectURI:"https://"+window.location.host,usePopup:!0},onError:x=>console.error(x),onSuccess:y,uiType:"dark"})]})]})}function AG(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 Dg=t=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},Og=t=>({httpHandler:t.httpHandler()});var Q6;(function(t){t.HEADER="header",t.QUERY="query"})(Q6||(Q6={}));var J6;(function(t){t.HEADER="header",t.QUERY="query"})(J6||(J6={}));var Xf;(function(t){t.HTTP="http",t.HTTPS="https"})(Xf||(Xf={}));var Lh;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Lh||(Lh={}));var X6;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(X6||(X6={}));const ao="__smithy_context";var Z6;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Z6||(Z6={}));var e4;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(e4||(e4={}));class Mn{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 Mn({...this,headers:{...this.headers}});return e.query&&(e.query=kG(e.query)),e}}function kG(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Bh{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 RG=t=>e=>async r=>{if(!Mn.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)},PG={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Lg=t=>({applyToStack:e=>{e.add(RG(t),PG)}}),TG=()=>(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:m,...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:m}),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}},_G={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Bg=t=>({applyToStack:e=>{e.add(TG(),_G)}}),t4="X-Amzn-Trace-Id",MG="AWS_LAMBDA_FUNCTION_NAME",IG="_X_AMZN_TRACE_ID",NG=t=>e=>async r=>{const{request:n}=r;if(!Mn.isInstance(n)||t.runtime!=="node"||n.headers.hasOwnProperty(t4))return e(r);const i=process.env[MG],s=process.env[IG],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[t4]=s),e({...r,request:n})},$G={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Fg=t=>({applyToStack:e=>{e.add(NG(t),$G)}});class jg extends Error{constructor(e,r=!0){super(e),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,jg.prototype)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}class Vl extends jg{constructor(e,r=!0){super(e,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Vl.prototype)}}const I9=(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))};var yv={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -149,23 +175,23 @@ 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 sG(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 lG(t,e){return function(r,n){e(r,n,t)}}function cG(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function fG(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 uG(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 C9(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 vG(){for(var t=[],e=0;e1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(m){u(s[0][3],m)}}function l(d){d.value instanceof Xf?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 mG(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:Xf(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function gG(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 xG(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function bG(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 wG(t){return t&&t.__esModule?t:{default:t}}function EG(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function CG(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 SG=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return gp},__asyncDelegator:mG,__asyncGenerator:pG,__asyncValues:gG,__await:Xf,__awaiter:fG,__classPrivateFieldGet:EG,__classPrivateFieldSet:CG,__createBinding:dG,__decorate:aG,__exportStar:hG,__extends:sG,__generator:uG,__importDefault:wG,__importStar:bG,__makeTemplateObject:xG,__metadata:cG,__param:lG,__read:C9,__rest:oG,__spread:vG,__spreadArrays:yG,__values:xp},Symbol.toStringTag,{value:"Module"})),go=Oh(SG);var cv={},bc={};const AG=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)},kG=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 RG(t){return new TextEncoder().encode(t)}function PG(t){return new TextDecoder("utf-8").decode(t)}const TG=t=>typeof TextEncoder=="function"?RG(t):AG(t),_G=t=>typeof TextDecoder=="function"?PG(t):kG(t),MG=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:TG,toUtf8:_G},Symbol.toStringTag,{value:"Module"})),S9=Oh(MG);var W6;function IG(){if(W6)return bc;W6=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.convertToBuffer=void 0;var t=S9,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 wc={},K6;function NG(){if(K6)return wc;K6=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return wc.isEmptyData=t,wc}var Ec={},Y6;function $G(){if(Y6)return Ec;Y6=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}return Ec.numToUint8=t,Ec}var Cc={},Q6;function DG(){if(Q6)return Cc;Q6=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var r=new Uint32Array(e.length),n=0;n>>8^o[(this.checksum^m)&255]}}catch(y){f={error:y}}finally{try{v&&!v.done&&(u=d.return)&&u.call(d)}finally{if(f)throw f.error}}return this},l.prototype.digest=function(){return(this.checksum^4294967295)>>>0},l}();t.Crc32=i;var s=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],o=(0,r.uint32ArrayFrom)(s),a=OG();Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})}(lv)),lv}A9();const k9={},bp={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),k9[t]=e,bp[e]=t}function LG(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;r9223372036854776e3||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&&eE(r),new hf(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&eE(e),parseInt(Cn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function eE(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}class BG{constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){const r=[];for(const s of Object.keys(e)){const o=this.fromUtf8(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=this.fromUtf8(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(hf.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!WG.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(LG(e.value.replace(/\-/g,"")),1),u}}parse(e){const r={};let n=0;for(;nt[so]||(t[so]={}),ni=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},Vl=t=>new TextEncoder().encode(t),vf=t=>typeof t=="string"?Vl(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),bu=t=>new TextDecoder("utf-8").decode(t),YG="X-Amz-Algorithm",QG="X-Amz-Credential",R9="X-Amz-Date",JG="X-Amz-SignedHeaders",XG="X-Amz-Expires",P9="X-Amz-Signature",T9="X-Amz-Security-Token",_9="authorization",M9=R9.toLowerCase(),ZG="date",eW=[_9,M9,ZG],tW=P9.toLowerCase(),wp="x-amz-content-sha256",rW=T9.toLowerCase(),nW={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},iW=/^proxy-/,sW=/^sec-/,fv="AWS4-HMAC-SHA256",oW="AWS4-HMAC-SHA256-PAYLOAD",aW="UNSIGNED-PAYLOAD",lW=50,I9="aws4_request",cW=60*60*24*7,ad={},uv=[],dv=(t,e,r)=>`${t}/${e}/${r}/${I9}`,fW=async(t,e,r,n,i)=>{const s=await nE(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${i}:${Cn(s)}:${e.sessionToken}`;if(o in ad)return ad[o];for(uv.push(o);uv.length>lW;)delete ad[uv.shift()];let a=`AWS4${e.secretAccessKey}`;for(const l of[r,n,i,I9])a=await nE(t,a,l);return ad[o]=a},nE=(t,e,r)=>{const n=new t(e);return n.update(vf(r)),n.digest()},iE=({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 nW||e!=null&&e.has(s)||iW.test(s)||sW.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[i].trim().replace(/\s+/g," "))}return n},Do=t=>encodeURIComponent(t).replace(/[!'()*]/g,uW),uW=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,dW=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===tW)continue;e.push(n);const i=t[n];typeof i=="string"?r[n]=`${Do(n)}=${Do(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${Do(n)}=${Do(o)}`]),[]).sort().join("&"))}return e.map(n=>r[n]).filter(n=>n).join("&")},hW=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()===wp)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||hW(e)){const n=new r;return n.update(vf(e)),Cn(await n.digest())}return aW},vW=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},N9=({headers:t,query:e,...r})=>({...r,headers:{...t},query:e?yW(e):void 0}),yW=t=>Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{}),pW=(t,e={})=>{var i;const{headers:r,query:n={}}=typeof t.clone=="function"?t.clone():N9(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}},sE=t=>{t=typeof t.clone=="function"?t.clone():N9(t);for(const e of Object.keys(t.headers))eW.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},mW=t=>gW(t).toISOString().replace(/\.\d{3}Z$/,"Z"),gW=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class oE{constructor({applyChecksum:e,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerMarshaller=new BG(bu,Vl),this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=ni(n),this.credentialProvider=ni(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}=ld(n);if(i>cW)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const m=dv(v,u,c??this.service),y=pW(sE(e),{unhoistableHeaders:o});f.sessionToken&&(y.query[T9]=f.sessionToken),y.query[YG]=fv,y.query[QG]=`${f.accessKeyId}/${m}`,y.query[R9]=d,y.query[XG]=i.toString(10);const w=iE(y,s,a);return y.query[JG]=aE(w),y.query[P9]=await this.getSignature(d,m,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}=ld(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=Cn(await d.digest()),m=[oW,c,f,i,v,u].join(` -`);return this.signString(m,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerMarshaller.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}=ld(r),l=new this.sha256(await this.getSigningKey(s,o,a,i));return l.update(vf(e)),Cn(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=sE(e),{longDate:f,shortDate:u}=ld(r),d=dv(u,l,o??this.service);c.headers[M9]=f,a.sessionToken&&(c.headers[rW]=a.sessionToken);const v=await hv(c,this.sha256);!vW(wp,c.headers)&&this.applyChecksum&&(c.headers[wp]=v);const m=iE(c,i,n),y=await this.getSignature(f,d,this.getSigningKey(a,l,u,o),this.createCanonicalRequest(c,m,v));return c.headers[_9]=`${fv} Credential=${a.accessKeyId}/${d}, SignedHeaders=${aE(m)}, Signature=${y}`,c}createCanonicalRequest(e,r,n){const i=Object.keys(r).sort();return`${e.method} +***************************************************************************** */var Sp=function(t,e){return Sp=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])},Sp(t,e)};function DG(t,e){Sp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ap=function(){return Ap=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 BG(t,e){return function(r,n){e(r,n,t)}}function FG(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function jG(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 zG(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 N9(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 qG(){for(var t=[],e=0;e1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(m){u(s[0][3],m)}}function l(d){d.value instanceof Zf?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 WG(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:Zf(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function KG(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 kp=="function"?kp(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 YG(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function QG(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 JG(t){return t&&t.__esModule?t:{default:t}}function XG(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function ZG(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 eW=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Ap},__asyncDelegator:WG,__asyncGenerator:GG,__asyncValues:KG,__await:Zf,__awaiter:jG,__classPrivateFieldGet:XG,__classPrivateFieldSet:ZG,__createBinding:UG,__decorate:LG,__exportStar:VG,__extends:DG,__generator:zG,__importDefault:JG,__importStar:QG,__makeTemplateObject:YG,__metadata:FG,__param:BG,__read:N9,__rest:OG,__spread:qG,__spreadArrays:HG,__values:kp},Symbol.toStringTag,{value:"Module"})),xo=jh(eW);var pv={},wc={};const tW=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)},rW=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 nW(t){return new TextEncoder().encode(t)}function iW(t){return new TextDecoder("utf-8").decode(t)}const sW=t=>typeof TextEncoder=="function"?nW(t):tW(t),oW=t=>typeof TextDecoder=="function"?iW(t):rW(t),aW=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:sW,toUtf8:oW},Symbol.toStringTag,{value:"Module"})),$9=jh(aW);var r4;function lW(){if(r4)return wc;r4=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.convertToBuffer=void 0;var t=$9,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 wc.convertToBuffer=r,wc}var Ec={},n4;function cW(){if(n4)return Ec;n4=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return Ec.isEmptyData=t,Ec}var Cc={},i4;function fW(){if(i4)return Cc;i4=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}return Cc.numToUint8=t,Cc}var Sc={},s4;function uW(){if(s4)return Sc;s4=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var r=new Uint32Array(e.length),n=0;n>>8^o[(this.checksum^m)&255]}}catch(y){f={error:y}}finally{try{v&&!v.done&&(u=d.return)&&u.call(d)}finally{if(f)throw f.error}}return this},l.prototype.digest=function(){return(this.checksum^4294967295)>>>0},l}();t.Crc32=i;var s=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],o=(0,r.uint32ArrayFrom)(s),a=dW();Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})}(yv)),yv}D9();const O9={},Rp={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),O9[t]=e,Rp[e]=t}function hW(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;r9223372036854776e3||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&&c4(r),new vf(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&c4(e),parseInt(Cn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function c4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}class vW{constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){const r=[];for(const s of Object.keys(e)){const o=this.fromUtf8(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=this.fromUtf8(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(vf.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!CW.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(hW(e.value.replace(/\-/g,"")),1),u}}parse(e){const r={};let n=0;for(;nt[ao]||(t[ao]={}),ni=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},ql=t=>new TextEncoder().encode(t),yf=t=>typeof t=="string"?ql(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),Cu=t=>new TextDecoder("utf-8").decode(t),AW="X-Amz-Algorithm",kW="X-Amz-Credential",L9="X-Amz-Date",RW="X-Amz-SignedHeaders",PW="X-Amz-Expires",B9="X-Amz-Signature",F9="X-Amz-Security-Token",j9="authorization",z9=L9.toLowerCase(),TW="date",_W=[j9,z9,TW],MW=B9.toLowerCase(),Pp="x-amz-content-sha256",IW=F9.toLowerCase(),NW={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},$W=/^proxy-/,DW=/^sec-/,mv="AWS4-HMAC-SHA256",OW="AWS4-HMAC-SHA256-PAYLOAD",LW="UNSIGNED-PAYLOAD",BW=50,U9="aws4_request",FW=60*60*24*7,fd={},gv=[],xv=(t,e,r)=>`${t}/${e}/${r}/${U9}`,jW=async(t,e,r,n,i)=>{const s=await d4(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${i}:${Cn(s)}:${e.sessionToken}`;if(o in fd)return fd[o];for(gv.push(o);gv.length>BW;)delete fd[gv.shift()];let a=`AWS4${e.secretAccessKey}`;for(const l of[r,n,i,U9])a=await d4(t,a,l);return fd[o]=a},d4=(t,e,r)=>{const n=new t(e);return n.update(yf(r)),n.digest()},h4=({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 NW||e!=null&&e.has(s)||$W.test(s)||DW.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[i].trim().replace(/\s+/g," "))}return n},Oo=t=>encodeURIComponent(t).replace(/[!'()*]/g,zW),zW=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,UW=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===MW)continue;e.push(n);const i=t[n];typeof i=="string"?r[n]=`${Oo(n)}=${Oo(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${Oo(n)}=${Oo(o)}`]),[]).sort().join("&"))}return e.map(n=>r[n]).filter(n=>n).join("&")},VW=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",bv=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)||VW(e)){const n=new r;return n.update(yf(e)),Cn(await n.digest())}return LW},qW=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},V9=({headers:t,query:e,...r})=>({...r,headers:{...t},query:e?HW(e):void 0}),HW=t=>Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{}),GW=(t,e={})=>{var i;const{headers:r,query:n={}}=typeof t.clone=="function"?t.clone():V9(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}},v4=t=>{t=typeof t.clone=="function"?t.clone():V9(t);for(const e of Object.keys(t.headers))_W.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},WW=t=>KW(t).toISOString().replace(/\.\d{3}Z$/,"Z"),KW=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class y4{constructor({applyChecksum:e,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerMarshaller=new vW(Cu,ql),this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=ni(n),this.credentialProvider=ni(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}=ud(n);if(i>FW)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const m=xv(v,u,c??this.service),y=GW(v4(e),{unhoistableHeaders:o});f.sessionToken&&(y.query[F9]=f.sessionToken),y.query[AW]=mv,y.query[kW]=`${f.accessKeyId}/${m}`,y.query[L9]=d,y.query[PW]=i.toString(10);const w=h4(y,s,a);return y.query[RW]=p4(w),y.query[B9]=await this.getSignature(d,m,this.getSigningKey(f,u,v,c),this.createCanonicalRequest(y,w,await bv(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}=ud(n),f=xv(l,a,o??this.service),u=await bv({headers:{},body:r},this.sha256),d=new this.sha256;d.update(e);const v=Cn(await d.digest()),m=[OW,c,f,i,v,u].join(` +`);return this.signString(m,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerMarshaller.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}=ud(r),l=new this.sha256(await this.getSigningKey(s,o,a,i));return l.update(yf(e)),Cn(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=v4(e),{longDate:f,shortDate:u}=ud(r),d=xv(u,l,o??this.service);c.headers[z9]=f,a.sessionToken&&(c.headers[IW]=a.sessionToken);const v=await bv(c,this.sha256);!qW(Pp,c.headers)&&this.applyChecksum&&(c.headers[Pp]=v);const m=h4(c,i,n),y=await this.getSignature(f,d,this.getSigningKey(a,l,u,o),this.createCanonicalRequest(c,m,v));return c.headers[j9]=`${mv} Credential=${a.accessKeyId}/${d}, SignedHeaders=${p4(m)}, Signature=${y}`,c}createCanonicalRequest(e,r,n){const i=Object.keys(r).sort();return`${e.method} ${this.getCanonicalPath(e)} -${dW(e)} +${UW(e)} ${i.map(s=>`${s}:${r[s]}`).join(` `)} ${i.join(";")} -${n}`}async createStringToSign(e,r,n){const i=new this.sha256;i.update(vf(n));const s=await i.digest();return`${fv} +${n}`}async createStringToSign(e,r,n){const i=new this.sha256;i.update(yf(n));const s=await i.digest();return`${mv} ${e} ${r} -${Cn(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 encodeURIComponent(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(vf(s)),Cn(await o.digest())}getSigningKey(e,r,n,i){return fW(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 ld=t=>{const e=mW(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.slice(0,8)}},aE=t=>Object.keys(t).sort().join(";"),xW=3e5,Ng=t=>{const e=t.credentials?bW(t.credentials):t.credentialDefaultProvider(t),{signingEscapePath:r=!0,systemClockOffset:n=t.systemClockOffset||0,sha256:i}=t;let s;return t.signer?s=ni(t.signer):t.regionInfoProvider?s=()=>ni(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||oE;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await ni(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||oE;return new f(c)},{...t,systemClockOffset:n,signingEscapePath:r,credentials:e,signer:s}},bW=t=>typeof t=="function"?E9(t,e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()e.expiration!==void 0):ni(t),$9=t=>new Date(Date.now()+t),wW=(t,e)=>Math.abs($9(e).getTime()-t)>=3e5,lE=(t,e)=>{const r=Date.parse(t);return wW(r,e)?r-Date.now():e},EW=t=>(e,r)=>async function(n){var u,d,v,m;if(!Mn.isInstance(n.request))return e(n);const i=(v=(d=(u=r.endpointV2)==null?void 0:u.properties)==null?void 0:d.authSchemes)==null?void 0:v[0],s=(i==null?void 0:i.name)==="sigv4a"?(m=i==null?void 0:i.signingRegionSet)==null?void 0:m.join(","):void 0,o=await t.signer(i);let a;const l={signingDate:$9(t.systemClockOffset),signingRegion:s||r.signing_region,signingService:r.signing_service};if(r.s3ExpressIdentity){if(a=await o.signWithCredentials(n.request,r.s3ExpressIdentity,l),a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.")}else a=await o.sign(n.request,l);const c=await e({...n,request:a}).catch(y=>{const w=y.ServerTime??cE(y.$response);throw w&&(t.systemClockOffset=lE(w,t.systemClockOffset)),y}),f=cE(c.response);return f&&(t.systemClockOffset=lE(f,t.systemClockOffset)),c},cE=t=>{var e,r;return $h.isInstance(t)?((e=t.headers)==null?void 0:e.date)??((r=t.headers)==null?void 0:r.Date):void 0},CW={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},SW=t=>({applyToStack:e=>{e.addRelativeTo(EW(t),CW)}});function $g(t){return{...t,customUserAgent:typeof t.customUserAgent=="string"?[[t.customUserAgent]]:t.customUserAgent}}const AW=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}$"),D9=t=>AW.test(t)||t.startsWith("[")&&t.endsWith("]"),kW=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Dg=(t,e=!1)=>{if(!e)return kW.test(t);const r=t.split(".");for(const n of r)if(!Dg(n))return!1;return!0},Ep={},Zf="endpoints";function oo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${oo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(oo).join(", ")})`:JSON.stringify(t,null,2)}class dn extends Error{constructor(e){super(e),this.name="EndpointError"}}const RW=(t,e)=>t===e,PW=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 dn(`Path: '${t}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new dn(`Invalid array index: '${s}' in path: '${t}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},O9=(t,e)=>PW(e).reduce((r,n)=>{if(typeof r!="object")throw new dn(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),TW=t=>t!=null,_W=t=>!t,vv={[Jf.HTTP]:80,[Jf.HTTPS]:443},MW=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:v,protocol:m="",path:y="",query:w={}}=t,b=new URL(`${m}//${d}${v?`:${v}`:""}${y}`);return b.search=Object.entries(w).map(([x,S])=>`${x}=${S}`).join("&"),b}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=D9(i),f=r.includes(`${n}:${vv[l]}`)||typeof t=="string"&&t.includes(`${n}:${vv[l]}`),u=`${n}${f?`:${vv[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},IW=(t,e)=>t===e,NW=(t,e,r,n)=>e>=r||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),DW={booleanEquals:RW,getAttr:O9,isSet:TW,isValidHostLabel:Dg,not:_W,parseURL:MW,stringEquals:IW,substring:NW,uriEncode:$W},L9=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let i=0;for(;i({...e.endpointParams,...e.referenceRecord})[t],P0=(t,e,r)=>{if(typeof t=="string")return L9(t,r);if(t.fn)return B9(t,r);if(t.ref)return OW(t,r);throw new dn(`'${e}': ${String(t)} is not a string, function or reference.`)},B9=({fn:t,argv:e},r)=>{const n=e.map(s=>["boolean","number"].includes(typeof s)?s:P0(s,"arg",r)),i=t.split(".");return i[0]in Ep&&i[1]!=null?Ep[i[0]][i[1]](...n):DW[t](...n)},LW=({assign:t,...e},r)=>{var i,s;if(t&&t in r.referenceRecord)throw new dn(`'${t}' is already defined in Reference Record.`);const n=B9(e,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,Zf,`evaluateCondition: ${oo(e)} = ${oo(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},Og=(t=[],e)=>{var n,i;const r={};for(const s of t){const{result:o,toAssign:a}=LW(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,Zf,`assign: ${a.name} := ${oo(a.value)}`))}return{result:!0,referenceRecord:r}},BW=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=P0(s,"Header value entry",e);if(typeof o!="string")throw new dn(`Header '${n}' value '${o}' is not a string`);return o})}),{}),F9=(t,e)=>{if(Array.isArray(t))return t.map(r=>F9(r,e));switch(typeof t){case"string":return L9(t,e);case"object":if(t===null)throw new dn(`Unexpected endpoint property: ${t}`);return j9(t,e);case"boolean":return t;default:throw new dn(`Unexpected endpoint property type: ${typeof t}`)}},j9=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:F9(i,e)}),{}),FW=(t,e)=>{const r=P0(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 dn(`Endpoint URL must be a string, got ${typeof r}`)},jW=(t,e)=>{var f,u;const{conditions:r,endpoint:n}=t,{result:i,referenceRecord:s}=Og(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,Zf,`Resolving endpoint from template: ${oo(n)}`),{...c!=null&&{headers:BW(c,o)},...l!=null&&{properties:j9(l,o)},url:FW(a,o)}},zW=(t,e)=>{const{conditions:r,error:n}=t,{result:i,referenceRecord:s}=Og(r,e);if(i)throw new dn(P0(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...s}}))},UW=(t,e)=>{const{conditions:r,rules:n}=t,{result:i,referenceRecord:s}=Og(r,e);if(i)return z9(n,{...e,referenceRecord:{...e.referenceRecord,...s}})},z9=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const n=jW(r,e);if(n)return n}else if(r.type==="error")zW(r,e);else if(r.type==="tree"){const n=UW(r,e);if(n)return n}else throw new dn(`Unknown endpoint rule: ${r}`);throw new dn("Rules evaluation failed")},Lg=(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,`${Zf} Initial EndpointParams: ${oo(r)}`);const o=Object.entries(i).filter(([,m])=>m.default!=null).map(([m,y])=>[m,y.default]);if(o.length>0)for(const[m,y]of o)r[m]=r[m]??y;const a=Object.entries(i).filter(([,m])=>m.required).map(([m])=>m);for(const m of a)if(r[m]==null)throw new dn(`Missing required parameter: '${m}'`);const l=z9(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=e.endpointParams)!=null&&u.Endpoint)try{const m=new URL(e.endpointParams.Endpoint),{protocol:y,port:w}=m;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=e.logger)==null?void 0:d.debug)==null||v.call(d,`${Zf} Resolved endpoint: ${oo(l)}`),l},U9=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!U9(r))return!1;return!0}return!(!Dg(t)||t.length<3||t.length>63||t!==t.toLowerCase()||D9(t))},VW=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}},qW=[{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)"},"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:{}},{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:{}}],HW="1.1",GW={partitions:qW,version:HW};let WW=GW;const KW=t=>{const{partitions:e}=WW;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}},YW={isVirtualHostableS3Bucket:U9,parseArn:VW,partition:KW};Ep.aws=YW;const fE="user-agent",yv="x-amz-user-agent",uE=" ",pv="/",QW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,JW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,dE="-",XW=t=>(e,r)=>async n=>{var u,d;const{request:i}=n;if(!Mn.isInstance(i))return e(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(mv))||[],a=(await t.defaultUserAgentProvider()).map(mv),l=((d=t==null?void 0:t.customUserAgent)==null?void 0:d.map(mv))||[],c=[].concat([...a,...o,...l]).join(uE),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(uE);return t.runtime!=="browser"?(f&&(s[yv]=s[yv]?`${s[fE]} ${f}`:f),s[fE]=c):s[yv]=c,e({...n,request:i})},mv=t=>{var o;const e=t[0].split(pv).map(a=>a.replace(QW,dE)).join(pv),r=(o=t[1])==null?void 0:o.replace(JW,dE),n=e.indexOf(pv),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}`}},"")},ZW={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Bg=t=>({applyToStack:e=>{e.add(XW(t),ZW)}});var hE;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(hE||(hE={}));const Fg=!1,jg=!1,V9=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),vE=t=>V9(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,zg=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return{...t,region:async()=>{if(typeof e=="string")return vE(e);const n=await e();return vE(n)},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return V9(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}},yE="content-length";function eK(t){return e=>async r=>{const n=r.request;if(Mn.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(yE)===-1)try{const o=t(i);n.headers={...n.headers,[yE]:String(o)}}catch{}}return e({...r,request:n})}}const tK={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Ug=t=>({applyToStack:e=>{e.add(eK(t.bodyLengthChecker),tK)}}),rK=async t=>{const e=(t==null?void 0:t.Bucket)||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),aK(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!oK(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},nK=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,iK=/(\d+\.){3}\d+/,sK=/\.\./,oK=t=>nK.test(t)&&!iK.test(t)&&!sK.test(t),aK=t=>{const[e,r,n,i,s,o]=t.split(":"),a=e==="arn"&&t.split(":").length>=6,l=[e,r,n,s,o].filter(Boolean).length===5;if(a&&!l)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return e==="arn"&&!!r&&!!n&&!!s&&!!o},lK=(t,e,r)=>{const n=async()=>{const i=r[t]??r[e];return typeof i=="function"?i():i};return 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},cK=async t=>{};function fK(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 Cl=t=>{if(typeof t=="string")return Cl(new URL(t));const{hostname:e,pathname:r,port:n,protocol:i,search:s}=t;let o;return s&&(o=fK(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}},q9=t=>typeof t=="object"?"url"in t?Cl(t.url):t:Cl(t),uK=async(t,e,r,n)=>{if(!r.endpoint){const o=await cK(r.serviceId||"");o&&(r.endpoint=()=>Promise.resolve(q9(o)))}const i=await dK(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},dK=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 lK(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 rK(n),n},hK=({config:t,instructions:e})=>(r,n)=>async i=>{var a,l,c;const s=await uK(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=KG(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})},vK=(t,e)=>(r,n)=>async i=>{const{response:s}=await r(i);try{const o=await e(s,t);return{response:s,output:o}}catch(o){if(Object.defineProperty(o,"$response",{value:s}),!("$metadata"in o)){const a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";o.message+=` - `+a}throw o}},yK=(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})},pK={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},H9={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function ql(t,e,r){return{applyToStack:n=>{n.add(vK(t,r),pK),n.add(yK(t,e),H9)}}}const mK={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:H9.name},Hl=(t,e)=>({applyToStack:r=>{r.addRelativeTo(hK({config:t,instructions:e}),mK)}}),Vg=t=>{const e=t.tls??!0,{endpoint:r}=t,n=r!=null?async()=>q9(await ni(r)()):void 0;return{...t,endpoint:n,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:ni(t.useDualstackEndpoint??!1),useFipsEndpoint:ni(t.useFipsEndpoint??!1)}};var Sl;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Sl||(Sl={}));const Al=3,qg=Sl.STANDARD,gK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],xK=["TimeoutError","RequestTimeout","RequestTimeoutException"],bK=[500,502,503,504],wK=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],G9=t=>{var e,r;return((e=t.$metadata)==null?void 0:e.httpStatusCode)===429||gK.includes(t.name)||((r=t.$retryable)==null?void 0:r.throttling)==!0},W9=t=>{var e;return xK.includes(t.name)||wK.includes((t==null?void 0:t.code)||"")||bK.includes(((e=t.$metadata)==null?void 0:e.httpStatusCode)||0)},EK=t=>{var e;if(((e=t.$metadata)==null?void 0:e.httpStatusCode)!==void 0){const r=t.$metadata.httpStatusCode;return 500<=r&&r<=599&&!W9(t)}return!1};class CK{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(),G9(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 Cp=100,K9=20*1e3,SK=500,pE=500,AK=5,kK=10,RK=1,PK="amz-sdk-invocation-id",TK="amz-sdk-request",_K=()=>{let t=Cp;return{computeNextBackoffDelay:n=>Math.floor(Math.min(K9,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},mE=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(K9,t),getRetryCost:()=>r});class Y9{constructor(e){this.maxAttempts=e,this.mode=Sl.STANDARD,this.capacity=pE,this.retryBackoffStrategy=_K(),this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return mE({retryDelay:Cp,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"?SK:Cp);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,mE({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(pE,this.capacity+(e.getRetryCost()??RK))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Al}`),Al}}shouldRetry(e,r,n){return e.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?kK:AK}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class MK{constructor(e,r){this.maxAttemptsProvider=e,this.mode=Sl.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new CK,this.standardRetryStrategy=new Y9(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)}}var cd,IK=new Uint8Array(16);function NK(){if(!cd&&(cd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!cd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cd(IK)}const $K=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function DK(t){return typeof t=="string"&&$K.test(t)}var yr=[];for(var gv=0;gv<256;++gv)yr.push((gv+256).toString(16).substr(1));function OK(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(yr[t[e+0]]+yr[t[e+1]]+yr[t[e+2]]+yr[t[e+3]]+"-"+yr[t[e+4]]+yr[t[e+5]]+"-"+yr[t[e+6]]+yr[t[e+7]]+"-"+yr[t[e+8]]+yr[t[e+9]]+"-"+yr[t[e+10]]+yr[t[e+11]]+yr[t[e+12]]+yr[t[e+13]]+yr[t[e+14]]+yr[t[e+15]]).toLowerCase();if(!DK(r))throw TypeError("Stringified UUID is invalid");return r}function LK(t,e,r){t=t||{};var n=t.random||(t.rng||NK)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return OK(n)}const BK=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}`),Hg=t=>{const{retryStrategy:e}=t,r=ni(t.maxAttempts??Al);return{...t,maxAttempts:r,retryStrategy:async()=>e||(await ni(t.retryMode)()===Sl.ADAPTIVE?new MK(r):new Y9(r))}},FK=t=>(e,r)=>async n=>{let i=await t.retryStrategy();const s=await t.maxAttempts();if(jK(i)){i=i;let o=await i.acquireInitialRetryToken(r.partition_id),a=new Error,l=0,c=0;const{request:f}=n;for(Mn.isInstance(f)&&(f.headers[PK]=LK());;)try{Mn.isInstance(f)&&(f.headers[TK]=`attempt=${l+1}; max=${s}`);const{response:u,output:d}=await e(n);return i.recordSuccess(o),d.$metadata.attempts=l+1,d.$metadata.totalRetryDelay=c,{response:u,output:d}}catch(u){const d=zK(u);a=BK(u);try{o=await i.refreshRetryTokenForRetry(o,d)}catch{throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=l+1,a.$metadata.totalRetryDelay=c,a}l=o.getRetryCount();const v=o.getRetryDelay();c+=v,await new Promise(m=>setTimeout(m,v))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)},jK=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",zK=t=>{const e={errorType:UK(t)},r=qK(t.$response);return r&&(e.retryAfterHint=r),e},UK=t=>G9(t)?"THROTTLING":W9(t)?"TRANSIENT":EK(t)?"SERVER_ERROR":"CLIENT_ERROR",VK={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Gg=t=>({applyToStack:e=>{e.add(FK(t),VK)}}),qK=t=>{if(!$h.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)};class Wg{trace(){}debug(){}info(){}warn(){}error(){}}const wo=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},Rs=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Dh=()=>{let t=[],e=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>gE[v.step]-gE[d.step]||xE[v.priority||"normal"]-xE[d.priority||"normal"]),s=u=>{let d=!1;const v=m=>{const y=wo(m.name,m.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=m=>{if(m.middleware===u){d=!0;for(const y of wo(m.name,m.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=[],m={};return t.forEach(w=>{const b={...w,before:[],after:[]};for(const x of wo(b.name,b.aliases))m[x]=b;d.push(b)}),e.forEach(w=>{const b={...w,before:[],after:[]};for(const x of wo(b.name,b.aliases))m[x]=b;v.push(b)}),v.forEach(w=>{if(w.toMiddleware){const b=m[w.toMiddleware];if(b===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${Rs(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&b.after.push(w),w.relation==="before"&&b.before.push(w)}}),i(d).map(l).reduce((w,b)=>(w.push(...b),w),[])},f={add:(u,d={})=>{const{name:v,override:m,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},b=wo(v,y);if(b.length>0){if(b.some(x=>n.has(x))){if(!m)throw new Error(`Duplicate middleware name '${Rs(v,y)}'`);for(const x of b){const S=t.findIndex(_=>{var D;return _.name===x||((D=_.aliases)==null?void 0:D.some($=>$===x))});if(S===-1)continue;const A=t[S];if(A.step!==w.step||w.priority!==A.priority)throw new Error(`"${Rs(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${Rs(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(S,1)}}for(const x of b)n.add(x)}t.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:m,aliases:y}=d,w={middleware:u,...d},b=wo(v,y);if(b.length>0){if(b.some(x=>n.has(x))){if(!m)throw new Error(`Duplicate middleware name '${Rs(v,y)}'`);for(const x of b){const S=e.findIndex(_=>{var D;return _.name===x||((D=_.aliases)==null?void 0:D.some($=>$===x))});if(S===-1)continue;const A=e[S];if(A.toMiddleware!==w.toMiddleware||A.relation!==w.relation)throw new Error(`"${Rs(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${Rs(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(S,1)}}for(const x of b)n.add(x)}e.push(w)},clone:()=>a(Dh()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=m=>{const{tags:y,name:w,aliases:b}=m;if(y&&y.includes(u)){const x=wo(w,b);for(const S of x)n.delete(S);return d=!0,!1}return!0};return t=t.filter(v),e=e.filter(v),d},concat:u=>{var v;const d=a(Dh());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 Rs(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(m=>m.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},gE={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},xE={high:3,normal:2,low:1};class Kg{constructor(e){this.middlewareStack=Dh(),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 ao={},Gl=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);ao[n]=t,Gl[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;ao[n]=i,Gl[i]=n}for(let t=0;t<10;t++){ao[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;ao[e]=r,Gl[r]=e}ao["+"]=62;Gl[62]="+";ao["/"]=63;Gl[63]="/";const sl=6,yf=8,HK=63,wu=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>=sl;const a=i/4*3;s>>=o%yf;const l=Math.floor(o/yf);for(let c=0;c>f)}}return new Uint8Array(r)};function T0(t){let e="";for(let r=0;r>a]}e+="==".slice(0,4-s)}return e}function GK(t,e="utf-8"){return e==="base64"?T0(t):bu(t)}function WK(t,e){return e==="base64"?Uo.mutate(wu(t)):Uo.mutate(Vl(t))}class Uo extends Uint8Array{static fromString(e,r="utf-8"){switch(typeof e){case"string":return WK(e,r);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,Uo.prototype),e}transformToString(e="utf-8"){return GK(this,e)}}function KK(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=Do(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 QK={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class Yg{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=KK(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}`,d={body:c==="GET"||c==="HEAD"?void 0:e.body,headers:new Headers(e.headers),method:c};typeof AbortController<"u"&&(d.signal=r),QK.supported&&(d.keepalive=i);const v=new Request(f,d),m=[fetch(v).then(y=>{const w=y.headers,b={};for(const S of w.entries())b[S[0]]=S[1];return y.body!=null?{response:new $h({headers:b,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(S=>({response:new $h({headers:b,reason:y.statusText,statusCode:y.status,body:S})}))}),YK(n)];return r&&m.push(new Promise((y,w)=>{r.onabort=()=>{const b=new Error("Request aborted");b.name="AbortError",w(b)}})),Promise.race(m)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=r,n))}httpHandlerConfigs(){return this.config??{}}}const Qg=t=>typeof Blob=="function"&&t instanceof Blob?JK(t):XK(t);async function JK(t){const e=await ZK(t),r=wu(e);return new Uint8Array(r)}async function XK(t){let e=new Uint8Array(0);const r=t.getReader();let n=!1;for(;!n;){const{done:i,value:s}=await r.read();if(s){const o=e;e=new Uint8Array(o.length+s.length),e.set(o),e.set(s,o.length)}n=i}return e}function ZK(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 Jg=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return Uo.mutate(t);if(!t)return Uo.mutate(new Uint8Array);const r=e.streamCollector(t);return Uo.mutate(await r)};class Wl{constructor(){this.middlewareStack=Dh()}}const sr="***SensitiveInformation***",Sp=t=>{if(t!=null){if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&J9.warn(Q9(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},eY=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},pf=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return J9.warn(Q9(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},tY=t=>Sp(typeof t=="string"?nY(t):t),rY=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,nY=t=>{const e=t.match(rY);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},Q9=t=>String(new TypeError(t).stack||t).split(` +${Cn(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 encodeURIComponent(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(yf(s)),Cn(await o.digest())}getSigningKey(e,r,n,i){return jW(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 ud=t=>{const e=WW(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.slice(0,8)}},p4=t=>Object.keys(t).sort().join(";"),YW=3e5,zg=t=>{const e=t.credentials?QW(t.credentials):t.credentialDefaultProvider(t),{signingEscapePath:r=!0,systemClockOffset:n=t.systemClockOffset||0,sha256:i}=t;let s;return t.signer?s=ni(t.signer):t.regionInfoProvider?s=()=>ni(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||y4;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await ni(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||y4;return new f(c)},{...t,systemClockOffset:n,signingEscapePath:r,credentials:e,signer:s}},QW=t=>typeof t=="function"?I9(t,e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()e.expiration!==void 0):ni(t),q9=t=>new Date(Date.now()+t),JW=(t,e)=>Math.abs(q9(e).getTime()-t)>=3e5,m4=(t,e)=>{const r=Date.parse(t);return JW(r,e)?r-Date.now():e},XW=t=>(e,r)=>async function(n){var u,d,v,m;if(!Mn.isInstance(n.request))return e(n);const i=(v=(d=(u=r.endpointV2)==null?void 0:u.properties)==null?void 0:d.authSchemes)==null?void 0:v[0],s=(i==null?void 0:i.name)==="sigv4a"?(m=i==null?void 0:i.signingRegionSet)==null?void 0:m.join(","):void 0,o=await t.signer(i);let a;const l={signingDate:q9(t.systemClockOffset),signingRegion:s||r.signing_region,signingService:r.signing_service};if(r.s3ExpressIdentity){if(a=await o.signWithCredentials(n.request,r.s3ExpressIdentity,l),a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.")}else a=await o.sign(n.request,l);const c=await e({...n,request:a}).catch(y=>{const w=y.ServerTime??g4(y.$response);throw w&&(t.systemClockOffset=m4(w,t.systemClockOffset)),y}),f=g4(c.response);return f&&(t.systemClockOffset=m4(f,t.systemClockOffset)),c},g4=t=>{var e,r;return Bh.isInstance(t)?((e=t.headers)==null?void 0:e.date)??((r=t.headers)==null?void 0:r.Date):void 0},ZW={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},eK=t=>({applyToStack:e=>{e.addRelativeTo(XW(t),ZW)}});function Ug(t){return{...t,customUserAgent:typeof t.customUserAgent=="string"?[[t.customUserAgent]]:t.customUserAgent}}const tK=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}$"),H9=t=>tK.test(t)||t.startsWith("[")&&t.endsWith("]"),rK=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Vg=(t,e=!1)=>{if(!e)return rK.test(t);const r=t.split(".");for(const n of r)if(!Vg(n))return!1;return!0},Tp={},eu="endpoints";function lo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${lo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(lo).join(", ")})`:JSON.stringify(t,null,2)}class dn extends Error{constructor(e){super(e),this.name="EndpointError"}}const nK=(t,e)=>t===e,iK=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 dn(`Path: '${t}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new dn(`Invalid array index: '${s}' in path: '${t}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},G9=(t,e)=>iK(e).reduce((r,n)=>{if(typeof r!="object")throw new dn(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),sK=t=>t!=null,oK=t=>!t,wv={[Xf.HTTP]:80,[Xf.HTTPS]:443},aK=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:v,protocol:m="",path:y="",query:w={}}=t,x=new URL(`${m}//${d}${v?`:${v}`:""}${y}`);return x.search=Object.entries(w).map(([b,S])=>`${b}=${S}`).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(Xf).includes(l))return null;const c=H9(i),f=r.includes(`${n}:${wv[l]}`)||typeof t=="string"&&t.includes(`${n}:${wv[l]}`),u=`${n}${f?`:${wv[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},lK=(t,e)=>t===e,cK=(t,e,r,n)=>e>=r||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),uK={booleanEquals:nK,getAttr:G9,isSet:sK,isValidHostLabel:Vg,not:oK,parseURL:aK,stringEquals:lK,substring:cK,uriEncode:fK},W9=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let i=0;for(;i({...e.endpointParams,...e.referenceRecord})[t],$0=(t,e,r)=>{if(typeof t=="string")return W9(t,r);if(t.fn)return K9(t,r);if(t.ref)return dK(t,r);throw new dn(`'${e}': ${String(t)} is not a string, function or reference.`)},K9=({fn:t,argv:e},r)=>{const n=e.map(s=>["boolean","number"].includes(typeof s)?s:$0(s,"arg",r)),i=t.split(".");return i[0]in Tp&&i[1]!=null?Tp[i[0]][i[1]](...n):uK[t](...n)},hK=({assign:t,...e},r)=>{var i,s;if(t&&t in r.referenceRecord)throw new dn(`'${t}' is already defined in Reference Record.`);const n=K9(e,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,eu,`evaluateCondition: ${lo(e)} = ${lo(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},qg=(t=[],e)=>{var n,i;const r={};for(const s of t){const{result:o,toAssign:a}=hK(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,eu,`assign: ${a.name} := ${lo(a.value)}`))}return{result:!0,referenceRecord:r}},vK=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=$0(s,"Header value entry",e);if(typeof o!="string")throw new dn(`Header '${n}' value '${o}' is not a string`);return o})}),{}),Y9=(t,e)=>{if(Array.isArray(t))return t.map(r=>Y9(r,e));switch(typeof t){case"string":return W9(t,e);case"object":if(t===null)throw new dn(`Unexpected endpoint property: ${t}`);return Q9(t,e);case"boolean":return t;default:throw new dn(`Unexpected endpoint property type: ${typeof t}`)}},Q9=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:Y9(i,e)}),{}),yK=(t,e)=>{const r=$0(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 dn(`Endpoint URL must be a string, got ${typeof r}`)},pK=(t,e)=>{var f,u;const{conditions:r,endpoint:n}=t,{result:i,referenceRecord:s}=qg(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,eu,`Resolving endpoint from template: ${lo(n)}`),{...c!=null&&{headers:vK(c,o)},...l!=null&&{properties:Q9(l,o)},url:yK(a,o)}},mK=(t,e)=>{const{conditions:r,error:n}=t,{result:i,referenceRecord:s}=qg(r,e);if(i)throw new dn($0(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...s}}))},gK=(t,e)=>{const{conditions:r,rules:n}=t,{result:i,referenceRecord:s}=qg(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=pK(r,e);if(n)return n}else if(r.type==="error")mK(r,e);else if(r.type==="tree"){const n=gK(r,e);if(n)return n}else throw new dn(`Unknown endpoint rule: ${r}`);throw new dn("Rules evaluation failed")},Hg=(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,`${eu} Initial EndpointParams: ${lo(r)}`);const o=Object.entries(i).filter(([,m])=>m.default!=null).map(([m,y])=>[m,y.default]);if(o.length>0)for(const[m,y]of o)r[m]=r[m]??y;const a=Object.entries(i).filter(([,m])=>m.required).map(([m])=>m);for(const m of a)if(r[m]==null)throw new dn(`Missing required parameter: '${m}'`);const l=J9(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=e.endpointParams)!=null&&u.Endpoint)try{const m=new URL(e.endpointParams.Endpoint),{protocol:y,port:w}=m;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=e.logger)==null?void 0:d.debug)==null||v.call(d,`${eu} Resolved endpoint: ${lo(l)}`),l},X9=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!X9(r))return!1;return!0}return!(!Vg(t)||t.length<3||t.length>63||t!==t.toLowerCase()||H9(t))},xK=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}},bK=[{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)"},"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:{}},{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:{}}],wK="1.1",EK={partitions:bK,version:wK};let CK=EK;const SK=t=>{const{partitions:e}=CK;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}},AK={isVirtualHostableS3Bucket:X9,parseArn:xK,partition:SK};Tp.aws=AK;const x4="user-agent",Ev="x-amz-user-agent",b4=" ",Cv="/",kK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,RK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,w4="-",PK=t=>(e,r)=>async n=>{var u,d;const{request:i}=n;if(!Mn.isInstance(i))return e(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(Sv))||[],a=(await t.defaultUserAgentProvider()).map(Sv),l=((d=t==null?void 0:t.customUserAgent)==null?void 0:d.map(Sv))||[],c=[].concat([...a,...o,...l]).join(b4),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(b4);return t.runtime!=="browser"?(f&&(s[Ev]=s[Ev]?`${s[x4]} ${f}`:f),s[x4]=c):s[Ev]=c,e({...n,request:i})},Sv=t=>{var o;const e=t[0].split(Cv).map(a=>a.replace(kK,w4)).join(Cv),r=(o=t[1])==null?void 0:o.replace(RK,w4),n=e.indexOf(Cv),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}`}},"")},TK={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Gg=t=>({applyToStack:e=>{e.add(PK(t),TK)}});var E4;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(E4||(E4={}));const Wg=!1,Kg=!1,Z9=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),C4=t=>Z9(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,Yg=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return{...t,region:async()=>{if(typeof e=="string")return C4(e);const n=await e();return C4(n)},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return Z9(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}},S4="content-length";function _K(t){return e=>async r=>{const n=r.request;if(Mn.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(S4)===-1)try{const o=t(i);n.headers={...n.headers,[S4]:String(o)}}catch{}}return e({...r,request:n})}}const MK={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Qg=t=>({applyToStack:e=>{e.add(_K(t.bodyLengthChecker),MK)}}),IK=async t=>{const e=(t==null?void 0:t.Bucket)||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),LK(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!OK(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},NK=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,$K=/(\d+\.){3}\d+/,DK=/\.\./,OK=t=>NK.test(t)&&!$K.test(t)&&!DK.test(t),LK=t=>{const[e,r,n,i,s,o]=t.split(":"),a=e==="arn"&&t.split(":").length>=6,l=[e,r,n,s,o].filter(Boolean).length===5;if(a&&!l)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return e==="arn"&&!!r&&!!n&&!!s&&!!o},BK=(t,e,r)=>{const n=async()=>{const i=r[t]??r[e];return typeof i=="function"?i():i};return 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},FK=async t=>{};function jK(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 Sl=t=>{if(typeof t=="string")return Sl(new URL(t));const{hostname:e,pathname:r,port:n,protocol:i,search:s}=t;let o;return s&&(o=jK(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}},ek=t=>typeof t=="object"?"url"in t?Sl(t.url):t:Sl(t),zK=async(t,e,r,n)=>{if(!r.endpoint){const o=await FK(r.serviceId||"");o&&(r.endpoint=()=>Promise.resolve(ek(o)))}const i=await UK(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},UK=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 BK(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 IK(n),n},VK=({config:t,instructions:e})=>(r,n)=>async i=>{var a,l,c;const s=await zK(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=SW(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})},qK=(t,e)=>(r,n)=>async i=>{const{response:s}=await r(i);try{const o=await e(s,t);return{response:s,output:o}}catch(o){if(Object.defineProperty(o,"$response",{value:s}),!("$metadata"in o)){const a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";o.message+=` + `+a}throw o}},HK=(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})},GK={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tk={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Hl(t,e,r){return{applyToStack:n=>{n.add(qK(t,r),GK),n.add(HK(t,e),tk)}}}const WK={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:tk.name},Gl=(t,e)=>({applyToStack:r=>{r.addRelativeTo(VK({config:t,instructions:e}),WK)}}),Jg=t=>{const e=t.tls??!0,{endpoint:r}=t,n=r!=null?async()=>ek(await ni(r)()):void 0;return{...t,endpoint:n,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:ni(t.useDualstackEndpoint??!1),useFipsEndpoint:ni(t.useFipsEndpoint??!1)}};var Al;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Al||(Al={}));const kl=3,Xg=Al.STANDARD,KK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],YK=["TimeoutError","RequestTimeout","RequestTimeoutException"],QK=[500,502,503,504],JK=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],rk=t=>{var e,r;return((e=t.$metadata)==null?void 0:e.httpStatusCode)===429||KK.includes(t.name)||((r=t.$retryable)==null?void 0:r.throttling)==!0},nk=t=>{var e;return YK.includes(t.name)||JK.includes((t==null?void 0:t.code)||"")||QK.includes(((e=t.$metadata)==null?void 0:e.httpStatusCode)||0)},XK=t=>{var e;if(((e=t.$metadata)==null?void 0:e.httpStatusCode)!==void 0){const r=t.$metadata.httpStatusCode;return 500<=r&&r<=599&&!nk(t)}return!1};class ZK{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(),rk(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 _p=100,ik=20*1e3,eY=500,A4=500,tY=5,rY=10,nY=1,iY="amz-sdk-invocation-id",sY="amz-sdk-request",oY=()=>{let t=_p;return{computeNextBackoffDelay:n=>Math.floor(Math.min(ik,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},k4=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(ik,t),getRetryCost:()=>r});class sk{constructor(e){this.maxAttempts=e,this.mode=Al.STANDARD,this.capacity=A4,this.retryBackoffStrategy=oY(),this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return k4({retryDelay:_p,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"?eY:_p);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,k4({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(A4,this.capacity+(e.getRetryCost()??nY))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${kl}`),kl}}shouldRetry(e,r,n){return e.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?rY:tY}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class aY{constructor(e,r){this.maxAttemptsProvider=e,this.mode=Al.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new ZK,this.standardRetryStrategy=new sk(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)}}var dd,lY=new Uint8Array(16);function cY(){if(!dd&&(dd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!dd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dd(lY)}const fY=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function uY(t){return typeof t=="string"&&fY.test(t)}var yr=[];for(var Av=0;Av<256;++Av)yr.push((Av+256).toString(16).substr(1));function dY(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(yr[t[e+0]]+yr[t[e+1]]+yr[t[e+2]]+yr[t[e+3]]+"-"+yr[t[e+4]]+yr[t[e+5]]+"-"+yr[t[e+6]]+yr[t[e+7]]+"-"+yr[t[e+8]]+yr[t[e+9]]+"-"+yr[t[e+10]]+yr[t[e+11]]+yr[t[e+12]]+yr[t[e+13]]+yr[t[e+14]]+yr[t[e+15]]).toLowerCase();if(!uY(r))throw TypeError("Stringified UUID is invalid");return r}function hY(t,e,r){t=t||{};var n=t.random||(t.rng||cY)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return dY(n)}const vY=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}`),Zg=t=>{const{retryStrategy:e}=t,r=ni(t.maxAttempts??kl);return{...t,maxAttempts:r,retryStrategy:async()=>e||(await ni(t.retryMode)()===Al.ADAPTIVE?new aY(r):new sk(r))}},yY=t=>(e,r)=>async n=>{let i=await t.retryStrategy();const s=await t.maxAttempts();if(pY(i)){i=i;let o=await i.acquireInitialRetryToken(r.partition_id),a=new Error,l=0,c=0;const{request:f}=n;for(Mn.isInstance(f)&&(f.headers[iY]=hY());;)try{Mn.isInstance(f)&&(f.headers[sY]=`attempt=${l+1}; max=${s}`);const{response:u,output:d}=await e(n);return i.recordSuccess(o),d.$metadata.attempts=l+1,d.$metadata.totalRetryDelay=c,{response:u,output:d}}catch(u){const d=mY(u);a=vY(u);try{o=await i.refreshRetryTokenForRetry(o,d)}catch{throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=l+1,a.$metadata.totalRetryDelay=c,a}l=o.getRetryCount();const v=o.getRetryDelay();c+=v,await new Promise(m=>setTimeout(m,v))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)},pY=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",mY=t=>{const e={errorType:gY(t)},r=bY(t.$response);return r&&(e.retryAfterHint=r),e},gY=t=>rk(t)?"THROTTLING":nk(t)?"TRANSIENT":XK(t)?"SERVER_ERROR":"CLIENT_ERROR",xY={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},ex=t=>({applyToStack:e=>{e.add(yY(t),xY)}}),bY=t=>{if(!Bh.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)};class tx{trace(){}debug(){}info(){}warn(){}error(){}}const Eo=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},Ts=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Fh=()=>{let t=[],e=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>R4[v.step]-R4[d.step]||P4[v.priority||"normal"]-P4[d.priority||"normal"]),s=u=>{let d=!1;const v=m=>{const y=Eo(m.name,m.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=m=>{if(m.middleware===u){d=!0;for(const y of Eo(m.name,m.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=[],m={};return t.forEach(w=>{const x={...w,before:[],after:[]};for(const b of Eo(x.name,x.aliases))m[b]=x;d.push(x)}),e.forEach(w=>{const x={...w,before:[],after:[]};for(const b of Eo(x.name,x.aliases))m[b]=x;v.push(x)}),v.forEach(w=>{if(w.toMiddleware){const x=m[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${Ts(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:m,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},x=Eo(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!m)throw new Error(`Duplicate middleware name '${Ts(v,y)}'`);for(const b of x){const S=t.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some($=>$===b))});if(S===-1)continue;const A=t[S];if(A.step!==w.step||w.priority!==A.priority)throw new Error(`"${Ts(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${Ts(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(S,1)}}for(const b of x)n.add(b)}t.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:m,aliases:y}=d,w={middleware:u,...d},x=Eo(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!m)throw new Error(`Duplicate middleware name '${Ts(v,y)}'`);for(const b of x){const S=e.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some($=>$===b))});if(S===-1)continue;const A=e[S];if(A.toMiddleware!==w.toMiddleware||A.relation!==w.relation)throw new Error(`"${Ts(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${Ts(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(S,1)}}for(const b of x)n.add(b)}e.push(w)},clone:()=>a(Fh()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=m=>{const{tags:y,name:w,aliases:x}=m;if(y&&y.includes(u)){const b=Eo(w,x);for(const S of b)n.delete(S);return d=!0,!1}return!0};return t=t.filter(v),e=e.filter(v),d},concat:u=>{var v;const d=a(Fh());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 Ts(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(m=>m.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},R4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},P4={high:3,normal:2,low:1};class rx{constructor(e){this.middlewareStack=Fh(),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 co={},Wl=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);co[n]=t,Wl[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;co[n]=i,Wl[i]=n}for(let t=0;t<10;t++){co[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;co[e]=r,Wl[r]=e}co["+"]=62;Wl[62]="+";co["/"]=63;Wl[63]="/";const ol=6,pf=8,wY=63,Su=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>=ol;const a=i/4*3;s>>=o%pf;const l=Math.floor(o/pf);for(let c=0;c>f)}}return new Uint8Array(r)};function D0(t){let e="";for(let r=0;r>a]}e+="==".slice(0,4-s)}return e}function EY(t,e="utf-8"){return e==="base64"?D0(t):Cu(t)}function CY(t,e){return e==="base64"?qo.mutate(Su(t)):qo.mutate(ql(t))}class qo extends Uint8Array{static fromString(e,r="utf-8"){switch(typeof e){case"string":return CY(e,r);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,qo.prototype),e}transformToString(e="utf-8"){return EY(this,e)}}function SY(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=Oo(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 kY={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class nx{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=SY(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}`,d={body:c==="GET"||c==="HEAD"?void 0:e.body,headers:new Headers(e.headers),method:c};typeof AbortController<"u"&&(d.signal=r),kY.supported&&(d.keepalive=i);const v=new Request(f,d),m=[fetch(v).then(y=>{const w=y.headers,x={};for(const S of w.entries())x[S[0]]=S[1];return y.body!=null?{response:new Bh({headers:x,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(S=>({response:new Bh({headers:x,reason:y.statusText,statusCode:y.status,body:S})}))}),AY(n)];return r&&m.push(new Promise((y,w)=>{r.onabort=()=>{const x=new Error("Request aborted");x.name="AbortError",w(x)}})),Promise.race(m)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=r,n))}httpHandlerConfigs(){return this.config??{}}}const ix=t=>typeof Blob=="function"&&t instanceof Blob?RY(t):PY(t);async function RY(t){const e=await TY(t),r=Su(e);return new Uint8Array(r)}async function PY(t){let e=new Uint8Array(0);const r=t.getReader();let n=!1;for(;!n;){const{done:i,value:s}=await r.read();if(s){const o=e;e=new Uint8Array(o.length+s.length),e.set(o),e.set(s,o.length)}n=i}return e}function TY(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 sx=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return qo.mutate(t);if(!t)return qo.mutate(new Uint8Array);const r=e.streamCollector(t);return qo.mutate(await r)};class Kl{constructor(){this.middlewareStack=Fh()}}const sr="***SensitiveInformation***",Mp=t=>{if(t!=null){if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&ak.warn(ok(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},_Y=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},mf=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return ak.warn(ok(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},MY=t=>Mp(typeof t=="string"?NY(t):t),IY=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,NY=t=>{const e=t.match(IY);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},ok=t=>String(new TypeError(t).stack||t).split(` `).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(` -`),J9={warn:console.warn},iY=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=tY(t);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))};class Eu extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Eu.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Te=(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},sY=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const i=oY(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 Te(o,e)},Xg=t=>({output:e,parsedBody:r,errorCode:n})=>{sY({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},oY=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"]}),Zg=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{}}},aY=t=>{const e=[];for(const r in Nh){const n=Nh[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}}},lY=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},cY=t=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},fY=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},ex=t=>({...aY(t),...cY(t)}),tx=t=>({...lY(t),...fY(t)}),Ap=function(){const t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,[null,...arguments]),r=new e;return Object.setPrototypeOf(r,t.prototype),r};Ap.prototype=Object.create(String.prototype,{constructor:{value:Ap,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Ap,String);const Cu=(t,e)=>{const r={};for(const n in e)uY(r,t,e,n);return r},uY=(t,e,r,n)=>{if(e!==null){let o=r[n];typeof o=="function"&&(o=[,o]);const[a=dY,l=hY,c=n]=o;(typeof a=="function"&&a(e[c])||typeof a!="function"&&a)&&(t[n]=l(e[c]));return}let[i,s]=r[n];if(typeof s=="function"){let o;const a=i===void 0&&(o=s())!=null,l=typeof i=="function"&&!!i(void 0)||typeof i!="function"&&!!i;a?t[n]=o:l&&(t[n]=s())}else{const o=i===void 0&&s!=null,a=typeof i=="function"&&!!i(s)||typeof i!="function"&&!!i;(o||a)&&(t[n]=s)}},dY=t=>t!=null,hY=t=>t,we=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null);if(typeof t=="object"){const e={};for(const r of Object.keys(t))t[r]!=null&&(e[r]=we(t[r]));return e}return t},vY=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),yY="@aws-sdk/client-cognito-identity",pY="AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",mY="3.462.0",gY={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js"},xY="./dist-cjs/index.js",bY="./dist-types/index.d.ts",wY="./dist-es/index.js",EY=!1,CY={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},SY={"@aws-sdk/client-iam":"3.462.0","@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},AY={node:">=14.0.0"},kY={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},RY=["dist-*/**"],PY={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},TY="Apache-2.0",_Y={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},MY="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",IY={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity"},NY={name:yY,description:pY,version:mY,scripts:gY,main:xY,types:bY,module:wY,sideEffects:EY,dependencies:CY,devDependencies:SY,engines:AY,typesVersions:kY,files:RY,author:PY,license:TY,browser:_Y,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:MY,repository:IY};var _0={},Ac={},kc={},Rc={},bE;function $Y(){if(bE)return Rc;bE=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return Rc.isEmptyData=t,Rc}var xv={},wE;function X9(){return wE||(wE=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])}(xv)),xv}const DY={};function OY(){return typeof window<"u"?window:typeof self<"u"?self:DY}const LY=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:OY},Symbol.toStringTag,{value:"Module"})),rx=Oh(LY);var EE;function Z9(){if(EE)return kc;EE=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.Sha256=void 0;var t=$Y(),e=X9(),r=S9,n=rx,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}();kc.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 kc}var Pc={},CE;function ek(){if(CE)return Pc;CE=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.Sha256=void 0;var t=xu(),e=X9(),r=rx,n=function(){function i(s){this.toHash=new Uint8Array(0),this.secret=s,this.reset()}return i.prototype.update=function(s){if(!(0,t.isEmptyData)(s)){var o=(0,t.convertToBuffer)(s),a=new Uint8Array(this.toHash.byteLength+o.byteLength);a.set(this.toHash,0),a.set(o,this.toHash.byteLength),this.toHash=a}},i.prototype.digest=function(){var s=this;return this.key?this.key.then(function(o){return(0,r.locateWindow)().crypto.subtle.sign(e.SHA_256_HMAC_ALGO,o,s.toHash).then(function(a){return new Uint8Array(a)})}):(0,t.isEmptyData)(this.toHash)?Promise.resolve(e.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,r.locateWindow)().crypto.subtle.digest(e.SHA_256_HASH,s.toHash)}).then(function(o){return Promise.resolve(new Uint8Array(o))})},i.prototype.reset=function(){var s=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(o,a){(0,r.locateWindow)().crypto.subtle.importKey("raw",(0,t.convertToBuffer)(s.secret),e.SHA_256_HMAC_ALGO,!1,["sign"]).then(o,a)}),this.key.catch(function(){}))},i}();return Pc.Sha256=n,Pc}var bv={},Tc={},en={},SE;function tk(){return SE||(SE=1,Object.defineProperty(en,"__esModule",{value:!0}),en.MAX_HASHABLE_LENGTH=en.INIT=en.KEY=en.DIGEST_LENGTH=en.BLOCK_SIZE=void 0,en.BLOCK_SIZE=64,en.DIGEST_LENGTH=32,en.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),en.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],en.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),en}var _c={},AE;function BY(){if(AE)return _c;AE=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.RawSha256=void 0;var t=tk(),e=function(){function r(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,s=n.byteLength;if(this.bytesHashed+=s,this.bytesHashed*8>t.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],m=0;m>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[m-15];var b=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[m]=(w+this.temp[m-7]|0)+(b+this.temp[m-16]|0)}var x=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(t.KEY[m]+this.temp[m]|0)|0)|0,S=((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+x|0,c=l,l=a,a=o,o=x+S|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 _c.RawSha256=e,_c}var kE;function FY(){if(kE)return Tc;kE=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.Sha256=void 0;var t=go,e=tk(),r=BY(),n=xu(),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 Tc}var RE;function jY(){return RE||(RE=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=go;e.__exportStar(FY(),t)}(bv)),bv}var wv={},qn={},PE;function zY(){if(PE)return qn;PE=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.supportsZeroByteGCM=qn.supportsSubtleCrypto=qn.supportsSecureRandom=qn.supportsWebCrypto=void 0;var t=go,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}qn.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}qn.supportsSecureRandom=n;function i(o){return o&&e.every(function(a){return typeof o[a]=="function"})}qn.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 qn.supportsZeroByteGCM=s,qn}var TE;function UY(){return TE||(TE=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=go;e.__exportStar(zY(),t)}(wv)),wv}var Ev={},Cv={},_E;function VY(){return _E||(_E=1,Object.defineProperty(Cv,"__esModule",{value:!0})),Cv}var Sv={},ME;function qY(){return ME||(ME=1,Object.defineProperty(Sv,"__esModule",{value:!0})),Sv}var Av={},IE;function HY(){return IE||(IE=1,Object.defineProperty(Av,"__esModule",{value:!0})),Av}var kv={},NE;function GY(){return NE||(NE=1,Object.defineProperty(kv,"__esModule",{value:!0})),kv}var Mc={},$E;function WY(){if($E)return Mc;$E=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.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 Mc.isMsWindow=r,Mc}var DE;function KY(){return DE||(DE=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=go;e.__exportStar(VY(),t),e.__exportStar(qY(),t),e.__exportStar(HY(),t),e.__exportStar(GY(),t),e.__exportStar(WY(),t)}(Ev)),Ev}var OE;function YY(){if(OE)return Ac;OE=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.Sha256=void 0;var t=Z9(),e=ek(),r=jY(),n=UY(),i=KY(),s=rx,o=xu(),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 Ac.Sha256=a,Ac}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var e=go;e.__exportStar(YY(),t);var r=Z9();Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=ek();Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(_0);const QY={"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"},rk={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"},Vt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},$r={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"},_s={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class te{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=te.getVersionPrecision(e),s=te.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=te.map([e,r],c=>{const f=o-te.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return te.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 QY[e]}static getBrowserTypeByAlias(e){return rk[e]||""}}const pt=/version\/(\d+(\.?_?\d+)+)/i,JY=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=te.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=te.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=te.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=te.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=te.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=te.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=te.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,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=te.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=te.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=te.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=te.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=te.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=te.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=te.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=te.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=te.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=te.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=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=te.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=te.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=te.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=te.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=te.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=te.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=te.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=te.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=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?r:e;return{name:te.getFirstMatch(i,t),version:te.getSecondMatch(i,t)}}}],XY=[{test:[/Roku\/DVP/],describe(t){const e=te.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:$r.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=te.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:$r.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=te.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=te.getWindowsVersionName(e);return{name:$r.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:$r.iOS},r=te.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=te.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=te.getMacOSVersionName(e),n={name:$r.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=te.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:$r.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=te.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=te.getAndroidVersionName(e),n={name:$r.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=te.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:$r.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=te.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||te.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||te.getFirstMatch(/\bbb(\d+)/i,t);return{name:$r.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=te.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:$r.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=te.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:$r.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:$r.Linux}}},{test:[/CrOS/],describe(){return{name:$r.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=te.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:$r.PlayStation4,version:e}}}],ZY=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=te.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:Vt.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Vt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Vt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Vt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Vt.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=te.getFirstMatch(/(ipod|iphone)/i,t);return{type:Vt.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Vt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:Vt.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:Vt.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:Vt.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:Vt.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:Vt.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:Vt.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:Vt.tv}}}],eQ=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:_s.Blink};const r=te.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:_s.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:_s.Trident},r=te.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:_s.Presto},r=te.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:_s.Gecko},r=te.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:_s.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:_s.WebKit},r=te.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];class LE{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=te.find(JY,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=te.find(XY,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=te.find(ZY,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=te.find(eQ,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 te.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=te.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=te.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=te.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=te.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(te.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))}}/*! +`),ak={warn:console.warn},$Y=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=MY(t);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))};class Au extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Au.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Te=(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},DY=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const i=OY(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 Te(o,e)},ox=t=>({output:e,parsedBody:r,errorCode:n})=>{DY({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},OY=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"]}),ax=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{}}},LY=t=>{const e=[];for(const r in Lh){const n=Lh[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}}},BY=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},FY=t=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},jY=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},lx=t=>({...LY(t),...FY(t)}),cx=t=>({...BY(t),...jY(t)}),Ip=function(){const t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,[null,...arguments]),r=new e;return Object.setPrototypeOf(r,t.prototype),r};Ip.prototype=Object.create(String.prototype,{constructor:{value:Ip,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Ip,String);const ku=(t,e)=>{const r={};for(const n in e)zY(r,t,e,n);return r},zY=(t,e,r,n)=>{if(e!==null){let o=r[n];typeof o=="function"&&(o=[,o]);const[a=UY,l=VY,c=n]=o;(typeof a=="function"&&a(e[c])||typeof a!="function"&&a)&&(t[n]=l(e[c]));return}let[i,s]=r[n];if(typeof s=="function"){let o;const a=i===void 0&&(o=s())!=null,l=typeof i=="function"&&!!i(void 0)||typeof i!="function"&&!!i;a?t[n]=o:l&&(t[n]=s())}else{const o=i===void 0&&s!=null,a=typeof i=="function"&&!!i(s)||typeof i!="function"&&!!i;(o||a)&&(t[n]=s)}},UY=t=>t!=null,VY=t=>t,we=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null);if(typeof t=="object"){const e={};for(const r of Object.keys(t))t[r]!=null&&(e[r]=we(t[r]));return e}return t},qY=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),HY="@aws-sdk/client-cognito-identity",GY="AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",WY="3.462.0",KY={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js"},YY="./dist-cjs/index.js",QY="./dist-types/index.d.ts",JY="./dist-es/index.js",XY=!1,ZY={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},eQ={"@aws-sdk/client-iam":"3.462.0","@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},tQ={node:">=14.0.0"},rQ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},nQ=["dist-*/**"],iQ={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},sQ="Apache-2.0",oQ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},aQ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",lQ={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity"},cQ={name:HY,description:GY,version:WY,scripts:KY,main:YY,types:QY,module:JY,sideEffects:XY,dependencies:ZY,devDependencies:eQ,engines:tQ,typesVersions:rQ,files:nQ,author:iQ,license:sQ,browser:oQ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:aQ,repository:lQ};var O0={},kc={},Rc={},Pc={},T4;function fQ(){if(T4)return Pc;T4=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return Pc.isEmptyData=t,Pc}var kv={},_4;function lk(){return _4||(_4=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])}(kv)),kv}const uQ={};function dQ(){return typeof window<"u"?window:typeof self<"u"?self:uQ}const hQ=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:dQ},Symbol.toStringTag,{value:"Module"})),fx=jh(hQ);var M4;function ck(){if(M4)return Rc;M4=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.Sha256=void 0;var t=fQ(),e=lk(),r=$9,n=fx,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}();Rc.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 Rc}var Tc={},I4;function fk(){if(I4)return Tc;I4=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.Sha256=void 0;var t=Eu(),e=lk(),r=fx,n=function(){function i(s){this.toHash=new Uint8Array(0),this.secret=s,this.reset()}return i.prototype.update=function(s){if(!(0,t.isEmptyData)(s)){var o=(0,t.convertToBuffer)(s),a=new Uint8Array(this.toHash.byteLength+o.byteLength);a.set(this.toHash,0),a.set(o,this.toHash.byteLength),this.toHash=a}},i.prototype.digest=function(){var s=this;return this.key?this.key.then(function(o){return(0,r.locateWindow)().crypto.subtle.sign(e.SHA_256_HMAC_ALGO,o,s.toHash).then(function(a){return new Uint8Array(a)})}):(0,t.isEmptyData)(this.toHash)?Promise.resolve(e.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,r.locateWindow)().crypto.subtle.digest(e.SHA_256_HASH,s.toHash)}).then(function(o){return Promise.resolve(new Uint8Array(o))})},i.prototype.reset=function(){var s=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(o,a){(0,r.locateWindow)().crypto.subtle.importKey("raw",(0,t.convertToBuffer)(s.secret),e.SHA_256_HMAC_ALGO,!1,["sign"]).then(o,a)}),this.key.catch(function(){}))},i}();return Tc.Sha256=n,Tc}var Rv={},_c={},en={},N4;function uk(){return N4||(N4=1,Object.defineProperty(en,"__esModule",{value:!0}),en.MAX_HASHABLE_LENGTH=en.INIT=en.KEY=en.DIGEST_LENGTH=en.BLOCK_SIZE=void 0,en.BLOCK_SIZE=64,en.DIGEST_LENGTH=32,en.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),en.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],en.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),en}var Mc={},$4;function vQ(){if($4)return Mc;$4=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.RawSha256=void 0;var t=uk(),e=function(){function r(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,s=n.byteLength;if(this.bytesHashed+=s,this.bytesHashed*8>t.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],m=0;m>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[m-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[m]=(w+this.temp[m-7]|0)+(x+this.temp[m-16]|0)}var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(t.KEY[m]+this.temp[m]|0)|0)|0,S=((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+S|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 Mc.RawSha256=e,Mc}var D4;function yQ(){if(D4)return _c;D4=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.Sha256=void 0;var t=xo,e=uk(),r=vQ(),n=Eu(),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 _c}var O4;function pQ(){return O4||(O4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xo;e.__exportStar(yQ(),t)}(Rv)),Rv}var Pv={},qn={},L4;function mQ(){if(L4)return qn;L4=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.supportsZeroByteGCM=qn.supportsSubtleCrypto=qn.supportsSecureRandom=qn.supportsWebCrypto=void 0;var t=xo,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}qn.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}qn.supportsSecureRandom=n;function i(o){return o&&e.every(function(a){return typeof o[a]=="function"})}qn.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 qn.supportsZeroByteGCM=s,qn}var B4;function gQ(){return B4||(B4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xo;e.__exportStar(mQ(),t)}(Pv)),Pv}var Tv={},_v={},F4;function xQ(){return F4||(F4=1,Object.defineProperty(_v,"__esModule",{value:!0})),_v}var Mv={},j4;function bQ(){return j4||(j4=1,Object.defineProperty(Mv,"__esModule",{value:!0})),Mv}var Iv={},z4;function wQ(){return z4||(z4=1,Object.defineProperty(Iv,"__esModule",{value:!0})),Iv}var Nv={},U4;function EQ(){return U4||(U4=1,Object.defineProperty(Nv,"__esModule",{value:!0})),Nv}var Ic={},V4;function CQ(){if(V4)return Ic;V4=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.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 Ic.isMsWindow=r,Ic}var q4;function SQ(){return q4||(q4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xo;e.__exportStar(xQ(),t),e.__exportStar(bQ(),t),e.__exportStar(wQ(),t),e.__exportStar(EQ(),t),e.__exportStar(CQ(),t)}(Tv)),Tv}var H4;function AQ(){if(H4)return kc;H4=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.Sha256=void 0;var t=ck(),e=fk(),r=pQ(),n=gQ(),i=SQ(),s=fx,o=Eu(),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 kc.Sha256=a,kc}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var e=xo;e.__exportStar(AQ(),t);var r=ck();Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=fk();Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(O0);const kQ={"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"},dk={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"},Vt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},$r={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"},Is={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class te{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=te.getVersionPrecision(e),s=te.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=te.map([e,r],c=>{const f=o-te.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return te.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 kQ[e]}static getBrowserTypeByAlias(e){return dk[e]||""}}const pt=/version\/(\d+(\.?_?\d+)+)/i,RQ=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=te.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=te.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=te.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=te.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=te.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=te.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=te.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,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=te.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=te.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=te.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=te.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=te.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=te.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=te.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=te.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=te.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=te.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=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(pt,t)||te.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=te.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=te.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=te.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=te.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=te.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=te.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=te.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=te.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=te.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=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?r:e;return{name:te.getFirstMatch(i,t),version:te.getSecondMatch(i,t)}}}],PQ=[{test:[/Roku\/DVP/],describe(t){const e=te.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:$r.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=te.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:$r.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=te.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=te.getWindowsVersionName(e);return{name:$r.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:$r.iOS},r=te.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=te.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=te.getMacOSVersionName(e),n={name:$r.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=te.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:$r.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=te.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=te.getAndroidVersionName(e),n={name:$r.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=te.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:$r.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=te.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||te.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||te.getFirstMatch(/\bbb(\d+)/i,t);return{name:$r.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=te.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:$r.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=te.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:$r.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:$r.Linux}}},{test:[/CrOS/],describe(){return{name:$r.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=te.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:$r.PlayStation4,version:e}}}],TQ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=te.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:Vt.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Vt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Vt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Vt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Vt.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=te.getFirstMatch(/(ipod|iphone)/i,t);return{type:Vt.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Vt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:Vt.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:Vt.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:Vt.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:Vt.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:Vt.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:Vt.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:Vt.tv}}}],_Q=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:Is.Blink};const r=te.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Is.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:Is.Trident},r=te.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:Is.Presto},r=te.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:Is.Gecko},r=te.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Is.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:Is.WebKit},r=te.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];class G4{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=te.find(RQ,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=te.find(PQ,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=te.find(TQ,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=te.find(_Q,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 te.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=te.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=te.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=te.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=te.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(te.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 nk{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new LE(e,r)}static parse(e){return new LE(e).getResult()}static get BROWSER_MAP(){return rk}static get ENGINE_MAP(){return _s}static get OS_MAP(){return $r}static get PLATFORMS_MAP(){return Vt}}const nx=({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)?nk.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},ix=t=>()=>Promise.reject(t),sx=t=>{if(typeof t=="string"){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}`)},ik="required",Ai="fn",ki="argv",Kl="ref",BE=!0,FE="isSet",eu="booleanEquals",xa="error",Ic="endpoint",Gi="tree",ox="PartitionResult",jE={[ik]:!1,type:"String"},zE={[ik]:!0,default:!1,type:"Boolean"},UE={[Kl]:"Endpoint"},sk={[Ai]:eu,[ki]:[{[Kl]:"UseFIPS"},!0]},ok={[Ai]:eu,[ki]:[{[Kl]:"UseDualStack"},!0]},hi={},VE={[Ai]:"getAttr",[ki]:[{[Kl]:ox},"supportsFIPS"]},qE={[Ai]:eu,[ki]:[!0,{[Ai]:"getAttr",[ki]:[{[Kl]:ox},"supportsDualStack"]}]},HE=[sk],GE=[ok],WE=[{[Kl]:"Region"}],tQ={version:"1.0",parameters:{Region:jE,UseDualStack:zE,UseFIPS:zE,Endpoint:jE},rules:[{conditions:[{[Ai]:FE,[ki]:[UE]}],rules:[{conditions:HE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:xa},{conditions:GE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:xa},{endpoint:{url:UE,properties:hi,headers:hi},type:Ic}],type:Gi},{conditions:[{[Ai]:FE,[ki]:WE}],rules:[{conditions:[{[Ai]:"aws.partition",[ki]:WE,assign:ox}],rules:[{conditions:[sk,ok],rules:[{conditions:[{[Ai]:eu,[ki]:[BE,VE]},qE],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:hi,headers:hi},type:Ic}],type:Gi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:xa}],type:Gi},{conditions:HE,rules:[{conditions:[{[Ai]:eu,[ki]:[VE,BE]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:hi,headers:hi},type:Ic}],type:Gi},{error:"FIPS is enabled but this partition does not support FIPS",type:xa}],type:Gi},{conditions:GE,rules:[{conditions:[qE],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:hi,headers:hi},type:Ic}],type:Gi},{error:"DualStack is enabled but this partition does not support DualStack",type:xa}],type:Gi},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:hi,headers:hi},type:Ic}],type:Gi}],type:Gi},{error:"Invalid Configuration: Missing Region",type:xa}]},rQ=tQ,nQ=(t,e={})=>Lg(rQ,{endpointParams:t,logger:e.logger}),iQ=t=>({apiVersion:"2014-06-30",base64Decoder:(t==null?void 0:t.base64Decoder)??wu,base64Encoder:(t==null?void 0:t.base64Encoder)??T0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??nQ,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new Wg,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity",urlParser:(t==null?void 0:t.urlParser)??Cl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??Vl,utf8Encoder:(t==null?void 0:t.utf8Encoder)??bu}),sQ=["in-region","cross-region","mobile","standard","legacy"],ax=({defaultsMode:t}={})=>E9(async()=>{const e=typeof t=="function"?await t():t;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(oQ()?"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 ${sQ.join(", ")}, got ${e}`)}}),oQ=()=>{var r,n;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?nk.parse(window.navigator.userAgent):void 0,e=(n=t==null?void 0:t.platform)==null?void 0:n.type;return e==="tablet"||e==="mobile"},aQ=t=>{const e=ax(t),r=()=>e().then(Zg),n=iQ(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??sx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??nx({serviceId:n.serviceId,clientVersion:NY.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Al,region:(t==null?void 0:t.region)??ix("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new Yg(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||qg),sha256:(t==null?void 0:t.sha256)??_0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??Qg,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Fg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(jg))}},lx=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}}},cx=t=>({region:t.region()}),Rv=t=>t,lQ=(t,e)=>{const r={...Rv(lx(t)),...Rv(ex(t)),...Rv(Rg(t))};return e.forEach(n=>n.configure(r)),{...t,...cx(r),...tx(r),...Pg(r)}};class cQ extends Kg{constructor(...[e]){const r=aQ(e||{}),n=vY(r),i=zg(n),s=Vg(i),o=Hg(s),a=o,l=Ng(a),c=$g(l),f=lQ(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(Gg(this.config)),this.middlewareStack.use(Ug(this.config)),this.middlewareStack.use(Tg(this.config)),this.middlewareStack.use(_g(this.config)),this.middlewareStack.use(Mg(this.config)),this.middlewareStack.use(Bg(this.config))}destroy(){super.destroy()}}class $n extends Eu{constructor(e){super(e),Object.setPrototypeOf(this,$n.prototype)}}let fQ=class ak extends $n{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,ak.prototype)}},uQ=class lk extends $n{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,lk.prototype)}};class fx extends $n{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,fx.prototype)}}let dQ=class ck extends $n{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,ck.prototype)}};class ux extends $n{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,ux.prototype)}}let hQ=class fk extends $n{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,fk.prototype)}},vQ=class uk extends $n{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,uk.prototype)}};class dx extends $n{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,dx.prototype)}}class hx extends $n{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,hx.prototype)}}const yQ=async(t,e)=>{const r=wk("GetCredentialsForIdentity");let n;return n=JSON.stringify(we(t)),bk(e,r,"/",void 0,n)},pQ=async(t,e)=>{const r=wk("GetId");let n;return n=JSON.stringify(we(t)),bk(e,r,"/",void 0,n)},mQ=async(t,e)=>{if(t.statusCode>=300)return gQ(t,e);const r=await vx(t.body,e);let n={};return n=SQ(r),{$metadata:ai(t),...n}},gQ=async(t,e)=>{const r={...t,body:await Ek(t.body,e)},n=Ck(t,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await dk(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await hk(r);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await wQ(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await vk(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await yk(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await pk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await mk(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await gk(r);default:const i=r.body;return xk({output:t,parsedBody:i,errorCode:n})}},xQ=async(t,e)=>{if(t.statusCode>=300)return bQ(t,e);const r=await vx(t.body,e);let n={};return n=we(r),{$metadata:ai(t),...n}},bQ=async(t,e)=>{const r={...t,body:await Ek(t.body,e)},n=Ck(t,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await dk(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await hk(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await vk(r);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await EQ(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await yk(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await pk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await mk(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await gk(r);default:const i=r.body;return xk({output:t,parsedBody:i,errorCode:n})}},dk=async(t,e)=>{const r=t.body,n=we(r),i=new dx({$metadata:ai(t),...n});return Te(i,r)},hk=async(t,e)=>{const r=t.body,n=we(r),i=new fQ({$metadata:ai(t),...n});return Te(i,r)},wQ=async(t,e)=>{const r=t.body,n=we(r),i=new hx({$metadata:ai(t),...n});return Te(i,r)},vk=async(t,e)=>{const r=t.body,n=we(r),i=new uQ({$metadata:ai(t),...n});return Te(i,r)},EQ=async(t,e)=>{const r=t.body,n=we(r),i=new fx({$metadata:ai(t),...n});return Te(i,r)},yk=async(t,e)=>{const r=t.body,n=we(r),i=new dQ({$metadata:ai(t),...n});return Te(i,r)},pk=async(t,e)=>{const r=t.body,n=we(r),i=new ux({$metadata:ai(t),...n});return Te(i,r)},mk=async(t,e)=>{const r=t.body,n=we(r),i=new vQ({$metadata:ai(t),...n});return Te(i,r)},gk=async(t,e)=>{const r=t.body,n=we(r),i=new hQ({$metadata:ai(t),...n});return Te(i,r)},CQ=(t,e)=>Cu(t,{AccessKeyId:pf,Expiration:r=>eY(iY(Sp(r))),SecretKey:pf,SessionToken:pf}),SQ=(t,e)=>Cu(t,{Credentials:r=>CQ(r),IdentityId:pf}),ai=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"]}),AQ=(t,e)=>Jg(t,e).then(r=>e.utf8Encoder(r)),xk=Xg($n),bk=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 Mn(c)};function wk(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${t}`}}const vx=(t,e)=>AQ(t,e).then(r=>r.length?JSON.parse(r):{}),Ek=async(t,e)=>{const r=await vx(t,e);return r.message=r.message??r.Message,r},Ck=(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)};class yx extends Wl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(ql(r,this.serialize,this.deserialize)),this.middlewareStack.use(Hl(r,yx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[so]:{service:"AWSCognitoIdentityService",operation:"GetCredentialsForIdentity"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return yQ(e,r)}deserialize(e,r){return mQ(e,r)}}class px extends Wl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(ql(r,this.serialize,this.deserialize)),this.middlewareStack.use(Hl(r,px.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[so]:{service:"AWSCognitoIdentityService",operation:"GetId"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return pQ(e,r)}deserialize(e,r){return xQ(e,r)}}function Sk(t){return Promise.all(Object.keys(t).reduce((e,r)=>{const n=t[r];return typeof n=="string"?e.push([r,n]):e.push(n().then(i=>[r,i])),e},[])).then(e=>e.reduce((r,[n,i])=>(r[n]=i,r),{}))}function kQ(t){return async()=>{const{Credentials:{AccessKeyId:e=RQ(),Expiration:r,SecretKey:n=TQ(),SessionToken:i}=PQ()}=await t.client.send(new yx({CustomRoleArn:t.customRoleArn,IdentityId:t.identityId,Logins:t.logins?await Sk(t.logins):void 0}));return{identityId:t.identityId,accessKeyId:e,secretAccessKey:n,sessionToken:i,expiration:r}}}function RQ(){throw new Ul("Response from Amazon Cognito contained no access key ID")}function PQ(){throw new Ul("Response from Amazon Cognito contained no credentials")}function TQ(){throw new Ul("Response from Amazon Cognito contained no secret key")}const Pv="IdentityIds";class _Q{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",r=>{const n=r.get(e);return new Promise(i=>{n.onerror=()=>i(null),n.onsuccess=()=>i(n.result?n.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",r=>{const n=r.delete(e);return new Promise((i,s)=>{n.onerror=()=>s(n.error),n.onsuccess=()=>i()})})}setItem(e,r){return this.withObjectStore("readwrite",n=>{const i=n.put({id:e,value:r});return new Promise((s,o)=>{i.onerror=()=>o(i.error),i.onsuccess=()=>s()})})}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise((r,n)=>{e.onsuccess=()=>{r(e.result)},e.onerror=()=>{n(e.error)},e.onblocked=()=>{n(new Error("Unable to access DB"))},e.onupgradeneeded=()=>{const i=e.result;i.onerror=()=>{n(new Error("Failed to create object store"))},i.createObjectStore(Pv,{keyPath:"id"})}})}withObjectStore(e,r){return this.getDb().then(n=>{const i=n.transaction(Pv,e);return i.oncomplete=()=>n.close(),new Promise((s,o)=>{i.onerror=()=>o(i.error),s(r(i.objectStore(Pv)))}).catch(s=>{throw n.close(),s})})}}class MQ{constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,r){this.store[e]=r}}const IQ=new MQ;function NQ(){return typeof self=="object"&&self.indexedDB?new _Q:typeof window=="object"&&window.localStorage?window.localStorage:IQ}function $Q({accountId:t,cache:e=NQ(),client:r,customRoleArn:n,identityPoolId:i,logins:s,userIdentifier:o=!s||Object.keys(s).length===0?"ANONYMOUS":void 0}){const a=o?`aws:cognito-identity-credentials:${i}:${o}`:void 0;let l=async()=>{let c=a&&await e.getItem(a);if(!c){const{IdentityId:f=DQ()}=await r.send(new px({AccountId:t,IdentityPoolId:i,Logins:s?await Sk(s):void 0}));c=f,a&&Promise.resolve(e.setItem(a,c)).catch(()=>{})}return l=kQ({client:r,customRoleArn:n,logins:s,identityId:c}),l()};return()=>l().catch(async c=>{throw a&&Promise.resolve(e.removeItem(a)).catch(()=>{}),c})}function DQ(){throw new Ul("Response from Amazon Cognito contained no identity ID")}const OQ=t=>$Q({...t,client:new cQ(t.clientConfig??{})});class Hc extends Error{}Hc.prototype.name="InvalidTokenError";function LQ(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 BQ(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 LQ(e)}catch{return atob(e)}}function FQ(t,e){if(typeof t!="string")throw new Hc("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 Hc(`Invalid token specified: missing part #${r+1}`);let i;try{i=BQ(n)}catch(s){throw new Hc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Hc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const jQ=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"kms"}),zQ="@aws-sdk/client-kms",UQ="AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",VQ="3.462.0",qQ={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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 kms"},HQ="./dist-cjs/index.js",GQ="./dist-types/index.d.ts",WQ="./dist-es/index.js",KQ=!1,YQ={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},QQ={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},JQ={node:">=14.0.0"},XQ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},ZQ=["dist-*/**"],eJ={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},tJ="Apache-2.0",rJ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},nJ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kms",iJ={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-kms"},sJ={name:zQ,description:UQ,version:VQ,scripts:qQ,main:HQ,types:GQ,module:WQ,sideEffects:KQ,dependencies:YQ,devDependencies:QQ,engines:JQ,typesVersions:XQ,files:ZQ,author:eJ,license:tJ,browser:rJ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:nJ,repository:iJ},Ak="required",Ri="fn",Pi="argv",Yl="ref",KE=!0,YE="isSet",tu="booleanEquals",ba="error",Nc="endpoint",Wi="tree",mx="PartitionResult",QE={[Ak]:!1,type:"String"},JE={[Ak]:!0,default:!1,type:"Boolean"},XE={[Yl]:"Endpoint"},kk={[Ri]:tu,[Pi]:[{[Yl]:"UseFIPS"},!0]},Rk={[Ri]:tu,[Pi]:[{[Yl]:"UseDualStack"},!0]},vi={},ZE={[Ri]:"getAttr",[Pi]:[{[Yl]:mx},"supportsFIPS"]},e4={[Ri]:tu,[Pi]:[!0,{[Ri]:"getAttr",[Pi]:[{[Yl]:mx},"supportsDualStack"]}]},t4=[kk],r4=[Rk],n4=[{[Yl]:"Region"}],oJ={version:"1.0",parameters:{Region:QE,UseDualStack:JE,UseFIPS:JE,Endpoint:QE},rules:[{conditions:[{[Ri]:YE,[Pi]:[XE]}],rules:[{conditions:t4,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ba},{conditions:r4,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ba},{endpoint:{url:XE,properties:vi,headers:vi},type:Nc}],type:Wi},{conditions:[{[Ri]:YE,[Pi]:n4}],rules:[{conditions:[{[Ri]:"aws.partition",[Pi]:n4,assign:mx}],rules:[{conditions:[kk,Rk],rules:[{conditions:[{[Ri]:tu,[Pi]:[KE,ZE]},e4],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ba}],type:Wi},{conditions:t4,rules:[{conditions:[{[Ri]:tu,[Pi]:[ZE,KE]}],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi},{error:"FIPS is enabled but this partition does not support FIPS",type:ba}],type:Wi},{conditions:r4,rules:[{conditions:[e4],rules:[{endpoint:{url:"https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi},{error:"DualStack is enabled but this partition does not support DualStack",type:ba}],type:Wi},{endpoint:{url:"https://kms.{Region}.{PartitionResult#dnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi}],type:Wi},{error:"Invalid Configuration: Missing Region",type:ba}]},aJ=oJ,lJ=(t,e={})=>Lg(aJ,{endpointParams:t,logger:e.logger}),cJ=t=>({apiVersion:"2014-11-01",base64Decoder:(t==null?void 0:t.base64Decoder)??wu,base64Encoder:(t==null?void 0:t.base64Encoder)??T0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??lJ,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new Wg,serviceId:(t==null?void 0:t.serviceId)??"KMS",urlParser:(t==null?void 0:t.urlParser)??Cl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??Vl,utf8Encoder:(t==null?void 0:t.utf8Encoder)??bu}),fJ=t=>{const e=ax(t),r=()=>e().then(Zg),n=cJ(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??sx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??nx({serviceId:n.serviceId,clientVersion:sJ.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Al,region:(t==null?void 0:t.region)??ix("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new Yg(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||qg),sha256:(t==null?void 0:t.sha256)??_0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??Qg,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Fg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(jg))}},Tv=t=>t,uJ=(t,e)=>{const r={...Tv(lx(t)),...Tv(ex(t)),...Tv(Rg(t))};return e.forEach(n=>n.configure(r)),{...t,...cx(r),...tx(r),...Pg(r)}};class dJ extends Kg{constructor(...[e]){const r=fJ(e||{}),n=jQ(r),i=zg(n),s=Vg(i),o=Hg(s),a=o,l=Ng(a),c=$g(l),f=uJ(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(Gg(this.config)),this.middlewareStack.use(Ug(this.config)),this.middlewareStack.use(Tg(this.config)),this.middlewareStack.use(_g(this.config)),this.middlewareStack.use(Mg(this.config)),this.middlewareStack.use(SW(this.config)),this.middlewareStack.use(Bg(this.config))}destroy(){super.destroy()}}class Dn extends Eu{constructor(e){super(e),Object.setPrototypeOf(this,Dn.prototype)}}class gx extends Dn{constructor(e){super({name:"DependencyTimeoutException",$fault:"server",...e}),this.name="DependencyTimeoutException",this.$fault="server",Object.setPrototypeOf(this,gx.prototype)}}class xx extends Dn{constructor(e){super({name:"KMSInternalException",$fault:"server",...e}),this.name="KMSInternalException",this.$fault="server",Object.setPrototypeOf(this,xx.prototype)}}class bx extends Dn{constructor(e){super({name:"KMSInvalidStateException",$fault:"client",...e}),this.name="KMSInvalidStateException",this.$fault="client",Object.setPrototypeOf(this,bx.prototype)}}class wx extends Dn{constructor(e){super({name:"NotFoundException",$fault:"client",...e}),this.name="NotFoundException",this.$fault="client",Object.setPrototypeOf(this,wx.prototype)}}class Ex extends Dn{constructor(e){super({name:"DisabledException",$fault:"client",...e}),this.name="DisabledException",this.$fault="client",Object.setPrototypeOf(this,Ex.prototype)}}class Cx extends Dn{constructor(e){super({name:"DryRunOperationException",$fault:"client",...e}),this.name="DryRunOperationException",this.$fault="client",Object.setPrototypeOf(this,Cx.prototype)}}class Sx extends Dn{constructor(e){super({name:"InvalidGrantTokenException",$fault:"client",...e}),this.name="InvalidGrantTokenException",this.$fault="client",Object.setPrototypeOf(this,Sx.prototype)}}class Ax extends Dn{constructor(e){super({name:"InvalidKeyUsageException",$fault:"client",...e}),this.name="InvalidKeyUsageException",this.$fault="client",Object.setPrototypeOf(this,Ax.prototype)}}class kx extends Dn{constructor(e){super({name:"KeyUnavailableException",$fault:"server",...e}),this.name="KeyUnavailableException",this.$fault="server",Object.setPrototypeOf(this,kx.prototype)}}const hJ=t=>({...t,...t.Plaintext&&{Plaintext:sr}}),vJ=async(t,e)=>{const r=IJ("GenerateDataKey");let n;return n=JSON.stringify(kJ(t,e)),MJ(e,r,"/",void 0,n)},yJ=async(t,e)=>{if(t.statusCode>=300)return pJ(t,e);const r=await Pk(t.body,e);let n={};return n=PJ(r,e),{$metadata:qi(t),...n}},pJ=async(t,e)=>{const r={...t,body:await NJ(t.body,e)},n=$J(t,r.body);switch(n){case"DependencyTimeoutException":case"com.amazonaws.kms#DependencyTimeoutException":throw await mJ(r);case"DisabledException":case"com.amazonaws.kms#DisabledException":throw await gJ(r);case"DryRunOperationException":case"com.amazonaws.kms#DryRunOperationException":throw await xJ(r);case"InvalidGrantTokenException":case"com.amazonaws.kms#InvalidGrantTokenException":throw await bJ(r);case"InvalidKeyUsageException":case"com.amazonaws.kms#InvalidKeyUsageException":throw await wJ(r);case"KMSInternalException":case"com.amazonaws.kms#KMSInternalException":throw await CJ(r);case"KMSInvalidStateException":case"com.amazonaws.kms#KMSInvalidStateException":throw await SJ(r);case"KeyUnavailableException":case"com.amazonaws.kms#KeyUnavailableException":throw await EJ(r);case"NotFoundException":case"com.amazonaws.kms#NotFoundException":throw await AJ(r);default:const i=r.body;return _J({output:t,parsedBody:i,errorCode:n})}},mJ=async(t,e)=>{const r=t.body,n=we(r),i=new gx({$metadata:qi(t),...n});return Te(i,r)},gJ=async(t,e)=>{const r=t.body,n=we(r),i=new Ex({$metadata:qi(t),...n});return Te(i,r)},xJ=async(t,e)=>{const r=t.body,n=we(r),i=new Cx({$metadata:qi(t),...n});return Te(i,r)},bJ=async(t,e)=>{const r=t.body,n=we(r),i=new Sx({$metadata:qi(t),...n});return Te(i,r)},wJ=async(t,e)=>{const r=t.body,n=we(r),i=new Ax({$metadata:qi(t),...n});return Te(i,r)},EJ=async(t,e)=>{const r=t.body,n=we(r),i=new kx({$metadata:qi(t),...n});return Te(i,r)},CJ=async(t,e)=>{const r=t.body,n=we(r),i=new xx({$metadata:qi(t),...n});return Te(i,r)},SJ=async(t,e)=>{const r=t.body,n=we(r),i=new bx({$metadata:qi(t),...n});return Te(i,r)},AJ=async(t,e)=>{const r=t.body,n=we(r),i=new wx({$metadata:qi(t),...n});return Te(i,r)},kJ=(t,e)=>Cu(t,{DryRun:[],EncryptionContext:we,GrantTokens:we,KeyId:[],KeySpec:[],NumberOfBytes:[],Recipient:r=>RJ(r,e)}),RJ=(t,e)=>Cu(t,{AttestationDocument:e.base64Encoder,KeyEncryptionAlgorithm:[]}),PJ=(t,e)=>Cu(t,{CiphertextBlob:e.base64Decoder,CiphertextForRecipient:e.base64Decoder,KeyId:pf,Plaintext:e.base64Decoder}),qi=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,e)=>Jg(t,e).then(r=>e.utf8Encoder(r)),_J=Xg(Dn),MJ=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 Mn(c)};function IJ(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`TrentService.${t}`}}const Pk=(t,e)=>TJ(t,e).then(r=>r.length?JSON.parse(r):{}),NJ=async(t,e)=>{const r=await Pk(t,e);return r.message=r.message??r.Message,r},$J=(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)};class Rx extends Wl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(ql(r,this.serialize,this.deserialize)),this.middlewareStack.use(Hl(r,Rx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"KMSClient",commandName:"GenerateDataKeyCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:hJ,[so]:{service:"TrentService",operation:"GenerateDataKey"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return vJ(e,r)}deserialize(e,r){return yJ(e,r)}}const DJ=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),OJ="@aws-sdk/client-cognito-identity-provider",LJ="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",BJ="3.462.0",FJ={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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"},jJ="./dist-cjs/index.js",zJ="./dist-types/index.d.ts",UJ="./dist-es/index.js",VJ=!1,qJ={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},HJ={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},GJ={node:">=14.0.0"},WJ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},KJ=["dist-*/**"],YJ={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},QJ="Apache-2.0",JJ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},XJ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",ZJ={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},eX={name:OJ,description:LJ,version:BJ,scripts:FJ,main:jJ,types:zJ,module:UJ,sideEffects:VJ,dependencies:qJ,devDependencies:HJ,engines:GJ,typesVersions:WJ,files:KJ,author:YJ,license:QJ,browser:JJ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:XJ,repository:ZJ},Tk="required",Ti="fn",_i="argv",Ql="ref",i4=!0,s4="isSet",ru="booleanEquals",wa="error",$c="endpoint",Ki="tree",Px="PartitionResult",o4={[Tk]:!1,type:"String"},a4={[Tk]:!0,default:!1,type:"Boolean"},l4={[Ql]:"Endpoint"},_k={[Ti]:ru,[_i]:[{[Ql]:"UseFIPS"},!0]},Mk={[Ti]:ru,[_i]:[{[Ql]:"UseDualStack"},!0]},yi={},c4={[Ti]:"getAttr",[_i]:[{[Ql]:Px},"supportsFIPS"]},f4={[Ti]:ru,[_i]:[!0,{[Ti]:"getAttr",[_i]:[{[Ql]:Px},"supportsDualStack"]}]},u4=[_k],d4=[Mk],h4=[{[Ql]:"Region"}],tX={version:"1.0",parameters:{Region:o4,UseDualStack:a4,UseFIPS:a4,Endpoint:o4},rules:[{conditions:[{[Ti]:s4,[_i]:[l4]}],rules:[{conditions:u4,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wa},{conditions:d4,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wa},{endpoint:{url:l4,properties:yi,headers:yi},type:$c}],type:Ki},{conditions:[{[Ti]:s4,[_i]:h4}],rules:[{conditions:[{[Ti]:"aws.partition",[_i]:h4,assign:Px}],rules:[{conditions:[_k,Mk],rules:[{conditions:[{[Ti]:ru,[_i]:[i4,c4]},f4],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:wa}],type:Ki},{conditions:u4,rules:[{conditions:[{[Ti]:ru,[_i]:[c4,i4]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki},{error:"FIPS is enabled but this partition does not support FIPS",type:wa}],type:Ki},{conditions:d4,rules:[{conditions:[f4],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki},{error:"DualStack is enabled but this partition does not support DualStack",type:wa}],type:Ki},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki}],type:Ki},{error:"Invalid Configuration: Missing Region",type:wa}]},rX=tX,nX=(t,e={})=>Lg(rX,{endpointParams:t,logger:e.logger}),iX=t=>({apiVersion:"2016-04-18",base64Decoder:(t==null?void 0:t.base64Decoder)??wu,base64Encoder:(t==null?void 0:t.base64Encoder)??T0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??nX,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new Wg,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity Provider",urlParser:(t==null?void 0:t.urlParser)??Cl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??Vl,utf8Encoder:(t==null?void 0:t.utf8Encoder)??bu}),sX=t=>{const e=ax(t),r=()=>e().then(Zg),n=iX(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??sx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??nx({serviceId:n.serviceId,clientVersion:eX.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Al,region:(t==null?void 0:t.region)??ix("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new Yg(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||qg),sha256:(t==null?void 0:t.sha256)??_0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??Qg,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Fg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(jg))}},_v=t=>t,oX=(t,e)=>{const r={..._v(lx(t)),..._v(ex(t)),..._v(Rg(t))};return e.forEach(n=>n.configure(r)),{...t,...cx(r),...tx(r),...Pg(r)}};class aX extends Kg{constructor(...[e]){const r=sX(e||{}),n=DJ(r),i=zg(n),s=Vg(i),o=Hg(s),a=o,l=Ng(a),c=$g(l),f=oX(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(Gg(this.config)),this.middlewareStack.use(Ug(this.config)),this.middlewareStack.use(Tg(this.config)),this.middlewareStack.use(_g(this.config)),this.middlewareStack.use(Mg(this.config)),this.middlewareStack.use(Bg(this.config))}destroy(){super.destroy()}}class mt extends Eu{constructor(e){super(e),Object.setPrototypeOf(this,mt.prototype)}}class Tx extends mt{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,Tx.prototype)}}class _x extends mt{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,_x.prototype)}}class Mx extends mt{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,Mx.prototype)}}class Ix extends mt{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ix.prototype)}}class Nx extends mt{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Nx.prototype)}}class $x extends mt{constructor(e){super({name:"UserNotFoundException",$fault:"client",...e}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,$x.prototype)}}class Dx extends mt{constructor(e){super({name:"InvalidLambdaResponseException",$fault:"client",...e}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,Dx.prototype)}}class Ox extends mt{constructor(e){super({name:"UnexpectedLambdaException",$fault:"client",...e}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,Ox.prototype)}}class M0 extends mt{constructor(e){super({name:"UserLambdaValidationException",$fault:"client",...e}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,M0.prototype)}}class Lx extends mt{constructor(e){super({name:"CodeDeliveryFailureException",$fault:"client",...e}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,Lx.prototype)}}class Bx extends mt{constructor(e){super({name:"InvalidPasswordException",$fault:"client",...e}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,Bx.prototype)}}class Fx extends mt{constructor(e){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Fx.prototype)}}class jx extends mt{constructor(e){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...e}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,jx.prototype)}}class zx extends mt{constructor(e){super({name:"UsernameExistsException",$fault:"client",...e}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,zx.prototype)}}class Ux extends mt{constructor(e){super({name:"AliasExistsException",$fault:"client",...e}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,Ux.prototype)}}class Vx extends mt{constructor(e){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...e}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Vx.prototype)}}class qx extends mt{constructor(e){super({name:"MFAMethodNotFoundException",$fault:"client",...e}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,qx.prototype)}}class Hx extends mt{constructor(e){super({name:"PasswordResetRequiredException",$fault:"client",...e}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,Hx.prototype)}}class Gx extends mt{constructor(e){super({name:"UserNotConfirmedException",$fault:"client",...e}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,Gx.prototype)}}class Wx extends mt{constructor(e){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Wx.prototype)}}class Kx extends mt{constructor(e){super({name:"CodeMismatchException",$fault:"client",...e}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,Kx.prototype)}}class Yx extends mt{constructor(e){super({name:"ExpiredCodeException",$fault:"client",...e}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,Yx.prototype)}}class Qx extends mt{constructor(e){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...e}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,Qx.prototype)}}class Jx extends mt{constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,Jx.prototype)}}const v4=t=>({...t,...t.Value&&{Value:sr}}),Ik=t=>({...t,...t.AccessToken&&{AccessToken:sr},...t.RefreshToken&&{RefreshToken:sr},...t.IdToken&&{IdToken:sr}}),lX=t=>({...t,...t.AuthParameters&&{AuthParameters:sr},...t.ClientId&&{ClientId:sr},...t.UserContextData&&{UserContextData:sr}}),cX=t=>({...t,...t.Session&&{Session:sr},...t.AuthenticationResult&&{AuthenticationResult:Ik(t.AuthenticationResult)}}),fX=t=>({...t,...t.ClientId&&{ClientId:sr},...t.Session&&{Session:sr},...t.ChallengeResponses&&{ChallengeResponses:sr},...t.UserContextData&&{UserContextData:sr}}),uX=t=>({...t,...t.Session&&{Session:sr},...t.AuthenticationResult&&{AuthenticationResult:Ik(t.AuthenticationResult)}}),dX=t=>({...t,...t.ClientId&&{ClientId:sr},...t.SecretHash&&{SecretHash:sr},...t.Username&&{Username:sr},...t.Password&&{Password:sr},...t.UserAttributes&&{UserAttributes:t.UserAttributes.map(e=>v4(e))},...t.ValidationData&&{ValidationData:t.ValidationData.map(e=>v4(e))},...t.UserContextData&&{UserContextData:sr}}),hX=async(t,e)=>{const r=ub("InitiateAuth");let n;return n=JSON.stringify(we(t)),fb(e,r,"/",void 0,n)},vX=async(t,e)=>{const r=ub("RespondToAuthChallenge");let n;return n=JSON.stringify(we(t)),fb(e,r,"/",void 0,n)},yX=async(t,e)=>{const r=ub("SignUp");let n;return n=JSON.stringify(we(t)),fb(e,r,"/",void 0,n)},pX=async(t,e)=>{if(t.statusCode>=300)return mX(t,e);const r=await I0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},mX=async(t,e)=>{const r={...t,body:await db(t.body,e)},n=hb(t,r.body);switch(n){case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await Xx(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await Zx(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await eb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await tb(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await rb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await nb(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await $k(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await ib(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await Dk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await sb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await ob(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await ab(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await lb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await Ok(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await Lk(r);default:const i=r.body;return cb({output:t,parsedBody:i,errorCode:n})}},gX=async(t,e)=>{if(t.statusCode>=300)return xX(t,e);const r=await I0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},xX=async(t,e)=>{const r={...t,body:await db(t.body,e)},n=hb(t,r.body);switch(n){case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await EX(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await SX(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await AX(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await Xx(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await Zx(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await eb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await tb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await Nk(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await rb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await nb(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await $k(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await RX(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await ib(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await Dk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await sb(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await PX(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await ob(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await ab(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await lb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await Ok(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await Lk(r);default:const i=r.body;return cb({output:t,parsedBody:i,errorCode:n})}},bX=async(t,e)=>{if(t.statusCode>=300)return wX(t,e);const r=await I0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},wX=async(t,e)=>{const r={...t,body:await db(t.body,e)},n=hb(t,r.body);switch(n){case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await CX(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await Xx(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await Zx(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await kX(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await eb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await tb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await Nk(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await rb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await nb(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await ib(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await sb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await ob(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await ab(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await lb(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await TX(r);default:const i=r.body;return cb({output:t,parsedBody:i,errorCode:n})}},EX=async(t,e)=>{const r=t.body,n=we(r),i=new Ux({$metadata:gt(t),...n});return Te(i,r)},CX=async(t,e)=>{const r=t.body,n=we(r),i=new Lx({$metadata:gt(t),...n});return Te(i,r)},SX=async(t,e)=>{const r=t.body,n=we(r),i=new Kx({$metadata:gt(t),...n});return Te(i,r)},AX=async(t,e)=>{const r=t.body,n=we(r),i=new Yx({$metadata:gt(t),...n});return Te(i,r)},Xx=async(t,e)=>{const r=t.body,n=we(r),i=new Jx({$metadata:gt(t),...n});return Te(i,r)},Zx=async(t,e)=>{const r=t.body,n=we(r),i=new Tx({$metadata:gt(t),...n});return Te(i,r)},kX=async(t,e)=>{const r=t.body,n=we(r),i=new Wx({$metadata:gt(t),...n});return Te(i,r)},eb=async(t,e)=>{const r=t.body,n=we(r),i=new Dx({$metadata:gt(t),...n});return Te(i,r)},tb=async(t,e)=>{const r=t.body,n=we(r),i=new _x({$metadata:gt(t),...n});return Te(i,r)},Nk=async(t,e)=>{const r=t.body,n=we(r),i=new Bx({$metadata:gt(t),...n});return Te(i,r)},rb=async(t,e)=>{const r=t.body,n=we(r),i=new Fx({$metadata:gt(t),...n});return Te(i,r)},nb=async(t,e)=>{const r=t.body,n=we(r),i=new jx({$metadata:gt(t),...n});return Te(i,r)},$k=async(t,e)=>{const r=t.body,n=we(r),i=new Vx({$metadata:gt(t),...n});return Te(i,r)},RX=async(t,e)=>{const r=t.body,n=we(r),i=new qx({$metadata:gt(t),...n});return Te(i,r)},ib=async(t,e)=>{const r=t.body,n=we(r),i=new Mx({$metadata:gt(t),...n});return Te(i,r)},Dk=async(t,e)=>{const r=t.body,n=we(r),i=new Hx({$metadata:gt(t),...n});return Te(i,r)},sb=async(t,e)=>{const r=t.body,n=we(r),i=new Ix({$metadata:gt(t),...n});return Te(i,r)},PX=async(t,e)=>{const r=t.body,n=we(r),i=new Qx({$metadata:gt(t),...n});return Te(i,r)},ob=async(t,e)=>{const r=t.body,n=we(r),i=new Nx({$metadata:gt(t),...n});return Te(i,r)},ab=async(t,e)=>{const r=t.body,n=we(r),i=new Ox({$metadata:gt(t),...n});return Te(i,r)},lb=async(t,e)=>{const r=t.body,n=we(r),i=new M0({$metadata:gt(t),...n});return Te(i,r)},TX=async(t,e)=>{const r=t.body,n=we(r),i=new zx({$metadata:gt(t),...n});return Te(i,r)},Ok=async(t,e)=>{const r=t.body,n=we(r),i=new Gx({$metadata:gt(t),...n});return Te(i,r)},Lk=async(t,e)=>{const r=t.body,n=we(r),i=new $x({$metadata:gt(t),...n});return Te(i,r)},gt=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"]}),_X=(t,e)=>Jg(t,e).then(r=>e.utf8Encoder(r)),cb=Xg(mt),fb=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 Mn(c)};function ub(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}}const I0=(t,e)=>_X(t,e).then(r=>r.length?JSON.parse(r):{}),db=async(t,e)=>{const r=await I0(t,e);return r.message=r.message??r.Message,r},hb=(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)};class vb extends Wl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(ql(r,this.serialize,this.deserialize)),this.middlewareStack.use(Hl(r,vb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"InitiateAuthCommand",inputFilterSensitiveLog:lX,outputFilterSensitiveLog:cX,[so]:{service:"AWSCognitoIdentityProviderService",operation:"InitiateAuth"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return hX(e,r)}deserialize(e,r){return pX(e,r)}}class yb extends Wl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(ql(r,this.serialize,this.deserialize)),this.middlewareStack.use(Hl(r,yb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"RespondToAuthChallengeCommand",inputFilterSensitiveLog:fX,outputFilterSensitiveLog:uX,[so]:{service:"AWSCognitoIdentityProviderService",operation:"RespondToAuthChallenge"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return vX(e,r)}deserialize(e,r){return gX(e,r)}}class pb extends Wl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(ql(r,this.serialize,this.deserialize)),this.middlewareStack.use(Hl(r,pb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"SignUpCommand",inputFilterSensitiveLog:dX,outputFilterSensitiveLog:f=>f,[so]:{service:"AWSCognitoIdentityProviderService",operation:"SignUp"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return yX(e,r)}deserialize(e,r){return bX(e,r)}}function zt(){return zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(!s.to||s.to===l7)throw new Error("Contract creation not supported");return{type:"transaction",to:s.to,value:oe.from(s.value||0).toHexString(),data:le(s.data||[])}})})}function LX({wallet:t,token:e,to:r,value:n,chainId:i,lifespan:s,identifier:o}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc20send",token:e,to:r,value:oe.from(n).toString()}]})}function BX({wallet:t,token:e,to:r,id:n,chainId:i,lifespan:s,identifier:o,safe:a,data:l}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc721send",token:e,to:r,id:n,safe:a,data:l}]})}function FX({wallet:t,token:e,to:r,values:n,chainId:i,lifespan:s,identifier:o,data:a}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc1155send",token:e,to:r,vals:n.map(l=>({id:l.id,amount:oe.from(l.amount).toString()})),data:a}]})}function jX({wallet:t,to:e,value:r,abi:n,func:i,args:s,chainId:o,lifespan:a,identifier:l}){return zt({},On(a),{identifier:l,code:"sendTransaction",wallet:t,network:o.toString(),transactions:[{type:"delayedEncode",to:e,value:oe.from(r).toString(),data:{abi:n,func:i,args:s}}]})}function zX(t){if(t.length===0)throw new Error("No packets provided");const e=t[0].network,r=t[0].wallet,n=t[0].expires-t[0].issued,i=t[0].identifier;if(!t.every(s=>s.network===e))throw new Error("All packets must have the same chainId");if(!t.every(s=>s.wallet===r))throw new Error("All packets must have the same wallet");return zt({},On(n),{identifier:i,code:"sendTransaction",network:e,wallet:r,transactions:t.reduce((s,o)=>s.concat(o.transactions),[])})}function Su(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 UX(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 Dc(t){return Su(t)||UX(t)}function VX(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 qX(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="validationRequired"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"}function HX(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="finishedSessionValidation"&&typeof t.data=="object"}function GX(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 WX(t){"version"in t&&(t=t.packet);const e=Zt(YH(t));return ae(bt(e))}function KX(t,e){const r=WX(e);return t.signMessage(r)}class YX{constructor(e,r){this.path="/rpc/Guard/",this.ping=n=>this.fetch(this.url("Ping"),Ir({},n)).then(i=>Nr(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),Ir({},n)).then(i=>Nr(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),Ir({},n)).then(i=>Nr(i).then(s=>({status:s.status}))),this.signTransactions=(n,i)=>this.fetch(this.url("SignTransactions"),Ir(n,i)).then(s=>Nr(s).then(o=>({sig:o.sig}))),this.signMessage=(n,i)=>this.fetch(this.url("SignMessage"),Ir(n,i)).then(s=>Nr(s).then(o=>({sig:o.sig}))),this.getGuardSignerAddress=(n,i)=>this.fetch(this.url("GetGuardSignerAddress"),Ir(n,i)).then(s=>Nr(s).then(o=>({address:o.address}))),this.getWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("GetWalletTransactionPolicyList"),Ir(n,i)).then(s=>Nr(s).then(o=>({policyList:o.policyList}))),this.setWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("SetWalletTransactionPolicyList"),Ir(n,i)).then(s=>Nr(s).then(o=>({}))),this.getSessionUserMapRules=(n,i)=>this.fetch(this.url("GetSessionUserMapRules"),Ir(n,i)).then(s=>Nr(s).then(o=>({rules:o.rules}))),this.setSessionUserMapRules=(n,i)=>this.fetch(this.url("SetSessionUserMapRules"),Ir(n,i)).then(s=>Nr(s).then(o=>({}))),this.getSession=(n,i)=>this.fetch(this.url("GetSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({validated:o.validated}))),this.registerSession=(n,i)=>this.fetch(this.url("RegisterSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({sessionId:o.sessionId}))),this.startSessionValidation=(n,i)=>this.fetch(this.url("StartSessionValidation"),Ir(n,i)).then(s=>Nr(s).then(o=>({salt:o.salt}))),this.validateSession=(n,i)=>this.fetch(this.url("ValidateSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({status:o.status}))),this.invalidateSession=(n,i)=>this.fetch(this.url("InvalidateSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({status:o.status}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Ir=(t={},e={})=>({method:"POST",headers:zt({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Nr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r});function QX({wallet:t,chainId:e,message:r,lifespan:n}){return zt({},On(n),{code:"signMessage",wallet:t,network:e.toString(),message:r.startsWith("0x")?r:le(Zt(r))})}const kp={mainnet:1,goerli:5,polygon:137,"polygon-zkevm":1101,mumbai:80001,bsc:56,"bsc-testnet":97,arbitrum:42161,"arbitrum-nova":42170,"arbitrum-goerli":421613,optimism:10,gnosis:100,avalanche:43114,"avalanche-testnet":43113,"base-goerli":84531},JX=Object.entries(kp).reduce((t,[e,r])=>(t[r]=e,t),{});function y4(t){if(typeof t=="number"){if(t in JX)return t;throw new Error(`Unknown network id ${t}`)}const e=t.toLowerCase();if(e in kp)return kp[e];throw new Error(`Unknown network name ${t}`)}const Fk="https://guard2.sequence.app",jk={rpcServer:"http://localhost:9123",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-1:000000000000:key/aeb99e0f-9e89-44de-a084-e1817af47778",endpoint:"http://localstack:4566"},XX={rpcServer:"https://d14tu8valot5m0.cloudfront.net",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-2:170768627592:key/0fd8f803-9cb5-4de5-86e4-41963fb6043d",endpoint:void 0};var ZX=Object.freeze({__proto__:null,DEFAULT_GUARD:Fk,TEMPLATE_LOCAL:jk,TEMPLATE_NEXT:XX});const eZ="@0xsequence.waas.wallet",tZ="@0xsequence.waas.signer",rZ="@0xsequence.waas.status",Eo=5*60;class nZ{constructor(e={network:1},r=new Bk,n=Fk){this.VERSION="0.0.0-dev1",this.config=e,this.store=r,this.guardUrl=n,this.status=new mf(this.store,rZ,"signed-out"),this.signer=new mf(this.store,tZ,void 0),this.wallet=new mf(this.store,eZ,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 zt({},e,{identifier:e==null?void 0:e.identifier,wallet:await this.getWalletAddress(),lifespan:(r=e==null?void 0:e.lifespan)!=null?r:Eo,chainId:y4(e.network||this.config.network)})}async buildPayload(e){if(!await this.isSignedIn())throw new Error("Not signed in");const r=await this.signer.get();if(!r)throw new Error("No signer");const n=new Xn(r),i=await KX(n,e);return{version:this.VERSION,packet:e,signatures:[{session:n.address,signature:i}]}}async signUsingSessionKey(e){const r=await this.signer.get();if(!r)throw new Error("No signer");return new Xn(r).signMessage(e)}async getSignerAddress(){const e=await this.signer.get();if(!e)throw new Error("No signer");return new Xn(e).address}async getSessionID(){return this.getSignerAddress()}async getSessionShortID(){return(await this.getSessionID()).substring(2,8)}async signIn(e){await this.status.get()!=="signed-out"&&await this.completeSignOut();const n=await MX({proof:e,lifespan:Eo});return await Promise.all([this.status.set("pending"),this.signer.set(n.signer.privateKey)]),{version:this.VERSION,packet:n.packet,signatures:[]}}async signOut({lifespan:e,sessionId:r}={}){const n=await IX({lifespan:e||Eo,wallet:await this.getWalletAddress(),session:r||await this.getSignerAddress()});return this.buildPayload(n)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.signer.set(void 0),this.wallet.set(void 0)])}async completeSignIn(e){if(e.result)return this.completeSignIn(e.result);const r=await this.status.get(),n=await this.signer.get();if(e.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending"||!n)throw new Error("No pending sign in");if(new Xn(n).address.toLowerCase()!==e.data.sessionId.toLowerCase())throw new Error("Invalid signer");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 signMessage(e){var r;const n=QX(zt({chainId:y4(e.network||this.config.network),lifespan:(r=e.lifespan)!=null?r:Eo,wallet:await this.getWalletAddress()},e));return this.buildPayload(n)}async sendTransaction(e){const r=OX(await this.commonArgs(e));return this.buildPayload(r)}async sendERC20(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=LX(await this.commonArgs(e));return this.buildPayload(r)}async sendERC721(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=BX(await this.commonArgs(e));return this.buildPayload(r)}async sendERC1155(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=FX(await this.commonArgs(e));return this.buildPayload(r)}async callContract(e){const r=jX(await this.commonArgs(e));return this.buildPayload(r)}async validateSession({deviceMetadata:e,redirectURL:r}){const n=await NX({lifespan:Eo,session:await this.getSignerAddress(),deviceMetadata:e,redirectURL:r,wallet:await this.getWalletAddress()});return this.buildPayload(n)}async getSession(){const e=await DX({session:await this.getSignerAddress(),wallet:await this.getWalletAddress(),lifespan:Eo});return this.buildPayload(e)}async finishValidateSession(e,r){const n=await this.getSignerAddress(),i=await this.getWalletAddress(),s=$X(i,n,e,r,Eo);return this.buildPayload(s)}async isSessionValid(){const e=await this.getSignerAddress(),r=new YX(this.guardUrl,fetch);try{if((await r.getSession({sessionAddress:e})).validated)return!0}catch{}return!1}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async batch(e){const r=zX(e.map(n=>n.packet));return this.buildPayload(r)}}class iZ{constructor(e,r){this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Oc(n,i,s)).then(o=>Lc(o).then(a=>({session:a.session,data:a.data})),o=>{throw Ls.new({cause:`fetch(): ${o.message||""}`})}),this.listSessions=(n,i,s)=>this.fetch(this.url("ListSessions"),Oc(n,i,s)).then(o=>Lc(o).then(a=>({sessions:a.sessions})),o=>{throw Ls.new({cause:`fetch(): ${o.message||""}`})}),this.dropSession=(n,i,s)=>this.fetch(this.url("DropSession"),Oc(n,i,s)).then(o=>Lc(o).then(a=>({ok:a.ok})),o=>{throw Ls.new({cause:`fetch(): ${o.message||""}`})}),this.getAddress=(n,i,s)=>this.fetch(this.url("GetAddress"),Oc(n,i,s)).then(o=>Lc(o).then(a=>({address:a.address})),o=>{throw Ls.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Oc(n,i,s)).then(o=>Lc(o).then(a=>({code:a.code,data:a.data})),o=>{throw Ls.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Oc=(t={},e={},r=null)=>({method:"POST",headers:zt({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Lc=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),N0.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(sZ[n]||li).new(r)}return r});class li extends Error{constructor(e,r,n,i,s){super(n),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,li.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}}class mb extends li{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,mb.prototype)}}class Ls extends li{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Ls.prototype)}}class gb extends li{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,gb.prototype)}}class xb extends li{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,xb.prototype)}}class bb extends li{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,bb.prototype)}}class N0 extends li{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,N0.prototype)}}class wb extends li{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,wb.prototype)}}class Eb extends li{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Eb.prototype)}}const sZ={0:mb,[-1]:Ls,[-2]:gb,[-3]:xb,[-4]:bb,[-5]:N0,[-6]:wb,[-7]:Eb};function oZ(t){const e=new Uint8Array(t);return window.crypto.getRandomValues(e),Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class aZ{constructor(e,r){this.region=e,this.clientId=r}cognito(){return this.cognitoMemo||(this.cognitoMemo=new aX({region:this.region})),this.cognitoMemo}signUp(e){return this.cognito().send(new pb({ClientId:this.clientId,Username:e,Password:"aB1%"+oZ(14),UserAttributes:[{Name:"email",Value:e}]}))}signIn(e){return this.cognito().send(new vb({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}){const i=await this.cognito().send(new yb({ClientId:this.clientId,Session:e,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n}}));if(!i.AuthenticationResult||!i.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:i.AuthenticationResult.IdToken}}}function Mv(t){return"0x"+Array.from(typeof t=="string"?new TextEncoder().encode(t):t,e=>e.toString(16).padStart(2,"0")).join("")}function lZ(t){return new Uint8Array(t.substring(2).match(/.{1,2}/g).map(e=>parseInt(e,16)))}function cZ(t){return JSON.parse(atob(t))}function fZ(t,e){const r=t.key,n=r?cZ(r):{},i=zt({},e,t,n);if(i.network===void 0&&(i.network=1),i.tenant===void 0)throw new Error("Missing tenant");if(i.secret===void 0)throw new Error("Missing secret");if(i.identityPoolId===void 0)throw new Error("Missing identityPoolId");return i}class uZ{constructor(e,r=jk,n=new Bk){this.validationRequiredCallback=[],this.store=n,this.config=fZ(e,r),this.waas=new nZ(zt({network:1},e),this.store),this.client=new iZ(this.config.rpcServer,window.fetch),this.kmsKey=new mf(this.store,"@0xsequence.waas.auth.key",void 0),this.deviceName=new mf(this.store,"@0xsequence.waas.auth.deviceName",void 0)}get email(){if(this.emailClient)return this.emailClient;if(!this.config.emailRegion)throw new Error("Missing emailRegion");if(!this.config.emailClientId)throw new Error("Missing emailClientId");return this.emailClient=new aZ(this.config.emailRegion,this.config.emailClientId),this.emailClient}async onValidationRequired(e){return this.validationRequiredCallback.push(e),()=>{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()}async useStoredCypherKey(){const e=await this.kmsKey.get();if(!e)throw new Error("No stored key");const r=JSON.parse(e);if(r.encryptedPayloadKey&&r.plainHex)return r;throw new Error("Invalid stored key")}async saveCypherKey(e){const r=await e.send(new Rx({KeyId:this.config.keyId,KeySpec:"AES_256"}));if(!r.CiphertextBlob||!r.Plaintext)throw new Error("invalid response from KMS");return this.kmsKey.set(JSON.stringify({encryptedPayloadKey:Mv(r.CiphertextBlob),plainHex:Mv(r.Plaintext)}))}async sendIntent(e){const r={sessionId:await this.waas.getSessionID(),intentJson:JSON.stringify(e,null,0)},{args:n,headers:i}=await this.preparePayload(r);return this.client.sendIntent(n,i)}async preparePayload(e){const{encryptedPayloadKey:r,plainHex:n}=await this.useStoredCypherKey(),i={name:"AES-CBC",iv:window.crypto.getRandomValues(new Uint8Array(16))},s=await window.crypto.subtle.importKey("raw",lZ(n),i,!1,["encrypt"]),o=new TextEncoder().encode(JSON.stringify(e)),a=await window.crypto.subtle.encrypt(i,s,o),l=Mv(new Uint8Array([...i.iv,...new Uint8Array(a)])),c=await this.waas.signUsingSessionKey(o);return{headers:{"X-Sequence-Tenant":this.config.tenant},args:{encryptedPayloadKey:r,payloadCiphertext:l,payloadSig:c}}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(e,r){const n=await this.waas.signIn({idToken:e.idToken}),i=FQ(e.idToken);if(!i.iss)throw new Error("Invalid idToken");const s=new dJ({region:this.config.kmsRegion,endpoint:this.config.endpoint,credentials:OQ({identityPoolId:this.config.identityPoolId,logins:{[i.iss.replace("https://","").replace("http://","")]:e.idToken},clientConfig:{region:this.config.idpRegion}})});await this.saveCypherKey(s);const o={projectId:this.config.tenant,idToken:e.idToken,sessionAddress:n.packet.session,friendlyName:r,intentJSON:JSON.stringify(n,null,0)},{args:a,headers:l}=await this.preparePayload(o),c=await this.client.registerSession(a,l);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:c.session.id,wallet:c.data.wallet}}),this.deviceName.set(r),c.session.address}async refreshSession(){throw new Error("Not implemented")}async getSessionID(){return this.waas.getSessionID()}async dropSession({sessionId:e,strict:r}={}){const n=await this.waas.getSessionID(),i=e||n;try{const s={dropSessionId:i,sessionId:n},{args:o,headers:a}=await this.preparePayload(s);await this.client.dropSession(o,a)}catch(s){if(r)throw s;console.error(s)}i.toLowerCase()===n.toLowerCase()&&(await this.waas.completeSignOut(),this.kmsKey.set(void 0),this.deviceName.set(void 0))}async listSessions(){const e={sessionId:await this.waas.getSessionID()},r=await this.waas.getSessionID().then(o=>o.toLowerCase()),{args:n,headers:i}=await this.preparePayload(e);return(await this.client.listSessions(n,i)).sessions.map(o=>zt({},o,{isThis:o.address.toLowerCase()===r}))}async getAddress(){return this.waas.getAddress()}async validateSession(e){return await this.waas.isSessionValid()?!0:this.handleValidationRequired(e)}async finishValidateSession(e){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,e),n=await this.sendIntent(r);if(!HX(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(!GX(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 useIdentifier(e){if(e.identifier)return e;const r=`ts-sdk-${Date.now()}-${await this.waas.getSignerAddress()}`;return zt({},e,{identifier:r})}async trySendIntent(e,r,n){const i=await this.sendIntent(r);if(n(i))return i;if(qX(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,VX)}async sendTransaction(e){const r=await this.waas.sendTransaction(await this.useIdentifier(e));return this.trySendIntent(e,r,Dc)}async sendERC20(e){const r=await this.waas.sendERC20(await this.useIdentifier(e));return this.trySendIntent(e,r,Dc)}async sendERC721(e){const r=await this.waas.sendERC721(await this.useIdentifier(e));return this.trySendIntent(e,r,Dc)}async sendERC1155(e){const r=await this.waas.sendERC1155(await this.useIdentifier(e));return this.trySendIntent(e,r,Dc)}async callContract(e){const r=await this.waas.callContract(await this.useIdentifier(e));return this.trySendIntent(e,r,Dc)}}function dZ(){const[t,e]=g.useState(),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(),[l,c]=g.useState(!1),[f,u]=g.useState();g.useEffect(()=>{d()},[]);const d=async()=>{const m=It.getAddress();e(await zk.getBalance(m))},v=async(m,y)=>{try{u(void 0),c(!0);const w=await It.sendTransaction({transactions:[{to:m,value:BH(y)}]});Su(w)?a(w.data.txHash):u(w.data.error),c(!1)}catch(w){console.error(w),c(!1)}};return U.jsxs(ie,{children:[U.jsxs(Le,{variant:"normal",fontWeight:"bold",children:["Native token balance: ",LH(t||0)," MATIC"]}),U.jsx(Yr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:d}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"sendNativeTokenTo",type:"text",onChange:m=>{n(m.target.value)},value:r,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"sendNativeTokenAmount",type:"text",onChange:m=>{s(m.target.value)},value:i,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),f&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",f]}),l?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Send native token",disabled:r===""&&i==="",onClick:()=>v(r,i)}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function hZ(){const[t,e]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState(!0),[o,a]=g.useState(),l=async c=>{s(!0),e(void 0);try{await It.dropSession({sessionId:c}),e(await It.listSessions())}catch(f){a(f.message),e(await It.listSessions())}s(!1)};return g.useEffect(()=>{Promise.all([It.listSessions(),It.getSessionID()]).then(([c,f])=>{e(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),U.jsxs(ie,{children:[U.jsxs(ie,{marginBottom:"5",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),t&&U.jsx(U.Fragment,{children:t.map(c=>U.jsxs(ie,{children:[c.friendlyName,!c.isThis&&U.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&U.jsx(U.Fragment,{children:" (current)"})]},c.id))}),i&&U.jsx(ps,{})]}),o&&U.jsxs(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function vZ(){const[t,e]=g.useState(""),[r,n]=g.useState(),i=async()=>{const s=await It.signMessage({message:t});n(s.data.signature)};return U.jsxs(ie,{children:[U.jsx(gr,{name:"signMessageText",type:"text",onChange:s=>{e(s.target.value),r!=""&&n("")},value:t,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),U.jsx(Yr,{marginTop:"5",label:"Sign message",disabled:t==="",onClick:()=>i()}),r&&r!==""&&U.jsxs(ie,{flexDirection:"column",marginTop:"5",children:[U.jsxs(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",t,":"]}),U.jsx(ie,{children:U.jsx(Le,{as:"p",wordBreak:"break-word",children:r})})]})]})}function yZ(){const[t,e]=g.useState(""),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(),[f,u]=g.useState(!1),[d,v]=g.useState(),m=async()=>{try{v(void 0),u(!0);const y=await It.callContract({to:t,abi:r,func:i,args:JSON.parse(o),value:0});Su(y)?c(y.data.txHash):v(y.data.error),u(!1)}catch(y){console.error(y),u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractAddress",type:"text",onChange:y=>{e(y.target.value)},value:t,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractAbi",type:"text",onChange:y=>{n(y.target.value)},value:r,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractMethod",type:"text",onChange:y=>{s(y.target.value)},value:i,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractArgs",type:"text",onChange:y=>{a(y.target.value)},value:o,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),d&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",d]}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Call contract",disabled:t===""&&r===""&&i===""&&o==="",onClick:()=>m()}),l&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${l}`,target:"_blank",rel:"noopener noreferrer",children:l})]})]})}const p4=[{label:"Custom Token",value:""},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function pZ(){const[t,e]=g.useState(p4[0].value),[r,n]=g.useState(""),[i,s]=g.useState(!0),[o,a]=g.useState("---"),[l,c]=g.useState(""),[f,u]=g.useState(""),[d,v]=g.useState(""),[m,y]=g.useState(""),[w,b]=g.useState(!1),[x,S]=g.useState(0);g.useEffect(()=>{A(r)},[r]);const A=async $=>{if(!hz($)){a("---");return}a("...");const O=new Rq($,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],zk),[H,Y,Q]=await Promise.all([O.balanceOf(It.getAddress()),O.decimals(),O.symbol()]);S(Y),a(`${w9(H,Y)} ${Q}`)},_=async()=>{try{y(""),b(!0);const $=await It.sendERC20({token:r,to:l,value:Ag(f,x)});Su($)?v($.data.txHash):y($.data.error)}catch($){console.error($)}finally{b(!1)}},D=$=>{e($),$===""?(n(""),s(!0)):(n($),s(!1))};return U.jsxs(ie,{children:[U.jsxs(ie,{marginTop:"5",children:[U.jsx(bA,{name:"token",options:p4,value:t??"",onValueChange:$=>D($)}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:r,disabled:!i,onChange:$=>n($.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),U.jsxs(ie,{marginTop:"3",children:[U.jsxs(Le,{variant:"normal",children:["Token Balance: ",o]}),U.jsx(Yr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>A(r)})]}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:l,onChange:$=>c($.target.value),placeholder:"Destination Address"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:f,onChange:$=>u($.target.value),placeholder:"Amount"})}),m&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Le,{color:"error",children:["Error: ",m]})}),w?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Send Token",onClick:_}),d&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${d}`,target:"_blank",rel:"noopener noreferrer",children:d})]})]})}function mZ(t){var a;const[e,r]=g.useState(""),[n,i]=g.useState("");g.useEffect(()=>{t.onChange(t.index,e,n)},[e,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return U.jsxs(ie,{style:s,children:[U.jsx(ie,{style:o,children:U.jsx(bA,{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"})}),U.jsx(ie,{style:o,children:U.jsx(gr,{type:"text",value:e,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),U.jsx(ie,{style:o,children:U.jsx(gr,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),U.jsx(ie,{style:o,children:U.jsx(Yr,{label:"Remove",onClick:()=>t.removeTokenEntry(t.index)})})]})}function gZ(){const[t,e]=g.useState(""),[r,n]=g.useState([]),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(""),[f,u]=g.useState(!1),[d,v]=g.useState(void 0),m=()=>{n([...r,{tokenId:"",amount:""}])},y=async()=>{{console.error("Missing INDEXER_API_KEY, ERC1155 token metadata will not be fetched");return}};g.useEffect(()=>{y()},[t]);const w=(S,A)=>{const _=[...r];_[S]=A,n(_)},b=S=>{const A=[...r];A.splice(S,1),n(A)},x=async()=>{try{c(""),u(!0);const S=await It.sendERC1155({to:i,token:t,values:r.map(A=>({id:A.tokenId,amount:Ag(A.amount,0)}))});Su(S)?a(S.data.txHash):c(S.data.error)}catch(S){console.error(S)}finally{u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginBottom:"5",children:U.jsx(gr,{type:"text",value:t,onChange:S=>e(S.target.value),placeholder:"Token Contract Address"})}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Yr,{label:"Fetch metadata",onClick:()=>y()})}),r.map((S,A)=>U.jsx(ie,{marginBottom:"3",children:U.jsx(mZ,{index:A,options:d,onChange:(_,D,$)=>w(_,{tokenId:D,amount:$}),removeTokenEntry:b})},A)),U.jsx(Yr,{label:"Add Token",onClick:m}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:i,onChange:S=>s(S.target.value),placeholder:"Destination Address"})}),l&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Le,{color:"error",children:["Error: ",l]})}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Send Tokens",onClick:x}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function xZ(){const[t,e]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState([]),[o,a]=g.useState(!1),[l,c]=g.useState(!1);return g.useEffect(()=>{It.getAddress().then(f=>{e(f)}).catch(f=>{n(f.message)})},[]),g.useEffect(()=>{It.isSignedIn().then(f=>{f||ol.navigate("/login")})},[]),g.useEffect(()=>{const f=i.join("");f.length===6&&(c(!0),It.finishValidateSession(f))},[i]),g.useEffect(()=>{const f=It.onValidationRequired(()=>{a(!0),It.waitForSessionValid(6e5,4e3).then(u=>{console.log("isValid",u),s([]),a(!1),c(!1)})});return()=>{f.then(u=>u())}},[]),U.jsxs(U.Fragment,{children:[U.jsx(ZC,{children:o&&U.jsx(EL,{children:U.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:U.jsxs(ie,{flexDirection:"column",alignItems:"center",children:[U.jsx(Le,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),U.jsx(UA,{value:i,digits:6,onChange:s}),U.jsx(ie,{marginTop:"5",children:l&&U.jsx(ps,{})})]})})})}),U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"10",children:U.jsx(VA,{})}),U.jsxs(ie,{marginBottom:"5",flexDirection:"row",children:[U.jsxs(Le,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),U.jsx(Yr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await It.dropSession({strict:!1})}catch(f){console.warn(`Could not drop session: ${f.message}`)}Lj(),ol.navigate("/login")}})]}),U.jsx(bo,{background:"buttonGlass"}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),U.jsx(ie,{marginBottom:"4",children:t?U.jsx(ie,{children:U.jsx(Le,{children:t})}):U.jsx(ps,{})}),U.jsx(ie,{children:r&&U.jsxs(Le,{children:["Error fetching wallet address: ",r]})}),U.jsx(bo,{background:"buttonGlass"}),U.jsx(hZ,{}),U.jsxs(lc,{marginY:"3",label:"Send native token transaction",children:[U.jsx(bo,{background:"buttonGlass"}),U.jsx(dZ,{})]}),U.jsxs(lc,{marginY:"3",label:"Send ERC20 transaction",children:[U.jsx(bo,{background:"buttonGlass"}),U.jsx(pZ,{})]}),U.jsxs(lc,{marginY:"3",label:"Send ERC1155 transaction",children:[U.jsx(bo,{background:"buttonGlass"}),U.jsx(gZ,{})]}),U.jsxs(lc,{marginY:"3",label:"Sign a message",children:[U.jsx(bo,{background:"buttonGlass"}),U.jsx(vZ,{})]}),U.jsxs(lc,{marginY:"3",label:"Call contracts",children:[U.jsx(bo,{background:"buttonGlass"}),U.jsx(yZ,{})]})]})]})}const bZ="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",wZ="eyJzZWNyZXQiOiJ0YmQiLCJ0ZW5hbnQiOjksImlkZW50aXR5UG9vbElkIjoidXMtZWFzdC0yOjQyYzlmMzlkLWM5MzUtNGQ1Yy1hODQ1LTVjODgxNWM3OWVlMyIsImVtYWlsQ2xpZW50SWQiOiI1Zmw3ZGc3bXZ1NTM0bzl2ZmpiYzZoajMxcCIsImlkcFJlZ2lvbiI6InVzLWVhc3QtMiJ9",zk=new $H("https://nodes.sequence.app/polygon"),It=new uZ({network:"polygon",key:wZ},ZX.TEMPLATE_NEXT),ol=Rj([{path:"/login",element:U.jsx(KH,{})},{path:"/",element:U.jsx(xZ,{})}]);Iv.createRoot(document.getElementById("root")).render(U.jsx(cr.StrictMode,{children:U.jsx(yF,{children:U.jsx(Ij,{clientId:bZ,children:U.jsx(Cj,{router:ol})})})})); + */class hk{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new G4(e,r)}static parse(e){return new G4(e).getResult()}static get BROWSER_MAP(){return dk}static get ENGINE_MAP(){return Is}static get OS_MAP(){return $r}static get PLATFORMS_MAP(){return Vt}}const ux=({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)?hk.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},dx=t=>()=>Promise.reject(t),hx=t=>{if(typeof t=="string"){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}`)},vk="required",ki="fn",Ri="argv",Yl="ref",W4=!0,K4="isSet",tu="booleanEquals",ba="error",Nc="endpoint",Gi="tree",vx="PartitionResult",Y4={[vk]:!1,type:"String"},Q4={[vk]:!0,default:!1,type:"Boolean"},J4={[Yl]:"Endpoint"},yk={[ki]:tu,[Ri]:[{[Yl]:"UseFIPS"},!0]},pk={[ki]:tu,[Ri]:[{[Yl]:"UseDualStack"},!0]},vi={},X4={[ki]:"getAttr",[Ri]:[{[Yl]:vx},"supportsFIPS"]},Z4={[ki]:tu,[Ri]:[!0,{[ki]:"getAttr",[Ri]:[{[Yl]:vx},"supportsDualStack"]}]},eE=[yk],tE=[pk],rE=[{[Yl]:"Region"}],MQ={version:"1.0",parameters:{Region:Y4,UseDualStack:Q4,UseFIPS:Q4,Endpoint:Y4},rules:[{conditions:[{[ki]:K4,[Ri]:[J4]}],rules:[{conditions:eE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ba},{conditions:tE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ba},{endpoint:{url:J4,properties:vi,headers:vi},type:Nc}],type:Gi},{conditions:[{[ki]:K4,[Ri]:rE}],rules:[{conditions:[{[ki]:"aws.partition",[Ri]:rE,assign:vx}],rules:[{conditions:[yk,pk],rules:[{conditions:[{[ki]:tu,[Ri]:[W4,X4]},Z4],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Gi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ba}],type:Gi},{conditions:eE,rules:[{conditions:[{[ki]:tu,[Ri]:[X4,W4]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Gi},{error:"FIPS is enabled but this partition does not support FIPS",type:ba}],type:Gi},{conditions:tE,rules:[{conditions:[Z4],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Gi},{error:"DualStack is enabled but this partition does not support DualStack",type:ba}],type:Gi},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Gi}],type:Gi},{error:"Invalid Configuration: Missing Region",type:ba}]},IQ=MQ,NQ=(t,e={})=>Hg(IQ,{endpointParams:t,logger:e.logger}),$Q=t=>({apiVersion:"2014-06-30",base64Decoder:(t==null?void 0:t.base64Decoder)??Su,base64Encoder:(t==null?void 0:t.base64Encoder)??D0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??NQ,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new tx,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity",urlParser:(t==null?void 0:t.urlParser)??Sl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??ql,utf8Encoder:(t==null?void 0:t.utf8Encoder)??Cu}),DQ=["in-region","cross-region","mobile","standard","legacy"],yx=({defaultsMode:t}={})=>I9(async()=>{const e=typeof t=="function"?await t():t;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(OQ()?"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 ${DQ.join(", ")}, got ${e}`)}}),OQ=()=>{var r,n;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?hk.parse(window.navigator.userAgent):void 0,e=(n=t==null?void 0:t.platform)==null?void 0:n.type;return e==="tablet"||e==="mobile"},LQ=t=>{const e=yx(t),r=()=>e().then(ax),n=$Q(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??hx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??ux({serviceId:n.serviceId,clientVersion:cQ.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??kl,region:(t==null?void 0:t.region)??dx("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new nx(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||Xg),sha256:(t==null?void 0:t.sha256)??O0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??ix,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Wg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(Kg))}},px=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}}},mx=t=>({region:t.region()}),$v=t=>t,BQ=(t,e)=>{const r={...$v(px(t)),...$v(lx(t)),...$v(Dg(t))};return e.forEach(n=>n.configure(r)),{...t,...mx(r),...cx(r),...Og(r)}};class FQ extends rx{constructor(...[e]){const r=LQ(e||{}),n=qY(r),i=Yg(n),s=Jg(i),o=Zg(s),a=o,l=zg(a),c=Ug(l),f=BQ(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(ex(this.config)),this.middlewareStack.use(Qg(this.config)),this.middlewareStack.use(Lg(this.config)),this.middlewareStack.use(Bg(this.config)),this.middlewareStack.use(Fg(this.config)),this.middlewareStack.use(Gg(this.config))}destroy(){super.destroy()}}class $n extends Au{constructor(e){super(e),Object.setPrototypeOf(this,$n.prototype)}}let jQ=class mk extends $n{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,mk.prototype)}},zQ=class gk extends $n{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,gk.prototype)}};class gx extends $n{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,gx.prototype)}}let UQ=class xk extends $n{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,xk.prototype)}};class xx extends $n{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,xx.prototype)}}let VQ=class bk extends $n{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,bk.prototype)}},qQ=class wk extends $n{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,wk.prototype)}};class bx extends $n{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,bx.prototype)}}class wx extends $n{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,wx.prototype)}}const HQ=async(t,e)=>{const r=Mk("GetCredentialsForIdentity");let n;return n=JSON.stringify(we(t)),_k(e,r,"/",void 0,n)},GQ=async(t,e)=>{const r=Mk("GetId");let n;return n=JSON.stringify(we(t)),_k(e,r,"/",void 0,n)},WQ=async(t,e)=>{if(t.statusCode>=300)return KQ(t,e);const r=await Ex(t.body,e);let n={};return n=eJ(r),{$metadata:ai(t),...n}},KQ=async(t,e)=>{const r={...t,body:await Ik(t.body,e)},n=Nk(t,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await Ek(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await Ck(r);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await JQ(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await Sk(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Ak(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await kk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await Rk(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Pk(r);default:const i=r.body;return Tk({output:t,parsedBody:i,errorCode:n})}},YQ=async(t,e)=>{if(t.statusCode>=300)return QQ(t,e);const r=await Ex(t.body,e);let n={};return n=we(r),{$metadata:ai(t),...n}},QQ=async(t,e)=>{const r={...t,body:await Ik(t.body,e)},n=Nk(t,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await Ek(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await Ck(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await Sk(r);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await XQ(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Ak(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await kk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await Rk(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Pk(r);default:const i=r.body;return Tk({output:t,parsedBody:i,errorCode:n})}},Ek=async(t,e)=>{const r=t.body,n=we(r),i=new bx({$metadata:ai(t),...n});return Te(i,r)},Ck=async(t,e)=>{const r=t.body,n=we(r),i=new jQ({$metadata:ai(t),...n});return Te(i,r)},JQ=async(t,e)=>{const r=t.body,n=we(r),i=new wx({$metadata:ai(t),...n});return Te(i,r)},Sk=async(t,e)=>{const r=t.body,n=we(r),i=new zQ({$metadata:ai(t),...n});return Te(i,r)},XQ=async(t,e)=>{const r=t.body,n=we(r),i=new gx({$metadata:ai(t),...n});return Te(i,r)},Ak=async(t,e)=>{const r=t.body,n=we(r),i=new UQ({$metadata:ai(t),...n});return Te(i,r)},kk=async(t,e)=>{const r=t.body,n=we(r),i=new xx({$metadata:ai(t),...n});return Te(i,r)},Rk=async(t,e)=>{const r=t.body,n=we(r),i=new qQ({$metadata:ai(t),...n});return Te(i,r)},Pk=async(t,e)=>{const r=t.body,n=we(r),i=new VQ({$metadata:ai(t),...n});return Te(i,r)},ZQ=(t,e)=>ku(t,{AccessKeyId:mf,Expiration:r=>_Y($Y(Mp(r))),SecretKey:mf,SessionToken:mf}),eJ=(t,e)=>ku(t,{Credentials:r=>ZQ(r),IdentityId:mf}),ai=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,e)=>sx(t,e).then(r=>e.utf8Encoder(r)),Tk=ox($n),_k=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 Mn(c)};function Mk(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${t}`}}const Ex=(t,e)=>tJ(t,e).then(r=>r.length?JSON.parse(r):{}),Ik=async(t,e)=>{const r=await Ex(t,e);return r.message=r.message??r.Message,r},Nk=(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)};class Cx extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Cx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[ao]:{service:"AWSCognitoIdentityService",operation:"GetCredentialsForIdentity"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return HQ(e,r)}deserialize(e,r){return WQ(e,r)}}class Sx extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Sx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[ao]:{service:"AWSCognitoIdentityService",operation:"GetId"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return GQ(e,r)}deserialize(e,r){return YQ(e,r)}}function $k(t){return Promise.all(Object.keys(t).reduce((e,r)=>{const n=t[r];return typeof n=="string"?e.push([r,n]):e.push(n().then(i=>[r,i])),e},[])).then(e=>e.reduce((r,[n,i])=>(r[n]=i,r),{}))}function rJ(t){return async()=>{const{Credentials:{AccessKeyId:e=nJ(),Expiration:r,SecretKey:n=sJ(),SessionToken:i}=iJ()}=await t.client.send(new Cx({CustomRoleArn:t.customRoleArn,IdentityId:t.identityId,Logins:t.logins?await $k(t.logins):void 0}));return{identityId:t.identityId,accessKeyId:e,secretAccessKey:n,sessionToken:i,expiration:r}}}function nJ(){throw new Vl("Response from Amazon Cognito contained no access key ID")}function iJ(){throw new Vl("Response from Amazon Cognito contained no credentials")}function sJ(){throw new Vl("Response from Amazon Cognito contained no secret key")}const Dv="IdentityIds";class oJ{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",r=>{const n=r.get(e);return new Promise(i=>{n.onerror=()=>i(null),n.onsuccess=()=>i(n.result?n.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",r=>{const n=r.delete(e);return new Promise((i,s)=>{n.onerror=()=>s(n.error),n.onsuccess=()=>i()})})}setItem(e,r){return this.withObjectStore("readwrite",n=>{const i=n.put({id:e,value:r});return new Promise((s,o)=>{i.onerror=()=>o(i.error),i.onsuccess=()=>s()})})}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise((r,n)=>{e.onsuccess=()=>{r(e.result)},e.onerror=()=>{n(e.error)},e.onblocked=()=>{n(new Error("Unable to access DB"))},e.onupgradeneeded=()=>{const i=e.result;i.onerror=()=>{n(new Error("Failed to create object store"))},i.createObjectStore(Dv,{keyPath:"id"})}})}withObjectStore(e,r){return this.getDb().then(n=>{const i=n.transaction(Dv,e);return i.oncomplete=()=>n.close(),new Promise((s,o)=>{i.onerror=()=>o(i.error),s(r(i.objectStore(Dv)))}).catch(s=>{throw n.close(),s})})}}class aJ{constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,r){this.store[e]=r}}const lJ=new aJ;function cJ(){return typeof self=="object"&&self.indexedDB?new oJ:typeof window=="object"&&window.localStorage?window.localStorage:lJ}function fJ({accountId:t,cache:e=cJ(),client:r,customRoleArn:n,identityPoolId:i,logins:s,userIdentifier:o=!s||Object.keys(s).length===0?"ANONYMOUS":void 0}){const a=o?`aws:cognito-identity-credentials:${i}:${o}`:void 0;let l=async()=>{let c=a&&await e.getItem(a);if(!c){const{IdentityId:f=uJ()}=await r.send(new Sx({AccountId:t,IdentityPoolId:i,Logins:s?await $k(s):void 0}));c=f,a&&Promise.resolve(e.setItem(a,c)).catch(()=>{})}return l=rJ({client:r,customRoleArn:n,logins:s,identityId:c}),l()};return()=>l().catch(async c=>{throw a&&Promise.resolve(e.removeItem(a)).catch(()=>{}),c})}function uJ(){throw new Vl("Response from Amazon Cognito contained no identity ID")}const dJ=t=>fJ({...t,client:new FQ(t.clientConfig??{})});class Gc extends Error{}Gc.prototype.name="InvalidTokenError";function hJ(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 vJ(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 hJ(e)}catch{return atob(e)}}function yJ(t,e){if(typeof t!="string")throw new Gc("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 Gc(`Invalid token specified: missing part #${r+1}`);let i;try{i=vJ(n)}catch(s){throw new Gc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Gc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const pJ=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"kms"}),mJ="@aws-sdk/client-kms",gJ="AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",xJ="3.462.0",bJ={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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 kms"},wJ="./dist-cjs/index.js",EJ="./dist-types/index.d.ts",CJ="./dist-es/index.js",SJ=!1,AJ={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},kJ={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},RJ={node:">=14.0.0"},PJ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},TJ=["dist-*/**"],_J={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},MJ="Apache-2.0",IJ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},NJ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kms",$J={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-kms"},DJ={name:mJ,description:gJ,version:xJ,scripts:bJ,main:wJ,types:EJ,module:CJ,sideEffects:SJ,dependencies:AJ,devDependencies:kJ,engines:RJ,typesVersions:PJ,files:TJ,author:_J,license:MJ,browser:IJ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:NJ,repository:$J},Dk="required",Pi="fn",Ti="argv",Ql="ref",nE=!0,iE="isSet",ru="booleanEquals",wa="error",$c="endpoint",Wi="tree",Ax="PartitionResult",sE={[Dk]:!1,type:"String"},oE={[Dk]:!0,default:!1,type:"Boolean"},aE={[Ql]:"Endpoint"},Ok={[Pi]:ru,[Ti]:[{[Ql]:"UseFIPS"},!0]},Lk={[Pi]:ru,[Ti]:[{[Ql]:"UseDualStack"},!0]},yi={},lE={[Pi]:"getAttr",[Ti]:[{[Ql]:Ax},"supportsFIPS"]},cE={[Pi]:ru,[Ti]:[!0,{[Pi]:"getAttr",[Ti]:[{[Ql]:Ax},"supportsDualStack"]}]},fE=[Ok],uE=[Lk],dE=[{[Ql]:"Region"}],OJ={version:"1.0",parameters:{Region:sE,UseDualStack:oE,UseFIPS:oE,Endpoint:sE},rules:[{conditions:[{[Pi]:iE,[Ti]:[aE]}],rules:[{conditions:fE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wa},{conditions:uE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wa},{endpoint:{url:aE,properties:yi,headers:yi},type:$c}],type:Wi},{conditions:[{[Pi]:iE,[Ti]:dE}],rules:[{conditions:[{[Pi]:"aws.partition",[Ti]:dE,assign:Ax}],rules:[{conditions:[Ok,Lk],rules:[{conditions:[{[Pi]:ru,[Ti]:[nE,lE]},cE],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:yi,headers:yi},type:$c}],type:Wi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:wa}],type:Wi},{conditions:fE,rules:[{conditions:[{[Pi]:ru,[Ti]:[lE,nE]}],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:yi,headers:yi},type:$c}],type:Wi},{error:"FIPS is enabled but this partition does not support FIPS",type:wa}],type:Wi},{conditions:uE,rules:[{conditions:[cE],rules:[{endpoint:{url:"https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:yi,headers:yi},type:$c}],type:Wi},{error:"DualStack is enabled but this partition does not support DualStack",type:wa}],type:Wi},{endpoint:{url:"https://kms.{Region}.{PartitionResult#dnsSuffix}",properties:yi,headers:yi},type:$c}],type:Wi}],type:Wi},{error:"Invalid Configuration: Missing Region",type:wa}]},LJ=OJ,BJ=(t,e={})=>Hg(LJ,{endpointParams:t,logger:e.logger}),FJ=t=>({apiVersion:"2014-11-01",base64Decoder:(t==null?void 0:t.base64Decoder)??Su,base64Encoder:(t==null?void 0:t.base64Encoder)??D0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??BJ,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new tx,serviceId:(t==null?void 0:t.serviceId)??"KMS",urlParser:(t==null?void 0:t.urlParser)??Sl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??ql,utf8Encoder:(t==null?void 0:t.utf8Encoder)??Cu}),jJ=t=>{const e=yx(t),r=()=>e().then(ax),n=FJ(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??hx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??ux({serviceId:n.serviceId,clientVersion:DJ.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??kl,region:(t==null?void 0:t.region)??dx("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new nx(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||Xg),sha256:(t==null?void 0:t.sha256)??O0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??ix,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Wg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(Kg))}},Ov=t=>t,zJ=(t,e)=>{const r={...Ov(px(t)),...Ov(lx(t)),...Ov(Dg(t))};return e.forEach(n=>n.configure(r)),{...t,...mx(r),...cx(r),...Og(r)}};class UJ extends rx{constructor(...[e]){const r=jJ(e||{}),n=pJ(r),i=Yg(n),s=Jg(i),o=Zg(s),a=o,l=zg(a),c=Ug(l),f=zJ(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(ex(this.config)),this.middlewareStack.use(Qg(this.config)),this.middlewareStack.use(Lg(this.config)),this.middlewareStack.use(Bg(this.config)),this.middlewareStack.use(Fg(this.config)),this.middlewareStack.use(eK(this.config)),this.middlewareStack.use(Gg(this.config))}destroy(){super.destroy()}}class Dn extends Au{constructor(e){super(e),Object.setPrototypeOf(this,Dn.prototype)}}class kx extends Dn{constructor(e){super({name:"DependencyTimeoutException",$fault:"server",...e}),this.name="DependencyTimeoutException",this.$fault="server",Object.setPrototypeOf(this,kx.prototype)}}class Rx extends Dn{constructor(e){super({name:"KMSInternalException",$fault:"server",...e}),this.name="KMSInternalException",this.$fault="server",Object.setPrototypeOf(this,Rx.prototype)}}class Px extends Dn{constructor(e){super({name:"KMSInvalidStateException",$fault:"client",...e}),this.name="KMSInvalidStateException",this.$fault="client",Object.setPrototypeOf(this,Px.prototype)}}class Tx extends Dn{constructor(e){super({name:"NotFoundException",$fault:"client",...e}),this.name="NotFoundException",this.$fault="client",Object.setPrototypeOf(this,Tx.prototype)}}class _x extends Dn{constructor(e){super({name:"DisabledException",$fault:"client",...e}),this.name="DisabledException",this.$fault="client",Object.setPrototypeOf(this,_x.prototype)}}class Mx extends Dn{constructor(e){super({name:"DryRunOperationException",$fault:"client",...e}),this.name="DryRunOperationException",this.$fault="client",Object.setPrototypeOf(this,Mx.prototype)}}class Ix extends Dn{constructor(e){super({name:"InvalidGrantTokenException",$fault:"client",...e}),this.name="InvalidGrantTokenException",this.$fault="client",Object.setPrototypeOf(this,Ix.prototype)}}class Nx extends Dn{constructor(e){super({name:"InvalidKeyUsageException",$fault:"client",...e}),this.name="InvalidKeyUsageException",this.$fault="client",Object.setPrototypeOf(this,Nx.prototype)}}class $x extends Dn{constructor(e){super({name:"KeyUnavailableException",$fault:"server",...e}),this.name="KeyUnavailableException",this.$fault="server",Object.setPrototypeOf(this,$x.prototype)}}const VJ=t=>({...t,...t.Plaintext&&{Plaintext:sr}}),qJ=async(t,e)=>{const r=lX("GenerateDataKey");let n;return n=JSON.stringify(rX(t,e)),aX(e,r,"/",void 0,n)},HJ=async(t,e)=>{if(t.statusCode>=300)return GJ(t,e);const r=await Bk(t.body,e);let n={};return n=iX(r,e),{$metadata:qi(t),...n}},GJ=async(t,e)=>{const r={...t,body:await cX(t.body,e)},n=fX(t,r.body);switch(n){case"DependencyTimeoutException":case"com.amazonaws.kms#DependencyTimeoutException":throw await WJ(r);case"DisabledException":case"com.amazonaws.kms#DisabledException":throw await KJ(r);case"DryRunOperationException":case"com.amazonaws.kms#DryRunOperationException":throw await YJ(r);case"InvalidGrantTokenException":case"com.amazonaws.kms#InvalidGrantTokenException":throw await QJ(r);case"InvalidKeyUsageException":case"com.amazonaws.kms#InvalidKeyUsageException":throw await JJ(r);case"KMSInternalException":case"com.amazonaws.kms#KMSInternalException":throw await ZJ(r);case"KMSInvalidStateException":case"com.amazonaws.kms#KMSInvalidStateException":throw await eX(r);case"KeyUnavailableException":case"com.amazonaws.kms#KeyUnavailableException":throw await XJ(r);case"NotFoundException":case"com.amazonaws.kms#NotFoundException":throw await tX(r);default:const i=r.body;return oX({output:t,parsedBody:i,errorCode:n})}},WJ=async(t,e)=>{const r=t.body,n=we(r),i=new kx({$metadata:qi(t),...n});return Te(i,r)},KJ=async(t,e)=>{const r=t.body,n=we(r),i=new _x({$metadata:qi(t),...n});return Te(i,r)},YJ=async(t,e)=>{const r=t.body,n=we(r),i=new Mx({$metadata:qi(t),...n});return Te(i,r)},QJ=async(t,e)=>{const r=t.body,n=we(r),i=new Ix({$metadata:qi(t),...n});return Te(i,r)},JJ=async(t,e)=>{const r=t.body,n=we(r),i=new Nx({$metadata:qi(t),...n});return Te(i,r)},XJ=async(t,e)=>{const r=t.body,n=we(r),i=new $x({$metadata:qi(t),...n});return Te(i,r)},ZJ=async(t,e)=>{const r=t.body,n=we(r),i=new Rx({$metadata:qi(t),...n});return Te(i,r)},eX=async(t,e)=>{const r=t.body,n=we(r),i=new Px({$metadata:qi(t),...n});return Te(i,r)},tX=async(t,e)=>{const r=t.body,n=we(r),i=new Tx({$metadata:qi(t),...n});return Te(i,r)},rX=(t,e)=>ku(t,{DryRun:[],EncryptionContext:we,GrantTokens:we,KeyId:[],KeySpec:[],NumberOfBytes:[],Recipient:r=>nX(r,e)}),nX=(t,e)=>ku(t,{AttestationDocument:e.base64Encoder,KeyEncryptionAlgorithm:[]}),iX=(t,e)=>ku(t,{CiphertextBlob:e.base64Decoder,CiphertextForRecipient:e.base64Decoder,KeyId:mf,Plaintext:e.base64Decoder}),qi=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"]}),sX=(t,e)=>sx(t,e).then(r=>e.utf8Encoder(r)),oX=ox(Dn),aX=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 Mn(c)};function lX(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`TrentService.${t}`}}const Bk=(t,e)=>sX(t,e).then(r=>r.length?JSON.parse(r):{}),cX=async(t,e)=>{const r=await Bk(t,e);return r.message=r.message??r.Message,r},fX=(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)};class Dx extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Dx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"KMSClient",commandName:"GenerateDataKeyCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:VJ,[ao]:{service:"TrentService",operation:"GenerateDataKey"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return qJ(e,r)}deserialize(e,r){return HJ(e,r)}}const uX=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),dX="@aws-sdk/client-cognito-identity-provider",hX="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",vX="3.462.0",yX={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","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"},pX="./dist-cjs/index.js",mX="./dist-types/index.d.ts",gX="./dist-es/index.js",xX=!1,bX={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},wX={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},EX={node:">=14.0.0"},CX={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},SX=["dist-*/**"],AX={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},kX="Apache-2.0",RX={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},PX="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",TX={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},_X={name:dX,description:hX,version:vX,scripts:yX,main:pX,types:mX,module:gX,sideEffects:xX,dependencies:bX,devDependencies:wX,engines:EX,typesVersions:CX,files:SX,author:AX,license:kX,browser:RX,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:PX,repository:TX},Fk="required",_i="fn",Mi="argv",Jl="ref",hE=!0,vE="isSet",nu="booleanEquals",Ea="error",Dc="endpoint",Ki="tree",Ox="PartitionResult",yE={[Fk]:!1,type:"String"},pE={[Fk]:!0,default:!1,type:"Boolean"},mE={[Jl]:"Endpoint"},jk={[_i]:nu,[Mi]:[{[Jl]:"UseFIPS"},!0]},zk={[_i]:nu,[Mi]:[{[Jl]:"UseDualStack"},!0]},pi={},gE={[_i]:"getAttr",[Mi]:[{[Jl]:Ox},"supportsFIPS"]},xE={[_i]:nu,[Mi]:[!0,{[_i]:"getAttr",[Mi]:[{[Jl]:Ox},"supportsDualStack"]}]},bE=[jk],wE=[zk],EE=[{[Jl]:"Region"}],MX={version:"1.0",parameters:{Region:yE,UseDualStack:pE,UseFIPS:pE,Endpoint:yE},rules:[{conditions:[{[_i]:vE,[Mi]:[mE]}],rules:[{conditions:bE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ea},{conditions:wE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ea},{endpoint:{url:mE,properties:pi,headers:pi},type:Dc}],type:Ki},{conditions:[{[_i]:vE,[Mi]:EE}],rules:[{conditions:[{[_i]:"aws.partition",[Mi]:EE,assign:Ox}],rules:[{conditions:[jk,zk],rules:[{conditions:[{[_i]:nu,[Mi]:[hE,gE]},xE],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Ki},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ea}],type:Ki},{conditions:bE,rules:[{conditions:[{[_i]:nu,[Mi]:[gE,hE]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Ki},{error:"FIPS is enabled but this partition does not support FIPS",type:Ea}],type:Ki},{conditions:wE,rules:[{conditions:[xE],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Ki},{error:"DualStack is enabled but this partition does not support DualStack",type:Ea}],type:Ki},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Ki}],type:Ki},{error:"Invalid Configuration: Missing Region",type:Ea}]},IX=MX,NX=(t,e={})=>Hg(IX,{endpointParams:t,logger:e.logger}),$X=t=>({apiVersion:"2016-04-18",base64Decoder:(t==null?void 0:t.base64Decoder)??Su,base64Encoder:(t==null?void 0:t.base64Encoder)??D0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??NX,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new tx,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity Provider",urlParser:(t==null?void 0:t.urlParser)??Sl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??ql,utf8Encoder:(t==null?void 0:t.utf8Encoder)??Cu}),DX=t=>{const e=yx(t),r=()=>e().then(ax),n=$X(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??hx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??ux({serviceId:n.serviceId,clientVersion:_X.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??kl,region:(t==null?void 0:t.region)??dx("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new nx(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||Xg),sha256:(t==null?void 0:t.sha256)??O0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??ix,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Wg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(Kg))}},Lv=t=>t,OX=(t,e)=>{const r={...Lv(px(t)),...Lv(lx(t)),...Lv(Dg(t))};return e.forEach(n=>n.configure(r)),{...t,...mx(r),...cx(r),...Og(r)}};class LX extends rx{constructor(...[e]){const r=DX(e||{}),n=uX(r),i=Yg(n),s=Jg(i),o=Zg(s),a=o,l=zg(a),c=Ug(l),f=OX(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(ex(this.config)),this.middlewareStack.use(Qg(this.config)),this.middlewareStack.use(Lg(this.config)),this.middlewareStack.use(Bg(this.config)),this.middlewareStack.use(Fg(this.config)),this.middlewareStack.use(Gg(this.config))}destroy(){super.destroy()}}class mt extends Au{constructor(e){super(e),Object.setPrototypeOf(this,mt.prototype)}}class Lx extends mt{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,Lx.prototype)}}class Bx extends mt{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,Bx.prototype)}}class Fx extends mt{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,Fx.prototype)}}class jx extends mt{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,jx.prototype)}}class zx extends mt{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,zx.prototype)}}class Ux extends mt{constructor(e){super({name:"UserNotFoundException",$fault:"client",...e}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ux.prototype)}}class Vx extends mt{constructor(e){super({name:"InvalidLambdaResponseException",$fault:"client",...e}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,Vx.prototype)}}class qx extends mt{constructor(e){super({name:"UnexpectedLambdaException",$fault:"client",...e}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,qx.prototype)}}class L0 extends mt{constructor(e){super({name:"UserLambdaValidationException",$fault:"client",...e}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,L0.prototype)}}class Hx extends mt{constructor(e){super({name:"CodeDeliveryFailureException",$fault:"client",...e}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,Hx.prototype)}}class Gx extends mt{constructor(e){super({name:"InvalidPasswordException",$fault:"client",...e}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,Gx.prototype)}}class Wx extends mt{constructor(e){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Wx.prototype)}}class Kx extends mt{constructor(e){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...e}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,Kx.prototype)}}class Yx extends mt{constructor(e){super({name:"UsernameExistsException",$fault:"client",...e}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,Yx.prototype)}}class Qx extends mt{constructor(e){super({name:"AliasExistsException",$fault:"client",...e}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,Qx.prototype)}}class Jx extends mt{constructor(e){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...e}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Jx.prototype)}}class Xx extends mt{constructor(e){super({name:"MFAMethodNotFoundException",$fault:"client",...e}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Xx.prototype)}}class Zx extends mt{constructor(e){super({name:"PasswordResetRequiredException",$fault:"client",...e}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,Zx.prototype)}}class eb extends mt{constructor(e){super({name:"UserNotConfirmedException",$fault:"client",...e}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,eb.prototype)}}class tb extends mt{constructor(e){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,tb.prototype)}}class rb extends mt{constructor(e){super({name:"CodeMismatchException",$fault:"client",...e}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,rb.prototype)}}class nb extends mt{constructor(e){super({name:"ExpiredCodeException",$fault:"client",...e}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,nb.prototype)}}class ib extends mt{constructor(e){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...e}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,ib.prototype)}}class sb extends mt{constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,sb.prototype)}}const CE=t=>({...t,...t.Value&&{Value:sr}}),Uk=t=>({...t,...t.AccessToken&&{AccessToken:sr},...t.RefreshToken&&{RefreshToken:sr},...t.IdToken&&{IdToken:sr}}),BX=t=>({...t,...t.AuthParameters&&{AuthParameters:sr},...t.ClientId&&{ClientId:sr},...t.UserContextData&&{UserContextData:sr}}),FX=t=>({...t,...t.Session&&{Session:sr},...t.AuthenticationResult&&{AuthenticationResult:Uk(t.AuthenticationResult)}}),jX=t=>({...t,...t.ClientId&&{ClientId:sr},...t.Session&&{Session:sr},...t.ChallengeResponses&&{ChallengeResponses:sr},...t.UserContextData&&{UserContextData:sr}}),zX=t=>({...t,...t.Session&&{Session:sr},...t.AuthenticationResult&&{AuthenticationResult:Uk(t.AuthenticationResult)}}),UX=t=>({...t,...t.ClientId&&{ClientId:sr},...t.SecretHash&&{SecretHash:sr},...t.Username&&{Username:sr},...t.Password&&{Password:sr},...t.UserAttributes&&{UserAttributes:t.UserAttributes.map(e=>CE(e))},...t.ValidationData&&{ValidationData:t.ValidationData.map(e=>CE(e))},...t.UserContextData&&{UserContextData:sr}}),VX=async(t,e)=>{const r=xb("InitiateAuth");let n;return n=JSON.stringify(we(t)),gb(e,r,"/",void 0,n)},qX=async(t,e)=>{const r=xb("RespondToAuthChallenge");let n;return n=JSON.stringify(we(t)),gb(e,r,"/",void 0,n)},HX=async(t,e)=>{const r=xb("SignUp");let n;return n=JSON.stringify(we(t)),gb(e,r,"/",void 0,n)},GX=async(t,e)=>{if(t.statusCode>=300)return WX(t,e);const r=await B0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},WX=async(t,e)=>{const r={...t,body:await bb(t.body,e)},n=wb(t,r.body);switch(n){case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await ob(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await ab(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await lb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await cb(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await fb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await ub(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await qk(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await db(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await Hk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await hb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await vb(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await yb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await pb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await Gk(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await Wk(r);default:const i=r.body;return mb({output:t,parsedBody:i,errorCode:n})}},KX=async(t,e)=>{if(t.statusCode>=300)return YX(t,e);const r=await B0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},YX=async(t,e)=>{const r={...t,body:await bb(t.body,e)},n=wb(t,r.body);switch(n){case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await XX(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await eZ(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await tZ(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await ob(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await ab(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await lb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await cb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await Vk(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await fb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await ub(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await qk(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await nZ(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await db(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await Hk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await hb(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await iZ(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await vb(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await yb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await pb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await Gk(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await Wk(r);default:const i=r.body;return mb({output:t,parsedBody:i,errorCode:n})}},QX=async(t,e)=>{if(t.statusCode>=300)return JX(t,e);const r=await B0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},JX=async(t,e)=>{const r={...t,body:await bb(t.body,e)},n=wb(t,r.body);switch(n){case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await ZX(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await ob(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await ab(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await rZ(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await lb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await cb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await Vk(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await fb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await ub(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await db(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await hb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await vb(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await yb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await pb(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await sZ(r);default:const i=r.body;return mb({output:t,parsedBody:i,errorCode:n})}},XX=async(t,e)=>{const r=t.body,n=we(r),i=new Qx({$metadata:gt(t),...n});return Te(i,r)},ZX=async(t,e)=>{const r=t.body,n=we(r),i=new Hx({$metadata:gt(t),...n});return Te(i,r)},eZ=async(t,e)=>{const r=t.body,n=we(r),i=new rb({$metadata:gt(t),...n});return Te(i,r)},tZ=async(t,e)=>{const r=t.body,n=we(r),i=new nb({$metadata:gt(t),...n});return Te(i,r)},ob=async(t,e)=>{const r=t.body,n=we(r),i=new sb({$metadata:gt(t),...n});return Te(i,r)},ab=async(t,e)=>{const r=t.body,n=we(r),i=new Lx({$metadata:gt(t),...n});return Te(i,r)},rZ=async(t,e)=>{const r=t.body,n=we(r),i=new tb({$metadata:gt(t),...n});return Te(i,r)},lb=async(t,e)=>{const r=t.body,n=we(r),i=new Vx({$metadata:gt(t),...n});return Te(i,r)},cb=async(t,e)=>{const r=t.body,n=we(r),i=new Bx({$metadata:gt(t),...n});return Te(i,r)},Vk=async(t,e)=>{const r=t.body,n=we(r),i=new Gx({$metadata:gt(t),...n});return Te(i,r)},fb=async(t,e)=>{const r=t.body,n=we(r),i=new Wx({$metadata:gt(t),...n});return Te(i,r)},ub=async(t,e)=>{const r=t.body,n=we(r),i=new Kx({$metadata:gt(t),...n});return Te(i,r)},qk=async(t,e)=>{const r=t.body,n=we(r),i=new Jx({$metadata:gt(t),...n});return Te(i,r)},nZ=async(t,e)=>{const r=t.body,n=we(r),i=new Xx({$metadata:gt(t),...n});return Te(i,r)},db=async(t,e)=>{const r=t.body,n=we(r),i=new Fx({$metadata:gt(t),...n});return Te(i,r)},Hk=async(t,e)=>{const r=t.body,n=we(r),i=new Zx({$metadata:gt(t),...n});return Te(i,r)},hb=async(t,e)=>{const r=t.body,n=we(r),i=new jx({$metadata:gt(t),...n});return Te(i,r)},iZ=async(t,e)=>{const r=t.body,n=we(r),i=new ib({$metadata:gt(t),...n});return Te(i,r)},vb=async(t,e)=>{const r=t.body,n=we(r),i=new zx({$metadata:gt(t),...n});return Te(i,r)},yb=async(t,e)=>{const r=t.body,n=we(r),i=new qx({$metadata:gt(t),...n});return Te(i,r)},pb=async(t,e)=>{const r=t.body,n=we(r),i=new L0({$metadata:gt(t),...n});return Te(i,r)},sZ=async(t,e)=>{const r=t.body,n=we(r),i=new Yx({$metadata:gt(t),...n});return Te(i,r)},Gk=async(t,e)=>{const r=t.body,n=we(r),i=new eb({$metadata:gt(t),...n});return Te(i,r)},Wk=async(t,e)=>{const r=t.body,n=we(r),i=new Ux({$metadata:gt(t),...n});return Te(i,r)},gt=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"]}),oZ=(t,e)=>sx(t,e).then(r=>e.utf8Encoder(r)),mb=ox(mt),gb=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 Mn(c)};function xb(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}}const B0=(t,e)=>oZ(t,e).then(r=>r.length?JSON.parse(r):{}),bb=async(t,e)=>{const r=await B0(t,e);return r.message=r.message??r.Message,r},wb=(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)};class Eb extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Eb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"InitiateAuthCommand",inputFilterSensitiveLog:BX,outputFilterSensitiveLog:FX,[ao]:{service:"AWSCognitoIdentityProviderService",operation:"InitiateAuth"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return VX(e,r)}deserialize(e,r){return GX(e,r)}}class Cb extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Cb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"RespondToAuthChallengeCommand",inputFilterSensitiveLog:jX,outputFilterSensitiveLog:zX,[ao]:{service:"AWSCognitoIdentityProviderService",operation:"RespondToAuthChallenge"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return qX(e,r)}deserialize(e,r){return KX(e,r)}}class Sb extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Sb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"SignUpCommand",inputFilterSensitiveLog:UX,outputFilterSensitiveLog:f=>f,[ao]:{service:"AWSCognitoIdentityProviderService",operation:"SignUp"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return HX(e,r)}deserialize(e,r){return QX(e,r)}}function zt(){return zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(!s.to||s.to===g7)throw new Error("Contract creation not supported");return{type:"transaction",to:s.to,value:oe.from(s.value||0).toHexString(),data:le(s.data||[])}})})}function hZ({wallet:t,token:e,to:r,value:n,chainId:i,lifespan:s,identifier:o}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc20send",token:e,to:r,value:oe.from(n).toString()}]})}function vZ({wallet:t,token:e,to:r,id:n,chainId:i,lifespan:s,identifier:o,safe:a,data:l}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc721send",token:e,to:r,id:n,safe:a,data:l}]})}function yZ({wallet:t,token:e,to:r,values:n,chainId:i,lifespan:s,identifier:o,data:a}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc1155send",token:e,to:r,vals:n.map(l=>({id:l.id,amount:oe.from(l.amount).toString()})),data:a}]})}function pZ({wallet:t,to:e,value:r,abi:n,func:i,args:s,chainId:o,lifespan:a,identifier:l}){return zt({},On(a),{identifier:l,code:"sendTransaction",wallet:t,network:o.toString(),transactions:[{type:"delayedEncode",to:e,value:oe.from(r).toString(),data:{abi:n,func:i,args:s}}]})}function mZ(t){if(t.length===0)throw new Error("No packets provided");const e=t[0].network,r=t[0].wallet,n=t[0].expires-t[0].issued,i=t[0].identifier;if(!t.every(s=>s.network===e))throw new Error("All packets must have the same chainId");if(!t.every(s=>s.wallet===r))throw new Error("All packets must have the same wallet");return zt({},On(n),{identifier:i,code:"sendTransaction",network:e,wallet:r,transactions:t.reduce((s,o)=>s.concat(o.transactions),[])})}function Ru(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 gZ(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 Oc(t){return Ru(t)||gZ(t)}function xZ(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 bZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="validationRequired"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"}function wZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="finishedSessionValidation"&&typeof t.data=="object"}function EZ(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 CZ(t){"version"in t&&(t=t.packet);const e=Zt(AG(t));return ae(bt(e))}function SZ(t,e){const r=CZ(e);return t.signMessage(r)}class AZ{constructor(e,r){this.path="/rpc/Guard/",this.ping=n=>this.fetch(this.url("Ping"),Ir({},n)).then(i=>Nr(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),Ir({},n)).then(i=>Nr(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),Ir({},n)).then(i=>Nr(i).then(s=>({status:s.status}))),this.signTransactions=(n,i)=>this.fetch(this.url("SignTransactions"),Ir(n,i)).then(s=>Nr(s).then(o=>({sig:o.sig}))),this.signMessage=(n,i)=>this.fetch(this.url("SignMessage"),Ir(n,i)).then(s=>Nr(s).then(o=>({sig:o.sig}))),this.getGuardSignerAddress=(n,i)=>this.fetch(this.url("GetGuardSignerAddress"),Ir(n,i)).then(s=>Nr(s).then(o=>({address:o.address}))),this.getWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("GetWalletTransactionPolicyList"),Ir(n,i)).then(s=>Nr(s).then(o=>({policyList:o.policyList}))),this.setWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("SetWalletTransactionPolicyList"),Ir(n,i)).then(s=>Nr(s).then(o=>({}))),this.getSessionUserMapRules=(n,i)=>this.fetch(this.url("GetSessionUserMapRules"),Ir(n,i)).then(s=>Nr(s).then(o=>({rules:o.rules}))),this.setSessionUserMapRules=(n,i)=>this.fetch(this.url("SetSessionUserMapRules"),Ir(n,i)).then(s=>Nr(s).then(o=>({}))),this.getSession=(n,i)=>this.fetch(this.url("GetSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({validated:o.validated}))),this.registerSession=(n,i)=>this.fetch(this.url("RegisterSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({sessionId:o.sessionId}))),this.startSessionValidation=(n,i)=>this.fetch(this.url("StartSessionValidation"),Ir(n,i)).then(s=>Nr(s).then(o=>({salt:o.salt}))),this.validateSession=(n,i)=>this.fetch(this.url("ValidateSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({status:o.status}))),this.invalidateSession=(n,i)=>this.fetch(this.url("InvalidateSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({status:o.status}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Ir=(t={},e={})=>({method:"POST",headers:zt({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Nr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r});function kZ({wallet:t,chainId:e,message:r,lifespan:n}){return zt({},On(n),{code:"signMessage",wallet:t,network:e.toString(),message:r.startsWith("0x")?r:le(Zt(r))})}const Np={mainnet:1,goerli:5,polygon:137,"polygon-zkevm":1101,mumbai:80001,bsc:56,"bsc-testnet":97,arbitrum:42161,"arbitrum-nova":42170,"arbitrum-goerli":421613,optimism:10,gnosis:100,avalanche:43114,"avalanche-testnet":43113,"base-goerli":84531},RZ=Object.entries(Np).reduce((t,[e,r])=>(t[r]=e,t),{});function SE(t){if(typeof t=="number"){if(t in RZ)return t;throw new Error(`Unknown network id ${t}`)}const e=t.toLowerCase();if(e in Np)return Np[e];throw new Error(`Unknown network name ${t}`)}const Yk="https://guard2.sequence.app",Qk={rpcServer:"http://localhost:9123",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-1:000000000000:key/aeb99e0f-9e89-44de-a084-e1817af47778",endpoint:"http://localstack:4566"},PZ={rpcServer:"https://d14tu8valot5m0.cloudfront.net",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-2:170768627592:key/0fd8f803-9cb5-4de5-86e4-41963fb6043d",endpoint:void 0};var TZ=Object.freeze({__proto__:null,DEFAULT_GUARD:Yk,TEMPLATE_LOCAL:Qk,TEMPLATE_NEXT:PZ});const _Z="@0xsequence.waas.wallet",MZ="@0xsequence.waas.signer",IZ="@0xsequence.waas.status",Co=5*60;class NZ{constructor(e={network:1},r=new Kk,n=Yk){this.VERSION="0.0.0-dev1",this.config=e,this.store=r,this.guardUrl=n,this.status=new gf(this.store,IZ,"signed-out"),this.signer=new gf(this.store,MZ,void 0),this.wallet=new gf(this.store,_Z,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 zt({},e,{identifier:e==null?void 0:e.identifier,wallet:await this.getWalletAddress(),lifespan:(r=e==null?void 0:e.lifespan)!=null?r:Co,chainId:SE(e.network||this.config.network)})}async buildPayload(e){if(!await this.isSignedIn())throw new Error("Not signed in");const r=await this.signer.get();if(!r)throw new Error("No signer");const n=new Xn(r),i=await SZ(n,e);return{version:this.VERSION,packet:e,signatures:[{session:n.address,signature:i}]}}async signUsingSessionKey(e){const r=await this.signer.get();if(!r)throw new Error("No signer");return new Xn(r).signMessage(e)}async getSignerAddress(){const e=await this.signer.get();if(!e)throw new Error("No signer");return new Xn(e).address}async getSessionID(){return this.getSignerAddress()}async getSessionShortID(){return(await this.getSessionID()).substring(2,8)}async signIn(e){await this.status.get()!=="signed-out"&&await this.completeSignOut();const n=await aZ({proof:e,lifespan:Co});return await Promise.all([this.status.set("pending"),this.signer.set(n.signer.privateKey)]),{version:this.VERSION,packet:n.packet,signatures:[]}}async signOut({lifespan:e,sessionId:r}={}){const n=await lZ({lifespan:e||Co,wallet:await this.getWalletAddress(),session:r||await this.getSignerAddress()});return this.buildPayload(n)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.signer.set(void 0),this.wallet.set(void 0)])}async completeSignIn(e){if(e.result)return this.completeSignIn(e.result);const r=await this.status.get(),n=await this.signer.get();if(e.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending"||!n)throw new Error("No pending sign in");if(new Xn(n).address.toLowerCase()!==e.data.sessionId.toLowerCase())throw new Error("Invalid signer");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 signMessage(e){var r;const n=kZ(zt({chainId:SE(e.network||this.config.network),lifespan:(r=e.lifespan)!=null?r:Co,wallet:await this.getWalletAddress()},e));return this.buildPayload(n)}async sendTransaction(e){const r=dZ(await this.commonArgs(e));return this.buildPayload(r)}async sendERC20(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=hZ(await this.commonArgs(e));return this.buildPayload(r)}async sendERC721(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=vZ(await this.commonArgs(e));return this.buildPayload(r)}async sendERC1155(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=yZ(await this.commonArgs(e));return this.buildPayload(r)}async callContract(e){const r=pZ(await this.commonArgs(e));return this.buildPayload(r)}async validateSession({deviceMetadata:e,redirectURL:r}){const n=await cZ({lifespan:Co,session:await this.getSignerAddress(),deviceMetadata:e,redirectURL:r,wallet:await this.getWalletAddress()});return this.buildPayload(n)}async getSession(){const e=await uZ({session:await this.getSignerAddress(),wallet:await this.getWalletAddress(),lifespan:Co});return this.buildPayload(e)}async finishValidateSession(e,r){const n=await this.getSignerAddress(),i=await this.getWalletAddress(),s=fZ(i,n,e,r,Co);return this.buildPayload(s)}async isSessionValid(){const e=await this.getSignerAddress(),r=new AZ(this.guardUrl,fetch);try{if((await r.getSession({sessionAddress:e})).validated)return!0}catch{}return!1}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async batch(e){const r=mZ(e.map(n=>n.packet));return this.buildPayload(r)}}class $Z{constructor(e,r){this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({session:a.session,data:a.data})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.listSessions=(n,i,s)=>this.fetch(this.url("ListSessions"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({sessions:a.sessions})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.dropSession=(n,i,s)=>this.fetch(this.url("DropSession"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({ok:a.ok})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.getAddress=(n,i,s)=>this.fetch(this.url("GetAddress"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({address:a.address})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({code:a.code,data:a.data})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Lc=(t={},e={},r=null)=>({method:"POST",headers:zt({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Bc=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),F0.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(DZ[n]||li).new(r)}return r});class li extends Error{constructor(e,r,n,i,s){super(n),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,li.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}}class Ab extends li{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Ab.prototype)}}class Fs extends li{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Fs.prototype)}}class kb extends li{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,kb.prototype)}}class Rb extends li{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Rb.prototype)}}class Pb extends li{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Pb.prototype)}}class F0 extends li{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,F0.prototype)}}class Tb extends li{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Tb.prototype)}}class _b extends li{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,_b.prototype)}}const DZ={0:Ab,[-1]:Fs,[-2]:kb,[-3]:Rb,[-4]:Pb,[-5]:F0,[-6]:Tb,[-7]:_b};function OZ(t){const e=new Uint8Array(t);return window.crypto.getRandomValues(e),Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class LZ{constructor(e,r){this.region=e,this.clientId=r}cognito(){return this.cognitoMemo||(this.cognitoMemo=new LX({region:this.region})),this.cognitoMemo}signUp(e){return this.cognito().send(new Sb({ClientId:this.clientId,Username:e,Password:"aB1%"+OZ(14),UserAttributes:[{Name:"email",Value:e}]}))}signIn(e){return this.cognito().send(new Eb({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 L0&&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}){const i=await this.cognito().send(new Cb({ClientId:this.clientId,Session:e,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n}}));if(!i.AuthenticationResult||!i.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:i.AuthenticationResult.IdToken}}}function Bv(t){return"0x"+Array.from(typeof t=="string"?new TextEncoder().encode(t):t,e=>e.toString(16).padStart(2,"0")).join("")}function BZ(t){return new Uint8Array(t.substring(2).match(/.{1,2}/g).map(e=>parseInt(e,16)))}function FZ(t){return JSON.parse(atob(t))}function jZ(t,e){const r=t.key,n=r?FZ(r):{},i=zt({},e,t,n);if(i.network===void 0&&(i.network=1),i.tenant===void 0)throw new Error("Missing tenant");if(i.secret===void 0)throw new Error("Missing secret");if(i.identityPoolId===void 0)throw new Error("Missing identityPoolId");return i}class zZ{constructor(e,r=Qk,n=new Kk){this.validationRequiredCallback=[],this.store=n,this.config=jZ(e,r),this.waas=new NZ(zt({network:1},e),this.store),this.client=new $Z(this.config.rpcServer,window.fetch),this.kmsKey=new gf(this.store,"@0xsequence.waas.auth.key",void 0),this.deviceName=new gf(this.store,"@0xsequence.waas.auth.deviceName",void 0)}get email(){if(this.emailClient)return this.emailClient;if(!this.config.emailRegion)throw new Error("Missing emailRegion");if(!this.config.emailClientId)throw new Error("Missing emailClientId");return this.emailClient=new LZ(this.config.emailRegion,this.config.emailClientId),this.emailClient}async onValidationRequired(e){return this.validationRequiredCallback.push(e),()=>{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()}async useStoredCypherKey(){const e=await this.kmsKey.get();if(!e)throw new Error("No stored key");const r=JSON.parse(e);if(r.encryptedPayloadKey&&r.plainHex)return r;throw new Error("Invalid stored key")}async saveCypherKey(e){const r=await e.send(new Dx({KeyId:this.config.keyId,KeySpec:"AES_256"}));if(!r.CiphertextBlob||!r.Plaintext)throw new Error("invalid response from KMS");return this.kmsKey.set(JSON.stringify({encryptedPayloadKey:Bv(r.CiphertextBlob),plainHex:Bv(r.Plaintext)}))}async sendIntent(e){const r={sessionId:await this.waas.getSessionID(),intentJson:JSON.stringify(e,null,0)},{args:n,headers:i}=await this.preparePayload(r);return this.client.sendIntent(n,i)}async preparePayload(e){const{encryptedPayloadKey:r,plainHex:n}=await this.useStoredCypherKey(),i={name:"AES-CBC",iv:window.crypto.getRandomValues(new Uint8Array(16))},s=await window.crypto.subtle.importKey("raw",BZ(n),i,!1,["encrypt"]),o=new TextEncoder().encode(JSON.stringify(e)),a=await window.crypto.subtle.encrypt(i,s,o),l=Bv(new Uint8Array([...i.iv,...new Uint8Array(a)])),c=await this.waas.signUsingSessionKey(o);return{headers:{"X-Sequence-Tenant":this.config.tenant},args:{encryptedPayloadKey:r,payloadCiphertext:l,payloadSig:c}}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(e,r){const n=await this.waas.signIn({idToken:e.idToken}),i=yJ(e.idToken);if(!i.iss)throw new Error("Invalid idToken");const s=new UJ({region:this.config.kmsRegion,endpoint:this.config.endpoint,credentials:dJ({identityPoolId:this.config.identityPoolId,logins:{[i.iss.replace("https://","").replace("http://","")]:e.idToken},clientConfig:{region:this.config.idpRegion}})});await this.saveCypherKey(s);const o={projectId:this.config.tenant,idToken:e.idToken,sessionAddress:n.packet.session,friendlyName:r,intentJSON:JSON.stringify(n,null,0)},{args:a,headers:l}=await this.preparePayload(o),c=await this.client.registerSession(a,l);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:c.session.id,wallet:c.data.wallet}}),this.deviceName.set(r),c.session.address}async refreshSession(){throw new Error("Not implemented")}async getSessionID(){return this.waas.getSessionID()}async dropSession({sessionId:e,strict:r}={}){const n=await this.waas.getSessionID(),i=e||n;try{const s={dropSessionId:i,sessionId:n},{args:o,headers:a}=await this.preparePayload(s);await this.client.dropSession(o,a)}catch(s){if(r)throw s;console.error(s)}i.toLowerCase()===n.toLowerCase()&&(await this.waas.completeSignOut(),this.kmsKey.set(void 0),this.deviceName.set(void 0))}async listSessions(){const e={sessionId:await this.waas.getSessionID()},r=await this.waas.getSessionID().then(o=>o.toLowerCase()),{args:n,headers:i}=await this.preparePayload(e);return(await this.client.listSessions(n,i)).sessions.map(o=>zt({},o,{isThis:o.address.toLowerCase()===r}))}async getAddress(){return this.waas.getAddress()}async validateSession(e){return await this.waas.isSessionValid()?!0:this.handleValidationRequired(e)}async finishValidateSession(e){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,e),n=await this.sendIntent(r);if(!wZ(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(!EZ(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 useIdentifier(e){if(e.identifier)return e;const r=`ts-sdk-${Date.now()}-${await this.waas.getSignerAddress()}`;return zt({},e,{identifier:r})}async trySendIntent(e,r,n){const i=await this.sendIntent(r);if(n(i))return i;if(bZ(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,xZ)}async sendTransaction(e){const r=await this.waas.sendTransaction(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async sendERC20(e){const r=await this.waas.sendERC20(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async sendERC721(e){const r=await this.waas.sendERC721(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async sendERC1155(e){const r=await this.waas.sendERC1155(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async callContract(e){const r=await this.waas.callContract(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}}function UZ(){const[t,e]=g.useState(),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(),[l,c]=g.useState(!1),[f,u]=g.useState();g.useEffect(()=>{d()},[]);const d=async()=>{const m=Pt.getAddress();e(await Jk.getBalance(m))},v=async(m,y)=>{try{u(void 0),c(!0);const w=await Pt.sendTransaction({transactions:[{to:m,value:vG(y)}]});Ru(w)?a(w.data.txHash):u(w.data.error),c(!1)}catch(w){console.error(w),c(!1)}};return U.jsxs(ie,{children:[U.jsxs(Le,{variant:"normal",fontWeight:"bold",children:["Native token balance: ",hG(t||0)," MATIC"]}),U.jsx(Yr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:d}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"sendNativeTokenTo",type:"text",onChange:m=>{n(m.target.value)},value:r,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"sendNativeTokenAmount",type:"text",onChange:m=>{s(m.target.value)},value:i,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),f&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",f]}),l?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Send native token",disabled:r===""&&i==="",onClick:()=>v(r,i)}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function VZ(){const[t,e]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState(!0),[o,a]=g.useState(),l=async c=>{s(!0),e(void 0);try{await Pt.dropSession({sessionId:c}),e(await Pt.listSessions())}catch(f){a(f.message),e(await Pt.listSessions())}s(!1)};return g.useEffect(()=>{Promise.all([Pt.listSessions(),Pt.getSessionID()]).then(([c,f])=>{e(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),U.jsxs(ie,{children:[U.jsxs(ie,{marginBottom:"5",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),t&&U.jsx(U.Fragment,{children:t.map(c=>U.jsxs(ie,{children:[c.friendlyName,!c.isThis&&U.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&U.jsx(U.Fragment,{children:" (current)"})]},c.id))}),i&&U.jsx(ps,{})]}),o&&U.jsxs(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function qZ(){const[t,e]=g.useState(""),[r,n]=g.useState(),i=async()=>{const s=await Pt.signMessage({message:t});n(s.data.signature)};return U.jsxs(ie,{children:[U.jsx(gr,{name:"signMessageText",type:"text",onChange:s=>{e(s.target.value),r!=""&&n("")},value:t,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),U.jsx(Yr,{marginTop:"5",label:"Sign message",disabled:t==="",onClick:()=>i()}),r&&r!==""&&U.jsxs(ie,{flexDirection:"column",marginTop:"5",children:[U.jsxs(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",t,":"]}),U.jsx(ie,{children:U.jsx(Le,{as:"p",wordBreak:"break-word",children:r})})]})]})}function HZ(){const[t,e]=g.useState(""),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(),[f,u]=g.useState(!1),[d,v]=g.useState(),m=async()=>{try{v(void 0),u(!0);const y=await Pt.callContract({to:t,abi:r,func:i,args:JSON.parse(o),value:0});Ru(y)?c(y.data.txHash):v(y.data.error),u(!1)}catch(y){console.error(y),u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractAddress",type:"text",onChange:y=>{e(y.target.value)},value:t,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractAbi",type:"text",onChange:y=>{n(y.target.value)},value:r,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractMethod",type:"text",onChange:y=>{s(y.target.value)},value:i,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractArgs",type:"text",onChange:y=>{a(y.target.value)},value:o,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),d&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",d]}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Call contract",disabled:t===""&&r===""&&i===""&&o==="",onClick:()=>m()}),l&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${l}`,target:"_blank",rel:"noopener noreferrer",children:l})]})]})}const AE=[{label:"Custom Token",value:""},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function GZ(){const[t,e]=g.useState(AE[0].value),[r,n]=g.useState(""),[i,s]=g.useState(!0),[o,a]=g.useState("---"),[l,c]=g.useState(""),[f,u]=g.useState(""),[d,v]=g.useState(""),[m,y]=g.useState(""),[w,x]=g.useState(!1),[b,S]=g.useState(0);g.useEffect(()=>{A(r)},[r]);const A=async $=>{if(!Vz($)){a("---");return}a("...");const O=new nH($,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],Jk),[H,Y,Q]=await Promise.all([O.balanceOf(Pt.getAddress()),O.decimals(),O.symbol()]);S(Y),a(`${M9(H,Y)} ${Q}`)},_=async()=>{try{y(""),x(!0);const $=await Pt.sendERC20({token:r,to:l,value:Ng(f,b)});Ru($)?v($.data.txHash):y($.data.error)}catch($){console.error($)}finally{x(!1)}},D=$=>{e($),$===""?(n(""),s(!0)):(n($),s(!1))};return U.jsxs(ie,{children:[U.jsxs(ie,{marginTop:"5",children:[U.jsx(TA,{name:"token",options:AE,value:t??"",onValueChange:$=>D($)}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:r,disabled:!i,onChange:$=>n($.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),U.jsxs(ie,{marginTop:"3",children:[U.jsxs(Le,{variant:"normal",children:["Token Balance: ",o]}),U.jsx(Yr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>A(r)})]}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:l,onChange:$=>c($.target.value),placeholder:"Destination Address"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:f,onChange:$=>u($.target.value),placeholder:"Amount"})}),m&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Le,{color:"error",children:["Error: ",m]})}),w?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Send Token",onClick:_}),d&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${d}`,target:"_blank",rel:"noopener noreferrer",children:d})]})]})}function WZ(t){var a;const[e,r]=g.useState(""),[n,i]=g.useState("");g.useEffect(()=>{t.onChange(t.index,e,n)},[e,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return U.jsxs(ie,{style:s,children:[U.jsx(ie,{style:o,children:U.jsx(TA,{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"})}),U.jsx(ie,{style:o,children:U.jsx(gr,{type:"text",value:e,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),U.jsx(ie,{style:o,children:U.jsx(gr,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),U.jsx(ie,{style:o,children:U.jsx(Yr,{label:"Remove",onClick:()=>t.removeTokenEntry(t.index)})})]})}function KZ(){const[t,e]=g.useState(""),[r,n]=g.useState([]),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(""),[f,u]=g.useState(!1),[d,v]=g.useState(void 0),m=()=>{n([...r,{tokenId:"",amount:""}])},y=async()=>{{console.error("Missing INDEXER_API_KEY, ERC1155 token metadata will not be fetched");return}};g.useEffect(()=>{y()},[t]);const w=(S,A)=>{const _=[...r];_[S]=A,n(_)},x=S=>{const A=[...r];A.splice(S,1),n(A)},b=async()=>{try{c(""),u(!0);const S=await Pt.sendERC1155({to:i,token:t,values:r.map(A=>({id:A.tokenId,amount:Ng(A.amount,0)}))});Ru(S)?a(S.data.txHash):c(S.data.error)}catch(S){console.error(S)}finally{u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginBottom:"5",children:U.jsx(gr,{type:"text",value:t,onChange:S=>e(S.target.value),placeholder:"Token Contract Address"})}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Yr,{label:"Fetch metadata",onClick:()=>y()})}),r.map((S,A)=>U.jsx(ie,{marginBottom:"3",children:U.jsx(WZ,{index:A,options:d,onChange:(_,D,$)=>w(_,{tokenId:D,amount:$}),removeTokenEntry:x})},A)),U.jsx(Yr,{label:"Add Token",onClick:m}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:i,onChange:S=>s(S.target.value),placeholder:"Destination Address"})}),l&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Le,{color:"error",children:["Error: ",l]})}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ps,{})}):U.jsx(Yr,{marginTop:"5",label:"Send Tokens",onClick:b}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function YZ(){const[t,e]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState([]),[o,a]=g.useState(!1),[l,c]=g.useState(!1);return g.useEffect(()=>{Pt.getAddress().then(f=>{e(f)}).catch(f=>{n(f.message)})},[]),g.useEffect(()=>{Pt.isSignedIn().then(f=>{f||Lo.navigate("/login")})},[]),g.useEffect(()=>{const f=i.join("");f.length===6&&(c(!0),Pt.finishValidateSession(f))},[i]),g.useEffect(()=>{const f=Pt.onValidationRequired(()=>{a(!0),Pt.waitForSessionValid(6e5,4e3).then(u=>{console.log("isValid",u),s([]),a(!1),c(!1)})});return()=>{f.then(u=>u())}},[]),U.jsxs(U.Fragment,{children:[U.jsx(lS,{children:o&&U.jsx(IL,{children:U.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:U.jsxs(ie,{flexDirection:"column",alignItems:"center",children:[U.jsx(Le,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),U.jsx(JA,{value:i,digits:6,onChange:s}),U.jsx(ie,{marginTop:"5",children:l&&U.jsx(ps,{})})]})})})}),U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"10",children:U.jsx(XA,{})}),U.jsxs(ie,{marginBottom:"5",flexDirection:"row",children:[U.jsxs(Le,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),U.jsx(Yr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await Pt.dropSession({strict:!1})}catch(f){console.warn(`Could not drop session: ${f.message}`)}Wj(),Lo.navigate("/login")}})]}),U.jsx(wo,{background:"buttonGlass"}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),U.jsx(ie,{marginBottom:"4",children:t?U.jsx(ie,{children:U.jsx(Le,{children:t})}):U.jsx(ps,{})}),U.jsx(ie,{children:r&&U.jsxs(Le,{children:["Error fetching wallet address: ",r]})}),U.jsx(wo,{background:"buttonGlass"}),U.jsx(VZ,{}),U.jsxs(cc,{marginY:"3",label:"Send native token transaction",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(UZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Send ERC20 transaction",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(GZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Send ERC1155 transaction",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(KZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Sign a message",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(qZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Call contracts",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(HZ,{})]})]})]})}const QZ="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",JZ="eyJzZWNyZXQiOiJ0YmQiLCJ0ZW5hbnQiOjksImlkZW50aXR5UG9vbElkIjoidXMtZWFzdC0yOjQyYzlmMzlkLWM5MzUtNGQ1Yy1hODQ1LTVjODgxNWM3OWVlMyIsImVtYWlsQ2xpZW50SWQiOiI1Zmw3ZGc3bXZ1NTM0bzl2ZmpiYzZoajMxcCIsImlkcFJlZ2lvbiI6InVzLWVhc3QtMiJ9",Jk=new fG("https://nodes.sequence.app/polygon"),Pt=new zZ({network:"polygon",key:JZ},TZ.TEMPLATE_NEXT),Lo=Lj([{path:"/login",element:U.jsx(SG,{})},{path:"/",element:U.jsx(YZ,{})}]);Fv.createRoot(document.getElementById("root")).render(U.jsx(cr.StrictMode,{children:U.jsx(AF,{children:U.jsx(Uj,{clientId:QZ,children:U.jsx(Nj,{router:Lo})})})})); diff --git a/index.html b/index.html index 86485b2..a0eaafc 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Demo Waas App - +