@paimaexample/explorer 0.3.110 → 0.3.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,7 +35,7 @@ var o4=Object.defineProperty;var F2=e=>{throw TypeError(e)};var s4=(e,t,n)=>t in
|
|
|
35
35
|
`+Fe[d].replace(" at new "," at ");return r.displayName&&$e.includes("<anonymous>")&&($e=$e.replace("<anonymous>",r.displayName)),$e}while(1<=d&&0<=b);break}}}finally{ee=!1,Error.prepareStackTrace=a}return(a=r?r.displayName||r.name:"")?ye(a):""}function v(r,i){switch(r.tag){case 26:case 27:case 5:return ye(r.type);case 16:return ye("Lazy");case 13:return r.child!==i&&i!==null?ye("Suspense Fallback"):ye("Suspense");case 19:return ye("SuspenseList");case 0:case 15:return _(r.type,!1);case 11:return _(r.type.render,!1);case 1:return _(r.type,!0);case 31:return ye("Activity");default:return""}}function C(r){try{var i="",a=null;do i+=v(r,a),a=r,r=r.return;while(r);return i}catch(d){return`
|
|
36
36
|
Error generating stack: `+d.message+`
|
|
37
37
|
`+d.stack}}var D=Object.prototype.hasOwnProperty,he=e.unstable_scheduleCallback,ce=e.unstable_cancelCallback,Ee=e.unstable_shouldYield,Be=e.unstable_requestPaint,de=e.unstable_now,ve=e.unstable_getCurrentPriorityLevel,x=e.unstable_ImmediatePriority,B=e.unstable_UserBlockingPriority,N=e.unstable_NormalPriority,ie=e.unstable_LowPriority,me=e.unstable_IdlePriority,xe=e.log,Ce=e.unstable_setDisableYieldValue,we=null,Se=null;function He(r){if(typeof xe=="function"&&Ce(r),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(we,r)}catch{}}var Ke=Math.clz32?Math.clz32:gt,Ve=Math.log,et=Math.LN2;function gt(r){return r>>>=0,r===0?32:31-(Ve(r)/et|0)|0}var bt=256,lt=262144,yt=4194304;function tt(r){var i=r&42;if(i!==0)return i;switch(r&-r){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function ft(r,i,a){var d=r.pendingLanes;if(d===0)return 0;var b=0,E=r.suspendedLanes,V=r.pingedLanes;r=r.warmLanes;var ge=d&134217727;return ge!==0?(d=ge&~E,d!==0?b=tt(d):(V&=ge,V!==0?b=tt(V):a||(a=ge&~r,a!==0&&(b=tt(a))))):(ge=d&~E,ge!==0?b=tt(ge):V!==0?b=tt(V):a||(a=d&~r,a!==0&&(b=tt(a)))),b===0?0:i!==0&&i!==b&&(i&E)===0&&(E=b&-b,a=i&-i,E>=a||E===32&&(a&4194048)!==0)?i:b}function dt(r,i){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&i)===0}function At(r,i){switch(r){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zt(){var r=yt;return yt<<=1,(yt&62914560)===0&&(yt=4194304),r}function Ar(r){for(var i=[],a=0;31>a;a++)i.push(r);return i}function be(r,i){r.pendingLanes|=i,i!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Ie(r,i,a,d,b,E){var V=r.pendingLanes;r.pendingLanes=a,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=a,r.entangledLanes&=a,r.errorRecoveryDisabledLanes&=a,r.shellSuspendCounter=0;var ge=r.entanglements,Fe=r.expirationTimes,Me=r.hiddenUpdates;for(a=V&~a;0<a;){var $e=31-Ke(a),Ge=1<<$e;ge[$e]=0,Fe[$e]=-1;var Ue=Me[$e];if(Ue!==null)for(Me[$e]=null,$e=0;$e<Ue.length;$e++){var De=Ue[$e];De!==null&&(De.lane&=-536870913)}a&=~Ge}d!==0&&Ye(r,d,0),E!==0&&b===0&&r.tag!==0&&(r.suspendedLanes|=E&~(V&~i))}function Ye(r,i,a){r.pendingLanes|=i,r.suspendedLanes&=~i;var d=31-Ke(i);r.entangledLanes|=i,r.entanglements[d]=r.entanglements[d]|1073741824|a&261930}function Je(r,i){var a=r.entangledLanes|=i;for(r=r.entanglements;a;){var d=31-Ke(a),b=1<<d;b&i|r[d]&i&&(r[d]|=i),a&=~b}}function st(r,i){var a=i&-i;return a=(a&42)!==0?1:qt(a),(a&(r.suspendedLanes|i))!==0?0:a}function qt(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function rr(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Br(){var r=re.p;return r!==0?r:(r=window.event,r===void 0?32:v2(r.type))}function zn(r,i){var a=re.p;try{return re.p=r,i()}finally{re.p=a}}var Rr=Math.random().toString(36).slice(2),Ht="__reactFiber$"+Rr,nr="__reactProps$"+Rr,Mr="__reactContainer$"+Rr,Ur="__reactEvents$"+Rr,gn="__reactListeners$"+Rr,xn="__reactHandles$"+Rr,kr="__reactResources$"+Rr,wr="__reactMarker$"+Rr;function Vo(r){delete r[Ht],delete r[nr],delete r[Ur],delete r[gn],delete r[xn]}function xi(r){var i=r[Ht];if(i)return i;for(var a=r.parentNode;a;){if(i=a[Mr]||a[Ht]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(r=o2(r);r!==null;){if(a=r[Ht])return a;r=o2(r)}return i}r=a,a=r.parentNode}return null}function Ei(r){if(r=r[Ht]||r[Mr]){var i=r.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return r}return null}function Li(r){var i=r.tag;if(i===5||i===26||i===27||i===6)return r.stateNode;throw Error(o(33))}function Si(r){var i=r[kr];return i||(i=r[kr]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function ur(r){r[wr]=!0}var qs=new Set,kv={};function Hs(r,i){za(r,i),za(r+"Capture",i)}function za(r,i){for(kv[r]=i,r=0;r<i.length;r++)qs.add(i[r])}var W6=RegExp("^[: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]*$"),Lv={},zv={};function X6(r){return D.call(zv,r)?!0:D.call(Lv,r)?!1:W6.test(r)?zv[r]=!0:(Lv[r]=!0,!1)}function Tf(r,i,a){if(X6(i))if(a===null)r.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":r.removeAttribute(i);return;case"boolean":var d=i.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(i);return}}r.setAttribute(i,""+a)}}function Bf(r,i,a){if(a===null)r.removeAttribute(i);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttribute(i,""+a)}}function ro(r,i,a,d){if(d===null)r.removeAttribute(a);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttributeNS(i,a,""+d)}}function oi(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function $v(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Z6(r,i,a){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,i);if(!r.hasOwnProperty(i)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var b=d.get,E=d.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return b.call(this)},set:function(V){a=""+V,E.call(this,V)}}),Object.defineProperty(r,i,{enumerable:d.enumerable}),{getValue:function(){return a},setValue:function(V){a=""+V},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Vp(r){if(!r._valueTracker){var i=$v(r)?"checked":"value";r._valueTracker=Z6(r,i,""+r[i])}}function qv(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),d="";return r&&(d=$v(r)?r.checked?"true":"false":r.value),r=d,r!==a?(i.setValue(r),!0):!1}function Rf(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var J6=/[\n"\\]/g;function si(r){return r.replace(J6,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Wp(r,i,a,d,b,E,V,ge){r.name="",V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?r.type=V:r.removeAttribute("type"),i!=null?V==="number"?(i===0&&r.value===""||r.value!=i)&&(r.value=""+oi(i)):r.value!==""+oi(i)&&(r.value=""+oi(i)):V!=="submit"&&V!=="reset"||r.removeAttribute("value"),i!=null?Xp(r,V,oi(i)):a!=null?Xp(r,V,oi(a)):d!=null&&r.removeAttribute("value"),b==null&&E!=null&&(r.defaultChecked=!!E),b!=null&&(r.checked=b&&typeof b!="function"&&typeof b!="symbol"),ge!=null&&typeof ge!="function"&&typeof ge!="symbol"&&typeof ge!="boolean"?r.name=""+oi(ge):r.removeAttribute("name")}function Hv(r,i,a,d,b,E,V,ge){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(r.type=E),i!=null||a!=null){if(!(E!=="submit"&&E!=="reset"||i!=null)){Vp(r);return}a=a!=null?""+oi(a):"",i=i!=null?""+oi(i):a,ge||i===r.value||(r.value=i),r.defaultValue=i}d=d??b,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=ge?r.checked:!!d,r.defaultChecked=!!d,V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(r.name=V),Vp(r)}function Xp(r,i,a){i==="number"&&Rf(r.ownerDocument)===r||r.defaultValue===""+a||(r.defaultValue=""+a)}function $a(r,i,a,d){if(r=r.options,i){i={};for(var b=0;b<a.length;b++)i["$"+a[b]]=!0;for(a=0;a<r.length;a++)b=i.hasOwnProperty("$"+r[a].value),r[a].selected!==b&&(r[a].selected=b),b&&d&&(r[a].defaultSelected=!0)}else{for(a=""+oi(a),i=null,b=0;b<r.length;b++){if(r[b].value===a){r[b].selected=!0,d&&(r[b].defaultSelected=!0);return}i!==null||r[b].disabled||(i=r[b])}i!==null&&(i.selected=!0)}}function Qv(r,i,a){if(i!=null&&(i=""+oi(i),i!==r.value&&(r.value=i),a==null)){r.defaultValue!==i&&(r.defaultValue=i);return}r.defaultValue=a!=null?""+oi(a):""}function Gv(r,i,a,d){if(i==null){if(d!=null){if(a!=null)throw Error(o(92));if(oe(d)){if(1<d.length)throw Error(o(93));d=d[0]}a=d}a==null&&(a=""),i=a}a=oi(i),r.defaultValue=a,d=r.textContent,d===a&&d!==""&&d!==null&&(r.value=d),Vp(r)}function qa(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var e8=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Kv(r,i,a){var d=i.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?d?r.setProperty(i,""):i==="float"?r.cssFloat="":r[i]="":d?r.setProperty(i,a):typeof a!="number"||a===0||e8.has(i)?i==="float"?r.cssFloat=a:r[i]=(""+a).trim():r[i]=a+"px"}function Yv(r,i,a){if(i!=null&&typeof i!="object")throw Error(o(62));if(r=r.style,a!=null){for(var d in a)!a.hasOwnProperty(d)||i!=null&&i.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var b in i)d=i[b],i.hasOwnProperty(b)&&a[b]!==d&&Kv(r,b,d)}else for(var E in i)i.hasOwnProperty(E)&&Kv(r,E,i[E])}function Zp(r){if(r.indexOf("-")===-1)return!1;switch(r){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 t8=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),r8=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Mf(r){return r8.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function no(){}var Jp=null;function ey(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ha=null,Qa=null;function Vv(r){var i=Ei(r);if(i&&(r=i.stateNode)){var a=r[nr]||null;e:switch(r=i.stateNode,i.type){case"input":if(Wp(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),i=a.name,a.type==="radio"&&i!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+si(""+i)+'"][type="radio"]'),i=0;i<a.length;i++){var d=a[i];if(d!==r&&d.form===r.form){var b=d[nr]||null;if(!b)throw Error(o(90));Wp(d,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(i=0;i<a.length;i++)d=a[i],d.form===r.form&&qv(d)}break e;case"textarea":Qv(r,a.value,a.defaultValue);break e;case"select":i=a.value,i!=null&&$a(r,!!a.multiple,i,!1)}}}var ty=!1;function Wv(r,i,a){if(ty)return r(i,a);ty=!0;try{var d=r(i);return d}finally{if(ty=!1,(Ha!==null||Qa!==null)&&(wh(),Ha&&(i=Ha,r=Qa,Qa=Ha=null,Vv(i),r)))for(i=0;i<r.length;i++)Vv(r[i])}}function dl(r,i){var a=r.stateNode;if(a===null)return null;var d=a[nr]||null;if(d===null)return null;a=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(o(231,i,typeof a));return a}var io=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ry=!1;if(io)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){ry=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{ry=!1}var Wo=null,ny=null,Uf=null;function Xv(){if(Uf)return Uf;var r,i=ny,a=i.length,d,b="value"in Wo?Wo.value:Wo.textContent,E=b.length;for(r=0;r<a&&i[r]===b[r];r++);var V=a-r;for(d=1;d<=V&&i[a-d]===b[E-d];d++);return Uf=b.slice(r,1<d?1-d:void 0)}function jf(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Nf(){return!0}function Zv(){return!1}function En(r){function i(a,d,b,E,V){this._reactName=a,this._targetInst=b,this.type=d,this.nativeEvent=E,this.target=V,this.currentTarget=null;for(var ge in r)r.hasOwnProperty(ge)&&(a=r[ge],this[ge]=a?a(E):E[ge]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Nf:Zv,this.isPropagationStopped=Zv,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Nf)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Nf)},persist:function(){},isPersistent:Nf}),i}var Qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Df=En(Qs),yl=y({},Qs,{view:0,detail:0}),n8=En(yl),iy,oy,gl,Pf=y({},yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ay,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==gl&&(gl&&r.type==="mousemove"?(iy=r.screenX-gl.screenX,oy=r.screenY-gl.screenY):oy=iy=0,gl=r),iy)},movementY:function(r){return"movementY"in r?r.movementY:oy}}),Jv=En(Pf),i8=y({},Pf,{dataTransfer:0}),o8=En(i8),s8=y({},yl,{relatedTarget:0}),sy=En(s8),a8=y({},Qs,{animationName:0,elapsedTime:0,pseudoElement:0}),u8=En(a8),l8=y({},Qs,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),c8=En(l8),f8=y({},Qs,{data:0}),ex=En(f8),h8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},p8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y8(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=p8[r])?!!i[r]:!1}function ay(){return y8}var g8=y({},yl,{key:function(r){if(r.key){var i=h8[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=jf(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?d8[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ay,charCode:function(r){return r.type==="keypress"?jf(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?jf(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),m8=En(g8),b8=y({},Pf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tx=En(b8),A8=y({},yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ay}),w8=En(A8),v8=y({},Qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),x8=En(v8),E8=y({},Pf,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),S8=En(E8),I8=y({},Qs,{newState:0,oldState:0}),_8=En(I8),C8=[9,13,27,32],uy=io&&"CompositionEvent"in window,ml=null;io&&"documentMode"in document&&(ml=document.documentMode);var F8=io&&"TextEvent"in window&&!ml,rx=io&&(!uy||ml&&8<ml&&11>=ml),nx=" ",ix=!1;function ox(r,i){switch(r){case"keyup":return C8.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sx(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ga=!1;function O8(r,i){switch(r){case"compositionend":return sx(i);case"keypress":return i.which!==32?null:(ix=!0,nx);case"textInput":return r=i.data,r===nx&&ix?null:r;default:return null}}function T8(r,i){if(Ga)return r==="compositionend"||!uy&&ox(r,i)?(r=Xv(),Uf=ny=Wo=null,Ga=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return rx&&i.locale!=="ko"?null:i.data;default:return null}}var B8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ax(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!B8[r.type]:i==="textarea"}function ux(r,i,a,d){Ha?Qa?Qa.push(d):Qa=[d]:Ha=d,i=Ch(i,"onChange"),0<i.length&&(a=new Df("onChange","change",null,a,d),r.push({event:a,listeners:i}))}var bl=null,Al=null;function R8(r){QS(r,0)}function kf(r){var i=Li(r);if(qv(i))return r}function lx(r,i){if(r==="change")return i}var cx=!1;if(io){var ly;if(io){var cy="oninput"in document;if(!cy){var fx=document.createElement("div");fx.setAttribute("oninput","return;"),cy=typeof fx.oninput=="function"}ly=cy}else ly=!1;cx=ly&&(!document.documentMode||9<document.documentMode)}function hx(){bl&&(bl.detachEvent("onpropertychange",dx),Al=bl=null)}function dx(r){if(r.propertyName==="value"&&kf(Al)){var i=[];ux(i,Al,r,ey(r)),Wv(R8,i)}}function M8(r,i,a){r==="focusin"?(hx(),bl=i,Al=a,bl.attachEvent("onpropertychange",dx)):r==="focusout"&&hx()}function U8(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return kf(Al)}function j8(r,i){if(r==="click")return kf(i)}function N8(r,i){if(r==="input"||r==="change")return kf(i)}function D8(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var $n=typeof Object.is=="function"?Object.is:D8;function wl(r,i){if($n(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var a=Object.keys(r),d=Object.keys(i);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var b=a[d];if(!D.call(i,b)||!$n(r[b],i[b]))return!1}return!0}function px(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function yx(r,i){var a=px(r);r=0;for(var d;a;){if(a.nodeType===3){if(d=r+a.textContent.length,r<=i&&d>=i)return{node:a,offset:i-r};r=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=px(a)}}function gx(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?gx(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function mx(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var i=Rf(r.document);i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=Rf(r.document)}return i}function fy(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}var P8=io&&"documentMode"in document&&11>=document.documentMode,Ka=null,hy=null,vl=null,dy=!1;function bx(r,i,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;dy||Ka==null||Ka!==Rf(d)||(d=Ka,"selectionStart"in d&&fy(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),vl&&wl(vl,d)||(vl=d,d=Ch(hy,"onSelect"),0<d.length&&(i=new Df("onSelect","select",null,i,a),r.push({event:i,listeners:d}),i.target=Ka)))}function Gs(r,i){var a={};return a[r.toLowerCase()]=i.toLowerCase(),a["Webkit"+r]="webkit"+i,a["Moz"+r]="moz"+i,a}var Ya={animationend:Gs("Animation","AnimationEnd"),animationiteration:Gs("Animation","AnimationIteration"),animationstart:Gs("Animation","AnimationStart"),transitionrun:Gs("Transition","TransitionRun"),transitionstart:Gs("Transition","TransitionStart"),transitioncancel:Gs("Transition","TransitionCancel"),transitionend:Gs("Transition","TransitionEnd")},py={},Ax={};io&&(Ax=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function Ks(r){if(py[r])return py[r];if(!Ya[r])return r;var i=Ya[r],a;for(a in i)if(i.hasOwnProperty(a)&&a in Ax)return py[r]=i[a];return r}var vx=Ks("animationend"),xx=Ks("animationiteration"),Ex=Ks("animationstart"),k8=Ks("transitionrun"),L8=Ks("transitionstart"),z8=Ks("transitioncancel"),Sx=Ks("transitionend"),Ix=new Map,yy="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");yy.push("scrollEnd");function Ii(r,i){Ix.set(r,i),Hs(i,[r])}var Lf=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(i))return}else if(typeof Ut=="object"&&typeof Ut.emit=="function"){Ut.emit("uncaughtException",r);return}console.error(r)},ai=[],Va=0,gy=0;function zf(){for(var r=Va,i=gy=Va=0;i<r;){var a=ai[i];ai[i++]=null;var d=ai[i];ai[i++]=null;var b=ai[i];ai[i++]=null;var E=ai[i];if(ai[i++]=null,d!==null&&b!==null){var V=d.pending;V===null?b.next=b:(b.next=V.next,V.next=b),d.pending=b}E!==0&&_x(a,b,E)}}function $f(r,i,a,d){ai[Va++]=r,ai[Va++]=i,ai[Va++]=a,ai[Va++]=d,gy|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function my(r,i,a,d){return $f(r,i,a,d),qf(r)}function Ys(r,i){return $f(r,null,null,i),qf(r)}function _x(r,i,a){r.lanes|=a;var d=r.alternate;d!==null&&(d.lanes|=a);for(var b=!1,E=r.return;E!==null;)E.childLanes|=a,d=E.alternate,d!==null&&(d.childLanes|=a),E.tag===22&&(r=E.stateNode,r===null||r._visibility&1||(b=!0)),r=E,E=E.return;return r.tag===3?(E=r.stateNode,b&&i!==null&&(b=31-Ke(a),r=E.hiddenUpdates,d=r[b],d===null?r[b]=[i]:d.push(i),i.lane=a|536870912),E):null}function qf(r){if(50<ql)throw ql=0,_g=null,Error(o(185));for(var i=r.return;i!==null;)r=i,i=r.return;return r.tag===3?r.stateNode:null}var Wa={};function $8(r,i,a,d){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qn(r,i,a,d){return new $8(r,i,a,d)}function by(r){return r=r.prototype,!(!r||!r.isReactComponent)}function oo(r,i){var a=r.alternate;return a===null?(a=qn(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&65011712,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a.refCleanup=r.refCleanup,a}function Cx(r,i){r.flags&=65011714;var a=r.alternate;return a===null?(r.childLanes=0,r.lanes=i,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=a.childLanes,r.lanes=a.lanes,r.child=a.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=a.memoizedProps,r.memoizedState=a.memoizedState,r.updateQueue=a.updateQueue,r.type=a.type,i=a.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),r}function Hf(r,i,a,d,b,E){var V=0;if(d=r,typeof r=="function")by(r)&&(V=1);else if(typeof r=="string")V=KR(r,a,W.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case U:return r=qn(31,a,i,b),r.elementType=U,r.lanes=E,r;case F:return Vs(a.children,b,E,i);case S:V=8,b|=24;break;case M:return r=qn(12,a,i,b|2),r.elementType=M,r.lanes=E,r;case T:return r=qn(13,a,i,b),r.elementType=T,r.lanes=E,r;case z:return r=qn(19,a,i,b),r.elementType=z,r.lanes=E,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case I:V=10;break e;case A:V=9;break e;case R:V=11;break e;case k:V=14;break e;case L:V=16,d=null;break e}V=29,a=Error(o(130,r===null?"null":typeof r,"")),d=null}return i=qn(V,a,i,b),i.elementType=r,i.type=d,i.lanes=E,i}function Vs(r,i,a,d){return r=qn(7,r,d,i),r.lanes=a,r}function Ay(r,i,a){return r=qn(6,r,null,i),r.lanes=a,r}function Fx(r){var i=qn(18,null,null,0);return i.stateNode=r,i}function wy(r,i,a){return i=qn(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}var Ox=new WeakMap;function ui(r,i){if(typeof r=="object"&&r!==null){var a=Ox.get(r);return a!==void 0?a:(i={value:r,source:i,stack:C(i)},Ox.set(r,i),i)}return{value:r,source:i,stack:C(i)}}var Xa=[],Za=0,Qf=null,xl=0,li=[],ci=0,Xo=null,zi=1,$i="";function so(r,i){Xa[Za++]=xl,Xa[Za++]=Qf,Qf=r,xl=i}function Tx(r,i,a){li[ci++]=zi,li[ci++]=$i,li[ci++]=Xo,Xo=r;var d=zi;r=$i;var b=32-Ke(d)-1;d&=~(1<<b),a+=1;var E=32-Ke(i)+b;if(30<E){var V=b-b%5;E=(d&(1<<V)-1).toString(32),d>>=V,b-=V,zi=1<<32-Ke(i)+b|a<<b|d,$i=E+r}else zi=1<<E|a<<b|d,$i=r}function vy(r){r.return!==null&&(so(r,1),Tx(r,1,0))}function xy(r){for(;r===Qf;)Qf=Xa[--Za],Xa[Za]=null,xl=Xa[--Za],Xa[Za]=null;for(;r===Xo;)Xo=li[--ci],li[ci]=null,$i=li[--ci],li[ci]=null,zi=li[--ci],li[ci]=null}function Bx(r,i){li[ci++]=zi,li[ci++]=$i,li[ci++]=Xo,zi=i.id,$i=i.overflow,Xo=r}var Vr=null,Jt=null,Mt=!1,Zo=null,fi=!1,Ey=Error(o(519));function Jo(r){var i=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw El(ui(i,r)),Ey}function Rx(r){var i=r.stateNode,a=r.type,d=r.memoizedProps;switch(i[Ht]=r,i[nr]=d,a){case"dialog":It("cancel",i),It("close",i);break;case"iframe":case"object":case"embed":It("load",i);break;case"video":case"audio":for(a=0;a<Ql.length;a++)It(Ql[a],i);break;case"source":It("error",i);break;case"img":case"image":case"link":It("error",i),It("load",i);break;case"details":It("toggle",i);break;case"input":It("invalid",i),Hv(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":It("invalid",i);break;case"textarea":It("invalid",i),Gv(i,d.value,d.defaultValue,d.children)}a=d.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||i.textContent===""+a||d.suppressHydrationWarning===!0||VS(i.textContent,a)?(d.popover!=null&&(It("beforetoggle",i),It("toggle",i)),d.onScroll!=null&&It("scroll",i),d.onScrollEnd!=null&&It("scrollend",i),d.onClick!=null&&(i.onclick=no),i=!0):i=!1,i||Jo(r,!0)}function Mx(r){for(Vr=r.return;Vr;)switch(Vr.tag){case 5:case 31:case 13:fi=!1;return;case 27:case 3:fi=!0;return;default:Vr=Vr.return}}function Ja(r){if(r!==Vr)return!1;if(!Mt)return Mx(r),Mt=!0,!1;var i=r.tag,a;if((a=i!==3&&i!==27)&&((a=i===5)&&(a=r.type,a=!(a!=="form"&&a!=="button")||zg(r.type,r.memoizedProps)),a=!a),a&&Jt&&Jo(r),Mx(r),i===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));Jt=i2(r)}else if(i===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));Jt=i2(r)}else i===27?(i=Jt,ds(r.type)?(r=Gg,Gg=null,Jt=r):Jt=i):Jt=Vr?di(r.stateNode.nextSibling):null;return!0}function Ws(){Jt=Vr=null,Mt=!1}function Sy(){var r=Zo;return r!==null&&(Cn===null?Cn=r:Cn.push.apply(Cn,r),Zo=null),r}function El(r){Zo===null?Zo=[r]:Zo.push(r)}var Iy=G(null),Xs=null,ao=null;function es(r,i,a){K(Iy,i._currentValue),i._currentValue=a}function uo(r){r._currentValue=Iy.current,Q(Iy)}function _y(r,i,a){for(;r!==null;){var d=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),r===a)break;r=r.return}}function Cy(r,i,a,d){var b=r.child;for(b!==null&&(b.return=r);b!==null;){var E=b.dependencies;if(E!==null){var V=b.child;E=E.firstContext;e:for(;E!==null;){var ge=E;E=b;for(var Fe=0;Fe<i.length;Fe++)if(ge.context===i[Fe]){E.lanes|=a,ge=E.alternate,ge!==null&&(ge.lanes|=a),_y(E.return,a,r),d||(V=null);break e}E=ge.next}}else if(b.tag===18){if(V=b.return,V===null)throw Error(o(341));V.lanes|=a,E=V.alternate,E!==null&&(E.lanes|=a),_y(V,a,r),V=null}else V=b.child;if(V!==null)V.return=b;else for(V=b;V!==null;){if(V===r){V=null;break}if(b=V.sibling,b!==null){b.return=V.return,V=b;break}V=V.return}b=V}}function eu(r,i,a,d){r=null;for(var b=i,E=!1;b!==null;){if(!E){if((b.flags&524288)!==0)E=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var V=b.alternate;if(V===null)throw Error(o(387));if(V=V.memoizedProps,V!==null){var ge=b.type;$n(b.pendingProps.value,V.value)||(r!==null?r.push(ge):r=[ge])}}else if(b===ae.current){if(V=b.alternate,V===null)throw Error(o(387));V.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(r!==null?r.push(Wl):r=[Wl])}b=b.return}r!==null&&Cy(i,r,a,d),i.flags|=262144}function Gf(r){for(r=r.firstContext;r!==null;){if(!$n(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Zs(r){Xs=r,ao=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Wr(r){return Ux(Xs,r)}function Kf(r,i){return Xs===null&&Zs(r),Ux(r,i)}function Ux(r,i){var a=i._currentValue;if(i={context:i,memoizedValue:a,next:null},ao===null){if(r===null)throw Error(o(308));ao=i,r.dependencies={lanes:0,firstContext:i},r.flags|=524288}else ao=ao.next=i;return a}var q8=typeof AbortController<"u"?AbortController:function(){var r=[],i=this.signal={aborted:!1,addEventListener:function(a,d){r.push(d)}};this.abort=function(){i.aborted=!0,r.forEach(function(a){return a()})}},H8=e.unstable_scheduleCallback,Q8=e.unstable_NormalPriority,vr={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fy(){return{controller:new q8,data:new Map,refCount:0}}function Sl(r){r.refCount--,r.refCount===0&&H8(Q8,function(){r.controller.abort()})}var Il=null,Oy=0,tu=0,ru=null;function G8(r,i){if(Il===null){var a=Il=[];Oy=0,tu=Rg(),ru={status:"pending",value:void 0,then:function(d){a.push(d)}}}return Oy++,i.then(jx,jx),i}function jx(){if(--Oy===0&&Il!==null){ru!==null&&(ru.status="fulfilled");var r=Il;Il=null,tu=0,ru=null;for(var i=0;i<r.length;i++)(0,r[i])()}}function K8(r,i){var a=[],d={status:"pending",value:null,reason:null,then:function(b){a.push(b)}};return r.then(function(){d.status="fulfilled",d.value=i;for(var b=0;b<a.length;b++)(0,a[b])(i)},function(b){for(d.status="rejected",d.reason=b,b=0;b<a.length;b++)(0,a[b])(void 0)}),d}var Nx=X.S;X.S=function(r,i){AS=de(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&G8(r,i),Nx!==null&&Nx(r,i)};var Js=G(null);function Ty(){var r=Js.current;return r!==null?r:Wt.pooledCache}function Yf(r,i){i===null?K(Js,Js.current):K(Js,i.pool)}function Dx(){var r=Ty();return r===null?null:{parent:vr._currentValue,pool:r}}var nu=Error(o(460)),By=Error(o(474)),Vf=Error(o(542)),Wf={then:function(){}};function Px(r){return r=r.status,r==="fulfilled"||r==="rejected"}function kx(r,i,a){switch(a=r[a],a===void 0?r.push(i):a!==i&&(i.then(no,no),i=a),i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,zx(r),r;default:if(typeof i.status=="string")i.then(no,no);else{if(r=Wt,r!==null&&100<r.shellSuspendCounter)throw Error(o(482));r=i,r.status="pending",r.then(function(d){if(i.status==="pending"){var b=i;b.status="fulfilled",b.value=d}},function(d){if(i.status==="pending"){var b=i;b.status="rejected",b.reason=d}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw r=i.reason,zx(r),r}throw ta=i,nu}}function ea(r){try{var i=r._init;return i(r._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ta=a,nu):a}}var ta=null;function Lx(){if(ta===null)throw Error(o(459));var r=ta;return ta=null,r}function zx(r){if(r===nu||r===Vf)throw Error(o(483))}var iu=null,_l=0;function Xf(r){var i=_l;return _l+=1,iu===null&&(iu=[]),kx(iu,r,i)}function Cl(r,i){i=i.props.ref,r.ref=i!==void 0?i:null}function Zf(r,i){throw i.$$typeof===g?Error(o(525)):(r=Object.prototype.toString.call(i),Error(o(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r)))}function $x(r){function i(Te,Oe){if(r){var Re=Te.deletions;Re===null?(Te.deletions=[Oe],Te.flags|=16):Re.push(Oe)}}function a(Te,Oe){if(!r)return null;for(;Oe!==null;)i(Te,Oe),Oe=Oe.sibling;return null}function d(Te){for(var Oe=new Map;Te!==null;)Te.key!==null?Oe.set(Te.key,Te):Oe.set(Te.index,Te),Te=Te.sibling;return Oe}function b(Te,Oe){return Te=oo(Te,Oe),Te.index=0,Te.sibling=null,Te}function E(Te,Oe,Re){return Te.index=Re,r?(Re=Te.alternate,Re!==null?(Re=Re.index,Re<Oe?(Te.flags|=67108866,Oe):Re):(Te.flags|=67108866,Oe)):(Te.flags|=1048576,Oe)}function V(Te){return r&&Te.alternate===null&&(Te.flags|=67108866),Te}function ge(Te,Oe,Re,Qe){return Oe===null||Oe.tag!==6?(Oe=Ay(Re,Te.mode,Qe),Oe.return=Te,Oe):(Oe=b(Oe,Re),Oe.return=Te,Oe)}function Fe(Te,Oe,Re,Qe){var pt=Re.type;return pt===F?$e(Te,Oe,Re.props.children,Qe,Re.key):Oe!==null&&(Oe.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===L&&ea(pt)===Oe.type)?(Oe=b(Oe,Re.props),Cl(Oe,Re),Oe.return=Te,Oe):(Oe=Hf(Re.type,Re.key,Re.props,null,Te.mode,Qe),Cl(Oe,Re),Oe.return=Te,Oe)}function Me(Te,Oe,Re,Qe){return Oe===null||Oe.tag!==4||Oe.stateNode.containerInfo!==Re.containerInfo||Oe.stateNode.implementation!==Re.implementation?(Oe=wy(Re,Te.mode,Qe),Oe.return=Te,Oe):(Oe=b(Oe,Re.children||[]),Oe.return=Te,Oe)}function $e(Te,Oe,Re,Qe,pt){return Oe===null||Oe.tag!==7?(Oe=Vs(Re,Te.mode,Qe,pt),Oe.return=Te,Oe):(Oe=b(Oe,Re),Oe.return=Te,Oe)}function Ge(Te,Oe,Re){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Oe=Ay(""+Oe,Te.mode,Re),Oe.return=Te,Oe;if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case m:return Re=Hf(Oe.type,Oe.key,Oe.props,null,Te.mode,Re),Cl(Re,Oe),Re.return=Te,Re;case w:return Oe=wy(Oe,Te.mode,Re),Oe.return=Te,Oe;case L:return Oe=ea(Oe),Ge(Te,Oe,Re)}if(oe(Oe)||P(Oe))return Oe=Vs(Oe,Te.mode,Re,null),Oe.return=Te,Oe;if(typeof Oe.then=="function")return Ge(Te,Xf(Oe),Re);if(Oe.$$typeof===I)return Ge(Te,Kf(Te,Oe),Re);Zf(Te,Oe)}return null}function Ue(Te,Oe,Re,Qe){var pt=Oe!==null?Oe.key:null;if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return pt!==null?null:ge(Te,Oe,""+Re,Qe);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case m:return Re.key===pt?Fe(Te,Oe,Re,Qe):null;case w:return Re.key===pt?Me(Te,Oe,Re,Qe):null;case L:return Re=ea(Re),Ue(Te,Oe,Re,Qe)}if(oe(Re)||P(Re))return pt!==null?null:$e(Te,Oe,Re,Qe,null);if(typeof Re.then=="function")return Ue(Te,Oe,Xf(Re),Qe);if(Re.$$typeof===I)return Ue(Te,Oe,Kf(Te,Re),Qe);Zf(Te,Re)}return null}function De(Te,Oe,Re,Qe,pt){if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint")return Te=Te.get(Re)||null,ge(Oe,Te,""+Qe,pt);if(typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case m:return Te=Te.get(Qe.key===null?Re:Qe.key)||null,Fe(Oe,Te,Qe,pt);case w:return Te=Te.get(Qe.key===null?Re:Qe.key)||null,Me(Oe,Te,Qe,pt);case L:return Qe=ea(Qe),De(Te,Oe,Re,Qe,pt)}if(oe(Qe)||P(Qe))return Te=Te.get(Re)||null,$e(Oe,Te,Qe,pt,null);if(typeof Qe.then=="function")return De(Te,Oe,Re,Xf(Qe),pt);if(Qe.$$typeof===I)return De(Te,Oe,Re,Kf(Oe,Qe),pt);Zf(Oe,Qe)}return null}function ut(Te,Oe,Re,Qe){for(var pt=null,jt=null,ct=Oe,xt=Oe=0,Ot=null;ct!==null&&xt<Re.length;xt++){ct.index>xt?(Ot=ct,ct=null):Ot=ct.sibling;var Nt=Ue(Te,ct,Re[xt],Qe);if(Nt===null){ct===null&&(ct=Ot);break}r&&ct&&Nt.alternate===null&&i(Te,ct),Oe=E(Nt,Oe,xt),jt===null?pt=Nt:jt.sibling=Nt,jt=Nt,ct=Ot}if(xt===Re.length)return a(Te,ct),Mt&&so(Te,xt),pt;if(ct===null){for(;xt<Re.length;xt++)ct=Ge(Te,Re[xt],Qe),ct!==null&&(Oe=E(ct,Oe,xt),jt===null?pt=ct:jt.sibling=ct,jt=ct);return Mt&&so(Te,xt),pt}for(ct=d(ct);xt<Re.length;xt++)Ot=De(ct,Te,xt,Re[xt],Qe),Ot!==null&&(r&&Ot.alternate!==null&&ct.delete(Ot.key===null?xt:Ot.key),Oe=E(Ot,Oe,xt),jt===null?pt=Ot:jt.sibling=Ot,jt=Ot);return r&&ct.forEach(function(bs){return i(Te,bs)}),Mt&&so(Te,xt),pt}function mt(Te,Oe,Re,Qe){if(Re==null)throw Error(o(151));for(var pt=null,jt=null,ct=Oe,xt=Oe=0,Ot=null,Nt=Re.next();ct!==null&&!Nt.done;xt++,Nt=Re.next()){ct.index>xt?(Ot=ct,ct=null):Ot=ct.sibling;var bs=Ue(Te,ct,Nt.value,Qe);if(bs===null){ct===null&&(ct=Ot);break}r&&ct&&bs.alternate===null&&i(Te,ct),Oe=E(bs,Oe,xt),jt===null?pt=bs:jt.sibling=bs,jt=bs,ct=Ot}if(Nt.done)return a(Te,ct),Mt&&so(Te,xt),pt;if(ct===null){for(;!Nt.done;xt++,Nt=Re.next())Nt=Ge(Te,Nt.value,Qe),Nt!==null&&(Oe=E(Nt,Oe,xt),jt===null?pt=Nt:jt.sibling=Nt,jt=Nt);return Mt&&so(Te,xt),pt}for(ct=d(ct);!Nt.done;xt++,Nt=Re.next())Nt=De(ct,Te,xt,Nt.value,Qe),Nt!==null&&(r&&Nt.alternate!==null&&ct.delete(Nt.key===null?xt:Nt.key),Oe=E(Nt,Oe,xt),jt===null?pt=Nt:jt.sibling=Nt,jt=Nt);return r&&ct.forEach(function(i4){return i(Te,i4)}),Mt&&so(Te,xt),pt}function Kt(Te,Oe,Re,Qe){if(typeof Re=="object"&&Re!==null&&Re.type===F&&Re.key===null&&(Re=Re.props.children),typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case m:e:{for(var pt=Re.key;Oe!==null;){if(Oe.key===pt){if(pt=Re.type,pt===F){if(Oe.tag===7){a(Te,Oe.sibling),Qe=b(Oe,Re.props.children),Qe.return=Te,Te=Qe;break e}}else if(Oe.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===L&&ea(pt)===Oe.type){a(Te,Oe.sibling),Qe=b(Oe,Re.props),Cl(Qe,Re),Qe.return=Te,Te=Qe;break e}a(Te,Oe);break}else i(Te,Oe);Oe=Oe.sibling}Re.type===F?(Qe=Vs(Re.props.children,Te.mode,Qe,Re.key),Qe.return=Te,Te=Qe):(Qe=Hf(Re.type,Re.key,Re.props,null,Te.mode,Qe),Cl(Qe,Re),Qe.return=Te,Te=Qe)}return V(Te);case w:e:{for(pt=Re.key;Oe!==null;){if(Oe.key===pt)if(Oe.tag===4&&Oe.stateNode.containerInfo===Re.containerInfo&&Oe.stateNode.implementation===Re.implementation){a(Te,Oe.sibling),Qe=b(Oe,Re.children||[]),Qe.return=Te,Te=Qe;break e}else{a(Te,Oe);break}else i(Te,Oe);Oe=Oe.sibling}Qe=wy(Re,Te.mode,Qe),Qe.return=Te,Te=Qe}return V(Te);case L:return Re=ea(Re),Kt(Te,Oe,Re,Qe)}if(oe(Re))return ut(Te,Oe,Re,Qe);if(P(Re)){if(pt=P(Re),typeof pt!="function")throw Error(o(150));return Re=pt.call(Re),mt(Te,Oe,Re,Qe)}if(typeof Re.then=="function")return Kt(Te,Oe,Xf(Re),Qe);if(Re.$$typeof===I)return Kt(Te,Oe,Kf(Te,Re),Qe);Zf(Te,Re)}return typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint"?(Re=""+Re,Oe!==null&&Oe.tag===6?(a(Te,Oe.sibling),Qe=b(Oe,Re),Qe.return=Te,Te=Qe):(a(Te,Oe),Qe=Ay(Re,Te.mode,Qe),Qe.return=Te,Te=Qe),V(Te)):a(Te,Oe)}return function(Te,Oe,Re,Qe){try{_l=0;var pt=Kt(Te,Oe,Re,Qe);return iu=null,pt}catch(ct){if(ct===nu||ct===Vf)throw ct;var jt=qn(29,ct,null,Te.mode);return jt.lanes=Qe,jt.return=Te,jt}finally{}}}var ra=$x(!0),qx=$x(!1),ts=!1;function Ry(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function My(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function rs(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ns(r,i,a){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Pt&2)!==0){var b=d.pending;return b===null?i.next=i:(i.next=b.next,b.next=i),d.pending=i,i=qf(r),_x(r,null,a),i}return $f(r,d,i,a),qf(r)}function Fl(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194048)!==0)){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,Je(r,a)}}function Uy(r,i){var a=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var b=null,E=null;if(a=a.firstBaseUpdate,a!==null){do{var V={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};E===null?b=E=V:E=E.next=V,a=a.next}while(a!==null);E===null?b=E=i:E=E.next=i}else b=E=i;a={baseState:d.baseState,firstBaseUpdate:b,lastBaseUpdate:E,shared:d.shared,callbacks:d.callbacks},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}var jy=!1;function Ol(){if(jy){var r=ru;if(r!==null)throw r}}function Tl(r,i,a,d){jy=!1;var b=r.updateQueue;ts=!1;var E=b.firstBaseUpdate,V=b.lastBaseUpdate,ge=b.shared.pending;if(ge!==null){b.shared.pending=null;var Fe=ge,Me=Fe.next;Fe.next=null,V===null?E=Me:V.next=Me,V=Fe;var $e=r.alternate;$e!==null&&($e=$e.updateQueue,ge=$e.lastBaseUpdate,ge!==V&&(ge===null?$e.firstBaseUpdate=Me:ge.next=Me,$e.lastBaseUpdate=Fe))}if(E!==null){var Ge=b.baseState;V=0,$e=Me=Fe=null,ge=E;do{var Ue=ge.lane&-536870913,De=Ue!==ge.lane;if(De?(Ft&Ue)===Ue:(d&Ue)===Ue){Ue!==0&&Ue===tu&&(jy=!0),$e!==null&&($e=$e.next={lane:0,tag:ge.tag,payload:ge.payload,callback:null,next:null});e:{var ut=r,mt=ge;Ue=i;var Kt=a;switch(mt.tag){case 1:if(ut=mt.payload,typeof ut=="function"){Ge=ut.call(Kt,Ge,Ue);break e}Ge=ut;break e;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=mt.payload,Ue=typeof ut=="function"?ut.call(Kt,Ge,Ue):ut,Ue==null)break e;Ge=y({},Ge,Ue);break e;case 2:ts=!0}}Ue=ge.callback,Ue!==null&&(r.flags|=64,De&&(r.flags|=8192),De=b.callbacks,De===null?b.callbacks=[Ue]:De.push(Ue))}else De={lane:Ue,tag:ge.tag,payload:ge.payload,callback:ge.callback,next:null},$e===null?(Me=$e=De,Fe=Ge):$e=$e.next=De,V|=Ue;if(ge=ge.next,ge===null){if(ge=b.shared.pending,ge===null)break;De=ge,ge=De.next,De.next=null,b.lastBaseUpdate=De,b.shared.pending=null}}while(!0);$e===null&&(Fe=Ge),b.baseState=Fe,b.firstBaseUpdate=Me,b.lastBaseUpdate=$e,E===null&&(b.shared.lanes=0),us|=V,r.lanes=V,r.memoizedState=Ge}}function Hx(r,i){if(typeof r!="function")throw Error(o(191,r));r.call(i)}function Qx(r,i){var a=r.callbacks;if(a!==null)for(r.callbacks=null,r=0;r<a.length;r++)Hx(a[r],i)}var ou=G(null),Jf=G(0);function Gx(r,i){r=bo,K(Jf,r),K(ou,i),bo=r|i.baseLanes}function Ny(){K(Jf,bo),K(ou,ou.current)}function Dy(){bo=Jf.current,Q(ou),Q(Jf)}var Hn=G(null),hi=null;function is(r){var i=r.alternate;K(gr,gr.current&1),K(Hn,r),hi===null&&(i===null||ou.current!==null||i.memoizedState!==null)&&(hi=r)}function Py(r){K(gr,gr.current),K(Hn,r),hi===null&&(hi=r)}function Kx(r){r.tag===22?(K(gr,gr.current),K(Hn,r),hi===null&&(hi=r)):os()}function os(){K(gr,gr.current),K(Hn,Hn.current)}function Qn(r){Q(Hn),hi===r&&(hi=null),Q(gr)}var gr=G(0);function eh(r){for(var i=r;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hg(a)||Qg(a)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var lo=0,vt=null,Qt=null,xr=null,th=!1,su=!1,na=!1,rh=0,Bl=0,au=null,Y8=0;function fr(){throw Error(o(321))}function ky(r,i){if(i===null)return!1;for(var a=0;a<i.length&&a<r.length;a++)if(!$n(r[a],i[a]))return!1;return!0}function Ly(r,i,a,d,b,E){return lo=E,vt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,X.H=r===null||r.memoizedState===null?TE:tg,na=!1,E=a(d,b),na=!1,su&&(E=Vx(i,a,d,b)),Yx(r),E}function Yx(r){X.H=Ul;var i=Qt!==null&&Qt.next!==null;if(lo=0,xr=Qt=vt=null,th=!1,Bl=0,au=null,i)throw Error(o(300));r===null||Er||(r=r.dependencies,r!==null&&Gf(r)&&(Er=!0))}function Vx(r,i,a,d){vt=r;var b=0;do{if(su&&(au=null),Bl=0,su=!1,25<=b)throw Error(o(301));if(b+=1,xr=Qt=null,r.updateQueue!=null){var E=r.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}X.H=BE,E=i(a,d)}while(su);return E}function V8(){var r=X.H,i=r.useState()[0];return i=typeof i.then=="function"?Rl(i):i,r=r.useState()[0],(Qt!==null?Qt.memoizedState:null)!==r&&(vt.flags|=1024),i}function zy(){var r=rh!==0;return rh=0,r}function $y(r,i,a){i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~a}function qy(r){if(th){for(r=r.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}th=!1}lo=0,xr=Qt=vt=null,su=!1,Bl=rh=0,au=null}function mn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xr===null?vt.memoizedState=xr=r:xr=xr.next=r,xr}function mr(){if(Qt===null){var r=vt.alternate;r=r!==null?r.memoizedState:null}else r=Qt.next;var i=xr===null?vt.memoizedState:xr.next;if(i!==null)xr=i,Qt=r;else{if(r===null)throw vt.alternate===null?Error(o(467)):Error(o(310));Qt=r,r={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},xr===null?vt.memoizedState=xr=r:xr=xr.next=r}return xr}function nh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(r){var i=Bl;return Bl+=1,au===null&&(au=[]),r=kx(au,r,i),i=vt,(xr===null?i.memoizedState:xr.next)===null&&(i=i.alternate,X.H=i===null||i.memoizedState===null?TE:tg),r}function ih(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Rl(r);if(r.$$typeof===I)return Wr(r)}throw Error(o(438,String(r)))}function Hy(r){var i=null,a=vt.updateQueue;if(a!==null&&(i=a.memoCache),i==null){var d=vt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(b){return b.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),a===null&&(a=nh(),vt.updateQueue=a),a.memoCache=i,a=i.data[i.index],a===void 0)for(a=i.data[i.index]=Array(r),d=0;d<r;d++)a[d]=j;return i.index++,a}function co(r,i){return typeof i=="function"?i(r):i}function oh(r){var i=mr();return Qy(i,Qt,r)}function Qy(r,i,a){var d=r.queue;if(d===null)throw Error(o(311));d.lastRenderedReducer=a;var b=r.baseQueue,E=d.pending;if(E!==null){if(b!==null){var V=b.next;b.next=E.next,E.next=V}i.baseQueue=b=E,d.pending=null}if(E=r.baseState,b===null)r.memoizedState=E;else{i=b.next;var ge=V=null,Fe=null,Me=i,$e=!1;do{var Ge=Me.lane&-536870913;if(Ge!==Me.lane?(Ft&Ge)===Ge:(lo&Ge)===Ge){var Ue=Me.revertLane;if(Ue===0)Fe!==null&&(Fe=Fe.next={lane:0,revertLane:0,gesture:null,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),Ge===tu&&($e=!0);else if((lo&Ue)===Ue){Me=Me.next,Ue===tu&&($e=!0);continue}else Ge={lane:0,revertLane:Me.revertLane,gesture:null,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},Fe===null?(ge=Fe=Ge,V=E):Fe=Fe.next=Ge,vt.lanes|=Ue,us|=Ue;Ge=Me.action,na&&a(E,Ge),E=Me.hasEagerState?Me.eagerState:a(E,Ge)}else Ue={lane:Ge,revertLane:Me.revertLane,gesture:Me.gesture,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},Fe===null?(ge=Fe=Ue,V=E):Fe=Fe.next=Ue,vt.lanes|=Ge,us|=Ge;Me=Me.next}while(Me!==null&&Me!==i);if(Fe===null?V=E:Fe.next=ge,!$n(E,r.memoizedState)&&(Er=!0,$e&&(a=ru,a!==null)))throw a;r.memoizedState=E,r.baseState=V,r.baseQueue=Fe,d.lastRenderedState=E}return b===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function Gy(r){var i=mr(),a=i.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=r;var d=a.dispatch,b=a.pending,E=i.memoizedState;if(b!==null){a.pending=null;var V=b=b.next;do E=r(E,V.action),V=V.next;while(V!==b);$n(E,i.memoizedState)||(Er=!0),i.memoizedState=E,i.baseQueue===null&&(i.baseState=E),a.lastRenderedState=E}return[E,d]}function Wx(r,i,a){var d=vt,b=mr(),E=Mt;if(E){if(a===void 0)throw Error(o(407));a=a()}else a=i();var V=!$n((Qt||b).memoizedState,a);if(V&&(b.memoizedState=a,Er=!0),b=b.queue,Vy(Jx.bind(null,d,b,r),[r]),b.getSnapshot!==i||V||xr!==null&&xr.memoizedState.tag&1){if(d.flags|=2048,uu(9,{destroy:void 0},Zx.bind(null,d,b,a,i),null),Wt===null)throw Error(o(349));E||(lo&127)!==0||Xx(d,i,a)}return a}function Xx(r,i,a){r.flags|=16384,r={getSnapshot:i,value:a},i=vt.updateQueue,i===null?(i=nh(),vt.updateQueue=i,i.stores=[r]):(a=i.stores,a===null?i.stores=[r]:a.push(r))}function Zx(r,i,a,d){i.value=a,i.getSnapshot=d,eE(i)&&tE(r)}function Jx(r,i,a){return a(function(){eE(i)&&tE(r)})}function eE(r){var i=r.getSnapshot;r=r.value;try{var a=i();return!$n(r,a)}catch{return!0}}function tE(r){var i=Ys(r,2);i!==null&&Fn(i,r,2)}function Ky(r){var i=mn();if(typeof r=="function"){var a=r;if(r=a(),na){He(!0);try{a()}finally{He(!1)}}}return i.memoizedState=i.baseState=r,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:co,lastRenderedState:r},i}function rE(r,i,a,d){return r.baseState=a,Qy(r,Qt,typeof d=="function"?d:co)}function W8(r,i,a,d,b){if(uh(r))throw Error(o(485));if(r=i.action,r!==null){var E={payload:b,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(V){E.listeners.push(V)}};X.T!==null?a(!0):E.isTransition=!1,d(E),a=i.pending,a===null?(E.next=i.pending=E,nE(i,E)):(E.next=a.next,i.pending=a.next=E)}}function nE(r,i){var a=i.action,d=i.payload,b=r.state;if(i.isTransition){var E=X.T,V={};X.T=V;try{var ge=a(b,d),Fe=X.S;Fe!==null&&Fe(V,ge),iE(r,i,ge)}catch(Me){Yy(r,i,Me)}finally{E!==null&&V.types!==null&&(E.types=V.types),X.T=E}}else try{E=a(b,d),iE(r,i,E)}catch(Me){Yy(r,i,Me)}}function iE(r,i,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(d){oE(r,i,d)},function(d){return Yy(r,i,d)}):oE(r,i,a)}function oE(r,i,a){i.status="fulfilled",i.value=a,sE(i),r.state=a,i=r.pending,i!==null&&(a=i.next,a===i?r.pending=null:(a=a.next,i.next=a,nE(r,a)))}function Yy(r,i,a){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=a,sE(i),i=i.next;while(i!==d)}r.action=null}function sE(r){r=r.listeners;for(var i=0;i<r.length;i++)(0,r[i])()}function aE(r,i){return i}function uE(r,i){if(Mt){var a=Wt.formState;if(a!==null){e:{var d=vt;if(Mt){if(Jt){t:{for(var b=Jt,E=fi;b.nodeType!==8;){if(!E){b=null;break t}if(b=di(b.nextSibling),b===null){b=null;break t}}E=b.data,b=E==="F!"||E==="F"?b:null}if(b){Jt=di(b.nextSibling),d=b.data==="F!";break e}}Jo(d)}d=!1}d&&(i=a[0])}}return a=mn(),a.memoizedState=a.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aE,lastRenderedState:i},a.queue=d,a=CE.bind(null,vt,d),d.dispatch=a,d=Ky(!1),E=eg.bind(null,vt,!1,d.queue),d=mn(),b={state:i,dispatch:null,action:r,pending:null},d.queue=b,a=W8.bind(null,vt,b,E,a),b.dispatch=a,d.memoizedState=r,[i,a,!1]}function lE(r){var i=mr();return cE(i,Qt,r)}function cE(r,i,a){if(i=Qy(r,i,aE)[0],r=oh(co)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=Rl(i)}catch(V){throw V===nu?Vf:V}else d=i;i=mr();var b=i.queue,E=b.dispatch;return a!==i.memoizedState&&(vt.flags|=2048,uu(9,{destroy:void 0},X8.bind(null,b,a),null)),[d,E,r]}function X8(r,i){r.action=i}function fE(r){var i=mr(),a=Qt;if(a!==null)return cE(i,a,r);mr(),i=i.memoizedState,a=mr();var d=a.queue.dispatch;return a.memoizedState=r,[i,d,!1]}function uu(r,i,a,d){return r={tag:r,create:a,deps:d,inst:i,next:null},i=vt.updateQueue,i===null&&(i=nh(),vt.updateQueue=i),a=i.lastEffect,a===null?i.lastEffect=r.next=r:(d=a.next,a.next=r,r.next=d,i.lastEffect=r),r}function hE(){return mr().memoizedState}function sh(r,i,a,d){var b=mn();vt.flags|=r,b.memoizedState=uu(1|i,{destroy:void 0},a,d===void 0?null:d)}function ah(r,i,a,d){var b=mr();d=d===void 0?null:d;var E=b.memoizedState.inst;Qt!==null&&d!==null&&ky(d,Qt.memoizedState.deps)?b.memoizedState=uu(i,E,a,d):(vt.flags|=r,b.memoizedState=uu(1|i,E,a,d))}function dE(r,i){sh(8390656,8,r,i)}function Vy(r,i){ah(2048,8,r,i)}function Z8(r){vt.flags|=4;var i=vt.updateQueue;if(i===null)i=nh(),vt.updateQueue=i,i.events=[r];else{var a=i.events;a===null?i.events=[r]:a.push(r)}}function pE(r){var i=mr().memoizedState;return Z8({ref:i,nextImpl:r}),function(){if((Pt&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}function yE(r,i){return ah(4,2,r,i)}function gE(r,i){return ah(4,4,r,i)}function mE(r,i){if(typeof i=="function"){r=r();var a=i(r);return function(){typeof a=="function"?a():i(null)}}if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function bE(r,i,a){a=a!=null?a.concat([r]):null,ah(4,4,mE.bind(null,i,r),a)}function Wy(){}function AE(r,i){var a=mr();i=i===void 0?null:i;var d=a.memoizedState;return i!==null&&ky(i,d[1])?d[0]:(a.memoizedState=[r,i],r)}function wE(r,i){var a=mr();i=i===void 0?null:i;var d=a.memoizedState;if(i!==null&&ky(i,d[1]))return d[0];if(d=r(),na){He(!0);try{r()}finally{He(!1)}}return a.memoizedState=[d,i],d}function Xy(r,i,a){return a===void 0||(lo&1073741824)!==0&&(Ft&261930)===0?r.memoizedState=i:(r.memoizedState=a,r=vS(),vt.lanes|=r,us|=r,a)}function vE(r,i,a,d){return $n(a,i)?a:ou.current!==null?(r=Xy(r,a,d),$n(r,i)||(Er=!0),r):(lo&42)===0||(lo&1073741824)!==0&&(Ft&261930)===0?(Er=!0,r.memoizedState=a):(r=vS(),vt.lanes|=r,us|=r,i)}function xE(r,i,a,d,b){var E=re.p;re.p=E!==0&&8>E?E:8;var V=X.T,ge={};X.T=ge,eg(r,!1,i,a);try{var Fe=b(),Me=X.S;if(Me!==null&&Me(ge,Fe),Fe!==null&&typeof Fe=="object"&&typeof Fe.then=="function"){var $e=K8(Fe,d);Ml(r,i,$e,Yn(r))}else Ml(r,i,d,Yn(r))}catch(Ge){Ml(r,i,{then:function(){},status:"rejected",reason:Ge},Yn())}finally{re.p=E,V!==null&&ge.types!==null&&(V.types=ge.types),X.T=V}}function J8(){}function Zy(r,i,a,d){if(r.tag!==5)throw Error(o(476));var b=EE(r).queue;xE(r,b,i,pe,a===null?J8:function(){return SE(r),a(d)})}function EE(r){var i=r.memoizedState;if(i!==null)return i;i={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:co,lastRenderedState:pe},next:null};var a={};return i.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:co,lastRenderedState:a},next:null},r.memoizedState=i,r=r.alternate,r!==null&&(r.memoizedState=i),i}function SE(r){var i=EE(r);i.next===null&&(i=r.alternate.memoizedState),Ml(r,i.next.queue,{},Yn())}function Jy(){return Wr(Wl)}function IE(){return mr().memoizedState}function _E(){return mr().memoizedState}function eR(r){for(var i=r.return;i!==null;){switch(i.tag){case 24:case 3:var a=Yn();r=rs(a);var d=ns(i,r,a);d!==null&&(Fn(d,i,a),Fl(d,i,a)),i={cache:Fy()},r.payload=i;return}i=i.return}}function tR(r,i,a){var d=Yn();a={lane:d,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},uh(r)?FE(i,a):(a=my(r,i,a,d),a!==null&&(Fn(a,r,d),OE(a,i,d)))}function CE(r,i,a){var d=Yn();Ml(r,i,a,d)}function Ml(r,i,a,d){var b={lane:d,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(uh(r))FE(i,b);else{var E=r.alternate;if(r.lanes===0&&(E===null||E.lanes===0)&&(E=i.lastRenderedReducer,E!==null))try{var V=i.lastRenderedState,ge=E(V,a);if(b.hasEagerState=!0,b.eagerState=ge,$n(ge,V))return $f(r,i,b,0),Wt===null&&zf(),!1}catch{}finally{}if(a=my(r,i,b,d),a!==null)return Fn(a,r,d),OE(a,i,d),!0}return!1}function eg(r,i,a,d){if(d={lane:2,revertLane:Rg(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},uh(r)){if(i)throw Error(o(479))}else i=my(r,a,d,2),i!==null&&Fn(i,r,2)}function uh(r){var i=r.alternate;return r===vt||i!==null&&i===vt}function FE(r,i){su=th=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function OE(r,i,a){if((a&4194048)!==0){var d=i.lanes;d&=r.pendingLanes,a|=d,i.lanes=a,Je(r,a)}}var Ul={readContext:Wr,use:ih,useCallback:fr,useContext:fr,useEffect:fr,useImperativeHandle:fr,useLayoutEffect:fr,useInsertionEffect:fr,useMemo:fr,useReducer:fr,useRef:fr,useState:fr,useDebugValue:fr,useDeferredValue:fr,useTransition:fr,useSyncExternalStore:fr,useId:fr,useHostTransitionStatus:fr,useFormState:fr,useActionState:fr,useOptimistic:fr,useMemoCache:fr,useCacheRefresh:fr};Ul.useEffectEvent=fr;var TE={readContext:Wr,use:ih,useCallback:function(r,i){return mn().memoizedState=[r,i===void 0?null:i],r},useContext:Wr,useEffect:dE,useImperativeHandle:function(r,i,a){a=a!=null?a.concat([r]):null,sh(4194308,4,mE.bind(null,i,r),a)},useLayoutEffect:function(r,i){return sh(4194308,4,r,i)},useInsertionEffect:function(r,i){sh(4,2,r,i)},useMemo:function(r,i){var a=mn();i=i===void 0?null:i;var d=r();if(na){He(!0);try{r()}finally{He(!1)}}return a.memoizedState=[d,i],d},useReducer:function(r,i,a){var d=mn();if(a!==void 0){var b=a(i);if(na){He(!0);try{a(i)}finally{He(!1)}}}else b=i;return d.memoizedState=d.baseState=b,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:b},d.queue=r,r=r.dispatch=tR.bind(null,vt,r),[d.memoizedState,r]},useRef:function(r){var i=mn();return r={current:r},i.memoizedState=r},useState:function(r){r=Ky(r);var i=r.queue,a=CE.bind(null,vt,i);return i.dispatch=a,[r.memoizedState,a]},useDebugValue:Wy,useDeferredValue:function(r,i){var a=mn();return Xy(a,r,i)},useTransition:function(){var r=Ky(!1);return r=xE.bind(null,vt,r.queue,!0,!1),mn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,i,a){var d=vt,b=mn();if(Mt){if(a===void 0)throw Error(o(407));a=a()}else{if(a=i(),Wt===null)throw Error(o(349));(Ft&127)!==0||Xx(d,i,a)}b.memoizedState=a;var E={value:a,getSnapshot:i};return b.queue=E,dE(Jx.bind(null,d,E,r),[r]),d.flags|=2048,uu(9,{destroy:void 0},Zx.bind(null,d,E,a,i),null),a},useId:function(){var r=mn(),i=Wt.identifierPrefix;if(Mt){var a=$i,d=zi;a=(d&~(1<<32-Ke(d)-1)).toString(32)+a,i="_"+i+"R_"+a,a=rh++,0<a&&(i+="H"+a.toString(32)),i+="_"}else a=Y8++,i="_"+i+"r_"+a.toString(32)+"_";return r.memoizedState=i},useHostTransitionStatus:Jy,useFormState:uE,useActionState:uE,useOptimistic:function(r){var i=mn();i.memoizedState=i.baseState=r;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=a,i=eg.bind(null,vt,!0,a),a.dispatch=i,[r,i]},useMemoCache:Hy,useCacheRefresh:function(){return mn().memoizedState=eR.bind(null,vt)},useEffectEvent:function(r){var i=mn(),a={impl:r};return i.memoizedState=a,function(){if((Pt&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},tg={readContext:Wr,use:ih,useCallback:AE,useContext:Wr,useEffect:Vy,useImperativeHandle:bE,useInsertionEffect:yE,useLayoutEffect:gE,useMemo:wE,useReducer:oh,useRef:hE,useState:function(){return oh(co)},useDebugValue:Wy,useDeferredValue:function(r,i){var a=mr();return vE(a,Qt.memoizedState,r,i)},useTransition:function(){var r=oh(co)[0],i=mr().memoizedState;return[typeof r=="boolean"?r:Rl(r),i]},useSyncExternalStore:Wx,useId:IE,useHostTransitionStatus:Jy,useFormState:lE,useActionState:lE,useOptimistic:function(r,i){var a=mr();return rE(a,Qt,r,i)},useMemoCache:Hy,useCacheRefresh:_E};tg.useEffectEvent=pE;var BE={readContext:Wr,use:ih,useCallback:AE,useContext:Wr,useEffect:Vy,useImperativeHandle:bE,useInsertionEffect:yE,useLayoutEffect:gE,useMemo:wE,useReducer:Gy,useRef:hE,useState:function(){return Gy(co)},useDebugValue:Wy,useDeferredValue:function(r,i){var a=mr();return Qt===null?Xy(a,r,i):vE(a,Qt.memoizedState,r,i)},useTransition:function(){var r=Gy(co)[0],i=mr().memoizedState;return[typeof r=="boolean"?r:Rl(r),i]},useSyncExternalStore:Wx,useId:IE,useHostTransitionStatus:Jy,useFormState:fE,useActionState:fE,useOptimistic:function(r,i){var a=mr();return Qt!==null?rE(a,Qt,r,i):(a.baseState=r,[r,a.queue.dispatch])},useMemoCache:Hy,useCacheRefresh:_E};BE.useEffectEvent=pE;function rg(r,i,a,d){i=r.memoizedState,a=a(d,i),a=a==null?i:y({},i,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var ng={enqueueSetState:function(r,i,a){r=r._reactInternals;var d=Yn(),b=rs(d);b.payload=i,a!=null&&(b.callback=a),i=ns(r,b,d),i!==null&&(Fn(i,r,d),Fl(i,r,d))},enqueueReplaceState:function(r,i,a){r=r._reactInternals;var d=Yn(),b=rs(d);b.tag=1,b.payload=i,a!=null&&(b.callback=a),i=ns(r,b,d),i!==null&&(Fn(i,r,d),Fl(i,r,d))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var a=Yn(),d=rs(a);d.tag=2,i!=null&&(d.callback=i),i=ns(r,d,a),i!==null&&(Fn(i,r,a),Fl(i,r,a))}};function RE(r,i,a,d,b,E,V){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,E,V):i.prototype&&i.prototype.isPureReactComponent?!wl(a,d)||!wl(b,E):!0}function ME(r,i,a,d){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,d),i.state!==r&&ng.enqueueReplaceState(i,i.state,null)}function ia(r,i){var a=i;if("ref"in i){a={};for(var d in i)d!=="ref"&&(a[d]=i[d])}if(r=r.defaultProps){a===i&&(a=y({},a));for(var b in r)a[b]===void 0&&(a[b]=r[b])}return a}function UE(r){Lf(r)}function jE(r){console.error(r)}function NE(r){Lf(r)}function lh(r,i){try{var a=r.onUncaughtError;a(i.value,{componentStack:i.stack})}catch(d){setTimeout(function(){throw d})}}function DE(r,i,a){try{var d=r.onCaughtError;d(a.value,{componentStack:a.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function ig(r,i,a){return a=rs(a),a.tag=3,a.payload={element:null},a.callback=function(){lh(r,i)},a}function PE(r){return r=rs(r),r.tag=3,r}function kE(r,i,a,d){var b=a.type.getDerivedStateFromError;if(typeof b=="function"){var E=d.value;r.payload=function(){return b(E)},r.callback=function(){DE(i,a,d)}}var V=a.stateNode;V!==null&&typeof V.componentDidCatch=="function"&&(r.callback=function(){DE(i,a,d),typeof b!="function"&&(ls===null?ls=new Set([this]):ls.add(this));var ge=d.stack;this.componentDidCatch(d.value,{componentStack:ge!==null?ge:""})})}function rR(r,i,a,d,b){if(a.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=a.alternate,i!==null&&eu(i,a,b,!0),a=Hn.current,a!==null){switch(a.tag){case 31:case 13:return hi===null?vh():a.alternate===null&&hr===0&&(hr=3),a.flags&=-257,a.flags|=65536,a.lanes=b,d===Wf?a.flags|=16384:(i=a.updateQueue,i===null?a.updateQueue=new Set([d]):i.add(d),Og(r,d,b)),!1;case 22:return a.flags|=65536,d===Wf?a.flags|=16384:(i=a.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([d])},a.updateQueue=i):(a=i.retryQueue,a===null?i.retryQueue=new Set([d]):a.add(d)),Og(r,d,b)),!1}throw Error(o(435,a.tag))}return Og(r,d,b),vh(),!1}if(Mt)return i=Hn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=b,d!==Ey&&(r=Error(o(422),{cause:d}),El(ui(r,a)))):(d!==Ey&&(i=Error(o(423),{cause:d}),El(ui(i,a))),r=r.current.alternate,r.flags|=65536,b&=-b,r.lanes|=b,d=ui(d,a),b=ig(r.stateNode,d,b),Uy(r,b),hr!==4&&(hr=2)),!1;var E=Error(o(520),{cause:d});if(E=ui(E,a),$l===null?$l=[E]:$l.push(E),hr!==4&&(hr=2),i===null)return!0;d=ui(d,a),a=i;do{switch(a.tag){case 3:return a.flags|=65536,r=b&-b,a.lanes|=r,r=ig(a.stateNode,d,r),Uy(a,r),!1;case 1:if(i=a.type,E=a.stateNode,(a.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(ls===null||!ls.has(E))))return a.flags|=65536,b&=-b,a.lanes|=b,b=PE(b),kE(b,r,a,d),Uy(a,b),!1}a=a.return}while(a!==null);return!1}var og=Error(o(461)),Er=!1;function Xr(r,i,a,d){i.child=r===null?qx(i,null,a,d):ra(i,r.child,a,d)}function LE(r,i,a,d,b){a=a.render;var E=i.ref;if("ref"in d){var V={};for(var ge in d)ge!=="ref"&&(V[ge]=d[ge])}else V=d;return Zs(i),d=Ly(r,i,a,V,E,b),ge=zy(),r!==null&&!Er?($y(r,i,b),fo(r,i,b)):(Mt&&ge&&vy(i),i.flags|=1,Xr(r,i,d,b),i.child)}function zE(r,i,a,d,b){if(r===null){var E=a.type;return typeof E=="function"&&!by(E)&&E.defaultProps===void 0&&a.compare===null?(i.tag=15,i.type=E,$E(r,i,E,d,b)):(r=Hf(a.type,null,d,i,i.mode,b),r.ref=i.ref,r.return=i,i.child=r)}if(E=r.child,!dg(r,b)){var V=E.memoizedProps;if(a=a.compare,a=a!==null?a:wl,a(V,d)&&r.ref===i.ref)return fo(r,i,b)}return i.flags|=1,r=oo(E,d),r.ref=i.ref,r.return=i,i.child=r}function $E(r,i,a,d,b){if(r!==null){var E=r.memoizedProps;if(wl(E,d)&&r.ref===i.ref)if(Er=!1,i.pendingProps=d=E,dg(r,b))(r.flags&131072)!==0&&(Er=!0);else return i.lanes=r.lanes,fo(r,i,b)}return sg(r,i,a,d,b)}function qE(r,i,a,d){var b=d.children,E=r!==null?r.memoizedState:null;if(r===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((i.flags&128)!==0){if(E=E!==null?E.baseLanes|a:a,r!==null){for(d=i.child=r.child,b=0;d!==null;)b=b|d.lanes|d.childLanes,d=d.sibling;d=b&~E}else d=0,i.child=null;return HE(r,i,E,a,d)}if((a&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},r!==null&&Yf(i,E!==null?E.cachePool:null),E!==null?Gx(i,E):Ny(),Kx(i);else return d=i.lanes=536870912,HE(r,i,E!==null?E.baseLanes|a:a,a,d)}else E!==null?(Yf(i,E.cachePool),Gx(i,E),os(),i.memoizedState=null):(r!==null&&Yf(i,null),Ny(),os());return Xr(r,i,b,a),i.child}function jl(r,i){return r!==null&&r.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function HE(r,i,a,d,b){var E=Ty();return E=E===null?null:{parent:vr._currentValue,pool:E},i.memoizedState={baseLanes:a,cachePool:E},r!==null&&Yf(i,null),Ny(),Kx(i),r!==null&&eu(r,i,d,!0),i.childLanes=b,null}function ch(r,i){return i=hh({mode:i.mode,children:i.children},r.mode),i.ref=r.ref,r.child=i,i.return=r,i}function QE(r,i,a){return ra(i,r.child,null,a),r=ch(i,i.pendingProps),r.flags|=2,Qn(i),i.memoizedState=null,r}function nR(r,i,a){var d=i.pendingProps,b=(i.flags&128)!==0;if(i.flags&=-129,r===null){if(Mt){if(d.mode==="hidden")return r=ch(i,d),i.lanes=536870912,jl(null,r);if(Py(i),(r=Jt)?(r=n2(r,fi),r=r!==null&&r.data==="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:Xo!==null?{id:zi,overflow:$i}:null,retryLane:536870912,hydrationErrors:null},a=Fx(r),a.return=i,i.child=a,Vr=i,Jt=null)):r=null,r===null)throw Jo(i);return i.lanes=536870912,null}return ch(i,d)}var E=r.memoizedState;if(E!==null){var V=E.dehydrated;if(Py(i),b)if(i.flags&256)i.flags&=-257,i=QE(r,i,a);else if(i.memoizedState!==null)i.child=r.child,i.flags|=128,i=null;else throw Error(o(558));else if(Er||eu(r,i,a,!1),b=(a&r.childLanes)!==0,Er||b){if(d=Wt,d!==null&&(V=st(d,a),V!==0&&V!==E.retryLane))throw E.retryLane=V,Ys(r,V),Fn(d,r,V),og;vh(),i=QE(r,i,a)}else r=E.treeContext,Jt=di(V.nextSibling),Vr=i,Mt=!0,Zo=null,fi=!1,r!==null&&Bx(i,r),i=ch(i,d),i.flags|=4096;return i}return r=oo(r.child,{mode:d.mode,children:d.children}),r.ref=i.ref,i.child=r,r.return=i,r}function fh(r,i){var a=i.ref;if(a===null)r!==null&&r.ref!==null&&(i.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(r===null||r.ref!==a)&&(i.flags|=4194816)}}function sg(r,i,a,d,b){return Zs(i),a=Ly(r,i,a,d,void 0,b),d=zy(),r!==null&&!Er?($y(r,i,b),fo(r,i,b)):(Mt&&d&&vy(i),i.flags|=1,Xr(r,i,a,b),i.child)}function GE(r,i,a,d,b,E){return Zs(i),i.updateQueue=null,a=Vx(i,d,a,b),Yx(r),d=zy(),r!==null&&!Er?($y(r,i,E),fo(r,i,E)):(Mt&&d&&vy(i),i.flags|=1,Xr(r,i,a,E),i.child)}function KE(r,i,a,d,b){if(Zs(i),i.stateNode===null){var E=Wa,V=a.contextType;typeof V=="object"&&V!==null&&(E=Wr(V)),E=new a(d,E),i.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=ng,i.stateNode=E,E._reactInternals=i,E=i.stateNode,E.props=d,E.state=i.memoizedState,E.refs={},Ry(i),V=a.contextType,E.context=typeof V=="object"&&V!==null?Wr(V):Wa,E.state=i.memoizedState,V=a.getDerivedStateFromProps,typeof V=="function"&&(rg(i,a,V,d),E.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(V=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),V!==E.state&&ng.enqueueReplaceState(E,E.state,null),Tl(i,d,E,b),Ol(),E.state=i.memoizedState),typeof E.componentDidMount=="function"&&(i.flags|=4194308),d=!0}else if(r===null){E=i.stateNode;var ge=i.memoizedProps,Fe=ia(a,ge);E.props=Fe;var Me=E.context,$e=a.contextType;V=Wa,typeof $e=="object"&&$e!==null&&(V=Wr($e));var Ge=a.getDerivedStateFromProps;$e=typeof Ge=="function"||typeof E.getSnapshotBeforeUpdate=="function",ge=i.pendingProps!==ge,$e||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(ge||Me!==V)&&ME(i,E,d,V),ts=!1;var Ue=i.memoizedState;E.state=Ue,Tl(i,d,E,b),Ol(),Me=i.memoizedState,ge||Ue!==Me||ts?(typeof Ge=="function"&&(rg(i,a,Ge,d),Me=i.memoizedState),(Fe=ts||RE(i,a,Fe,d,Ue,Me,V))?($e||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(i.flags|=4194308)):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=Me),E.props=d,E.state=Me,E.context=V,d=Fe):(typeof E.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{E=i.stateNode,My(r,i),V=i.memoizedProps,$e=ia(a,V),E.props=$e,Ge=i.pendingProps,Ue=E.context,Me=a.contextType,Fe=Wa,typeof Me=="object"&&Me!==null&&(Fe=Wr(Me)),ge=a.getDerivedStateFromProps,(Me=typeof ge=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(V!==Ge||Ue!==Fe)&&ME(i,E,d,Fe),ts=!1,Ue=i.memoizedState,E.state=Ue,Tl(i,d,E,b),Ol();var De=i.memoizedState;V!==Ge||Ue!==De||ts||r!==null&&r.dependencies!==null&&Gf(r.dependencies)?(typeof ge=="function"&&(rg(i,a,ge,d),De=i.memoizedState),($e=ts||RE(i,a,$e,d,Ue,De,Fe)||r!==null&&r.dependencies!==null&&Gf(r.dependencies))?(Me||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,De,Fe),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,De,Fe)),typeof E.componentDidUpdate=="function"&&(i.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof E.componentDidUpdate!="function"||V===r.memoizedProps&&Ue===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||V===r.memoizedProps&&Ue===r.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=De),E.props=d,E.state=De,E.context=Fe,d=$e):(typeof E.componentDidUpdate!="function"||V===r.memoizedProps&&Ue===r.memoizedState||(i.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||V===r.memoizedProps&&Ue===r.memoizedState||(i.flags|=1024),d=!1)}return E=d,fh(r,i),d=(i.flags&128)!==0,E||d?(E=i.stateNode,a=d&&typeof a.getDerivedStateFromError!="function"?null:E.render(),i.flags|=1,r!==null&&d?(i.child=ra(i,r.child,null,b),i.child=ra(i,null,a,b)):Xr(r,i,a,b),i.memoizedState=E.state,r=i.child):r=fo(r,i,b),r}function YE(r,i,a,d){return Ws(),i.flags|=256,Xr(r,i,a,d),i.child}var ag={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ug(r){return{baseLanes:r,cachePool:Dx()}}function lg(r,i,a){return r=r!==null?r.childLanes&~a:0,i&&(r|=Kn),r}function VE(r,i,a){var d=i.pendingProps,b=!1,E=(i.flags&128)!==0,V;if((V=E)||(V=r!==null&&r.memoizedState===null?!1:(gr.current&2)!==0),V&&(b=!0,i.flags&=-129),V=(i.flags&32)!==0,i.flags&=-33,r===null){if(Mt){if(b?is(i):os(),(r=Jt)?(r=n2(r,fi),r=r!==null&&r.data!=="&"?r:null,r!==null&&(i.memoizedState={dehydrated:r,treeContext:Xo!==null?{id:zi,overflow:$i}:null,retryLane:536870912,hydrationErrors:null},a=Fx(r),a.return=i,i.child=a,Vr=i,Jt=null)):r=null,r===null)throw Jo(i);return Qg(r)?i.lanes=32:i.lanes=536870912,null}var ge=d.children;return d=d.fallback,b?(os(),b=i.mode,ge=hh({mode:"hidden",children:ge},b),d=Vs(d,b,a,null),ge.return=i,d.return=i,ge.sibling=d,i.child=ge,d=i.child,d.memoizedState=ug(a),d.childLanes=lg(r,V,a),i.memoizedState=ag,jl(null,d)):(is(i),cg(i,ge))}var Fe=r.memoizedState;if(Fe!==null&&(ge=Fe.dehydrated,ge!==null)){if(E)i.flags&256?(is(i),i.flags&=-257,i=fg(r,i,a)):i.memoizedState!==null?(os(),i.child=r.child,i.flags|=128,i=null):(os(),ge=d.fallback,b=i.mode,d=hh({mode:"visible",children:d.children},b),ge=Vs(ge,b,a,null),ge.flags|=2,d.return=i,ge.return=i,d.sibling=ge,i.child=d,ra(i,r.child,null,a),d=i.child,d.memoizedState=ug(a),d.childLanes=lg(r,V,a),i.memoizedState=ag,i=jl(null,d));else if(is(i),Qg(ge)){if(V=ge.nextSibling&&ge.nextSibling.dataset,V)var Me=V.dgst;V=Me,d=Error(o(419)),d.stack="",d.digest=V,El({value:d,source:null,stack:null}),i=fg(r,i,a)}else if(Er||eu(r,i,a,!1),V=(a&r.childLanes)!==0,Er||V){if(V=Wt,V!==null&&(d=st(V,a),d!==0&&d!==Fe.retryLane))throw Fe.retryLane=d,Ys(r,d),Fn(V,r,d),og;Hg(ge)||vh(),i=fg(r,i,a)}else Hg(ge)?(i.flags|=192,i.child=r.child,i=null):(r=Fe.treeContext,Jt=di(ge.nextSibling),Vr=i,Mt=!0,Zo=null,fi=!1,r!==null&&Bx(i,r),i=cg(i,d.children),i.flags|=4096);return i}return b?(os(),ge=d.fallback,b=i.mode,Fe=r.child,Me=Fe.sibling,d=oo(Fe,{mode:"hidden",children:d.children}),d.subtreeFlags=Fe.subtreeFlags&65011712,Me!==null?ge=oo(Me,ge):(ge=Vs(ge,b,a,null),ge.flags|=2),ge.return=i,d.return=i,d.sibling=ge,i.child=d,jl(null,d),d=i.child,ge=r.child.memoizedState,ge===null?ge=ug(a):(b=ge.cachePool,b!==null?(Fe=vr._currentValue,b=b.parent!==Fe?{parent:Fe,pool:Fe}:b):b=Dx(),ge={baseLanes:ge.baseLanes|a,cachePool:b}),d.memoizedState=ge,d.childLanes=lg(r,V,a),i.memoizedState=ag,jl(r.child,d)):(is(i),a=r.child,r=a.sibling,a=oo(a,{mode:"visible",children:d.children}),a.return=i,a.sibling=null,r!==null&&(V=i.deletions,V===null?(i.deletions=[r],i.flags|=16):V.push(r)),i.child=a,i.memoizedState=null,a)}function cg(r,i){return i=hh({mode:"visible",children:i},r.mode),i.return=r,r.child=i}function hh(r,i){return r=qn(22,r,null,i),r.lanes=0,r}function fg(r,i,a){return ra(i,r.child,null,a),r=cg(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function WE(r,i,a){r.lanes|=i;var d=r.alternate;d!==null&&(d.lanes|=i),_y(r.return,i,a)}function hg(r,i,a,d,b,E){var V=r.memoizedState;V===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:b,treeForkCount:E}:(V.isBackwards=i,V.rendering=null,V.renderingStartTime=0,V.last=d,V.tail=a,V.tailMode=b,V.treeForkCount=E)}function XE(r,i,a){var d=i.pendingProps,b=d.revealOrder,E=d.tail;d=d.children;var V=gr.current,ge=(V&2)!==0;if(ge?(V=V&1|2,i.flags|=128):V&=1,K(gr,V),Xr(r,i,d,a),d=Mt?xl:0,!ge&&r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&WE(r,a,i);else if(r.tag===19)WE(r,a,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(b){case"forwards":for(a=i.child,b=null;a!==null;)r=a.alternate,r!==null&&eh(r)===null&&(b=a),a=a.sibling;a=b,a===null?(b=i.child,i.child=null):(b=a.sibling,a.sibling=null),hg(i,!1,b,a,E,d);break;case"backwards":case"unstable_legacy-backwards":for(a=null,b=i.child,i.child=null;b!==null;){if(r=b.alternate,r!==null&&eh(r)===null){i.child=b;break}r=b.sibling,b.sibling=a,a=b,b=r}hg(i,!0,a,null,E,d);break;case"together":hg(i,!1,null,null,void 0,d);break;default:i.memoizedState=null}return i.child}function fo(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),us|=i.lanes,(a&i.childLanes)===0)if(r!==null){if(eu(r,i,a,!1),(a&i.childLanes)===0)return null}else return null;if(r!==null&&i.child!==r.child)throw Error(o(153));if(i.child!==null){for(r=i.child,a=oo(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=oo(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function dg(r,i){return(r.lanes&i)!==0?!0:(r=r.dependencies,!!(r!==null&&Gf(r)))}function iR(r,i,a){switch(i.tag){case 3:ne(i,i.stateNode.containerInfo),es(i,vr,r.memoizedState.cache),Ws();break;case 27:case 5:O(i);break;case 4:ne(i,i.stateNode.containerInfo);break;case 10:es(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Py(i),null;break;case 13:var d=i.memoizedState;if(d!==null)return d.dehydrated!==null?(is(i),i.flags|=128,null):(a&i.child.childLanes)!==0?VE(r,i,a):(is(i),r=fo(r,i,a),r!==null?r.sibling:null);is(i);break;case 19:var b=(r.flags&128)!==0;if(d=(a&i.childLanes)!==0,d||(eu(r,i,a,!1),d=(a&i.childLanes)!==0),b){if(d)return XE(r,i,a);i.flags|=128}if(b=i.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),K(gr,gr.current),d)break;return null;case 22:return i.lanes=0,qE(r,i,a,i.pendingProps);case 24:es(i,vr,r.memoizedState.cache)}return fo(r,i,a)}function ZE(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps)Er=!0;else{if(!dg(r,a)&&(i.flags&128)===0)return Er=!1,iR(r,i,a);Er=(r.flags&131072)!==0}else Er=!1,Mt&&(i.flags&1048576)!==0&&Tx(i,xl,i.index);switch(i.lanes=0,i.tag){case 16:e:{var d=i.pendingProps;if(r=ea(i.elementType),i.type=r,typeof r=="function")by(r)?(d=ia(r,d),i.tag=1,i=KE(null,i,r,d,a)):(i.tag=0,i=sg(null,i,r,d,a));else{if(r!=null){var b=r.$$typeof;if(b===R){i.tag=11,i=LE(null,i,r,d,a);break e}else if(b===k){i.tag=14,i=zE(null,i,r,d,a);break e}}throw i=ue(r)||r,Error(o(306,i,""))}}return i;case 0:return sg(r,i,i.type,i.pendingProps,a);case 1:return d=i.type,b=ia(d,i.pendingProps),KE(r,i,d,b,a);case 3:e:{if(ne(i,i.stateNode.containerInfo),r===null)throw Error(o(387));d=i.pendingProps;var E=i.memoizedState;b=E.element,My(r,i),Tl(i,d,null,a);var V=i.memoizedState;if(d=V.cache,es(i,vr,d),d!==E.cache&&Cy(i,[vr],a,!0),Ol(),d=V.element,E.isDehydrated)if(E={element:d,isDehydrated:!1,cache:V.cache},i.updateQueue.baseState=E,i.memoizedState=E,i.flags&256){i=YE(r,i,d,a);break e}else if(d!==b){b=ui(Error(o(424)),i),El(b),i=YE(r,i,d,a);break e}else{switch(r=i.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Jt=di(r.firstChild),Vr=i,Mt=!0,Zo=null,fi=!0,a=qx(i,null,d,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ws(),d===b){i=fo(r,i,a);break e}Xr(r,i,d,a)}i=i.child}return i;case 26:return fh(r,i),r===null?(a=l2(i.type,null,i.pendingProps,null))?i.memoizedState=a:Mt||(a=i.type,r=i.pendingProps,d=Fh(fe.current).createElement(a),d[Ht]=i,d[nr]=r,Zr(d,a,r),ur(d),i.stateNode=d):i.memoizedState=l2(i.type,r.memoizedProps,i.pendingProps,r.memoizedState),null;case 27:return O(i),r===null&&Mt&&(d=i.stateNode=s2(i.type,i.pendingProps,fe.current),Vr=i,fi=!0,b=Jt,ds(i.type)?(Gg=b,Jt=di(d.firstChild)):Jt=b),Xr(r,i,i.pendingProps.children,a),fh(r,i),r===null&&(i.flags|=4194304),i.child;case 5:return r===null&&Mt&&((b=d=Jt)&&(d=UR(d,i.type,i.pendingProps,fi),d!==null?(i.stateNode=d,Vr=i,Jt=di(d.firstChild),fi=!1,b=!0):b=!1),b||Jo(i)),O(i),b=i.type,E=i.pendingProps,V=r!==null?r.memoizedProps:null,d=E.children,zg(b,E)?d=null:V!==null&&zg(b,V)&&(i.flags|=32),i.memoizedState!==null&&(b=Ly(r,i,V8,null,null,a),Wl._currentValue=b),fh(r,i),Xr(r,i,d,a),i.child;case 6:return r===null&&Mt&&((r=a=Jt)&&(a=jR(a,i.pendingProps,fi),a!==null?(i.stateNode=a,Vr=i,Jt=null,r=!0):r=!1),r||Jo(i)),null;case 13:return VE(r,i,a);case 4:return ne(i,i.stateNode.containerInfo),d=i.pendingProps,r===null?i.child=ra(i,null,d,a):Xr(r,i,d,a),i.child;case 11:return LE(r,i,i.type,i.pendingProps,a);case 7:return Xr(r,i,i.pendingProps,a),i.child;case 8:return Xr(r,i,i.pendingProps.children,a),i.child;case 12:return Xr(r,i,i.pendingProps.children,a),i.child;case 10:return d=i.pendingProps,es(i,i.type,d.value),Xr(r,i,d.children,a),i.child;case 9:return b=i.type._context,d=i.pendingProps.children,Zs(i),b=Wr(b),d=d(b),i.flags|=1,Xr(r,i,d,a),i.child;case 14:return zE(r,i,i.type,i.pendingProps,a);case 15:return $E(r,i,i.type,i.pendingProps,a);case 19:return XE(r,i,a);case 31:return nR(r,i,a);case 22:return qE(r,i,a,i.pendingProps);case 24:return Zs(i),d=Wr(vr),r===null?(b=Ty(),b===null&&(b=Wt,E=Fy(),b.pooledCache=E,E.refCount++,E!==null&&(b.pooledCacheLanes|=a),b=E),i.memoizedState={parent:d,cache:b},Ry(i),es(i,vr,b)):((r.lanes&a)!==0&&(My(r,i),Tl(i,null,null,a),Ol()),b=r.memoizedState,E=i.memoizedState,b.parent!==d?(b={parent:d,cache:d},i.memoizedState=b,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=b),es(i,vr,d)):(d=E.cache,es(i,vr,d),d!==b.cache&&Cy(i,[vr],a,!0))),Xr(r,i,i.pendingProps.children,a),i.child;case 29:throw i.pendingProps}throw Error(o(156,i.tag))}function ho(r){r.flags|=4}function pg(r,i,a,d,b){if((i=(r.mode&32)!==0)&&(i=!1),i){if(r.flags|=16777216,(b&335544128)===b)if(r.stateNode.complete)r.flags|=8192;else if(IS())r.flags|=8192;else throw ta=Wf,By}else r.flags&=-16777217}function JE(r,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!p2(i))if(IS())r.flags|=8192;else throw ta=Wf,By}function dh(r,i){i!==null&&(r.flags|=4),r.flags&16384&&(i=r.tag!==22?Zt():536870912,r.lanes|=i,hu|=i)}function Nl(r,i){if(!Mt)switch(r.tailMode){case"hidden":i=r.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function er(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,d=0;if(i)for(var b=r.child;b!==null;)a|=b.lanes|b.childLanes,d|=b.subtreeFlags&65011712,d|=b.flags&65011712,b.return=r,b=b.sibling;else for(b=r.child;b!==null;)a|=b.lanes|b.childLanes,d|=b.subtreeFlags,d|=b.flags,b.return=r,b=b.sibling;return r.subtreeFlags|=d,r.childLanes=a,i}function oR(r,i,a){var d=i.pendingProps;switch(xy(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return er(i),null;case 1:return er(i),null;case 3:return a=i.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),uo(vr),Z(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(r===null||r.child===null)&&(Ja(i)?ho(i):r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Sy())),er(i),null;case 26:var b=i.type,E=i.memoizedState;return r===null?(ho(i),E!==null?(er(i),JE(i,E)):(er(i),pg(i,b,null,d,a))):E?E!==r.memoizedState?(ho(i),er(i),JE(i,E)):(er(i),i.flags&=-16777217):(r=r.memoizedProps,r!==d&&ho(i),er(i),pg(i,b,r,d,a)),null;case 27:if(q(i),a=fe.current,b=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==d&&ho(i);else{if(!d){if(i.stateNode===null)throw Error(o(166));return er(i),null}r=W.current,Ja(i)?Rx(i):(r=s2(b,d,a),i.stateNode=r,ho(i))}return er(i),null;case 5:if(q(i),b=i.type,r!==null&&i.stateNode!=null)r.memoizedProps!==d&&ho(i);else{if(!d){if(i.stateNode===null)throw Error(o(166));return er(i),null}if(E=W.current,Ja(i))Rx(i);else{var V=Fh(fe.current);switch(E){case 1:E=V.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:E=V.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":E=V.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":E=V.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":E=V.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof d.is=="string"?V.createElement("select",{is:d.is}):V.createElement("select"),d.multiple?E.multiple=!0:d.size&&(E.size=d.size);break;default:E=typeof d.is=="string"?V.createElement(b,{is:d.is}):V.createElement(b)}}E[Ht]=i,E[nr]=d;e:for(V=i.child;V!==null;){if(V.tag===5||V.tag===6)E.appendChild(V.stateNode);else if(V.tag!==4&&V.tag!==27&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===i)break e;for(;V.sibling===null;){if(V.return===null||V.return===i)break e;V=V.return}V.sibling.return=V.return,V=V.sibling}i.stateNode=E;e:switch(Zr(E,b,d),b){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&ho(i)}}return er(i),pg(i,i.type,r===null?null:r.memoizedProps,i.pendingProps,a),null;case 6:if(r&&i.stateNode!=null)r.memoizedProps!==d&&ho(i);else{if(typeof d!="string"&&i.stateNode===null)throw Error(o(166));if(r=fe.current,Ja(i)){if(r=i.stateNode,a=i.memoizedProps,d=null,b=Vr,b!==null)switch(b.tag){case 27:case 5:d=b.memoizedProps}r[Ht]=i,r=!!(r.nodeValue===a||d!==null&&d.suppressHydrationWarning===!0||VS(r.nodeValue,a)),r||Jo(i,!0)}else r=Fh(r).createTextNode(d),r[Ht]=i,i.stateNode=r}return er(i),null;case 31:if(a=i.memoizedState,r===null||r.memoizedState!==null){if(d=Ja(i),a!==null){if(r===null){if(!d)throw Error(o(318));if(r=i.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(557));r[Ht]=i}else Ws(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;er(i),r=!1}else a=Sy(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=a),r=!0;if(!r)return i.flags&256?(Qn(i),i):(Qn(i),null);if((i.flags&128)!==0)throw Error(o(558))}return er(i),null;case 13:if(d=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(b=Ja(i),d!==null&&d.dehydrated!==null){if(r===null){if(!b)throw Error(o(318));if(b=i.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(o(317));b[Ht]=i}else Ws(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;er(i),b=!1}else b=Sy(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=b),b=!0;if(!b)return i.flags&256?(Qn(i),i):(Qn(i),null)}return Qn(i),(i.flags&128)!==0?(i.lanes=a,i):(a=d!==null,r=r!==null&&r.memoizedState!==null,a&&(d=i.child,b=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(b=d.alternate.memoizedState.cachePool.pool),E=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(E=d.memoizedState.cachePool.pool),E!==b&&(d.flags|=2048)),a!==r&&a&&(i.child.flags|=8192),dh(i,i.updateQueue),er(i),null);case 4:return Z(),r===null&&Ng(i.stateNode.containerInfo),er(i),null;case 10:return uo(i.type),er(i),null;case 19:if(Q(gr),d=i.memoizedState,d===null)return er(i),null;if(b=(i.flags&128)!==0,E=d.rendering,E===null)if(b)Nl(d,!1);else{if(hr!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(E=eh(r),E!==null){for(i.flags|=128,Nl(d,!1),r=E.updateQueue,i.updateQueue=r,dh(i,r),i.subtreeFlags=0,r=a,a=i.child;a!==null;)Cx(a,r),a=a.sibling;return K(gr,gr.current&1|2),Mt&&so(i,d.treeForkCount),i.child}r=r.sibling}d.tail!==null&&de()>bh&&(i.flags|=128,b=!0,Nl(d,!1),i.lanes=4194304)}else{if(!b)if(r=eh(E),r!==null){if(i.flags|=128,b=!0,r=r.updateQueue,i.updateQueue=r,dh(i,r),Nl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!E.alternate&&!Mt)return er(i),null}else 2*de()-d.renderingStartTime>bh&&a!==536870912&&(i.flags|=128,b=!0,Nl(d,!1),i.lanes=4194304);d.isBackwards?(E.sibling=i.child,i.child=E):(r=d.last,r!==null?r.sibling=E:i.child=E,d.last=E)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=de(),r.sibling=null,a=gr.current,K(gr,b?a&1|2:a&1),Mt&&so(i,d.treeForkCount),r):(er(i),null);case 22:case 23:return Qn(i),Dy(),d=i.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(i.flags|=8192):d&&(i.flags|=8192),d?(a&536870912)!==0&&(i.flags&128)===0&&(er(i),i.subtreeFlags&6&&(i.flags|=8192)):er(i),a=i.updateQueue,a!==null&&dh(i,a.retryQueue),a=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==a&&(i.flags|=2048),r!==null&&Q(Js),null;case 24:return a=null,r!==null&&(a=r.memoizedState.cache),i.memoizedState.cache!==a&&(i.flags|=2048),uo(vr),er(i),null;case 25:return null;case 30:return null}throw Error(o(156,i.tag))}function sR(r,i){switch(xy(i),i.tag){case 1:return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return uo(vr),Z(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 26:case 27:case 5:return q(i),null;case 31:if(i.memoizedState!==null){if(Qn(i),i.alternate===null)throw Error(o(340));Ws()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 13:if(Qn(i),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(o(340));Ws()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Q(gr),null;case 4:return Z(),null;case 10:return uo(i.type),null;case 22:case 23:return Qn(i),Dy(),r!==null&&Q(Js),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 24:return uo(vr),null;case 25:return null;default:return null}}function eS(r,i){switch(xy(i),i.tag){case 3:uo(vr),Z();break;case 26:case 27:case 5:q(i);break;case 4:Z();break;case 31:i.memoizedState!==null&&Qn(i);break;case 13:Qn(i);break;case 19:Q(gr);break;case 10:uo(i.type);break;case 22:case 23:Qn(i),Dy(),r!==null&&Q(Js);break;case 24:uo(vr)}}function Dl(r,i){try{var a=i.updateQueue,d=a!==null?a.lastEffect:null;if(d!==null){var b=d.next;a=b;do{if((a.tag&r)===r){d=void 0;var E=a.create,V=a.inst;d=E(),V.destroy=d}a=a.next}while(a!==b)}}catch(ge){Lt(i,i.return,ge)}}function ss(r,i,a){try{var d=i.updateQueue,b=d!==null?d.lastEffect:null;if(b!==null){var E=b.next;d=E;do{if((d.tag&r)===r){var V=d.inst,ge=V.destroy;if(ge!==void 0){V.destroy=void 0,b=i;var Fe=a,Me=ge;try{Me()}catch($e){Lt(b,Fe,$e)}}}d=d.next}while(d!==E)}}catch($e){Lt(i,i.return,$e)}}function tS(r){var i=r.updateQueue;if(i!==null){var a=r.stateNode;try{Qx(i,a)}catch(d){Lt(r,r.return,d)}}}function rS(r,i,a){a.props=ia(r.type,r.memoizedProps),a.state=r.memoizedState;try{a.componentWillUnmount()}catch(d){Lt(r,i,d)}}function Pl(r,i){try{var a=r.ref;if(a!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof a=="function"?r.refCleanup=a(d):a.current=d}}catch(b){Lt(r,i,b)}}function qi(r,i){var a=r.ref,d=r.refCleanup;if(a!==null)if(typeof d=="function")try{d()}catch(b){Lt(r,i,b)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(b){Lt(r,i,b)}else a.current=null}function nS(r){var i=r.type,a=r.memoizedProps,d=r.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":a.autoFocus&&d.focus();break e;case"img":a.src?d.src=a.src:a.srcSet&&(d.srcset=a.srcSet)}}catch(b){Lt(r,r.return,b)}}function yg(r,i,a){try{var d=r.stateNode;FR(d,r.type,a,i),d[nr]=i}catch(b){Lt(r,r.return,b)}}function iS(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ds(r.type)||r.tag===4}function gg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||iS(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ds(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function mg(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(r,i):(i=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,i.appendChild(r),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=no));else if(d!==4&&(d===27&&ds(r.type)&&(a=r.stateNode,i=null),r=r.child,r!==null))for(mg(r,i,a),r=r.sibling;r!==null;)mg(r,i,a),r=r.sibling}function ph(r,i,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(d!==4&&(d===27&&ds(r.type)&&(a=r.stateNode),r=r.child,r!==null))for(ph(r,i,a),r=r.sibling;r!==null;)ph(r,i,a),r=r.sibling}function oS(r){var i=r.stateNode,a=r.memoizedProps;try{for(var d=r.type,b=i.attributes;b.length;)i.removeAttributeNode(b[0]);Zr(i,d,a),i[Ht]=r,i[nr]=a}catch(E){Lt(r,r.return,E)}}var po=!1,Sr=!1,bg=!1,sS=typeof WeakSet=="function"?WeakSet:Set,Lr=null;function aR(r,i){if(r=r.containerInfo,kg=jh,r=mx(r),fy(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var b=d.anchorOffset,E=d.focusNode;d=d.focusOffset;try{a.nodeType,E.nodeType}catch{a=null;break e}var V=0,ge=-1,Fe=-1,Me=0,$e=0,Ge=r,Ue=null;t:for(;;){for(var De;Ge!==a||b!==0&&Ge.nodeType!==3||(ge=V+b),Ge!==E||d!==0&&Ge.nodeType!==3||(Fe=V+d),Ge.nodeType===3&&(V+=Ge.nodeValue.length),(De=Ge.firstChild)!==null;)Ue=Ge,Ge=De;for(;;){if(Ge===r)break t;if(Ue===a&&++Me===b&&(ge=V),Ue===E&&++$e===d&&(Fe=V),(De=Ge.nextSibling)!==null)break;Ge=Ue,Ue=Ge.parentNode}Ge=De}a=ge===-1||Fe===-1?null:{start:ge,end:Fe}}else a=null}a=a||{start:0,end:0}}else a=null;for(Lg={focusedElem:r,selectionRange:a},jh=!1,Lr=i;Lr!==null;)if(i=Lr,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Lr=r;else for(;Lr!==null;){switch(i=Lr,E=i.alternate,r=i.flags,i.tag){case 0:if((r&4)!==0&&(r=i.updateQueue,r=r!==null?r.events:null,r!==null))for(a=0;a<r.length;a++)b=r[a],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&E!==null){r=void 0,a=i,b=E.memoizedProps,E=E.memoizedState,d=a.stateNode;try{var ut=ia(a.type,b);r=d.getSnapshotBeforeUpdate(ut,E),d.__reactInternalSnapshotBeforeUpdate=r}catch(mt){Lt(a,a.return,mt)}}break;case 3:if((r&1024)!==0){if(r=i.stateNode.containerInfo,a=r.nodeType,a===9)qg(r);else if(a===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":qg(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(o(163))}if(r=i.sibling,r!==null){r.return=i.return,Lr=r;break}Lr=i.return}}function aS(r,i,a){var d=a.flags;switch(a.tag){case 0:case 11:case 15:go(r,a),d&4&&Dl(5,a);break;case 1:if(go(r,a),d&4)if(r=a.stateNode,i===null)try{r.componentDidMount()}catch(V){Lt(a,a.return,V)}else{var b=ia(a.type,i.memoizedProps);i=i.memoizedState;try{r.componentDidUpdate(b,i,r.__reactInternalSnapshotBeforeUpdate)}catch(V){Lt(a,a.return,V)}}d&64&&tS(a),d&512&&Pl(a,a.return);break;case 3:if(go(r,a),d&64&&(r=a.updateQueue,r!==null)){if(i=null,a.child!==null)switch(a.child.tag){case 27:case 5:i=a.child.stateNode;break;case 1:i=a.child.stateNode}try{Qx(r,i)}catch(V){Lt(a,a.return,V)}}break;case 27:i===null&&d&4&&oS(a);case 26:case 5:go(r,a),i===null&&d&4&&nS(a),d&512&&Pl(a,a.return);break;case 12:go(r,a);break;case 31:go(r,a),d&4&&cS(r,a);break;case 13:go(r,a),d&4&&fS(r,a),d&64&&(r=a.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(a=gR.bind(null,a),NR(r,a))));break;case 22:if(d=a.memoizedState!==null||po,!d){i=i!==null&&i.memoizedState!==null||Sr,b=po;var E=Sr;po=d,(Sr=i)&&!E?mo(r,a,(a.subtreeFlags&8772)!==0):go(r,a),po=b,Sr=E}break;case 30:break;default:go(r,a)}}function uS(r){var i=r.alternate;i!==null&&(r.alternate=null,uS(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&Vo(i)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var ir=null,Sn=!1;function yo(r,i,a){for(a=a.child;a!==null;)lS(r,i,a),a=a.sibling}function lS(r,i,a){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(we,a)}catch{}switch(a.tag){case 26:Sr||qi(a,i),yo(r,i,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Sr||qi(a,i);var d=ir,b=Sn;ds(a.type)&&(ir=a.stateNode,Sn=!1),yo(r,i,a),Kl(a.stateNode),ir=d,Sn=b;break;case 5:Sr||qi(a,i);case 6:if(d=ir,b=Sn,ir=null,yo(r,i,a),ir=d,Sn=b,ir!==null)if(Sn)try{(ir.nodeType===9?ir.body:ir.nodeName==="HTML"?ir.ownerDocument.body:ir).removeChild(a.stateNode)}catch(E){Lt(a,i,E)}else try{ir.removeChild(a.stateNode)}catch(E){Lt(a,i,E)}break;case 18:ir!==null&&(Sn?(r=ir,t2(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,a.stateNode),wu(r)):t2(ir,a.stateNode));break;case 4:d=ir,b=Sn,ir=a.stateNode.containerInfo,Sn=!0,yo(r,i,a),ir=d,Sn=b;break;case 0:case 11:case 14:case 15:ss(2,a,i),Sr||ss(4,a,i),yo(r,i,a);break;case 1:Sr||(qi(a,i),d=a.stateNode,typeof d.componentWillUnmount=="function"&&rS(a,i,d)),yo(r,i,a);break;case 21:yo(r,i,a);break;case 22:Sr=(d=Sr)||a.memoizedState!==null,yo(r,i,a),Sr=d;break;default:yo(r,i,a)}}function cS(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{wu(r)}catch(a){Lt(i,i.return,a)}}}function fS(r,i){if(i.memoizedState===null&&(r=i.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{wu(r)}catch(a){Lt(i,i.return,a)}}function uR(r){switch(r.tag){case 31:case 13:case 19:var i=r.stateNode;return i===null&&(i=r.stateNode=new sS),i;case 22:return r=r.stateNode,i=r._retryCache,i===null&&(i=r._retryCache=new sS),i;default:throw Error(o(435,r.tag))}}function yh(r,i){var a=uR(r);i.forEach(function(d){if(!a.has(d)){a.add(d);var b=mR.bind(null,r,d);d.then(b,b)}})}function In(r,i){var a=i.deletions;if(a!==null)for(var d=0;d<a.length;d++){var b=a[d],E=r,V=i,ge=V;e:for(;ge!==null;){switch(ge.tag){case 27:if(ds(ge.type)){ir=ge.stateNode,Sn=!1;break e}break;case 5:ir=ge.stateNode,Sn=!1;break e;case 3:case 4:ir=ge.stateNode.containerInfo,Sn=!0;break e}ge=ge.return}if(ir===null)throw Error(o(160));lS(E,V,b),ir=null,Sn=!1,E=b.alternate,E!==null&&(E.return=null),b.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)hS(i,r),i=i.sibling}var _i=null;function hS(r,i){var a=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:In(i,r),_n(r),d&4&&(ss(3,r,r.return),Dl(3,r),ss(5,r,r.return));break;case 1:In(i,r),_n(r),d&512&&(Sr||a===null||qi(a,a.return)),d&64&&po&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(a=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=a===null?d:a.concat(d))));break;case 26:var b=_i;if(In(i,r),_n(r),d&512&&(Sr||a===null||qi(a,a.return)),d&4){var E=a!==null?a.memoizedState:null;if(d=r.memoizedState,a===null)if(d===null)if(r.stateNode===null){e:{d=r.type,a=r.memoizedProps,b=b.ownerDocument||b;t:switch(d){case"title":E=b.getElementsByTagName("title")[0],(!E||E[wr]||E[Ht]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=b.createElement(d),b.head.insertBefore(E,b.querySelector("head > title"))),Zr(E,d,a),E[Ht]=r,ur(E),d=E;break e;case"link":var V=h2("link","href",b).get(d+(a.href||""));if(V){for(var ge=0;ge<V.length;ge++)if(E=V[ge],E.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&E.getAttribute("rel")===(a.rel==null?null:a.rel)&&E.getAttribute("title")===(a.title==null?null:a.title)&&E.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){V.splice(ge,1);break t}}E=b.createElement(d),Zr(E,d,a),b.head.appendChild(E);break;case"meta":if(V=h2("meta","content",b).get(d+(a.content||""))){for(ge=0;ge<V.length;ge++)if(E=V[ge],E.getAttribute("content")===(a.content==null?null:""+a.content)&&E.getAttribute("name")===(a.name==null?null:a.name)&&E.getAttribute("property")===(a.property==null?null:a.property)&&E.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&E.getAttribute("charset")===(a.charSet==null?null:a.charSet)){V.splice(ge,1);break t}}E=b.createElement(d),Zr(E,d,a),b.head.appendChild(E);break;default:throw Error(o(468,d))}E[Ht]=r,ur(E),d=E}r.stateNode=d}else d2(b,r.type,r.stateNode);else r.stateNode=f2(b,d,r.memoizedProps);else E!==d?(E===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):E.count--,d===null?d2(b,r.type,r.stateNode):f2(b,d,r.memoizedProps)):d===null&&r.stateNode!==null&&yg(r,r.memoizedProps,a.memoizedProps)}break;case 27:In(i,r),_n(r),d&512&&(Sr||a===null||qi(a,a.return)),a!==null&&d&4&&yg(r,r.memoizedProps,a.memoizedProps);break;case 5:if(In(i,r),_n(r),d&512&&(Sr||a===null||qi(a,a.return)),r.flags&32){b=r.stateNode;try{qa(b,"")}catch(ut){Lt(r,r.return,ut)}}d&4&&r.stateNode!=null&&(b=r.memoizedProps,yg(r,b,a!==null?a.memoizedProps:b)),d&1024&&(bg=!0);break;case 6:if(In(i,r),_n(r),d&4){if(r.stateNode===null)throw Error(o(162));d=r.memoizedProps,a=r.stateNode;try{a.nodeValue=d}catch(ut){Lt(r,r.return,ut)}}break;case 3:if(Bh=null,b=_i,_i=Oh(i.containerInfo),In(i,r),_i=b,_n(r),d&4&&a!==null&&a.memoizedState.isDehydrated)try{wu(i.containerInfo)}catch(ut){Lt(r,r.return,ut)}bg&&(bg=!1,dS(r));break;case 4:d=_i,_i=Oh(r.stateNode.containerInfo),In(i,r),_n(r),_i=d;break;case 12:In(i,r),_n(r);break;case 31:In(i,r),_n(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,yh(r,d)));break;case 13:In(i,r),_n(r),r.child.flags&8192&&r.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(mh=de()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,yh(r,d)));break;case 22:b=r.memoizedState!==null;var Fe=a!==null&&a.memoizedState!==null,Me=po,$e=Sr;if(po=Me||b,Sr=$e||Fe,In(i,r),Sr=$e,po=Me,_n(r),d&8192)e:for(i=r.stateNode,i._visibility=b?i._visibility&-2:i._visibility|1,b&&(a===null||Fe||po||Sr||oa(r)),a=null,i=r;;){if(i.tag===5||i.tag===26){if(a===null){Fe=a=i;try{if(E=Fe.stateNode,b)V=E.style,typeof V.setProperty=="function"?V.setProperty("display","none","important"):V.display="none";else{ge=Fe.stateNode;var Ge=Fe.memoizedProps.style,Ue=Ge!=null&&Ge.hasOwnProperty("display")?Ge.display:null;ge.style.display=Ue==null||typeof Ue=="boolean"?"":(""+Ue).trim()}}catch(ut){Lt(Fe,Fe.return,ut)}}}else if(i.tag===6){if(a===null){Fe=i;try{Fe.stateNode.nodeValue=b?"":Fe.memoizedProps}catch(ut){Lt(Fe,Fe.return,ut)}}}else if(i.tag===18){if(a===null){Fe=i;try{var De=Fe.stateNode;b?r2(De,!0):r2(Fe.stateNode,!1)}catch(ut){Lt(Fe,Fe.return,ut)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===r)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;a===i&&(a=null),i=i.return}a===i&&(a=null),i.sibling.return=i.return,i=i.sibling}d&4&&(d=r.updateQueue,d!==null&&(a=d.retryQueue,a!==null&&(d.retryQueue=null,yh(r,a))));break;case 19:In(i,r),_n(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,yh(r,d)));break;case 30:break;case 21:break;default:In(i,r),_n(r)}}function _n(r){var i=r.flags;if(i&2){try{for(var a,d=r.return;d!==null;){if(iS(d)){a=d;break}d=d.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var b=a.stateNode,E=gg(r);ph(r,E,b);break;case 5:var V=a.stateNode;a.flags&32&&(qa(V,""),a.flags&=-33);var ge=gg(r);ph(r,ge,V);break;case 3:case 4:var Fe=a.stateNode.containerInfo,Me=gg(r);mg(r,Me,Fe);break;default:throw Error(o(161))}}catch($e){Lt(r,r.return,$e)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function dS(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var i=r;dS(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),r=r.sibling}}function go(r,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)aS(r,i.alternate,i),i=i.sibling}function oa(r){for(r=r.child;r!==null;){var i=r;switch(i.tag){case 0:case 11:case 14:case 15:ss(4,i,i.return),oa(i);break;case 1:qi(i,i.return);var a=i.stateNode;typeof a.componentWillUnmount=="function"&&rS(i,i.return,a),oa(i);break;case 27:Kl(i.stateNode);case 26:case 5:qi(i,i.return),oa(i);break;case 22:i.memoizedState===null&&oa(i);break;case 30:oa(i);break;default:oa(i)}r=r.sibling}}function mo(r,i,a){for(a=a&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var d=i.alternate,b=r,E=i,V=E.flags;switch(E.tag){case 0:case 11:case 15:mo(b,E,a),Dl(4,E);break;case 1:if(mo(b,E,a),d=E,b=d.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(Me){Lt(d,d.return,Me)}if(d=E,b=d.updateQueue,b!==null){var ge=d.stateNode;try{var Fe=b.shared.hiddenCallbacks;if(Fe!==null)for(b.shared.hiddenCallbacks=null,b=0;b<Fe.length;b++)Hx(Fe[b],ge)}catch(Me){Lt(d,d.return,Me)}}a&&V&64&&tS(E),Pl(E,E.return);break;case 27:oS(E);case 26:case 5:mo(b,E,a),a&&d===null&&V&4&&nS(E),Pl(E,E.return);break;case 12:mo(b,E,a);break;case 31:mo(b,E,a),a&&V&4&&cS(b,E);break;case 13:mo(b,E,a),a&&V&4&&fS(b,E);break;case 22:E.memoizedState===null&&mo(b,E,a),Pl(E,E.return);break;case 30:break;default:mo(b,E,a)}i=i.sibling}}function Ag(r,i){var a=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),r=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==a&&(r!=null&&r.refCount++,a!=null&&Sl(a))}function wg(r,i){r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Sl(r))}function Ci(r,i,a,d){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)pS(r,i,a,d),i=i.sibling}function pS(r,i,a,d){var b=i.flags;switch(i.tag){case 0:case 11:case 15:Ci(r,i,a,d),b&2048&&Dl(9,i);break;case 1:Ci(r,i,a,d);break;case 3:Ci(r,i,a,d),b&2048&&(r=null,i.alternate!==null&&(r=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==r&&(i.refCount++,r!=null&&Sl(r)));break;case 12:if(b&2048){Ci(r,i,a,d),r=i.stateNode;try{var E=i.memoizedProps,V=E.id,ge=E.onPostCommit;typeof ge=="function"&&ge(V,i.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(Fe){Lt(i,i.return,Fe)}}else Ci(r,i,a,d);break;case 31:Ci(r,i,a,d);break;case 13:Ci(r,i,a,d);break;case 23:break;case 22:E=i.stateNode,V=i.alternate,i.memoizedState!==null?E._visibility&2?Ci(r,i,a,d):kl(r,i):E._visibility&2?Ci(r,i,a,d):(E._visibility|=2,lu(r,i,a,d,(i.subtreeFlags&10256)!==0||!1)),b&2048&&Ag(V,i);break;case 24:Ci(r,i,a,d),b&2048&&wg(i.alternate,i);break;default:Ci(r,i,a,d)}}function lu(r,i,a,d,b){for(b=b&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var E=r,V=i,ge=a,Fe=d,Me=V.flags;switch(V.tag){case 0:case 11:case 15:lu(E,V,ge,Fe,b),Dl(8,V);break;case 23:break;case 22:var $e=V.stateNode;V.memoizedState!==null?$e._visibility&2?lu(E,V,ge,Fe,b):kl(E,V):($e._visibility|=2,lu(E,V,ge,Fe,b)),b&&Me&2048&&Ag(V.alternate,V);break;case 24:lu(E,V,ge,Fe,b),b&&Me&2048&&wg(V.alternate,V);break;default:lu(E,V,ge,Fe,b)}i=i.sibling}}function kl(r,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var a=r,d=i,b=d.flags;switch(d.tag){case 22:kl(a,d),b&2048&&Ag(d.alternate,d);break;case 24:kl(a,d),b&2048&&wg(d.alternate,d);break;default:kl(a,d)}i=i.sibling}}var Ll=8192;function cu(r,i,a){if(r.subtreeFlags&Ll)for(r=r.child;r!==null;)yS(r,i,a),r=r.sibling}function yS(r,i,a){switch(r.tag){case 26:cu(r,i,a),r.flags&Ll&&r.memoizedState!==null&&YR(a,_i,r.memoizedState,r.memoizedProps);break;case 5:cu(r,i,a);break;case 3:case 4:var d=_i;_i=Oh(r.stateNode.containerInfo),cu(r,i,a),_i=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=Ll,Ll=16777216,cu(r,i,a),Ll=d):cu(r,i,a));break;default:cu(r,i,a)}}function gS(r){var i=r.alternate;if(i!==null&&(r=i.child,r!==null)){i.child=null;do i=r.sibling,r.sibling=null,r=i;while(r!==null)}}function zl(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var d=i[a];Lr=d,bS(d,r)}gS(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)mS(r),r=r.sibling}function mS(r){switch(r.tag){case 0:case 11:case 15:zl(r),r.flags&2048&&ss(9,r,r.return);break;case 3:zl(r);break;case 12:zl(r);break;case 22:var i=r.stateNode;r.memoizedState!==null&&i._visibility&2&&(r.return===null||r.return.tag!==13)?(i._visibility&=-3,gh(r)):zl(r);break;default:zl(r)}}function gh(r){var i=r.deletions;if((r.flags&16)!==0){if(i!==null)for(var a=0;a<i.length;a++){var d=i[a];Lr=d,bS(d,r)}gS(r)}for(r=r.child;r!==null;){switch(i=r,i.tag){case 0:case 11:case 15:ss(8,i,i.return),gh(i);break;case 22:a=i.stateNode,a._visibility&2&&(a._visibility&=-3,gh(i));break;default:gh(i)}r=r.sibling}}function bS(r,i){for(;Lr!==null;){var a=Lr;switch(a.tag){case 0:case 11:case 15:ss(8,a,i);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var d=a.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Sl(a.memoizedState.cache)}if(d=a.child,d!==null)d.return=a,Lr=d;else e:for(a=r;Lr!==null;){d=Lr;var b=d.sibling,E=d.return;if(uS(d),d===a){Lr=null;break e}if(b!==null){b.return=E,Lr=b;break e}Lr=E}}}var lR={getCacheForType:function(r){var i=Wr(vr),a=i.data.get(r);return a===void 0&&(a=r(),i.data.set(r,a)),a},cacheSignal:function(){return Wr(vr).controller.signal}},cR=typeof WeakMap=="function"?WeakMap:Map,Pt=0,Wt=null,St=null,Ft=0,kt=0,Gn=null,as=!1,fu=!1,vg=!1,bo=0,hr=0,us=0,sa=0,xg=0,Kn=0,hu=0,$l=null,Cn=null,Eg=!1,mh=0,AS=0,bh=1/0,Ah=null,ls=null,jr=0,cs=null,du=null,Ao=0,Sg=0,Ig=null,wS=null,ql=0,_g=null;function Yn(){return(Pt&2)!==0&&Ft!==0?Ft&-Ft:X.T!==null?Rg():Br()}function vS(){if(Kn===0)if((Ft&536870912)===0||Mt){var r=lt;lt<<=1,(lt&3932160)===0&&(lt=262144),Kn=r}else Kn=536870912;return r=Hn.current,r!==null&&(r.flags|=32),Kn}function Fn(r,i,a){(r===Wt&&(kt===2||kt===9)||r.cancelPendingCommit!==null)&&(pu(r,0),fs(r,Ft,Kn,!1)),be(r,a),((Pt&2)===0||r!==Wt)&&(r===Wt&&((Pt&2)===0&&(sa|=a),hr===4&&fs(r,Ft,Kn,!1)),Hi(r))}function xS(r,i,a){if((Pt&6)!==0)throw Error(o(327));var d=!a&&(i&127)===0&&(i&r.expiredLanes)===0||dt(r,i),b=d?dR(r,i):Fg(r,i,!0),E=d;do{if(b===0){fu&&!d&&fs(r,i,0,!1);break}else{if(a=r.current.alternate,E&&!fR(a)){b=Fg(r,i,!1),E=!1;continue}if(b===2){if(E=i,r.errorRecoveryDisabledLanes&E)var V=0;else V=r.pendingLanes&-536870913,V=V!==0?V:V&536870912?536870912:0;if(V!==0){i=V;e:{var ge=r;b=$l;var Fe=ge.current.memoizedState.isDehydrated;if(Fe&&(pu(ge,V).flags|=256),V=Fg(ge,V,!1),V!==2){if(vg&&!Fe){ge.errorRecoveryDisabledLanes|=E,sa|=E,b=4;break e}E=Cn,Cn=b,E!==null&&(Cn===null?Cn=E:Cn.push.apply(Cn,E))}b=V}if(E=!1,b!==2)continue}}if(b===1){pu(r,0),fs(r,i,0,!0);break}e:{switch(d=r,E=b,E){case 0:case 1:throw Error(o(345));case 4:if((i&4194048)!==i)break;case 6:fs(d,i,Kn,!as);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((i&62914560)===i&&(b=mh+300-de(),10<b)){if(fs(d,i,Kn,!as),ft(d,0,!0)!==0)break e;Ao=i,d.timeoutHandle=JS(ES.bind(null,d,a,Cn,Ah,Eg,i,Kn,sa,hu,as,E,"Throttled",-0,0),b);break e}ES(d,a,Cn,Ah,Eg,i,Kn,sa,hu,as,E,null,-0,0)}}break}while(!0);Hi(r)}function ES(r,i,a,d,b,E,V,ge,Fe,Me,$e,Ge,Ue,De){if(r.timeoutHandle=-1,Ge=i.subtreeFlags,Ge&8192||(Ge&16785408)===16785408){Ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:no},yS(i,E,Ge);var ut=(E&62914560)===E?mh-de():(E&4194048)===E?AS-de():0;if(ut=VR(Ge,ut),ut!==null){Ao=E,r.cancelPendingCommit=ut(BS.bind(null,r,i,E,a,d,b,V,ge,Fe,$e,Ge,null,Ue,De)),fs(r,E,V,!Me);return}}BS(r,i,E,a,d,b,V,ge,Fe)}function fR(r){for(var i=r;;){var a=i.tag;if((a===0||a===11||a===15)&&i.flags&16384&&(a=i.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var d=0;d<a.length;d++){var b=a[d],E=b.getSnapshot;b=b.value;try{if(!$n(E(),b))return!1}catch{return!1}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function fs(r,i,a,d){i&=~xg,i&=~sa,r.suspendedLanes|=i,r.pingedLanes&=~i,d&&(r.warmLanes|=i),d=r.expirationTimes;for(var b=i;0<b;){var E=31-Ke(b),V=1<<E;d[E]=-1,b&=~V}a!==0&&Ye(r,a,i)}function wh(){return(Pt&6)===0?(Hl(0),!1):!0}function Cg(){if(St!==null){if(kt===0)var r=St.return;else r=St,ao=Xs=null,qy(r),iu=null,_l=0,r=St;for(;r!==null;)eS(r.alternate,r),r=r.return;St=null}}function pu(r,i){var a=r.timeoutHandle;a!==-1&&(r.timeoutHandle=-1,BR(a)),a=r.cancelPendingCommit,a!==null&&(r.cancelPendingCommit=null,a()),Ao=0,Cg(),Wt=r,St=a=oo(r.current,null),Ft=i,kt=0,Gn=null,as=!1,fu=dt(r,i),vg=!1,hu=Kn=xg=sa=us=hr=0,Cn=$l=null,Eg=!1,(i&8)!==0&&(i|=i&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=i;0<d;){var b=31-Ke(d),E=1<<b;i|=r[b],d&=~E}return bo=i,zf(),a}function SS(r,i){vt=null,X.H=Ul,i===nu||i===Vf?(i=Lx(),kt=3):i===By?(i=Lx(),kt=4):kt=i===og?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Gn=i,St===null&&(hr=1,lh(r,ui(i,r.current)))}function IS(){var r=Hn.current;return r===null?!0:(Ft&4194048)===Ft?hi===null:(Ft&62914560)===Ft||(Ft&536870912)!==0?r===hi:!1}function _S(){var r=X.H;return X.H=Ul,r===null?Ul:r}function CS(){var r=X.A;return X.A=lR,r}function vh(){hr=4,as||(Ft&4194048)!==Ft&&Hn.current!==null||(fu=!0),(us&134217727)===0&&(sa&134217727)===0||Wt===null||fs(Wt,Ft,Kn,!1)}function Fg(r,i,a){var d=Pt;Pt|=2;var b=_S(),E=CS();(Wt!==r||Ft!==i)&&(Ah=null,pu(r,i)),i=!1;var V=hr;e:do try{if(kt!==0&&St!==null){var ge=St,Fe=Gn;switch(kt){case 8:Cg(),V=6;break e;case 3:case 2:case 9:case 6:Hn.current===null&&(i=!0);var Me=kt;if(kt=0,Gn=null,yu(r,ge,Fe,Me),a&&fu){V=0;break e}break;default:Me=kt,kt=0,Gn=null,yu(r,ge,Fe,Me)}}hR(),V=hr;break}catch($e){SS(r,$e)}while(!0);return i&&r.shellSuspendCounter++,ao=Xs=null,Pt=d,X.H=b,X.A=E,St===null&&(Wt=null,Ft=0,zf()),V}function hR(){for(;St!==null;)FS(St)}function dR(r,i){var a=Pt;Pt|=2;var d=_S(),b=CS();Wt!==r||Ft!==i?(Ah=null,bh=de()+500,pu(r,i)):fu=dt(r,i);e:do try{if(kt!==0&&St!==null){i=St;var E=Gn;t:switch(kt){case 1:kt=0,Gn=null,yu(r,i,E,1);break;case 2:case 9:if(Px(E)){kt=0,Gn=null,OS(i);break}i=function(){kt!==2&&kt!==9||Wt!==r||(kt=7),Hi(r)},E.then(i,i);break e;case 3:kt=7;break e;case 4:kt=5;break e;case 7:Px(E)?(kt=0,Gn=null,OS(i)):(kt=0,Gn=null,yu(r,i,E,7));break;case 5:var V=null;switch(St.tag){case 26:V=St.memoizedState;case 5:case 27:var ge=St;if(V?p2(V):ge.stateNode.complete){kt=0,Gn=null;var Fe=ge.sibling;if(Fe!==null)St=Fe;else{var Me=ge.return;Me!==null?(St=Me,xh(Me)):St=null}break t}}kt=0,Gn=null,yu(r,i,E,5);break;case 6:kt=0,Gn=null,yu(r,i,E,6);break;case 8:Cg(),hr=6;break e;default:throw Error(o(462))}}pR();break}catch($e){SS(r,$e)}while(!0);return ao=Xs=null,X.H=d,X.A=b,Pt=a,St!==null?0:(Wt=null,Ft=0,zf(),hr)}function pR(){for(;St!==null&&!Ee();)FS(St)}function FS(r){var i=ZE(r.alternate,r,bo);r.memoizedProps=r.pendingProps,i===null?xh(r):St=i}function OS(r){var i=r,a=i.alternate;switch(i.tag){case 15:case 0:i=GE(a,i,i.pendingProps,i.type,void 0,Ft);break;case 11:i=GE(a,i,i.pendingProps,i.type.render,i.ref,Ft);break;case 5:qy(i);default:eS(a,i),i=St=Cx(i,bo),i=ZE(a,i,bo)}r.memoizedProps=r.pendingProps,i===null?xh(r):St=i}function yu(r,i,a,d){ao=Xs=null,qy(i),iu=null,_l=0;var b=i.return;try{if(rR(r,b,i,a,Ft)){hr=1,lh(r,ui(a,r.current)),St=null;return}}catch(E){if(b!==null)throw St=b,E;hr=1,lh(r,ui(a,r.current)),St=null;return}i.flags&32768?(Mt||d===1?r=!0:fu||(Ft&536870912)!==0?r=!1:(as=r=!0,(d===2||d===9||d===3||d===6)&&(d=Hn.current,d!==null&&d.tag===13&&(d.flags|=16384))),TS(i,r)):xh(i)}function xh(r){var i=r;do{if((i.flags&32768)!==0){TS(i,as);return}r=i.return;var a=oR(i.alternate,i,bo);if(a!==null){St=a;return}if(i=i.sibling,i!==null){St=i;return}St=i=r}while(i!==null);hr===0&&(hr=5)}function TS(r,i){do{var a=sR(r.alternate,r);if(a!==null){a.flags&=32767,St=a;return}if(a=r.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!i&&(r=r.sibling,r!==null)){St=r;return}St=r=a}while(r!==null);hr=6,St=null}function BS(r,i,a,d,b,E,V,ge,Fe){r.cancelPendingCommit=null;do Eh();while(jr!==0);if((Pt&6)!==0)throw Error(o(327));if(i!==null){if(i===r.current)throw Error(o(177));if(E=i.lanes|i.childLanes,E|=gy,Ie(r,a,E,V,ge,Fe),r===Wt&&(St=Wt=null,Ft=0),du=i,cs=r,Ao=a,Sg=E,Ig=b,wS=d,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,bR(N,function(){return NS(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=X.T,X.T=null,b=re.p,re.p=2,V=Pt,Pt|=4;try{aR(r,i,a)}finally{Pt=V,re.p=b,X.T=d}}jr=1,RS(),MS(),US()}}function RS(){if(jr===1){jr=0;var r=cs,i=du,a=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||a){a=X.T,X.T=null;var d=re.p;re.p=2;var b=Pt;Pt|=4;try{hS(i,r);var E=Lg,V=mx(r.containerInfo),ge=E.focusedElem,Fe=E.selectionRange;if(V!==ge&&ge&&ge.ownerDocument&&gx(ge.ownerDocument.documentElement,ge)){if(Fe!==null&&fy(ge)){var Me=Fe.start,$e=Fe.end;if($e===void 0&&($e=Me),"selectionStart"in ge)ge.selectionStart=Me,ge.selectionEnd=Math.min($e,ge.value.length);else{var Ge=ge.ownerDocument||document,Ue=Ge&&Ge.defaultView||window;if(Ue.getSelection){var De=Ue.getSelection(),ut=ge.textContent.length,mt=Math.min(Fe.start,ut),Kt=Fe.end===void 0?mt:Math.min(Fe.end,ut);!De.extend&&mt>Kt&&(V=Kt,Kt=mt,mt=V);var Te=yx(ge,mt),Oe=yx(ge,Kt);if(Te&&Oe&&(De.rangeCount!==1||De.anchorNode!==Te.node||De.anchorOffset!==Te.offset||De.focusNode!==Oe.node||De.focusOffset!==Oe.offset)){var Re=Ge.createRange();Re.setStart(Te.node,Te.offset),De.removeAllRanges(),mt>Kt?(De.addRange(Re),De.extend(Oe.node,Oe.offset)):(Re.setEnd(Oe.node,Oe.offset),De.addRange(Re))}}}}for(Ge=[],De=ge;De=De.parentNode;)De.nodeType===1&&Ge.push({element:De,left:De.scrollLeft,top:De.scrollTop});for(typeof ge.focus=="function"&&ge.focus(),ge=0;ge<Ge.length;ge++){var Qe=Ge[ge];Qe.element.scrollLeft=Qe.left,Qe.element.scrollTop=Qe.top}}jh=!!kg,Lg=kg=null}finally{Pt=b,re.p=d,X.T=a}}r.current=i,jr=2}}function MS(){if(jr===2){jr=0;var r=cs,i=du,a=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||a){a=X.T,X.T=null;var d=re.p;re.p=2;var b=Pt;Pt|=4;try{aS(r,i.alternate,i)}finally{Pt=b,re.p=d,X.T=a}}jr=3}}function US(){if(jr===4||jr===3){jr=0,Be();var r=cs,i=du,a=Ao,d=wS;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?jr=5:(jr=0,du=cs=null,jS(r,r.pendingLanes));var b=r.pendingLanes;if(b===0&&(ls=null),rr(a),i=i.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(we,i,void 0,(i.current.flags&128)===128)}catch{}if(d!==null){i=X.T,b=re.p,re.p=2,X.T=null;try{for(var E=r.onRecoverableError,V=0;V<d.length;V++){var ge=d[V];E(ge.value,{componentStack:ge.stack})}}finally{X.T=i,re.p=b}}(Ao&3)!==0&&Eh(),Hi(r),b=r.pendingLanes,(a&261930)!==0&&(b&42)!==0?r===_g?ql++:(ql=0,_g=r):ql=0,Hl(0)}}function jS(r,i){(r.pooledCacheLanes&=i)===0&&(i=r.pooledCache,i!=null&&(r.pooledCache=null,Sl(i)))}function Eh(){return RS(),MS(),US(),NS()}function NS(){if(jr!==5)return!1;var r=cs,i=Sg;Sg=0;var a=rr(Ao),d=X.T,b=re.p;try{re.p=32>a?32:a,X.T=null,a=Ig,Ig=null;var E=cs,V=Ao;if(jr=0,du=cs=null,Ao=0,(Pt&6)!==0)throw Error(o(331));var ge=Pt;if(Pt|=4,mS(E.current),pS(E,E.current,V,a),Pt=ge,Hl(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(we,E)}catch{}return!0}finally{re.p=b,X.T=d,jS(r,i)}}function DS(r,i,a){i=ui(a,i),i=ig(r.stateNode,i,2),r=ns(r,i,2),r!==null&&(be(r,2),Hi(r))}function Lt(r,i,a){if(r.tag===3)DS(r,r,a);else for(;i!==null;){if(i.tag===3){DS(i,r,a);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ls===null||!ls.has(d))){r=ui(a,r),a=PE(2),d=ns(i,a,2),d!==null&&(kE(a,d,i,r),be(d,2),Hi(d));break}}i=i.return}}function Og(r,i,a){var d=r.pingCache;if(d===null){d=r.pingCache=new cR;var b=new Set;d.set(i,b)}else b=d.get(i),b===void 0&&(b=new Set,d.set(i,b));b.has(a)||(vg=!0,b.add(a),r=yR.bind(null,r,i,a),i.then(r,r))}function yR(r,i,a){var d=r.pingCache;d!==null&&d.delete(i),r.pingedLanes|=r.suspendedLanes&a,r.warmLanes&=~a,Wt===r&&(Ft&a)===a&&(hr===4||hr===3&&(Ft&62914560)===Ft&&300>de()-mh?(Pt&2)===0&&pu(r,0):xg|=a,hu===Ft&&(hu=0)),Hi(r)}function PS(r,i){i===0&&(i=Zt()),r=Ys(r,i),r!==null&&(be(r,i),Hi(r))}function gR(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),PS(r,a)}function mR(r,i){var a=0;switch(r.tag){case 31:case 13:var d=r.stateNode,b=r.memoizedState;b!==null&&(a=b.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(o(314))}d!==null&&d.delete(i),PS(r,a)}function bR(r,i){return he(r,i)}var Sh=null,gu=null,Tg=!1,Ih=!1,Bg=!1,hs=0;function Hi(r){r!==gu&&r.next===null&&(gu===null?Sh=gu=r:gu=gu.next=r),Ih=!0,Tg||(Tg=!0,wR())}function Hl(r,i){if(!Bg&&Ih){Bg=!0;do for(var a=!1,d=Sh;d!==null;){if(r!==0){var b=d.pendingLanes;if(b===0)var E=0;else{var V=d.suspendedLanes,ge=d.pingedLanes;E=(1<<31-Ke(42|r)+1)-1,E&=b&~(V&~ge),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(a=!0,$S(d,E))}else E=Ft,E=ft(d,d===Wt?E:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(E&3)===0||dt(d,E)||(a=!0,$S(d,E));d=d.next}while(a);Bg=!1}}function AR(){kS()}function kS(){Ih=Tg=!1;var r=0;hs!==0&&TR()&&(r=hs);for(var i=de(),a=null,d=Sh;d!==null;){var b=d.next,E=LS(d,i);E===0?(d.next=null,a===null?Sh=b:a.next=b,b===null&&(gu=a)):(a=d,(r!==0||(E&3)!==0)&&(Ih=!0)),d=b}jr!==0&&jr!==5||Hl(r),hs!==0&&(hs=0)}function LS(r,i){for(var a=r.suspendedLanes,d=r.pingedLanes,b=r.expirationTimes,E=r.pendingLanes&-62914561;0<E;){var V=31-Ke(E),ge=1<<V,Fe=b[V];Fe===-1?((ge&a)===0||(ge&d)!==0)&&(b[V]=At(ge,i)):Fe<=i&&(r.expiredLanes|=ge),E&=~ge}if(i=Wt,a=Ft,a=ft(r,r===i?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,a===0||r===i&&(kt===2||kt===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&ce(d),r.callbackNode=null,r.callbackPriority=0;if((a&3)===0||dt(r,a)){if(i=a&-a,i===r.callbackPriority)return i;switch(d!==null&&ce(d),rr(a)){case 2:case 8:a=B;break;case 32:a=N;break;case 268435456:a=me;break;default:a=N}return d=zS.bind(null,r),a=he(a,d),r.callbackPriority=i,r.callbackNode=a,i}return d!==null&&d!==null&&ce(d),r.callbackPriority=2,r.callbackNode=null,2}function zS(r,i){if(jr!==0&&jr!==5)return r.callbackNode=null,r.callbackPriority=0,null;var a=r.callbackNode;if(Eh()&&r.callbackNode!==a)return null;var d=Ft;return d=ft(r,r===Wt?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(xS(r,d,i),LS(r,de()),r.callbackNode!=null&&r.callbackNode===a?zS.bind(null,r):null)}function $S(r,i){if(Eh())return null;xS(r,i,!0)}function wR(){RR(function(){(Pt&6)!==0?he(x,AR):kS()})}function Rg(){if(hs===0){var r=tu;r===0&&(r=bt,bt<<=1,(bt&261888)===0&&(bt=256)),hs=r}return hs}function qS(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Mf(""+r)}function HS(r,i){var a=i.ownerDocument.createElement("input");return a.name=i.name,a.value=i.value,r.id&&a.setAttribute("form",r.id),i.parentNode.insertBefore(a,i),r=new FormData(r),a.parentNode.removeChild(a),r}function vR(r,i,a,d,b){if(i==="submit"&&a&&a.stateNode===b){var E=qS((b[nr]||null).action),V=d.submitter;V&&(i=(i=V[nr]||null)?qS(i.formAction):V.getAttribute("formAction"),i!==null&&(E=i,V=null));var ge=new Df("action","action",null,d,b);r.push({event:ge,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(hs!==0){var Fe=V?HS(b,V):new FormData(b);Zy(a,{pending:!0,data:Fe,method:b.method,action:E},null,Fe)}}else typeof E=="function"&&(ge.preventDefault(),Fe=V?HS(b,V):new FormData(b),Zy(a,{pending:!0,data:Fe,method:b.method,action:E},E,Fe))},currentTarget:b}]})}}for(var Mg=0;Mg<yy.length;Mg++){var Ug=yy[Mg],xR=Ug.toLowerCase(),ER=Ug[0].toUpperCase()+Ug.slice(1);Ii(xR,"on"+ER)}Ii(vx,"onAnimationEnd"),Ii(xx,"onAnimationIteration"),Ii(Ex,"onAnimationStart"),Ii("dblclick","onDoubleClick"),Ii("focusin","onFocus"),Ii("focusout","onBlur"),Ii(k8,"onTransitionRun"),Ii(L8,"onTransitionStart"),Ii(z8,"onTransitionCancel"),Ii(Sx,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),Hs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hs("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),SR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function QS(r,i){i=(i&4)!==0;for(var a=0;a<r.length;a++){var d=r[a],b=d.event;d=d.listeners;e:{var E=void 0;if(i)for(var V=d.length-1;0<=V;V--){var ge=d[V],Fe=ge.instance,Me=ge.currentTarget;if(ge=ge.listener,Fe!==E&&b.isPropagationStopped())break e;E=ge,b.currentTarget=Me;try{E(b)}catch($e){Lf($e)}b.currentTarget=null,E=Fe}else for(V=0;V<d.length;V++){if(ge=d[V],Fe=ge.instance,Me=ge.currentTarget,ge=ge.listener,Fe!==E&&b.isPropagationStopped())break e;E=ge,b.currentTarget=Me;try{E(b)}catch($e){Lf($e)}b.currentTarget=null,E=Fe}}}}function It(r,i){var a=i[Ur];a===void 0&&(a=i[Ur]=new Set);var d=r+"__bubble";a.has(d)||(GS(i,r,2,!1),a.add(d))}function jg(r,i,a){var d=0;i&&(d|=4),GS(a,r,d,i)}var _h="_reactListening"+Math.random().toString(36).slice(2);function Ng(r){if(!r[_h]){r[_h]=!0,qs.forEach(function(a){a!=="selectionchange"&&(SR.has(a)||jg(a,!1,r),jg(a,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[_h]||(i[_h]=!0,jg("selectionchange",!1,i))}}function GS(r,i,a,d){switch(v2(i)){case 2:var b=ZR;break;case 8:b=JR;break;default:b=Xg}a=b.bind(null,i,a,r),b=void 0,!ry||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(b=!0),d?b!==void 0?r.addEventListener(i,a,{capture:!0,passive:b}):r.addEventListener(i,a,!0):b!==void 0?r.addEventListener(i,a,{passive:b}):r.addEventListener(i,a,!1)}function Dg(r,i,a,d,b){var E=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var V=d.tag;if(V===3||V===4){var ge=d.stateNode.containerInfo;if(ge===b)break;if(V===4)for(V=d.return;V!==null;){var Fe=V.tag;if((Fe===3||Fe===4)&&V.stateNode.containerInfo===b)return;V=V.return}for(;ge!==null;){if(V=xi(ge),V===null)return;if(Fe=V.tag,Fe===5||Fe===6||Fe===26||Fe===27){d=E=V;continue e}ge=ge.parentNode}}d=d.return}Wv(function(){var Me=E,$e=ey(a),Ge=[];e:{var Ue=Ix.get(r);if(Ue!==void 0){var De=Df,ut=r;switch(r){case"keypress":if(jf(a)===0)break e;case"keydown":case"keyup":De=m8;break;case"focusin":ut="focus",De=sy;break;case"focusout":ut="blur",De=sy;break;case"beforeblur":case"afterblur":De=sy;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=Jv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=o8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=w8;break;case vx:case xx:case Ex:De=u8;break;case Sx:De=x8;break;case"scroll":case"scrollend":De=n8;break;case"wheel":De=S8;break;case"copy":case"cut":case"paste":De=c8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=tx;break;case"toggle":case"beforetoggle":De=_8}var mt=(i&4)!==0,Kt=!mt&&(r==="scroll"||r==="scrollend"),Te=mt?Ue!==null?Ue+"Capture":null:Ue;mt=[];for(var Oe=Me,Re;Oe!==null;){var Qe=Oe;if(Re=Qe.stateNode,Qe=Qe.tag,Qe!==5&&Qe!==26&&Qe!==27||Re===null||Te===null||(Qe=dl(Oe,Te),Qe!=null&&mt.push(Gl(Oe,Qe,Re))),Kt)break;Oe=Oe.return}0<mt.length&&(Ue=new De(Ue,ut,null,a,$e),Ge.push({event:Ue,listeners:mt}))}}if((i&7)===0){e:{if(Ue=r==="mouseover"||r==="pointerover",De=r==="mouseout"||r==="pointerout",Ue&&a!==Jp&&(ut=a.relatedTarget||a.fromElement)&&(xi(ut)||ut[Mr]))break e;if((De||Ue)&&(Ue=$e.window===$e?$e:(Ue=$e.ownerDocument)?Ue.defaultView||Ue.parentWindow:window,De?(ut=a.relatedTarget||a.toElement,De=Me,ut=ut?xi(ut):null,ut!==null&&(Kt=u(ut),mt=ut.tag,ut!==Kt||mt!==5&&mt!==27&&mt!==6)&&(ut=null)):(De=null,ut=Me),De!==ut)){if(mt=Jv,Qe="onMouseLeave",Te="onMouseEnter",Oe="mouse",(r==="pointerout"||r==="pointerover")&&(mt=tx,Qe="onPointerLeave",Te="onPointerEnter",Oe="pointer"),Kt=De==null?Ue:Li(De),Re=ut==null?Ue:Li(ut),Ue=new mt(Qe,Oe+"leave",De,a,$e),Ue.target=Kt,Ue.relatedTarget=Re,Qe=null,xi($e)===Me&&(mt=new mt(Te,Oe+"enter",ut,a,$e),mt.target=Re,mt.relatedTarget=Kt,Qe=mt),Kt=Qe,De&&ut)t:{for(mt=IR,Te=De,Oe=ut,Re=0,Qe=Te;Qe;Qe=mt(Qe))Re++;Qe=0;for(var pt=Oe;pt;pt=mt(pt))Qe++;for(;0<Re-Qe;)Te=mt(Te),Re--;for(;0<Qe-Re;)Oe=mt(Oe),Qe--;for(;Re--;){if(Te===Oe||Oe!==null&&Te===Oe.alternate){mt=Te;break t}Te=mt(Te),Oe=mt(Oe)}mt=null}else mt=null;De!==null&&KS(Ge,Ue,De,mt,!1),ut!==null&&Kt!==null&&KS(Ge,Kt,ut,mt,!0)}}e:{if(Ue=Me?Li(Me):window,De=Ue.nodeName&&Ue.nodeName.toLowerCase(),De==="select"||De==="input"&&Ue.type==="file")var jt=lx;else if(ax(Ue))if(cx)jt=N8;else{jt=U8;var ct=M8}else De=Ue.nodeName,!De||De.toLowerCase()!=="input"||Ue.type!=="checkbox"&&Ue.type!=="radio"?Me&&Zp(Me.elementType)&&(jt=lx):jt=j8;if(jt&&(jt=jt(r,Me))){ux(Ge,jt,a,$e);break e}ct&&ct(r,Ue,Me),r==="focusout"&&Me&&Ue.type==="number"&&Me.memoizedProps.value!=null&&Xp(Ue,"number",Ue.value)}switch(ct=Me?Li(Me):window,r){case"focusin":(ax(ct)||ct.contentEditable==="true")&&(Ka=ct,hy=Me,vl=null);break;case"focusout":vl=hy=Ka=null;break;case"mousedown":dy=!0;break;case"contextmenu":case"mouseup":case"dragend":dy=!1,bx(Ge,a,$e);break;case"selectionchange":if(P8)break;case"keydown":case"keyup":bx(Ge,a,$e)}var xt;if(uy)e:{switch(r){case"compositionstart":var Ot="onCompositionStart";break e;case"compositionend":Ot="onCompositionEnd";break e;case"compositionupdate":Ot="onCompositionUpdate";break e}Ot=void 0}else Ga?ox(r,a)&&(Ot="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Ot="onCompositionStart");Ot&&(rx&&a.locale!=="ko"&&(Ga||Ot!=="onCompositionStart"?Ot==="onCompositionEnd"&&Ga&&(xt=Xv()):(Wo=$e,ny="value"in Wo?Wo.value:Wo.textContent,Ga=!0)),ct=Ch(Me,Ot),0<ct.length&&(Ot=new ex(Ot,r,null,a,$e),Ge.push({event:Ot,listeners:ct}),xt?Ot.data=xt:(xt=sx(a),xt!==null&&(Ot.data=xt)))),(xt=F8?O8(r,a):T8(r,a))&&(Ot=Ch(Me,"onBeforeInput"),0<Ot.length&&(ct=new ex("onBeforeInput","beforeinput",null,a,$e),Ge.push({event:ct,listeners:Ot}),ct.data=xt)),vR(Ge,r,Me,a,$e)}QS(Ge,i)})}function Gl(r,i,a){return{instance:r,listener:i,currentTarget:a}}function Ch(r,i){for(var a=i+"Capture",d=[];r!==null;){var b=r,E=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||E===null||(b=dl(r,a),b!=null&&d.unshift(Gl(r,b,E)),b=dl(r,i),b!=null&&d.push(Gl(r,b,E))),r.tag===3)return d;r=r.return}return[]}function IR(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function KS(r,i,a,d,b){for(var E=i._reactName,V=[];a!==null&&a!==d;){var ge=a,Fe=ge.alternate,Me=ge.stateNode;if(ge=ge.tag,Fe!==null&&Fe===d)break;ge!==5&&ge!==26&&ge!==27||Me===null||(Fe=Me,b?(Me=dl(a,E),Me!=null&&V.unshift(Gl(a,Me,Fe))):b||(Me=dl(a,E),Me!=null&&V.push(Gl(a,Me,Fe)))),a=a.return}V.length!==0&&r.push({event:i,listeners:V})}var _R=/\r\n?/g,CR=/\u0000|\uFFFD/g;function YS(r){return(typeof r=="string"?r:""+r).replace(_R,`
|
|
38
|
-
`).replace(CR,"")}function VS(r,i){return i=YS(i),YS(r)===i}function Gt(r,i,a,d,b,E){switch(a){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||qa(r,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&qa(r,""+d);break;case"className":Bf(r,"class",d);break;case"tabIndex":Bf(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Bf(r,a,d);break;case"style":Yv(r,d,E);break;case"data":if(i!=="object"){Bf(r,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||a!=="href")){r.removeAttribute(a);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(a);break}d=Mf(""+d),r.setAttribute(a,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(a==="formAction"?(i!=="input"&&Gt(r,i,"name",b.name,b,null),Gt(r,i,"formEncType",b.formEncType,b,null),Gt(r,i,"formMethod",b.formMethod,b,null),Gt(r,i,"formTarget",b.formTarget,b,null)):(Gt(r,i,"encType",b.encType,b,null),Gt(r,i,"method",b.method,b,null),Gt(r,i,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(a);break}d=Mf(""+d),r.setAttribute(a,d);break;case"onClick":d!=null&&(r.onclick=no);break;case"onScroll":d!=null&&It("scroll",r);break;case"onScrollEnd":d!=null&&It("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(o(61));if(a=d.__html,a!=null){if(b.children!=null)throw Error(o(60));r.innerHTML=a}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}a=Mf(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(a,""+d):r.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(a,""):r.removeAttribute(a);break;case"capture":case"download":d===!0?r.setAttribute(a,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(a,d):r.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(a,d):r.removeAttribute(a);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(a):r.setAttribute(a,d);break;case"popover":It("beforetoggle",r),It("toggle",r),Tf(r,"popover",d);break;case"xlinkActuate":ro(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":ro(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":ro(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":ro(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":ro(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":ro(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":ro(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":ro(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":ro(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Tf(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=t8.get(a)||a,Tf(r,a,d))}}function Pg(r,i,a,d,b,E){switch(a){case"style":Yv(r,d,E);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(o(61));if(a=d.__html,a!=null){if(b.children!=null)throw Error(o(60));r.innerHTML=a}}break;case"children":typeof d=="string"?qa(r,d):(typeof d=="number"||typeof d=="bigint")&&qa(r,""+d);break;case"onScroll":d!=null&&It("scroll",r);break;case"onScrollEnd":d!=null&&It("scrollend",r);break;case"onClick":d!=null&&(r.onclick=no);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kv.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(b=a.endsWith("Capture"),i=a.slice(2,b?a.length-7:void 0),E=r[nr]||null,E=E!=null?E[a]:null,typeof E=="function"&&r.removeEventListener(i,E,b),typeof d=="function")){typeof E!="function"&&E!==null&&(a in r?r[a]=null:r.hasAttribute(a)&&r.removeAttribute(a)),r.addEventListener(i,d,b);break e}a in r?r[a]=d:d===!0?r.setAttribute(a,""):Tf(r,a,d)}}}function Zr(r,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":It("error",r),It("load",r);var d=!1,b=!1,E;for(E in a)if(a.hasOwnProperty(E)){var V=a[E];if(V!=null)switch(E){case"src":d=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:Gt(r,i,E,V,a,null)}}b&&Gt(r,i,"srcSet",a.srcSet,a,null),d&&Gt(r,i,"src",a.src,a,null);return;case"input":It("invalid",r);var ge=E=V=b=null,Fe=null,Me=null;for(d in a)if(a.hasOwnProperty(d)){var $e=a[d];if($e!=null)switch(d){case"name":b=$e;break;case"type":V=$e;break;case"checked":Fe=$e;break;case"defaultChecked":Me=$e;break;case"value":E=$e;break;case"defaultValue":ge=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(o(137,i));break;default:Gt(r,i,d,$e,a,null)}}Hv(r,E,ge,Fe,Me,V,b,!1);return;case"select":It("invalid",r),d=V=E=null;for(b in a)if(a.hasOwnProperty(b)&&(ge=a[b],ge!=null))switch(b){case"value":E=ge;break;case"defaultValue":V=ge;break;case"multiple":d=ge;default:Gt(r,i,b,ge,a,null)}i=E,a=V,r.multiple=!!d,i!=null?$a(r,!!d,i,!1):a!=null&&$a(r,!!d,a,!0);return;case"textarea":It("invalid",r),E=b=d=null;for(V in a)if(a.hasOwnProperty(V)&&(ge=a[V],ge!=null))switch(V){case"value":d=ge;break;case"defaultValue":b=ge;break;case"children":E=ge;break;case"dangerouslySetInnerHTML":if(ge!=null)throw Error(o(91));break;default:Gt(r,i,V,ge,a,null)}Gv(r,d,b,E);return;case"option":for(Fe in a)if(a.hasOwnProperty(Fe)&&(d=a[Fe],d!=null))switch(Fe){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Gt(r,i,Fe,d,a,null)}return;case"dialog":It("beforetoggle",r),It("toggle",r),It("cancel",r),It("close",r);break;case"iframe":case"object":It("load",r);break;case"video":case"audio":for(d=0;d<Ql.length;d++)It(Ql[d],r);break;case"image":It("error",r),It("load",r);break;case"details":It("toggle",r);break;case"embed":case"source":case"link":It("error",r),It("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in a)if(a.hasOwnProperty(Me)&&(d=a[Me],d!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:Gt(r,i,Me,d,a,null)}return;default:if(Zp(i)){for($e in a)a.hasOwnProperty($e)&&(d=a[$e],d!==void 0&&Pg(r,i,$e,d,a,void 0));return}}for(ge in a)a.hasOwnProperty(ge)&&(d=a[ge],d!=null&&Gt(r,i,ge,d,a,null))}function FR(r,i,a,d){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,E=null,V=null,ge=null,Fe=null,Me=null,$e=null;for(De in a){var Ge=a[De];if(a.hasOwnProperty(De)&&Ge!=null)switch(De){case"checked":break;case"value":break;case"defaultValue":Fe=Ge;default:d.hasOwnProperty(De)||Gt(r,i,De,null,d,Ge)}}for(var Ue in d){var De=d[Ue];if(Ge=a[Ue],d.hasOwnProperty(Ue)&&(De!=null||Ge!=null))switch(Ue){case"type":E=De;break;case"name":b=De;break;case"checked":Me=De;break;case"defaultChecked":$e=De;break;case"value":V=De;break;case"defaultValue":ge=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(o(137,i));break;default:De!==Ge&&Gt(r,i,Ue,De,d,Ge)}}Wp(r,V,ge,Fe,Me,$e,E,b);return;case"select":De=V=ge=Ue=null;for(E in a)if(Fe=a[E],a.hasOwnProperty(E)&&Fe!=null)switch(E){case"value":break;case"multiple":De=Fe;default:d.hasOwnProperty(E)||Gt(r,i,E,null,d,Fe)}for(b in d)if(E=d[b],Fe=a[b],d.hasOwnProperty(b)&&(E!=null||Fe!=null))switch(b){case"value":Ue=E;break;case"defaultValue":ge=E;break;case"multiple":V=E;default:E!==Fe&&Gt(r,i,b,E,d,Fe)}i=ge,a=V,d=De,Ue!=null?$a(r,!!a,Ue,!1):!!d!=!!a&&(i!=null?$a(r,!!a,i,!0):$a(r,!!a,a?[]:"",!1));return;case"textarea":De=Ue=null;for(ge in a)if(b=a[ge],a.hasOwnProperty(ge)&&b!=null&&!d.hasOwnProperty(ge))switch(ge){case"value":break;case"children":break;default:Gt(r,i,ge,null,d,b)}for(V in d)if(b=d[V],E=a[V],d.hasOwnProperty(V)&&(b!=null||E!=null))switch(V){case"value":Ue=b;break;case"defaultValue":De=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:b!==E&&Gt(r,i,V,b,d,E)}Qv(r,Ue,De);return;case"option":for(var ut in a)if(Ue=a[ut],a.hasOwnProperty(ut)&&Ue!=null&&!d.hasOwnProperty(ut))switch(ut){case"selected":r.selected=!1;break;default:Gt(r,i,ut,null,d,Ue)}for(Fe in d)if(Ue=d[Fe],De=a[Fe],d.hasOwnProperty(Fe)&&Ue!==De&&(Ue!=null||De!=null))switch(Fe){case"selected":r.selected=Ue&&typeof Ue!="function"&&typeof Ue!="symbol";break;default:Gt(r,i,Fe,Ue,d,De)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var mt in a)Ue=a[mt],a.hasOwnProperty(mt)&&Ue!=null&&!d.hasOwnProperty(mt)&&Gt(r,i,mt,null,d,Ue);for(Me in d)if(Ue=d[Me],De=a[Me],d.hasOwnProperty(Me)&&Ue!==De&&(Ue!=null||De!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(o(137,i));break;default:Gt(r,i,Me,Ue,d,De)}return;default:if(Zp(i)){for(var Kt in a)Ue=a[Kt],a.hasOwnProperty(Kt)&&Ue!==void 0&&!d.hasOwnProperty(Kt)&&Pg(r,i,Kt,void 0,d,Ue);for($e in d)Ue=d[$e],De=a[$e],!d.hasOwnProperty($e)||Ue===De||Ue===void 0&&De===void 0||Pg(r,i,$e,Ue,d,De);return}}for(var Te in a)Ue=a[Te],a.hasOwnProperty(Te)&&Ue!=null&&!d.hasOwnProperty(Te)&&Gt(r,i,Te,null,d,Ue);for(Ge in d)Ue=d[Ge],De=a[Ge],!d.hasOwnProperty(Ge)||Ue===De||Ue==null&&De==null||Gt(r,i,Ge,Ue,d,De)}function WS(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function OR(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,a=performance.getEntriesByType("resource"),d=0;d<a.length;d++){var b=a[d],E=b.transferSize,V=b.initiatorType,ge=b.duration;if(E&&ge&&WS(V)){for(V=0,ge=b.responseEnd,d+=1;d<a.length;d++){var Fe=a[d],Me=Fe.startTime;if(Me>ge)break;var $e=Fe.transferSize,Ge=Fe.initiatorType;$e&&WS(Ge)&&(Fe=Fe.responseEnd,V+=$e*(Fe<ge?1:(ge-Me)/(Fe-Me)))}if(--d,i+=8*(E+V)/(b.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var kg=null,Lg=null;function Fh(r){return r.nodeType===9?r:r.ownerDocument}function XS(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ZS(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function zg(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var $g=null;function TR(){var r=window.event;return r&&r.type==="popstate"?r===$g?!1:($g=r,!0):($g=null,!1)}var JS=typeof setTimeout=="function"?setTimeout:void 0,BR=typeof clearTimeout=="function"?clearTimeout:void 0,e2=typeof Promise=="function"?Promise:void 0,RR=typeof queueMicrotask=="function"?queueMicrotask:typeof e2<"u"?function(r){return e2.resolve(null).then(r).catch(MR)}:JS;function MR(r){setTimeout(function(){throw r})}function ds(r){return r==="head"}function t2(r,i){var a=i,d=0;do{var b=a.nextSibling;if(r.removeChild(a),b&&b.nodeType===8)if(a=b.data,a==="/$"||a==="/&"){if(d===0){r.removeChild(b),wu(i);return}d--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")d++;else if(a==="html")Kl(r.ownerDocument.documentElement);else if(a==="head"){a=r.ownerDocument.head,Kl(a);for(var E=a.firstChild;E;){var V=E.nextSibling,ge=E.nodeName;E[wr]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&E.rel.toLowerCase()==="stylesheet"||a.removeChild(E),E=V}}else a==="body"&&Kl(r.ownerDocument.body);a=b}while(a);wu(i)}function r2(r,i){var a=r;r=0;do{var d=a.nextSibling;if(a.nodeType===1?i?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(i?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(r===0)break;r--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||r++;a=d}while(a)}function qg(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":qg(a),Vo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}r.removeChild(a)}}function UR(r,i,a,d){for(;r.nodeType===1;){var b=a;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[wr])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(E=r.getAttribute("rel"),E==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(E!==b.rel||r.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||r.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||r.getAttribute("title")!==(b.title==null?null:b.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(b.src==null?null:b.src)||r.getAttribute("type")!==(b.type==null?null:b.type)||r.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var E=b.name==null?null:""+b.name;if(b.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=di(r.nextSibling),r===null)break}return null}function jR(r,i,a){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=di(r.nextSibling),r===null))return null;return r}function n2(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=di(r.nextSibling),r===null))return null;return r}function Hg(r){return r.data==="$?"||r.data==="$~"}function Qg(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function NR(r,i){var a=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||a.readyState!=="loading")i();else{var d=function(){i(),a.removeEventListener("DOMContentLoaded",d)};a.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function di(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var Gg=null;function i2(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"||a==="/&"){if(i===0)return di(r.nextSibling);i--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||i++}r=r.nextSibling}return null}function o2(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(i===0)return r;i--}else a!=="/$"&&a!=="/&"||i++}r=r.previousSibling}return null}function s2(r,i,a){switch(i=Fh(a),r){case"html":if(r=i.documentElement,!r)throw Error(o(452));return r;case"head":if(r=i.head,!r)throw Error(o(453));return r;case"body":if(r=i.body,!r)throw Error(o(454));return r;default:throw Error(o(451))}}function Kl(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Vo(r)}var pi=new Map,a2=new Set;function Oh(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var wo=re.d;re.d={f:DR,r:PR,D:kR,C:LR,L:zR,m:$R,X:HR,S:qR,M:QR};function DR(){var r=wo.f(),i=wh();return r||i}function PR(r){var i=Ei(r);i!==null&&i.tag===5&&i.type==="form"?SE(i):wo.r(r)}var mu=typeof document>"u"?null:document;function u2(r,i,a){var d=mu;if(d&&typeof i=="string"&&i){var b=si(i);b='link[rel="'+r+'"][href="'+b+'"]',typeof a=="string"&&(b+='[crossorigin="'+a+'"]'),a2.has(b)||(a2.add(b),r={rel:r,crossOrigin:a,href:i},d.querySelector(b)===null&&(i=d.createElement("link"),Zr(i,"link",r),ur(i),d.head.appendChild(i)))}}function kR(r){wo.D(r),u2("dns-prefetch",r,null)}function LR(r,i){wo.C(r,i),u2("preconnect",r,i)}function zR(r,i,a){wo.L(r,i,a);var d=mu;if(d&&r&&i){var b='link[rel="preload"][as="'+si(i)+'"]';i==="image"&&a&&a.imageSrcSet?(b+='[imagesrcset="'+si(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(b+='[imagesizes="'+si(a.imageSizes)+'"]')):b+='[href="'+si(r)+'"]';var E=b;switch(i){case"style":E=bu(r);break;case"script":E=Au(r)}pi.has(E)||(r=y({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:r,as:i},a),pi.set(E,r),d.querySelector(b)!==null||i==="style"&&d.querySelector(Yl(E))||i==="script"&&d.querySelector(Vl(E))||(i=d.createElement("link"),Zr(i,"link",r),ur(i),d.head.appendChild(i)))}}function $R(r,i){wo.m(r,i);var a=mu;if(a&&r){var d=i&&typeof i.as=="string"?i.as:"script",b='link[rel="modulepreload"][as="'+si(d)+'"][href="'+si(r)+'"]',E=b;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Au(r)}if(!pi.has(E)&&(r=y({rel:"modulepreload",href:r},i),pi.set(E,r),a.querySelector(b)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Vl(E)))return}d=a.createElement("link"),Zr(d,"link",r),ur(d),a.head.appendChild(d)}}}function qR(r,i,a){wo.S(r,i,a);var d=mu;if(d&&r){var b=Si(d).hoistableStyles,E=bu(r);i=i||"default";var V=b.get(E);if(!V){var ge={loading:0,preload:null};if(V=d.querySelector(Yl(E)))ge.loading=5;else{r=y({rel:"stylesheet",href:r,"data-precedence":i},a),(a=pi.get(E))&&Kg(r,a);var Fe=V=d.createElement("link");ur(Fe),Zr(Fe,"link",r),Fe._p=new Promise(function(Me,$e){Fe.onload=Me,Fe.onerror=$e}),Fe.addEventListener("load",function(){ge.loading|=1}),Fe.addEventListener("error",function(){ge.loading|=2}),ge.loading|=4,Th(V,i,d)}V={type:"stylesheet",instance:V,count:1,state:ge},b.set(E,V)}}}function HR(r,i){wo.X(r,i);var a=mu;if(a&&r){var d=Si(a).hoistableScripts,b=Au(r),E=d.get(b);E||(E=a.querySelector(Vl(b)),E||(r=y({src:r,async:!0},i),(i=pi.get(b))&&Yg(r,i),E=a.createElement("script"),ur(E),Zr(E,"link",r),a.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(b,E))}}function QR(r,i){wo.M(r,i);var a=mu;if(a&&r){var d=Si(a).hoistableScripts,b=Au(r),E=d.get(b);E||(E=a.querySelector(Vl(b)),E||(r=y({src:r,async:!0,type:"module"},i),(i=pi.get(b))&&Yg(r,i),E=a.createElement("script"),ur(E),Zr(E,"link",r),a.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(b,E))}}function l2(r,i,a,d){var b=(b=fe.current)?Oh(b):null;if(!b)throw Error(o(446));switch(r){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=bu(a.href),a=Si(b).hoistableStyles,d=a.get(i),d||(d={type:"style",instance:null,count:0,state:null},a.set(i,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){r=bu(a.href);var E=Si(b).hoistableStyles,V=E.get(r);if(V||(b=b.ownerDocument||b,V={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(r,V),(E=b.querySelector(Yl(r)))&&!E._p&&(V.instance=E,V.state.loading=5),pi.has(r)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},pi.set(r,a),E||GR(b,r,a,V.state))),i&&d===null)throw Error(o(528,""));return V}if(i&&d!==null)throw Error(o(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Au(a),a=Si(b).hoistableScripts,d=a.get(i),d||(d={type:"script",instance:null,count:0,state:null},a.set(i,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,r))}}function bu(r){return'href="'+si(r)+'"'}function Yl(r){return'link[rel="stylesheet"]['+r+"]"}function c2(r){return y({},r,{"data-precedence":r.precedence,precedence:null})}function GR(r,i,a,d){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=1:(i=r.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=1}),i.addEventListener("error",function(){return d.loading|=2}),Zr(i,"link",a),ur(i),r.head.appendChild(i))}function Au(r){return'[src="'+si(r)+'"]'}function Vl(r){return"script[async]"+r}function f2(r,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var d=r.querySelector('style[data-href~="'+si(a.href)+'"]');if(d)return i.instance=d,ur(d),d;var b=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),ur(d),Zr(d,"style",b),Th(d,a.precedence,r),i.instance=d;case"stylesheet":b=bu(a.href);var E=r.querySelector(Yl(b));if(E)return i.state.loading|=4,i.instance=E,ur(E),E;d=c2(a),(b=pi.get(b))&&Kg(d,b),E=(r.ownerDocument||r).createElement("link"),ur(E);var V=E;return V._p=new Promise(function(ge,Fe){V.onload=ge,V.onerror=Fe}),Zr(E,"link",d),i.state.loading|=4,Th(E,a.precedence,r),i.instance=E;case"script":return E=Au(a.src),(b=r.querySelector(Vl(E)))?(i.instance=b,ur(b),b):(d=a,(b=pi.get(E))&&(d=y({},a),Yg(d,b)),r=r.ownerDocument||r,b=r.createElement("script"),ur(b),Zr(b,"link",d),r.head.appendChild(b),i.instance=b);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(d=i.instance,i.state.loading|=4,Th(d,a.precedence,r));return i.instance}function Th(r,i,a){for(var d=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=d.length?d[d.length-1]:null,E=b,V=0;V<d.length;V++){var ge=d[V];if(ge.dataset.precedence===i)E=ge;else if(E!==b)break}E?E.parentNode.insertBefore(r,E.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(r,i.firstChild))}function Kg(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function Yg(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var Bh=null;function h2(r,i,a){if(Bh===null){var d=new Map,b=Bh=new Map;b.set(a,d)}else b=Bh,d=b.get(a),d||(d=new Map,b.set(a,d));if(d.has(r))return d;for(d.set(r,null),a=a.getElementsByTagName(r),b=0;b<a.length;b++){var E=a[b];if(!(E[wr]||E[Ht]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var V=E.getAttribute(i)||"";V=r+V;var ge=d.get(V);ge?ge.push(E):d.set(V,[E])}}return d}function d2(r,i,a){r=r.ownerDocument||r,r.head.insertBefore(a,i==="title"?r.querySelector("head > title"):null)}function KR(r,i,a){if(a===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return r=i.disabled,typeof i.precedence=="string"&&r==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function p2(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function YR(r,i,a,d){if(a.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var b=bu(d.href),E=i.querySelector(Yl(b));if(E){i=E._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=Rh.bind(r),i.then(r,r)),a.state.loading|=4,a.instance=E,ur(E);return}E=i.ownerDocument||i,d=c2(d),(b=pi.get(b))&&Kg(d,b),E=E.createElement("link"),ur(E);var V=E;V._p=new Promise(function(ge,Fe){V.onload=ge,V.onerror=Fe}),Zr(E,"link",d),a.instance=E}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(r.count++,a=Rh.bind(r),i.addEventListener("load",a),i.addEventListener("error",a))}}var Vg=0;function VR(r,i){return r.stylesheets&&r.count===0&&Uh(r,r.stylesheets),0<r.count||0<r.imgCount?function(a){var d=setTimeout(function(){if(r.stylesheets&&Uh(r,r.stylesheets),r.unsuspend){var E=r.unsuspend;r.unsuspend=null,E()}},6e4+i);0<r.imgBytes&&Vg===0&&(Vg=62500*OR());var b=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Uh(r,r.stylesheets),r.unsuspend)){var E=r.unsuspend;r.unsuspend=null,E()}},(r.imgBytes>Vg?50:800)+i);return r.unsuspend=a,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(b)}}:null}function Rh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uh(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Mh=null;function Uh(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Mh=new Map,i.forEach(WR,r),Mh=null,Rh.call(r))}function WR(r,i){if(!(i.state.loading&4)){var a=Mh.get(r);if(a)var d=a.get(null);else{a=new Map,Mh.set(r,a);for(var b=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<b.length;E++){var V=b[E];(V.nodeName==="LINK"||V.getAttribute("media")!=="not all")&&(a.set(V.dataset.precedence,V),d=V)}d&&a.set(null,d)}b=i.instance,V=b.getAttribute("data-precedence"),E=a.get(V)||d,E===d&&a.set(null,b),a.set(V,b),this.count++,d=Rh.bind(this),b.addEventListener("load",d),b.addEventListener("error",d),E?E.parentNode.insertBefore(b,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(b,r.firstChild)),i.state.loading|=4}}var Wl={$$typeof:I,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function XR(r,i,a,d,b,E,V,ge,Fe){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ar(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ar(0),this.hiddenUpdates=Ar(null),this.identifierPrefix=d,this.onUncaughtError=b,this.onCaughtError=E,this.onRecoverableError=V,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Fe,this.incompleteTransitions=new Map}function y2(r,i,a,d,b,E,V,ge,Fe,Me,$e,Ge){return r=new XR(r,i,a,V,Fe,Me,$e,Ge,ge),i=1,E===!0&&(i|=24),E=qn(3,null,null,i),r.current=E,E.stateNode=r,i=Fy(),i.refCount++,r.pooledCache=i,i.refCount++,E.memoizedState={element:d,isDehydrated:a,cache:i},Ry(E),r}function g2(r){return r?(r=Wa,r):Wa}function m2(r,i,a,d,b,E){b=g2(b),d.context===null?d.context=b:d.pendingContext=b,d=rs(i),d.payload={element:a},E=E===void 0?null:E,E!==null&&(d.callback=E),a=ns(r,d,i),a!==null&&(Fn(a,r,i),Fl(a,r,i))}function b2(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function Wg(r,i){b2(r,i),(r=r.alternate)&&b2(r,i)}function A2(r){if(r.tag===13||r.tag===31){var i=Ys(r,67108864);i!==null&&Fn(i,r,67108864),Wg(r,67108864)}}function w2(r){if(r.tag===13||r.tag===31){var i=Yn();i=qt(i);var a=Ys(r,i);a!==null&&Fn(a,r,i),Wg(r,i)}}var jh=!0;function ZR(r,i,a,d){var b=X.T;X.T=null;var E=re.p;try{re.p=2,Xg(r,i,a,d)}finally{re.p=E,X.T=b}}function JR(r,i,a,d){var b=X.T;X.T=null;var E=re.p;try{re.p=8,Xg(r,i,a,d)}finally{re.p=E,X.T=b}}function Xg(r,i,a,d){if(jh){var b=Zg(d);if(b===null)Dg(r,i,d,Nh,a),x2(r,d);else if(t4(b,r,i,a,d))d.stopPropagation();else if(x2(r,d),i&4&&-1<e4.indexOf(r)){for(;b!==null;){var E=Ei(b);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var V=tt(E.pendingLanes);if(V!==0){var ge=E;for(ge.pendingLanes|=2,ge.entangledLanes|=2;V;){var Fe=1<<31-Ke(V);ge.entanglements[1]|=Fe,V&=~Fe}Hi(E),(Pt&6)===0&&(bh=de()+500,Hl(0))}}break;case 31:case 13:ge=Ys(E,2),ge!==null&&Fn(ge,E,2),wh(),Wg(E,2)}if(E=Zg(d),E===null&&Dg(r,i,d,Nh,a),E===b)break;b=E}b!==null&&d.stopPropagation()}else Dg(r,i,d,null,a)}}function Zg(r){return r=ey(r),Jg(r)}var Nh=null;function Jg(r){if(Nh=null,r=xi(r),r!==null){var i=u(r);if(i===null)r=null;else{var a=i.tag;if(a===13){if(r=l(i),r!==null)return r;r=null}else if(a===31){if(r=c(i),r!==null)return r;r=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Nh=r,null}function v2(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ve()){case x:return 2;case B:return 8;case N:case ie:return 32;case me:return 268435456;default:return 32}default:return 32}}var em=!1,ps=null,ys=null,gs=null,Xl=new Map,Zl=new Map,ms=[],e4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function x2(r,i){switch(r){case"focusin":case"focusout":ps=null;break;case"dragenter":case"dragleave":ys=null;break;case"mouseover":case"mouseout":gs=null;break;case"pointerover":case"pointerout":Xl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(i.pointerId)}}function Jl(r,i,a,d,b,E){return r===null||r.nativeEvent!==E?(r={blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:E,targetContainers:[b]},i!==null&&(i=Ei(i),i!==null&&A2(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),r)}function t4(r,i,a,d,b){switch(i){case"focusin":return ps=Jl(ps,r,i,a,d,b),!0;case"dragenter":return ys=Jl(ys,r,i,a,d,b),!0;case"mouseover":return gs=Jl(gs,r,i,a,d,b),!0;case"pointerover":var E=b.pointerId;return Xl.set(E,Jl(Xl.get(E)||null,r,i,a,d,b)),!0;case"gotpointercapture":return E=b.pointerId,Zl.set(E,Jl(Zl.get(E)||null,r,i,a,d,b)),!0}return!1}function E2(r){var i=xi(r.target);if(i!==null){var a=u(i);if(a!==null){if(i=a.tag,i===13){if(i=l(a),i!==null){r.blockedOn=i,zn(r.priority,function(){w2(a)});return}}else if(i===31){if(i=c(a),i!==null){r.blockedOn=i,zn(r.priority,function(){w2(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Dh(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=Zg(r.nativeEvent);if(a===null){a=r.nativeEvent;var d=new a.constructor(a.type,a);Jp=d,a.target.dispatchEvent(d),Jp=null}else return i=Ei(a),i!==null&&A2(i),r.blockedOn=a,!1;i.shift()}return!0}function S2(r,i,a){Dh(r)&&a.delete(i)}function r4(){em=!1,ps!==null&&Dh(ps)&&(ps=null),ys!==null&&Dh(ys)&&(ys=null),gs!==null&&Dh(gs)&&(gs=null),Xl.forEach(S2),Zl.forEach(S2)}function Ph(r,i){r.blockedOn===i&&(r.blockedOn=null,em||(em=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,r4)))}var kh=null;function I2(r){kh!==r&&(kh=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){kh===r&&(kh=null);for(var i=0;i<r.length;i+=3){var a=r[i],d=r[i+1],b=r[i+2];if(typeof d!="function"){if(Jg(d||a)===null)continue;break}var E=Ei(a);E!==null&&(r.splice(i,3),i-=3,Zy(E,{pending:!0,data:b,method:a.method,action:d},d,b))}}))}function wu(r){function i(Fe){return Ph(Fe,r)}ps!==null&&Ph(ps,r),ys!==null&&Ph(ys,r),gs!==null&&Ph(gs,r),Xl.forEach(i),Zl.forEach(i);for(var a=0;a<ms.length;a++){var d=ms[a];d.blockedOn===r&&(d.blockedOn=null)}for(;0<ms.length&&(a=ms[0],a.blockedOn===null);)E2(a),a.blockedOn===null&&ms.shift();if(a=(r.ownerDocument||r).$$reactFormReplay,a!=null)for(d=0;d<a.length;d+=3){var b=a[d],E=a[d+1],V=b[nr]||null;if(typeof E=="function")V||I2(a);else if(V){var ge=null;if(E&&E.hasAttribute("formAction")){if(b=E,V=E[nr]||null)ge=V.formAction;else if(Jg(b)!==null)continue}else ge=V.action;typeof ge=="function"?a[d+1]=ge:(a.splice(d,3),d-=3),I2(a)}}}function _2(){function r(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(V){return b=V})},focusReset:"manual",scroll:"manual"})}function i(){b!==null&&(b(),b=null),d||setTimeout(a,20)}function a(){if(!d&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,b=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(a,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),b!==null&&(b(),b=null)}}}function tm(r){this._internalRoot=r}Lh.prototype.render=tm.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(o(409));var a=i.current,d=Yn();m2(a,d,r,i,null,null)},Lh.prototype.unmount=tm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;m2(r.current,2,null,r,null,null),wh(),i[Mr]=null}};function Lh(r){this._internalRoot=r}Lh.prototype.unstable_scheduleHydration=function(r){if(r){var i=Br();r={blockedOn:null,target:r,priority:i};for(var a=0;a<ms.length&&i!==0&&i<ms[a].priority;a++);ms.splice(a,0,r),a===0&&E2(r)}};var C2=t.version;if(C2!=="19.2.0")throw Error(o(527,C2,"19.2.0"));re.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(o(188)):(r=Object.keys(r).join(","),Error(o(268,r)));return r=f(i),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var n4={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zh.isDisabled&&zh.supportsFiber)try{we=zh.inject(n4),Se=zh}catch{}}return rc.createRoot=function(r,i){if(!s(r))throw Error(o(299));var a=!1,d="",b=UE,E=jE,V=NE;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(E=i.onCaughtError),i.onRecoverableError!==void 0&&(V=i.onRecoverableError)),i=y2(r,1,!1,null,null,a,d,null,b,E,V,_2),r[Mr]=i.current,Ng(r),new tm(i)},rc.hydrateRoot=function(r,i,a){if(!s(r))throw Error(o(299));var d=!1,b="",E=UE,V=jE,ge=NE,Fe=null;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(b=a.identifierPrefix),a.onUncaughtError!==void 0&&(E=a.onUncaughtError),a.onCaughtError!==void 0&&(V=a.onCaughtError),a.onRecoverableError!==void 0&&(ge=a.onRecoverableError),a.formState!==void 0&&(Fe=a.formState)),i=y2(r,1,!0,i,a??null,d,b,Fe,E,V,ge,_2),i.context=g2(null),a=i.current,d=Yn(),d=qt(d),b=rs(d),b.callback=null,ns(a,b,d),a=d,i.current.lanes=a,be(i,a),Hi(i),r[Mr]=i.current,Ng(r),new Lh(i)},rc.version="19.2.0",rc}var $2;function v4(){if($2)return sm.exports;$2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sm.exports=w4(),sm.exports}var x4=v4(),XF=WF();function cc({isOpen:e,onClose:t,title:n,children:o,className:s,url:u}){Xe.useEffect(()=>{if(e){const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=h}}},[e]);const l=()=>{var h;u&&((h=globalThis==null?void 0:globalThis.open)==null||h.call(globalThis,u,"_blank","noopener,noreferrer"),t())};if(!e)return null;const c=_e.jsx("div",{className:"modal-overlay",onClick:t,children:_e.jsxs("div",{className:`modal-content ${s}`,onClick:h=>h.stopPropagation(),children:[_e.jsxs("div",{className:"modal-header",children:[_e.jsx("h2",{className:"modal-title",children:n}),_e.jsxs("div",{className:"modal-header-actions",children:[u&&_e.jsx("button",{className:"modal-open-new-window",onClick:l,"aria-label":"Open in new window",title:"Open in new window",type:"button",children:_e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[_e.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),_e.jsx("polyline",{points:"15 3 21 3 21 9"}),_e.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}),_e.jsx("button",{className:"modal-close",onClick:t,type:"button",children:"×"})]})]}),_e.jsx("div",{className:"modal-body",children:o})]})});return typeof document<"u"&&document.body?XF.createPortal(c,document.body):c}const vu=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function E4(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function xc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function wa(e,...t){if(!E4(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function S4(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");xc(e.outputLen),xc(e.blockLen)}function Uu(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ZF(e,t){wa(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function I4(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function ju(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function cm(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Qi(e,t){return e<<32-t|e>>>t}const _4=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function C4(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function F4(e){for(let t=0;t<e.length;t++)e[t]=C4(e[t]);return e}const q2=_4?e=>e:F4;function O4(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function rp(e){return typeof e=="string"&&(e=O4(e)),wa(e),e}function T4(...e){let t=0;for(let o=0;o<e.length;o++){const s=e[o];wa(s),t+=s.length}const n=new Uint8Array(t);for(let o=0,s=0;o<e.length;o++){const u=e[o];n.set(u,s),s+=u.length}return n}let ew=class{};function JF(e){const t=o=>e().update(rp(o)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function B4(e=32){if(vu&&typeof vu.getRandomValues=="function")return vu.getRandomValues(new Uint8Array(e));if(vu&&typeof vu.randomBytes=="function")return Uint8Array.from(vu.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const tw=BigInt(0),mb=BigInt(1);function of(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function rw(e){if(!of(e))throw new Error("Uint8Array expected")}function Ec(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Qh(e){const t=e.toString(16);return t.length&1?"0"+t:t}function eO(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?tw:BigInt("0x"+e)}const tO=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",R4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Sc(e){if(rw(e),tO)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=R4[e[n]];return t}const vo={_0:48,_9:57,A:65,F:70,a:97,f:102};function H2(e){if(e>=vo._0&&e<=vo._9)return e-vo._0;if(e>=vo.A&&e<=vo.F)return e-(vo.A-10);if(e>=vo.a&&e<=vo.f)return e-(vo.a-10)}function zd(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(tO)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(n);for(let s=0,u=0;s<n;s++,u+=2){const l=H2(e.charCodeAt(u)),c=H2(e.charCodeAt(u+1));if(l===void 0||c===void 0){const h=e[u]+e[u+1];throw new Error('hex string expected, got non-hex character "'+h+'" at index '+u)}o[s]=l*16+c}return o}function ga(e){return eO(Sc(e))}function rO(e){return rw(e),eO(Sc(Uint8Array.from(e).reverse()))}function sf(e,t){return zd(e.toString(16).padStart(t*2,"0"))}function nO(e,t){return sf(e,t).reverse()}function gi(e,t,n){let o;if(typeof t=="string")try{o=zd(t)}catch(u){throw new Error(e+" must be hex string or Uint8Array, cause: "+u)}else if(of(t))o=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=o.length;if(typeof n=="number"&&s!==n)throw new Error(e+" of length "+n+" expected, got "+s);return o}function $d(...e){let t=0;for(let o=0;o<e.length;o++){const s=e[o];rw(s),t+=s.length}const n=new Uint8Array(t);for(let o=0,s=0;o<e.length;o++){const u=e[o];n.set(u,s),s+=u.length}return n}const fm=e=>typeof e=="bigint"&&tw<=e;function nw(e,t,n){return fm(e)&&fm(t)&&fm(n)&&t<=e&&e<n}function Ou(e,t,n,o){if(!nw(t,n,o))throw new Error("expected valid "+e+": "+n+" <= n < "+o+", got "+t)}function M4(e){let t;for(t=0;e>tw;e>>=mb,t+=1);return t}const np=e=>(mb<<BigInt(e))-mb,hm=e=>new Uint8Array(e),Q2=e=>Uint8Array.from(e);function U4(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let o=hm(e),s=hm(e),u=0;const l=()=>{o.fill(1),s.fill(0),u=0},c=(...y)=>n(s,o,...y),h=(y=hm(0))=>{s=c(Q2([0]),y),o=c(),y.length!==0&&(s=c(Q2([1]),y),o=c())},f=()=>{if(u++>=1e3)throw new Error("drbg: tried 1000 values");let y=0;const g=[];for(;y<t;){o=c();const m=o.slice();g.push(m),y+=o.length}return $d(...g)};return(y,g)=>{l(),h(y);let m;for(;!(m=g(f()));)h();return l(),m}}const j4={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||of(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ip(e,t,n={}){const o=(s,u,l)=>{const c=j4[u];if(typeof c!="function")throw new Error("invalid validator function");const h=e[s];if(!(l&&h===void 0)&&!c(h,e))throw new Error("param "+String(s)+" is invalid. Expected "+u+", got "+h)};for(const[s,u]of Object.entries(t))o(s,u,!1);for(const[s,u]of Object.entries(n))o(s,u,!0);return e}function G2(e){const t=new WeakMap;return(n,...o)=>{const s=t.get(n);if(s!==void 0)return s;const u=e(n,...o);return t.set(n,u),u}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=BigInt(0),bn=BigInt(1),fa=BigInt(2),N4=BigInt(3),iO=BigInt(4),oO=BigInt(5),sO=BigInt(8);function On(e,t){const n=e%t;return n>=Tn?n:t+n}function yi(e,t,n){let o=e;for(;t-- >Tn;)o*=o,o%=n;return o}function bb(e,t){if(e===Tn)throw new Error("invert: expected non-zero number");if(t<=Tn)throw new Error("invert: expected positive modulus, got "+t);let n=On(e,t),o=t,s=Tn,u=bn;for(;n!==Tn;){const c=o/n,h=o%n,f=s-u*c;o=n,n=h,s=u,u=f}if(o!==bn)throw new Error("invert: does not exist");return On(s,t)}function aO(e,t){const n=(e.ORDER+bn)/iO,o=e.pow(t,n);if(!e.eql(e.sqr(o),t))throw new Error("Cannot find square root");return o}function D4(e,t){const n=(e.ORDER-oO)/sO,o=e.mul(t,fa),s=e.pow(o,n),u=e.mul(t,s),l=e.mul(e.mul(u,fa),s),c=e.mul(u,e.sub(l,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error("Cannot find square root");return c}function P4(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-bn,n=0;for(;t%fa===Tn;)t/=fa,n++;let o=fa;const s=iw(e);for(;K2(s,o)===1;)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return aO;let u=s.pow(o,t);const l=(t+bn)/fa;return function(h,f){if(h.is0(f))return f;if(K2(h,f)!==1)throw new Error("Cannot find square root");let p=n,y=h.mul(h.ONE,u),g=h.pow(f,t),m=h.pow(f,l);for(;!h.eql(g,h.ONE);){if(h.is0(g))return h.ZERO;let w=1,F=h.sqr(g);for(;!h.eql(F,h.ONE);)if(w++,F=h.sqr(F),w===p)throw new Error("Cannot find square root");const S=bn<<BigInt(p-w-1),M=h.pow(y,S);p=w,y=h.sqr(M),g=h.mul(g,y),m=h.mul(m,M)}return m}}function k4(e){return e%iO===N4?aO:e%sO===oO?D4:P4(e)}const L4=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function z4(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=L4.reduce((o,s)=>(o[s]="function",o),t);return ip(e,n)}function $4(e,t,n){if(n<Tn)throw new Error("invalid exponent, negatives unsupported");if(n===Tn)return e.ONE;if(n===bn)return t;let o=e.ONE,s=t;for(;n>Tn;)n&bn&&(o=e.mul(o,s)),s=e.sqr(s),n>>=bn;return o}function uO(e,t,n=!1){const o=new Array(t.length).fill(n?e.ZERO:void 0),s=t.reduce((l,c,h)=>e.is0(c)?l:(o[h]=l,e.mul(l,c)),e.ONE),u=e.inv(s);return t.reduceRight((l,c,h)=>e.is0(c)?l:(o[h]=e.mul(l,o[h]),e.mul(l,c)),u),o}function K2(e,t){const n=(e.ORDER-bn)/fa,o=e.pow(t,n),s=e.eql(o,e.ONE),u=e.eql(o,e.ZERO),l=e.eql(o,e.neg(e.ONE));if(!s&&!u&&!l)throw new Error("invalid Legendre symbol result");return s?1:u?0:-1}function lO(e,t){t!==void 0&&xc(t);const n=t!==void 0?t:e.toString(2).length,o=Math.ceil(n/8);return{nBitLength:n,nByteLength:o}}function iw(e,t,n=!1,o={}){if(e<=Tn)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:u}=lO(e,t);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const c=Object.freeze({ORDER:e,isLE:n,BITS:s,BYTES:u,MASK:np(s),ZERO:Tn,ONE:bn,create:h=>On(h,e),isValid:h=>{if(typeof h!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof h);return Tn<=h&&h<e},is0:h=>h===Tn,isOdd:h=>(h&bn)===bn,neg:h=>On(-h,e),eql:(h,f)=>h===f,sqr:h=>On(h*h,e),add:(h,f)=>On(h+f,e),sub:(h,f)=>On(h-f,e),mul:(h,f)=>On(h*f,e),pow:(h,f)=>$4(c,h,f),div:(h,f)=>On(h*bb(f,e),e),sqrN:h=>h*h,addN:(h,f)=>h+f,subN:(h,f)=>h-f,mulN:(h,f)=>h*f,inv:h=>bb(h,e),sqrt:o.sqrt||(h=>(l||(l=k4(e)),l(c,h))),toBytes:h=>n?nO(h,u):sf(h,u),fromBytes:h=>{if(h.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+h.length);return n?rO(h):ga(h)},invertBatch:h=>uO(c,h),cmov:(h,f,p)=>p?f:h});return Object.freeze(c)}function cO(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function fO(e){const t=cO(e);return t+Math.ceil(t/2)}function q4(e,t,n=!1){const o=e.length,s=cO(t),u=fO(t);if(o<16||o<u||o>1024)throw new Error("expected "+u+"-1024 bytes of input, got "+o);const l=n?rO(e):ga(e),c=On(l,t-bn)+bn;return n?nO(c,s):sf(c,s)}function H4(e,t,n,o){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,o);const s=BigInt(32),u=BigInt(4294967295),l=Number(n>>s&u),c=Number(n&u),h=o?4:0,f=o?0:4;e.setUint32(t+h,l,o),e.setUint32(t+f,c,o)}function Q4(e,t,n){return e&t^~e&n}function G4(e,t,n){return e&t^e&n^t&n}class K4 extends ew{constructor(t,n,o,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=o,this.isLE=s,this.buffer=new Uint8Array(t),this.view=cm(this.buffer)}update(t){Uu(this),t=rp(t),wa(t);const{view:n,buffer:o,blockLen:s}=this,u=t.length;for(let l=0;l<u;){const c=Math.min(s-this.pos,u-l);if(c===s){const h=cm(t);for(;s<=u-l;l+=s)this.process(h,l);continue}o.set(t.subarray(l,l+c),this.pos),this.pos+=c,l+=c,this.pos===s&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Uu(this),ZF(t,this),this.finished=!0;const{buffer:n,view:o,blockLen:s,isLE:u}=this;let{pos:l}=this;n[l++]=128,ju(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(o,0),l=0);for(let y=l;y<s;y++)n[y]=0;H4(o,s-8,BigInt(this.length*8),u),this.process(o,0);const c=cm(t),h=this.outputLen;if(h%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=h/4,p=this.get();if(f>p.length)throw new Error("_sha2: outputLen bigger than state");for(let y=0;y<f;y++)c.setUint32(4*y,p[y],u)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:o,length:s,finished:u,destroyed:l,pos:c}=this;return t.destroyed=l,t.finished=u,t.length=s,t.pos=c,s%n&&t.buffer.set(o),t}clone(){return this._cloneInto()}}const As=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Gh=BigInt(2**32-1),Y2=BigInt(32);function Y4(e,t=!1){return t?{h:Number(e&Gh),l:Number(e>>Y2&Gh)}:{h:Number(e>>Y2&Gh)|0,l:Number(e&Gh)|0}}function V4(e,t=!1){const n=e.length;let o=new Uint32Array(n),s=new Uint32Array(n);for(let u=0;u<n;u++){const{h:l,l:c}=Y4(e[u],t);[o[u],s[u]]=[l,c]}return[o,s]}const W4=(e,t,n)=>e<<n|t>>>32-n,X4=(e,t,n)=>t<<n|e>>>32-n,Z4=(e,t,n)=>t<<n-32|e>>>64-n,J4=(e,t,n)=>e<<n-32|t>>>64-n,eM=Uint32Array.from([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]),ws=new Uint32Array(64);class tM extends K4{constructor(t=32){super(64,t,8,!1),this.A=As[0]|0,this.B=As[1]|0,this.C=As[2]|0,this.D=As[3]|0,this.E=As[4]|0,this.F=As[5]|0,this.G=As[6]|0,this.H=As[7]|0}get(){const{A:t,B:n,C:o,D:s,E:u,F:l,G:c,H:h}=this;return[t,n,o,s,u,l,c,h]}set(t,n,o,s,u,l,c,h){this.A=t|0,this.B=n|0,this.C=o|0,this.D=s|0,this.E=u|0,this.F=l|0,this.G=c|0,this.H=h|0}process(t,n){for(let y=0;y<16;y++,n+=4)ws[y]=t.getUint32(n,!1);for(let y=16;y<64;y++){const g=ws[y-15],m=ws[y-2],w=Qi(g,7)^Qi(g,18)^g>>>3,F=Qi(m,17)^Qi(m,19)^m>>>10;ws[y]=F+ws[y-7]+w+ws[y-16]|0}let{A:o,B:s,C:u,D:l,E:c,F:h,G:f,H:p}=this;for(let y=0;y<64;y++){const g=Qi(c,6)^Qi(c,11)^Qi(c,25),m=p+g+Q4(c,h,f)+eM[y]+ws[y]|0,F=(Qi(o,2)^Qi(o,13)^Qi(o,22))+G4(o,s,u)|0;p=f,f=h,h=c,c=l+m|0,l=u,u=s,s=o,o=m+F|0}o=o+this.A|0,s=s+this.B|0,u=u+this.C|0,l=l+this.D|0,c=c+this.E|0,h=h+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(o,s,u,l,c,h,f,p)}roundClean(){ju(ws)}destroy(){this.set(0,0,0,0,0,0,0,0),ju(this.buffer)}}const hO=JF(()=>new tM);class dO extends ew{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,S4(t);const o=rp(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,u=new Uint8Array(s);u.set(o.length>s?t.create().update(o).digest():o);for(let l=0;l<u.length;l++)u[l]^=54;this.iHash.update(u),this.oHash=t.create();for(let l=0;l<u.length;l++)u[l]^=106;this.oHash.update(u),ju(u)}update(t){return Uu(this),this.iHash.update(t),this}digestInto(t){Uu(this),wa(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:o,finished:s,destroyed:u,blockLen:l,outputLen:c}=this;return t=t,t.finished=s,t.destroyed=u,t.blockLen=l,t.outputLen=c,t.oHash=n._cloneInto(t.oHash),t.iHash=o._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const pO=(e,t,n)=>new dO(e,t).update(n).digest();pO.create=(e,t)=>new dO(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const V2=BigInt(0),Ab=BigInt(1);function dm(e,t){const n=t.negate();return e?n:t}function yO(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function pm(e,t){yO(e,t);const n=Math.ceil(t/e)+1,o=2**(e-1),s=2**e,u=np(e),l=BigInt(e);return{windows:n,windowSize:o,mask:u,maxNumber:s,shiftBy:l}}function W2(e,t,n){const{windowSize:o,mask:s,maxNumber:u,shiftBy:l}=n;let c=Number(e&s),h=e>>l;c>o&&(c-=u,h+=Ab);const f=t*o,p=f+Math.abs(c)-1,y=c===0,g=c<0,m=t%2!==0;return{nextN:h,offset:p,isZero:y,isNeg:g,isNegF:m,offsetF:f}}function rM(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,o)=>{if(!(n instanceof t))throw new Error("invalid point at index "+o)})}function nM(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,o)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+o)})}const ym=new WeakMap,gO=new WeakMap;function gm(e){return gO.get(e)||1}function iM(e,t){return{constTimeNegate:dm,hasPrecomputes(n){return gm(n)!==1},unsafeLadder(n,o,s=e.ZERO){let u=n;for(;o>V2;)o&Ab&&(s=s.add(u)),u=u.double(),o>>=Ab;return s},precomputeWindow(n,o){const{windows:s,windowSize:u}=pm(o,t),l=[];let c=n,h=c;for(let f=0;f<s;f++){h=c,l.push(h);for(let p=1;p<u;p++)h=h.add(c),l.push(h);c=h.double()}return l},wNAF(n,o,s){let u=e.ZERO,l=e.BASE;const c=pm(n,t);for(let h=0;h<c.windows;h++){const{nextN:f,offset:p,isZero:y,isNeg:g,isNegF:m,offsetF:w}=W2(s,h,c);s=f,y?l=l.add(dm(m,o[w])):u=u.add(dm(g,o[p]))}return{p:u,f:l}},wNAFUnsafe(n,o,s,u=e.ZERO){const l=pm(n,t);for(let c=0;c<l.windows&&s!==V2;c++){const{nextN:h,offset:f,isZero:p,isNeg:y}=W2(s,c,l);if(s=h,!p){const g=o[f];u=u.add(y?g.negate():g)}}return u},getPrecomputes(n,o,s){let u=ym.get(o);return u||(u=this.precomputeWindow(o,n),n!==1&&ym.set(o,s(u))),u},wNAFCached(n,o,s){const u=gm(n);return this.wNAF(u,this.getPrecomputes(u,n,s),o)},wNAFCachedUnsafe(n,o,s,u){const l=gm(n);return l===1?this.unsafeLadder(n,o,u):this.wNAFUnsafe(l,this.getPrecomputes(l,n,s),o,u)},setWindowSize(n,o){yO(o,t),gO.set(n,o),ym.delete(n)}}}function oM(e,t,n,o){rM(n,e),nM(o,t);const s=n.length,u=o.length;if(s!==u)throw new Error("arrays of points and scalars must have equal length");const l=e.ZERO,c=M4(BigInt(s));let h=1;c>12?h=c-3:c>4?h=c-2:c>0&&(h=2);const f=np(h),p=new Array(Number(f)+1).fill(l),y=Math.floor((t.BITS-1)/h)*h;let g=l;for(let m=y;m>=0;m-=h){p.fill(l);for(let F=0;F<u;F++){const S=o[F],M=Number(S>>BigInt(m)&f);p[M]=p[M].add(n[F])}let w=l;for(let F=p.length-1,S=l;F>0;F--)S=S.add(p[F]),w=w.add(S);if(g=g.add(w),m!==0)for(let F=0;F<h;F++)g=g.double()}return g}function mO(e){return z4(e.Fp),ip(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...lO(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function X2(e){e.lowS!==void 0&&Ec("lowS",e.lowS),e.prehash!==void 0&&Ec("prehash",e.prehash)}function sM(e){const t=mO(e);ip(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:o,a:s}=t;if(n){if(!o.eql(s,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class aM extends Error{constructor(t=""){super(t)}}const Oo={Err:aM,_tlv:{encode:(e,t)=>{const{Err:n}=Oo;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const o=t.length/2,s=Qh(o);if(s.length/2&128)throw new n("tlv.encode: long form length too big");const u=o>127?Qh(s.length/2|128):"";return Qh(e)+u+s+t},decode(e,t){const{Err:n}=Oo;let o=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[o++]!==e)throw new n("tlv.decode: wrong tlv");const s=t[o++],u=!!(s&128);let l=0;if(!u)l=s;else{const h=s&127;if(!h)throw new n("tlv.decode(long): indefinite length not supported");if(h>4)throw new n("tlv.decode(long): byte length is too big");const f=t.subarray(o,o+h);if(f.length!==h)throw new n("tlv.decode: length bytes not complete");if(f[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const p of f)l=l<<8|p;if(o+=h,l<128)throw new n("tlv.decode(long): not minimal encoding")}const c=t.subarray(o,o+l);if(c.length!==l)throw new n("tlv.decode: wrong value length");return{v:c,l:t.subarray(o+l)}}},_int:{encode(e){const{Err:t}=Oo;if(e<Uo)throw new t("integer: negative integers are not allowed");let n=Qh(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=Oo;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return ga(e)}},toSig(e){const{Err:t,_int:n,_tlv:o}=Oo,s=gi("signature",e),{v:u,l}=o.decode(48,s);if(l.length)throw new t("invalid signature: left bytes after parsing");const{v:c,l:h}=o.decode(2,u),{v:f,l:p}=o.decode(2,h);if(p.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(f)}},hexFromSig(e){const{_tlv:t,_int:n}=Oo,o=t.encode(2,n.encode(e.r)),s=t.encode(2,n.encode(e.s)),u=o+s;return t.encode(48,u)}};function mm(e,t){return Sc(sf(e,t))}const Uo=BigInt(0),zr=BigInt(1);BigInt(2);const bm=BigInt(3),uM=BigInt(4);function lM(e){const t=sM(e),{Fp:n}=t,o=iw(t.n,t.nBitLength),s=t.toBytes||((I,R,T)=>{const z=R.toAffine();return $d(Uint8Array.from([4]),n.toBytes(z.x),n.toBytes(z.y))}),u=t.fromBytes||(I=>{const R=I.subarray(1),T=n.fromBytes(R.subarray(0,n.BYTES)),z=n.fromBytes(R.subarray(n.BYTES,2*n.BYTES));return{x:T,y:z}});function l(I){const{a:R,b:T}=t,z=n.sqr(I),k=n.mul(z,I);return n.add(n.add(k,n.mul(I,R)),T)}function c(I,R){const T=n.sqr(R),z=l(I);return n.eql(T,z)}if(!c(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const h=n.mul(n.pow(t.a,bm),uM),f=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(h,f)))throw new Error("bad curve params: a or b");function p(I){return nw(I,zr,t.n)}function y(I){const{allowedPrivateKeyLengths:R,nByteLength:T,wrapPrivateKey:z,n:k}=t;if(R&&typeof I!="bigint"){if(of(I)&&(I=Sc(I)),typeof I!="string"||!R.includes(I.length))throw new Error("invalid private key");I=I.padStart(T*2,"0")}let L;try{L=typeof I=="bigint"?I:ga(gi("private key",I,T))}catch{throw new Error("invalid private key, expected hex or "+T+" bytes, got "+typeof I)}return z&&(L=On(L,k)),Ou("private key",L,zr,k),L}function g(I){if(!(I instanceof F))throw new Error("ProjectivePoint expected")}const m=G2((I,R)=>{const{px:T,py:z,pz:k}=I;if(n.eql(k,n.ONE))return{x:T,y:z};const L=I.is0();R==null&&(R=L?n.ONE:n.inv(k));const U=n.mul(T,R),j=n.mul(z,R),H=n.mul(k,R);if(L)return{x:n.ZERO,y:n.ZERO};if(!n.eql(H,n.ONE))throw new Error("invZ was invalid");return{x:U,y:j}}),w=G2(I=>{if(I.is0()){if(t.allowInfinityPoint&&!n.is0(I.py))return;throw new Error("bad point: ZERO")}const{x:R,y:T}=I.toAffine();if(!n.isValid(R)||!n.isValid(T))throw new Error("bad point: x or y not FE");if(!c(R,T))throw new Error("bad point: equation left != right");if(!I.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class F{constructor(R,T,z){if(R==null||!n.isValid(R))throw new Error("x required");if(T==null||!n.isValid(T)||n.is0(T))throw new Error("y required");if(z==null||!n.isValid(z))throw new Error("z required");this.px=R,this.py=T,this.pz=z,Object.freeze(this)}static fromAffine(R){const{x:T,y:z}=R||{};if(!R||!n.isValid(T)||!n.isValid(z))throw new Error("invalid affine point");if(R instanceof F)throw new Error("projective point not allowed");const k=L=>n.eql(L,n.ZERO);return k(T)&&k(z)?F.ZERO:new F(T,z,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(R){const T=uO(n,R.map(z=>z.pz));return R.map((z,k)=>z.toAffine(T[k])).map(F.fromAffine)}static fromHex(R){const T=F.fromAffine(u(gi("pointHex",R)));return T.assertValidity(),T}static fromPrivateKey(R){return F.BASE.multiply(y(R))}static msm(R,T){return oM(F,o,R,T)}_setWindowSize(R){A.setWindowSize(this,R)}assertValidity(){w(this)}hasEvenY(){const{y:R}=this.toAffine();if(n.isOdd)return!n.isOdd(R);throw new Error("Field doesn't support isOdd")}equals(R){g(R);const{px:T,py:z,pz:k}=this,{px:L,py:U,pz:j}=R,H=n.eql(n.mul(T,j),n.mul(L,k)),P=n.eql(n.mul(z,j),n.mul(U,k));return H&&P}negate(){return new F(this.px,n.neg(this.py),this.pz)}double(){const{a:R,b:T}=t,z=n.mul(T,bm),{px:k,py:L,pz:U}=this;let j=n.ZERO,H=n.ZERO,P=n.ZERO,te=n.mul(k,k),ue=n.mul(L,L),oe=n.mul(U,U),X=n.mul(k,L);return X=n.add(X,X),P=n.mul(k,U),P=n.add(P,P),j=n.mul(R,P),H=n.mul(z,oe),H=n.add(j,H),j=n.sub(ue,H),H=n.add(ue,H),H=n.mul(j,H),j=n.mul(X,j),P=n.mul(z,P),oe=n.mul(R,oe),X=n.sub(te,oe),X=n.mul(R,X),X=n.add(X,P),P=n.add(te,te),te=n.add(P,te),te=n.add(te,oe),te=n.mul(te,X),H=n.add(H,te),oe=n.mul(L,U),oe=n.add(oe,oe),te=n.mul(oe,X),j=n.sub(j,te),P=n.mul(oe,ue),P=n.add(P,P),P=n.add(P,P),new F(j,H,P)}add(R){g(R);const{px:T,py:z,pz:k}=this,{px:L,py:U,pz:j}=R;let H=n.ZERO,P=n.ZERO,te=n.ZERO;const ue=t.a,oe=n.mul(t.b,bm);let X=n.mul(T,L),re=n.mul(z,U),pe=n.mul(k,j),le=n.add(T,z),J=n.add(L,U);le=n.mul(le,J),J=n.add(X,re),le=n.sub(le,J),J=n.add(T,k);let G=n.add(L,j);return J=n.mul(J,G),G=n.add(X,pe),J=n.sub(J,G),G=n.add(z,k),H=n.add(U,j),G=n.mul(G,H),H=n.add(re,pe),G=n.sub(G,H),te=n.mul(ue,J),H=n.mul(oe,pe),te=n.add(H,te),H=n.sub(re,te),te=n.add(re,te),P=n.mul(H,te),re=n.add(X,X),re=n.add(re,X),pe=n.mul(ue,pe),J=n.mul(oe,J),re=n.add(re,pe),pe=n.sub(X,pe),pe=n.mul(ue,pe),J=n.add(J,pe),X=n.mul(re,J),P=n.add(P,X),X=n.mul(G,J),H=n.mul(le,H),H=n.sub(H,X),X=n.mul(le,re),te=n.mul(G,te),te=n.add(te,X),new F(H,P,te)}subtract(R){return this.add(R.negate())}is0(){return this.equals(F.ZERO)}wNAF(R){return A.wNAFCached(this,R,F.normalizeZ)}multiplyUnsafe(R){const{endo:T,n:z}=t;Ou("scalar",R,Uo,z);const k=F.ZERO;if(R===Uo)return k;if(this.is0()||R===zr)return this;if(!T||A.hasPrecomputes(this))return A.wNAFCachedUnsafe(this,R,F.normalizeZ);let{k1neg:L,k1:U,k2neg:j,k2:H}=T.splitScalar(R),P=k,te=k,ue=this;for(;U>Uo||H>Uo;)U&zr&&(P=P.add(ue)),H&zr&&(te=te.add(ue)),ue=ue.double(),U>>=zr,H>>=zr;return L&&(P=P.negate()),j&&(te=te.negate()),te=new F(n.mul(te.px,T.beta),te.py,te.pz),P.add(te)}multiply(R){const{endo:T,n:z}=t;Ou("scalar",R,zr,z);let k,L;if(T){const{k1neg:U,k1:j,k2neg:H,k2:P}=T.splitScalar(R);let{p:te,f:ue}=this.wNAF(j),{p:oe,f:X}=this.wNAF(P);te=A.constTimeNegate(U,te),oe=A.constTimeNegate(H,oe),oe=new F(n.mul(oe.px,T.beta),oe.py,oe.pz),k=te.add(oe),L=ue.add(X)}else{const{p:U,f:j}=this.wNAF(R);k=U,L=j}return F.normalizeZ([k,L])[0]}multiplyAndAddUnsafe(R,T,z){const k=F.BASE,L=(j,H)=>H===Uo||H===zr||!j.equals(k)?j.multiplyUnsafe(H):j.multiply(H),U=L(this,T).add(L(R,z));return U.is0()?void 0:U}toAffine(R){return m(this,R)}isTorsionFree(){const{h:R,isTorsionFree:T}=t;if(R===zr)return!0;if(T)return T(F,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:R,clearCofactor:T}=t;return R===zr?this:T?T(F,this):this.multiplyUnsafe(t.h)}toRawBytes(R=!0){return Ec("isCompressed",R),this.assertValidity(),s(F,this,R)}toHex(R=!0){return Ec("isCompressed",R),Sc(this.toRawBytes(R))}}F.BASE=new F(t.Gx,t.Gy,n.ONE),F.ZERO=new F(n.ZERO,n.ONE,n.ZERO);const{endo:S,nBitLength:M}=t,A=iM(F,S?Math.ceil(M/2):M);return{CURVE:t,ProjectivePoint:F,normPrivateKeyToScalar:y,weierstrassEquation:l,isWithinCurveOrder:p}}function cM(e){const t=mO(e);return ip(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function fM(e){const t=cM(e),{Fp:n,n:o,nByteLength:s,nBitLength:u}=t,l=n.BYTES+1,c=2*n.BYTES+1;function h(oe){return On(oe,o)}function f(oe){return bb(oe,o)}const{ProjectivePoint:p,normPrivateKeyToScalar:y,weierstrassEquation:g,isWithinCurveOrder:m}=lM({...t,toBytes(oe,X,re){const pe=X.toAffine(),le=n.toBytes(pe.x),J=$d;return Ec("isCompressed",re),re?J(Uint8Array.from([X.hasEvenY()?2:3]),le):J(Uint8Array.from([4]),le,n.toBytes(pe.y))},fromBytes(oe){const X=oe.length,re=oe[0],pe=oe.subarray(1);if(X===l&&(re===2||re===3)){const le=ga(pe);if(!nw(le,zr,n.ORDER))throw new Error("Point is not on curve");const J=g(le);let G;try{G=n.sqrt(J)}catch(W){const $=W instanceof Error?": "+W.message:"";throw new Error("Point is not on curve"+$)}const Q=(G&zr)===zr;return(re&1)===1!==Q&&(G=n.neg(G)),{x:le,y:G}}else if(X===c&&re===4){const le=n.fromBytes(pe.subarray(0,n.BYTES)),J=n.fromBytes(pe.subarray(n.BYTES,2*n.BYTES));return{x:le,y:J}}else{const le=l,J=c;throw new Error("invalid Point, expected length of "+le+", or uncompressed "+J+", got "+X)}}});function w(oe){const X=o>>zr;return oe>X}function F(oe){return w(oe)?h(-oe):oe}const S=(oe,X,re)=>ga(oe.slice(X,re));class M{constructor(X,re,pe){Ou("r",X,zr,o),Ou("s",re,zr,o),this.r=X,this.s=re,pe!=null&&(this.recovery=pe),Object.freeze(this)}static fromCompact(X){const re=s;return X=gi("compactSignature",X,re*2),new M(S(X,0,re),S(X,re,2*re))}static fromDER(X){const{r:re,s:pe}=Oo.toSig(gi("DER",X));return new M(re,pe)}assertValidity(){}addRecoveryBit(X){return new M(this.r,this.s,X)}recoverPublicKey(X){const{r:re,s:pe,recovery:le}=this,J=k(gi("msgHash",X));if(le==null||![0,1,2,3].includes(le))throw new Error("recovery id invalid");const G=le===2||le===3?re+t.n:re;if(G>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const Q=(le&1)===0?"02":"03",K=p.fromHex(Q+mm(G,n.BYTES)),W=f(G),$=h(-J*W),fe=h(pe*W),ae=p.BASE.multiplyAndAddUnsafe(K,$,fe);if(!ae)throw new Error("point at infinify");return ae.assertValidity(),ae}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new M(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return zd(this.toDERHex())}toDERHex(){return Oo.hexFromSig(this)}toCompactRawBytes(){return zd(this.toCompactHex())}toCompactHex(){const X=s;return mm(this.r,X)+mm(this.s,X)}}const A={isValidPrivateKey(oe){try{return y(oe),!0}catch{return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const oe=fO(t.n);return q4(t.randomBytes(oe),t.n)},precompute(oe=8,X=p.BASE){return X._setWindowSize(oe),X.multiply(BigInt(3)),X}};function I(oe,X=!0){return p.fromPrivateKey(oe).toRawBytes(X)}function R(oe){if(typeof oe=="bigint")return!1;if(oe instanceof p)return!0;const re=gi("key",oe).length,pe=n.BYTES,le=pe+1,J=2*pe+1;if(!(t.allowedPrivateKeyLengths||s===le))return re===le||re===J}function T(oe,X,re=!0){if(R(oe)===!0)throw new Error("first arg must be private key");if(R(X)===!1)throw new Error("second arg must be public key");return p.fromHex(X).multiply(y(oe)).toRawBytes(re)}const z=t.bits2int||function(oe){if(oe.length>8192)throw new Error("input is too large");const X=ga(oe),re=oe.length*8-u;return re>0?X>>BigInt(re):X},k=t.bits2int_modN||function(oe){return h(z(oe))},L=np(u);function U(oe){return Ou("num < 2^"+u,oe,Uo,L),sf(oe,s)}function j(oe,X,re=H){if(["recovered","canonical"].some(Z=>Z in re))throw new Error("sign() legacy options not supported");const{hash:pe,randomBytes:le}=t;let{lowS:J,prehash:G,extraEntropy:Q}=re;J==null&&(J=!0),oe=gi("msgHash",oe),X2(re),G&&(oe=gi("prehashed msgHash",pe(oe)));const K=k(oe),W=y(X),$=[U(W),U(K)];if(Q!=null&&Q!==!1){const Z=Q===!0?le(n.BYTES):Q;$.push(gi("extraEntropy",Z))}const fe=$d(...$),ae=K;function ne(Z){const O=z(Z);if(!m(O))return;const q=f(O),Y=p.BASE.multiply(O).toAffine(),se=h(Y.x);if(se===Uo)return;const ye=h(q*h(ae+se*W));if(ye===Uo)return;let ee=(Y.x===se?0:2)|Number(Y.y&zr),_=ye;return J&&w(ye)&&(_=F(ye),ee^=1),new M(se,_,ee)}return{seed:fe,k2sig:ne}}const H={lowS:t.lowS,prehash:!1},P={lowS:t.lowS,prehash:!1};function te(oe,X,re=H){const{seed:pe,k2sig:le}=j(oe,X,re),J=t;return U4(J.hash.outputLen,J.nByteLength,J.hmac)(pe,le)}p.BASE._setWindowSize(8);function ue(oe,X,re,pe=P){var ee;const le=oe;X=gi("msgHash",X),re=gi("publicKey",re);const{lowS:J,prehash:G,format:Q}=pe;if(X2(pe),"strict"in pe)throw new Error("options.strict was renamed to lowS");if(Q!==void 0&&Q!=="compact"&&Q!=="der")throw new Error("format must be compact or der");const K=typeof le=="string"||of(le),W=!K&&!Q&&typeof le=="object"&&le!==null&&typeof le.r=="bigint"&&typeof le.s=="bigint";if(!K&&!W)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let $,fe;try{if(W&&($=new M(le.r,le.s)),K){try{Q!=="compact"&&($=M.fromDER(le))}catch(_){if(!(_ instanceof Oo.Err))throw _}!$&&Q!=="der"&&($=M.fromCompact(le))}fe=p.fromHex(re)}catch{return!1}if(!$||J&&$.hasHighS())return!1;G&&(X=t.hash(X));const{r:ae,s:ne}=$,Z=k(X),O=f(ne),q=h(Z*O),Y=h(ae*O),se=(ee=p.BASE.multiplyAndAddUnsafe(fe,q,Y))==null?void 0:ee.toAffine();return se?h(se.x)===ae:!1}return{CURVE:t,getPublicKey:I,getSharedSecret:T,sign:te,verify:ue,ProjectivePoint:p,Signature:M,utils:A}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hM(e){return{hash:e,hmac:(t,...n)=>pO(e,t,T4(...n)),randomBytes:B4}}function dM(e,t){const n=o=>fM({...e,...hM(o)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const bO=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Z2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),pM=BigInt(0),yM=BigInt(1),wb=BigInt(2),J2=(e,t)=>(e+t/wb)/t;function gM(e){const t=bO,n=BigInt(3),o=BigInt(6),s=BigInt(11),u=BigInt(22),l=BigInt(23),c=BigInt(44),h=BigInt(88),f=e*e*e%t,p=f*f*e%t,y=yi(p,n,t)*p%t,g=yi(y,n,t)*p%t,m=yi(g,wb,t)*f%t,w=yi(m,s,t)*m%t,F=yi(w,u,t)*w%t,S=yi(F,c,t)*F%t,M=yi(S,h,t)*S%t,A=yi(M,c,t)*F%t,I=yi(A,n,t)*p%t,R=yi(I,l,t)*w%t,T=yi(R,o,t)*f%t,z=yi(T,wb,t);if(!vb.eql(vb.sqr(z),e))throw new Error("Cannot find square root");return z}const vb=iw(bO,void 0,void 0,{sqrt:gM}),af=dM({a:pM,b:BigInt(7),Fp:vb,n:Z2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Z2,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-yM*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=n,l=BigInt("0x100000000000000000000000000000000"),c=J2(u*e,t),h=J2(-o*e,t);let f=On(e-c*n-h*s,t),p=On(-c*o-h*u,t);const y=f>l,g=p>l;if(y&&(f=t-f),g&&(p=t-p),f>l||p>l)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:y,k1:f,k2neg:g,k2:p}}}},hO),mM=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:af},Symbol.toStringTag,{value:"Module"})),AO="2.39.0";let nc={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${AO}`};class Ze extends Error{constructor(t,n={}){var c;const o=(()=>{var h;return n.cause instanceof Ze?n.cause.details:(h=n.cause)!=null&&h.message?n.cause.message:n.details})(),s=n.cause instanceof Ze&&n.cause.docsPath||n.docsPath,u=(c=nc.getDocsUrl)==null?void 0:c.call(nc,{...n,docsPath:s}),l=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...o?[`Details: ${o}`]:[],...nc.version?[`Version: ${nc.version}`]:[]].join(`
|
|
38
|
+
`).replace(CR,"")}function VS(r,i){return i=YS(i),YS(r)===i}function Gt(r,i,a,d,b,E){switch(a){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||qa(r,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&qa(r,""+d);break;case"className":Bf(r,"class",d);break;case"tabIndex":Bf(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Bf(r,a,d);break;case"style":Yv(r,d,E);break;case"data":if(i!=="object"){Bf(r,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||a!=="href")){r.removeAttribute(a);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(a);break}d=Mf(""+d),r.setAttribute(a,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(a==="formAction"?(i!=="input"&&Gt(r,i,"name",b.name,b,null),Gt(r,i,"formEncType",b.formEncType,b,null),Gt(r,i,"formMethod",b.formMethod,b,null),Gt(r,i,"formTarget",b.formTarget,b,null)):(Gt(r,i,"encType",b.encType,b,null),Gt(r,i,"method",b.method,b,null),Gt(r,i,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(a);break}d=Mf(""+d),r.setAttribute(a,d);break;case"onClick":d!=null&&(r.onclick=no);break;case"onScroll":d!=null&&It("scroll",r);break;case"onScrollEnd":d!=null&&It("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(o(61));if(a=d.__html,a!=null){if(b.children!=null)throw Error(o(60));r.innerHTML=a}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}a=Mf(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(a,""+d):r.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(a,""):r.removeAttribute(a);break;case"capture":case"download":d===!0?r.setAttribute(a,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(a,d):r.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(a,d):r.removeAttribute(a);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(a):r.setAttribute(a,d);break;case"popover":It("beforetoggle",r),It("toggle",r),Tf(r,"popover",d);break;case"xlinkActuate":ro(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":ro(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":ro(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":ro(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":ro(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":ro(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":ro(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":ro(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":ro(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Tf(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=t8.get(a)||a,Tf(r,a,d))}}function Pg(r,i,a,d,b,E){switch(a){case"style":Yv(r,d,E);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(o(61));if(a=d.__html,a!=null){if(b.children!=null)throw Error(o(60));r.innerHTML=a}}break;case"children":typeof d=="string"?qa(r,d):(typeof d=="number"||typeof d=="bigint")&&qa(r,""+d);break;case"onScroll":d!=null&&It("scroll",r);break;case"onScrollEnd":d!=null&&It("scrollend",r);break;case"onClick":d!=null&&(r.onclick=no);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kv.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(b=a.endsWith("Capture"),i=a.slice(2,b?a.length-7:void 0),E=r[nr]||null,E=E!=null?E[a]:null,typeof E=="function"&&r.removeEventListener(i,E,b),typeof d=="function")){typeof E!="function"&&E!==null&&(a in r?r[a]=null:r.hasAttribute(a)&&r.removeAttribute(a)),r.addEventListener(i,d,b);break e}a in r?r[a]=d:d===!0?r.setAttribute(a,""):Tf(r,a,d)}}}function Zr(r,i,a){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":It("error",r),It("load",r);var d=!1,b=!1,E;for(E in a)if(a.hasOwnProperty(E)){var V=a[E];if(V!=null)switch(E){case"src":d=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:Gt(r,i,E,V,a,null)}}b&&Gt(r,i,"srcSet",a.srcSet,a,null),d&&Gt(r,i,"src",a.src,a,null);return;case"input":It("invalid",r);var ge=E=V=b=null,Fe=null,Me=null;for(d in a)if(a.hasOwnProperty(d)){var $e=a[d];if($e!=null)switch(d){case"name":b=$e;break;case"type":V=$e;break;case"checked":Fe=$e;break;case"defaultChecked":Me=$e;break;case"value":E=$e;break;case"defaultValue":ge=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(o(137,i));break;default:Gt(r,i,d,$e,a,null)}}Hv(r,E,ge,Fe,Me,V,b,!1);return;case"select":It("invalid",r),d=V=E=null;for(b in a)if(a.hasOwnProperty(b)&&(ge=a[b],ge!=null))switch(b){case"value":E=ge;break;case"defaultValue":V=ge;break;case"multiple":d=ge;default:Gt(r,i,b,ge,a,null)}i=E,a=V,r.multiple=!!d,i!=null?$a(r,!!d,i,!1):a!=null&&$a(r,!!d,a,!0);return;case"textarea":It("invalid",r),E=b=d=null;for(V in a)if(a.hasOwnProperty(V)&&(ge=a[V],ge!=null))switch(V){case"value":d=ge;break;case"defaultValue":b=ge;break;case"children":E=ge;break;case"dangerouslySetInnerHTML":if(ge!=null)throw Error(o(91));break;default:Gt(r,i,V,ge,a,null)}Gv(r,d,b,E);return;case"option":for(Fe in a)if(a.hasOwnProperty(Fe)&&(d=a[Fe],d!=null))switch(Fe){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Gt(r,i,Fe,d,a,null)}return;case"dialog":It("beforetoggle",r),It("toggle",r),It("cancel",r),It("close",r);break;case"iframe":case"object":It("load",r);break;case"video":case"audio":for(d=0;d<Ql.length;d++)It(Ql[d],r);break;case"image":It("error",r),It("load",r);break;case"details":It("toggle",r);break;case"embed":case"source":case"link":It("error",r),It("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in a)if(a.hasOwnProperty(Me)&&(d=a[Me],d!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:Gt(r,i,Me,d,a,null)}return;default:if(Zp(i)){for($e in a)a.hasOwnProperty($e)&&(d=a[$e],d!==void 0&&Pg(r,i,$e,d,a,void 0));return}}for(ge in a)a.hasOwnProperty(ge)&&(d=a[ge],d!=null&&Gt(r,i,ge,d,a,null))}function FR(r,i,a,d){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,E=null,V=null,ge=null,Fe=null,Me=null,$e=null;for(De in a){var Ge=a[De];if(a.hasOwnProperty(De)&&Ge!=null)switch(De){case"checked":break;case"value":break;case"defaultValue":Fe=Ge;default:d.hasOwnProperty(De)||Gt(r,i,De,null,d,Ge)}}for(var Ue in d){var De=d[Ue];if(Ge=a[Ue],d.hasOwnProperty(Ue)&&(De!=null||Ge!=null))switch(Ue){case"type":E=De;break;case"name":b=De;break;case"checked":Me=De;break;case"defaultChecked":$e=De;break;case"value":V=De;break;case"defaultValue":ge=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(o(137,i));break;default:De!==Ge&&Gt(r,i,Ue,De,d,Ge)}}Wp(r,V,ge,Fe,Me,$e,E,b);return;case"select":De=V=ge=Ue=null;for(E in a)if(Fe=a[E],a.hasOwnProperty(E)&&Fe!=null)switch(E){case"value":break;case"multiple":De=Fe;default:d.hasOwnProperty(E)||Gt(r,i,E,null,d,Fe)}for(b in d)if(E=d[b],Fe=a[b],d.hasOwnProperty(b)&&(E!=null||Fe!=null))switch(b){case"value":Ue=E;break;case"defaultValue":ge=E;break;case"multiple":V=E;default:E!==Fe&&Gt(r,i,b,E,d,Fe)}i=ge,a=V,d=De,Ue!=null?$a(r,!!a,Ue,!1):!!d!=!!a&&(i!=null?$a(r,!!a,i,!0):$a(r,!!a,a?[]:"",!1));return;case"textarea":De=Ue=null;for(ge in a)if(b=a[ge],a.hasOwnProperty(ge)&&b!=null&&!d.hasOwnProperty(ge))switch(ge){case"value":break;case"children":break;default:Gt(r,i,ge,null,d,b)}for(V in d)if(b=d[V],E=a[V],d.hasOwnProperty(V)&&(b!=null||E!=null))switch(V){case"value":Ue=b;break;case"defaultValue":De=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:b!==E&&Gt(r,i,V,b,d,E)}Qv(r,Ue,De);return;case"option":for(var ut in a)if(Ue=a[ut],a.hasOwnProperty(ut)&&Ue!=null&&!d.hasOwnProperty(ut))switch(ut){case"selected":r.selected=!1;break;default:Gt(r,i,ut,null,d,Ue)}for(Fe in d)if(Ue=d[Fe],De=a[Fe],d.hasOwnProperty(Fe)&&Ue!==De&&(Ue!=null||De!=null))switch(Fe){case"selected":r.selected=Ue&&typeof Ue!="function"&&typeof Ue!="symbol";break;default:Gt(r,i,Fe,Ue,d,De)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var mt in a)Ue=a[mt],a.hasOwnProperty(mt)&&Ue!=null&&!d.hasOwnProperty(mt)&&Gt(r,i,mt,null,d,Ue);for(Me in d)if(Ue=d[Me],De=a[Me],d.hasOwnProperty(Me)&&Ue!==De&&(Ue!=null||De!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(o(137,i));break;default:Gt(r,i,Me,Ue,d,De)}return;default:if(Zp(i)){for(var Kt in a)Ue=a[Kt],a.hasOwnProperty(Kt)&&Ue!==void 0&&!d.hasOwnProperty(Kt)&&Pg(r,i,Kt,void 0,d,Ue);for($e in d)Ue=d[$e],De=a[$e],!d.hasOwnProperty($e)||Ue===De||Ue===void 0&&De===void 0||Pg(r,i,$e,Ue,d,De);return}}for(var Te in a)Ue=a[Te],a.hasOwnProperty(Te)&&Ue!=null&&!d.hasOwnProperty(Te)&&Gt(r,i,Te,null,d,Ue);for(Ge in d)Ue=d[Ge],De=a[Ge],!d.hasOwnProperty(Ge)||Ue===De||Ue==null&&De==null||Gt(r,i,Ge,Ue,d,De)}function WS(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function OR(){if(typeof performance.getEntriesByType=="function"){for(var r=0,i=0,a=performance.getEntriesByType("resource"),d=0;d<a.length;d++){var b=a[d],E=b.transferSize,V=b.initiatorType,ge=b.duration;if(E&&ge&&WS(V)){for(V=0,ge=b.responseEnd,d+=1;d<a.length;d++){var Fe=a[d],Me=Fe.startTime;if(Me>ge)break;var $e=Fe.transferSize,Ge=Fe.initiatorType;$e&&WS(Ge)&&(Fe=Fe.responseEnd,V+=$e*(Fe<ge?1:(ge-Me)/(Fe-Me)))}if(--d,i+=8*(E+V)/(b.duration/1e3),r++,10<r)break}}if(0<r)return i/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var kg=null,Lg=null;function Fh(r){return r.nodeType===9?r:r.ownerDocument}function XS(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ZS(r,i){if(r===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&i==="foreignObject"?0:r}function zg(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var $g=null;function TR(){var r=window.event;return r&&r.type==="popstate"?r===$g?!1:($g=r,!0):($g=null,!1)}var JS=typeof setTimeout=="function"?setTimeout:void 0,BR=typeof clearTimeout=="function"?clearTimeout:void 0,e2=typeof Promise=="function"?Promise:void 0,RR=typeof queueMicrotask=="function"?queueMicrotask:typeof e2<"u"?function(r){return e2.resolve(null).then(r).catch(MR)}:JS;function MR(r){setTimeout(function(){throw r})}function ds(r){return r==="head"}function t2(r,i){var a=i,d=0;do{var b=a.nextSibling;if(r.removeChild(a),b&&b.nodeType===8)if(a=b.data,a==="/$"||a==="/&"){if(d===0){r.removeChild(b),wu(i);return}d--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")d++;else if(a==="html")Kl(r.ownerDocument.documentElement);else if(a==="head"){a=r.ownerDocument.head,Kl(a);for(var E=a.firstChild;E;){var V=E.nextSibling,ge=E.nodeName;E[wr]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&E.rel.toLowerCase()==="stylesheet"||a.removeChild(E),E=V}}else a==="body"&&Kl(r.ownerDocument.body);a=b}while(a);wu(i)}function r2(r,i){var a=r;r=0;do{var d=a.nextSibling;if(a.nodeType===1?i?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(i?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),d&&d.nodeType===8)if(a=d.data,a==="/$"){if(r===0)break;r--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||r++;a=d}while(a)}function qg(r){var i=r.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var a=i;switch(i=i.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":qg(a),Vo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}r.removeChild(a)}}function UR(r,i,a,d){for(;r.nodeType===1;){var b=a;if(r.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[wr])switch(i){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(E=r.getAttribute("rel"),E==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(E!==b.rel||r.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||r.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||r.getAttribute("title")!==(b.title==null?null:b.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(b.src==null?null:b.src)||r.getAttribute("type")!==(b.type==null?null:b.type)||r.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(i==="input"&&r.type==="hidden"){var E=b.name==null?null:""+b.name;if(b.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=di(r.nextSibling),r===null)break}return null}function jR(r,i,a){if(i==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=di(r.nextSibling),r===null))return null;return r}function n2(r,i){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=di(r.nextSibling),r===null))return null;return r}function Hg(r){return r.data==="$?"||r.data==="$~"}function Qg(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function NR(r,i){var a=r.ownerDocument;if(r.data==="$~")r._reactRetry=i;else if(r.data!=="$?"||a.readyState!=="loading")i();else{var d=function(){i(),a.removeEventListener("DOMContentLoaded",d)};a.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function di(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return r}var Gg=null;function i2(r){r=r.nextSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"||a==="/&"){if(i===0)return di(r.nextSibling);i--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||i++}r=r.nextSibling}return null}function o2(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(i===0)return r;i--}else a!=="/$"&&a!=="/&"||i++}r=r.previousSibling}return null}function s2(r,i,a){switch(i=Fh(a),r){case"html":if(r=i.documentElement,!r)throw Error(o(452));return r;case"head":if(r=i.head,!r)throw Error(o(453));return r;case"body":if(r=i.body,!r)throw Error(o(454));return r;default:throw Error(o(451))}}function Kl(r){for(var i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Vo(r)}var pi=new Map,a2=new Set;function Oh(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var wo=re.d;re.d={f:DR,r:PR,D:kR,C:LR,L:zR,m:$R,X:HR,S:qR,M:QR};function DR(){var r=wo.f(),i=wh();return r||i}function PR(r){var i=Ei(r);i!==null&&i.tag===5&&i.type==="form"?SE(i):wo.r(r)}var mu=typeof document>"u"?null:document;function u2(r,i,a){var d=mu;if(d&&typeof i=="string"&&i){var b=si(i);b='link[rel="'+r+'"][href="'+b+'"]',typeof a=="string"&&(b+='[crossorigin="'+a+'"]'),a2.has(b)||(a2.add(b),r={rel:r,crossOrigin:a,href:i},d.querySelector(b)===null&&(i=d.createElement("link"),Zr(i,"link",r),ur(i),d.head.appendChild(i)))}}function kR(r){wo.D(r),u2("dns-prefetch",r,null)}function LR(r,i){wo.C(r,i),u2("preconnect",r,i)}function zR(r,i,a){wo.L(r,i,a);var d=mu;if(d&&r&&i){var b='link[rel="preload"][as="'+si(i)+'"]';i==="image"&&a&&a.imageSrcSet?(b+='[imagesrcset="'+si(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(b+='[imagesizes="'+si(a.imageSizes)+'"]')):b+='[href="'+si(r)+'"]';var E=b;switch(i){case"style":E=bu(r);break;case"script":E=Au(r)}pi.has(E)||(r=y({rel:"preload",href:i==="image"&&a&&a.imageSrcSet?void 0:r,as:i},a),pi.set(E,r),d.querySelector(b)!==null||i==="style"&&d.querySelector(Yl(E))||i==="script"&&d.querySelector(Vl(E))||(i=d.createElement("link"),Zr(i,"link",r),ur(i),d.head.appendChild(i)))}}function $R(r,i){wo.m(r,i);var a=mu;if(a&&r){var d=i&&typeof i.as=="string"?i.as:"script",b='link[rel="modulepreload"][as="'+si(d)+'"][href="'+si(r)+'"]',E=b;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Au(r)}if(!pi.has(E)&&(r=y({rel:"modulepreload",href:r},i),pi.set(E,r),a.querySelector(b)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Vl(E)))return}d=a.createElement("link"),Zr(d,"link",r),ur(d),a.head.appendChild(d)}}}function qR(r,i,a){wo.S(r,i,a);var d=mu;if(d&&r){var b=Si(d).hoistableStyles,E=bu(r);i=i||"default";var V=b.get(E);if(!V){var ge={loading:0,preload:null};if(V=d.querySelector(Yl(E)))ge.loading=5;else{r=y({rel:"stylesheet",href:r,"data-precedence":i},a),(a=pi.get(E))&&Kg(r,a);var Fe=V=d.createElement("link");ur(Fe),Zr(Fe,"link",r),Fe._p=new Promise(function(Me,$e){Fe.onload=Me,Fe.onerror=$e}),Fe.addEventListener("load",function(){ge.loading|=1}),Fe.addEventListener("error",function(){ge.loading|=2}),ge.loading|=4,Th(V,i,d)}V={type:"stylesheet",instance:V,count:1,state:ge},b.set(E,V)}}}function HR(r,i){wo.X(r,i);var a=mu;if(a&&r){var d=Si(a).hoistableScripts,b=Au(r),E=d.get(b);E||(E=a.querySelector(Vl(b)),E||(r=y({src:r,async:!0},i),(i=pi.get(b))&&Yg(r,i),E=a.createElement("script"),ur(E),Zr(E,"link",r),a.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(b,E))}}function QR(r,i){wo.M(r,i);var a=mu;if(a&&r){var d=Si(a).hoistableScripts,b=Au(r),E=d.get(b);E||(E=a.querySelector(Vl(b)),E||(r=y({src:r,async:!0,type:"module"},i),(i=pi.get(b))&&Yg(r,i),E=a.createElement("script"),ur(E),Zr(E,"link",r),a.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(b,E))}}function l2(r,i,a,d){var b=(b=fe.current)?Oh(b):null;if(!b)throw Error(o(446));switch(r){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(i=bu(a.href),a=Si(b).hoistableStyles,d=a.get(i),d||(d={type:"style",instance:null,count:0,state:null},a.set(i,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){r=bu(a.href);var E=Si(b).hoistableStyles,V=E.get(r);if(V||(b=b.ownerDocument||b,V={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(r,V),(E=b.querySelector(Yl(r)))&&!E._p&&(V.instance=E,V.state.loading=5),pi.has(r)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},pi.set(r,a),E||GR(b,r,a,V.state))),i&&d===null)throw Error(o(528,""));return V}if(i&&d!==null)throw Error(o(529,""));return null;case"script":return i=a.async,a=a.src,typeof a=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Au(a),a=Si(b).hoistableScripts,d=a.get(i),d||(d={type:"script",instance:null,count:0,state:null},a.set(i,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,r))}}function bu(r){return'href="'+si(r)+'"'}function Yl(r){return'link[rel="stylesheet"]['+r+"]"}function c2(r){return y({},r,{"data-precedence":r.precedence,precedence:null})}function GR(r,i,a,d){r.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=1:(i=r.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=1}),i.addEventListener("error",function(){return d.loading|=2}),Zr(i,"link",a),ur(i),r.head.appendChild(i))}function Au(r){return'[src="'+si(r)+'"]'}function Vl(r){return"script[async]"+r}function f2(r,i,a){if(i.count++,i.instance===null)switch(i.type){case"style":var d=r.querySelector('style[data-href~="'+si(a.href)+'"]');if(d)return i.instance=d,ur(d),d;var b=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),ur(d),Zr(d,"style",b),Th(d,a.precedence,r),i.instance=d;case"stylesheet":b=bu(a.href);var E=r.querySelector(Yl(b));if(E)return i.state.loading|=4,i.instance=E,ur(E),E;d=c2(a),(b=pi.get(b))&&Kg(d,b),E=(r.ownerDocument||r).createElement("link"),ur(E);var V=E;return V._p=new Promise(function(ge,Fe){V.onload=ge,V.onerror=Fe}),Zr(E,"link",d),i.state.loading|=4,Th(E,a.precedence,r),i.instance=E;case"script":return E=Au(a.src),(b=r.querySelector(Vl(E)))?(i.instance=b,ur(b),b):(d=a,(b=pi.get(E))&&(d=y({},a),Yg(d,b)),r=r.ownerDocument||r,b=r.createElement("script"),ur(b),Zr(b,"link",d),r.head.appendChild(b),i.instance=b);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(d=i.instance,i.state.loading|=4,Th(d,a.precedence,r));return i.instance}function Th(r,i,a){for(var d=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=d.length?d[d.length-1]:null,E=b,V=0;V<d.length;V++){var ge=d[V];if(ge.dataset.precedence===i)E=ge;else if(E!==b)break}E?E.parentNode.insertBefore(r,E.nextSibling):(i=a.nodeType===9?a.head:a,i.insertBefore(r,i.firstChild))}function Kg(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.title==null&&(r.title=i.title)}function Yg(r,i){r.crossOrigin==null&&(r.crossOrigin=i.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=i.referrerPolicy),r.integrity==null&&(r.integrity=i.integrity)}var Bh=null;function h2(r,i,a){if(Bh===null){var d=new Map,b=Bh=new Map;b.set(a,d)}else b=Bh,d=b.get(a),d||(d=new Map,b.set(a,d));if(d.has(r))return d;for(d.set(r,null),a=a.getElementsByTagName(r),b=0;b<a.length;b++){var E=a[b];if(!(E[wr]||E[Ht]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var V=E.getAttribute(i)||"";V=r+V;var ge=d.get(V);ge?ge.push(E):d.set(V,[E])}}return d}function d2(r,i,a){r=r.ownerDocument||r,r.head.insertBefore(a,i==="title"?r.querySelector("head > title"):null)}function KR(r,i,a){if(a===1||i.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return r=i.disabled,typeof i.precedence=="string"&&r==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function p2(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function YR(r,i,a,d){if(a.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var b=bu(d.href),E=i.querySelector(Yl(b));if(E){i=E._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(r.count++,r=Rh.bind(r),i.then(r,r)),a.state.loading|=4,a.instance=E,ur(E);return}E=i.ownerDocument||i,d=c2(d),(b=pi.get(b))&&Kg(d,b),E=E.createElement("link"),ur(E);var V=E;V._p=new Promise(function(ge,Fe){V.onload=ge,V.onerror=Fe}),Zr(E,"link",d),a.instance=E}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(r.count++,a=Rh.bind(r),i.addEventListener("load",a),i.addEventListener("error",a))}}var Vg=0;function VR(r,i){return r.stylesheets&&r.count===0&&Uh(r,r.stylesheets),0<r.count||0<r.imgCount?function(a){var d=setTimeout(function(){if(r.stylesheets&&Uh(r,r.stylesheets),r.unsuspend){var E=r.unsuspend;r.unsuspend=null,E()}},6e4+i);0<r.imgBytes&&Vg===0&&(Vg=62500*OR());var b=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Uh(r,r.stylesheets),r.unsuspend)){var E=r.unsuspend;r.unsuspend=null,E()}},(r.imgBytes>Vg?50:800)+i);return r.unsuspend=a,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(b)}}:null}function Rh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uh(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Mh=null;function Uh(r,i){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Mh=new Map,i.forEach(WR,r),Mh=null,Rh.call(r))}function WR(r,i){if(!(i.state.loading&4)){var a=Mh.get(r);if(a)var d=a.get(null);else{a=new Map,Mh.set(r,a);for(var b=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<b.length;E++){var V=b[E];(V.nodeName==="LINK"||V.getAttribute("media")!=="not all")&&(a.set(V.dataset.precedence,V),d=V)}d&&a.set(null,d)}b=i.instance,V=b.getAttribute("data-precedence"),E=a.get(V)||d,E===d&&a.set(null,b),a.set(V,b),this.count++,d=Rh.bind(this),b.addEventListener("load",d),b.addEventListener("error",d),E?E.parentNode.insertBefore(b,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(b,r.firstChild)),i.state.loading|=4}}var Wl={$$typeof:I,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function XR(r,i,a,d,b,E,V,ge,Fe){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ar(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ar(0),this.hiddenUpdates=Ar(null),this.identifierPrefix=d,this.onUncaughtError=b,this.onCaughtError=E,this.onRecoverableError=V,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Fe,this.incompleteTransitions=new Map}function y2(r,i,a,d,b,E,V,ge,Fe,Me,$e,Ge){return r=new XR(r,i,a,V,Fe,Me,$e,Ge,ge),i=1,E===!0&&(i|=24),E=qn(3,null,null,i),r.current=E,E.stateNode=r,i=Fy(),i.refCount++,r.pooledCache=i,i.refCount++,E.memoizedState={element:d,isDehydrated:a,cache:i},Ry(E),r}function g2(r){return r?(r=Wa,r):Wa}function m2(r,i,a,d,b,E){b=g2(b),d.context===null?d.context=b:d.pendingContext=b,d=rs(i),d.payload={element:a},E=E===void 0?null:E,E!==null&&(d.callback=E),a=ns(r,d,i),a!==null&&(Fn(a,r,i),Fl(a,r,i))}function b2(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function Wg(r,i){b2(r,i),(r=r.alternate)&&b2(r,i)}function A2(r){if(r.tag===13||r.tag===31){var i=Ys(r,67108864);i!==null&&Fn(i,r,67108864),Wg(r,67108864)}}function w2(r){if(r.tag===13||r.tag===31){var i=Yn();i=qt(i);var a=Ys(r,i);a!==null&&Fn(a,r,i),Wg(r,i)}}var jh=!0;function ZR(r,i,a,d){var b=X.T;X.T=null;var E=re.p;try{re.p=2,Xg(r,i,a,d)}finally{re.p=E,X.T=b}}function JR(r,i,a,d){var b=X.T;X.T=null;var E=re.p;try{re.p=8,Xg(r,i,a,d)}finally{re.p=E,X.T=b}}function Xg(r,i,a,d){if(jh){var b=Zg(d);if(b===null)Dg(r,i,d,Nh,a),x2(r,d);else if(t4(b,r,i,a,d))d.stopPropagation();else if(x2(r,d),i&4&&-1<e4.indexOf(r)){for(;b!==null;){var E=Ei(b);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var V=tt(E.pendingLanes);if(V!==0){var ge=E;for(ge.pendingLanes|=2,ge.entangledLanes|=2;V;){var Fe=1<<31-Ke(V);ge.entanglements[1]|=Fe,V&=~Fe}Hi(E),(Pt&6)===0&&(bh=de()+500,Hl(0))}}break;case 31:case 13:ge=Ys(E,2),ge!==null&&Fn(ge,E,2),wh(),Wg(E,2)}if(E=Zg(d),E===null&&Dg(r,i,d,Nh,a),E===b)break;b=E}b!==null&&d.stopPropagation()}else Dg(r,i,d,null,a)}}function Zg(r){return r=ey(r),Jg(r)}var Nh=null;function Jg(r){if(Nh=null,r=xi(r),r!==null){var i=u(r);if(i===null)r=null;else{var a=i.tag;if(a===13){if(r=l(i),r!==null)return r;r=null}else if(a===31){if(r=c(i),r!==null)return r;r=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Nh=r,null}function v2(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ve()){case x:return 2;case B:return 8;case N:case ie:return 32;case me:return 268435456;default:return 32}default:return 32}}var em=!1,ps=null,ys=null,gs=null,Xl=new Map,Zl=new Map,ms=[],e4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function x2(r,i){switch(r){case"focusin":case"focusout":ps=null;break;case"dragenter":case"dragleave":ys=null;break;case"mouseover":case"mouseout":gs=null;break;case"pointerover":case"pointerout":Xl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(i.pointerId)}}function Jl(r,i,a,d,b,E){return r===null||r.nativeEvent!==E?(r={blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:E,targetContainers:[b]},i!==null&&(i=Ei(i),i!==null&&A2(i)),r):(r.eventSystemFlags|=d,i=r.targetContainers,b!==null&&i.indexOf(b)===-1&&i.push(b),r)}function t4(r,i,a,d,b){switch(i){case"focusin":return ps=Jl(ps,r,i,a,d,b),!0;case"dragenter":return ys=Jl(ys,r,i,a,d,b),!0;case"mouseover":return gs=Jl(gs,r,i,a,d,b),!0;case"pointerover":var E=b.pointerId;return Xl.set(E,Jl(Xl.get(E)||null,r,i,a,d,b)),!0;case"gotpointercapture":return E=b.pointerId,Zl.set(E,Jl(Zl.get(E)||null,r,i,a,d,b)),!0}return!1}function E2(r){var i=xi(r.target);if(i!==null){var a=u(i);if(a!==null){if(i=a.tag,i===13){if(i=l(a),i!==null){r.blockedOn=i,zn(r.priority,function(){w2(a)});return}}else if(i===31){if(i=c(a),i!==null){r.blockedOn=i,zn(r.priority,function(){w2(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Dh(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=Zg(r.nativeEvent);if(a===null){a=r.nativeEvent;var d=new a.constructor(a.type,a);Jp=d,a.target.dispatchEvent(d),Jp=null}else return i=Ei(a),i!==null&&A2(i),r.blockedOn=a,!1;i.shift()}return!0}function S2(r,i,a){Dh(r)&&a.delete(i)}function r4(){em=!1,ps!==null&&Dh(ps)&&(ps=null),ys!==null&&Dh(ys)&&(ys=null),gs!==null&&Dh(gs)&&(gs=null),Xl.forEach(S2),Zl.forEach(S2)}function Ph(r,i){r.blockedOn===i&&(r.blockedOn=null,em||(em=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,r4)))}var kh=null;function I2(r){kh!==r&&(kh=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){kh===r&&(kh=null);for(var i=0;i<r.length;i+=3){var a=r[i],d=r[i+1],b=r[i+2];if(typeof d!="function"){if(Jg(d||a)===null)continue;break}var E=Ei(a);E!==null&&(r.splice(i,3),i-=3,Zy(E,{pending:!0,data:b,method:a.method,action:d},d,b))}}))}function wu(r){function i(Fe){return Ph(Fe,r)}ps!==null&&Ph(ps,r),ys!==null&&Ph(ys,r),gs!==null&&Ph(gs,r),Xl.forEach(i),Zl.forEach(i);for(var a=0;a<ms.length;a++){var d=ms[a];d.blockedOn===r&&(d.blockedOn=null)}for(;0<ms.length&&(a=ms[0],a.blockedOn===null);)E2(a),a.blockedOn===null&&ms.shift();if(a=(r.ownerDocument||r).$$reactFormReplay,a!=null)for(d=0;d<a.length;d+=3){var b=a[d],E=a[d+1],V=b[nr]||null;if(typeof E=="function")V||I2(a);else if(V){var ge=null;if(E&&E.hasAttribute("formAction")){if(b=E,V=E[nr]||null)ge=V.formAction;else if(Jg(b)!==null)continue}else ge=V.action;typeof ge=="function"?a[d+1]=ge:(a.splice(d,3),d-=3),I2(a)}}}function _2(){function r(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(V){return b=V})},focusReset:"manual",scroll:"manual"})}function i(){b!==null&&(b(),b=null),d||setTimeout(a,20)}function a(){if(!d&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,b=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(a,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),b!==null&&(b(),b=null)}}}function tm(r){this._internalRoot=r}Lh.prototype.render=tm.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(o(409));var a=i.current,d=Yn();m2(a,d,r,i,null,null)},Lh.prototype.unmount=tm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;m2(r.current,2,null,r,null,null),wh(),i[Mr]=null}};function Lh(r){this._internalRoot=r}Lh.prototype.unstable_scheduleHydration=function(r){if(r){var i=Br();r={blockedOn:null,target:r,priority:i};for(var a=0;a<ms.length&&i!==0&&i<ms[a].priority;a++);ms.splice(a,0,r),a===0&&E2(r)}};var C2=t.version;if(C2!=="19.2.0")throw Error(o(527,C2,"19.2.0"));re.findDOMNode=function(r){var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(o(188)):(r=Object.keys(r).join(","),Error(o(268,r)));return r=f(i),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var n4={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zh.isDisabled&&zh.supportsFiber)try{we=zh.inject(n4),Se=zh}catch{}}return rc.createRoot=function(r,i){if(!s(r))throw Error(o(299));var a=!1,d="",b=UE,E=jE,V=NE;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&(E=i.onCaughtError),i.onRecoverableError!==void 0&&(V=i.onRecoverableError)),i=y2(r,1,!1,null,null,a,d,null,b,E,V,_2),r[Mr]=i.current,Ng(r),new tm(i)},rc.hydrateRoot=function(r,i,a){if(!s(r))throw Error(o(299));var d=!1,b="",E=UE,V=jE,ge=NE,Fe=null;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(b=a.identifierPrefix),a.onUncaughtError!==void 0&&(E=a.onUncaughtError),a.onCaughtError!==void 0&&(V=a.onCaughtError),a.onRecoverableError!==void 0&&(ge=a.onRecoverableError),a.formState!==void 0&&(Fe=a.formState)),i=y2(r,1,!0,i,a??null,d,b,Fe,E,V,ge,_2),i.context=g2(null),a=i.current,d=Yn(),d=qt(d),b=rs(d),b.callback=null,ns(a,b,d),a=d,i.current.lanes=a,be(i,a),Hi(i),r[Mr]=i.current,Ng(r),new Lh(i)},rc.version="19.2.0",rc}var $2;function v4(){if($2)return sm.exports;$2=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sm.exports=w4(),sm.exports}var x4=v4(),XF=WF();function cc({isOpen:e,onClose:t,title:n,children:o,className:s,url:u}){Xe.useEffect(()=>{if(e){const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=h}}},[e]);const l=()=>{var h;u&&((h=globalThis==null?void 0:globalThis.open)==null||h.call(globalThis,u,"_blank","noopener,noreferrer"),t())};if(!e)return null;const c=_e.jsx("div",{className:"modal-overlay",onClick:t,children:_e.jsxs("div",{className:`modal-content ${s}`,onClick:h=>h.stopPropagation(),children:[_e.jsxs("div",{className:"modal-header",children:[_e.jsx("h2",{className:"modal-title",children:n}),_e.jsxs("div",{className:"modal-header-actions",children:[u&&_e.jsx("button",{className:"modal-open-new-window",onClick:l,"aria-label":"Open in new window",title:"Open in new window",type:"button",children:_e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[_e.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),_e.jsx("polyline",{points:"15 3 21 3 21 9"}),_e.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}),_e.jsx("button",{className:"modal-close",onClick:t,type:"button",children:"×"})]})]}),_e.jsx("div",{className:"modal-body",children:o})]})});return typeof document<"u"&&document.body?XF.createPortal(c,document.body):c}const vu=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function E4(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function xc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function wa(e,...t){if(!E4(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function S4(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");xc(e.outputLen),xc(e.blockLen)}function Uu(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ZF(e,t){wa(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function I4(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function ju(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function cm(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Qi(e,t){return e<<32-t|e>>>t}const _4=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function C4(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function F4(e){for(let t=0;t<e.length;t++)e[t]=C4(e[t]);return e}const q2=_4?e=>e:F4;function O4(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function rp(e){return typeof e=="string"&&(e=O4(e)),wa(e),e}function T4(...e){let t=0;for(let o=0;o<e.length;o++){const s=e[o];wa(s),t+=s.length}const n=new Uint8Array(t);for(let o=0,s=0;o<e.length;o++){const u=e[o];n.set(u,s),s+=u.length}return n}let ew=class{};function JF(e){const t=o=>e().update(rp(o)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function B4(e=32){if(vu&&typeof vu.getRandomValues=="function")return vu.getRandomValues(new Uint8Array(e));if(vu&&typeof vu.randomBytes=="function")return Uint8Array.from(vu.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const tw=BigInt(0),mb=BigInt(1);function of(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function rw(e){if(!of(e))throw new Error("Uint8Array expected")}function Ec(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function Qh(e){const t=e.toString(16);return t.length&1?"0"+t:t}function eO(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?tw:BigInt("0x"+e)}const tO=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",R4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Sc(e){if(rw(e),tO)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=R4[e[n]];return t}const vo={_0:48,_9:57,A:65,F:70,a:97,f:102};function H2(e){if(e>=vo._0&&e<=vo._9)return e-vo._0;if(e>=vo.A&&e<=vo.F)return e-(vo.A-10);if(e>=vo.a&&e<=vo.f)return e-(vo.a-10)}function zd(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(tO)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const o=new Uint8Array(n);for(let s=0,u=0;s<n;s++,u+=2){const l=H2(e.charCodeAt(u)),c=H2(e.charCodeAt(u+1));if(l===void 0||c===void 0){const h=e[u]+e[u+1];throw new Error('hex string expected, got non-hex character "'+h+'" at index '+u)}o[s]=l*16+c}return o}function ga(e){return eO(Sc(e))}function rO(e){return rw(e),eO(Sc(Uint8Array.from(e).reverse()))}function sf(e,t){return zd(e.toString(16).padStart(t*2,"0"))}function nO(e,t){return sf(e,t).reverse()}function gi(e,t,n){let o;if(typeof t=="string")try{o=zd(t)}catch(u){throw new Error(e+" must be hex string or Uint8Array, cause: "+u)}else if(of(t))o=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=o.length;if(typeof n=="number"&&s!==n)throw new Error(e+" of length "+n+" expected, got "+s);return o}function $d(...e){let t=0;for(let o=0;o<e.length;o++){const s=e[o];rw(s),t+=s.length}const n=new Uint8Array(t);for(let o=0,s=0;o<e.length;o++){const u=e[o];n.set(u,s),s+=u.length}return n}const fm=e=>typeof e=="bigint"&&tw<=e;function nw(e,t,n){return fm(e)&&fm(t)&&fm(n)&&t<=e&&e<n}function Ou(e,t,n,o){if(!nw(t,n,o))throw new Error("expected valid "+e+": "+n+" <= n < "+o+", got "+t)}function M4(e){let t;for(t=0;e>tw;e>>=mb,t+=1);return t}const np=e=>(mb<<BigInt(e))-mb,hm=e=>new Uint8Array(e),Q2=e=>Uint8Array.from(e);function U4(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let o=hm(e),s=hm(e),u=0;const l=()=>{o.fill(1),s.fill(0),u=0},c=(...y)=>n(s,o,...y),h=(y=hm(0))=>{s=c(Q2([0]),y),o=c(),y.length!==0&&(s=c(Q2([1]),y),o=c())},f=()=>{if(u++>=1e3)throw new Error("drbg: tried 1000 values");let y=0;const g=[];for(;y<t;){o=c();const m=o.slice();g.push(m),y+=o.length}return $d(...g)};return(y,g)=>{l(),h(y);let m;for(;!(m=g(f()));)h();return l(),m}}const j4={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||of(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ip(e,t,n={}){const o=(s,u,l)=>{const c=j4[u];if(typeof c!="function")throw new Error("invalid validator function");const h=e[s];if(!(l&&h===void 0)&&!c(h,e))throw new Error("param "+String(s)+" is invalid. Expected "+u+", got "+h)};for(const[s,u]of Object.entries(t))o(s,u,!1);for(const[s,u]of Object.entries(n))o(s,u,!0);return e}function G2(e){const t=new WeakMap;return(n,...o)=>{const s=t.get(n);if(s!==void 0)return s;const u=e(n,...o);return t.set(n,u),u}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=BigInt(0),bn=BigInt(1),fa=BigInt(2),N4=BigInt(3),iO=BigInt(4),oO=BigInt(5),sO=BigInt(8);function On(e,t){const n=e%t;return n>=Tn?n:t+n}function yi(e,t,n){let o=e;for(;t-- >Tn;)o*=o,o%=n;return o}function bb(e,t){if(e===Tn)throw new Error("invert: expected non-zero number");if(t<=Tn)throw new Error("invert: expected positive modulus, got "+t);let n=On(e,t),o=t,s=Tn,u=bn;for(;n!==Tn;){const c=o/n,h=o%n,f=s-u*c;o=n,n=h,s=u,u=f}if(o!==bn)throw new Error("invert: does not exist");return On(s,t)}function aO(e,t){const n=(e.ORDER+bn)/iO,o=e.pow(t,n);if(!e.eql(e.sqr(o),t))throw new Error("Cannot find square root");return o}function D4(e,t){const n=(e.ORDER-oO)/sO,o=e.mul(t,fa),s=e.pow(o,n),u=e.mul(t,s),l=e.mul(e.mul(u,fa),s),c=e.mul(u,e.sub(l,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error("Cannot find square root");return c}function P4(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-bn,n=0;for(;t%fa===Tn;)t/=fa,n++;let o=fa;const s=iw(e);for(;K2(s,o)===1;)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return aO;let u=s.pow(o,t);const l=(t+bn)/fa;return function(h,f){if(h.is0(f))return f;if(K2(h,f)!==1)throw new Error("Cannot find square root");let p=n,y=h.mul(h.ONE,u),g=h.pow(f,t),m=h.pow(f,l);for(;!h.eql(g,h.ONE);){if(h.is0(g))return h.ZERO;let w=1,F=h.sqr(g);for(;!h.eql(F,h.ONE);)if(w++,F=h.sqr(F),w===p)throw new Error("Cannot find square root");const S=bn<<BigInt(p-w-1),M=h.pow(y,S);p=w,y=h.sqr(M),g=h.mul(g,y),m=h.mul(m,M)}return m}}function k4(e){return e%iO===N4?aO:e%sO===oO?D4:P4(e)}const L4=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function z4(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=L4.reduce((o,s)=>(o[s]="function",o),t);return ip(e,n)}function $4(e,t,n){if(n<Tn)throw new Error("invalid exponent, negatives unsupported");if(n===Tn)return e.ONE;if(n===bn)return t;let o=e.ONE,s=t;for(;n>Tn;)n&bn&&(o=e.mul(o,s)),s=e.sqr(s),n>>=bn;return o}function uO(e,t,n=!1){const o=new Array(t.length).fill(n?e.ZERO:void 0),s=t.reduce((l,c,h)=>e.is0(c)?l:(o[h]=l,e.mul(l,c)),e.ONE),u=e.inv(s);return t.reduceRight((l,c,h)=>e.is0(c)?l:(o[h]=e.mul(l,o[h]),e.mul(l,c)),u),o}function K2(e,t){const n=(e.ORDER-bn)/fa,o=e.pow(t,n),s=e.eql(o,e.ONE),u=e.eql(o,e.ZERO),l=e.eql(o,e.neg(e.ONE));if(!s&&!u&&!l)throw new Error("invalid Legendre symbol result");return s?1:u?0:-1}function lO(e,t){t!==void 0&&xc(t);const n=t!==void 0?t:e.toString(2).length,o=Math.ceil(n/8);return{nBitLength:n,nByteLength:o}}function iw(e,t,n=!1,o={}){if(e<=Tn)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:s,nByteLength:u}=lO(e,t);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const c=Object.freeze({ORDER:e,isLE:n,BITS:s,BYTES:u,MASK:np(s),ZERO:Tn,ONE:bn,create:h=>On(h,e),isValid:h=>{if(typeof h!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof h);return Tn<=h&&h<e},is0:h=>h===Tn,isOdd:h=>(h&bn)===bn,neg:h=>On(-h,e),eql:(h,f)=>h===f,sqr:h=>On(h*h,e),add:(h,f)=>On(h+f,e),sub:(h,f)=>On(h-f,e),mul:(h,f)=>On(h*f,e),pow:(h,f)=>$4(c,h,f),div:(h,f)=>On(h*bb(f,e),e),sqrN:h=>h*h,addN:(h,f)=>h+f,subN:(h,f)=>h-f,mulN:(h,f)=>h*f,inv:h=>bb(h,e),sqrt:o.sqrt||(h=>(l||(l=k4(e)),l(c,h))),toBytes:h=>n?nO(h,u):sf(h,u),fromBytes:h=>{if(h.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+h.length);return n?rO(h):ga(h)},invertBatch:h=>uO(c,h),cmov:(h,f,p)=>p?f:h});return Object.freeze(c)}function cO(e){if(typeof e!="bigint")throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function fO(e){const t=cO(e);return t+Math.ceil(t/2)}function q4(e,t,n=!1){const o=e.length,s=cO(t),u=fO(t);if(o<16||o<u||o>1024)throw new Error("expected "+u+"-1024 bytes of input, got "+o);const l=n?rO(e):ga(e),c=On(l,t-bn)+bn;return n?nO(c,s):sf(c,s)}function H4(e,t,n,o){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,o);const s=BigInt(32),u=BigInt(4294967295),l=Number(n>>s&u),c=Number(n&u),h=o?4:0,f=o?0:4;e.setUint32(t+h,l,o),e.setUint32(t+f,c,o)}function Q4(e,t,n){return e&t^~e&n}function G4(e,t,n){return e&t^e&n^t&n}class K4 extends ew{constructor(t,n,o,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=o,this.isLE=s,this.buffer=new Uint8Array(t),this.view=cm(this.buffer)}update(t){Uu(this),t=rp(t),wa(t);const{view:n,buffer:o,blockLen:s}=this,u=t.length;for(let l=0;l<u;){const c=Math.min(s-this.pos,u-l);if(c===s){const h=cm(t);for(;s<=u-l;l+=s)this.process(h,l);continue}o.set(t.subarray(l,l+c),this.pos),this.pos+=c,l+=c,this.pos===s&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Uu(this),ZF(t,this),this.finished=!0;const{buffer:n,view:o,blockLen:s,isLE:u}=this;let{pos:l}=this;n[l++]=128,ju(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(o,0),l=0);for(let y=l;y<s;y++)n[y]=0;H4(o,s-8,BigInt(this.length*8),u),this.process(o,0);const c=cm(t),h=this.outputLen;if(h%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=h/4,p=this.get();if(f>p.length)throw new Error("_sha2: outputLen bigger than state");for(let y=0;y<f;y++)c.setUint32(4*y,p[y],u)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:o,length:s,finished:u,destroyed:l,pos:c}=this;return t.destroyed=l,t.finished=u,t.length=s,t.pos=c,s%n&&t.buffer.set(o),t}clone(){return this._cloneInto()}}const As=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Gh=BigInt(2**32-1),Y2=BigInt(32);function Y4(e,t=!1){return t?{h:Number(e&Gh),l:Number(e>>Y2&Gh)}:{h:Number(e>>Y2&Gh)|0,l:Number(e&Gh)|0}}function V4(e,t=!1){const n=e.length;let o=new Uint32Array(n),s=new Uint32Array(n);for(let u=0;u<n;u++){const{h:l,l:c}=Y4(e[u],t);[o[u],s[u]]=[l,c]}return[o,s]}const W4=(e,t,n)=>e<<n|t>>>32-n,X4=(e,t,n)=>t<<n|e>>>32-n,Z4=(e,t,n)=>t<<n-32|e>>>64-n,J4=(e,t,n)=>e<<n-32|t>>>64-n,eM=Uint32Array.from([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]),ws=new Uint32Array(64);class tM extends K4{constructor(t=32){super(64,t,8,!1),this.A=As[0]|0,this.B=As[1]|0,this.C=As[2]|0,this.D=As[3]|0,this.E=As[4]|0,this.F=As[5]|0,this.G=As[6]|0,this.H=As[7]|0}get(){const{A:t,B:n,C:o,D:s,E:u,F:l,G:c,H:h}=this;return[t,n,o,s,u,l,c,h]}set(t,n,o,s,u,l,c,h){this.A=t|0,this.B=n|0,this.C=o|0,this.D=s|0,this.E=u|0,this.F=l|0,this.G=c|0,this.H=h|0}process(t,n){for(let y=0;y<16;y++,n+=4)ws[y]=t.getUint32(n,!1);for(let y=16;y<64;y++){const g=ws[y-15],m=ws[y-2],w=Qi(g,7)^Qi(g,18)^g>>>3,F=Qi(m,17)^Qi(m,19)^m>>>10;ws[y]=F+ws[y-7]+w+ws[y-16]|0}let{A:o,B:s,C:u,D:l,E:c,F:h,G:f,H:p}=this;for(let y=0;y<64;y++){const g=Qi(c,6)^Qi(c,11)^Qi(c,25),m=p+g+Q4(c,h,f)+eM[y]+ws[y]|0,F=(Qi(o,2)^Qi(o,13)^Qi(o,22))+G4(o,s,u)|0;p=f,f=h,h=c,c=l+m|0,l=u,u=s,s=o,o=m+F|0}o=o+this.A|0,s=s+this.B|0,u=u+this.C|0,l=l+this.D|0,c=c+this.E|0,h=h+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(o,s,u,l,c,h,f,p)}roundClean(){ju(ws)}destroy(){this.set(0,0,0,0,0,0,0,0),ju(this.buffer)}}const hO=JF(()=>new tM);class dO extends ew{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,S4(t);const o=rp(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,u=new Uint8Array(s);u.set(o.length>s?t.create().update(o).digest():o);for(let l=0;l<u.length;l++)u[l]^=54;this.iHash.update(u),this.oHash=t.create();for(let l=0;l<u.length;l++)u[l]^=106;this.oHash.update(u),ju(u)}update(t){return Uu(this),this.iHash.update(t),this}digestInto(t){Uu(this),wa(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:o,finished:s,destroyed:u,blockLen:l,outputLen:c}=this;return t=t,t.finished=s,t.destroyed=u,t.blockLen=l,t.outputLen=c,t.oHash=n._cloneInto(t.oHash),t.iHash=o._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const pO=(e,t,n)=>new dO(e,t).update(n).digest();pO.create=(e,t)=>new dO(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const V2=BigInt(0),Ab=BigInt(1);function dm(e,t){const n=t.negate();return e?n:t}function yO(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function pm(e,t){yO(e,t);const n=Math.ceil(t/e)+1,o=2**(e-1),s=2**e,u=np(e),l=BigInt(e);return{windows:n,windowSize:o,mask:u,maxNumber:s,shiftBy:l}}function W2(e,t,n){const{windowSize:o,mask:s,maxNumber:u,shiftBy:l}=n;let c=Number(e&s),h=e>>l;c>o&&(c-=u,h+=Ab);const f=t*o,p=f+Math.abs(c)-1,y=c===0,g=c<0,m=t%2!==0;return{nextN:h,offset:p,isZero:y,isNeg:g,isNegF:m,offsetF:f}}function rM(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,o)=>{if(!(n instanceof t))throw new Error("invalid point at index "+o)})}function nM(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,o)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+o)})}const ym=new WeakMap,gO=new WeakMap;function gm(e){return gO.get(e)||1}function iM(e,t){return{constTimeNegate:dm,hasPrecomputes(n){return gm(n)!==1},unsafeLadder(n,o,s=e.ZERO){let u=n;for(;o>V2;)o&Ab&&(s=s.add(u)),u=u.double(),o>>=Ab;return s},precomputeWindow(n,o){const{windows:s,windowSize:u}=pm(o,t),l=[];let c=n,h=c;for(let f=0;f<s;f++){h=c,l.push(h);for(let p=1;p<u;p++)h=h.add(c),l.push(h);c=h.double()}return l},wNAF(n,o,s){let u=e.ZERO,l=e.BASE;const c=pm(n,t);for(let h=0;h<c.windows;h++){const{nextN:f,offset:p,isZero:y,isNeg:g,isNegF:m,offsetF:w}=W2(s,h,c);s=f,y?l=l.add(dm(m,o[w])):u=u.add(dm(g,o[p]))}return{p:u,f:l}},wNAFUnsafe(n,o,s,u=e.ZERO){const l=pm(n,t);for(let c=0;c<l.windows&&s!==V2;c++){const{nextN:h,offset:f,isZero:p,isNeg:y}=W2(s,c,l);if(s=h,!p){const g=o[f];u=u.add(y?g.negate():g)}}return u},getPrecomputes(n,o,s){let u=ym.get(o);return u||(u=this.precomputeWindow(o,n),n!==1&&ym.set(o,s(u))),u},wNAFCached(n,o,s){const u=gm(n);return this.wNAF(u,this.getPrecomputes(u,n,s),o)},wNAFCachedUnsafe(n,o,s,u){const l=gm(n);return l===1?this.unsafeLadder(n,o,u):this.wNAFUnsafe(l,this.getPrecomputes(l,n,s),o,u)},setWindowSize(n,o){yO(o,t),gO.set(n,o),ym.delete(n)}}}function oM(e,t,n,o){rM(n,e),nM(o,t);const s=n.length,u=o.length;if(s!==u)throw new Error("arrays of points and scalars must have equal length");const l=e.ZERO,c=M4(BigInt(s));let h=1;c>12?h=c-3:c>4?h=c-2:c>0&&(h=2);const f=np(h),p=new Array(Number(f)+1).fill(l),y=Math.floor((t.BITS-1)/h)*h;let g=l;for(let m=y;m>=0;m-=h){p.fill(l);for(let F=0;F<u;F++){const S=o[F],M=Number(S>>BigInt(m)&f);p[M]=p[M].add(n[F])}let w=l;for(let F=p.length-1,S=l;F>0;F--)S=S.add(p[F]),w=w.add(S);if(g=g.add(w),m!==0)for(let F=0;F<h;F++)g=g.double()}return g}function mO(e){return z4(e.Fp),ip(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...lO(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function X2(e){e.lowS!==void 0&&Ec("lowS",e.lowS),e.prehash!==void 0&&Ec("prehash",e.prehash)}function sM(e){const t=mO(e);ip(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:o,a:s}=t;if(n){if(!o.eql(s,o.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class aM extends Error{constructor(t=""){super(t)}}const Oo={Err:aM,_tlv:{encode:(e,t)=>{const{Err:n}=Oo;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const o=t.length/2,s=Qh(o);if(s.length/2&128)throw new n("tlv.encode: long form length too big");const u=o>127?Qh(s.length/2|128):"";return Qh(e)+u+s+t},decode(e,t){const{Err:n}=Oo;let o=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[o++]!==e)throw new n("tlv.decode: wrong tlv");const s=t[o++],u=!!(s&128);let l=0;if(!u)l=s;else{const h=s&127;if(!h)throw new n("tlv.decode(long): indefinite length not supported");if(h>4)throw new n("tlv.decode(long): byte length is too big");const f=t.subarray(o,o+h);if(f.length!==h)throw new n("tlv.decode: length bytes not complete");if(f[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const p of f)l=l<<8|p;if(o+=h,l<128)throw new n("tlv.decode(long): not minimal encoding")}const c=t.subarray(o,o+l);if(c.length!==l)throw new n("tlv.decode: wrong value length");return{v:c,l:t.subarray(o+l)}}},_int:{encode(e){const{Err:t}=Oo;if(e<Uo)throw new t("integer: negative integers are not allowed");let n=Qh(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=Oo;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return ga(e)}},toSig(e){const{Err:t,_int:n,_tlv:o}=Oo,s=gi("signature",e),{v:u,l}=o.decode(48,s);if(l.length)throw new t("invalid signature: left bytes after parsing");const{v:c,l:h}=o.decode(2,u),{v:f,l:p}=o.decode(2,h);if(p.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(c),s:n.decode(f)}},hexFromSig(e){const{_tlv:t,_int:n}=Oo,o=t.encode(2,n.encode(e.r)),s=t.encode(2,n.encode(e.s)),u=o+s;return t.encode(48,u)}};function mm(e,t){return Sc(sf(e,t))}const Uo=BigInt(0),zr=BigInt(1);BigInt(2);const bm=BigInt(3),uM=BigInt(4);function lM(e){const t=sM(e),{Fp:n}=t,o=iw(t.n,t.nBitLength),s=t.toBytes||((I,R,T)=>{const z=R.toAffine();return $d(Uint8Array.from([4]),n.toBytes(z.x),n.toBytes(z.y))}),u=t.fromBytes||(I=>{const R=I.subarray(1),T=n.fromBytes(R.subarray(0,n.BYTES)),z=n.fromBytes(R.subarray(n.BYTES,2*n.BYTES));return{x:T,y:z}});function l(I){const{a:R,b:T}=t,z=n.sqr(I),k=n.mul(z,I);return n.add(n.add(k,n.mul(I,R)),T)}function c(I,R){const T=n.sqr(R),z=l(I);return n.eql(T,z)}if(!c(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const h=n.mul(n.pow(t.a,bm),uM),f=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(h,f)))throw new Error("bad curve params: a or b");function p(I){return nw(I,zr,t.n)}function y(I){const{allowedPrivateKeyLengths:R,nByteLength:T,wrapPrivateKey:z,n:k}=t;if(R&&typeof I!="bigint"){if(of(I)&&(I=Sc(I)),typeof I!="string"||!R.includes(I.length))throw new Error("invalid private key");I=I.padStart(T*2,"0")}let L;try{L=typeof I=="bigint"?I:ga(gi("private key",I,T))}catch{throw new Error("invalid private key, expected hex or "+T+" bytes, got "+typeof I)}return z&&(L=On(L,k)),Ou("private key",L,zr,k),L}function g(I){if(!(I instanceof F))throw new Error("ProjectivePoint expected")}const m=G2((I,R)=>{const{px:T,py:z,pz:k}=I;if(n.eql(k,n.ONE))return{x:T,y:z};const L=I.is0();R==null&&(R=L?n.ONE:n.inv(k));const U=n.mul(T,R),j=n.mul(z,R),H=n.mul(k,R);if(L)return{x:n.ZERO,y:n.ZERO};if(!n.eql(H,n.ONE))throw new Error("invZ was invalid");return{x:U,y:j}}),w=G2(I=>{if(I.is0()){if(t.allowInfinityPoint&&!n.is0(I.py))return;throw new Error("bad point: ZERO")}const{x:R,y:T}=I.toAffine();if(!n.isValid(R)||!n.isValid(T))throw new Error("bad point: x or y not FE");if(!c(R,T))throw new Error("bad point: equation left != right");if(!I.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class F{constructor(R,T,z){if(R==null||!n.isValid(R))throw new Error("x required");if(T==null||!n.isValid(T)||n.is0(T))throw new Error("y required");if(z==null||!n.isValid(z))throw new Error("z required");this.px=R,this.py=T,this.pz=z,Object.freeze(this)}static fromAffine(R){const{x:T,y:z}=R||{};if(!R||!n.isValid(T)||!n.isValid(z))throw new Error("invalid affine point");if(R instanceof F)throw new Error("projective point not allowed");const k=L=>n.eql(L,n.ZERO);return k(T)&&k(z)?F.ZERO:new F(T,z,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(R){const T=uO(n,R.map(z=>z.pz));return R.map((z,k)=>z.toAffine(T[k])).map(F.fromAffine)}static fromHex(R){const T=F.fromAffine(u(gi("pointHex",R)));return T.assertValidity(),T}static fromPrivateKey(R){return F.BASE.multiply(y(R))}static msm(R,T){return oM(F,o,R,T)}_setWindowSize(R){A.setWindowSize(this,R)}assertValidity(){w(this)}hasEvenY(){const{y:R}=this.toAffine();if(n.isOdd)return!n.isOdd(R);throw new Error("Field doesn't support isOdd")}equals(R){g(R);const{px:T,py:z,pz:k}=this,{px:L,py:U,pz:j}=R,H=n.eql(n.mul(T,j),n.mul(L,k)),P=n.eql(n.mul(z,j),n.mul(U,k));return H&&P}negate(){return new F(this.px,n.neg(this.py),this.pz)}double(){const{a:R,b:T}=t,z=n.mul(T,bm),{px:k,py:L,pz:U}=this;let j=n.ZERO,H=n.ZERO,P=n.ZERO,te=n.mul(k,k),ue=n.mul(L,L),oe=n.mul(U,U),X=n.mul(k,L);return X=n.add(X,X),P=n.mul(k,U),P=n.add(P,P),j=n.mul(R,P),H=n.mul(z,oe),H=n.add(j,H),j=n.sub(ue,H),H=n.add(ue,H),H=n.mul(j,H),j=n.mul(X,j),P=n.mul(z,P),oe=n.mul(R,oe),X=n.sub(te,oe),X=n.mul(R,X),X=n.add(X,P),P=n.add(te,te),te=n.add(P,te),te=n.add(te,oe),te=n.mul(te,X),H=n.add(H,te),oe=n.mul(L,U),oe=n.add(oe,oe),te=n.mul(oe,X),j=n.sub(j,te),P=n.mul(oe,ue),P=n.add(P,P),P=n.add(P,P),new F(j,H,P)}add(R){g(R);const{px:T,py:z,pz:k}=this,{px:L,py:U,pz:j}=R;let H=n.ZERO,P=n.ZERO,te=n.ZERO;const ue=t.a,oe=n.mul(t.b,bm);let X=n.mul(T,L),re=n.mul(z,U),pe=n.mul(k,j),le=n.add(T,z),J=n.add(L,U);le=n.mul(le,J),J=n.add(X,re),le=n.sub(le,J),J=n.add(T,k);let G=n.add(L,j);return J=n.mul(J,G),G=n.add(X,pe),J=n.sub(J,G),G=n.add(z,k),H=n.add(U,j),G=n.mul(G,H),H=n.add(re,pe),G=n.sub(G,H),te=n.mul(ue,J),H=n.mul(oe,pe),te=n.add(H,te),H=n.sub(re,te),te=n.add(re,te),P=n.mul(H,te),re=n.add(X,X),re=n.add(re,X),pe=n.mul(ue,pe),J=n.mul(oe,J),re=n.add(re,pe),pe=n.sub(X,pe),pe=n.mul(ue,pe),J=n.add(J,pe),X=n.mul(re,J),P=n.add(P,X),X=n.mul(G,J),H=n.mul(le,H),H=n.sub(H,X),X=n.mul(le,re),te=n.mul(G,te),te=n.add(te,X),new F(H,P,te)}subtract(R){return this.add(R.negate())}is0(){return this.equals(F.ZERO)}wNAF(R){return A.wNAFCached(this,R,F.normalizeZ)}multiplyUnsafe(R){const{endo:T,n:z}=t;Ou("scalar",R,Uo,z);const k=F.ZERO;if(R===Uo)return k;if(this.is0()||R===zr)return this;if(!T||A.hasPrecomputes(this))return A.wNAFCachedUnsafe(this,R,F.normalizeZ);let{k1neg:L,k1:U,k2neg:j,k2:H}=T.splitScalar(R),P=k,te=k,ue=this;for(;U>Uo||H>Uo;)U&zr&&(P=P.add(ue)),H&zr&&(te=te.add(ue)),ue=ue.double(),U>>=zr,H>>=zr;return L&&(P=P.negate()),j&&(te=te.negate()),te=new F(n.mul(te.px,T.beta),te.py,te.pz),P.add(te)}multiply(R){const{endo:T,n:z}=t;Ou("scalar",R,zr,z);let k,L;if(T){const{k1neg:U,k1:j,k2neg:H,k2:P}=T.splitScalar(R);let{p:te,f:ue}=this.wNAF(j),{p:oe,f:X}=this.wNAF(P);te=A.constTimeNegate(U,te),oe=A.constTimeNegate(H,oe),oe=new F(n.mul(oe.px,T.beta),oe.py,oe.pz),k=te.add(oe),L=ue.add(X)}else{const{p:U,f:j}=this.wNAF(R);k=U,L=j}return F.normalizeZ([k,L])[0]}multiplyAndAddUnsafe(R,T,z){const k=F.BASE,L=(j,H)=>H===Uo||H===zr||!j.equals(k)?j.multiplyUnsafe(H):j.multiply(H),U=L(this,T).add(L(R,z));return U.is0()?void 0:U}toAffine(R){return m(this,R)}isTorsionFree(){const{h:R,isTorsionFree:T}=t;if(R===zr)return!0;if(T)return T(F,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:R,clearCofactor:T}=t;return R===zr?this:T?T(F,this):this.multiplyUnsafe(t.h)}toRawBytes(R=!0){return Ec("isCompressed",R),this.assertValidity(),s(F,this,R)}toHex(R=!0){return Ec("isCompressed",R),Sc(this.toRawBytes(R))}}F.BASE=new F(t.Gx,t.Gy,n.ONE),F.ZERO=new F(n.ZERO,n.ONE,n.ZERO);const{endo:S,nBitLength:M}=t,A=iM(F,S?Math.ceil(M/2):M);return{CURVE:t,ProjectivePoint:F,normPrivateKeyToScalar:y,weierstrassEquation:l,isWithinCurveOrder:p}}function cM(e){const t=mO(e);return ip(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function fM(e){const t=cM(e),{Fp:n,n:o,nByteLength:s,nBitLength:u}=t,l=n.BYTES+1,c=2*n.BYTES+1;function h(oe){return On(oe,o)}function f(oe){return bb(oe,o)}const{ProjectivePoint:p,normPrivateKeyToScalar:y,weierstrassEquation:g,isWithinCurveOrder:m}=lM({...t,toBytes(oe,X,re){const pe=X.toAffine(),le=n.toBytes(pe.x),J=$d;return Ec("isCompressed",re),re?J(Uint8Array.from([X.hasEvenY()?2:3]),le):J(Uint8Array.from([4]),le,n.toBytes(pe.y))},fromBytes(oe){const X=oe.length,re=oe[0],pe=oe.subarray(1);if(X===l&&(re===2||re===3)){const le=ga(pe);if(!nw(le,zr,n.ORDER))throw new Error("Point is not on curve");const J=g(le);let G;try{G=n.sqrt(J)}catch(W){const $=W instanceof Error?": "+W.message:"";throw new Error("Point is not on curve"+$)}const Q=(G&zr)===zr;return(re&1)===1!==Q&&(G=n.neg(G)),{x:le,y:G}}else if(X===c&&re===4){const le=n.fromBytes(pe.subarray(0,n.BYTES)),J=n.fromBytes(pe.subarray(n.BYTES,2*n.BYTES));return{x:le,y:J}}else{const le=l,J=c;throw new Error("invalid Point, expected length of "+le+", or uncompressed "+J+", got "+X)}}});function w(oe){const X=o>>zr;return oe>X}function F(oe){return w(oe)?h(-oe):oe}const S=(oe,X,re)=>ga(oe.slice(X,re));class M{constructor(X,re,pe){Ou("r",X,zr,o),Ou("s",re,zr,o),this.r=X,this.s=re,pe!=null&&(this.recovery=pe),Object.freeze(this)}static fromCompact(X){const re=s;return X=gi("compactSignature",X,re*2),new M(S(X,0,re),S(X,re,2*re))}static fromDER(X){const{r:re,s:pe}=Oo.toSig(gi("DER",X));return new M(re,pe)}assertValidity(){}addRecoveryBit(X){return new M(this.r,this.s,X)}recoverPublicKey(X){const{r:re,s:pe,recovery:le}=this,J=k(gi("msgHash",X));if(le==null||![0,1,2,3].includes(le))throw new Error("recovery id invalid");const G=le===2||le===3?re+t.n:re;if(G>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const Q=(le&1)===0?"02":"03",K=p.fromHex(Q+mm(G,n.BYTES)),W=f(G),$=h(-J*W),fe=h(pe*W),ae=p.BASE.multiplyAndAddUnsafe(K,$,fe);if(!ae)throw new Error("point at infinify");return ae.assertValidity(),ae}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new M(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return zd(this.toDERHex())}toDERHex(){return Oo.hexFromSig(this)}toCompactRawBytes(){return zd(this.toCompactHex())}toCompactHex(){const X=s;return mm(this.r,X)+mm(this.s,X)}}const A={isValidPrivateKey(oe){try{return y(oe),!0}catch{return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const oe=fO(t.n);return q4(t.randomBytes(oe),t.n)},precompute(oe=8,X=p.BASE){return X._setWindowSize(oe),X.multiply(BigInt(3)),X}};function I(oe,X=!0){return p.fromPrivateKey(oe).toRawBytes(X)}function R(oe){if(typeof oe=="bigint")return!1;if(oe instanceof p)return!0;const re=gi("key",oe).length,pe=n.BYTES,le=pe+1,J=2*pe+1;if(!(t.allowedPrivateKeyLengths||s===le))return re===le||re===J}function T(oe,X,re=!0){if(R(oe)===!0)throw new Error("first arg must be private key");if(R(X)===!1)throw new Error("second arg must be public key");return p.fromHex(X).multiply(y(oe)).toRawBytes(re)}const z=t.bits2int||function(oe){if(oe.length>8192)throw new Error("input is too large");const X=ga(oe),re=oe.length*8-u;return re>0?X>>BigInt(re):X},k=t.bits2int_modN||function(oe){return h(z(oe))},L=np(u);function U(oe){return Ou("num < 2^"+u,oe,Uo,L),sf(oe,s)}function j(oe,X,re=H){if(["recovered","canonical"].some(Z=>Z in re))throw new Error("sign() legacy options not supported");const{hash:pe,randomBytes:le}=t;let{lowS:J,prehash:G,extraEntropy:Q}=re;J==null&&(J=!0),oe=gi("msgHash",oe),X2(re),G&&(oe=gi("prehashed msgHash",pe(oe)));const K=k(oe),W=y(X),$=[U(W),U(K)];if(Q!=null&&Q!==!1){const Z=Q===!0?le(n.BYTES):Q;$.push(gi("extraEntropy",Z))}const fe=$d(...$),ae=K;function ne(Z){const O=z(Z);if(!m(O))return;const q=f(O),Y=p.BASE.multiply(O).toAffine(),se=h(Y.x);if(se===Uo)return;const ye=h(q*h(ae+se*W));if(ye===Uo)return;let ee=(Y.x===se?0:2)|Number(Y.y&zr),_=ye;return J&&w(ye)&&(_=F(ye),ee^=1),new M(se,_,ee)}return{seed:fe,k2sig:ne}}const H={lowS:t.lowS,prehash:!1},P={lowS:t.lowS,prehash:!1};function te(oe,X,re=H){const{seed:pe,k2sig:le}=j(oe,X,re),J=t;return U4(J.hash.outputLen,J.nByteLength,J.hmac)(pe,le)}p.BASE._setWindowSize(8);function ue(oe,X,re,pe=P){var ee;const le=oe;X=gi("msgHash",X),re=gi("publicKey",re);const{lowS:J,prehash:G,format:Q}=pe;if(X2(pe),"strict"in pe)throw new Error("options.strict was renamed to lowS");if(Q!==void 0&&Q!=="compact"&&Q!=="der")throw new Error("format must be compact or der");const K=typeof le=="string"||of(le),W=!K&&!Q&&typeof le=="object"&&le!==null&&typeof le.r=="bigint"&&typeof le.s=="bigint";if(!K&&!W)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let $,fe;try{if(W&&($=new M(le.r,le.s)),K){try{Q!=="compact"&&($=M.fromDER(le))}catch(_){if(!(_ instanceof Oo.Err))throw _}!$&&Q!=="der"&&($=M.fromCompact(le))}fe=p.fromHex(re)}catch{return!1}if(!$||J&&$.hasHighS())return!1;G&&(X=t.hash(X));const{r:ae,s:ne}=$,Z=k(X),O=f(ne),q=h(Z*O),Y=h(ae*O),se=(ee=p.BASE.multiplyAndAddUnsafe(fe,q,Y))==null?void 0:ee.toAffine();return se?h(se.x)===ae:!1}return{CURVE:t,getPublicKey:I,getSharedSecret:T,sign:te,verify:ue,ProjectivePoint:p,Signature:M,utils:A}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hM(e){return{hash:e,hmac:(t,...n)=>pO(e,t,T4(...n)),randomBytes:B4}}function dM(e,t){const n=o=>fM({...e,...hM(o)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const bO=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Z2=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),pM=BigInt(0),yM=BigInt(1),wb=BigInt(2),J2=(e,t)=>(e+t/wb)/t;function gM(e){const t=bO,n=BigInt(3),o=BigInt(6),s=BigInt(11),u=BigInt(22),l=BigInt(23),c=BigInt(44),h=BigInt(88),f=e*e*e%t,p=f*f*e%t,y=yi(p,n,t)*p%t,g=yi(y,n,t)*p%t,m=yi(g,wb,t)*f%t,w=yi(m,s,t)*m%t,F=yi(w,u,t)*w%t,S=yi(F,c,t)*F%t,M=yi(S,h,t)*S%t,A=yi(M,c,t)*F%t,I=yi(A,n,t)*p%t,R=yi(I,l,t)*w%t,T=yi(R,o,t)*f%t,z=yi(T,wb,t);if(!vb.eql(vb.sqr(z),e))throw new Error("Cannot find square root");return z}const vb=iw(bO,void 0,void 0,{sqrt:gM}),af=dM({a:pM,b:BigInt(7),Fp:vb,n:Z2,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Z2,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),o=-yM*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),u=n,l=BigInt("0x100000000000000000000000000000000"),c=J2(u*e,t),h=J2(-o*e,t);let f=On(e-c*n-h*s,t),p=On(-c*o-h*u,t);const y=f>l,g=p>l;if(y&&(f=t-f),g&&(p=t-p),f>l||p>l)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:y,k1:f,k2neg:g,k2:p}}}},hO),mM=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:af},Symbol.toStringTag,{value:"Module"})),AO="2.38.6";let nc={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${AO}`};class Ze extends Error{constructor(t,n={}){var c;const o=(()=>{var h;return n.cause instanceof Ze?n.cause.details:(h=n.cause)!=null&&h.message?n.cause.message:n.details})(),s=n.cause instanceof Ze&&n.cause.docsPath||n.docsPath,u=(c=nc.getDocsUrl)==null?void 0:c.call(nc,{...n,docsPath:s}),l=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...u?[`Docs: ${u}`]:[],...o?[`Details: ${o}`]:[],...nc.version?[`Version: ${nc.version}`]:[]].join(`
|
|
39
39
|
`);super(l,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=o,this.docsPath=s,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=AO}walk(t){return wO(this,t)}}function wO(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?wO(e.cause,t):t?null:e}class vO extends Ze{constructor({max:t,min:n,signed:o,size:s,value:u}){super(`Number "${u}" is not in safe ${s?`${s*8}-bit ${o?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}}class bM extends Ze{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class AM extends Ze{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function Po(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function pr(e){return Po(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function Bs(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,o=0;for(let s=0;s<n.length-1&&n[t==="left"?s:n.length-s-1].toString()==="0";s++)o++;return n=t==="left"?n.slice(o):n.slice(0,n.length-o),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}class xO extends Ze{constructor({offset:t,position:n,size:o}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${o}).`,{name:"SliceOffsetOutOfBoundsError"})}}class EO extends Ze{constructor({size:t,targetSize:n,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}}class eI extends Ze{constructor({size:t,targetSize:n,type:o}){super(`${o.charAt(0).toUpperCase()}${o.slice(1).toLowerCase()} is expected to be ${n} ${o} long, but is ${t} ${o} long.`,{name:"InvalidBytesLengthError"})}}function Ku(e,{dir:t,size:n=32}={}){return typeof e=="string"?Ts(e,{dir:t,size:n}):wM(e,{dir:t,size:n})}function Ts(e,{dir:t,size:n=32}={}){if(n===null)return e;const o=e.replace("0x","");if(o.length>n*2)throw new EO({size:Math.ceil(o.length/2),targetSize:n,type:"hex"});return`0x${o[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function wM(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new EO({size:e.length,targetSize:n,type:"bytes"});const o=new Uint8Array(n);for(let s=0;s<n;s++){const u=t==="right";o[u?s:n-s-1]=e[u?s:e.length-s-1]}return o}const vM=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Wi(e,t={}){return typeof e=="number"||typeof e=="bigint"?it(e,t):typeof e=="string"?Nu(e,t):typeof e=="boolean"?SO(e,t):dn(e,t)}function SO(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(eo(n,{size:t.size}),Ku(n,{size:t.size})):n}function dn(e,t={}){let n="";for(let s=0;s<e.length;s++)n+=vM[e[s]];const o=`0x${n}`;return typeof t.size=="number"?(eo(o,{size:t.size}),Ku(o,{dir:"right",size:t.size})):o}function it(e,t={}){const{signed:n,size:o}=t,s=BigInt(e);let u;o?n?u=(1n<<BigInt(o)*8n-1n)-1n:u=2n**(BigInt(o)*8n)-1n:typeof e=="number"&&(u=BigInt(Number.MAX_SAFE_INTEGER));const l=typeof u=="bigint"&&n?-u-1n:0;if(u&&s>u||s<l){const h=typeof e=="bigint"?"n":"";throw new vO({max:u?`${u}${h}`:void 0,min:`${l}${h}`,signed:n,size:o,value:`${e}${h}`})}const c=`0x${(n&&s<0?(1n<<BigInt(o*8))+BigInt(s):s).toString(16)}`;return o?Ku(c,{size:o}):c}const xM=new TextEncoder;function Nu(e,t={}){const n=xM.encode(e);return dn(n,t)}const EM=new TextEncoder;function ow(e,t={}){return typeof e=="number"||typeof e=="bigint"?IM(e,t):typeof e=="boolean"?SM(e,t):Po(e)?Bi(e,t):IO(e,t)}function SM(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(eo(n,{size:t.size}),Ku(n,{size:t.size})):n}const xo={zero:48,nine:57,A:65,F:70,a:97,f:102};function tI(e){if(e>=xo.zero&&e<=xo.nine)return e-xo.zero;if(e>=xo.A&&e<=xo.F)return e-(xo.A-10);if(e>=xo.a&&e<=xo.f)return e-(xo.a-10)}function Bi(e,t={}){let n=e;t.size&&(eo(n,{size:t.size}),n=Ku(n,{dir:"right",size:t.size}));let o=n.slice(2);o.length%2&&(o=`0${o}`);const s=o.length/2,u=new Uint8Array(s);for(let l=0,c=0;l<s;l++){const h=tI(o.charCodeAt(c++)),f=tI(o.charCodeAt(c++));if(h===void 0||f===void 0)throw new Ze(`Invalid byte sequence ("${o[c-2]}${o[c-1]}" in "${o}").`);u[l]=h*16+f}return u}function IM(e,t){const n=it(e,t);return Bi(n)}function IO(e,t={}){const n=EM.encode(e);return typeof t.size=="number"?(eo(n,{size:t.size}),Ku(n,{dir:"right",size:t.size})):n}function eo(e,{size:t}){if(pr(e)>t)throw new AM({givenSize:pr(e),maxSize:t})}function Ri(e,t={}){const{signed:n}=t;t.size&&eo(e,{size:t.size});const o=BigInt(e);if(!n)return o;const s=(e.length-2)/2,u=(1n<<BigInt(s)*8n-1n)-1n;return o<=u?o:o-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function Xi(e,t={}){return Number(Ri(e,t))}async function _O(e,{address:t,blockTag:n="latest",blockNumber:o}){const s=await e.request({method:"eth_getTransactionCount",params:[t,typeof o=="bigint"?it(o):n]},{dedupe:!!o});return Xi(s)}class uf extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const o=this.keys().next().value;o&&this.delete(o)}return this}}function _M({r:e,s:t,to:n="hex",v:o,yParity:s}){const u=(()=>{if(s===0||s===1)return s;if(o&&(o===27n||o===28n||o>=35n))return o%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),l=`0x${new af.Signature(Ri(e),Ri(t)).toCompactHex()}${u===0?"1b":"1c"}`;return n==="hex"?l:Bi(l)}function CM(){return Wi(af.utils.randomPrivateKey())}class An extends Ze{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}const FM=BigInt(0),ic=BigInt(1),OM=BigInt(2),TM=BigInt(7),BM=BigInt(256),RM=BigInt(113),CO=[],FO=[],OO=[];for(let e=0,t=ic,n=1,o=0;e<24;e++){[n,o]=[o,(2*n+3*o)%5],CO.push(2*(5*o+n)),FO.push((e+1)*(e+2)/2%64);let s=FM;for(let u=0;u<7;u++)t=(t<<ic^(t>>TM)*RM)%BM,t&OM&&(s^=ic<<(ic<<BigInt(u))-ic);OO.push(s)}const TO=V4(OO,!0),MM=TO[0],UM=TO[1],rI=(e,t,n)=>n>32?Z4(e,t,n):W4(e,t,n),nI=(e,t,n)=>n>32?J4(e,t,n):X4(e,t,n);function jM(e,t=24){const n=new Uint32Array(10);for(let o=24-t;o<24;o++){for(let l=0;l<10;l++)n[l]=e[l]^e[l+10]^e[l+20]^e[l+30]^e[l+40];for(let l=0;l<10;l+=2){const c=(l+8)%10,h=(l+2)%10,f=n[h],p=n[h+1],y=rI(f,p,1)^n[c],g=nI(f,p,1)^n[c+1];for(let m=0;m<50;m+=10)e[l+m]^=y,e[l+m+1]^=g}let s=e[2],u=e[3];for(let l=0;l<24;l++){const c=FO[l],h=rI(s,u,c),f=nI(s,u,c),p=CO[l];s=e[p],u=e[p+1],e[p]=h,e[p+1]=f}for(let l=0;l<50;l+=10){for(let c=0;c<10;c++)n[c]=e[l+c];for(let c=0;c<10;c++)e[l+c]^=~n[(c+2)%10]&n[(c+4)%10]}e[0]^=MM[o],e[1]^=UM[o]}ju(n)}class sw extends ew{constructor(t,n,o,s=!1,u=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=o,this.enableXOF=s,this.rounds=u,xc(o),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=I4(this.state)}clone(){return this._cloneInto()}keccak(){q2(this.state32),jM(this.state32,this.rounds),q2(this.state32),this.posOut=0,this.pos=0}update(t){Uu(this),t=rp(t),wa(t);const{blockLen:n,state:o}=this,s=t.length;for(let u=0;u<s;){const l=Math.min(n-this.pos,s-u);for(let c=0;c<l;c++)o[this.pos++]^=t[u++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:o,blockLen:s}=this;t[o]^=n,(n&128)!==0&&o===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){Uu(this,!1),wa(t),this.finish();const n=this.state,{blockLen:o}=this;for(let s=0,u=t.length;s<u;){this.posOut>=o&&this.keccak();const l=Math.min(o-this.posOut,u-s);t.set(n.subarray(this.posOut,this.posOut+l),s),this.posOut+=l,s+=l}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return xc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ZF(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,ju(this.state)}_cloneInto(t){const{blockLen:n,suffix:o,outputLen:s,rounds:u,enableXOF:l}=this;return t||(t=new sw(n,o,s,l,u)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=u,t.suffix=o,t.outputLen=s,t.enableXOF=l,t.destroyed=this.destroyed,t}}const NM=(e,t,n)=>JF(()=>new sw(t,e,n)),DM=NM(1,136,256/8);function Vn(e,t){const n=t||"hex",o=DM(Po(e,{strict:!1})?ow(e):e);return n==="bytes"?o:Wi(o)}const Am=new uf(8192);function lf(e,t){if(Am.has(`${e}.${t}`))return Am.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),o=Vn(IO(n),"bytes"),s=n.split("");for(let l=0;l<40;l+=2)o[l>>1]>>4>=8&&s[l]&&(s[l]=s[l].toUpperCase()),(o[l>>1]&15)>=8&&s[l+1]&&(s[l+1]=s[l+1].toUpperCase());const u=`0x${s.join("")}`;return Am.set(`${e}.${t}`,u),u}function PM(e,t){if(!Hr(e,{strict:!1}))throw new An({address:e});return lf(e,t)}const kM=/^0x[a-fA-F0-9]{40}$/,wm=new uf(8192);function Hr(e,t){const{strict:n=!0}=t??{},o=`${e}.${n}`;if(wm.has(o))return wm.get(o);const s=kM.test(e)?e.toLowerCase()===e?!0:n?lf(e)===e:!0:!1;return wm.set(o,s),s}function LM(e){if(typeof e=="string"){if(!Hr(e,{strict:!1}))throw new An({address:e});return{address:e,type:"json-rpc"}}if(!Hr(e.address,{strict:!1}))throw new An({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,signAuthorization:e.signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}function BO(e){const t=Vn(`0x${e.substring(4)}`).substring(26);return lf(`0x${t}`)}let vm=!1;async function cf({hash:e,privateKey:t,to:n="object"}){const{r:o,s,recovery:u}=af.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:Po(vm,{strict:!1})?Bi(vm):vm}),l={r:it(o,{size:32}),s:it(s,{size:32}),v:u?28n:27n,yParity:u};return n==="bytes"||n==="hex"?_M({...l,to:n}):l}function Zi(e){return typeof e[0]=="string"?Rs(e):zM(e)}function zM(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let o=0;for(const s of e)n.set(s,o),o+=s.length;return n}function Rs(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}class iI extends Ze{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class $M extends Ze{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class qM extends Ze{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const HM={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new qM({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new $M({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new iI({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new iI({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function aw(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(HM);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function va(e,t="hex"){const n=RO(e),o=aw(new Uint8Array(n.length));return n.encode(o),t==="hex"?dn(o.bytes):o.bytes}function RO(e){return Array.isArray(e)?QM(e.map(t=>RO(t))):GM(e)}function QM(e){const t=e.reduce((s,u)=>s+u.length,0),n=MO(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:u}of e)u(s)}}}function GM(e){const t=typeof e=="string"?Bi(e):e,n=MO(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(183+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function MO(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Ze("Length is too large.")}function UO(e){const{chainId:t,nonce:n,to:o}=e,s=e.contractAddress??e.address,u=Vn(Rs(["0x05",va([t?it(t):"0x",s,n?it(n):"0x"])]));return o==="bytes"?Bi(u):u}async function KM(e){const{chainId:t,nonce:n,privateKey:o,to:s="object"}=e,u=e.contractAddress??e.address,l=await cf({hash:UO({address:u,chainId:t,nonce:n}),privateKey:o,to:s});return s==="object"?{address:u,chainId:t,nonce:n,...l}:l}const YM=`Ethereum Signed Message:
|
|
40
40
|
`;function VM(e){const t=typeof e=="string"?Nu(e):typeof e.raw=="string"?e.raw:dn(e.raw),n=Nu(`${YM}${pr(t)}`);return Zi([n,t])}function WM(e,t){return Vn(VM(e),t)}async function XM({message:e,privateKey:t}){return await cf({hash:WM(e),privateKey:t,to:"hex"})}const ZM={gwei:9,wei:18},JM={ether:-9,wei:9};function jO(e,t){let n=e.toString();const o=n.startsWith("-");o&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,u]=[n.slice(0,n.length-t),n.slice(n.length-t)];return u=u.replace(/(0+)$/,""),`${o?"-":""}${s||"0"}${u?`.${u}`:""}`}function NO(e,t="wei"){return jO(e,ZM[t])}function Ti(e,t="wei"){return jO(e,JM[t])}function op(e){const t=Object.entries(e).map(([o,s])=>s===void 0||s===!1?null:[o,s]).filter(Boolean),n=t.reduce((o,[s])=>Math.max(o,s.length),0);return t.map(([o,s])=>` ${`${o}:`.padEnd(n+1)} ${s}`).join(`
|
|
41
41
|
`)}class eU extends Ze{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
|
|
@@ -58,7 +58,7 @@ Error generating stack: `+d.message+`
|
|
|
58
58
|
`):`The contract function "${o}" reverted.`,{cause:u,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=n,this.reason=h,this.signature=f}}class Bj extends Ze{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class Rj extends Ze{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class bc extends Ze{constructor({body:t,cause:n,details:o,headers:s,status:u,url:l}){super("HTTP request failed.",{cause:n,details:o,metaMessages:[u&&`Status: ${u}`,`URL: ${Aw(l)}`,t&&`Request body: ${Mn(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=s,this.status=u,this.url=l}}class ww extends Ze{constructor({body:t,error:n,url:o}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${Aw(o)}`,`Request body: ${Mn(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data}}class hI extends Ze{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Aw(n)}`,`Request body: ${Mn(t)}`],name:"TimeoutError"})}}const Mj=-1;class Pn extends Ze{constructor(t,{code:n,docsPath:o,metaMessages:s,name:u,shortMessage:l}){super(l,{cause:t,docsPath:o,metaMessages:s||(t==null?void 0:t.metaMessages),name:u||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=u||t.name,this.code=t instanceof ww?t.code:n??Mj}}class ri extends Pn{constructor(t,n){super(t,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class Fc extends Pn{constructor(t){super(t,{code:Fc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Fc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Oc extends Pn{constructor(t){super(t,{code:Oc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Oc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Tc extends Pn{constructor(t,{method:n}={}){super(t,{code:Tc.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(Tc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Bc extends Pn{constructor(t){super(t,{code:Bc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
|
|
59
59
|
`)})}}Object.defineProperty(Bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ea extends Pn{constructor(t){super(t,{code:Ea.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Ea,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Rc extends Pn{constructor(t){super(t,{code:Rc.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
|
|
60
60
|
`)})}}Object.defineProperty(Rc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Mc extends Pn{constructor(t){super(t,{code:Mc.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Uc extends Pn{constructor(t){super(t,{code:Uc.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Uc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class jc extends Pn{constructor(t){super(t,{code:jc.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(jc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class ha extends Pn{constructor(t,{method:n}={}){super(t,{code:ha.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(ha,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Pu extends Pn{constructor(t){super(t,{code:Pu.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Pu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Nc extends Pn{constructor(t){super(t,{code:Nc.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Nc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Bu extends ri{constructor(t){super(t,{code:Bu.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(Bu,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Dc extends ri{constructor(t){super(t,{code:Dc.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Dc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Pc extends ri{constructor(t,{method:n}={}){super(t,{code:Pc.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(Pc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class kc extends ri{constructor(t){super(t,{code:kc.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Lc extends ri{constructor(t){super(t,{code:Lc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Lc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class zc extends ri{constructor(t){super(t,{code:zc.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(zc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class ku extends ri{constructor(t){super(t,{code:ku.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(ku,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class $c extends ri{constructor(t){super(t,{code:$c.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty($c,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class qc extends ri{constructor(t){super(t,{code:qc.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(qc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Hc extends ri{constructor(t){super(t,{code:Hc.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Hc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Qc extends ri{constructor(t){super(t,{code:Qc.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Qc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Gc extends ri{constructor(t){super(t,{code:Gc.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Lu extends ri{constructor(t){super(t,{code:Lu.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Lu,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Uj extends Pn{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const jj=3;function Nj(e,{abi:t,address:n,args:o,docsPath:s,functionName:u,sender:l}){const c=e instanceof Rj?e:e instanceof Ze?e.walk(w=>"data"in w)||e.walk():{},{code:h,data:f,details:p,message:y,shortMessage:g}=c,m=e instanceof pw?new Bj({functionName:u}):[jj,Ea.code].includes(h)&&(f||p||y||g)?new Tj({abi:t,data:typeof f=="object"?f.data:f,functionName:u,message:c instanceof ww?p:g??y}):e;return new Oj(m,{abi:t,args:o,contractAddress:n,docsPath:s,functionName:u,sender:l})}const Dj="modulepreload",Pj=function(e){return"/"+e},dI={},kj=function(t,n,o){let s=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),h=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));s=l(n.map(f=>{if(f=Pj(f),f in dI)return;dI[f]=!0;const p=f.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${y}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":Dj,p||(g.as="script"),g.crossOrigin="",g.href=f,h&&g.setAttribute("nonce",h),document.head.appendChild(g),p)return new Promise((m,w)=>{g.addEventListener("load",m),g.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function u(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return s.then(l=>{for(const c of l||[])c.status==="rejected"&&u(c.reason);return t().catch(u)})};async function Lj({hash:e,signature:t}){const n=Po(e)?e:Wi(e),{secp256k1:o}=await kj(async()=>{const{secp256k1:l}=await Promise.resolve().then(()=>mM);return{secp256k1:l}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:f,s:p,v:y,yParity:g}=t,m=Number(g??y),w=pI(m);return new o.Signature(Ri(f),Ri(p)).addRecoveryBit(w)}const l=Po(t)?t:Wi(t);if(pr(l)!==65)throw new Error("invalid signature length");const c=Xi(`0x${l.slice(130)}`),h=pI(c);return o.Signature.fromCompact(l.substring(2,130)).addRecoveryBit(h)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function pI(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function zj({hash:e,signature:t}){return BO(await Lj({hash:e,signature:t}))}async function vw(e){const{authorization:t,signature:n}=e;return zj({hash:UO(t),signature:n??t})}class $j extends Ze{constructor(t,{account:n,docsPath:o,chain:s,data:u,gas:l,gasPrice:c,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,to:y,value:g}){var w;const m=op({from:n==null?void 0:n.address,to:y,value:typeof g<"u"&&`${NO(g)} ${((w=s==null?void 0:s.nativeCurrency)==null?void 0:w.symbol)||"ETH"}`,data:u,gas:l,gasPrice:typeof c<"u"&&`${Ti(c)} gwei`,maxFeePerGas:typeof h<"u"&&`${Ti(h)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${Ti(f)} gwei`,nonce:p});super(t.shortMessage,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function lT(e,t){const n=(e.details||"").toLowerCase(),o=e instanceof Ze?e.walk(s=>(s==null?void 0:s.code)===Iu.code):e;return o instanceof Ze?new Iu({cause:e,message:o.details}):Iu.nodeMessage.test(n)?new Iu({cause:e,message:e.details}):xa.nodeMessage.test(n)?new xa({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Eb.nodeMessage.test(n)?new Eb({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Sb.nodeMessage.test(n)?new Sb({cause:e,nonce:t==null?void 0:t.nonce}):Ib.nodeMessage.test(n)?new Ib({cause:e,nonce:t==null?void 0:t.nonce}):_b.nodeMessage.test(n)?new _b({cause:e,nonce:t==null?void 0:t.nonce}):Cb.nodeMessage.test(n)?new Cb({cause:e}):Fb.nodeMessage.test(n)?new Fb({cause:e,gas:t==null?void 0:t.gas}):Ob.nodeMessage.test(n)?new Ob({cause:e,gas:t==null?void 0:t.gas}):Tb.nodeMessage.test(n)?new Tb({cause:e}):Ic.nodeMessage.test(n)?new Ic({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new fw({cause:e})}function qj(e,{docsPath:t,...n}){const o=(()=>{const s=lT(e,n);return s instanceof fw?e:s})();return new $j(o,{docsPath:t,...n})}function xw(e,{format:t}){if(!t)return{};const n={};function o(u){const l=Object.keys(u);for(const c of l)c in e&&(n[c]=e[c]),u[c]&&typeof u[c]=="object"&&!Array.isArray(u[c])&&o(u[c])}const s=t(e||{});return o(s),n}const Hj={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function cp(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Qj(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(o=>dn(o)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=it(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=it(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=it(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=it(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=it(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=it(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Hj[e.type]),typeof e.value<"u"&&(n.value=it(e.value)),n}function Qj(e){return e.map(t=>({address:t.address,r:t.r?it(BigInt(t.r)):t.r,s:t.s?it(BigInt(t.s)):t.s,chainId:it(t.chainId),nonce:it(t.nonce),...typeof t.yParity<"u"?{yParity:it(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:it(t.v)}:{}}))}function yI(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:o})=>{if(n.length!==66)throw new eI({size:n.length,targetSize:66,type:"hex"});if(o.length!==66)throw new eI({size:o.length,targetSize:66,type:"hex"});return t[n]=o,t},{})}function Gj(e){const{balance:t,nonce:n,state:o,stateDiff:s,code:u}=e,l={};if(u!==void 0&&(l.code=u),t!==void 0&&(l.balance=it(t)),n!==void 0&&(l.nonce=it(n)),o!==void 0&&(l.state=yI(o)),s!==void 0){if(l.state)throw new Cj;l.stateDiff=yI(s)}return l}function Kj(e){if(!e)return;const t={};for(const{address:n,...o}of e){if(!Hr(n,{strict:!1}))throw new An({address:n});if(t[n])throw new _j({address:n});t[n]=Gj(o)}return t}function hf(e){const{account:t,gasPrice:n,maxFeePerGas:o,maxPriorityFeePerGas:s,to:u}=e,l=t?wn(t):void 0;if(l&&!Hr(l.address))throw new An({address:l.address});if(u&&!Hr(u))throw new An({address:u});if(typeof n<"u"&&(typeof o<"u"||typeof s<"u"))throw new eU;if(o&&o>sp)throw new xa({maxFeePerGas:o});if(s&&o&&s>o)throw new Ic({maxFeePerGas:o,maxPriorityFeePerGas:s})}class Yj extends Ze{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Ew extends Ze{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Vj extends Ze{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Ti(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class cT extends Ze{constructor({blockHash:t,blockNumber:n}){let o="Block";t&&(o=`Block at hash "${t}"`),n&&(o=`Block at number "${n}"`),super(`${o} could not be found.`,{name:"BlockNotFoundError"})}}const fT={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function hT(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?Xi(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?Xi(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?fT[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=Wj(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}function Wj(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Xj(e,t){const n=(e.transactions??[]).map(o=>typeof o=="string"?o:hT(o));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function Kc(e,{blockHash:t,blockNumber:n,blockTag:o=e.experimental_blockTag??"latest",includeTransactions:s}={}){var f,p,y;const u=s??!1,l=n!==void 0?it(n):void 0;let c=null;if(t?c=await e.request({method:"eth_getBlockByHash",params:[t,u]},{dedupe:!0}):c=await e.request({method:"eth_getBlockByNumber",params:[l||o,u]},{dedupe:!!l}),!c)throw new cT({blockHash:t,blockNumber:n});return(((y=(p=(f=e.chain)==null?void 0:f.formatters)==null?void 0:p.block)==null?void 0:y.format)||Xj)(c,"getBlock")}async function dT(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function Zj(e,t){var u,l;const{block:n,chain:o=e.chain,request:s}=t||{};try{const c=((u=o==null?void 0:o.fees)==null?void 0:u.maxPriorityFeePerGas)??((l=o==null?void 0:o.fees)==null?void 0:l.defaultPriorityFee);if(typeof c=="function"){const f=n||await Yt(e,Kc,"getBlock")({}),p=await c({block:f,client:e,request:s});if(p===null)throw new Error;return p}if(typeof c<"u")return c;const h=await e.request({method:"eth_maxPriorityFeePerGas"});return Ri(h)}catch{const[c,h]=await Promise.all([n?Promise.resolve(n):Yt(e,Kc,"getBlock")({}),Yt(e,dT,"getGasPrice")({})]);if(typeof c.baseFeePerGas!="bigint")throw new Ew;const f=h-c.baseFeePerGas;return f<0n?0n:f}}async function gI(e,t){var g,m;const{block:n,chain:o=e.chain,request:s,type:u="eip1559"}=t||{},l=await(async()=>{var w,F;return typeof((w=o==null?void 0:o.fees)==null?void 0:w.baseFeeMultiplier)=="function"?o.fees.baseFeeMultiplier({block:n,client:e,request:s}):((F=o==null?void 0:o.fees)==null?void 0:F.baseFeeMultiplier)??1.2})();if(l<1)throw new Yj;const h=10**(((g=l.toString().split(".")[1])==null?void 0:g.length)??0),f=w=>w*BigInt(Math.ceil(l*h))/BigInt(h),p=n||await Yt(e,Kc,"getBlock")({});if(typeof((m=o==null?void 0:o.fees)==null?void 0:m.estimateFeesPerGas)=="function"){const w=await o.fees.estimateFeesPerGas({block:n,client:e,multiply:f,request:s,type:u});if(w!==null)return w}if(u==="eip1559"){if(typeof p.baseFeePerGas!="bigint")throw new Ew;const w=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await Zj(e,{block:p,chain:o,request:s}),F=f(p.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??F+w,maxPriorityFeePerGas:w}}return{gasPrice:(s==null?void 0:s.gasPrice)??f(await Yt(e,dT,"getGasPrice")({}))}}async function Yu(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return Xi(t)}const Sw=["blobVersionedHashes","chainId","fees","gas","nonce","type"],mI=new Map;async function fp(e,t){const{account:n=e.account,blobs:o,chain:s,gas:u,kzg:l,nonce:c,nonceManager:h,parameters:f=Sw,type:p}=t,y=n&&wn(n),g={...t,...y?{from:y==null?void 0:y.address}:{}};let m;async function w(){return m||(m=await Yt(e,Kc,"getBlock")({blockTag:"latest"}),m)}let F;async function S(){return F||(s?s.id:typeof t.chainId<"u"?t.chainId:(F=await Yt(e,Yu,"getChainId")({}),F))}if(f.includes("nonce")&&typeof c>"u"&&y)if(h){const M=await S();g.nonce=await h.consume({address:y.address,chainId:M,client:e})}else g.nonce=await Yt(e,_O,"getTransactionCount")({address:y.address,blockTag:"pending"});if((f.includes("blobVersionedHashes")||f.includes("sidecars"))&&o&&l){const M=uw({blobs:o,kzg:l});if(f.includes("blobVersionedHashes")){const A=LO({commitments:M,to:"hex"});g.blobVersionedHashes=A}if(f.includes("sidecars")){const A=lw({blobs:o,commitments:M,kzg:l}),I=QO({blobs:o,commitments:M,proofs:A,to:"hex"});g.sidecars=I}}if(f.includes("chainId")&&(g.chainId=await S()),(f.includes("fees")||f.includes("type"))&&typeof p>"u")try{g.type=VO(g)}catch{let M=mI.get(e.uid);if(typeof M>"u"){const A=await w();M=typeof(A==null?void 0:A.baseFeePerGas)=="bigint",mI.set(e.uid,M)}g.type=M?"eip1559":"legacy"}if(f.includes("fees"))if(g.type!=="legacy"&&g.type!=="eip2930"){if(typeof g.maxFeePerGas>"u"||typeof g.maxPriorityFeePerGas>"u"){const M=await w(),{maxFeePerGas:A,maxPriorityFeePerGas:I}=await gI(e,{block:M,chain:s,request:g});if(typeof t.maxPriorityFeePerGas>"u"&&t.maxFeePerGas&&t.maxFeePerGas<I)throw new Vj({maxPriorityFeePerGas:I});g.maxPriorityFeePerGas=I,g.maxFeePerGas=A}}else{if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")throw new Ew;if(typeof t.gasPrice>"u"){const M=await w(),{gasPrice:A}=await gI(e,{block:M,chain:s,request:g,type:"legacy"});g.gasPrice=A}}return f.includes("gas")&&typeof u>"u"&&(g.gas=await Yt(e,Jj,"estimateGas")({...g,account:y,prepare:(y==null?void 0:y.type)==="local"?[]:["blobVersionedHashes"]})),hf(g),delete g.parameters,g}async function Jj(e,t){var l,c,h;const{account:n=e.account,prepare:o=!0}=t,s=n?wn(n):void 0,u=(()=>{if(Array.isArray(o))return o;if((s==null?void 0:s.type)!=="local")return["blobVersionedHashes"]})();try{const{accessList:f,authorizationList:p,blobs:y,blobVersionedHashes:g,blockNumber:m,blockTag:w,data:F,gas:S,gasPrice:M,maxFeePerBlobGas:A,maxFeePerGas:I,maxPriorityFeePerGas:R,nonce:T,value:z,stateOverride:k,...L}=o?await fp(e,{...t,parameters:u}):t,j=(typeof m=="bigint"?it(m):void 0)||w,H=Kj(k),P=await(async()=>{if(L.to)return L.to;if(p&&p.length>0)return await vw({authorization:p[0]}).catch(()=>{throw new Ze("`to` is required. Could not infer from `authorizationList`")})})();hf(t);const te=(h=(c=(l=e.chain)==null?void 0:l.formatters)==null?void 0:c.transactionRequest)==null?void 0:h.format,oe=(te||cp)({...xw(L,{format:te}),account:s,accessList:f,authorizationList:p,blobs:y,blobVersionedHashes:g,data:F,gas:S,gasPrice:M,maxFeePerBlobGas:A,maxFeePerGas:I,maxPriorityFeePerGas:R,nonce:T,to:P,value:z},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:H?[oe,j??e.experimental_blockTag??"latest",H]:j?[oe,j]:[oe]}))}catch(f){throw qj(f,{...t,account:s,chain:e.chain})}}function eN(e,t){if(!Hr(e,{strict:!1}))throw new An({address:e});if(!Hr(t,{strict:!1}))throw new An({address:t});return e.toLowerCase()===t.toLowerCase()}function tN(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const xm="/docs/contract/encodeDeployData";function rN(e){const{abi:t,args:n,bytecode:o}=e;if(!n||n.length===0)return o;const s=t.find(l=>"type"in l&&l.type==="constructor");if(!s)throw new CU({docsPath:xm});if(!("inputs"in s))throw new aI({docsPath:xm});if(!s.inputs||s.inputs.length===0)throw new aI({docsPath:xm});const u=lp(s.inputs,n);return Rs([o,u])}function Iw(){let e=()=>{},t=()=>{};return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}const Em=new Map;function nN({fn:e,id:t,shouldSplitBatch:n,wait:o=0,sort:s}){const u=async()=>{const p=h();l();const y=p.map(({args:g})=>g);y.length!==0&&e(y).then(g=>{s&&Array.isArray(g)&&g.sort(s);for(let m=0;m<p.length;m++){const{resolve:w}=p[m];w==null||w([g[m],g])}}).catch(g=>{for(let m=0;m<p.length;m++){const{reject:w}=p[m];w==null||w(g)}})},l=()=>Em.delete(t),c=()=>h().map(({args:p})=>p),h=()=>Em.get(t)||[],f=p=>Em.set(t,[...h(),p]);return{flush:l,async schedule(p){const{promise:y,resolve:g,reject:m}=Iw();return(n==null?void 0:n([...c(),p]))&&u(),h().length>0?(f({args:p,resolve:g,reject:m}),y):(f({args:p,resolve:g,reject:m}),setTimeout(u,o),y)}}}const Sm=new Map,bI=new Map;let iN=0;function qd(e,t,n){const o=++iN,s=()=>Sm.get(e)||[],u=()=>{const p=s();Sm.set(e,p.filter(y=>y.id!==o))},l=()=>{const p=s();if(!p.some(g=>g.id===o))return;const y=bI.get(e);if(p.length===1&&y){const g=y();g instanceof Promise&&g.catch(()=>{})}u()},c=s();if(Sm.set(e,[...c,{id:o,fns:t}]),c&&c.length>0)return l;const h={};for(const p in t)h[p]=((...y)=>{var m,w;const g=s();if(g.length!==0)for(const F of g)(w=(m=F.fns)[p])==null||w.call(m,...y)});const f=n(h);return typeof f=="function"&&bI.set(e,f),l}async function jb(e){return new Promise(t=>setTimeout(t,e))}function pT(e,{emitOnBegin:t,initialWaitTime:n,interval:o}){let s=!0;const u=()=>s=!1;return(async()=>{let c;t&&(c=await e({unpoll:u}));const h=await(n==null?void 0:n(c))??o;await jb(h);const f=async()=>{s&&(await e({unpoll:u}),await jb(o),f())};f()})(),u}const oN=new Map,sN=new Map;function aN(e){const t=(s,u)=>({clear:()=>u.delete(s),get:()=>u.get(s),set:l=>u.set(s,l)}),n=t(e,oN),o=t(e,sN);return{clear:()=>{n.clear(),o.clear()},promise:n,response:o}}async function uN(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const o=aN(t),s=o.response.get();if(s&&n>0&&Date.now()-s.created.getTime()<n)return s.data;let u=o.promise.get();u||(u=e(),o.promise.set(u));try{const l=await u;return o.response.set({created:new Date,data:l}),l}finally{o.promise.clear()}}const lN=e=>`blockNumber.${e}`;async function cN(e,{cacheTime:t=e.cacheTime}={}){const n=await uN(()=>e.request({method:"eth_blockNumber"}),{cacheKey:lN(e.uid),cacheTime:t});return BigInt(n)}class Ms extends Ze{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
61
|
-
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class ma extends Ze{constructor({docsPath:t,metaMessages:n,type:o}){super(`Account type "${o}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}function _w({chain:e,currentChainId:t}){if(!e)throw new pU;if(t!==e.id)throw new dU({chain:e,currentChainId:t})}function Cw(e,{docsPath:t,...n}){const o=(()=>{const s=lT(e,n);return s instanceof fw?e:s})();return new iU(o,{docsPath:t,...n})}async function yT(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Im=new uf(128);async function hp(e,t){var A,I,R,T;const{account:n=e.account,chain:o=e.chain,accessList:s,authorizationList:u,blobs:l,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,type:w,value:F,...S}=t;if(typeof n>"u")throw new Ms({docsPath:"/docs/actions/wallet/sendTransaction"});const M=n?wn(n):null;try{hf(t);const z=await(async()=>{if(t.to)return t.to;if(t.to!==null&&u&&u.length>0)return await vw({authorization:u[0]}).catch(()=>{throw new Ze("`to` is required. Could not infer from `authorizationList`.")})})();if((M==null?void 0:M.type)==="json-rpc"||M===null){let k;o!==null&&(k=await Yt(e,Yu,"getChainId")({}),_w({currentChainId:k,chain:o}));const L=(R=(I=(A=e.chain)==null?void 0:A.formatters)==null?void 0:I.transactionRequest)==null?void 0:R.format,j=(L||cp)({...xw(S,{format:L}),accessList:s,account:M,authorizationList:u,blobs:l,chainId:k,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,to:z,type:w,value:F},"sendTransaction"),H=Im.get(e.uid),P=H?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:P,params:[j]},{retryCount:0})}catch(te){if(H===!1)throw te;const ue=te;if(ue.name==="InvalidInputRpcError"||ue.name==="InvalidParamsRpcError"||ue.name==="MethodNotFoundRpcError"||ue.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[j]},{retryCount:0}).then(oe=>(Im.set(e.uid,!0),oe)).catch(oe=>{const X=oe;throw X.name==="MethodNotFoundRpcError"||X.name==="MethodNotSupportedRpcError"?(Im.set(e.uid,!1),ue):X});throw ue}}if((M==null?void 0:M.type)==="local"){const k=await Yt(e,fp,"prepareTransactionRequest")({account:M,accessList:s,authorizationList:u,blobs:l,chain:o,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,nonceManager:M.nonceManager,parameters:[...Sw,"sidecars"],type:w,value:F,...S,to:z}),L=(T=o==null?void 0:o.serializers)==null?void 0:T.transaction,U=await M.signTransaction(k,{serializer:L});return await Yt(e,yT,"sendRawTransaction")({serializedTransaction:U})}throw(M==null?void 0:M.type)==="smart"?new ma({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new ma({docsPath:"/docs/actions/wallet/sendTransaction",type:M==null?void 0:M.type})}catch(z){throw z instanceof ma?z:Cw(z,{...t,account:M,chain:t.chain||void 0})}}async function Yc(e,t){return Yc.internal(e,hp,"sendTransaction",t)}(function(e){async function t(n,o,s,u){const{abi:l,account:c=n.account,address:h,args:f,dataSuffix:p,functionName:y,...g}=u;if(typeof c>"u")throw new Ms({docsPath:"/docs/contract/writeContract"});const m=c?wn(c):null,w=aT({abi:l,args:f,functionName:y});try{return await Yt(n,o,s)({data:`${w}${p?p.replace("0x",""):""}`,to:h,account:m,...g})}catch(F){throw Nj(F,{abi:l,address:h,args:f,docsPath:"/docs/contract/writeContract",functionName:y,sender:m==null?void 0:m.address})}}e.internal=t})(Yc||(Yc={}));class fN extends Ze{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function Hd(e,{delay:t=100,retryCount:n=2,shouldRetry:o=()=>!0}={}){return new Promise((s,u)=>{const l=async({count:c=0}={})=>{const h=async({error:f})=>{const p=typeof t=="function"?t({count:c,error:f}):t;p&&await jb(p),l({count:c+1})};try{const f=await e();s(f)}catch(f){if(c<n&&await o({count:c,error:f}))return h({error:f});u(f)}};l()})}const gT={"0x0":"reverted","0x1":"success"};function mT(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(o=>tN(o)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Xi(e.transactionIndex):null,status:e.status?gT[e.status]:null,type:e.type?fT[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const bT="0x5792579257925792579257925792579257925792579257925792579257925792",AT=it(0,{size:32});async function wT(e,t){const{account:n=e.account,capabilities:o,chain:s=e.chain,experimental_fallback:u,experimental_fallbackDelay:l=32,forceAtomic:c=!1,id:h,version:f="2.0.0"}=t,p=n?wn(n):null,y=t.calls.map(g=>{const m=g,w=m.abi?aT({abi:m.abi,functionName:m.functionName,args:m.args}):m.data;return{data:m.dataSuffix&&w?Zi([w,m.dataSuffix]):w,to:m.to,value:m.value?it(m.value):void 0}});try{const g=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:c,calls:y,capabilities:o,chainId:it(s.id),from:p==null?void 0:p.address,id:h,version:f}]},{retryCount:0});return typeof g=="string"?{id:g}:g}catch(g){const m=g;if(u&&(m.name==="MethodNotFoundRpcError"||m.name==="MethodNotSupportedRpcError"||m.name==="UnknownRpcError"||m.details.toLowerCase().includes("does not exist / is not available")||m.details.toLowerCase().includes("missing or invalid. request()")||m.details.toLowerCase().includes("did not match any variant of untagged enum")||m.details.toLowerCase().includes("account upgraded to unsupported contract")||m.details.toLowerCase().includes("eip-7702 not supported")||m.details.toLowerCase().includes("unsupported wc_ method")||m.details.toLowerCase().includes("feature toggled misconfigured")||m.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(o&&Object.values(o).some(A=>!A.optional)){const A="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new ku(new Ze(A,{details:A}))}if(c&&y.length>1){const M="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new Lu(new Ze(M,{details:M}))}const w=[];for(const M of y){const A=hp(e,{account:p,chain:s,data:M.data,to:M.to,value:M.value?Ri(M.value):void 0});w.push(A),l>0&&await new Promise(I=>setTimeout(I,l))}const F=await Promise.allSettled(w);if(F.every(M=>M.status==="rejected"))throw F[0].reason;const S=F.map(M=>M.status==="fulfilled"?M.value:AT);return{id:Zi([...S,it(s.id,{size:32}),bT])}}throw Cw(g,{...t,account:p,chain:t.chain})}}async function vT(e,t){async function n(p){if(p.endsWith(bT.slice(2))){const g=Bs(Bb(p,-64,-32)),m=Bb(p,0,-64).slice(2).match(/.{1,64}/g),w=await Promise.all(m.map(S=>AT.slice(2)!==S?e.request({method:"eth_getTransactionReceipt",params:[`0x${S}`]},{dedupe:!0}):void 0)),F=w.some(S=>S===null)?100:w.every(S=>(S==null?void 0:S.status)==="0x1")?200:w.every(S=>(S==null?void 0:S.status)==="0x0")?500:600;return{atomic:!1,chainId:Xi(g),receipts:w.filter(Boolean),status:F,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[p]})}const{atomic:o=!1,chainId:s,receipts:u,version:l="2.0.0",...c}=await n(t.id),[h,f]=(()=>{const p=c.status;return p>=100&&p<200?["pending",p]:p>=200&&p<300?["success",p]:p>=300&&p<700?["failure",p]:p==="CONFIRMED"?["success",200]:p==="PENDING"?["pending",100]:[void 0,p]})();return{...c,atomic:o,chainId:s?Xi(s):void 0,receipts:(u==null?void 0:u.map(p=>({...p,blockNumber:Ri(p.blockNumber),gasUsed:Ri(p.gasUsed),status:gT[p.status]})))??[],statusCode:f,status:h,version:l}}async function xT(e,t){const{id:n,pollingInterval:o=e.pollingInterval,status:s=({statusCode:F})=>F===200||F>=300,retryCount:u=4,retryDelay:l=({count:F})=>~~(1<<F)*200,timeout:c=6e4,throwOnFailure:h=!1}=t,f=Mn(["waitForCallsStatus",e.uid,n]),{promise:p,resolve:y,reject:g}=Iw();let m;const w=qd(f,{resolve:y,reject:g},F=>{const S=pT(async()=>{const M=A=>{clearTimeout(m),S(),A(),w()};try{const A=await Hd(async()=>{const I=await Yt(e,vT,"getCallsStatus")({id:n});if(h&&I.status==="failure")throw new fN(I);return I},{retryCount:u,delay:l});if(!s(A))return;M(()=>F.resolve(A))}catch(A){M(()=>F.reject(A))}},{interval:o,emitOnBegin:!0});return S});return m=c?setTimeout(()=>{w(),clearTimeout(m),g(new hN({id:n}))},c):void 0,await p}class hN extends Ze{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const Nb=256;let Kh=Nb,Yh;function ET(e=11){if(!Yh||Kh+e>Nb*2){Yh="",Kh=0;for(let t=0;t<Nb;t++)Yh+=(256+Math.random()*256|0).toString(16).substring(1)}return Yh.substring(Kh,Kh+++e)}function dN(e){const{batch:t,chain:n,ccipRead:o,key:s="base",name:u="Base Client",type:l="base"}=e,c=e.experimental_blockTag??(typeof(n==null?void 0:n.experimental_preconfirmationTime)=="number"?"pending":void 0),h=(n==null?void 0:n.blockTime)??12e3,f=Math.min(Math.max(Math.floor(h/2),500),4e3),p=e.pollingInterval??f,y=e.cacheTime??p,g=e.account?wn(e.account):void 0,{config:m,request:w,value:F}=e.transport({chain:n,pollingInterval:p}),S={...m,...F},M={account:g,batch:t,cacheTime:y,ccipRead:o,chain:n,key:s,name:u,pollingInterval:p,request:w,transport:S,type:l,uid:ET(),...c?{experimental_blockTag:c}:{}};function A(I){return R=>{const T=R(I);for(const k in M)delete T[k];const z={...I,...T};return Object.assign(z,{extend:A(z)})}}return Object.assign(M,{extend:A(M)})}const Vh=new uf(8192);function pN(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Vh.get(n))return Vh.get(n);const o=e().finally(()=>Vh.delete(n));return Vh.set(n,o),o}function yN(e,t={}){return async(n,o={})=>{var y;const{dedupe:s=!1,methods:u,retryDelay:l=150,retryCount:c=3,uid:h}={...t,...o},{method:f}=n;if((y=u==null?void 0:u.exclude)!=null&&y.includes(f))throw new ha(new Error("method not supported"),{method:f});if(u!=null&&u.include&&!u.include.includes(f))throw new ha(new Error("method not supported"),{method:f});const p=s?Nu(`${h}.${Mn(n)}`):void 0;return pN(()=>Hd(async()=>{try{return await e(n)}catch(g){const m=g;switch(m.code){case Fc.code:throw new Fc(m);case Oc.code:throw new Oc(m);case Tc.code:throw new Tc(m,{method:n.method});case Bc.code:throw new Bc(m);case Ea.code:throw new Ea(m);case Rc.code:throw new Rc(m);case Mc.code:throw new Mc(m);case Uc.code:throw new Uc(m);case jc.code:throw new jc(m);case ha.code:throw new ha(m,{method:n.method});case Pu.code:throw new Pu(m);case Nc.code:throw new Nc(m);case Bu.code:throw new Bu(m);case Dc.code:throw new Dc(m);case Pc.code:throw new Pc(m);case kc.code:throw new kc(m);case Lc.code:throw new Lc(m);case zc.code:throw new zc(m);case ku.code:throw new ku(m);case $c.code:throw new $c(m);case qc.code:throw new qc(m);case Hc.code:throw new Hc(m);case Qc.code:throw new Qc(m);case Gc.code:throw new Gc(m);case Lu.code:throw new Lu(m);case 5e3:throw new Bu(m);default:throw g instanceof Ze?g:new Uj(m)}}},{delay:({count:g,error:m})=>{var w;if(m&&m instanceof bc){const F=(w=m==null?void 0:m.headers)==null?void 0:w.get("Retry-After");if(F!=null&&F.match(/\d/))return Number.parseInt(F,10)*1e3}return~~(1<<g)*l},retryCount:c,shouldRetry:({error:g})=>gN(g)}),{enabled:s,id:p})}}function gN(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Pu.code||e.code===Ea.code:e instanceof bc&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function mN(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function bN(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:o}){return new Promise((s,u)=>{(async()=>{let l;try{const c=new AbortController;n>0&&(l=setTimeout(()=>{o&&c.abort()},n)),s(await e({signal:(c==null?void 0:c.signal)||null}))}catch(c){(c==null?void 0:c.name)==="AbortError"&&u(t),u(c)}finally{clearTimeout(l)}})()})}function AN(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const AI=AN();function wN(e,t={}){return{async request(n){var g;const{body:o,fetchFn:s=t.fetchFn??fetch,onRequest:u=t.onRequest,onResponse:l=t.onResponse,timeout:c=t.timeout??1e4}=n,h={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:f,method:p,signal:y}=h;try{const m=await bN(async({signal:F})=>{const S={...h,body:Array.isArray(o)?Mn(o.map(R=>({jsonrpc:"2.0",id:R.id??AI.take(),...R}))):Mn({jsonrpc:"2.0",id:o.id??AI.take(),...o}),headers:{"Content-Type":"application/json",...f},method:p||"POST",signal:y||(c>0?F:null)},M=new Request(e,S),A=await(u==null?void 0:u(M,S))??{...S,url:e};return await s(A.url??e,A)},{errorInstance:new hI({body:o,url:e}),timeout:c,signal:!0});l&&await l(m);let w;if((g=m.headers.get("Content-Type"))!=null&&g.startsWith("application/json"))w=await m.json();else{w=await m.text();try{w=JSON.parse(w||"{}")}catch(F){if(m.ok)throw F;w={error:w}}}if(!m.ok)throw new bc({body:o,details:Mn(w.error)||m.statusText,headers:m.headers,status:m.status,url:e});return w}catch(m){throw m instanceof bc||m instanceof hI?m:new bc({body:o,cause:m,url:e})}}}}async function vN(e,{blockHash:t,blockNumber:n,blockTag:o,hash:s,index:u,sender:l,nonce:c}){var g,m,w;const h=o||"latest",f=n!==void 0?it(n):void 0;let p=null;if(s?p=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,it(u)]},{dedupe:!0}):typeof u=="number"?p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||h,it(u)]},{dedupe:!!f}):l&&typeof c=="number"&&(p=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[l,it(c)]},{dedupe:!0})),!p)throw new DO({blockHash:t,blockNumber:n,blockTag:h,hash:s,index:u});return(((w=(m=(g=e.chain)==null?void 0:g.formatters)==null?void 0:m.transaction)==null?void 0:w.format)||hT)(p,"getTransaction")}async function _m(e,{hash:t}){var s,u,l;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new PO({hash:t});return(((l=(u=(s=e.chain)==null?void 0:s.formatters)==null?void 0:u.transactionReceipt)==null?void 0:l.format)||mT)(n,"getTransactionReceipt")}function xN(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:o,onError:s,poll:u,pollingInterval:l=e.pollingInterval}){const c=typeof u<"u"?u:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let h;return c?(()=>{const y=Mn(["watchBlockNumber",e.uid,t,n,l]);return qd(y,{onBlockNumber:o,onError:s},g=>pT(async()=>{var m;try{const w=await Yt(e,cN,"getBlockNumber")({cacheTime:0});if(h!==void 0){if(w===h)return;if(w-h>1&&n)for(let F=h+1n;F<w;F++)g.onBlockNumber(F,h),h=F}(h===void 0||w>h)&&(g.onBlockNumber(w,h),h=w)}catch(w){(m=g.onError)==null||m.call(g,w)}},{emitOnBegin:t,interval:l}))})():(()=>{const y=Mn(["watchBlockNumber",e.uid,t,n]);return qd(y,{onBlockNumber:o,onError:s},g=>{let m=!0,w=()=>m=!1;return(async()=>{try{const F=(()=>{if(e.transport.type==="fallback"){const M=e.transport.transports.find(A=>A.config.type==="webSocket"||A.config.type==="ipc");return M?M.value:e.transport}return e.transport})(),{unsubscribe:S}=await F.subscribe({params:["newHeads"],onData(M){var I;if(!m)return;const A=Ri((I=M.result)==null?void 0:I.number);g.onBlockNumber(A,h),h=A},onError(M){var A;(A=g.onError)==null||A.call(g,M)}});w=S,m||w()}catch(F){s==null||s(F)}})(),()=>w()})})()}async function EN(e,t){const{checkReplacement:n=!0,confirmations:o=1,hash:s,onReplaced:u,retryCount:l=6,retryDelay:c=({count:T})=>~~(1<<T)*200,timeout:h=18e4}=t,f=Mn(["waitForTransactionReceipt",e.uid,s]),p=(()=>{var T;return t.pollingInterval?t.pollingInterval:(T=e.chain)!=null&&T.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let y,g,m,w=!1,F,S;const{promise:M,resolve:A,reject:I}=Iw(),R=h?setTimeout(()=>{S==null||S(),F==null||F(),I(new oU({hash:s}))},h):void 0;return F=qd(f,{onReplaced:u,resolve:A,reject:I},async T=>{if(m=await Yt(e,_m,"getTransactionReceipt")({hash:s}).catch(()=>{}),m&&o<=1){clearTimeout(R),T.resolve(m),F==null||F();return}S=Yt(e,xN,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(z){const k=U=>{clearTimeout(R),S==null||S(),U(),F==null||F()};let L=z;if(!w)try{if(m){if(o>1&&(!m.blockNumber||L-m.blockNumber+1n<o))return;k(()=>T.resolve(m));return}if(n&&!y&&(w=!0,await Hd(async()=>{y=await Yt(e,vN,"getTransaction")({hash:s}),y.blockNumber&&(L=y.blockNumber)},{delay:c,retryCount:l}),w=!1),m=await Yt(e,_m,"getTransactionReceipt")({hash:s}),o>1&&(!m.blockNumber||L-m.blockNumber+1n<o))return;k(()=>T.resolve(m))}catch(U){if(U instanceof DO||U instanceof PO){if(!y){w=!1;return}try{g=y,w=!0;const j=await Hd(()=>Yt(e,Kc,"getBlock")({blockNumber:L,includeTransactions:!0}),{delay:c,retryCount:l,shouldRetry:({error:te})=>te instanceof cT});w=!1;const H=j.transactions.find(({from:te,nonce:ue})=>te===g.from&&ue===g.nonce);if(!H||(m=await Yt(e,_m,"getTransactionReceipt")({hash:H.hash}),o>1&&(!m.blockNumber||L-m.blockNumber+1n<o)))return;let P="replaced";H.to===g.to&&H.value===g.value&&H.input===g.input?P="repriced":H.from===H.to&&H.value===0n&&(P="cancelled"),k(()=>{var te;(te=T.onReplaced)==null||te.call(T,{reason:P,replacedTransaction:g,transaction:H,transactionReceipt:m}),T.resolve(m)})}catch(j){k(()=>T.reject(j))}}else k(()=>T.reject(U))}}})}),M}async function ST(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:o}){var c,h,f;const s=await e.request({method:"eth_sendRawTransactionSync",params:o?[t,it(o)]:[t]},{retryCount:0}),l=(((f=(h=(c=e.chain)==null?void 0:c.formatters)==null?void 0:h.transactionReceipt)==null?void 0:f.format)||mT)(s);if(l.status==="reverted"&&n)throw new kO({receipt:l});return l}async function SN(e,{chain:t}){const{id:n,name:o,nativeCurrency:s,rpcUrls:u,blockExplorers:l}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:it(n),chainName:o,nativeCurrency:s,rpcUrls:u.default.http,blockExplorerUrls:l?Object.values(l).map(({url:c})=>c):void 0}]},{dedupe:!0,retryCount:0})}function IN(e,t){const{abi:n,args:o,bytecode:s,...u}=t,l=rN({abi:n,args:o,bytecode:s});return hp(e,{...u,...u.authorizationList?{to:null}:{},data:l})}async function _N(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(o=>lf(o))}async function CN(e,t={}){const{account:n=e.account,chainId:o}=t,s=n?wn(n):void 0,u=o?[s==null?void 0:s.address,[it(o)]]:[s==null?void 0:s.address],l=await e.request({method:"wallet_getCapabilities",params:u}),c={};for(const[h,f]of Object.entries(l)){c[Number(h)]={};for(let[p,y]of Object.entries(f))p==="addSubAccount"&&(p="unstable_addSubAccount"),c[Number(h)][p]=y}return typeof o=="number"?c[o]:c}async function FN(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function IT(e,t){var h;const{account:n=e.account,chainId:o,nonce:s}=t;if(!n)throw new Ms({docsPath:"/docs/eip7702/prepareAuthorization"});const u=wn(n),l=(()=>{if(t.executor)return t.executor==="self"?t.executor:wn(t.executor)})(),c={address:t.contractAddress??t.address,chainId:o,nonce:s};return typeof c.chainId>"u"&&(c.chainId=((h=e.chain)==null?void 0:h.id)??await Yt(e,Yu,"getChainId")({})),typeof c.nonce>"u"&&(c.nonce=await Yt(e,_O,"getTransactionCount")({address:u.address,blockTag:"pending"}),(l==="self"||l!=null&&l.address&&eN(l.address,u.address))&&(c.nonce+=1)),c}async function ON(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(n=>PM(n))}async function TN(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function BN(e,t){const{chain:n=e.chain}=t,o=t.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3),s=await wT(e,t);return await xT(e,{...t,id:s.id,timeout:o})}const Cm=new uf(128);async function _T(e,t){var T,z,k,L;const{account:n=e.account,chain:o=e.chain,accessList:s,authorizationList:u,blobs:l,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,pollingInterval:w,throwOnReceiptRevert:F,type:S,value:M,...A}=t,I=t.timeout??Math.max(((o==null?void 0:o.blockTime)??0)*3,5e3);if(typeof n>"u")throw new Ms({docsPath:"/docs/actions/wallet/sendTransactionSync"});const R=n?wn(n):null;try{hf(t);const U=await(async()=>{if(t.to)return t.to;if(t.to!==null&&u&&u.length>0)return await vw({authorization:u[0]}).catch(()=>{throw new Ze("`to` is required. Could not infer from `authorizationList`.")})})();if((R==null?void 0:R.type)==="json-rpc"||R===null){let j;o!==null&&(j=await Yt(e,Yu,"getChainId")({}),_w({currentChainId:j,chain:o}));const H=(k=(z=(T=e.chain)==null?void 0:T.formatters)==null?void 0:z.transactionRequest)==null?void 0:k.format,te=(H||cp)({...xw(A,{format:H}),accessList:s,account:R,authorizationList:u,blobs:l,chainId:j,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,to:U,type:S,value:M},"sendTransaction"),ue=Cm.get(e.uid),oe=ue?"wallet_sendTransaction":"eth_sendTransaction",X=await(async()=>{try{return await e.request({method:oe,params:[te]},{retryCount:0})}catch(pe){if(ue===!1)throw pe;const le=pe;if(le.name==="InvalidInputRpcError"||le.name==="InvalidParamsRpcError"||le.name==="MethodNotFoundRpcError"||le.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[te]},{retryCount:0}).then(J=>(Cm.set(e.uid,!0),J)).catch(J=>{const G=J;throw G.name==="MethodNotFoundRpcError"||G.name==="MethodNotSupportedRpcError"?(Cm.set(e.uid,!1),le):G});throw le}})(),re=await Yt(e,EN,"waitForTransactionReceipt")({checkReplacement:!1,hash:X,pollingInterval:w,timeout:I});if(F&&re.status==="reverted")throw new kO({receipt:re});return re}if((R==null?void 0:R.type)==="local"){const j=await Yt(e,fp,"prepareTransactionRequest")({account:R,accessList:s,authorizationList:u,blobs:l,chain:o,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,nonceManager:R.nonceManager,parameters:[...Sw,"sidecars"],type:S,value:M,...A,to:U}),H=(L=o==null?void 0:o.serializers)==null?void 0:L.transaction,P=await R.signTransaction(j,{serializer:H});return await Yt(e,ST,"sendRawTransactionSync")({serializedTransaction:P,throwOnReceiptRevert:F})}throw(R==null?void 0:R.type)==="smart"?new ma({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new ma({docsPath:"/docs/actions/wallet/sendTransactionSync",type:R==null?void 0:R.type})}catch(U){throw U instanceof ma?U:Cw(U,{...t,account:R,chain:t.chain||void 0})}}async function RN(e,t){const{id:n}=t;await e.request({method:"wallet_showCallsStatus",params:[n]})}async function MN(e,t){const{account:n=e.account}=t;if(!n)throw new Ms({docsPath:"/docs/eip7702/signAuthorization"});const o=wn(n);if(!o.signAuthorization)throw new ma({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});const s=await IT(e,t);return o.signAuthorization(s)}async function UN(e,{account:t=e.account,message:n}){if(!t)throw new Ms({docsPath:"/docs/actions/wallet/signMessage"});const o=wn(t);if(o.signMessage)return o.signMessage({message:n});const s=typeof n=="string"?Nu(n):n.raw instanceof Uint8Array?Wi(n.raw):n.raw;return e.request({method:"personal_sign",params:[s,o.address]},{retryCount:0})}async function jN(e,t){var f,p,y,g;const{account:n=e.account,chain:o=e.chain,...s}=t;if(!n)throw new Ms({docsPath:"/docs/actions/wallet/signTransaction"});const u=wn(n);hf({account:u,...t});const l=await Yt(e,Yu,"getChainId")({});o!==null&&_w({currentChainId:l,chain:o});const c=(o==null?void 0:o.formatters)||((f=e.chain)==null?void 0:f.formatters),h=((p=c==null?void 0:c.transactionRequest)==null?void 0:p.format)||cp;return u.signTransaction?u.signTransaction({...s,chainId:l},{serializer:(g=(y=e.chain)==null?void 0:y.serializers)==null?void 0:g.transaction}):await e.request({method:"eth_signTransaction",params:[{...h({...s,account:u},"signTransaction"),chainId:it(l),from:u.address}]},{retryCount:0})}async function NN(e,t){const{account:n=e.account,domain:o,message:s,primaryType:u}=t;if(!n)throw new Ms({docsPath:"/docs/actions/wallet/signTypedData"});const l=wn(n),c={EIP712Domain:JO({domain:o}),...t.types};if(ZO({domain:o,message:s,primaryType:u,types:c}),l.signTypedData)return l.signTypedData({domain:o,message:s,primaryType:u,types:c});const h=WU({domain:o,message:s,primaryType:u,types:c});return e.request({method:"eth_signTypedData_v4",params:[l.address,h]},{retryCount:0})}async function DN(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:it(t)}]},{retryCount:0})}async function PN(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}async function kN(e,t){return Yc.internal(e,_T,"sendTransactionSync",t)}function LN(e){return{addChain:t=>SN(e,t),deployContract:t=>IN(e,t),getAddresses:()=>_N(e),getCallsStatus:t=>vT(e,t),getCapabilities:t=>CN(e,t),getChainId:()=>Yu(e),getPermissions:()=>FN(e),prepareAuthorization:t=>IT(e,t),prepareTransactionRequest:t=>fp(e,t),requestAddresses:()=>ON(e),requestPermissions:t=>TN(e,t),sendCalls:t=>wT(e,t),sendCallsSync:t=>BN(e,t),sendRawTransaction:t=>yT(e,t),sendRawTransactionSync:t=>ST(e,t),sendTransaction:t=>hp(e,t),sendTransactionSync:t=>_T(e,t),showCallsStatus:t=>RN(e,t),signAuthorization:t=>MN(e,t),signMessage:t=>UN(e,t),signTransaction:t=>jN(e,t),signTypedData:t=>NN(e,t),switchChain:t=>DN(e,t),waitForCallsStatus:t=>xT(e,t),watchAsset:t=>PN(e,t),writeContract:t=>Yc(e,t),writeContractSync:t=>kN(e,t)}}function od(e){const{key:t="wallet",name:n="Wallet Client",transport:o}=e;return dN({...e,key:t,name:n,transport:o,type:"walletClient"}).extend(LN)}function zN({key:e,methods:t,name:n,request:o,retryCount:s=3,retryDelay:u=150,timeout:l,type:c},h){const f=ET();return{config:{key:e,methods:t,name:n,request:o,retryCount:s,retryDelay:u,timeout:l,type:c},request:yN(o,{methods:t,retryCount:s,retryDelay:u,uid:f}),value:h}}class $N extends Ze{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function sd(e,t={}){const{batch:n,fetchFn:o,fetchOptions:s,key:u="http",methods:l,name:c="HTTP JSON-RPC",onFetchRequest:h,onFetchResponse:f,retryDelay:p,raw:y}=t;return({chain:g,retryCount:m,timeout:w})=>{const{batchSize:F=1e3,wait:S=0}=typeof n=="object"?n:{},M=t.retryCount??m,A=w??t.timeout??1e4,I=g==null?void 0:g.rpcUrls.default.http[0];if(!I)throw new $N;const R=wN(I,{fetchFn:o,fetchOptions:s,onRequest:h,onResponse:f,timeout:A});return zN({key:u,methods:l,name:c,async request({method:T,params:z}){const k={method:T,params:z},{schedule:L}=nN({id:I,wait:S,shouldSplitBatch(P){return P.length>F},fn:P=>R.request({body:P}),sort:(P,te)=>P.id-te.id}),U=async P=>n?L(P):[await R.request({body:P})],[{error:j,result:H}]=await U(k);if(y)return{error:j,result:H};if(j)throw new ww({body:k,error:j,url:I});return H},retryCount:M,retryDelay:p,timeout:A,type:"http"},{fetchOptions:s,url:I})}}const ad=mN({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Ai={EFFECTSTREAM_API_PORT:"9999",BATCHER_PORT:"3334"},sc={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function qN(e){const t={};return e.filter(o=>o.networkType!=="ntp").forEach((o,s)=>{var y,g,m;const u=o.network,l=o.syncProtocol;let c=u.name;u.type==="evm"&&u.chainId?c=`evm_${u.chainId}`:u.type==="evm"&&u.id&&(c=`evm_${u.id}`),t[c]&&(c=`${c}_${s}`);let h;u.type==="evm"?(m=(g=(y=u.rpcUrls)==null?void 0:y.default)==null?void 0:g.http)!=null&&m[0]?h=u.rpcUrls.default.http[0]:l.chainUri&&(h=l.chainUri):(u.type==="midnight"||u.type==="avail"||u.type==="cardano")&&(h=u.nodeUrl);let f=sc.evm;u.type==="cardano"?f=sc.cardano:u.type==="midnight"?f=sc.midnight:u.name.toLowerCase().includes("arbitrum")?f=sc.evm:(u.name.toLowerCase().includes("ethereum")||u.name.toLowerCase().includes("l1"))&&(f=sc.evmParallel);const p={type:u.type.toUpperCase(),name:u.name,blockTime:u.blockTimeMS??l.pollingInterval??void 0,color:f,blocks:[],currentBlock:u.type==="evm"?5e5:1e5,rpcEndpoint:h,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1,protocolName:l.name};t[c]=p}),t}async function HN(){var s;const e=await fetch(CT);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json(),n=qN(t);return{Paima:{type:"EVM",name:"Paima Engine",blockTime:((s=t.find(u=>u.syncProtocol.name==="mainNtp"))==null?void 0:s.network.blockTimeMS)??1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...n}}const CT="http://127.0.0.1:9999/config",QN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/block-heights`,GN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/primitives`,wI=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/tables`,KN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/scheduled-data`,YN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/primitives-schema`,VN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/table-schema`,vI=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/sync-protocols`,WN=`http://localhost:${Ai.BATCHER_PORT}/send-input`,xI=`http://localhost:${Ai.BATCHER_PORT}/documentation`,EI=`http://localhost:${Ai.EFFECTSTREAM_API_PORT}/documentation`,SI="https://effectstream.github.io/docs/",XN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/addresses`;function ZN(e){return Fr(e)&&!kn(e)&&!pf(e)&&Symbol.asyncIterator in e}function kn(e){return Array.isArray(e)}function FT(e){return typeof e=="bigint"}function df(e){return typeof e=="boolean"}function Fw(e){return e instanceof globalThis.Date}function JN(e){return typeof e=="function"}function eD(e){return Fr(e)&&!kn(e)&&!pf(e)&&Symbol.iterator in e}function tD(e){return e===null}function Ji(e){return typeof e=="number"}function Fr(e){return typeof e=="object"&&e!==null}function OT(e){return e instanceof globalThis.RegExp}function br(e){return typeof e=="string"}function rD(e){return typeof e=="symbol"}function pf(e){return e instanceof globalThis.Uint8Array}function _r(e){return e===void 0}function nD(e){return e.map(t=>Qd(t))}function iD(e){return new Date(e.getTime())}function oD(e){return new Uint8Array(e)}function sD(e){return new RegExp(e.source,e.flags)}function aD(e){const t={};for(const n of Object.getOwnPropertyNames(e))t[n]=Qd(e[n]);for(const n of Object.getOwnPropertySymbols(e))t[n]=Qd(e[n]);return t}function Qd(e){return kn(e)?nD(e):Fw(e)?iD(e):pf(e)?oD(e):OT(e)?sD(e):Fr(e)?aD(e):e}function Zn(e){return Qd(e)}function Ow(e,t){return Zn(t===void 0?e:{...t,...e})}function TT(e){return _a(e)&&globalThis.Symbol.asyncIterator in e}function BT(e){return _a(e)&&globalThis.Symbol.iterator in e}function RT(e){return e instanceof globalThis.Promise}function Tw(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function Bw(e){return e instanceof globalThis.Uint8Array}function uD(e,t){return t in e}function _a(e){return e!==null&&typeof e=="object"}function ko(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Ca(e){return e===void 0}function dp(e){return e===null}function pp(e){return typeof e=="boolean"}function jo(e){return typeof e=="number"}function MT(e){return globalThis.Number.isInteger(e)}function yp(e){return typeof e=="bigint"}function Vi(e){return typeof e=="string"}function UT(e){return typeof e=="function"}function gp(e){return typeof e=="symbol"}function lD(e){return yp(e)||pp(e)||dp(e)||jo(e)||Vi(e)||gp(e)||Ca(e)}var jn;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(l,c){return e.ExactOptionalPropertyTypes?c in l:l[c]!==void 0}e.IsExactOptionalProperty=t;function n(l){const c=_a(l);return e.AllowArrayObject?c:c&&!ko(l)}e.IsObjectLike=n;function o(l){return n(l)&&!(l instanceof Date)&&!(l instanceof Uint8Array)}e.IsRecordLike=o;function s(l){return e.AllowNaN?jo(l):Number.isFinite(l)}e.IsNumberLike=s;function u(l){const c=Ca(l);return e.AllowNullVoid?c||l===null:c}e.IsVoidLike=u})(jn||(jn={}));function cD(e){return globalThis.Object.freeze(e).map(t=>Gd(t))}function fD(e){const t={};for(const n of Object.getOwnPropertyNames(e))t[n]=Gd(e[n]);for(const n of Object.getOwnPropertySymbols(e))t[n]=Gd(e[n]);return globalThis.Object.freeze(t)}function Gd(e){return kn(e)?cD(e):Fw(e)?e:pf(e)?e:OT(e)?e:Fr(e)?fD(e):e}function nt(e,t){const n=t!==void 0?{...t,...e}:e;switch(jn.InstanceMode){case"freeze":return Gd(n);case"clone":return Zn(n);default:return n}}class ni extends Error{constructor(t){super(t)}}const Wn=Symbol.for("TypeBox.Transform"),yf=Symbol.for("TypeBox.Readonly"),qo=Symbol.for("TypeBox.Optional"),mp=Symbol.for("TypeBox.Hint"),at=Symbol.for("TypeBox.Kind");function Rw(e){return Fr(e)&&e[yf]==="Readonly"}function Us(e){return Fr(e)&&e[qo]==="Optional"}function jT(e){return Bt(e,"Any")}function NT(e){return Bt(e,"Argument")}function Vu(e){return Bt(e,"Array")}function bp(e){return Bt(e,"AsyncIterator")}function Ap(e){return Bt(e,"BigInt")}function gf(e){return Bt(e,"Boolean")}function Wu(e){return Bt(e,"Computed")}function Xu(e){return Bt(e,"Constructor")}function hD(e){return Bt(e,"Date")}function Zu(e){return Bt(e,"Function")}function Ju(e){return Bt(e,"Integer")}function wi(e){return Bt(e,"Intersect")}function wp(e){return Bt(e,"Iterator")}function Bt(e,t){return Fr(e)&&at in e&&e[at]===t}function DT(e){return df(e)||Ji(e)||br(e)}function Fa(e){return Bt(e,"Literal")}function Oa(e){return Bt(e,"MappedKey")}function ii(e){return Bt(e,"MappedResult")}function mf(e){return Bt(e,"Never")}function dD(e){return Bt(e,"Not")}function Mw(e){return Bt(e,"Null")}function el(e){return Bt(e,"Number")}function Pi(e){return Bt(e,"Object")}function vp(e){return Bt(e,"Promise")}function xp(e){return Bt(e,"Record")}function Nn(e){return Bt(e,"Ref")}function PT(e){return Bt(e,"RegExp")}function bf(e){return Bt(e,"String")}function Uw(e){return Bt(e,"Symbol")}function Ta(e){return Bt(e,"TemplateLiteral")}function pD(e){return Bt(e,"This")}function ar(e){return Fr(e)&&Wn in e}function Ba(e){return Bt(e,"Tuple")}function Ep(e){return Bt(e,"Undefined")}function Gr(e){return Bt(e,"Union")}function yD(e){return Bt(e,"Uint8Array")}function gD(e){return Bt(e,"Unknown")}function mD(e){return Bt(e,"Unsafe")}function bD(e){return Bt(e,"Void")}function AD(e){return Fr(e)&&at in e&&br(e[at])}function Xn(e){return jT(e)||NT(e)||Vu(e)||gf(e)||Ap(e)||bp(e)||Wu(e)||Xu(e)||hD(e)||Zu(e)||Ju(e)||wi(e)||wp(e)||Fa(e)||Oa(e)||ii(e)||mf(e)||dD(e)||Mw(e)||el(e)||Pi(e)||vp(e)||xp(e)||Nn(e)||PT(e)||bf(e)||Uw(e)||Ta(e)||pD(e)||Ba(e)||Ep(e)||Gr(e)||yD(e)||gD(e)||mD(e)||bD(e)||AD(e)}const wD=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function kT(e){try{return new RegExp(e),!0}catch{return!1}}function jw(e){if(!br(e))return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>=7&&n<=13||n===27||n===127)return!1}return!0}function LT(e){return Nw(e)||nn(e)}function ac(e){return _r(e)||FT(e)}function Xt(e){return _r(e)||Ji(e)}function Nw(e){return _r(e)||df(e)}function $t(e){return _r(e)||br(e)}function vD(e){return _r(e)||br(e)&&jw(e)&&kT(e)}function xD(e){return _r(e)||br(e)&&jw(e)}function zT(e){return _r(e)||nn(e)}function Kd(e){return Fr(e)&&e[qo]==="Optional"}function Mi(e){return Rt(e,"Any")&&$t(e.$id)}function ED(e){return Rt(e,"Argument")&&Ji(e.index)}function Ra(e){return Rt(e,"Array")&&e.type==="array"&&$t(e.$id)&&nn(e.items)&&Xt(e.minItems)&&Xt(e.maxItems)&&Nw(e.uniqueItems)&&zT(e.contains)&&Xt(e.minContains)&&Xt(e.maxContains)}function Dw(e){return Rt(e,"AsyncIterator")&&e.type==="AsyncIterator"&&$t(e.$id)&&nn(e.items)}function Sp(e){return Rt(e,"BigInt")&&e.type==="bigint"&&$t(e.$id)&&ac(e.exclusiveMaximum)&&ac(e.exclusiveMinimum)&&ac(e.maximum)&&ac(e.minimum)&&ac(e.multipleOf)}function Ma(e){return Rt(e,"Boolean")&&e.type==="boolean"&&$t(e.$id)}function SD(e){return Rt(e,"Computed")&&br(e.target)&&kn(e.parameters)&&e.parameters.every(t=>nn(t))}function Ip(e){return Rt(e,"Constructor")&&e.type==="Constructor"&&$t(e.$id)&&kn(e.parameters)&&e.parameters.every(t=>nn(t))&&nn(e.returns)}function _p(e){return Rt(e,"Date")&&e.type==="Date"&&$t(e.$id)&&Xt(e.exclusiveMaximumTimestamp)&&Xt(e.exclusiveMinimumTimestamp)&&Xt(e.maximumTimestamp)&&Xt(e.minimumTimestamp)&&Xt(e.multipleOfTimestamp)}function Cp(e){return Rt(e,"Function")&&e.type==="Function"&&$t(e.$id)&&kn(e.parameters)&&e.parameters.every(t=>nn(t))&&nn(e.returns)}function Ho(e){return Rt(e,"Integer")&&e.type==="integer"&&$t(e.$id)&&Xt(e.exclusiveMaximum)&&Xt(e.exclusiveMinimum)&&Xt(e.maximum)&&Xt(e.minimum)&&Xt(e.multipleOf)}function $T(e){return Fr(e)&&Object.entries(e).every(([t,n])=>jw(t)&&nn(n))}function Ua(e){return Rt(e,"Intersect")&&!(br(e.type)&&e.type!=="object")&&kn(e.allOf)&&e.allOf.every(t=>nn(t)&&!TD(t))&&$t(e.type)&&(Nw(e.unevaluatedProperties)||zT(e.unevaluatedProperties))&&$t(e.$id)}function Pw(e){return Rt(e,"Iterator")&&e.type==="Iterator"&&$t(e.$id)&&nn(e.items)}function Rt(e,t){return Fr(e)&&at in e&&e[at]===t}function qT(e){return js(e)&&br(e.const)}function HT(e){return js(e)&&Ji(e.const)}function QT(e){return js(e)&&df(e.const)}function js(e){return Rt(e,"Literal")&&$t(e.$id)&&ID(e.const)}function ID(e){return df(e)||Ji(e)||br(e)}function _D(e){return Rt(e,"MappedKey")&&kn(e.keys)&&e.keys.every(t=>Ji(t)||br(t))}function CD(e){return Rt(e,"MappedResult")&&$T(e.properties)}function Ns(e){return Rt(e,"Never")&&Fr(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function zu(e){return Rt(e,"Not")&&nn(e.not)}function kw(e){return Rt(e,"Null")&&e.type==="null"&&$t(e.$id)}function Bn(e){return Rt(e,"Number")&&e.type==="number"&&$t(e.$id)&&Xt(e.exclusiveMaximum)&&Xt(e.exclusiveMinimum)&&Xt(e.maximum)&&Xt(e.minimum)&&Xt(e.multipleOf)}function cr(e){return Rt(e,"Object")&&e.type==="object"&&$t(e.$id)&&$T(e.properties)&<(e.additionalProperties)&&Xt(e.minProperties)&&Xt(e.maxProperties)}function Lw(e){return Rt(e,"Promise")&&e.type==="Promise"&&$t(e.$id)&&nn(e.item)}function rn(e){return Rt(e,"Record")&&e.type==="object"&&$t(e.$id)&<(e.additionalProperties)&&Fr(e.patternProperties)&&(t=>{const n=Object.getOwnPropertyNames(t.patternProperties);return n.length===1&&kT(n[0])&&Fr(t.patternProperties)&&nn(t.patternProperties[n[0]])})(e)}function FD(e){return Rt(e,"Ref")&&$t(e.$id)&&br(e.$ref)}function Vc(e){return Rt(e,"RegExp")&&$t(e.$id)&&br(e.source)&&br(e.flags)&&Xt(e.maxLength)&&Xt(e.minLength)}function Ui(e){return Rt(e,"String")&&e.type==="string"&&$t(e.$id)&&Xt(e.minLength)&&Xt(e.maxLength)&&vD(e.pattern)&&xD(e.format)}function Wc(e){return Rt(e,"Symbol")&&e.type==="symbol"&&$t(e.$id)}function Xc(e){return Rt(e,"TemplateLiteral")&&e.type==="string"&&br(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function OD(e){return Rt(e,"This")&&$t(e.$id)&&br(e.$ref)}function TD(e){return Fr(e)&&Wn in e}function Fp(e){return Rt(e,"Tuple")&&e.type==="array"&&$t(e.$id)&&Ji(e.minItems)&&Ji(e.maxItems)&&e.minItems===e.maxItems&&(_r(e.items)&&_r(e.additionalItems)&&e.minItems===0||kn(e.items)&&e.items.every(t=>nn(t)))}function Sa(e){return Rt(e,"Undefined")&&e.type==="undefined"&&$t(e.$id)}function Lo(e){return Rt(e,"Union")&&$t(e.$id)&&Fr(e)&&kn(e.anyOf)&&e.anyOf.every(t=>nn(t))}function Af(e){return Rt(e,"Uint8Array")&&e.type==="Uint8Array"&&$t(e.$id)&&Xt(e.minByteLength)&&Xt(e.maxByteLength)}function ji(e){return Rt(e,"Unknown")&&$t(e.$id)}function BD(e){return Rt(e,"Unsafe")}function Op(e){return Rt(e,"Void")&&e.type==="void"&&$t(e.$id)}function RD(e){return Fr(e)&&at in e&&br(e[at])&&!wD.includes(e[at])}function nn(e){return Fr(e)&&(Mi(e)||ED(e)||Ra(e)||Ma(e)||Sp(e)||Dw(e)||SD(e)||Ip(e)||_p(e)||Cp(e)||Ho(e)||Ua(e)||Pw(e)||js(e)||_D(e)||CD(e)||Ns(e)||zu(e)||kw(e)||Bn(e)||cr(e)||Lw(e)||rn(e)||FD(e)||Vc(e)||Ui(e)||Wc(e)||Xc(e)||OD(e)||Fp(e)||Sa(e)||Lo(e)||Af(e)||ji(e)||BD(e)||Op(e)||RD(e))}const MD="(true|false)",ud="(0|[1-9][0-9]*)",GT="(.*)",UD="(?!.*)",$u=`^${ud}$`,qu=`^${GT}$`,jD=`^${UD}$`,zw=new Map;function KT(e){return zw.has(e)}function to(e,t){zw.set(e,t)}function YT(e){return zw.get(e)}const VT=new Map;function $w(e){return VT.has(e)}function WT(e){return VT.get(e)}function ND(e,t){return e.includes(t)}function DD(e){return[...new Set(e)]}function PD(e,t){return e.filter(n=>t.includes(n))}function kD(e,t){return e.reduce((n,o)=>PD(n,o),t)}function LD(e){return e.length===1?e[0]:e.length>1?kD(e.slice(1),e[0]):[]}function zD(e){const t=[];for(const n of e)t.push(...n);return t}function Zc(e){return nt({[at]:"Any"},e)}function qw(e,t){return nt({[at]:"Array",type:"array",items:e},t)}function $D(e){return nt({[at]:"Argument",index:e})}function Hw(e,t){return nt({[at]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function Dr(e,t,n){return nt({[at]:"Computed",target:e,parameters:t},n)}function qD(e,t){const{[t]:n,...o}=e;return o}function Jn(e,t){return t.reduce((n,o)=>qD(n,o),e)}function yr(e){return nt({[at]:"Never",not:{}},e)}function on(e){return nt({[at]:"MappedResult",properties:e})}function Qw(e,t,n){return nt({[at]:"Constructor",type:"Constructor",parameters:e,returns:t},n)}function wf(e,t,n){return nt({[at]:"Function",type:"Function",parameters:e,returns:t},n)}function Db(e,t){return nt({[at]:"Union",anyOf:e},t)}function HD(e){return e.some(t=>Us(t))}function II(e){return e.map(t=>Us(t)?QD(t):t)}function QD(e){return Jn(e,[qo])}function GD(e,t){return HD(e)?ks(Db(II(e),t)):Db(II(e),t)}function tl(e,t){return e.length===1?nt(e[0],t):e.length===0?yr(t):GD(e,t)}function sn(e,t){return e.length===0?yr(t):e.length===1?nt(e[0],t):Db(e,t)}class _I extends ni{}function KD(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function Gw(e,t,n){return e[t]===n&&e.charCodeAt(t-1)!==92}function No(e,t){return Gw(e,t,"(")}function Jc(e,t){return Gw(e,t,")")}function XT(e,t){return Gw(e,t,"|")}function YD(e){if(!(No(e,0)&&Jc(e,e.length-1)))return!1;let t=0;for(let n=0;n<e.length;n++)if(No(e,n)&&(t+=1),Jc(e,n)&&(t-=1),t===0&&n!==e.length-1)return!1;return!0}function VD(e){return e.slice(1,e.length-1)}function WD(e){let t=0;for(let n=0;n<e.length;n++)if(No(e,n)&&(t+=1),Jc(e,n)&&(t-=1),XT(e,n)&&t===0)return!0;return!1}function XD(e){for(let t=0;t<e.length;t++)if(No(e,t))return!0;return!1}function ZD(e){let[t,n]=[0,0];const o=[];for(let u=0;u<e.length;u++)if(No(e,u)&&(t+=1),Jc(e,u)&&(t-=1),XT(e,u)&&t===0){const l=e.slice(n,u);l.length>0&&o.push(Hu(l)),n=u+1}const s=e.slice(n);return s.length>0&&o.push(Hu(s)),o.length===0?{type:"const",const:""}:o.length===1?o[0]:{type:"or",expr:o}}function JD(e){function t(s,u){if(!No(s,u))throw new _I("TemplateLiteralParser: Index must point to open parens");let l=0;for(let c=u;c<s.length;c++)if(No(s,c)&&(l+=1),Jc(s,c)&&(l-=1),l===0)return[u,c];throw new _I("TemplateLiteralParser: Unclosed group parens in expression")}function n(s,u){for(let l=u;l<s.length;l++)if(No(s,l))return[u,l];return[u,s.length]}const o=[];for(let s=0;s<e.length;s++)if(No(e,s)){const[u,l]=t(e,s),c=e.slice(u,l+1);o.push(Hu(c)),s=l}else{const[u,l]=n(e,s),c=e.slice(u,l);c.length>0&&o.push(Hu(c)),s=l-1}return o.length===0?{type:"const",const:""}:o.length===1?o[0]:{type:"and",expr:o}}function Hu(e){return YD(e)?Hu(VD(e)):WD(e)?ZD(e):XD(e)?JD(e):{type:"const",const:KD(e)}}function Kw(e){return Hu(e.slice(1,e.length-1))}class eP extends ni{}function tP(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function rP(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function nP(e){return e.type==="const"&&e.const===".*"}function ef(e){return tP(e)||nP(e)?!1:rP(e)?!0:e.type==="and"?e.expr.every(t=>ef(t)):e.type==="or"?e.expr.every(t=>ef(t)):e.type==="const"?!0:(()=>{throw new eP("Unknown expression type")})()}function iP(e){const t=Kw(e.pattern);return ef(t)}class oP extends ni{}function*ZT(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const n of ZT(e.slice(1)))yield`${t}${n}`}function*sP(e){return yield*ZT(e.expr.map(t=>[...Tp(t)]))}function*aP(e){for(const t of e.expr)yield*Tp(t)}function*uP(e){return yield e.const}function*Tp(e){return e.type==="and"?yield*sP(e):e.type==="or"?yield*aP(e):e.type==="const"?yield*uP(e):(()=>{throw new oP("Unknown expression")})()}function JT(e){const t=Kw(e.pattern);return ef(t)?[...Tp(t)]:[]}function Cr(e,t){return nt({[at]:"Literal",const:e,type:typeof e},t)}function e3(e){return nt({[at]:"Boolean",type:"boolean"},e)}function Yw(e){return nt({[at]:"BigInt",type:"bigint"},e)}function ja(e){return nt({[at]:"Number",type:"number"},e)}function Ia(e){return nt({[at]:"String",type:"string"},e)}function*lP(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield e3():t==="number"?yield ja():t==="bigint"?yield Yw():t==="string"?yield Ia():yield(()=>{const n=t.split("|").map(o=>Cr(o.trim()));return n.length===0?yr():n.length===1?n[0]:tl(n)})()}function*cP(e){if(e[1]!=="{"){const t=Cr("$"),n=Pb(e.slice(1));return yield*[t,...n]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const n=lP(e.slice(2,t)),o=Pb(e.slice(t+1));return yield*[...n,...o]}yield Cr(e)}function*Pb(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const n=Cr(e.slice(0,t)),o=cP(e.slice(t));return yield*[n,...o]}yield Cr(e)}function fP(e){return[...Pb(e)]}class hP extends ni{}function dP(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function t3(e,t){return Ta(e)?e.pattern.slice(1,e.pattern.length-1):Gr(e)?`(${e.anyOf.map(n=>t3(n,t)).join("|")})`:el(e)?`${t}${ud}`:Ju(e)?`${t}${ud}`:Ap(e)?`${t}${ud}`:bf(e)?`${t}${GT}`:Fa(e)?`${t}${dP(e.const.toString())}`:gf(e)?`${t}${MD}`:(()=>{throw new hP(`Unexpected Kind '${e[at]}'`)})()}function CI(e){return`^${e.map(t=>t3(t,"")).join("")}$`}function Yd(e){const n=JT(e).map(o=>Cr(o));return tl(n)}function r3(e,t){const n=br(e)?CI(fP(e)):CI(e);return nt({[at]:"TemplateLiteral",type:"string",pattern:n},t)}function pP(e){return JT(e).map(n=>n.toString())}function yP(e){const t=[];for(const n of e)t.push(...Ds(n));return t}function gP(e){return[e.toString()]}function Ds(e){return[...new Set(Ta(e)?pP(e):Gr(e)?yP(e.anyOf):Fa(e)?gP(e.const):el(e)?["[number]"]:Ju(e)?["[number]"]:[])]}function mP(e,t,n){const o={};for(const s of Object.getOwnPropertyNames(t))o[s]=Bp(e,Ds(t[s]),n);return o}function bP(e,t,n){return mP(e,t.properties,n)}function AP(e,t,n){const o=bP(e,t,n);return on(o)}function n3(e,t){return e.map(n=>i3(n,t))}function wP(e){return e.filter(t=>!mf(t))}function vP(e,t){return a3(wP(n3(e,t)))}function xP(e){return e.some(t=>mf(t))?[]:e}function EP(e,t){return tl(xP(n3(e,t)))}function SP(e,t){return t in e?e[t]:t==="[number]"?tl(e):yr()}function IP(e,t){return t==="[number]"?e:yr()}function _P(e,t){return t in e?e[t]:yr()}function i3(e,t){return wi(e)?vP(e.allOf,t):Gr(e)?EP(e.anyOf,t):Ba(e)?SP(e.items??[],t):Vu(e)?IP(e.items,t):Pi(e)?_P(e.properties,t):yr()}function Vw(e,t){return t.map(n=>i3(e,n))}function FI(e,t){return tl(Vw(e,t))}function Bp(e,t,n){if(Nn(e)||Nn(t)){const o="Index types using Ref parameters require both Type and Key to be of TSchema";if(!Xn(e)||!Xn(t))throw new ni(o);return Dr("Index",[e,t])}return ii(t)?AP(e,t,n):Oa(t)?TP(e,t,n):nt(Xn(t)?FI(e,Ds(t)):FI(e,t),n)}function CP(e,t,n){return{[t]:Bp(e,[t],Zn(n))}}function FP(e,t,n){return t.reduce((o,s)=>({...o,...CP(e,s,n)}),{})}function OP(e,t,n){return FP(e,t.keys,n)}function TP(e,t,n){const o=OP(e,t,n);return on(o)}function Ww(e,t){return nt({[at]:"Iterator",type:"Iterator",items:e},t)}function BP(e){const t=[];for(let n in e)Us(e[n])||t.push(n);return t}function RP(e,t){const n=BP(e),o=n.length>0?{[at]:"Object",type:"object",properties:e,required:n}:{[at]:"Object",type:"object",properties:e};return nt(o,t)}var Qr=RP;function o3(e,t){return nt({[at]:"Promise",type:"Promise",item:e},t)}function MP(e){return nt(Jn(e,[yf]))}function UP(e){return nt({...e,[yf]:"Readonly"})}function jP(e,t){return t===!1?MP(e):UP(e)}function Ps(e,t){const n=t??!0;return ii(e)?PP(e,n):jP(e,n)}function NP(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=Ps(e[o],t);return n}function DP(e,t){return NP(e.properties,t)}function PP(e,t){const n=DP(e,t);return on(n)}function rl(e,t){return nt(e.length>0?{[at]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[at]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function s3(e,t){return e in t?mi(e,t[e]):on(t)}function kP(e){return{[e]:Cr(e)}}function LP(e){const t={};for(const n of e)t[n]=Cr(n);return t}function zP(e,t){return ND(t,e)?kP(e):LP(t)}function $P(e,t){const n=zP(e,t);return s3(e,n)}function uc(e,t){return t.map(n=>mi(e,n))}function qP(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(t))n[o]=mi(e,t[o]);return n}function mi(e,t){const n={...t};return Us(t)?ks(mi(e,Jn(t,[qo]))):Rw(t)?Ps(mi(e,Jn(t,[yf]))):ii(t)?s3(e,t.properties):Oa(t)?$P(e,t.keys):Xu(t)?Qw(uc(e,t.parameters),mi(e,t.returns),n):Zu(t)?wf(uc(e,t.parameters),mi(e,t.returns),n):bp(t)?Hw(mi(e,t.items),n):wp(t)?Ww(mi(e,t.items),n):wi(t)?Ls(uc(e,t.allOf),n):Gr(t)?sn(uc(e,t.anyOf),n):Ba(t)?rl(uc(e,t.items??[]),n):Pi(t)?Qr(qP(e,t.properties),n):Vu(t)?qw(mi(e,t.items),n):vp(t)?o3(mi(e,t.item),n):t}function HP(e,t){const n={};for(const o of e)n[o]=mi(o,t);return n}function QP(e,t,n){const o=Xn(e)?Ds(e):e,s=t({[at]:"MappedKey",keys:o}),u=HP(o,s);return Qr(u,n)}function GP(e){return nt(Jn(e,[qo]))}function KP(e){return nt({...e,[qo]:"Optional"})}function YP(e,t){return t===!1?GP(e):KP(e)}function ks(e,t){const n=t??!0;return ii(e)?XP(e,n):YP(e,n)}function VP(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=ks(e[o],t);return n}function WP(e,t){return VP(e.properties,t)}function XP(e,t){const n=WP(e,t);return on(n)}function kb(e,t={}){const n=e.every(s=>Pi(s)),o=Xn(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return nt(t.unevaluatedProperties===!1||Xn(t.unevaluatedProperties)||n?{...o,[at]:"Intersect",type:"object",allOf:e}:{...o,[at]:"Intersect",allOf:e},t)}function ZP(e){return e.every(t=>Us(t))}function JP(e){return Jn(e,[qo])}function OI(e){return e.map(t=>Us(t)?JP(t):t)}function e5(e,t){return ZP(e)?ks(kb(OI(e),t)):kb(OI(e),t)}function a3(e,t={}){if(e.length===1)return nt(e[0],t);if(e.length===0)return yr(t);if(e.some(n=>ar(n)))throw new Error("Cannot intersect transform types");return e5(e,t)}function Ls(e,t){if(e.length===1)return nt(e[0],t);if(e.length===0)return yr(t);if(e.some(n=>ar(n)))throw new Error("Cannot intersect transform types");return kb(e,t)}function vf(...e){const[t,n]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new ni("Ref: $ref must be a string");return nt({[at]:"Ref",$ref:t},n)}function t5(e,t){return Dr("Awaited",[Dr(e,t)])}function r5(e){return Dr("Awaited",[vf(e)])}function n5(e){return Ls(u3(e))}function i5(e){return sn(u3(e))}function o5(e){return Rp(e)}function u3(e){return e.map(t=>Rp(t))}function Rp(e,t){return nt(Wu(e)?t5(e.target,e.parameters):wi(e)?n5(e.allOf):Gr(e)?i5(e.anyOf):vp(e)?o5(e.item):Nn(e)?r5(e.$ref):e,t)}function l3(e){const t=[];for(const n of e)t.push(nl(n));return t}function s5(e){const t=l3(e);return zD(t)}function a5(e){const t=l3(e);return LD(t)}function u5(e){return e.map((t,n)=>n.toString())}function l5(e){return["[number]"]}function c5(e){return globalThis.Object.getOwnPropertyNames(e)}function f5(e){return Lb?globalThis.Object.getOwnPropertyNames(e).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}function nl(e){return wi(e)?s5(e.allOf):Gr(e)?a5(e.anyOf):Ba(e)?u5(e.items??[]):Vu(e)?l5(e.items):Pi(e)?c5(e.properties):xp(e)?f5(e.patternProperties):[]}let Lb=!1;function Vd(e){Lb=!0;const t=nl(e);return Lb=!1,`^(${t.map(o=>`(${o})`).join("|")})$`}function h5(e,t){return Dr("KeyOf",[Dr(e,t)])}function d5(e){return Dr("KeyOf",[vf(e)])}function p5(e,t){const n=nl(e),o=y5(n),s=tl(o);return nt(s,t)}function y5(e){return e.map(t=>t==="[number]"?ja():Cr(t))}function Xw(e,t){return Wu(e)?h5(e.target,e.parameters):Nn(e)?d5(e.$ref):ii(e)?b5(e,t):p5(e,t)}function g5(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=Xw(e[o],Zn(t));return n}function m5(e,t){return g5(e.properties,t)}function b5(e,t){const n=m5(e,t);return on(n)}function A5(e){const t=nl(e),n=Vw(e,t);return t.map((o,s)=>[t[s],n[s]])}function w5(e){const t=[];for(const n of e)t.push(...nl(n));return DD(t)}function v5(e){return e.filter(t=>!mf(t))}function x5(e,t){const n=[];for(const o of e)n.push(...Vw(o,[t]));return v5(n)}function E5(e,t){const n={};for(const o of t)n[o]=a3(x5(e,o));return n}function S5(e,t){const n=w5(e),o=E5(e,n);return Qr(o,t)}function c3(e){return nt({[at]:"Date",type:"Date"},e)}function f3(e){return nt({[at]:"Null",type:"null"},e)}function h3(e){return nt({[at]:"Symbol",type:"symbol"},e)}function d3(e){return nt({[at]:"Undefined",type:"undefined"},e)}function p3(e){return nt({[at]:"Uint8Array",type:"Uint8Array"},e)}function Mp(e){return nt({[at]:"Unknown"},e)}function I5(e){return e.map(t=>Zw(t,!1))}function _5(e){const t={};for(const n of globalThis.Object.getOwnPropertyNames(e))t[n]=Ps(Zw(e[n],!1));return t}function Wh(e,t){return t===!0?e:Ps(e)}function Zw(e,t){return ZN(e)||eD(e)?Wh(Zc(),t):kn(e)?Ps(rl(I5(e))):pf(e)?p3():Fw(e)?c3():Fr(e)?Wh(Qr(_5(e)),t):JN(e)?Wh(wf([],Mp()),t):_r(e)?d3():tD(e)?f3():rD(e)?h3():FT(e)?Yw():Ji(e)||df(e)||br(e)?Cr(e):Qr({})}function C5(e,t){return nt(Zw(e,!0),t)}function F5(e,t){return Xu(e)?rl(e.parameters,t):yr(t)}function O5(e,t){if(_r(e))throw new Error("Enum undefined or empty");const n=globalThis.Object.getOwnPropertyNames(e).filter(u=>isNaN(u)).map(u=>e[u]),s=[...new Set(n)].map(u=>Cr(u));return sn(s,{...t,[mp]:"Enum"})}class T5 extends ni{}var ze;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(ze||(ze={}));function bi(e){return e===ze.False?e:ze.True}function il(e){throw new T5(e)}function Or(e){return Ns(e)||Ua(e)||Lo(e)||ji(e)||Mi(e)}function Tr(e,t){return Ns(t)?m3():Ua(t)?Up(e,t):Lo(t)?ev(e,t):ji(t)?v3():Mi(t)?Jw():il("StructuralRight")}function Jw(e,t){return ze.True}function B5(e,t){return Ua(t)?Up(e,t):Lo(t)&&t.anyOf.some(n=>Mi(n)||ji(n))?ze.True:Lo(t)?ze.Union:ji(t)||Mi(t)?ze.True:ze.Union}function R5(e,t){return ji(e)?ze.False:Mi(e)?ze.Union:Ns(e)?ze.True:ze.False}function M5(e,t){return cr(t)&&jp(t)?ze.True:Or(t)?Tr(e,t):Ra(t)?bi(zt(e.items,t.items)):ze.False}function U5(e,t){return Or(t)?Tr(e,t):Dw(t)?bi(zt(e.items,t.items)):ze.False}function j5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Sp(t)?ze.True:ze.False}function y3(e,t){return QT(e)||Ma(e)?ze.True:ze.False}function N5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ma(t)?ze.True:ze.False}function D5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):Ip(t)?e.parameters.length>t.parameters.length?ze.False:e.parameters.every((n,o)=>bi(zt(t.parameters[o],n))===ze.True)?bi(zt(e.returns,t.returns)):ze.False:ze.False}function P5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):_p(t)?ze.True:ze.False}function k5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):Cp(t)?e.parameters.length>t.parameters.length?ze.False:e.parameters.every((n,o)=>bi(zt(t.parameters[o],n))===ze.True)?bi(zt(e.returns,t.returns)):ze.False:ze.False}function g3(e,t){return js(e)&&Ji(e.const)||Bn(e)||Ho(e)?ze.True:ze.False}function L5(e,t){return Ho(t)||Bn(t)?ze.True:Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):ze.False}function Up(e,t){return t.allOf.every(n=>zt(e,n)===ze.True)?ze.True:ze.False}function z5(e,t){return e.allOf.some(n=>zt(n,t)===ze.True)?ze.True:ze.False}function $5(e,t){return Or(t)?Tr(e,t):Pw(t)?bi(zt(e.items,t.items)):ze.False}function q5(e,t){return js(t)&&t.const===e.const?ze.True:Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ui(t)?w3(e):Bn(t)?b3(e):Ho(t)?g3(e):Ma(t)?y3(e):ze.False}function m3(e,t){return ze.False}function H5(e,t){return ze.True}function TI(e){let[t,n]=[e,0];for(;zu(t);)t=t.not,n+=1;return n%2===0?t:Mp()}function Q5(e,t){return zu(e)?zt(TI(e),t):zu(t)?zt(e,TI(t)):il("Invalid fallthrough for Not")}function G5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):kw(t)?ze.True:ze.False}function b3(e,t){return HT(e)||Bn(e)||Ho(e)?ze.True:ze.False}function K5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ho(t)||Bn(t)?ze.True:ze.False}function Dn(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function BI(e){return jp(e)}function RI(e){return Dn(e,0)||Dn(e,1)&&"description"in e.properties&&Lo(e.properties.description)&&e.properties.description.anyOf.length===2&&(Ui(e.properties.description.anyOf[0])&&Sa(e.properties.description.anyOf[1])||Ui(e.properties.description.anyOf[1])&&Sa(e.properties.description.anyOf[0]))}function Fm(e){return Dn(e,0)}function MI(e){return Dn(e,0)}function Y5(e){return Dn(e,0)}function V5(e){return Dn(e,0)}function W5(e){return jp(e)}function X5(e){const t=ja();return Dn(e,0)||Dn(e,1)&&"length"in e.properties&&bi(zt(e.properties.length,t))===ze.True}function Z5(e){return Dn(e,0)}function jp(e){const t=ja();return Dn(e,0)||Dn(e,1)&&"length"in e.properties&&bi(zt(e.properties.length,t))===ze.True}function J5(e){const t=wf([Zc()],Zc());return Dn(e,0)||Dn(e,1)&&"then"in e.properties&&bi(zt(e.properties.then,t))===ze.True}function A3(e,t){return zt(e,t)===ze.False||Kd(e)&&!Kd(t)?ze.False:ze.True}function yn(e,t){return ji(e)?ze.False:Mi(e)?ze.Union:Ns(e)||qT(e)&&BI(t)||HT(e)&&Fm(t)||QT(e)&&MI(t)||Wc(e)&&RI(t)||Sp(e)&&Y5(t)||Ui(e)&&BI(t)||Wc(e)&&RI(t)||Bn(e)&&Fm(t)||Ho(e)&&Fm(t)||Ma(e)&&MI(t)||Af(e)&&W5(t)||_p(e)&&V5(t)||Ip(e)&&Z5(t)||Cp(e)&&X5(t)?ze.True:rn(e)&&Ui(zb(e))?t[mp]==="Record"?ze.True:ze.False:rn(e)&&Bn(zb(e))?Dn(t,0)?ze.True:ze.False:ze.False}function ek(e,t){return Or(t)?Tr(e,t):rn(t)?vi(e,t):cr(t)?(()=>{for(const n of Object.getOwnPropertyNames(t.properties)){if(!(n in e.properties)&&!Kd(t.properties[n]))return ze.False;if(Kd(t.properties[n]))return ze.True;if(A3(e.properties[n],t.properties[n])===ze.False)return ze.False}return ze.True})():ze.False}function tk(e,t){return Or(t)?Tr(e,t):cr(t)&&J5(t)?ze.True:Lw(t)?bi(zt(e.item,t.item)):ze.False}function zb(e){return $u in e.patternProperties?ja():qu in e.patternProperties?Ia():il("Unknown record key pattern")}function $b(e){return $u in e.patternProperties?e.patternProperties[$u]:qu in e.patternProperties?e.patternProperties[qu]:il("Unable to get record value schema")}function vi(e,t){const[n,o]=[zb(t),$b(t)];return qT(e)&&Bn(n)&&bi(zt(e,o))===ze.True?ze.True:Af(e)&&Bn(n)||Ui(e)&&Bn(n)||Ra(e)&&Bn(n)?zt(e,o):cr(e)?(()=>{for(const s of Object.getOwnPropertyNames(e.properties))if(A3(o,e.properties[s])===ze.False)return ze.False;return ze.True})():ze.False}function rk(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?zt($b(e),$b(t)):ze.False}function nk(e,t){const n=Vc(e)?Ia():e,o=Vc(t)?Ia():t;return zt(n,o)}function w3(e,t){return js(e)&&br(e.const)||Ui(e)?ze.True:ze.False}function ik(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ui(t)?ze.True:ze.False}function ok(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Wc(t)?ze.True:ze.False}function sk(e,t){return Xc(e)?zt(Yd(e),t):Xc(t)?zt(e,Yd(t)):il("Invalid fallthrough for TemplateLiteral")}function ak(e,t){return Ra(t)&&e.items!==void 0&&e.items.every(n=>zt(n,t.items)===ze.True)}function uk(e,t){return Ns(e)?ze.True:ji(e)?ze.False:Mi(e)?ze.Union:ze.False}function lk(e,t){return Or(t)?Tr(e,t):cr(t)&&jp(t)||Ra(t)&&ak(e,t)?ze.True:Fp(t)?_r(e.items)&&!_r(t.items)||!_r(e.items)&&_r(t.items)?ze.False:_r(e.items)&&!_r(t.items)||e.items.every((n,o)=>zt(n,t.items[o])===ze.True)?ze.True:ze.False:ze.False}function ck(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Af(t)?ze.True:ze.False}function fk(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Op(t)?pk(e):Sa(t)?ze.True:ze.False}function ev(e,t){return t.anyOf.some(n=>zt(e,n)===ze.True)?ze.True:ze.False}function hk(e,t){return e.anyOf.every(n=>zt(n,t)===ze.True)?ze.True:ze.False}function v3(e,t){return ze.True}function dk(e,t){return Ns(t)?m3():Ua(t)?Up(e,t):Lo(t)?ev(e,t):Mi(t)?Jw():Ui(t)?w3(e):Bn(t)?b3(e):Ho(t)?g3(e):Ma(t)?y3(e):Ra(t)?R5(e):Fp(t)?uk(e):cr(t)?yn(e,t):ji(t)?ze.True:ze.False}function pk(e,t){return Sa(e)||Sa(e)?ze.True:ze.False}function yk(e,t){return Ua(t)?Up(e,t):Lo(t)?ev(e,t):ji(t)?v3():Mi(t)?Jw():cr(t)?yn(e,t):Op(t)?ze.True:ze.False}function zt(e,t){return Xc(e)||Xc(t)?sk(e,t):Vc(e)||Vc(t)?nk(e,t):zu(e)||zu(t)?Q5(e,t):Mi(e)?B5(e,t):Ra(e)?M5(e,t):Sp(e)?j5(e,t):Ma(e)?N5(e,t):Dw(e)?U5(e,t):Ip(e)?D5(e,t):_p(e)?P5(e,t):Cp(e)?k5(e,t):Ho(e)?L5(e,t):Ua(e)?z5(e,t):Pw(e)?$5(e,t):js(e)?q5(e,t):Ns(e)?H5():kw(e)?G5(e,t):Bn(e)?K5(e,t):cr(e)?ek(e,t):rn(e)?rk(e,t):Ui(e)?ik(e,t):Wc(e)?ok(e,t):Fp(e)?lk(e,t):Lw(e)?tk(e,t):Af(e)?ck(e,t):Sa(e)?fk(e,t):Lo(e)?hk(e,t):ji(e)?dk(e,t):Op(e)?yk(e,t):il(`Unknown left type operand '${e[at]}'`)}function xf(e,t){return zt(e,t)}function gk(e,t,n,o,s){const u={};for(const l of globalThis.Object.getOwnPropertyNames(e))u[l]=tv(e[l],t,n,o,Zn(s));return u}function mk(e,t,n,o,s){return gk(e.properties,t,n,o,s)}function bk(e,t,n,o,s){const u=mk(e,t,n,o,s);return on(u)}function Ak(e,t,n,o){const s=xf(e,t);return s===ze.Union?sn([n,o]):s===ze.True?n:o}function tv(e,t,n,o,s){return ii(e)?bk(e,t,n,o,s):Oa(e)?nt(Ek(e,t,n,o,s)):nt(Ak(e,t,n,o),s)}function wk(e,t,n,o,s){return{[e]:tv(Cr(e),t,n,o,Zn(s))}}function vk(e,t,n,o,s){return e.reduce((u,l)=>({...u,...wk(l,t,n,o,s)}),{})}function xk(e,t,n,o,s){return vk(e.keys,t,n,o,s)}function Ek(e,t,n,o,s){const u=xk(e,t,n,o,s);return on(u)}function Sk(e){return e.allOf.every(t=>Ef(t))}function Ik(e){return e.anyOf.some(t=>Ef(t))}function _k(e){return!Ef(e.not)}function Ef(e){return e[at]==="Intersect"?Sk(e):e[at]==="Union"?Ik(e):e[at]==="Not"?_k(e):e[at]==="Undefined"}function Ck(e,t){return rv(Yd(e),t)}function Fk(e,t){const n=e.filter(o=>xf(o,t)===ze.False);return n.length===1?n[0]:sn(n)}function rv(e,t,n={}){return Ta(e)?nt(Ck(e,t),n):ii(e)?nt(Bk(e,t),n):nt(Gr(e)?Fk(e.anyOf,t):xf(e,t)!==ze.False?yr():e,n)}function Ok(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=rv(e[o],t);return n}function Tk(e,t){return Ok(e.properties,t)}function Bk(e,t){const n=Tk(e,t);return on(n)}function Rk(e,t){return nv(Yd(e),t)}function Mk(e,t){const n=e.filter(o=>xf(o,t)!==ze.False);return n.length===1?n[0]:sn(n)}function nv(e,t,n){return Ta(e)?nt(Rk(e,t),n):ii(e)?nt(Nk(e,t),n):nt(Gr(e)?Mk(e.anyOf,t):xf(e,t)!==ze.False?e:yr(),n)}function Uk(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=nv(e[o],t);return n}function jk(e,t){return Uk(e.properties,t)}function Nk(e,t){const n=jk(e,t);return on(n)}function Dk(e,t){return Xu(e)?nt(e.returns,t):yr(t)}function x3(e){return Ps(ks(e))}function Na(e,t,n){return nt({[at]:"Record",type:"object",patternProperties:{[e]:t}},n)}function iv(e,t,n){const o={};for(const s of e)o[s]=t;return Qr(o,{...n,[mp]:"Record"})}function Pk(e,t,n){return iP(e)?iv(Ds(e),t,n):Na(e.pattern,t,n)}function kk(e,t,n){return iv(Ds(sn(e)),t,n)}function Lk(e,t,n){return iv([e.toString()],t,n)}function zk(e,t,n){return Na(e.source,t,n)}function $k(e,t,n){const o=_r(e.pattern)?qu:e.pattern;return Na(o,t,n)}function qk(e,t,n){return Na(qu,t,n)}function Hk(e,t,n){return Na(jD,t,n)}function Qk(e,t,n){return Qr({true:t,false:t},n)}function Gk(e,t,n){return Na($u,t,n)}function Kk(e,t,n){return Na($u,t,n)}function E3(e,t,n={}){return Gr(e)?kk(e.anyOf,t,n):Ta(e)?Pk(e,t,n):Fa(e)?Lk(e.const,t,n):gf(e)?Qk(e,t,n):Ju(e)?Gk(e,t,n):el(e)?Kk(e,t,n):PT(e)?zk(e,t,n):bf(e)?$k(e,t,n):jT(e)?qk(e,t,n):mf(e)?Hk(e,t,n):yr(n)}function ov(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function Yk(e){const t=ov(e);return t===qu?Ia():t===$u?ja():Ia({pattern:t})}function S3(e){return e.patternProperties[ov(e)]}function Vk(e,t){return t.parameters=Sf(e,t.parameters),t.returns=Ni(e,t.returns),t}function Wk(e,t){return t.parameters=Sf(e,t.parameters),t.returns=Ni(e,t.returns),t}function Xk(e,t){return t.allOf=Sf(e,t.allOf),t}function Zk(e,t){return t.anyOf=Sf(e,t.anyOf),t}function Jk(e,t){return _r(t.items)||(t.items=Sf(e,t.items)),t}function eL(e,t){return t.items=Ni(e,t.items),t}function tL(e,t){return t.items=Ni(e,t.items),t}function rL(e,t){return t.items=Ni(e,t.items),t}function nL(e,t){return t.item=Ni(e,t.item),t}function iL(e,t){const n=uL(e,t.properties);return{...t,...Qr(n)}}function oL(e,t){const n=Ni(e,Yk(t)),o=Ni(e,S3(t)),s=E3(n,o);return{...t,...s}}function sL(e,t){return t.index in e?e[t.index]:Mp()}function aL(e,t){const n=Rw(t),o=Us(t),s=Ni(e,t);return n&&o?x3(s):n&&!o?Ps(s):!n&&o?ks(s):s}function uL(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((n,o)=>({...n,[o]:aL(e,t[o])}),{})}function Sf(e,t){return t.map(n=>Ni(e,n))}function Ni(e,t){return Xu(t)?Vk(e,t):Zu(t)?Wk(e,t):wi(t)?Xk(e,t):Gr(t)?Zk(e,t):Ba(t)?Jk(e,t):Vu(t)?eL(e,t):bp(t)?tL(e,t):wp(t)?rL(e,t):vp(t)?nL(e,t):Pi(t)?iL(e,t):xp(t)?oL(e,t):NT(t)?sL(e,t):t}function lL(e,t){return Ni(t,Ow(e))}function cL(e){return nt({[at]:"Integer",type:"integer"},e)}function fL(e,t,n){return{[e]:ol(Cr(e),t,Zn(n))}}function hL(e,t,n){return e.reduce((s,u)=>({...s,...fL(u,t,n)}),{})}function dL(e,t,n){return hL(e.keys,t,n)}function pL(e,t,n){const o=dL(e,t,n);return on(o)}function yL(e){const[t,n]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),n].join("")}function gL(e){const[t,n]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),n].join("")}function mL(e){return e.toUpperCase()}function bL(e){return e.toLowerCase()}function AL(e,t,n){const o=Kw(e.pattern);if(!ef(o))return{...e,pattern:I3(e.pattern,t)};const l=[...Tp(o)].map(f=>Cr(f)),c=_3(l,t),h=sn(c);return r3([h],n)}function I3(e,t){return typeof e=="string"?t==="Uncapitalize"?yL(e):t==="Capitalize"?gL(e):t==="Uppercase"?mL(e):t==="Lowercase"?bL(e):e:e.toString()}function _3(e,t){return e.map(n=>ol(n,t))}function ol(e,t,n={}){return Oa(e)?pL(e,t,n):Ta(e)?AL(e,t,n):Gr(e)?sn(_3(e.anyOf,t),n):Fa(e)?Cr(I3(e.const,t),n):nt(e,n)}function wL(e,t={}){return ol(e,"Capitalize",t)}function vL(e,t={}){return ol(e,"Lowercase",t)}function xL(e,t={}){return ol(e,"Uncapitalize",t)}function EL(e,t={}){return ol(e,"Uppercase",t)}function SL(e,t,n){const o={};for(const s of globalThis.Object.getOwnPropertyNames(e))o[s]=Np(e[s],t,Zn(n));return o}function IL(e,t,n){return SL(e.properties,t,n)}function _L(e,t,n){const o=IL(e,t,n);return on(o)}function CL(e,t){return e.map(n=>sv(n,t))}function FL(e,t){return e.map(n=>sv(n,t))}function OL(e,t){const{[t]:n,...o}=e;return o}function TL(e,t){return t.reduce((n,o)=>OL(n,o),e)}function BL(e,t){const n=Jn(e,[Wn,"$id","required","properties"]),o=TL(e.properties,t);return Qr(o,n)}function RL(e){const t=e.reduce((n,o)=>DT(o)?[...n,Cr(o)]:n,[]);return sn(t)}function sv(e,t){return wi(e)?Ls(CL(e.allOf,t)):Gr(e)?sn(FL(e.anyOf,t)):Pi(e)?BL(e,t):Qr({})}function Np(e,t,n){const o=kn(t)?RL(t):t,s=Xn(t)?Ds(t):t,u=Nn(e),l=Nn(t);return ii(e)?_L(e,s,n):Oa(t)?NL(e,t,n):u&&l?Dr("Omit",[e,o],n):!u&&l?Dr("Omit",[e,o],n):u&&!l?Dr("Omit",[e,o],n):nt({...sv(e,s),...n})}function ML(e,t,n){return{[t]:Np(e,[t],Zn(n))}}function UL(e,t,n){return t.reduce((o,s)=>({...o,...ML(e,s,n)}),{})}function jL(e,t,n){return UL(e,t.keys,n)}function NL(e,t,n){const o=jL(e,t,n);return on(o)}function DL(e,t,n){const o={};for(const s of globalThis.Object.getOwnPropertyNames(e))o[s]=Dp(e[s],t,Zn(n));return o}function PL(e,t,n){return DL(e.properties,t,n)}function kL(e,t,n){const o=PL(e,t,n);return on(o)}function LL(e,t){return e.map(n=>av(n,t))}function zL(e,t){return e.map(n=>av(n,t))}function $L(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function qL(e,t){const n=Jn(e,[Wn,"$id","required","properties"]),o=$L(e.properties,t);return Qr(o,n)}function HL(e){const t=e.reduce((n,o)=>DT(o)?[...n,Cr(o)]:n,[]);return sn(t)}function av(e,t){return wi(e)?Ls(LL(e.allOf,t)):Gr(e)?sn(zL(e.anyOf,t)):Pi(e)?qL(e,t):Qr({})}function Dp(e,t,n){const o=kn(t)?HL(t):t,s=Xn(t)?Ds(t):t,u=Nn(e),l=Nn(t);return ii(e)?kL(e,s,n):Oa(t)?YL(e,t,n):u&&l?Dr("Pick",[e,o],n):!u&&l?Dr("Pick",[e,o],n):u&&!l?Dr("Pick",[e,o],n):nt({...av(e,s),...n})}function QL(e,t,n){return{[t]:Dp(e,[t],Zn(n))}}function GL(e,t,n){return t.reduce((o,s)=>({...o,...QL(e,s,n)}),{})}function KL(e,t,n){return GL(e,t.keys,n)}function YL(e,t,n){const o=KL(e,t,n);return on(o)}function VL(e,t){return Dr("Partial",[Dr(e,t)])}function WL(e){return Dr("Partial",[vf(e)])}function XL(e){const t={};for(const n of globalThis.Object.getOwnPropertyNames(e))t[n]=ks(e[n]);return t}function ZL(e){const t=Jn(e,[Wn,"$id","required","properties"]),n=XL(e.properties);return Qr(n,t)}function UI(e){return e.map(t=>C3(t))}function C3(e){return Wu(e)?VL(e.target,e.parameters):Nn(e)?WL(e.$ref):wi(e)?Ls(UI(e.allOf)):Gr(e)?sn(UI(e.anyOf)):Pi(e)?ZL(e):Ap(e)||gf(e)||Ju(e)||Fa(e)||Mw(e)||el(e)||bf(e)||Uw(e)||Ep(e)?e:Qr({})}function uv(e,t){return ii(e)?tz(e,t):nt({...C3(e),...t})}function JL(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=uv(e[o],Zn(t));return n}function ez(e,t){return JL(e.properties,t)}function tz(e,t){const n=ez(e,t);return on(n)}function rz(e,t){return Dr("Required",[Dr(e,t)])}function nz(e){return Dr("Required",[vf(e)])}function iz(e){const t={};for(const n of globalThis.Object.getOwnPropertyNames(e))t[n]=Jn(e[n],[qo]);return t}function oz(e){const t=Jn(e,[Wn,"$id","required","properties"]),n=iz(e.properties);return Qr(n,t)}function jI(e){return e.map(t=>F3(t))}function F3(e){return Wu(e)?rz(e.target,e.parameters):Nn(e)?nz(e.$ref):wi(e)?Ls(jI(e.allOf)):Gr(e)?sn(jI(e.anyOf)):Pi(e)?oz(e):Ap(e)||gf(e)||Ju(e)||Fa(e)||Mw(e)||el(e)||bf(e)||Uw(e)||Ep(e)?e:Qr({})}function lv(e,t){return ii(e)?uz(e,t):nt({...F3(e),...t})}function sz(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=lv(e[o],t);return n}function az(e,t){return sz(e.properties,t)}function uz(e,t){const n=az(e,t);return on(n)}function lz(e,t){return t.map(n=>Nn(n)?cv(e,n.$ref):ei(e,n))}function cv(e,t){return t in e?Nn(e[t])?cv(e,e[t].$ref):ei(e,e[t]):yr()}function cz(e){return Rp(e[0])}function fz(e){return Bp(e[0],e[1])}function hz(e){return Xw(e[0])}function dz(e){return uv(e[0])}function pz(e){return Np(e[0],e[1])}function yz(e){return Dp(e[0],e[1])}function gz(e){return lv(e[0])}function mz(e,t,n){const o=lz(e,n);return t==="Awaited"?cz(o):t==="Index"?fz(o):t==="KeyOf"?hz(o):t==="Partial"?dz(o):t==="Omit"?pz(o):t==="Pick"?yz(o):t==="Required"?gz(o):yr()}function bz(e,t){return qw(ei(e,t))}function Az(e,t){return Hw(ei(e,t))}function wz(e,t,n){return Qw(If(e,t),ei(e,n))}function vz(e,t,n){return wf(If(e,t),ei(e,n))}function xz(e,t){return Ls(If(e,t))}function Ez(e,t){return Ww(ei(e,t))}function Sz(e,t){return Qr(globalThis.Object.keys(t).reduce((n,o)=>({...n,[o]:ei(e,t[o])}),{}))}function Iz(e,t){const[n,o]=[ei(e,S3(t)),ov(t)],s=Ow(t);return s.patternProperties[o]=n,s}function _z(e,t){return Nn(t)?{...cv(e,t.$ref),[Wn]:t[Wn]}:t}function Cz(e,t){return rl(If(e,t))}function Fz(e,t){return sn(If(e,t))}function If(e,t){return t.map(n=>ei(e,n))}function ei(e,t){return Us(t)?nt(ei(e,Jn(t,[qo])),t):Rw(t)?nt(ei(e,Jn(t,[yf])),t):ar(t)?nt(_z(e,t),t):Vu(t)?nt(bz(e,t.items),t):bp(t)?nt(Az(e,t.items),t):Wu(t)?nt(mz(e,t.target,t.parameters)):Xu(t)?nt(wz(e,t.parameters,t.returns),t):Zu(t)?nt(vz(e,t.parameters,t.returns),t):wi(t)?nt(xz(e,t.allOf),t):wp(t)?nt(Ez(e,t.items),t):Pi(t)?nt(Sz(e,t.properties),t):xp(t)?nt(Iz(e,t)):Ba(t)?nt(Cz(e,t.items||[]),t):Gr(t)?nt(Fz(e,t.anyOf),t):t}function Oz(e,t){return t in e?ei(e,e[t]):yr()}function Tz(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,n)=>({...t,[n]:Oz(e,n)}),{})}class Bz{constructor(t){const n=Tz(t),o=this.WithIdentifiers(n);this.$defs=o}Import(t,n){const o={...this.$defs,[t]:nt(this.$defs[t],n)};return nt({[at]:"Import",$defs:o,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((n,o)=>({...n,[o]:{...t[o],$id:o}}),{})}}function Rz(e){return new Bz(e)}function Mz(e,t){return nt({[at]:"Not",not:e},t)}function Uz(e,t){return Zu(e)?rl(e.parameters,t):yr()}let jz=0;function Nz(e,t={}){_r(t.$id)&&(t.$id=`T${jz++}`);const n=Ow(e({[at]:"This",$ref:`${t.$id}`}));return n.$id=t.$id,nt({[mp]:"Recursive",...n},t)}function Dz(e,t){const n=br(e)?new globalThis.RegExp(e):e;return nt({[at]:"RegExp",type:"RegExp",source:n.source,flags:n.flags},t)}function Pz(e){return wi(e)?e.allOf:Gr(e)?e.anyOf:Ba(e)?e.items??[]:[]}function kz(e){return Pz(e)}function Lz(e,t){return Zu(e)?nt(e.returns,t):yr(t)}class zz{constructor(t){this.schema=t}Decode(t){return new $z(this.schema,t)}}class $z{constructor(t,n){this.schema=t,this.decode=n}EncodeTransform(t,n){const u={Encode:l=>n[Wn].Encode(t(l)),Decode:l=>this.decode(n[Wn].Decode(l))};return{...n,[Wn]:u}}EncodeSchema(t,n){const o={Decode:this.decode,Encode:t};return{...n,[Wn]:o}}Encode(t){return ar(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}}function qz(e){return new zz(e)}function Hz(e={}){return nt({[at]:e[at]??"Unsafe"},e)}function Qz(e){return nt({[at]:"Void",type:"void"},e)}const Gz=Object.freeze(Object.defineProperty({__proto__:null,Any:Zc,Argument:$D,Array:qw,AsyncIterator:Hw,Awaited:Rp,BigInt:Yw,Boolean:e3,Capitalize:wL,Composite:S5,Const:C5,Constructor:Qw,ConstructorParameters:F5,Date:c3,Enum:O5,Exclude:rv,Extends:tv,Extract:nv,Function:wf,Index:Bp,InstanceType:Dk,Instantiate:lL,Integer:cL,Intersect:Ls,Iterator:Ww,KeyOf:Xw,Literal:Cr,Lowercase:vL,Mapped:QP,Module:Rz,Never:yr,Not:Mz,Null:f3,Number:ja,Object:Qr,Omit:Np,Optional:ks,Parameters:Uz,Partial:uv,Pick:Dp,Promise:o3,Readonly:Ps,ReadonlyOptional:x3,Record:E3,Recursive:Nz,Ref:vf,RegExp:Dz,Required:lv,Rest:kz,ReturnType:Lz,String:Ia,Symbol:h3,TemplateLiteral:r3,Transform:qz,Tuple:rl,Uint8Array:p3,Uncapitalize:xL,Undefined:d3,Union:sn,Unknown:Mp,Unsafe:Hz,Uppercase:EL,Void:Qz},Symbol.toStringTag,{value:"Module"})),je=Gz;function Kz(e){switch(e.errorType){case Ne.ArrayContains:return"Expected array to contain at least one matching value";case Ne.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case Ne.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case Ne.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case Ne.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case Ne.ArrayUniqueItems:return"Expected array elements to be unique";case Ne.Array:return"Expected array";case Ne.AsyncIterator:return"Expected AsyncIterator";case Ne.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case Ne.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case Ne.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case Ne.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case Ne.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case Ne.BigInt:return"Expected bigint";case Ne.Boolean:return"Expected boolean";case Ne.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case Ne.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case Ne.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case Ne.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case Ne.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case Ne.Date:return"Expected Date";case Ne.Function:return"Expected function";case Ne.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case Ne.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case Ne.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case Ne.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case Ne.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case Ne.Integer:return"Expected integer";case Ne.IntersectUnevaluatedProperties:return"Unexpected property";case Ne.Intersect:return"Expected all values to match";case Ne.Iterator:return"Expected Iterator";case Ne.Literal:return`Expected ${typeof e.schema.const=="string"?`'${e.schema.const}'`:e.schema.const}`;case Ne.Never:return"Never";case Ne.Not:return"Value should not match";case Ne.Null:return"Expected null";case Ne.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case Ne.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case Ne.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case Ne.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case Ne.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case Ne.Number:return"Expected number";case Ne.Object:return"Expected object";case Ne.ObjectAdditionalProperties:return"Unexpected property";case Ne.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case Ne.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case Ne.ObjectRequiredProperty:return"Expected required property";case Ne.Promise:return"Expected Promise";case Ne.RegExp:return"Expected string to match regular expression";case Ne.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case Ne.StringFormat:return`Expected string to match '${e.schema.format}' format`;case Ne.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case Ne.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case Ne.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case Ne.String:return"Expected string";case Ne.Symbol:return"Expected symbol";case Ne.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case Ne.Tuple:return"Expected tuple";case Ne.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case Ne.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case Ne.Uint8Array:return"Expected Uint8Array";case Ne.Undefined:return"Expected undefined";case Ne.Union:return"Expected union value";case Ne.Void:return"Expected void";case Ne.Kind:return`Expected kind '${e.schema[at]}'`;default:return"Unknown error type"}}let Yz=Kz;function Vz(){return Yz}class Wz extends ni{constructor(t){super(`Unable to dereference schema with $id '${t.$ref}'`),this.schema=t}}function Xz(e,t){const n=t.find(o=>o.$id===e.$ref);if(n===void 0)throw new Wz(e);return Qo(n,t)}function fv(e,t){return!Vi(e.$id)||t.some(n=>n.$id===e.$id)||t.push(e),t}function Qo(e,t){return e[at]==="This"||e[at]==="Ref"?Xz(e,t):e}class Zz extends ni{constructor(t){super("Unable to hash value"),this.value=t}}var ti;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(ti||(ti={}));let _u=BigInt("14695981039346656037");const[Jz,e7]=[BigInt("1099511628211"),BigInt("18446744073709551616")],t7=Array.from({length:256}).map((e,t)=>BigInt(t)),O3=new Float64Array(1),T3=new DataView(O3.buffer),B3=new Uint8Array(O3.buffer);function*r7(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let n=0;n<t;n++)yield e>>8*(t-1-n)&255}function n7(e){pn(ti.Array);for(const t of e)Qu(t)}function i7(e){pn(ti.Boolean),pn(e?1:0)}function o7(e){pn(ti.BigInt),T3.setBigInt64(0,e);for(const t of B3)pn(t)}function s7(e){pn(ti.Date),Qu(e.getTime())}function a7(e){pn(ti.Null)}function u7(e){pn(ti.Number),T3.setFloat64(0,e);for(const t of B3)pn(t)}function l7(e){pn(ti.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())Qu(t),Qu(e[t])}function c7(e){pn(ti.String);for(let t=0;t<e.length;t++)for(const n of r7(e.charCodeAt(t)))pn(n)}function f7(e){pn(ti.Symbol),Qu(e.description)}function h7(e){pn(ti.Uint8Array);for(let t=0;t<e.length;t++)pn(e[t])}function d7(e){return pn(ti.Undefined)}function Qu(e){if(ko(e))return n7(e);if(pp(e))return i7(e);if(yp(e))return o7(e);if(Tw(e))return s7(e);if(dp(e))return a7();if(jo(e))return u7(e);if(_a(e))return l7(e);if(Vi(e))return c7(e);if(gp(e))return f7(e);if(Bw(e))return h7(e);if(Ca(e))return d7();throw new Zz(e)}function pn(e){_u=_u^t7[e],_u=_u*Jz%e7}function R3(e){return _u=BigInt("14695981039346656037"),Qu(e),_u}class p7 extends ni{constructor(t){super("Unknown type"),this.schema=t}}function y7(e){return e[at]==="Any"||e[at]==="Unknown"}function Ct(e){return e!==void 0}function g7(e,t,n){return!0}function m7(e,t,n){return!0}function b7(e,t,n){if(!ko(n)||Ct(e.minItems)&&!(n.length>=e.minItems)||Ct(e.maxItems)&&!(n.length<=e.maxItems)||!n.every(u=>$r(e.items,t,u))||e.uniqueItems===!0&&!(function(){const u=new Set;for(const l of n){const c=R3(l);if(u.has(c))return!1;u.add(c)}return!0})())return!1;if(!(Ct(e.contains)||jo(e.minContains)||jo(e.maxContains)))return!0;const o=Ct(e.contains)?e.contains:yr(),s=n.reduce((u,l)=>$r(o,t,l)?u+1:u,0);return!(s===0||jo(e.minContains)&&s<e.minContains||jo(e.maxContains)&&s>e.maxContains)}function A7(e,t,n){return TT(n)}function w7(e,t,n){return!(!yp(n)||Ct(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||Ct(e.maximum)&&!(n<=e.maximum)||Ct(e.minimum)&&!(n>=e.minimum)||Ct(e.multipleOf)&&n%e.multipleOf!==BigInt(0))}function v7(e,t,n){return pp(n)}function x7(e,t,n){return $r(e.returns,t,n.prototype)}function E7(e,t,n){return!(!Tw(n)||Ct(e.exclusiveMaximumTimestamp)&&!(n.getTime()<e.exclusiveMaximumTimestamp)||Ct(e.exclusiveMinimumTimestamp)&&!(n.getTime()>e.exclusiveMinimumTimestamp)||Ct(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)||Ct(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)||Ct(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0)}function S7(e,t,n){return UT(n)}function I7(e,t,n){const o=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return $r(s,[...t,...o],n)}function _7(e,t,n){return!(!MT(n)||Ct(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||Ct(e.maximum)&&!(n<=e.maximum)||Ct(e.minimum)&&!(n>=e.minimum)||Ct(e.multipleOf)&&n%e.multipleOf!==0)}function C7(e,t,n){const o=e.allOf.every(s=>$r(s,t,n));if(e.unevaluatedProperties===!1){const s=new RegExp(Vd(e)),u=Object.getOwnPropertyNames(n).every(l=>s.test(l));return o&&u}else if(Xn(e.unevaluatedProperties)){const s=new RegExp(Vd(e)),u=Object.getOwnPropertyNames(n).every(l=>s.test(l)||$r(e.unevaluatedProperties,t,n[l]));return o&&u}else return o}function F7(e,t,n){return BT(n)}function O7(e,t,n){return n===e.const}function T7(e,t,n){return!1}function B7(e,t,n){return!$r(e.not,t,n)}function R7(e,t,n){return dp(n)}function M7(e,t,n){return!(!jn.IsNumberLike(n)||Ct(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||Ct(e.minimum)&&!(n>=e.minimum)||Ct(e.maximum)&&!(n<=e.maximum)||Ct(e.multipleOf)&&n%e.multipleOf!==0)}function U7(e,t,n){if(!jn.IsObjectLike(n)||Ct(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;const o=Object.getOwnPropertyNames(e.properties);for(const s of o){const u=e.properties[s];if(e.required&&e.required.includes(s)){if(!$r(u,t,n[s])||(Ef(u)||y7(u))&&!(s in n))return!1}else if(jn.IsExactOptionalProperty(n,s)&&!$r(u,t,n[s]))return!1}if(e.additionalProperties===!1){const s=Object.getOwnPropertyNames(n);return e.required&&e.required.length===o.length&&s.length===o.length?!0:s.every(u=>o.includes(u))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(n).every(u=>o.includes(u)||$r(e.additionalProperties,t,n[u])):!0}function j7(e,t,n){return RT(n)}function N7(e,t,n){if(!jn.IsRecordLike(n)||Ct(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;const[o,s]=Object.entries(e.patternProperties)[0],u=new RegExp(o),l=Object.entries(n).every(([f,p])=>u.test(f)?$r(s,t,p):!0),c=typeof e.additionalProperties=="object"?Object.entries(n).every(([f,p])=>u.test(f)?!0:$r(e.additionalProperties,t,p)):!0,h=e.additionalProperties===!1?Object.getOwnPropertyNames(n).every(f=>u.test(f)):!0;return l&&c&&h}function D7(e,t,n){return $r(Qo(e,t),t,n)}function P7(e,t,n){const o=new RegExp(e.source,e.flags);return Ct(e.minLength)&&!(n.length>=e.minLength)||Ct(e.maxLength)&&!(n.length<=e.maxLength)?!1:o.test(n)}function k7(e,t,n){return!Vi(n)||Ct(e.minLength)&&!(n.length>=e.minLength)||Ct(e.maxLength)&&!(n.length<=e.maxLength)||Ct(e.pattern)&&!new RegExp(e.pattern).test(n)?!1:Ct(e.format)?KT(e.format)?YT(e.format)(n):!1:!0}function L7(e,t,n){return gp(n)}function z7(e,t,n){return Vi(n)&&new RegExp(e.pattern).test(n)}function $7(e,t,n){return $r(Qo(e,t),t,n)}function q7(e,t,n){if(!ko(n)||e.items===void 0&&n.length!==0||n.length!==e.maxItems)return!1;if(!e.items)return!0;for(let o=0;o<e.items.length;o++)if(!$r(e.items[o],t,n[o]))return!1;return!0}function H7(e,t,n){return Ca(n)}function Q7(e,t,n){return e.anyOf.some(o=>$r(o,t,n))}function G7(e,t,n){return!(!Bw(n)||Ct(e.maxByteLength)&&!(n.length<=e.maxByteLength)||Ct(e.minByteLength)&&!(n.length>=e.minByteLength))}function K7(e,t,n){return!0}function Y7(e,t,n){return jn.IsVoidLike(n)}function V7(e,t,n){return $w(e[at])?WT(e[at])(e,n):!1}function $r(e,t,n){const o=Ct(e.$id)?fv(e,t):t,s=e;switch(s[at]){case"Any":return g7();case"Argument":return m7();case"Array":return b7(s,o,n);case"AsyncIterator":return A7(s,o,n);case"BigInt":return w7(s,o,n);case"Boolean":return v7(s,o,n);case"Constructor":return x7(s,o,n);case"Date":return E7(s,o,n);case"Function":return S7(s,o,n);case"Import":return I7(s,o,n);case"Integer":return _7(s,o,n);case"Intersect":return C7(s,o,n);case"Iterator":return F7(s,o,n);case"Literal":return O7(s,o,n);case"Never":return T7();case"Not":return B7(s,o,n);case"Null":return R7(s,o,n);case"Number":return M7(s,o,n);case"Object":return U7(s,o,n);case"Promise":return j7(s,o,n);case"Record":return N7(s,o,n);case"Ref":return D7(s,o,n);case"RegExp":return P7(s,o,n);case"String":return k7(s,o,n);case"Symbol":return L7(s,o,n);case"TemplateLiteral":return z7(s,o,n);case"This":return $7(s,o,n);case"Tuple":return q7(s,o,n);case"Undefined":return H7(s,o,n);case"Union":return Q7(s,o,n);case"Uint8Array":return G7(s,o,n);case"Unknown":return K7();case"Void":return Y7(s,o,n);default:if(!$w(s[at]))throw new p7(s);return V7(s,o,n)}}function hv(...e){return e.length===3?$r(e[0],e[1],e[2]):$r(e[0],[],e[1])}var Ne;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(Ne||(Ne={}));class W7 extends ni{constructor(t){super("Unknown type"),this.schema=t}}function To(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function _t(e){return e!==void 0}class M3{constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){const t=this.iterator.next();return t.done?void 0:t.value}}function ot(e,t,n,o,s=[]){return{type:e,schema:t,path:n,value:o,message:Vz()({errorType:e,path:n,schema:t,value:o,errors:s}),errors:s}}function*X7(e,t,n,o){}function*Z7(e,t,n,o){}function*J7(e,t,n,o){if(!ko(o))return yield ot(Ne.Array,e,n,o);_t(e.minItems)&&!(o.length>=e.minItems)&&(yield ot(Ne.ArrayMinItems,e,n,o)),_t(e.maxItems)&&!(o.length<=e.maxItems)&&(yield ot(Ne.ArrayMaxItems,e,n,o));for(let l=0;l<o.length;l++)yield*qr(e.items,t,`${n}/${l}`,o[l]);if(e.uniqueItems===!0&&!(function(){const l=new Set;for(const c of o){const h=R3(c);if(l.has(h))return!1;l.add(h)}return!0})()&&(yield ot(Ne.ArrayUniqueItems,e,n,o)),!(_t(e.contains)||_t(e.minContains)||_t(e.maxContains)))return;const s=_t(e.contains)?e.contains:yr(),u=o.reduce((l,c,h)=>qr(s,t,`${n}${h}`,c).next().done===!0?l+1:l,0);u===0&&(yield ot(Ne.ArrayContains,e,n,o)),jo(e.minContains)&&u<e.minContains&&(yield ot(Ne.ArrayMinContains,e,n,o)),jo(e.maxContains)&&u>e.maxContains&&(yield ot(Ne.ArrayMaxContains,e,n,o))}function*e9(e,t,n,o){TT(o)||(yield ot(Ne.AsyncIterator,e,n,o))}function*t9(e,t,n,o){if(!yp(o))return yield ot(Ne.BigInt,e,n,o);_t(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield ot(Ne.BigIntExclusiveMaximum,e,n,o)),_t(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield ot(Ne.BigIntExclusiveMinimum,e,n,o)),_t(e.maximum)&&!(o<=e.maximum)&&(yield ot(Ne.BigIntMaximum,e,n,o)),_t(e.minimum)&&!(o>=e.minimum)&&(yield ot(Ne.BigIntMinimum,e,n,o)),_t(e.multipleOf)&&o%e.multipleOf!==BigInt(0)&&(yield ot(Ne.BigIntMultipleOf,e,n,o))}function*r9(e,t,n,o){pp(o)||(yield ot(Ne.Boolean,e,n,o))}function*n9(e,t,n,o){yield*qr(e.returns,t,n,o.prototype)}function*i9(e,t,n,o){if(!Tw(o))return yield ot(Ne.Date,e,n,o);_t(e.exclusiveMaximumTimestamp)&&!(o.getTime()<e.exclusiveMaximumTimestamp)&&(yield ot(Ne.DateExclusiveMaximumTimestamp,e,n,o)),_t(e.exclusiveMinimumTimestamp)&&!(o.getTime()>e.exclusiveMinimumTimestamp)&&(yield ot(Ne.DateExclusiveMinimumTimestamp,e,n,o)),_t(e.maximumTimestamp)&&!(o.getTime()<=e.maximumTimestamp)&&(yield ot(Ne.DateMaximumTimestamp,e,n,o)),_t(e.minimumTimestamp)&&!(o.getTime()>=e.minimumTimestamp)&&(yield ot(Ne.DateMinimumTimestamp,e,n,o)),_t(e.multipleOfTimestamp)&&o.getTime()%e.multipleOfTimestamp!==0&&(yield ot(Ne.DateMultipleOfTimestamp,e,n,o))}function*o9(e,t,n,o){UT(o)||(yield ot(Ne.Function,e,n,o))}function*s9(e,t,n,o){const s=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];yield*qr(u,[...t,...s],n,o)}function*a9(e,t,n,o){if(!MT(o))return yield ot(Ne.Integer,e,n,o);_t(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield ot(Ne.IntegerExclusiveMaximum,e,n,o)),_t(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield ot(Ne.IntegerExclusiveMinimum,e,n,o)),_t(e.maximum)&&!(o<=e.maximum)&&(yield ot(Ne.IntegerMaximum,e,n,o)),_t(e.minimum)&&!(o>=e.minimum)&&(yield ot(Ne.IntegerMinimum,e,n,o)),_t(e.multipleOf)&&o%e.multipleOf!==0&&(yield ot(Ne.IntegerMultipleOf,e,n,o))}function*u9(e,t,n,o){let s=!1;for(const u of e.allOf)for(const l of qr(u,t,n,o))s=!0,yield l;if(s)return yield ot(Ne.Intersect,e,n,o);if(e.unevaluatedProperties===!1){const u=new RegExp(Vd(e));for(const l of Object.getOwnPropertyNames(o))u.test(l)||(yield ot(Ne.IntersectUnevaluatedProperties,e,`${n}/${l}`,o))}if(typeof e.unevaluatedProperties=="object"){const u=new RegExp(Vd(e));for(const l of Object.getOwnPropertyNames(o))if(!u.test(l)){const c=qr(e.unevaluatedProperties,t,`${n}/${l}`,o[l]).next();c.done||(yield c.value)}}}function*l9(e,t,n,o){BT(o)||(yield ot(Ne.Iterator,e,n,o))}function*c9(e,t,n,o){o!==e.const&&(yield ot(Ne.Literal,e,n,o))}function*f9(e,t,n,o){yield ot(Ne.Never,e,n,o)}function*h9(e,t,n,o){qr(e.not,t,n,o).next().done===!0&&(yield ot(Ne.Not,e,n,o))}function*d9(e,t,n,o){dp(o)||(yield ot(Ne.Null,e,n,o))}function*p9(e,t,n,o){if(!jn.IsNumberLike(o))return yield ot(Ne.Number,e,n,o);_t(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield ot(Ne.NumberExclusiveMaximum,e,n,o)),_t(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield ot(Ne.NumberExclusiveMinimum,e,n,o)),_t(e.maximum)&&!(o<=e.maximum)&&(yield ot(Ne.NumberMaximum,e,n,o)),_t(e.minimum)&&!(o>=e.minimum)&&(yield ot(Ne.NumberMinimum,e,n,o)),_t(e.multipleOf)&&o%e.multipleOf!==0&&(yield ot(Ne.NumberMultipleOf,e,n,o))}function*y9(e,t,n,o){if(!jn.IsObjectLike(o))return yield ot(Ne.Object,e,n,o);_t(e.minProperties)&&!(Object.getOwnPropertyNames(o).length>=e.minProperties)&&(yield ot(Ne.ObjectMinProperties,e,n,o)),_t(e.maxProperties)&&!(Object.getOwnPropertyNames(o).length<=e.maxProperties)&&(yield ot(Ne.ObjectMaxProperties,e,n,o));const s=Array.isArray(e.required)?e.required:[],u=Object.getOwnPropertyNames(e.properties),l=Object.getOwnPropertyNames(o);for(const c of s)l.includes(c)||(yield ot(Ne.ObjectRequiredProperty,e.properties[c],`${n}/${To(c)}`,void 0));if(e.additionalProperties===!1)for(const c of l)u.includes(c)||(yield ot(Ne.ObjectAdditionalProperties,e,`${n}/${To(c)}`,o[c]));if(typeof e.additionalProperties=="object")for(const c of l)u.includes(c)||(yield*qr(e.additionalProperties,t,`${n}/${To(c)}`,o[c]));for(const c of u){const h=e.properties[c];e.required&&e.required.includes(c)?(yield*qr(h,t,`${n}/${To(c)}`,o[c]),Ef(e)&&!(c in o)&&(yield ot(Ne.ObjectRequiredProperty,h,`${n}/${To(c)}`,void 0))):jn.IsExactOptionalProperty(o,c)&&(yield*qr(h,t,`${n}/${To(c)}`,o[c]))}}function*g9(e,t,n,o){RT(o)||(yield ot(Ne.Promise,e,n,o))}function*m9(e,t,n,o){if(!jn.IsRecordLike(o))return yield ot(Ne.Object,e,n,o);_t(e.minProperties)&&!(Object.getOwnPropertyNames(o).length>=e.minProperties)&&(yield ot(Ne.ObjectMinProperties,e,n,o)),_t(e.maxProperties)&&!(Object.getOwnPropertyNames(o).length<=e.maxProperties)&&(yield ot(Ne.ObjectMaxProperties,e,n,o));const[s,u]=Object.entries(e.patternProperties)[0],l=new RegExp(s);for(const[c,h]of Object.entries(o))l.test(c)&&(yield*qr(u,t,`${n}/${To(c)}`,h));if(typeof e.additionalProperties=="object")for(const[c,h]of Object.entries(o))l.test(c)||(yield*qr(e.additionalProperties,t,`${n}/${To(c)}`,h));if(e.additionalProperties===!1){for(const[c,h]of Object.entries(o))if(!l.test(c))return yield ot(Ne.ObjectAdditionalProperties,e,`${n}/${To(c)}`,h)}}function*b9(e,t,n,o){yield*qr(Qo(e,t),t,n,o)}function*A9(e,t,n,o){if(!Vi(o))return yield ot(Ne.String,e,n,o);if(_t(e.minLength)&&!(o.length>=e.minLength)&&(yield ot(Ne.StringMinLength,e,n,o)),_t(e.maxLength)&&!(o.length<=e.maxLength)&&(yield ot(Ne.StringMaxLength,e,n,o)),!new RegExp(e.source,e.flags).test(o))return yield ot(Ne.RegExp,e,n,o)}function*w9(e,t,n,o){if(!Vi(o))return yield ot(Ne.String,e,n,o);_t(e.minLength)&&!(o.length>=e.minLength)&&(yield ot(Ne.StringMinLength,e,n,o)),_t(e.maxLength)&&!(o.length<=e.maxLength)&&(yield ot(Ne.StringMaxLength,e,n,o)),Vi(e.pattern)&&(new RegExp(e.pattern).test(o)||(yield ot(Ne.StringPattern,e,n,o))),Vi(e.format)&&(KT(e.format)?YT(e.format)(o)||(yield ot(Ne.StringFormat,e,n,o)):yield ot(Ne.StringFormatUnknown,e,n,o))}function*v9(e,t,n,o){gp(o)||(yield ot(Ne.Symbol,e,n,o))}function*x9(e,t,n,o){if(!Vi(o))return yield ot(Ne.String,e,n,o);new RegExp(e.pattern).test(o)||(yield ot(Ne.StringPattern,e,n,o))}function*E9(e,t,n,o){yield*qr(Qo(e,t),t,n,o)}function*S9(e,t,n,o){if(!ko(o))return yield ot(Ne.Tuple,e,n,o);if(e.items===void 0&&o.length!==0)return yield ot(Ne.TupleLength,e,n,o);if(o.length!==e.maxItems)return yield ot(Ne.TupleLength,e,n,o);if(e.items)for(let s=0;s<e.items.length;s++)yield*qr(e.items[s],t,`${n}/${s}`,o[s])}function*I9(e,t,n,o){Ca(o)||(yield ot(Ne.Undefined,e,n,o))}function*_9(e,t,n,o){if(hv(e,t,o))return;const s=e.anyOf.map(u=>new M3(qr(u,t,n,o)));yield ot(Ne.Union,e,n,o,s)}function*C9(e,t,n,o){if(!Bw(o))return yield ot(Ne.Uint8Array,e,n,o);_t(e.maxByteLength)&&!(o.length<=e.maxByteLength)&&(yield ot(Ne.Uint8ArrayMaxByteLength,e,n,o)),_t(e.minByteLength)&&!(o.length>=e.minByteLength)&&(yield ot(Ne.Uint8ArrayMinByteLength,e,n,o))}function*F9(e,t,n,o){}function*O9(e,t,n,o){jn.IsVoidLike(o)||(yield ot(Ne.Void,e,n,o))}function*T9(e,t,n,o){WT(e[at])(e,o)||(yield ot(Ne.Kind,e,n,o))}function*qr(e,t,n,o){const s=_t(e.$id)?[...t,e]:t,u=e;switch(u[at]){case"Any":return yield*X7();case"Argument":return yield*Z7();case"Array":return yield*J7(u,s,n,o);case"AsyncIterator":return yield*e9(u,s,n,o);case"BigInt":return yield*t9(u,s,n,o);case"Boolean":return yield*r9(u,s,n,o);case"Constructor":return yield*n9(u,s,n,o);case"Date":return yield*i9(u,s,n,o);case"Function":return yield*o9(u,s,n,o);case"Import":return yield*s9(u,s,n,o);case"Integer":return yield*a9(u,s,n,o);case"Intersect":return yield*u9(u,s,n,o);case"Iterator":return yield*l9(u,s,n,o);case"Literal":return yield*c9(u,s,n,o);case"Never":return yield*f9(u,s,n,o);case"Not":return yield*h9(u,s,n,o);case"Null":return yield*d9(u,s,n,o);case"Number":return yield*p9(u,s,n,o);case"Object":return yield*y9(u,s,n,o);case"Promise":return yield*g9(u,s,n,o);case"Record":return yield*m9(u,s,n,o);case"Ref":return yield*b9(u,s,n,o);case"RegExp":return yield*A9(u,s,n,o);case"String":return yield*w9(u,s,n,o);case"Symbol":return yield*v9(u,s,n,o);case"TemplateLiteral":return yield*x9(u,s,n,o);case"This":return yield*E9(u,s,n,o);case"Tuple":return yield*S9(u,s,n,o);case"Undefined":return yield*I9(u,s,n,o);case"Union":return yield*_9(u,s,n,o);case"Uint8Array":return yield*C9(u,s,n,o);case"Unknown":return yield*F9();case"Void":return yield*O9(u,s,n,o);default:if(!$w(u[at]))throw new W7(e);return yield*T9(u,s,n,o)}}function B9(...e){const t=e.length===3?qr(e[0],e[1],"",e[2]):qr(e[0],[],"",e[1]);return new M3(t)}class R9 extends ni{constructor(t,n,o){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=n,this.error=o}}class M9 extends ni{constructor(t,n,o,s){super(s instanceof Error?s.message:"Unknown error"),this.schema=t,this.path=n,this.value=o,this.error=s}}function sr(e,t,n){try{return ar(e)?e[Wn].Decode(n):n}catch(o){throw new M9(e,t,n,o)}}function U9(e,t,n,o){return ko(o)?sr(e,n,o.map((s,u)=>ki(e.items,t,`${n}/${u}`,s))):sr(e,n,o)}function j9(e,t,n,o){if(!_a(o)||lD(o))return sr(e,n,o);const s=A5(e),u=s.map(p=>p[0]),l={...o};for(const[p,y]of s)p in l&&(l[p]=ki(y,t,`${n}/${p}`,l[p]));if(!ar(e.unevaluatedProperties))return sr(e,n,l);const c=Object.getOwnPropertyNames(l),h=e.unevaluatedProperties,f={...l};for(const p of c)u.includes(p)||(f[p]=sr(h,`${n}/${p}`,f[p]));return sr(e,n,f)}function N9(e,t,n,o){const s=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref],l=ki(u,[...t,...s],n,o);return sr(e,n,l)}function D9(e,t,n,o){return sr(e,n,ki(e.not,t,n,o))}function P9(e,t,n,o){if(!_a(o))return sr(e,n,o);const s=nl(e),u={...o};for(const f of s)uD(u,f)&&(Ca(u[f])&&(!Ep(e.properties[f])||jn.IsExactOptionalProperty(u,f))||(u[f]=ki(e.properties[f],t,`${n}/${f}`,u[f])));if(!Xn(e.additionalProperties))return sr(e,n,u);const l=Object.getOwnPropertyNames(u),c=e.additionalProperties,h={...u};for(const f of l)s.includes(f)||(h[f]=sr(c,`${n}/${f}`,h[f]));return sr(e,n,h)}function k9(e,t,n,o){if(!_a(o))return sr(e,n,o);const s=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(s),l={...o};for(const p of Object.getOwnPropertyNames(o))u.test(p)&&(l[p]=ki(e.patternProperties[s],t,`${n}/${p}`,l[p]));if(!Xn(e.additionalProperties))return sr(e,n,l);const c=Object.getOwnPropertyNames(l),h=e.additionalProperties,f={...l};for(const p of c)u.test(p)||(f[p]=sr(h,`${n}/${p}`,f[p]));return sr(e,n,f)}function L9(e,t,n,o){const s=Qo(e,t);return sr(e,n,ki(s,t,n,o))}function z9(e,t,n,o){const s=Qo(e,t);return sr(e,n,ki(s,t,n,o))}function $9(e,t,n,o){return ko(o)&&ko(e.items)?sr(e,n,e.items.map((s,u)=>ki(s,t,`${n}/${u}`,o[u]))):sr(e,n,o)}function q9(e,t,n,o){for(const s of e.anyOf){if(!hv(s,t,o))continue;const u=ki(s,t,n,o);return sr(e,n,u)}return sr(e,n,o)}function ki(e,t,n,o){const s=fv(e,t),u=e;switch(e[at]){case"Array":return U9(u,s,n,o);case"Import":return N9(u,s,n,o);case"Intersect":return j9(u,s,n,o);case"Not":return D9(u,s,n,o);case"Object":return P9(u,s,n,o);case"Record":return k9(u,s,n,o);case"Ref":return L9(u,s,n,o);case"Symbol":return sr(u,n,o);case"This":return z9(u,s,n,o);case"Tuple":return $9(u,s,n,o);case"Union":return q9(u,s,n,o);default:return sr(u,n,o)}}function H9(e,t,n){return ki(e,t,"",n)}function Q9(e,t){return ar(e)||Pr(e.items,t)}function G9(e,t){return ar(e)||Pr(e.items,t)}function K9(e,t){return ar(e)||Pr(e.returns,t)||e.parameters.some(n=>Pr(n,t))}function Y9(e,t){return ar(e)||Pr(e.returns,t)||e.parameters.some(n=>Pr(n,t))}function V9(e,t){return ar(e)||ar(e.unevaluatedProperties)||e.allOf.some(n=>Pr(n,t))}function W9(e,t){const n=globalThis.Object.getOwnPropertyNames(e.$defs).reduce((s,u)=>[...s,e.$defs[u]],[]),o=e.$defs[e.$ref];return ar(e)||Pr(o,[...n,...t])}function X9(e,t){return ar(e)||Pr(e.items,t)}function Z9(e,t){return ar(e)||Pr(e.not,t)}function J9(e,t){return ar(e)||Object.values(e.properties).some(n=>Pr(n,t))||Xn(e.additionalProperties)&&Pr(e.additionalProperties,t)}function e$(e,t){return ar(e)||Pr(e.item,t)}function t$(e,t){const n=Object.getOwnPropertyNames(e.patternProperties)[0],o=e.patternProperties[n];return ar(e)||Pr(o,t)||Xn(e.additionalProperties)&&ar(e.additionalProperties)}function r$(e,t){return ar(e)?!0:Pr(Qo(e,t),t)}function n$(e,t){return ar(e)?!0:Pr(Qo(e,t),t)}function i$(e,t){return ar(e)||!Ca(e.items)&&e.items.some(n=>Pr(n,t))}function o$(e,t){return ar(e)||e.anyOf.some(n=>Pr(n,t))}function Pr(e,t){const n=fv(e,t),o=e;if(e.$id&&qb.has(e.$id))return!1;switch(e.$id&&qb.add(e.$id),e[at]){case"Array":return Q9(o,n);case"AsyncIterator":return G9(o,n);case"Constructor":return K9(o,n);case"Function":return Y9(o,n);case"Import":return W9(o,n);case"Intersect":return V9(o,n);case"Iterator":return X9(o,n);case"Not":return Z9(o,n);case"Object":return J9(o,n);case"Promise":return e$(o,n);case"Record":return t$(o,n);case"Ref":return r$(o,n);case"This":return n$(o,n);case"Tuple":return i$(o,n);case"Union":return o$(o,n);default:return ar(e)}}const qb=new Set;function s$(e,t){return qb.clear(),Pr(e,t)}function a$(...e){const[t,n,o]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!hv(t,n,o))throw new R9(t,o,B9(t,n,o).First());return s$(t,n)?H9(t,n,o):o}var Eo={},Om={exports:{}},Tm={},Bm={},Rm={},Mm,NI;function dv(){return NI||(NI=1,Mm=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[n]=s;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var l=Object.getOwnPropertySymbols(t);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,n);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Mm}var Um,DI;function Pp(){if(DI)return Um;DI=1;var e=dv();return Um=function(){return e()&&!!Symbol.toStringTag},Um}var jm,PI;function pv(){return PI||(PI=1,jm=Object),jm}var Nm,kI;function u$(){return kI||(kI=1,Nm=Error),Nm}var Dm,LI;function l$(){return LI||(LI=1,Dm=EvalError),Dm}var Pm,zI;function c$(){return zI||(zI=1,Pm=RangeError),Pm}var km,$I;function f$(){return $I||($I=1,km=ReferenceError),km}var Lm,qI;function U3(){return qI||(qI=1,Lm=SyntaxError),Lm}var zm,HI;function _f(){return HI||(HI=1,zm=TypeError),zm}var $m,QI;function h$(){return QI||(QI=1,$m=URIError),$m}var qm,GI;function d$(){return GI||(GI=1,qm=Math.abs),qm}var Hm,KI;function p$(){return KI||(KI=1,Hm=Math.floor),Hm}var Qm,YI;function y$(){return YI||(YI=1,Qm=Math.max),Qm}var Gm,VI;function g$(){return VI||(VI=1,Gm=Math.min),Gm}var Km,WI;function m$(){return WI||(WI=1,Km=Math.pow),Km}var Ym,XI;function b$(){return XI||(XI=1,Ym=Math.round),Ym}var Vm,ZI;function A$(){return ZI||(ZI=1,Vm=Number.isNaN||function(t){return t!==t}),Vm}var Wm,JI;function w$(){if(JI)return Wm;JI=1;var e=A$();return Wm=function(n){return e(n)||n===0?n:n<0?-1:1},Wm}var Xm,e_;function v$(){return e_||(e_=1,Xm=Object.getOwnPropertyDescriptor),Xm}var Zm,t_;function sl(){if(t_)return Zm;t_=1;var e=v$();if(e)try{e([],"length")}catch{e=null}return Zm=e,Zm}var Jm,r_;function kp(){if(r_)return Jm;r_=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Jm=e,Jm}var e0,n_;function x$(){if(n_)return e0;n_=1;var e=typeof Symbol<"u"&&Symbol,t=dv();return e0=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},e0}var t0,i_;function j3(){return i_||(i_=1,t0=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),t0}var r0,o_;function N3(){if(o_)return r0;o_=1;var e=pv();return r0=e.getPrototypeOf||null,r0}var n0,s_;function E$(){if(s_)return n0;s_=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,o="[object Function]",s=function(h,f){for(var p=[],y=0;y<h.length;y+=1)p[y]=h[y];for(var g=0;g<f.length;g+=1)p[g+h.length]=f[g];return p},u=function(h,f){for(var p=[],y=f,g=0;y<h.length;y+=1,g+=1)p[g]=h[y];return p},l=function(c,h){for(var f="",p=0;p<c.length;p+=1)f+=c[p],p+1<c.length&&(f+=h);return f};return n0=function(h){var f=this;if(typeof f!="function"||t.apply(f)!==o)throw new TypeError(e+f);for(var p=u(arguments,1),y,g=function(){if(this instanceof y){var M=f.apply(this,s(p,arguments));return Object(M)===M?M:this}return f.apply(h,s(p,arguments))},m=n(0,f.length-p.length),w=[],F=0;F<m;F++)w[F]="$"+F;if(y=Function("binder","return function ("+l(w,",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var S=function(){};S.prototype=f.prototype,y.prototype=new S,S.prototype=null}return y},n0}var i0,a_;function Cf(){if(a_)return i0;a_=1;var e=E$();return i0=Function.prototype.bind||e,i0}var o0,u_;function yv(){return u_||(u_=1,o0=Function.prototype.call),o0}var s0,l_;function gv(){return l_||(l_=1,s0=Function.prototype.apply),s0}var a0,c_;function S$(){return c_||(c_=1,a0=typeof Reflect<"u"&&Reflect&&Reflect.apply),a0}var u0,f_;function D3(){if(f_)return u0;f_=1;var e=Cf(),t=gv(),n=yv(),o=S$();return u0=o||e.call(n,t),u0}var l0,h_;function mv(){if(h_)return l0;h_=1;var e=Cf(),t=_f(),n=yv(),o=D3();return l0=function(u){if(u.length<1||typeof u[0]!="function")throw new t("a function is required");return o(e,n,u)},l0}var c0,d_;function I$(){if(d_)return c0;d_=1;var e=mv(),t=sl(),n;try{n=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var o=!!n&&t&&t(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;return c0=o&&typeof o.get=="function"?e([o.get]):typeof u=="function"?function(c){return u(c==null?c:s(c))}:!1,c0}var f0,p_;function bv(){if(p_)return f0;p_=1;var e=j3(),t=N3(),n=I$();return f0=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:n?function(s){return n(s)}:null,f0}var h0,y_;function P3(){if(y_)return h0;y_=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Cf();return h0=n.call(e,t),h0}var d0,g_;function Av(){if(g_)return d0;g_=1;var e,t=pv(),n=u$(),o=l$(),s=c$(),u=f$(),l=U3(),c=_f(),h=h$(),f=d$(),p=p$(),y=y$(),g=g$(),m=m$(),w=b$(),F=w$(),S=Function,M=function(Z){try{return S('"use strict"; return ('+Z+").constructor;")()}catch{}},A=sl(),I=kp(),R=function(){throw new c},T=A?(function(){try{return arguments.callee,R}catch{try{return A(arguments,"callee").get}catch{return R}}})():R,z=x$()(),k=bv(),L=N3(),U=j3(),j=gv(),H=yv(),P={},te=typeof Uint8Array>"u"||!k?e:k(Uint8Array),ue={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":z&&k?k([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&k?k(k([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!k?e:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!k?e:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&k?k(""[Symbol.iterator]()):e,"%Symbol%":z?Symbol:e,"%SyntaxError%":l,"%ThrowTypeError%":T,"%TypedArray%":te,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":j,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":L,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":y,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":w,"%Math.sign%":F,"%Reflect.getPrototypeOf%":U};if(k)try{null.error}catch(Z){var oe=k(k(Z));ue["%Error.prototype%"]=oe}var X=function Z(O){var q;if(O==="%AsyncFunction%")q=M("async function () {}");else if(O==="%GeneratorFunction%")q=M("function* () {}");else if(O==="%AsyncGeneratorFunction%")q=M("async function* () {}");else if(O==="%AsyncGenerator%"){var Y=Z("%AsyncGeneratorFunction%");Y&&(q=Y.prototype)}else if(O==="%AsyncIteratorPrototype%"){var se=Z("%AsyncGenerator%");se&&k&&(q=k(se.prototype))}return ue[O]=q,q},re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pe=Cf(),le=P3(),J=pe.call(H,Array.prototype.concat),G=pe.call(j,Array.prototype.splice),Q=pe.call(H,String.prototype.replace),K=pe.call(H,String.prototype.slice),W=pe.call(H,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,ae=function(O){var q=K(O,0,1),Y=K(O,-1);if(q==="%"&&Y!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&q!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var se=[];return Q(O,$,function(ye,ee,_,v){se[se.length]=_?Q(v,fe,"$1"):ee||ye}),se},ne=function(O,q){var Y=O,se;if(le(re,Y)&&(se=re[Y],Y="%"+se[0]+"%"),le(ue,Y)){var ye=ue[Y];if(ye===P&&(ye=X(Y)),typeof ye>"u"&&!q)throw new c("intrinsic "+O+" exists, but is not available. Please file an issue!");return{alias:se,name:Y,value:ye}}throw new l("intrinsic "+O+" does not exist!")};return d0=function(O,q){if(typeof O!="string"||O.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof q!="boolean")throw new c('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,O)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=ae(O),se=Y.length>0?Y[0]:"",ye=ne("%"+se+"%",q),ee=ye.name,_=ye.value,v=!1,C=ye.alias;C&&(se=C[0],G(Y,J([0,1],C)));for(var D=1,he=!0;D<Y.length;D+=1){var ce=Y[D],Ee=K(ce,0,1),Be=K(ce,-1);if((Ee==='"'||Ee==="'"||Ee==="`"||Be==='"'||Be==="'"||Be==="`")&&Ee!==Be)throw new l("property names with quotes must have matching quotes");if((ce==="constructor"||!he)&&(v=!0),se+="."+ce,ee="%"+se+"%",le(ue,ee))_=ue[ee];else if(_!=null){if(!(ce in _)){if(!q)throw new c("base intrinsic for "+O+" exists, but the property is not available.");return}if(A&&D+1>=Y.length){var de=A(_,ce);he=!!de,he&&"get"in de&&!("originalValue"in de.get)?_=de.get:_=_[ce]}else he=le(_,ce),_=_[ce];he&&!v&&(ue[ee]=_)}}return _},d0}var p0,m_;function al(){if(m_)return p0;m_=1;var e=Av(),t=mv(),n=t([e("%String.prototype.indexOf%")]);return p0=function(s,u){var l=e(s,!!u);return typeof l=="function"&&n(s,".prototype.")>-1?t([l]):l},p0}var y0,b_;function _$(){if(b_)return y0;b_=1;var e=Pp()(),t=al(),n=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:n(c)==="[object Arguments]"},s=function(c){return o(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&n(c)!=="[object Array]"&&"callee"in c&&n(c.callee)==="[object Function]"},u=(function(){return o(arguments)})();return o.isLegacyArguments=s,y0=u?o:s,y0}var g0,A_;function C$(){if(A_)return g0;A_=1;var e=al(),t=Pp()(),n=P3(),o=sl(),s;if(t){var u=e("RegExp.prototype.exec"),l={},c=function(){throw l},h={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=c),s=function(g){if(!g||typeof g!="object")return!1;var m=o(g,"lastIndex"),w=m&&n(m,"value");if(!w)return!1;try{u(g,h)}catch(F){return F===l}}}else{var f=e("Object.prototype.toString"),p="[object RegExp]";s=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:f(g)===p}}return g0=s,g0}var m0,w_;function F$(){if(w_)return m0;w_=1;var e=al(),t=C$(),n=e("RegExp.prototype.exec"),o=_f();return m0=function(u){if(!t(u))throw new o("`regex` must be a RegExp");return function(c){return n(u,c)!==null}},m0}var b0,v_;function O$(){if(v_)return b0;v_=1;const e=(function*(){}).constructor;return b0=()=>e,b0}var A0,x_;function T$(){if(x_)return A0;x_=1;var e=al(),t=F$(),n=t(/^\s*(?:function)?\*/),o=Pp()(),s=bv(),u=e("Object.prototype.toString"),l=e("Function.prototype.toString"),c=O$();return A0=function(f){if(typeof f!="function")return!1;if(n(l(f)))return!0;if(!o){var p=u(f);return p==="[object GeneratorFunction]"}if(!s)return!1;var y=c();return y&&s(f)===y.prototype},A0}var w0,E_;function B$(){if(E_)return w0;E_=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,n)}catch(A){A!==o&&(t=null)}else t=null;var s=/^\s*class\b/,u=function(I){try{var R=e.call(I);return s.test(R)}catch{return!1}},l=function(I){try{return u(I)?!1:(e.call(I),!0)}catch{return!1}},c=Object.prototype.toString,h="[object Object]",f="[object Function]",p="[object GeneratorFunction]",y="[object HTMLAllCollection]",g="[object HTML document.all class]",m="[object HTMLCollection]",w=typeof Symbol=="function"&&!!Symbol.toStringTag,F=!(0 in[,]),S=function(){return!1};if(typeof document=="object"){var M=document.all;c.call(M)===c.call(document.all)&&(S=function(I){if((F||!I)&&(typeof I>"u"||typeof I=="object"))try{var R=c.call(I);return(R===y||R===g||R===m||R===h)&&I("")==null}catch{}return!1})}return w0=t?function(I){if(S(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;try{t(I,null,n)}catch(R){if(R!==o)return!1}return!u(I)&&l(I)}:function(I){if(S(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;if(w)return l(I);if(u(I))return!1;var R=c.call(I);return R!==f&&R!==p&&!/^\[object HTML/.test(R)?!1:l(I)},w0}var v0,S_;function R$(){if(S_)return v0;S_=1;var e=B$(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=function(h,f,p){for(var y=0,g=h.length;y<g;y++)n.call(h,y)&&(p==null?f(h[y],y,h):f.call(p,h[y],y,h))},s=function(h,f,p){for(var y=0,g=h.length;y<g;y++)p==null?f(h.charAt(y),y,h):f.call(p,h.charAt(y),y,h)},u=function(h,f,p){for(var y in h)n.call(h,y)&&(p==null?f(h[y],y,h):f.call(p,h[y],y,h))};function l(c){return t.call(c)==="[object Array]"}return v0=function(h,f,p){if(!e(f))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=p),l(h)?o(h,f,y):typeof h=="string"?s(h,f,y):u(h,f,y)},v0}var x0,I_;function M$(){return I_||(I_=1,x0=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),x0}var E0,__;function U$(){if(__)return E0;__=1;var e=M$(),t=typeof globalThis>"u"?nf:globalThis;return E0=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},E0}var S0={exports:{}},I0,C_;function k3(){if(C_)return I0;C_=1;var e=kp(),t=U3(),n=_f(),o=sl();return I0=function(u,l,c){if(!u||typeof u!="object"&&typeof u!="function")throw new n("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,g=!!o&&o(u,l);if(e)e(u,l,{configurable:p===null&&g?g.configurable:!p,enumerable:h===null&&g?g.enumerable:!h,value:c,writable:f===null&&g?g.writable:!f});else if(y||!h&&!f&&!p)u[l]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},I0}var _0,F_;function L3(){if(F_)return _0;F_=1;var e=kp(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},_0=t,_0}var C0,O_;function j$(){if(O_)return C0;O_=1;var e=Av(),t=k3(),n=L3()(),o=sl(),s=_f(),u=e("%Math.floor%");return C0=function(c,h){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new s("`length` must be a positive 32-bit integer");var f=arguments.length>2&&!!arguments[2],p=!0,y=!0;if("length"in c&&o){var g=o(c,"length");g&&!g.configurable&&(p=!1),g&&!g.writable&&(y=!1)}return(p||y||!f)&&(n?t(c,"length",h,!0,!0):t(c,"length",h)),c},C0}var F0,T_;function N$(){if(T_)return F0;T_=1;var e=Cf(),t=gv(),n=D3();return F0=function(){return n(e,t,arguments)},F0}var B_;function Lp(){return B_||(B_=1,(function(e){var t=j$(),n=kp(),o=mv(),s=N$();e.exports=function(l){var c=o(arguments),h=l.length-(arguments.length-1);return t(c,1+(h>0?h:0),!0)},n?n(e.exports,"apply",{value:s}):e.exports.apply=s})(S0)),S0.exports}var O0,R_;function z3(){if(R_)return O0;R_=1;var e=R$(),t=U$(),n=Lp(),o=al(),s=sl(),u=bv(),l=o("Object.prototype.toString"),c=Pp()(),h=typeof globalThis>"u"?nf:globalThis,f=t(),p=o("String.prototype.slice"),y=o("Array.prototype.indexOf",!0)||function(S,M){for(var A=0;A<S.length;A+=1)if(S[A]===M)return A;return-1},g={__proto__:null};c&&s&&u?e(f,function(F){var S=new h[F];if(Symbol.toStringTag in S&&u){var M=u(S),A=s(M,Symbol.toStringTag);if(!A&&M){var I=u(M);A=s(I,Symbol.toStringTag)}g["$"+F]=n(A.get)}}):e(f,function(F){var S=new h[F],M=S.slice||S.set;M&&(g["$"+F]=n(M))});var m=function(S){var M=!1;return e(g,function(A,I){if(!M)try{"$"+A(S)===I&&(M=p(I,1))}catch{}}),M},w=function(S){var M=!1;return e(g,function(A,I){if(!M)try{A(S),M=p(I,1)}catch{}}),M};return O0=function(S){if(!S||typeof S!="object")return!1;if(!c){var M=p(l(S),8,-1);return y(f,M)>-1?M:M!=="Object"?!1:w(S)}return s?m(S):null},O0}var T0,M_;function D$(){if(M_)return T0;M_=1;var e=z3();return T0=function(n){return!!e(n)},T0}var U_;function P$(){return U_||(U_=1,(function(e){var t=_$(),n=T$(),o=z3(),s=D$();function u(D){return D.call.bind(D)}var l=typeof BigInt<"u",c=typeof Symbol<"u",h=u(Object.prototype.toString),f=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),y=u(Boolean.prototype.valueOf);if(l)var g=u(BigInt.prototype.valueOf);if(c)var m=u(Symbol.prototype.valueOf);function w(D,he){if(typeof D!="object")return!1;try{return he(D),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=s;function F(D){return typeof Promise<"u"&&D instanceof Promise||D!==null&&typeof D=="object"&&typeof D.then=="function"&&typeof D.catch=="function"}e.isPromise=F;function S(D){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(D):s(D)||K(D)}e.isArrayBufferView=S;function M(D){return o(D)==="Uint8Array"}e.isUint8Array=M;function A(D){return o(D)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function I(D){return o(D)==="Uint16Array"}e.isUint16Array=I;function R(D){return o(D)==="Uint32Array"}e.isUint32Array=R;function T(D){return o(D)==="Int8Array"}e.isInt8Array=T;function z(D){return o(D)==="Int16Array"}e.isInt16Array=z;function k(D){return o(D)==="Int32Array"}e.isInt32Array=k;function L(D){return o(D)==="Float32Array"}e.isFloat32Array=L;function U(D){return o(D)==="Float64Array"}e.isFloat64Array=U;function j(D){return o(D)==="BigInt64Array"}e.isBigInt64Array=j;function H(D){return o(D)==="BigUint64Array"}e.isBigUint64Array=H;function P(D){return h(D)==="[object Map]"}P.working=typeof Map<"u"&&P(new Map);function te(D){return typeof Map>"u"?!1:P.working?P(D):D instanceof Map}e.isMap=te;function ue(D){return h(D)==="[object Set]"}ue.working=typeof Set<"u"&&ue(new Set);function oe(D){return typeof Set>"u"?!1:ue.working?ue(D):D instanceof Set}e.isSet=oe;function X(D){return h(D)==="[object WeakMap]"}X.working=typeof WeakMap<"u"&&X(new WeakMap);function re(D){return typeof WeakMap>"u"?!1:X.working?X(D):D instanceof WeakMap}e.isWeakMap=re;function pe(D){return h(D)==="[object WeakSet]"}pe.working=typeof WeakSet<"u"&&pe(new WeakSet);function le(D){return pe(D)}e.isWeakSet=le;function J(D){return h(D)==="[object ArrayBuffer]"}J.working=typeof ArrayBuffer<"u"&&J(new ArrayBuffer);function G(D){return typeof ArrayBuffer>"u"?!1:J.working?J(D):D instanceof ArrayBuffer}e.isArrayBuffer=G;function Q(D){return h(D)==="[object DataView]"}Q.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Q(new DataView(new ArrayBuffer(1),0,1));function K(D){return typeof DataView>"u"?!1:Q.working?Q(D):D instanceof DataView}e.isDataView=K;var W=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(D){return h(D)==="[object SharedArrayBuffer]"}function fe(D){return typeof W>"u"?!1:(typeof $.working>"u"&&($.working=$(new W)),$.working?$(D):D instanceof W)}e.isSharedArrayBuffer=fe;function ae(D){return h(D)==="[object AsyncFunction]"}e.isAsyncFunction=ae;function ne(D){return h(D)==="[object Map Iterator]"}e.isMapIterator=ne;function Z(D){return h(D)==="[object Set Iterator]"}e.isSetIterator=Z;function O(D){return h(D)==="[object Generator]"}e.isGeneratorObject=O;function q(D){return h(D)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=q;function Y(D){return w(D,f)}e.isNumberObject=Y;function se(D){return w(D,p)}e.isStringObject=se;function ye(D){return w(D,y)}e.isBooleanObject=ye;function ee(D){return l&&w(D,g)}e.isBigIntObject=ee;function _(D){return c&&w(D,m)}e.isSymbolObject=_;function v(D){return Y(D)||se(D)||ye(D)||ee(D)||_(D)}e.isBoxedPrimitive=v;function C(D){return typeof Uint8Array<"u"&&(G(D)||fe(D))}e.isAnyArrayBuffer=C,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(D){Object.defineProperty(e,D,{enumerable:!1,value:function(){throw new Error(D+" is not supported in userland")}})})})(Rm)),Rm}var B0,j_;function k$(){return j_||(j_=1,B0=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),B0}var Xh={exports:{}},N_;function L$(){return N_||(N_=1,typeof Object.create=="function"?Xh.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xh.exports=function(t,n){if(n){t.super_=n;var o=function(){};o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t}}),Xh.exports}var D_;function tf(){return D_||(D_=1,(function(e){var t={},n=Object.getOwnPropertyDescriptors||function(W){for(var $=Object.keys(W),fe={},ae=0;ae<$.length;ae++)fe[$[ae]]=Object.getOwnPropertyDescriptor(W,$[ae]);return fe},o=/%[sdj%]/g;e.format=function(K){if(!z(K)){for(var W=[],$=0;$<arguments.length;$++)W.push(c(arguments[$]));return W.join(" ")}for(var $=1,fe=arguments,ae=fe.length,ne=String(K).replace(o,function(O){if(O==="%%")return"%";if($>=ae)return O;switch(O){case"%s":return String(fe[$++]);case"%d":return Number(fe[$++]);case"%j":try{return JSON.stringify(fe[$++])}catch{return"[Circular]"}default:return O}}),Z=fe[$];$<ae;Z=fe[++$])I(Z)||!j(Z)?ne+=" "+Z:ne+=" "+c(Z);return ne},e.deprecate=function(K,W){if(typeof Ut<"u"&&Ut.noDeprecation===!0)return K;if(typeof Ut>"u")return function(){return e.deprecate(K,W).apply(this,arguments)};var $=!1;function fe(){if(!$){if(Ut.throwDeprecation)throw new Error(W);Ut.traceDeprecation?console.trace(W):console.error(W),$=!0}return K.apply(this,arguments)}return fe};var s={},u=/^$/;if(t.NODE_DEBUG){var l=t.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+l+"$","i")}e.debuglog=function(K){if(K=K.toUpperCase(),!s[K])if(u.test(K)){var W=Ut.pid;s[K]=function(){var $=e.format.apply(e,arguments);console.error("%s %d: %s",K,W,$)}}else s[K]=function(){};return s[K]};function c(K,W){var $={seen:[],stylize:f};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),A(W)?$.showHidden=W:W&&e._extend($,W),L($.showHidden)&&($.showHidden=!1),L($.depth)&&($.depth=2),L($.colors)&&($.colors=!1),L($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=h),y($,K,$.depth)}e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(K,W){var $=c.styles[W];return $?"\x1B["+c.colors[$][0]+"m"+K+"\x1B["+c.colors[$][1]+"m":K}function f(K,W){return K}function p(K){var W={};return K.forEach(function($,fe){W[$]=!0}),W}function y(K,W,$){if(K.customInspect&&W&&te(W.inspect)&&W.inspect!==e.inspect&&!(W.constructor&&W.constructor.prototype===W)){var fe=W.inspect($,K);return z(fe)||(fe=y(K,fe,$)),fe}var ae=g(K,W);if(ae)return ae;var ne=Object.keys(W),Z=p(ne);if(K.showHidden&&(ne=Object.getOwnPropertyNames(W)),P(W)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return m(W);if(ne.length===0){if(te(W)){var O=W.name?": "+W.name:"";return K.stylize("[Function"+O+"]","special")}if(U(W))return K.stylize(RegExp.prototype.toString.call(W),"regexp");if(H(W))return K.stylize(Date.prototype.toString.call(W),"date");if(P(W))return m(W)}var q="",Y=!1,se=["{","}"];if(M(W)&&(Y=!0,se=["[","]"]),te(W)){var ye=W.name?": "+W.name:"";q=" [Function"+ye+"]"}if(U(W)&&(q=" "+RegExp.prototype.toString.call(W)),H(W)&&(q=" "+Date.prototype.toUTCString.call(W)),P(W)&&(q=" "+m(W)),ne.length===0&&(!Y||W.length==0))return se[0]+q+se[1];if($<0)return U(W)?K.stylize(RegExp.prototype.toString.call(W),"regexp"):K.stylize("[Object]","special");K.seen.push(W);var ee;return Y?ee=w(K,W,$,Z,ne):ee=ne.map(function(_){return F(K,W,$,Z,_,Y)}),K.seen.pop(),S(ee,q,se)}function g(K,W){if(L(W))return K.stylize("undefined","undefined");if(z(W)){var $="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize($,"string")}if(T(W))return K.stylize(""+W,"number");if(A(W))return K.stylize(""+W,"boolean");if(I(W))return K.stylize("null","null")}function m(K){return"["+Error.prototype.toString.call(K)+"]"}function w(K,W,$,fe,ae){for(var ne=[],Z=0,O=W.length;Z<O;++Z)le(W,String(Z))?ne.push(F(K,W,$,fe,String(Z),!0)):ne.push("");return ae.forEach(function(q){q.match(/^\d+$/)||ne.push(F(K,W,$,fe,q,!0))}),ne}function F(K,W,$,fe,ae,ne){var Z,O,q;if(q=Object.getOwnPropertyDescriptor(W,ae)||{value:W[ae]},q.get?q.set?O=K.stylize("[Getter/Setter]","special"):O=K.stylize("[Getter]","special"):q.set&&(O=K.stylize("[Setter]","special")),le(fe,ae)||(Z="["+ae+"]"),O||(K.seen.indexOf(q.value)<0?(I($)?O=y(K,q.value,null):O=y(K,q.value,$-1),O.indexOf(`
|
|
61
|
+
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class ma extends Ze{constructor({docsPath:t,metaMessages:n,type:o}){super(`Account type "${o}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}function _w({chain:e,currentChainId:t}){if(!e)throw new pU;if(t!==e.id)throw new dU({chain:e,currentChainId:t})}function Cw(e,{docsPath:t,...n}){const o=(()=>{const s=lT(e,n);return s instanceof fw?e:s})();return new iU(o,{docsPath:t,...n})}async function yT(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Im=new uf(128);async function hp(e,t){var A,I,R,T;const{account:n=e.account,chain:o=e.chain,accessList:s,authorizationList:u,blobs:l,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,type:w,value:F,...S}=t;if(typeof n>"u")throw new Ms({docsPath:"/docs/actions/wallet/sendTransaction"});const M=n?wn(n):null;try{hf(t);const z=await(async()=>{if(t.to)return t.to;if(t.to!==null&&u&&u.length>0)return await vw({authorization:u[0]}).catch(()=>{throw new Ze("`to` is required. Could not infer from `authorizationList`.")})})();if((M==null?void 0:M.type)==="json-rpc"||M===null){let k;o!==null&&(k=await Yt(e,Yu,"getChainId")({}),_w({currentChainId:k,chain:o}));const L=(R=(I=(A=e.chain)==null?void 0:A.formatters)==null?void 0:I.transactionRequest)==null?void 0:R.format,j=(L||cp)({...xw(S,{format:L}),accessList:s,account:M,authorizationList:u,blobs:l,chainId:k,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,to:z,type:w,value:F},"sendTransaction"),H=Im.get(e.uid),P=H?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:P,params:[j]},{retryCount:0})}catch(te){if(H===!1)throw te;const ue=te;if(ue.name==="InvalidInputRpcError"||ue.name==="InvalidParamsRpcError"||ue.name==="MethodNotFoundRpcError"||ue.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[j]},{retryCount:0}).then(oe=>(Im.set(e.uid,!0),oe)).catch(oe=>{const X=oe;throw X.name==="MethodNotFoundRpcError"||X.name==="MethodNotSupportedRpcError"?(Im.set(e.uid,!1),ue):X});throw ue}}if((M==null?void 0:M.type)==="local"){const k=await Yt(e,fp,"prepareTransactionRequest")({account:M,accessList:s,authorizationList:u,blobs:l,chain:o,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,nonceManager:M.nonceManager,parameters:[...Sw,"sidecars"],type:w,value:F,...S,to:z}),L=(T=o==null?void 0:o.serializers)==null?void 0:T.transaction,U=await M.signTransaction(k,{serializer:L});return await Yt(e,yT,"sendRawTransaction")({serializedTransaction:U})}throw(M==null?void 0:M.type)==="smart"?new ma({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new ma({docsPath:"/docs/actions/wallet/sendTransaction",type:M==null?void 0:M.type})}catch(z){throw z instanceof ma?z:Cw(z,{...t,account:M,chain:t.chain||void 0})}}async function Yc(e,t){return Yc.internal(e,hp,"sendTransaction",t)}(function(e){async function t(n,o,s,u){const{abi:l,account:c=n.account,address:h,args:f,dataSuffix:p,functionName:y,...g}=u;if(typeof c>"u")throw new Ms({docsPath:"/docs/contract/writeContract"});const m=c?wn(c):null,w=aT({abi:l,args:f,functionName:y});try{return await Yt(n,o,s)({data:`${w}${p?p.replace("0x",""):""}`,to:h,account:m,...g})}catch(F){throw Nj(F,{abi:l,address:h,args:f,docsPath:"/docs/contract/writeContract",functionName:y,sender:m==null?void 0:m.address})}}e.internal=t})(Yc||(Yc={}));class fN extends Ze{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function Hd(e,{delay:t=100,retryCount:n=2,shouldRetry:o=()=>!0}={}){return new Promise((s,u)=>{const l=async({count:c=0}={})=>{const h=async({error:f})=>{const p=typeof t=="function"?t({count:c,error:f}):t;p&&await jb(p),l({count:c+1})};try{const f=await e();s(f)}catch(f){if(c<n&&await o({count:c,error:f}))return h({error:f});u(f)}};l()})}const gT={"0x0":"reverted","0x1":"success"};function mT(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(o=>tN(o)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Xi(e.transactionIndex):null,status:e.status?gT[e.status]:null,type:e.type?fT[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const bT="0x5792579257925792579257925792579257925792579257925792579257925792",AT=it(0,{size:32});async function wT(e,t){const{account:n=e.account,capabilities:o,chain:s=e.chain,experimental_fallback:u,experimental_fallbackDelay:l=32,forceAtomic:c=!1,id:h,version:f="2.0.0"}=t,p=n?wn(n):null,y=t.calls.map(g=>{const m=g,w=m.abi?aT({abi:m.abi,functionName:m.functionName,args:m.args}):m.data;return{data:m.dataSuffix&&w?Zi([w,m.dataSuffix]):w,to:m.to,value:m.value?it(m.value):void 0}});try{const g=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:c,calls:y,capabilities:o,chainId:it(s.id),from:p==null?void 0:p.address,id:h,version:f}]},{retryCount:0});return typeof g=="string"?{id:g}:g}catch(g){const m=g;if(u&&(m.name==="MethodNotFoundRpcError"||m.name==="MethodNotSupportedRpcError"||m.name==="UnknownRpcError"||m.details.toLowerCase().includes("does not exist / is not available")||m.details.toLowerCase().includes("missing or invalid. request()")||m.details.toLowerCase().includes("did not match any variant of untagged enum")||m.details.toLowerCase().includes("account upgraded to unsupported contract")||m.details.toLowerCase().includes("eip-7702 not supported")||m.details.toLowerCase().includes("unsupported wc_ method")||m.details.toLowerCase().includes("feature toggled misconfigured")||m.details.toLowerCase().includes("jsonrpcengine: response has no error or result for request"))){if(o&&Object.values(o).some(A=>!A.optional)){const A="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new ku(new Ze(A,{details:A}))}if(c&&y.length>1){const M="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new Lu(new Ze(M,{details:M}))}const w=[];for(const M of y){const A=hp(e,{account:p,chain:s,data:M.data,to:M.to,value:M.value?Ri(M.value):void 0});w.push(A),l>0&&await new Promise(I=>setTimeout(I,l))}const F=await Promise.allSettled(w);if(F.every(M=>M.status==="rejected"))throw F[0].reason;const S=F.map(M=>M.status==="fulfilled"?M.value:AT);return{id:Zi([...S,it(s.id,{size:32}),bT])}}throw Cw(g,{...t,account:p,chain:t.chain})}}async function vT(e,t){async function n(p){if(p.endsWith(bT.slice(2))){const g=Bs(Bb(p,-64,-32)),m=Bb(p,0,-64).slice(2).match(/.{1,64}/g),w=await Promise.all(m.map(S=>AT.slice(2)!==S?e.request({method:"eth_getTransactionReceipt",params:[`0x${S}`]},{dedupe:!0}):void 0)),F=w.some(S=>S===null)?100:w.every(S=>(S==null?void 0:S.status)==="0x1")?200:w.every(S=>(S==null?void 0:S.status)==="0x0")?500:600;return{atomic:!1,chainId:Xi(g),receipts:w.filter(Boolean),status:F,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[p]})}const{atomic:o=!1,chainId:s,receipts:u,version:l="2.0.0",...c}=await n(t.id),[h,f]=(()=>{const p=c.status;return p>=100&&p<200?["pending",p]:p>=200&&p<300?["success",p]:p>=300&&p<700?["failure",p]:p==="CONFIRMED"?["success",200]:p==="PENDING"?["pending",100]:[void 0,p]})();return{...c,atomic:o,chainId:s?Xi(s):void 0,receipts:(u==null?void 0:u.map(p=>({...p,blockNumber:Ri(p.blockNumber),gasUsed:Ri(p.gasUsed),status:gT[p.status]})))??[],statusCode:f,status:h,version:l}}async function xT(e,t){const{id:n,pollingInterval:o=e.pollingInterval,status:s=({statusCode:F})=>F===200||F>=300,retryCount:u=4,retryDelay:l=({count:F})=>~~(1<<F)*200,timeout:c=6e4,throwOnFailure:h=!1}=t,f=Mn(["waitForCallsStatus",e.uid,n]),{promise:p,resolve:y,reject:g}=Iw();let m;const w=qd(f,{resolve:y,reject:g},F=>{const S=pT(async()=>{const M=A=>{clearTimeout(m),S(),A(),w()};try{const A=await Hd(async()=>{const I=await Yt(e,vT,"getCallsStatus")({id:n});if(h&&I.status==="failure")throw new fN(I);return I},{retryCount:u,delay:l});if(!s(A))return;M(()=>F.resolve(A))}catch(A){M(()=>F.reject(A))}},{interval:o,emitOnBegin:!0});return S});return m=c?setTimeout(()=>{w(),clearTimeout(m),g(new hN({id:n}))},c):void 0,await p}class hN extends Ze{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}const Nb=256;let Kh=Nb,Yh;function ET(e=11){if(!Yh||Kh+e>Nb*2){Yh="",Kh=0;for(let t=0;t<Nb;t++)Yh+=(256+Math.random()*256|0).toString(16).substring(1)}return Yh.substring(Kh,Kh+++e)}function dN(e){const{batch:t,chain:n,ccipRead:o,key:s="base",name:u="Base Client",type:l="base"}=e,c=e.experimental_blockTag??(typeof(n==null?void 0:n.experimental_preconfirmationTime)=="number"?"pending":void 0),h=(n==null?void 0:n.blockTime)??12e3,f=Math.min(Math.max(Math.floor(h/2),500),4e3),p=e.pollingInterval??f,y=e.cacheTime??p,g=e.account?wn(e.account):void 0,{config:m,request:w,value:F}=e.transport({chain:n,pollingInterval:p}),S={...m,...F},M={account:g,batch:t,cacheTime:y,ccipRead:o,chain:n,key:s,name:u,pollingInterval:p,request:w,transport:S,type:l,uid:ET(),...c?{experimental_blockTag:c}:{}};function A(I){return R=>{const T=R(I);for(const k in M)delete T[k];const z={...I,...T};return Object.assign(z,{extend:A(z)})}}return Object.assign(M,{extend:A(M)})}const Vh=new uf(8192);function pN(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Vh.get(n))return Vh.get(n);const o=e().finally(()=>Vh.delete(n));return Vh.set(n,o),o}function yN(e,t={}){return async(n,o={})=>{var y;const{dedupe:s=!1,methods:u,retryDelay:l=150,retryCount:c=3,uid:h}={...t,...o},{method:f}=n;if((y=u==null?void 0:u.exclude)!=null&&y.includes(f))throw new ha(new Error("method not supported"),{method:f});if(u!=null&&u.include&&!u.include.includes(f))throw new ha(new Error("method not supported"),{method:f});const p=s?Nu(`${h}.${Mn(n)}`):void 0;return pN(()=>Hd(async()=>{try{return await e(n)}catch(g){const m=g;switch(m.code){case Fc.code:throw new Fc(m);case Oc.code:throw new Oc(m);case Tc.code:throw new Tc(m,{method:n.method});case Bc.code:throw new Bc(m);case Ea.code:throw new Ea(m);case Rc.code:throw new Rc(m);case Mc.code:throw new Mc(m);case Uc.code:throw new Uc(m);case jc.code:throw new jc(m);case ha.code:throw new ha(m,{method:n.method});case Pu.code:throw new Pu(m);case Nc.code:throw new Nc(m);case Bu.code:throw new Bu(m);case Dc.code:throw new Dc(m);case Pc.code:throw new Pc(m);case kc.code:throw new kc(m);case Lc.code:throw new Lc(m);case zc.code:throw new zc(m);case ku.code:throw new ku(m);case $c.code:throw new $c(m);case qc.code:throw new qc(m);case Hc.code:throw new Hc(m);case Qc.code:throw new Qc(m);case Gc.code:throw new Gc(m);case Lu.code:throw new Lu(m);case 5e3:throw new Bu(m);default:throw g instanceof Ze?g:new Uj(m)}}},{delay:({count:g,error:m})=>{var w;if(m&&m instanceof bc){const F=(w=m==null?void 0:m.headers)==null?void 0:w.get("Retry-After");if(F!=null&&F.match(/\d/))return Number.parseInt(F,10)*1e3}return~~(1<<g)*l},retryCount:c,shouldRetry:({error:g})=>gN(g)}),{enabled:s,id:p})}}function gN(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Pu.code||e.code===Ea.code:e instanceof bc&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function mN(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function bN(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:o}){return new Promise((s,u)=>{(async()=>{let l;try{const c=new AbortController;n>0&&(l=setTimeout(()=>{o&&c.abort()},n)),s(await e({signal:(c==null?void 0:c.signal)||null}))}catch(c){(c==null?void 0:c.name)==="AbortError"&&u(t),u(c)}finally{clearTimeout(l)}})()})}function AN(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const AI=AN();function wN(e,t={}){return{async request(n){var g;const{body:o,fetchFn:s=t.fetchFn??fetch,onRequest:u=t.onRequest,onResponse:l=t.onResponse,timeout:c=t.timeout??1e4}=n,h={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:f,method:p,signal:y}=h;try{const m=await bN(async({signal:F})=>{const S={...h,body:Array.isArray(o)?Mn(o.map(R=>({jsonrpc:"2.0",id:R.id??AI.take(),...R}))):Mn({jsonrpc:"2.0",id:o.id??AI.take(),...o}),headers:{"Content-Type":"application/json",...f},method:p||"POST",signal:y||(c>0?F:null)},M=new Request(e,S),A=await(u==null?void 0:u(M,S))??{...S,url:e};return await s(A.url??e,A)},{errorInstance:new hI({body:o,url:e}),timeout:c,signal:!0});l&&await l(m);let w;if((g=m.headers.get("Content-Type"))!=null&&g.startsWith("application/json"))w=await m.json();else{w=await m.text();try{w=JSON.parse(w||"{}")}catch(F){if(m.ok)throw F;w={error:w}}}if(!m.ok)throw new bc({body:o,details:Mn(w.error)||m.statusText,headers:m.headers,status:m.status,url:e});return w}catch(m){throw m instanceof bc||m instanceof hI?m:new bc({body:o,cause:m,url:e})}}}}async function vN(e,{blockHash:t,blockNumber:n,blockTag:o,hash:s,index:u}){var p,y,g;const l=o||"latest",c=n!==void 0?it(n):void 0;let h=null;if(s?h=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?h=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,it(u)]},{dedupe:!0}):h=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[c||l,it(u)]},{dedupe:!!c}),!h)throw new DO({blockHash:t,blockNumber:n,blockTag:l,hash:s,index:u});return(((g=(y=(p=e.chain)==null?void 0:p.formatters)==null?void 0:y.transaction)==null?void 0:g.format)||hT)(h,"getTransaction")}async function _m(e,{hash:t}){var s,u,l;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new PO({hash:t});return(((l=(u=(s=e.chain)==null?void 0:s.formatters)==null?void 0:u.transactionReceipt)==null?void 0:l.format)||mT)(n,"getTransactionReceipt")}function xN(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:o,onError:s,poll:u,pollingInterval:l=e.pollingInterval}){const c=typeof u<"u"?u:!(e.transport.type==="webSocket"||e.transport.type==="ipc"||e.transport.type==="fallback"&&(e.transport.transports[0].config.type==="webSocket"||e.transport.transports[0].config.type==="ipc"));let h;return c?(()=>{const y=Mn(["watchBlockNumber",e.uid,t,n,l]);return qd(y,{onBlockNumber:o,onError:s},g=>pT(async()=>{var m;try{const w=await Yt(e,cN,"getBlockNumber")({cacheTime:0});if(h!==void 0){if(w===h)return;if(w-h>1&&n)for(let F=h+1n;F<w;F++)g.onBlockNumber(F,h),h=F}(h===void 0||w>h)&&(g.onBlockNumber(w,h),h=w)}catch(w){(m=g.onError)==null||m.call(g,w)}},{emitOnBegin:t,interval:l}))})():(()=>{const y=Mn(["watchBlockNumber",e.uid,t,n]);return qd(y,{onBlockNumber:o,onError:s},g=>{let m=!0,w=()=>m=!1;return(async()=>{try{const F=(()=>{if(e.transport.type==="fallback"){const M=e.transport.transports.find(A=>A.config.type==="webSocket"||A.config.type==="ipc");return M?M.value:e.transport}return e.transport})(),{unsubscribe:S}=await F.subscribe({params:["newHeads"],onData(M){var I;if(!m)return;const A=Ri((I=M.result)==null?void 0:I.number);g.onBlockNumber(A,h),h=A},onError(M){var A;(A=g.onError)==null||A.call(g,M)}});w=S,m||w()}catch(F){s==null||s(F)}})(),()=>w()})})()}async function EN(e,t){const{checkReplacement:n=!0,confirmations:o=1,hash:s,onReplaced:u,retryCount:l=6,retryDelay:c=({count:T})=>~~(1<<T)*200,timeout:h=18e4}=t,f=Mn(["waitForTransactionReceipt",e.uid,s]),p=(()=>{var T;return t.pollingInterval?t.pollingInterval:(T=e.chain)!=null&&T.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let y,g,m,w=!1,F,S;const{promise:M,resolve:A,reject:I}=Iw(),R=h?setTimeout(()=>{S==null||S(),F==null||F(),I(new oU({hash:s}))},h):void 0;return F=qd(f,{onReplaced:u,resolve:A,reject:I},async T=>{if(m=await Yt(e,_m,"getTransactionReceipt")({hash:s}).catch(()=>{}),m&&o<=1){clearTimeout(R),T.resolve(m),F==null||F();return}S=Yt(e,xN,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(z){const k=U=>{clearTimeout(R),S==null||S(),U(),F==null||F()};let L=z;if(!w)try{if(m){if(o>1&&(!m.blockNumber||L-m.blockNumber+1n<o))return;k(()=>T.resolve(m));return}if(n&&!y&&(w=!0,await Hd(async()=>{y=await Yt(e,vN,"getTransaction")({hash:s}),y.blockNumber&&(L=y.blockNumber)},{delay:c,retryCount:l}),w=!1),m=await Yt(e,_m,"getTransactionReceipt")({hash:s}),o>1&&(!m.blockNumber||L-m.blockNumber+1n<o))return;k(()=>T.resolve(m))}catch(U){if(U instanceof DO||U instanceof PO){if(!y){w=!1;return}try{g=y,w=!0;const j=await Hd(()=>Yt(e,Kc,"getBlock")({blockNumber:L,includeTransactions:!0}),{delay:c,retryCount:l,shouldRetry:({error:te})=>te instanceof cT});w=!1;const H=j.transactions.find(({from:te,nonce:ue})=>te===g.from&&ue===g.nonce);if(!H||(m=await Yt(e,_m,"getTransactionReceipt")({hash:H.hash}),o>1&&(!m.blockNumber||L-m.blockNumber+1n<o)))return;let P="replaced";H.to===g.to&&H.value===g.value&&H.input===g.input?P="repriced":H.from===H.to&&H.value===0n&&(P="cancelled"),k(()=>{var te;(te=T.onReplaced)==null||te.call(T,{reason:P,replacedTransaction:g,transaction:H,transactionReceipt:m}),T.resolve(m)})}catch(j){k(()=>T.reject(j))}}else k(()=>T.reject(U))}}})}),M}async function ST(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:o}){var c,h,f;const s=await e.request({method:"eth_sendRawTransactionSync",params:o?[t,it(o)]:[t]},{retryCount:0}),l=(((f=(h=(c=e.chain)==null?void 0:c.formatters)==null?void 0:h.transactionReceipt)==null?void 0:f.format)||mT)(s);if(l.status==="reverted"&&n)throw new kO({receipt:l});return l}async function SN(e,{chain:t}){const{id:n,name:o,nativeCurrency:s,rpcUrls:u,blockExplorers:l}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:it(n),chainName:o,nativeCurrency:s,rpcUrls:u.default.http,blockExplorerUrls:l?Object.values(l).map(({url:c})=>c):void 0}]},{dedupe:!0,retryCount:0})}function IN(e,t){const{abi:n,args:o,bytecode:s,...u}=t,l=rN({abi:n,args:o,bytecode:s});return hp(e,{...u,...u.authorizationList?{to:null}:{},data:l})}async function _N(e){var n;return((n=e.account)==null?void 0:n.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(o=>lf(o))}async function CN(e,t={}){const{account:n=e.account,chainId:o}=t,s=n?wn(n):void 0,u=o?[s==null?void 0:s.address,[it(o)]]:[s==null?void 0:s.address],l=await e.request({method:"wallet_getCapabilities",params:u}),c={};for(const[h,f]of Object.entries(l)){c[Number(h)]={};for(let[p,y]of Object.entries(f))p==="addSubAccount"&&(p="unstable_addSubAccount"),c[Number(h)][p]=y}return typeof o=="number"?c[o]:c}async function FN(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}async function IT(e,t){var h;const{account:n=e.account,chainId:o,nonce:s}=t;if(!n)throw new Ms({docsPath:"/docs/eip7702/prepareAuthorization"});const u=wn(n),l=(()=>{if(t.executor)return t.executor==="self"?t.executor:wn(t.executor)})(),c={address:t.contractAddress??t.address,chainId:o,nonce:s};return typeof c.chainId>"u"&&(c.chainId=((h=e.chain)==null?void 0:h.id)??await Yt(e,Yu,"getChainId")({})),typeof c.nonce>"u"&&(c.nonce=await Yt(e,_O,"getTransactionCount")({address:u.address,blockTag:"pending"}),(l==="self"||l!=null&&l.address&&eN(l.address,u.address))&&(c.nonce+=1)),c}async function ON(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(n=>PM(n))}async function TN(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}async function BN(e,t){const{chain:n=e.chain}=t,o=t.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3),s=await wT(e,t);return await xT(e,{...t,id:s.id,timeout:o})}const Cm=new uf(128);async function _T(e,t){var T,z,k,L;const{account:n=e.account,chain:o=e.chain,accessList:s,authorizationList:u,blobs:l,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,pollingInterval:w,throwOnReceiptRevert:F,type:S,value:M,...A}=t,I=t.timeout??Math.max(((o==null?void 0:o.blockTime)??0)*3,5e3);if(typeof n>"u")throw new Ms({docsPath:"/docs/actions/wallet/sendTransactionSync"});const R=n?wn(n):null;try{hf(t);const U=await(async()=>{if(t.to)return t.to;if(t.to!==null&&u&&u.length>0)return await vw({authorization:u[0]}).catch(()=>{throw new Ze("`to` is required. Could not infer from `authorizationList`.")})})();if((R==null?void 0:R.type)==="json-rpc"||R===null){let j;o!==null&&(j=await Yt(e,Yu,"getChainId")({}),_w({currentChainId:j,chain:o}));const H=(k=(z=(T=e.chain)==null?void 0:T.formatters)==null?void 0:z.transactionRequest)==null?void 0:k.format,te=(H||cp)({...xw(A,{format:H}),accessList:s,account:R,authorizationList:u,blobs:l,chainId:j,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,to:U,type:S,value:M},"sendTransaction"),ue=Cm.get(e.uid),oe=ue?"wallet_sendTransaction":"eth_sendTransaction",X=await(async()=>{try{return await e.request({method:oe,params:[te]},{retryCount:0})}catch(pe){if(ue===!1)throw pe;const le=pe;if(le.name==="InvalidInputRpcError"||le.name==="InvalidParamsRpcError"||le.name==="MethodNotFoundRpcError"||le.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[te]},{retryCount:0}).then(J=>(Cm.set(e.uid,!0),J)).catch(J=>{const G=J;throw G.name==="MethodNotFoundRpcError"||G.name==="MethodNotSupportedRpcError"?(Cm.set(e.uid,!1),le):G});throw le}})(),re=await Yt(e,EN,"waitForTransactionReceipt")({checkReplacement:!1,hash:X,pollingInterval:w,timeout:I});if(F&&re.status==="reverted")throw new kO({receipt:re});return re}if((R==null?void 0:R.type)==="local"){const j=await Yt(e,fp,"prepareTransactionRequest")({account:R,accessList:s,authorizationList:u,blobs:l,chain:o,data:c,gas:h,gasPrice:f,maxFeePerBlobGas:p,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:m,nonceManager:R.nonceManager,parameters:[...Sw,"sidecars"],type:S,value:M,...A,to:U}),H=(L=o==null?void 0:o.serializers)==null?void 0:L.transaction,P=await R.signTransaction(j,{serializer:H});return await Yt(e,ST,"sendRawTransactionSync")({serializedTransaction:P,throwOnReceiptRevert:F})}throw(R==null?void 0:R.type)==="smart"?new ma({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new ma({docsPath:"/docs/actions/wallet/sendTransactionSync",type:R==null?void 0:R.type})}catch(U){throw U instanceof ma?U:Cw(U,{...t,account:R,chain:t.chain||void 0})}}async function RN(e,t){const{id:n}=t;await e.request({method:"wallet_showCallsStatus",params:[n]})}async function MN(e,t){const{account:n=e.account}=t;if(!n)throw new Ms({docsPath:"/docs/eip7702/signAuthorization"});const o=wn(n);if(!o.signAuthorization)throw new ma({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});const s=await IT(e,t);return o.signAuthorization(s)}async function UN(e,{account:t=e.account,message:n}){if(!t)throw new Ms({docsPath:"/docs/actions/wallet/signMessage"});const o=wn(t);if(o.signMessage)return o.signMessage({message:n});const s=typeof n=="string"?Nu(n):n.raw instanceof Uint8Array?Wi(n.raw):n.raw;return e.request({method:"personal_sign",params:[s,o.address]},{retryCount:0})}async function jN(e,t){var f,p,y,g;const{account:n=e.account,chain:o=e.chain,...s}=t;if(!n)throw new Ms({docsPath:"/docs/actions/wallet/signTransaction"});const u=wn(n);hf({account:u,...t});const l=await Yt(e,Yu,"getChainId")({});o!==null&&_w({currentChainId:l,chain:o});const c=(o==null?void 0:o.formatters)||((f=e.chain)==null?void 0:f.formatters),h=((p=c==null?void 0:c.transactionRequest)==null?void 0:p.format)||cp;return u.signTransaction?u.signTransaction({...s,chainId:l},{serializer:(g=(y=e.chain)==null?void 0:y.serializers)==null?void 0:g.transaction}):await e.request({method:"eth_signTransaction",params:[{...h({...s,account:u},"signTransaction"),chainId:it(l),from:u.address}]},{retryCount:0})}async function NN(e,t){const{account:n=e.account,domain:o,message:s,primaryType:u}=t;if(!n)throw new Ms({docsPath:"/docs/actions/wallet/signTypedData"});const l=wn(n),c={EIP712Domain:JO({domain:o}),...t.types};if(ZO({domain:o,message:s,primaryType:u,types:c}),l.signTypedData)return l.signTypedData({domain:o,message:s,primaryType:u,types:c});const h=WU({domain:o,message:s,primaryType:u,types:c});return e.request({method:"eth_signTypedData_v4",params:[l.address,h]},{retryCount:0})}async function DN(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:it(t)}]},{retryCount:0})}async function PN(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}async function kN(e,t){return Yc.internal(e,_T,"sendTransactionSync",t)}function LN(e){return{addChain:t=>SN(e,t),deployContract:t=>IN(e,t),getAddresses:()=>_N(e),getCallsStatus:t=>vT(e,t),getCapabilities:t=>CN(e,t),getChainId:()=>Yu(e),getPermissions:()=>FN(e),prepareAuthorization:t=>IT(e,t),prepareTransactionRequest:t=>fp(e,t),requestAddresses:()=>ON(e),requestPermissions:t=>TN(e,t),sendCalls:t=>wT(e,t),sendCallsSync:t=>BN(e,t),sendRawTransaction:t=>yT(e,t),sendRawTransactionSync:t=>ST(e,t),sendTransaction:t=>hp(e,t),sendTransactionSync:t=>_T(e,t),showCallsStatus:t=>RN(e,t),signAuthorization:t=>MN(e,t),signMessage:t=>UN(e,t),signTransaction:t=>jN(e,t),signTypedData:t=>NN(e,t),switchChain:t=>DN(e,t),waitForCallsStatus:t=>xT(e,t),watchAsset:t=>PN(e,t),writeContract:t=>Yc(e,t),writeContractSync:t=>kN(e,t)}}function od(e){const{key:t="wallet",name:n="Wallet Client",transport:o}=e;return dN({...e,key:t,name:n,transport:o,type:"walletClient"}).extend(LN)}function zN({key:e,methods:t,name:n,request:o,retryCount:s=3,retryDelay:u=150,timeout:l,type:c},h){const f=ET();return{config:{key:e,methods:t,name:n,request:o,retryCount:s,retryDelay:u,timeout:l,type:c},request:yN(o,{methods:t,retryCount:s,retryDelay:u,uid:f}),value:h}}class $N extends Ze{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function sd(e,t={}){const{batch:n,fetchFn:o,fetchOptions:s,key:u="http",methods:l,name:c="HTTP JSON-RPC",onFetchRequest:h,onFetchResponse:f,retryDelay:p,raw:y}=t;return({chain:g,retryCount:m,timeout:w})=>{const{batchSize:F=1e3,wait:S=0}=typeof n=="object"?n:{},M=t.retryCount??m,A=w??t.timeout??1e4,I=g==null?void 0:g.rpcUrls.default.http[0];if(!I)throw new $N;const R=wN(I,{fetchFn:o,fetchOptions:s,onRequest:h,onResponse:f,timeout:A});return zN({key:u,methods:l,name:c,async request({method:T,params:z}){const k={method:T,params:z},{schedule:L}=nN({id:I,wait:S,shouldSplitBatch(P){return P.length>F},fn:P=>R.request({body:P}),sort:(P,te)=>P.id-te.id}),U=async P=>n?L(P):[await R.request({body:P})],[{error:j,result:H}]=await U(k);if(y)return{error:j,result:H};if(j)throw new ww({body:k,error:j,url:I});return H},retryCount:M,retryDelay:p,timeout:A,type:"http"},{fetchOptions:s,url:I})}}const ad=mN({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),Ai={EFFECTSTREAM_API_PORT:"9999",BATCHER_PORT:"3334"},sc={evm:"#4caf50",evmParallel:"#ff9800",cardano:"#2196f3",midnight:"#9c27b0"};function qN(e){const t={};return e.filter(o=>o.networkType!=="ntp").forEach((o,s)=>{var y,g,m;const u=o.network,l=o.syncProtocol;let c=u.name;u.type==="evm"&&u.chainId?c=`evm_${u.chainId}`:u.type==="evm"&&u.id&&(c=`evm_${u.id}`),t[c]&&(c=`${c}_${s}`);let h;u.type==="evm"?(m=(g=(y=u.rpcUrls)==null?void 0:y.default)==null?void 0:g.http)!=null&&m[0]?h=u.rpcUrls.default.http[0]:l.chainUri&&(h=l.chainUri):(u.type==="midnight"||u.type==="avail"||u.type==="cardano")&&(h=u.nodeUrl);let f=sc.evm;u.type==="cardano"?f=sc.cardano:u.type==="midnight"?f=sc.midnight:u.name.toLowerCase().includes("arbitrum")?f=sc.evm:(u.name.toLowerCase().includes("ethereum")||u.name.toLowerCase().includes("l1"))&&(f=sc.evmParallel);const p={type:u.type.toUpperCase(),name:u.name,blockTime:u.blockTimeMS??l.pollingInterval??void 0,color:f,blocks:[],currentBlock:u.type==="evm"?5e5:1e5,rpcEndpoint:h,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1,protocolName:l.name};t[c]=p}),t}async function HN(){var s;const e=await fetch(CT);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json(),n=qN(t);return{Paima:{type:"EVM",name:"Paima Engine",blockTime:((s=t.find(u=>u.syncProtocol.name==="mainNtp"))==null?void 0:s.network.blockTimeMS)??1e3,color:"#667eea",blocks:[],currentBlock:1e6,rpcEndpoint:`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/rpc/evm`,latestBlockNumber:0,previousLatestBlockNumber:0,isConnected:!1},...n}}const CT="http://127.0.0.1:9999/config",QN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/block-heights`,GN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/primitives`,wI=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/tables`,KN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/scheduled-data`,YN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/primitives-schema`,VN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/table-schema`,vI=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/sync-protocols`,WN=`http://localhost:${Ai.BATCHER_PORT}/send-input`,xI=`http://localhost:${Ai.BATCHER_PORT}/documentation`,EI=`http://localhost:${Ai.EFFECTSTREAM_API_PORT}/documentation`,SI="https://effectstream.github.io/docs/",XN=`http://127.0.0.1:${Ai.EFFECTSTREAM_API_PORT}/addresses`;function ZN(e){return Fr(e)&&!kn(e)&&!pf(e)&&Symbol.asyncIterator in e}function kn(e){return Array.isArray(e)}function FT(e){return typeof e=="bigint"}function df(e){return typeof e=="boolean"}function Fw(e){return e instanceof globalThis.Date}function JN(e){return typeof e=="function"}function eD(e){return Fr(e)&&!kn(e)&&!pf(e)&&Symbol.iterator in e}function tD(e){return e===null}function Ji(e){return typeof e=="number"}function Fr(e){return typeof e=="object"&&e!==null}function OT(e){return e instanceof globalThis.RegExp}function br(e){return typeof e=="string"}function rD(e){return typeof e=="symbol"}function pf(e){return e instanceof globalThis.Uint8Array}function _r(e){return e===void 0}function nD(e){return e.map(t=>Qd(t))}function iD(e){return new Date(e.getTime())}function oD(e){return new Uint8Array(e)}function sD(e){return new RegExp(e.source,e.flags)}function aD(e){const t={};for(const n of Object.getOwnPropertyNames(e))t[n]=Qd(e[n]);for(const n of Object.getOwnPropertySymbols(e))t[n]=Qd(e[n]);return t}function Qd(e){return kn(e)?nD(e):Fw(e)?iD(e):pf(e)?oD(e):OT(e)?sD(e):Fr(e)?aD(e):e}function Zn(e){return Qd(e)}function Ow(e,t){return Zn(t===void 0?e:{...t,...e})}function TT(e){return _a(e)&&globalThis.Symbol.asyncIterator in e}function BT(e){return _a(e)&&globalThis.Symbol.iterator in e}function RT(e){return e instanceof globalThis.Promise}function Tw(e){return e instanceof Date&&globalThis.Number.isFinite(e.getTime())}function Bw(e){return e instanceof globalThis.Uint8Array}function uD(e,t){return t in e}function _a(e){return e!==null&&typeof e=="object"}function ko(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Ca(e){return e===void 0}function dp(e){return e===null}function pp(e){return typeof e=="boolean"}function jo(e){return typeof e=="number"}function MT(e){return globalThis.Number.isInteger(e)}function yp(e){return typeof e=="bigint"}function Vi(e){return typeof e=="string"}function UT(e){return typeof e=="function"}function gp(e){return typeof e=="symbol"}function lD(e){return yp(e)||pp(e)||dp(e)||jo(e)||Vi(e)||gp(e)||Ca(e)}var jn;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(l,c){return e.ExactOptionalPropertyTypes?c in l:l[c]!==void 0}e.IsExactOptionalProperty=t;function n(l){const c=_a(l);return e.AllowArrayObject?c:c&&!ko(l)}e.IsObjectLike=n;function o(l){return n(l)&&!(l instanceof Date)&&!(l instanceof Uint8Array)}e.IsRecordLike=o;function s(l){return e.AllowNaN?jo(l):Number.isFinite(l)}e.IsNumberLike=s;function u(l){const c=Ca(l);return e.AllowNullVoid?c||l===null:c}e.IsVoidLike=u})(jn||(jn={}));function cD(e){return globalThis.Object.freeze(e).map(t=>Gd(t))}function fD(e){const t={};for(const n of Object.getOwnPropertyNames(e))t[n]=Gd(e[n]);for(const n of Object.getOwnPropertySymbols(e))t[n]=Gd(e[n]);return globalThis.Object.freeze(t)}function Gd(e){return kn(e)?cD(e):Fw(e)?e:pf(e)?e:OT(e)?e:Fr(e)?fD(e):e}function nt(e,t){const n=t!==void 0?{...t,...e}:e;switch(jn.InstanceMode){case"freeze":return Gd(n);case"clone":return Zn(n);default:return n}}class ni extends Error{constructor(t){super(t)}}const Wn=Symbol.for("TypeBox.Transform"),yf=Symbol.for("TypeBox.Readonly"),qo=Symbol.for("TypeBox.Optional"),mp=Symbol.for("TypeBox.Hint"),at=Symbol.for("TypeBox.Kind");function Rw(e){return Fr(e)&&e[yf]==="Readonly"}function Us(e){return Fr(e)&&e[qo]==="Optional"}function jT(e){return Bt(e,"Any")}function NT(e){return Bt(e,"Argument")}function Vu(e){return Bt(e,"Array")}function bp(e){return Bt(e,"AsyncIterator")}function Ap(e){return Bt(e,"BigInt")}function gf(e){return Bt(e,"Boolean")}function Wu(e){return Bt(e,"Computed")}function Xu(e){return Bt(e,"Constructor")}function hD(e){return Bt(e,"Date")}function Zu(e){return Bt(e,"Function")}function Ju(e){return Bt(e,"Integer")}function wi(e){return Bt(e,"Intersect")}function wp(e){return Bt(e,"Iterator")}function Bt(e,t){return Fr(e)&&at in e&&e[at]===t}function DT(e){return df(e)||Ji(e)||br(e)}function Fa(e){return Bt(e,"Literal")}function Oa(e){return Bt(e,"MappedKey")}function ii(e){return Bt(e,"MappedResult")}function mf(e){return Bt(e,"Never")}function dD(e){return Bt(e,"Not")}function Mw(e){return Bt(e,"Null")}function el(e){return Bt(e,"Number")}function Pi(e){return Bt(e,"Object")}function vp(e){return Bt(e,"Promise")}function xp(e){return Bt(e,"Record")}function Nn(e){return Bt(e,"Ref")}function PT(e){return Bt(e,"RegExp")}function bf(e){return Bt(e,"String")}function Uw(e){return Bt(e,"Symbol")}function Ta(e){return Bt(e,"TemplateLiteral")}function pD(e){return Bt(e,"This")}function ar(e){return Fr(e)&&Wn in e}function Ba(e){return Bt(e,"Tuple")}function Ep(e){return Bt(e,"Undefined")}function Gr(e){return Bt(e,"Union")}function yD(e){return Bt(e,"Uint8Array")}function gD(e){return Bt(e,"Unknown")}function mD(e){return Bt(e,"Unsafe")}function bD(e){return Bt(e,"Void")}function AD(e){return Fr(e)&&at in e&&br(e[at])}function Xn(e){return jT(e)||NT(e)||Vu(e)||gf(e)||Ap(e)||bp(e)||Wu(e)||Xu(e)||hD(e)||Zu(e)||Ju(e)||wi(e)||wp(e)||Fa(e)||Oa(e)||ii(e)||mf(e)||dD(e)||Mw(e)||el(e)||Pi(e)||vp(e)||xp(e)||Nn(e)||PT(e)||bf(e)||Uw(e)||Ta(e)||pD(e)||Ba(e)||Ep(e)||Gr(e)||yD(e)||gD(e)||mD(e)||bD(e)||AD(e)}const wD=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function kT(e){try{return new RegExp(e),!0}catch{return!1}}function jw(e){if(!br(e))return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>=7&&n<=13||n===27||n===127)return!1}return!0}function LT(e){return Nw(e)||nn(e)}function ac(e){return _r(e)||FT(e)}function Xt(e){return _r(e)||Ji(e)}function Nw(e){return _r(e)||df(e)}function $t(e){return _r(e)||br(e)}function vD(e){return _r(e)||br(e)&&jw(e)&&kT(e)}function xD(e){return _r(e)||br(e)&&jw(e)}function zT(e){return _r(e)||nn(e)}function Kd(e){return Fr(e)&&e[qo]==="Optional"}function Mi(e){return Rt(e,"Any")&&$t(e.$id)}function ED(e){return Rt(e,"Argument")&&Ji(e.index)}function Ra(e){return Rt(e,"Array")&&e.type==="array"&&$t(e.$id)&&nn(e.items)&&Xt(e.minItems)&&Xt(e.maxItems)&&Nw(e.uniqueItems)&&zT(e.contains)&&Xt(e.minContains)&&Xt(e.maxContains)}function Dw(e){return Rt(e,"AsyncIterator")&&e.type==="AsyncIterator"&&$t(e.$id)&&nn(e.items)}function Sp(e){return Rt(e,"BigInt")&&e.type==="bigint"&&$t(e.$id)&&ac(e.exclusiveMaximum)&&ac(e.exclusiveMinimum)&&ac(e.maximum)&&ac(e.minimum)&&ac(e.multipleOf)}function Ma(e){return Rt(e,"Boolean")&&e.type==="boolean"&&$t(e.$id)}function SD(e){return Rt(e,"Computed")&&br(e.target)&&kn(e.parameters)&&e.parameters.every(t=>nn(t))}function Ip(e){return Rt(e,"Constructor")&&e.type==="Constructor"&&$t(e.$id)&&kn(e.parameters)&&e.parameters.every(t=>nn(t))&&nn(e.returns)}function _p(e){return Rt(e,"Date")&&e.type==="Date"&&$t(e.$id)&&Xt(e.exclusiveMaximumTimestamp)&&Xt(e.exclusiveMinimumTimestamp)&&Xt(e.maximumTimestamp)&&Xt(e.minimumTimestamp)&&Xt(e.multipleOfTimestamp)}function Cp(e){return Rt(e,"Function")&&e.type==="Function"&&$t(e.$id)&&kn(e.parameters)&&e.parameters.every(t=>nn(t))&&nn(e.returns)}function Ho(e){return Rt(e,"Integer")&&e.type==="integer"&&$t(e.$id)&&Xt(e.exclusiveMaximum)&&Xt(e.exclusiveMinimum)&&Xt(e.maximum)&&Xt(e.minimum)&&Xt(e.multipleOf)}function $T(e){return Fr(e)&&Object.entries(e).every(([t,n])=>jw(t)&&nn(n))}function Ua(e){return Rt(e,"Intersect")&&!(br(e.type)&&e.type!=="object")&&kn(e.allOf)&&e.allOf.every(t=>nn(t)&&!TD(t))&&$t(e.type)&&(Nw(e.unevaluatedProperties)||zT(e.unevaluatedProperties))&&$t(e.$id)}function Pw(e){return Rt(e,"Iterator")&&e.type==="Iterator"&&$t(e.$id)&&nn(e.items)}function Rt(e,t){return Fr(e)&&at in e&&e[at]===t}function qT(e){return js(e)&&br(e.const)}function HT(e){return js(e)&&Ji(e.const)}function QT(e){return js(e)&&df(e.const)}function js(e){return Rt(e,"Literal")&&$t(e.$id)&&ID(e.const)}function ID(e){return df(e)||Ji(e)||br(e)}function _D(e){return Rt(e,"MappedKey")&&kn(e.keys)&&e.keys.every(t=>Ji(t)||br(t))}function CD(e){return Rt(e,"MappedResult")&&$T(e.properties)}function Ns(e){return Rt(e,"Never")&&Fr(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function zu(e){return Rt(e,"Not")&&nn(e.not)}function kw(e){return Rt(e,"Null")&&e.type==="null"&&$t(e.$id)}function Bn(e){return Rt(e,"Number")&&e.type==="number"&&$t(e.$id)&&Xt(e.exclusiveMaximum)&&Xt(e.exclusiveMinimum)&&Xt(e.maximum)&&Xt(e.minimum)&&Xt(e.multipleOf)}function cr(e){return Rt(e,"Object")&&e.type==="object"&&$t(e.$id)&&$T(e.properties)&<(e.additionalProperties)&&Xt(e.minProperties)&&Xt(e.maxProperties)}function Lw(e){return Rt(e,"Promise")&&e.type==="Promise"&&$t(e.$id)&&nn(e.item)}function rn(e){return Rt(e,"Record")&&e.type==="object"&&$t(e.$id)&<(e.additionalProperties)&&Fr(e.patternProperties)&&(t=>{const n=Object.getOwnPropertyNames(t.patternProperties);return n.length===1&&kT(n[0])&&Fr(t.patternProperties)&&nn(t.patternProperties[n[0]])})(e)}function FD(e){return Rt(e,"Ref")&&$t(e.$id)&&br(e.$ref)}function Vc(e){return Rt(e,"RegExp")&&$t(e.$id)&&br(e.source)&&br(e.flags)&&Xt(e.maxLength)&&Xt(e.minLength)}function Ui(e){return Rt(e,"String")&&e.type==="string"&&$t(e.$id)&&Xt(e.minLength)&&Xt(e.maxLength)&&vD(e.pattern)&&xD(e.format)}function Wc(e){return Rt(e,"Symbol")&&e.type==="symbol"&&$t(e.$id)}function Xc(e){return Rt(e,"TemplateLiteral")&&e.type==="string"&&br(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function OD(e){return Rt(e,"This")&&$t(e.$id)&&br(e.$ref)}function TD(e){return Fr(e)&&Wn in e}function Fp(e){return Rt(e,"Tuple")&&e.type==="array"&&$t(e.$id)&&Ji(e.minItems)&&Ji(e.maxItems)&&e.minItems===e.maxItems&&(_r(e.items)&&_r(e.additionalItems)&&e.minItems===0||kn(e.items)&&e.items.every(t=>nn(t)))}function Sa(e){return Rt(e,"Undefined")&&e.type==="undefined"&&$t(e.$id)}function Lo(e){return Rt(e,"Union")&&$t(e.$id)&&Fr(e)&&kn(e.anyOf)&&e.anyOf.every(t=>nn(t))}function Af(e){return Rt(e,"Uint8Array")&&e.type==="Uint8Array"&&$t(e.$id)&&Xt(e.minByteLength)&&Xt(e.maxByteLength)}function ji(e){return Rt(e,"Unknown")&&$t(e.$id)}function BD(e){return Rt(e,"Unsafe")}function Op(e){return Rt(e,"Void")&&e.type==="void"&&$t(e.$id)}function RD(e){return Fr(e)&&at in e&&br(e[at])&&!wD.includes(e[at])}function nn(e){return Fr(e)&&(Mi(e)||ED(e)||Ra(e)||Ma(e)||Sp(e)||Dw(e)||SD(e)||Ip(e)||_p(e)||Cp(e)||Ho(e)||Ua(e)||Pw(e)||js(e)||_D(e)||CD(e)||Ns(e)||zu(e)||kw(e)||Bn(e)||cr(e)||Lw(e)||rn(e)||FD(e)||Vc(e)||Ui(e)||Wc(e)||Xc(e)||OD(e)||Fp(e)||Sa(e)||Lo(e)||Af(e)||ji(e)||BD(e)||Op(e)||RD(e))}const MD="(true|false)",ud="(0|[1-9][0-9]*)",GT="(.*)",UD="(?!.*)",$u=`^${ud}$`,qu=`^${GT}$`,jD=`^${UD}$`,zw=new Map;function KT(e){return zw.has(e)}function to(e,t){zw.set(e,t)}function YT(e){return zw.get(e)}const VT=new Map;function $w(e){return VT.has(e)}function WT(e){return VT.get(e)}function ND(e,t){return e.includes(t)}function DD(e){return[...new Set(e)]}function PD(e,t){return e.filter(n=>t.includes(n))}function kD(e,t){return e.reduce((n,o)=>PD(n,o),t)}function LD(e){return e.length===1?e[0]:e.length>1?kD(e.slice(1),e[0]):[]}function zD(e){const t=[];for(const n of e)t.push(...n);return t}function Zc(e){return nt({[at]:"Any"},e)}function qw(e,t){return nt({[at]:"Array",type:"array",items:e},t)}function $D(e){return nt({[at]:"Argument",index:e})}function Hw(e,t){return nt({[at]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function Dr(e,t,n){return nt({[at]:"Computed",target:e,parameters:t},n)}function qD(e,t){const{[t]:n,...o}=e;return o}function Jn(e,t){return t.reduce((n,o)=>qD(n,o),e)}function yr(e){return nt({[at]:"Never",not:{}},e)}function on(e){return nt({[at]:"MappedResult",properties:e})}function Qw(e,t,n){return nt({[at]:"Constructor",type:"Constructor",parameters:e,returns:t},n)}function wf(e,t,n){return nt({[at]:"Function",type:"Function",parameters:e,returns:t},n)}function Db(e,t){return nt({[at]:"Union",anyOf:e},t)}function HD(e){return e.some(t=>Us(t))}function II(e){return e.map(t=>Us(t)?QD(t):t)}function QD(e){return Jn(e,[qo])}function GD(e,t){return HD(e)?ks(Db(II(e),t)):Db(II(e),t)}function tl(e,t){return e.length===1?nt(e[0],t):e.length===0?yr(t):GD(e,t)}function sn(e,t){return e.length===0?yr(t):e.length===1?nt(e[0],t):Db(e,t)}class _I extends ni{}function KD(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function Gw(e,t,n){return e[t]===n&&e.charCodeAt(t-1)!==92}function No(e,t){return Gw(e,t,"(")}function Jc(e,t){return Gw(e,t,")")}function XT(e,t){return Gw(e,t,"|")}function YD(e){if(!(No(e,0)&&Jc(e,e.length-1)))return!1;let t=0;for(let n=0;n<e.length;n++)if(No(e,n)&&(t+=1),Jc(e,n)&&(t-=1),t===0&&n!==e.length-1)return!1;return!0}function VD(e){return e.slice(1,e.length-1)}function WD(e){let t=0;for(let n=0;n<e.length;n++)if(No(e,n)&&(t+=1),Jc(e,n)&&(t-=1),XT(e,n)&&t===0)return!0;return!1}function XD(e){for(let t=0;t<e.length;t++)if(No(e,t))return!0;return!1}function ZD(e){let[t,n]=[0,0];const o=[];for(let u=0;u<e.length;u++)if(No(e,u)&&(t+=1),Jc(e,u)&&(t-=1),XT(e,u)&&t===0){const l=e.slice(n,u);l.length>0&&o.push(Hu(l)),n=u+1}const s=e.slice(n);return s.length>0&&o.push(Hu(s)),o.length===0?{type:"const",const:""}:o.length===1?o[0]:{type:"or",expr:o}}function JD(e){function t(s,u){if(!No(s,u))throw new _I("TemplateLiteralParser: Index must point to open parens");let l=0;for(let c=u;c<s.length;c++)if(No(s,c)&&(l+=1),Jc(s,c)&&(l-=1),l===0)return[u,c];throw new _I("TemplateLiteralParser: Unclosed group parens in expression")}function n(s,u){for(let l=u;l<s.length;l++)if(No(s,l))return[u,l];return[u,s.length]}const o=[];for(let s=0;s<e.length;s++)if(No(e,s)){const[u,l]=t(e,s),c=e.slice(u,l+1);o.push(Hu(c)),s=l}else{const[u,l]=n(e,s),c=e.slice(u,l);c.length>0&&o.push(Hu(c)),s=l-1}return o.length===0?{type:"const",const:""}:o.length===1?o[0]:{type:"and",expr:o}}function Hu(e){return YD(e)?Hu(VD(e)):WD(e)?ZD(e):XD(e)?JD(e):{type:"const",const:KD(e)}}function Kw(e){return Hu(e.slice(1,e.length-1))}class eP extends ni{}function tP(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function rP(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function nP(e){return e.type==="const"&&e.const===".*"}function ef(e){return tP(e)||nP(e)?!1:rP(e)?!0:e.type==="and"?e.expr.every(t=>ef(t)):e.type==="or"?e.expr.every(t=>ef(t)):e.type==="const"?!0:(()=>{throw new eP("Unknown expression type")})()}function iP(e){const t=Kw(e.pattern);return ef(t)}class oP extends ni{}function*ZT(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const n of ZT(e.slice(1)))yield`${t}${n}`}function*sP(e){return yield*ZT(e.expr.map(t=>[...Tp(t)]))}function*aP(e){for(const t of e.expr)yield*Tp(t)}function*uP(e){return yield e.const}function*Tp(e){return e.type==="and"?yield*sP(e):e.type==="or"?yield*aP(e):e.type==="const"?yield*uP(e):(()=>{throw new oP("Unknown expression")})()}function JT(e){const t=Kw(e.pattern);return ef(t)?[...Tp(t)]:[]}function Cr(e,t){return nt({[at]:"Literal",const:e,type:typeof e},t)}function e3(e){return nt({[at]:"Boolean",type:"boolean"},e)}function Yw(e){return nt({[at]:"BigInt",type:"bigint"},e)}function ja(e){return nt({[at]:"Number",type:"number"},e)}function Ia(e){return nt({[at]:"String",type:"string"},e)}function*lP(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield e3():t==="number"?yield ja():t==="bigint"?yield Yw():t==="string"?yield Ia():yield(()=>{const n=t.split("|").map(o=>Cr(o.trim()));return n.length===0?yr():n.length===1?n[0]:tl(n)})()}function*cP(e){if(e[1]!=="{"){const t=Cr("$"),n=Pb(e.slice(1));return yield*[t,...n]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const n=lP(e.slice(2,t)),o=Pb(e.slice(t+1));return yield*[...n,...o]}yield Cr(e)}function*Pb(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const n=Cr(e.slice(0,t)),o=cP(e.slice(t));return yield*[n,...o]}yield Cr(e)}function fP(e){return[...Pb(e)]}class hP extends ni{}function dP(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function t3(e,t){return Ta(e)?e.pattern.slice(1,e.pattern.length-1):Gr(e)?`(${e.anyOf.map(n=>t3(n,t)).join("|")})`:el(e)?`${t}${ud}`:Ju(e)?`${t}${ud}`:Ap(e)?`${t}${ud}`:bf(e)?`${t}${GT}`:Fa(e)?`${t}${dP(e.const.toString())}`:gf(e)?`${t}${MD}`:(()=>{throw new hP(`Unexpected Kind '${e[at]}'`)})()}function CI(e){return`^${e.map(t=>t3(t,"")).join("")}$`}function Yd(e){const n=JT(e).map(o=>Cr(o));return tl(n)}function r3(e,t){const n=br(e)?CI(fP(e)):CI(e);return nt({[at]:"TemplateLiteral",type:"string",pattern:n},t)}function pP(e){return JT(e).map(n=>n.toString())}function yP(e){const t=[];for(const n of e)t.push(...Ds(n));return t}function gP(e){return[e.toString()]}function Ds(e){return[...new Set(Ta(e)?pP(e):Gr(e)?yP(e.anyOf):Fa(e)?gP(e.const):el(e)?["[number]"]:Ju(e)?["[number]"]:[])]}function mP(e,t,n){const o={};for(const s of Object.getOwnPropertyNames(t))o[s]=Bp(e,Ds(t[s]),n);return o}function bP(e,t,n){return mP(e,t.properties,n)}function AP(e,t,n){const o=bP(e,t,n);return on(o)}function n3(e,t){return e.map(n=>i3(n,t))}function wP(e){return e.filter(t=>!mf(t))}function vP(e,t){return a3(wP(n3(e,t)))}function xP(e){return e.some(t=>mf(t))?[]:e}function EP(e,t){return tl(xP(n3(e,t)))}function SP(e,t){return t in e?e[t]:t==="[number]"?tl(e):yr()}function IP(e,t){return t==="[number]"?e:yr()}function _P(e,t){return t in e?e[t]:yr()}function i3(e,t){return wi(e)?vP(e.allOf,t):Gr(e)?EP(e.anyOf,t):Ba(e)?SP(e.items??[],t):Vu(e)?IP(e.items,t):Pi(e)?_P(e.properties,t):yr()}function Vw(e,t){return t.map(n=>i3(e,n))}function FI(e,t){return tl(Vw(e,t))}function Bp(e,t,n){if(Nn(e)||Nn(t)){const o="Index types using Ref parameters require both Type and Key to be of TSchema";if(!Xn(e)||!Xn(t))throw new ni(o);return Dr("Index",[e,t])}return ii(t)?AP(e,t,n):Oa(t)?TP(e,t,n):nt(Xn(t)?FI(e,Ds(t)):FI(e,t),n)}function CP(e,t,n){return{[t]:Bp(e,[t],Zn(n))}}function FP(e,t,n){return t.reduce((o,s)=>({...o,...CP(e,s,n)}),{})}function OP(e,t,n){return FP(e,t.keys,n)}function TP(e,t,n){const o=OP(e,t,n);return on(o)}function Ww(e,t){return nt({[at]:"Iterator",type:"Iterator",items:e},t)}function BP(e){const t=[];for(let n in e)Us(e[n])||t.push(n);return t}function RP(e,t){const n=BP(e),o=n.length>0?{[at]:"Object",type:"object",properties:e,required:n}:{[at]:"Object",type:"object",properties:e};return nt(o,t)}var Qr=RP;function o3(e,t){return nt({[at]:"Promise",type:"Promise",item:e},t)}function MP(e){return nt(Jn(e,[yf]))}function UP(e){return nt({...e,[yf]:"Readonly"})}function jP(e,t){return t===!1?MP(e):UP(e)}function Ps(e,t){const n=t??!0;return ii(e)?PP(e,n):jP(e,n)}function NP(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=Ps(e[o],t);return n}function DP(e,t){return NP(e.properties,t)}function PP(e,t){const n=DP(e,t);return on(n)}function rl(e,t){return nt(e.length>0?{[at]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[at]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function s3(e,t){return e in t?mi(e,t[e]):on(t)}function kP(e){return{[e]:Cr(e)}}function LP(e){const t={};for(const n of e)t[n]=Cr(n);return t}function zP(e,t){return ND(t,e)?kP(e):LP(t)}function $P(e,t){const n=zP(e,t);return s3(e,n)}function uc(e,t){return t.map(n=>mi(e,n))}function qP(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(t))n[o]=mi(e,t[o]);return n}function mi(e,t){const n={...t};return Us(t)?ks(mi(e,Jn(t,[qo]))):Rw(t)?Ps(mi(e,Jn(t,[yf]))):ii(t)?s3(e,t.properties):Oa(t)?$P(e,t.keys):Xu(t)?Qw(uc(e,t.parameters),mi(e,t.returns),n):Zu(t)?wf(uc(e,t.parameters),mi(e,t.returns),n):bp(t)?Hw(mi(e,t.items),n):wp(t)?Ww(mi(e,t.items),n):wi(t)?Ls(uc(e,t.allOf),n):Gr(t)?sn(uc(e,t.anyOf),n):Ba(t)?rl(uc(e,t.items??[]),n):Pi(t)?Qr(qP(e,t.properties),n):Vu(t)?qw(mi(e,t.items),n):vp(t)?o3(mi(e,t.item),n):t}function HP(e,t){const n={};for(const o of e)n[o]=mi(o,t);return n}function QP(e,t,n){const o=Xn(e)?Ds(e):e,s=t({[at]:"MappedKey",keys:o}),u=HP(o,s);return Qr(u,n)}function GP(e){return nt(Jn(e,[qo]))}function KP(e){return nt({...e,[qo]:"Optional"})}function YP(e,t){return t===!1?GP(e):KP(e)}function ks(e,t){const n=t??!0;return ii(e)?XP(e,n):YP(e,n)}function VP(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=ks(e[o],t);return n}function WP(e,t){return VP(e.properties,t)}function XP(e,t){const n=WP(e,t);return on(n)}function kb(e,t={}){const n=e.every(s=>Pi(s)),o=Xn(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return nt(t.unevaluatedProperties===!1||Xn(t.unevaluatedProperties)||n?{...o,[at]:"Intersect",type:"object",allOf:e}:{...o,[at]:"Intersect",allOf:e},t)}function ZP(e){return e.every(t=>Us(t))}function JP(e){return Jn(e,[qo])}function OI(e){return e.map(t=>Us(t)?JP(t):t)}function e5(e,t){return ZP(e)?ks(kb(OI(e),t)):kb(OI(e),t)}function a3(e,t={}){if(e.length===1)return nt(e[0],t);if(e.length===0)return yr(t);if(e.some(n=>ar(n)))throw new Error("Cannot intersect transform types");return e5(e,t)}function Ls(e,t){if(e.length===1)return nt(e[0],t);if(e.length===0)return yr(t);if(e.some(n=>ar(n)))throw new Error("Cannot intersect transform types");return kb(e,t)}function vf(...e){const[t,n]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new ni("Ref: $ref must be a string");return nt({[at]:"Ref",$ref:t},n)}function t5(e,t){return Dr("Awaited",[Dr(e,t)])}function r5(e){return Dr("Awaited",[vf(e)])}function n5(e){return Ls(u3(e))}function i5(e){return sn(u3(e))}function o5(e){return Rp(e)}function u3(e){return e.map(t=>Rp(t))}function Rp(e,t){return nt(Wu(e)?t5(e.target,e.parameters):wi(e)?n5(e.allOf):Gr(e)?i5(e.anyOf):vp(e)?o5(e.item):Nn(e)?r5(e.$ref):e,t)}function l3(e){const t=[];for(const n of e)t.push(nl(n));return t}function s5(e){const t=l3(e);return zD(t)}function a5(e){const t=l3(e);return LD(t)}function u5(e){return e.map((t,n)=>n.toString())}function l5(e){return["[number]"]}function c5(e){return globalThis.Object.getOwnPropertyNames(e)}function f5(e){return Lb?globalThis.Object.getOwnPropertyNames(e).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}function nl(e){return wi(e)?s5(e.allOf):Gr(e)?a5(e.anyOf):Ba(e)?u5(e.items??[]):Vu(e)?l5(e.items):Pi(e)?c5(e.properties):xp(e)?f5(e.patternProperties):[]}let Lb=!1;function Vd(e){Lb=!0;const t=nl(e);return Lb=!1,`^(${t.map(o=>`(${o})`).join("|")})$`}function h5(e,t){return Dr("KeyOf",[Dr(e,t)])}function d5(e){return Dr("KeyOf",[vf(e)])}function p5(e,t){const n=nl(e),o=y5(n),s=tl(o);return nt(s,t)}function y5(e){return e.map(t=>t==="[number]"?ja():Cr(t))}function Xw(e,t){return Wu(e)?h5(e.target,e.parameters):Nn(e)?d5(e.$ref):ii(e)?b5(e,t):p5(e,t)}function g5(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=Xw(e[o],Zn(t));return n}function m5(e,t){return g5(e.properties,t)}function b5(e,t){const n=m5(e,t);return on(n)}function A5(e){const t=nl(e),n=Vw(e,t);return t.map((o,s)=>[t[s],n[s]])}function w5(e){const t=[];for(const n of e)t.push(...nl(n));return DD(t)}function v5(e){return e.filter(t=>!mf(t))}function x5(e,t){const n=[];for(const o of e)n.push(...Vw(o,[t]));return v5(n)}function E5(e,t){const n={};for(const o of t)n[o]=a3(x5(e,o));return n}function S5(e,t){const n=w5(e),o=E5(e,n);return Qr(o,t)}function c3(e){return nt({[at]:"Date",type:"Date"},e)}function f3(e){return nt({[at]:"Null",type:"null"},e)}function h3(e){return nt({[at]:"Symbol",type:"symbol"},e)}function d3(e){return nt({[at]:"Undefined",type:"undefined"},e)}function p3(e){return nt({[at]:"Uint8Array",type:"Uint8Array"},e)}function Mp(e){return nt({[at]:"Unknown"},e)}function I5(e){return e.map(t=>Zw(t,!1))}function _5(e){const t={};for(const n of globalThis.Object.getOwnPropertyNames(e))t[n]=Ps(Zw(e[n],!1));return t}function Wh(e,t){return t===!0?e:Ps(e)}function Zw(e,t){return ZN(e)||eD(e)?Wh(Zc(),t):kn(e)?Ps(rl(I5(e))):pf(e)?p3():Fw(e)?c3():Fr(e)?Wh(Qr(_5(e)),t):JN(e)?Wh(wf([],Mp()),t):_r(e)?d3():tD(e)?f3():rD(e)?h3():FT(e)?Yw():Ji(e)||df(e)||br(e)?Cr(e):Qr({})}function C5(e,t){return nt(Zw(e,!0),t)}function F5(e,t){return Xu(e)?rl(e.parameters,t):yr(t)}function O5(e,t){if(_r(e))throw new Error("Enum undefined or empty");const n=globalThis.Object.getOwnPropertyNames(e).filter(u=>isNaN(u)).map(u=>e[u]),s=[...new Set(n)].map(u=>Cr(u));return sn(s,{...t,[mp]:"Enum"})}class T5 extends ni{}var ze;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(ze||(ze={}));function bi(e){return e===ze.False?e:ze.True}function il(e){throw new T5(e)}function Or(e){return Ns(e)||Ua(e)||Lo(e)||ji(e)||Mi(e)}function Tr(e,t){return Ns(t)?m3():Ua(t)?Up(e,t):Lo(t)?ev(e,t):ji(t)?v3():Mi(t)?Jw():il("StructuralRight")}function Jw(e,t){return ze.True}function B5(e,t){return Ua(t)?Up(e,t):Lo(t)&&t.anyOf.some(n=>Mi(n)||ji(n))?ze.True:Lo(t)?ze.Union:ji(t)||Mi(t)?ze.True:ze.Union}function R5(e,t){return ji(e)?ze.False:Mi(e)?ze.Union:Ns(e)?ze.True:ze.False}function M5(e,t){return cr(t)&&jp(t)?ze.True:Or(t)?Tr(e,t):Ra(t)?bi(zt(e.items,t.items)):ze.False}function U5(e,t){return Or(t)?Tr(e,t):Dw(t)?bi(zt(e.items,t.items)):ze.False}function j5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Sp(t)?ze.True:ze.False}function y3(e,t){return QT(e)||Ma(e)?ze.True:ze.False}function N5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ma(t)?ze.True:ze.False}function D5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):Ip(t)?e.parameters.length>t.parameters.length?ze.False:e.parameters.every((n,o)=>bi(zt(t.parameters[o],n))===ze.True)?bi(zt(e.returns,t.returns)):ze.False:ze.False}function P5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):_p(t)?ze.True:ze.False}function k5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):Cp(t)?e.parameters.length>t.parameters.length?ze.False:e.parameters.every((n,o)=>bi(zt(t.parameters[o],n))===ze.True)?bi(zt(e.returns,t.returns)):ze.False:ze.False}function g3(e,t){return js(e)&&Ji(e.const)||Bn(e)||Ho(e)?ze.True:ze.False}function L5(e,t){return Ho(t)||Bn(t)?ze.True:Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):ze.False}function Up(e,t){return t.allOf.every(n=>zt(e,n)===ze.True)?ze.True:ze.False}function z5(e,t){return e.allOf.some(n=>zt(n,t)===ze.True)?ze.True:ze.False}function $5(e,t){return Or(t)?Tr(e,t):Pw(t)?bi(zt(e.items,t.items)):ze.False}function q5(e,t){return js(t)&&t.const===e.const?ze.True:Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ui(t)?w3(e):Bn(t)?b3(e):Ho(t)?g3(e):Ma(t)?y3(e):ze.False}function m3(e,t){return ze.False}function H5(e,t){return ze.True}function TI(e){let[t,n]=[e,0];for(;zu(t);)t=t.not,n+=1;return n%2===0?t:Mp()}function Q5(e,t){return zu(e)?zt(TI(e),t):zu(t)?zt(e,TI(t)):il("Invalid fallthrough for Not")}function G5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):kw(t)?ze.True:ze.False}function b3(e,t){return HT(e)||Bn(e)||Ho(e)?ze.True:ze.False}function K5(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ho(t)||Bn(t)?ze.True:ze.False}function Dn(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function BI(e){return jp(e)}function RI(e){return Dn(e,0)||Dn(e,1)&&"description"in e.properties&&Lo(e.properties.description)&&e.properties.description.anyOf.length===2&&(Ui(e.properties.description.anyOf[0])&&Sa(e.properties.description.anyOf[1])||Ui(e.properties.description.anyOf[1])&&Sa(e.properties.description.anyOf[0]))}function Fm(e){return Dn(e,0)}function MI(e){return Dn(e,0)}function Y5(e){return Dn(e,0)}function V5(e){return Dn(e,0)}function W5(e){return jp(e)}function X5(e){const t=ja();return Dn(e,0)||Dn(e,1)&&"length"in e.properties&&bi(zt(e.properties.length,t))===ze.True}function Z5(e){return Dn(e,0)}function jp(e){const t=ja();return Dn(e,0)||Dn(e,1)&&"length"in e.properties&&bi(zt(e.properties.length,t))===ze.True}function J5(e){const t=wf([Zc()],Zc());return Dn(e,0)||Dn(e,1)&&"then"in e.properties&&bi(zt(e.properties.then,t))===ze.True}function A3(e,t){return zt(e,t)===ze.False||Kd(e)&&!Kd(t)?ze.False:ze.True}function yn(e,t){return ji(e)?ze.False:Mi(e)?ze.Union:Ns(e)||qT(e)&&BI(t)||HT(e)&&Fm(t)||QT(e)&&MI(t)||Wc(e)&&RI(t)||Sp(e)&&Y5(t)||Ui(e)&&BI(t)||Wc(e)&&RI(t)||Bn(e)&&Fm(t)||Ho(e)&&Fm(t)||Ma(e)&&MI(t)||Af(e)&&W5(t)||_p(e)&&V5(t)||Ip(e)&&Z5(t)||Cp(e)&&X5(t)?ze.True:rn(e)&&Ui(zb(e))?t[mp]==="Record"?ze.True:ze.False:rn(e)&&Bn(zb(e))?Dn(t,0)?ze.True:ze.False:ze.False}function ek(e,t){return Or(t)?Tr(e,t):rn(t)?vi(e,t):cr(t)?(()=>{for(const n of Object.getOwnPropertyNames(t.properties)){if(!(n in e.properties)&&!Kd(t.properties[n]))return ze.False;if(Kd(t.properties[n]))return ze.True;if(A3(e.properties[n],t.properties[n])===ze.False)return ze.False}return ze.True})():ze.False}function tk(e,t){return Or(t)?Tr(e,t):cr(t)&&J5(t)?ze.True:Lw(t)?bi(zt(e.item,t.item)):ze.False}function zb(e){return $u in e.patternProperties?ja():qu in e.patternProperties?Ia():il("Unknown record key pattern")}function $b(e){return $u in e.patternProperties?e.patternProperties[$u]:qu in e.patternProperties?e.patternProperties[qu]:il("Unable to get record value schema")}function vi(e,t){const[n,o]=[zb(t),$b(t)];return qT(e)&&Bn(n)&&bi(zt(e,o))===ze.True?ze.True:Af(e)&&Bn(n)||Ui(e)&&Bn(n)||Ra(e)&&Bn(n)?zt(e,o):cr(e)?(()=>{for(const s of Object.getOwnPropertyNames(e.properties))if(A3(o,e.properties[s])===ze.False)return ze.False;return ze.True})():ze.False}function rk(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?zt($b(e),$b(t)):ze.False}function nk(e,t){const n=Vc(e)?Ia():e,o=Vc(t)?Ia():t;return zt(n,o)}function w3(e,t){return js(e)&&br(e.const)||Ui(e)?ze.True:ze.False}function ik(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Ui(t)?ze.True:ze.False}function ok(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Wc(t)?ze.True:ze.False}function sk(e,t){return Xc(e)?zt(Yd(e),t):Xc(t)?zt(e,Yd(t)):il("Invalid fallthrough for TemplateLiteral")}function ak(e,t){return Ra(t)&&e.items!==void 0&&e.items.every(n=>zt(n,t.items)===ze.True)}function uk(e,t){return Ns(e)?ze.True:ji(e)?ze.False:Mi(e)?ze.Union:ze.False}function lk(e,t){return Or(t)?Tr(e,t):cr(t)&&jp(t)||Ra(t)&&ak(e,t)?ze.True:Fp(t)?_r(e.items)&&!_r(t.items)||!_r(e.items)&&_r(t.items)?ze.False:_r(e.items)&&!_r(t.items)||e.items.every((n,o)=>zt(n,t.items[o])===ze.True)?ze.True:ze.False:ze.False}function ck(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Af(t)?ze.True:ze.False}function fk(e,t){return Or(t)?Tr(e,t):cr(t)?yn(e,t):rn(t)?vi(e,t):Op(t)?pk(e):Sa(t)?ze.True:ze.False}function ev(e,t){return t.anyOf.some(n=>zt(e,n)===ze.True)?ze.True:ze.False}function hk(e,t){return e.anyOf.every(n=>zt(n,t)===ze.True)?ze.True:ze.False}function v3(e,t){return ze.True}function dk(e,t){return Ns(t)?m3():Ua(t)?Up(e,t):Lo(t)?ev(e,t):Mi(t)?Jw():Ui(t)?w3(e):Bn(t)?b3(e):Ho(t)?g3(e):Ma(t)?y3(e):Ra(t)?R5(e):Fp(t)?uk(e):cr(t)?yn(e,t):ji(t)?ze.True:ze.False}function pk(e,t){return Sa(e)||Sa(e)?ze.True:ze.False}function yk(e,t){return Ua(t)?Up(e,t):Lo(t)?ev(e,t):ji(t)?v3():Mi(t)?Jw():cr(t)?yn(e,t):Op(t)?ze.True:ze.False}function zt(e,t){return Xc(e)||Xc(t)?sk(e,t):Vc(e)||Vc(t)?nk(e,t):zu(e)||zu(t)?Q5(e,t):Mi(e)?B5(e,t):Ra(e)?M5(e,t):Sp(e)?j5(e,t):Ma(e)?N5(e,t):Dw(e)?U5(e,t):Ip(e)?D5(e,t):_p(e)?P5(e,t):Cp(e)?k5(e,t):Ho(e)?L5(e,t):Ua(e)?z5(e,t):Pw(e)?$5(e,t):js(e)?q5(e,t):Ns(e)?H5():kw(e)?G5(e,t):Bn(e)?K5(e,t):cr(e)?ek(e,t):rn(e)?rk(e,t):Ui(e)?ik(e,t):Wc(e)?ok(e,t):Fp(e)?lk(e,t):Lw(e)?tk(e,t):Af(e)?ck(e,t):Sa(e)?fk(e,t):Lo(e)?hk(e,t):ji(e)?dk(e,t):Op(e)?yk(e,t):il(`Unknown left type operand '${e[at]}'`)}function xf(e,t){return zt(e,t)}function gk(e,t,n,o,s){const u={};for(const l of globalThis.Object.getOwnPropertyNames(e))u[l]=tv(e[l],t,n,o,Zn(s));return u}function mk(e,t,n,o,s){return gk(e.properties,t,n,o,s)}function bk(e,t,n,o,s){const u=mk(e,t,n,o,s);return on(u)}function Ak(e,t,n,o){const s=xf(e,t);return s===ze.Union?sn([n,o]):s===ze.True?n:o}function tv(e,t,n,o,s){return ii(e)?bk(e,t,n,o,s):Oa(e)?nt(Ek(e,t,n,o,s)):nt(Ak(e,t,n,o),s)}function wk(e,t,n,o,s){return{[e]:tv(Cr(e),t,n,o,Zn(s))}}function vk(e,t,n,o,s){return e.reduce((u,l)=>({...u,...wk(l,t,n,o,s)}),{})}function xk(e,t,n,o,s){return vk(e.keys,t,n,o,s)}function Ek(e,t,n,o,s){const u=xk(e,t,n,o,s);return on(u)}function Sk(e){return e.allOf.every(t=>Ef(t))}function Ik(e){return e.anyOf.some(t=>Ef(t))}function _k(e){return!Ef(e.not)}function Ef(e){return e[at]==="Intersect"?Sk(e):e[at]==="Union"?Ik(e):e[at]==="Not"?_k(e):e[at]==="Undefined"}function Ck(e,t){return rv(Yd(e),t)}function Fk(e,t){const n=e.filter(o=>xf(o,t)===ze.False);return n.length===1?n[0]:sn(n)}function rv(e,t,n={}){return Ta(e)?nt(Ck(e,t),n):ii(e)?nt(Bk(e,t),n):nt(Gr(e)?Fk(e.anyOf,t):xf(e,t)!==ze.False?yr():e,n)}function Ok(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=rv(e[o],t);return n}function Tk(e,t){return Ok(e.properties,t)}function Bk(e,t){const n=Tk(e,t);return on(n)}function Rk(e,t){return nv(Yd(e),t)}function Mk(e,t){const n=e.filter(o=>xf(o,t)!==ze.False);return n.length===1?n[0]:sn(n)}function nv(e,t,n){return Ta(e)?nt(Rk(e,t),n):ii(e)?nt(Nk(e,t),n):nt(Gr(e)?Mk(e.anyOf,t):xf(e,t)!==ze.False?e:yr(),n)}function Uk(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=nv(e[o],t);return n}function jk(e,t){return Uk(e.properties,t)}function Nk(e,t){const n=jk(e,t);return on(n)}function Dk(e,t){return Xu(e)?nt(e.returns,t):yr(t)}function x3(e){return Ps(ks(e))}function Na(e,t,n){return nt({[at]:"Record",type:"object",patternProperties:{[e]:t}},n)}function iv(e,t,n){const o={};for(const s of e)o[s]=t;return Qr(o,{...n,[mp]:"Record"})}function Pk(e,t,n){return iP(e)?iv(Ds(e),t,n):Na(e.pattern,t,n)}function kk(e,t,n){return iv(Ds(sn(e)),t,n)}function Lk(e,t,n){return iv([e.toString()],t,n)}function zk(e,t,n){return Na(e.source,t,n)}function $k(e,t,n){const o=_r(e.pattern)?qu:e.pattern;return Na(o,t,n)}function qk(e,t,n){return Na(qu,t,n)}function Hk(e,t,n){return Na(jD,t,n)}function Qk(e,t,n){return Qr({true:t,false:t},n)}function Gk(e,t,n){return Na($u,t,n)}function Kk(e,t,n){return Na($u,t,n)}function E3(e,t,n={}){return Gr(e)?kk(e.anyOf,t,n):Ta(e)?Pk(e,t,n):Fa(e)?Lk(e.const,t,n):gf(e)?Qk(e,t,n):Ju(e)?Gk(e,t,n):el(e)?Kk(e,t,n):PT(e)?zk(e,t,n):bf(e)?$k(e,t,n):jT(e)?qk(e,t,n):mf(e)?Hk(e,t,n):yr(n)}function ov(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function Yk(e){const t=ov(e);return t===qu?Ia():t===$u?ja():Ia({pattern:t})}function S3(e){return e.patternProperties[ov(e)]}function Vk(e,t){return t.parameters=Sf(e,t.parameters),t.returns=Ni(e,t.returns),t}function Wk(e,t){return t.parameters=Sf(e,t.parameters),t.returns=Ni(e,t.returns),t}function Xk(e,t){return t.allOf=Sf(e,t.allOf),t}function Zk(e,t){return t.anyOf=Sf(e,t.anyOf),t}function Jk(e,t){return _r(t.items)||(t.items=Sf(e,t.items)),t}function eL(e,t){return t.items=Ni(e,t.items),t}function tL(e,t){return t.items=Ni(e,t.items),t}function rL(e,t){return t.items=Ni(e,t.items),t}function nL(e,t){return t.item=Ni(e,t.item),t}function iL(e,t){const n=uL(e,t.properties);return{...t,...Qr(n)}}function oL(e,t){const n=Ni(e,Yk(t)),o=Ni(e,S3(t)),s=E3(n,o);return{...t,...s}}function sL(e,t){return t.index in e?e[t.index]:Mp()}function aL(e,t){const n=Rw(t),o=Us(t),s=Ni(e,t);return n&&o?x3(s):n&&!o?Ps(s):!n&&o?ks(s):s}function uL(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((n,o)=>({...n,[o]:aL(e,t[o])}),{})}function Sf(e,t){return t.map(n=>Ni(e,n))}function Ni(e,t){return Xu(t)?Vk(e,t):Zu(t)?Wk(e,t):wi(t)?Xk(e,t):Gr(t)?Zk(e,t):Ba(t)?Jk(e,t):Vu(t)?eL(e,t):bp(t)?tL(e,t):wp(t)?rL(e,t):vp(t)?nL(e,t):Pi(t)?iL(e,t):xp(t)?oL(e,t):NT(t)?sL(e,t):t}function lL(e,t){return Ni(t,Ow(e))}function cL(e){return nt({[at]:"Integer",type:"integer"},e)}function fL(e,t,n){return{[e]:ol(Cr(e),t,Zn(n))}}function hL(e,t,n){return e.reduce((s,u)=>({...s,...fL(u,t,n)}),{})}function dL(e,t,n){return hL(e.keys,t,n)}function pL(e,t,n){const o=dL(e,t,n);return on(o)}function yL(e){const[t,n]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),n].join("")}function gL(e){const[t,n]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),n].join("")}function mL(e){return e.toUpperCase()}function bL(e){return e.toLowerCase()}function AL(e,t,n){const o=Kw(e.pattern);if(!ef(o))return{...e,pattern:I3(e.pattern,t)};const l=[...Tp(o)].map(f=>Cr(f)),c=_3(l,t),h=sn(c);return r3([h],n)}function I3(e,t){return typeof e=="string"?t==="Uncapitalize"?yL(e):t==="Capitalize"?gL(e):t==="Uppercase"?mL(e):t==="Lowercase"?bL(e):e:e.toString()}function _3(e,t){return e.map(n=>ol(n,t))}function ol(e,t,n={}){return Oa(e)?pL(e,t,n):Ta(e)?AL(e,t,n):Gr(e)?sn(_3(e.anyOf,t),n):Fa(e)?Cr(I3(e.const,t),n):nt(e,n)}function wL(e,t={}){return ol(e,"Capitalize",t)}function vL(e,t={}){return ol(e,"Lowercase",t)}function xL(e,t={}){return ol(e,"Uncapitalize",t)}function EL(e,t={}){return ol(e,"Uppercase",t)}function SL(e,t,n){const o={};for(const s of globalThis.Object.getOwnPropertyNames(e))o[s]=Np(e[s],t,Zn(n));return o}function IL(e,t,n){return SL(e.properties,t,n)}function _L(e,t,n){const o=IL(e,t,n);return on(o)}function CL(e,t){return e.map(n=>sv(n,t))}function FL(e,t){return e.map(n=>sv(n,t))}function OL(e,t){const{[t]:n,...o}=e;return o}function TL(e,t){return t.reduce((n,o)=>OL(n,o),e)}function BL(e,t){const n=Jn(e,[Wn,"$id","required","properties"]),o=TL(e.properties,t);return Qr(o,n)}function RL(e){const t=e.reduce((n,o)=>DT(o)?[...n,Cr(o)]:n,[]);return sn(t)}function sv(e,t){return wi(e)?Ls(CL(e.allOf,t)):Gr(e)?sn(FL(e.anyOf,t)):Pi(e)?BL(e,t):Qr({})}function Np(e,t,n){const o=kn(t)?RL(t):t,s=Xn(t)?Ds(t):t,u=Nn(e),l=Nn(t);return ii(e)?_L(e,s,n):Oa(t)?NL(e,t,n):u&&l?Dr("Omit",[e,o],n):!u&&l?Dr("Omit",[e,o],n):u&&!l?Dr("Omit",[e,o],n):nt({...sv(e,s),...n})}function ML(e,t,n){return{[t]:Np(e,[t],Zn(n))}}function UL(e,t,n){return t.reduce((o,s)=>({...o,...ML(e,s,n)}),{})}function jL(e,t,n){return UL(e,t.keys,n)}function NL(e,t,n){const o=jL(e,t,n);return on(o)}function DL(e,t,n){const o={};for(const s of globalThis.Object.getOwnPropertyNames(e))o[s]=Dp(e[s],t,Zn(n));return o}function PL(e,t,n){return DL(e.properties,t,n)}function kL(e,t,n){const o=PL(e,t,n);return on(o)}function LL(e,t){return e.map(n=>av(n,t))}function zL(e,t){return e.map(n=>av(n,t))}function $L(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function qL(e,t){const n=Jn(e,[Wn,"$id","required","properties"]),o=$L(e.properties,t);return Qr(o,n)}function HL(e){const t=e.reduce((n,o)=>DT(o)?[...n,Cr(o)]:n,[]);return sn(t)}function av(e,t){return wi(e)?Ls(LL(e.allOf,t)):Gr(e)?sn(zL(e.anyOf,t)):Pi(e)?qL(e,t):Qr({})}function Dp(e,t,n){const o=kn(t)?HL(t):t,s=Xn(t)?Ds(t):t,u=Nn(e),l=Nn(t);return ii(e)?kL(e,s,n):Oa(t)?YL(e,t,n):u&&l?Dr("Pick",[e,o],n):!u&&l?Dr("Pick",[e,o],n):u&&!l?Dr("Pick",[e,o],n):nt({...av(e,s),...n})}function QL(e,t,n){return{[t]:Dp(e,[t],Zn(n))}}function GL(e,t,n){return t.reduce((o,s)=>({...o,...QL(e,s,n)}),{})}function KL(e,t,n){return GL(e,t.keys,n)}function YL(e,t,n){const o=KL(e,t,n);return on(o)}function VL(e,t){return Dr("Partial",[Dr(e,t)])}function WL(e){return Dr("Partial",[vf(e)])}function XL(e){const t={};for(const n of globalThis.Object.getOwnPropertyNames(e))t[n]=ks(e[n]);return t}function ZL(e){const t=Jn(e,[Wn,"$id","required","properties"]),n=XL(e.properties);return Qr(n,t)}function UI(e){return e.map(t=>C3(t))}function C3(e){return Wu(e)?VL(e.target,e.parameters):Nn(e)?WL(e.$ref):wi(e)?Ls(UI(e.allOf)):Gr(e)?sn(UI(e.anyOf)):Pi(e)?ZL(e):Ap(e)||gf(e)||Ju(e)||Fa(e)||Mw(e)||el(e)||bf(e)||Uw(e)||Ep(e)?e:Qr({})}function uv(e,t){return ii(e)?tz(e,t):nt({...C3(e),...t})}function JL(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=uv(e[o],Zn(t));return n}function ez(e,t){return JL(e.properties,t)}function tz(e,t){const n=ez(e,t);return on(n)}function rz(e,t){return Dr("Required",[Dr(e,t)])}function nz(e){return Dr("Required",[vf(e)])}function iz(e){const t={};for(const n of globalThis.Object.getOwnPropertyNames(e))t[n]=Jn(e[n],[qo]);return t}function oz(e){const t=Jn(e,[Wn,"$id","required","properties"]),n=iz(e.properties);return Qr(n,t)}function jI(e){return e.map(t=>F3(t))}function F3(e){return Wu(e)?rz(e.target,e.parameters):Nn(e)?nz(e.$ref):wi(e)?Ls(jI(e.allOf)):Gr(e)?sn(jI(e.anyOf)):Pi(e)?oz(e):Ap(e)||gf(e)||Ju(e)||Fa(e)||Mw(e)||el(e)||bf(e)||Uw(e)||Ep(e)?e:Qr({})}function lv(e,t){return ii(e)?uz(e,t):nt({...F3(e),...t})}function sz(e,t){const n={};for(const o of globalThis.Object.getOwnPropertyNames(e))n[o]=lv(e[o],t);return n}function az(e,t){return sz(e.properties,t)}function uz(e,t){const n=az(e,t);return on(n)}function lz(e,t){return t.map(n=>Nn(n)?cv(e,n.$ref):ei(e,n))}function cv(e,t){return t in e?Nn(e[t])?cv(e,e[t].$ref):ei(e,e[t]):yr()}function cz(e){return Rp(e[0])}function fz(e){return Bp(e[0],e[1])}function hz(e){return Xw(e[0])}function dz(e){return uv(e[0])}function pz(e){return Np(e[0],e[1])}function yz(e){return Dp(e[0],e[1])}function gz(e){return lv(e[0])}function mz(e,t,n){const o=lz(e,n);return t==="Awaited"?cz(o):t==="Index"?fz(o):t==="KeyOf"?hz(o):t==="Partial"?dz(o):t==="Omit"?pz(o):t==="Pick"?yz(o):t==="Required"?gz(o):yr()}function bz(e,t){return qw(ei(e,t))}function Az(e,t){return Hw(ei(e,t))}function wz(e,t,n){return Qw(If(e,t),ei(e,n))}function vz(e,t,n){return wf(If(e,t),ei(e,n))}function xz(e,t){return Ls(If(e,t))}function Ez(e,t){return Ww(ei(e,t))}function Sz(e,t){return Qr(globalThis.Object.keys(t).reduce((n,o)=>({...n,[o]:ei(e,t[o])}),{}))}function Iz(e,t){const[n,o]=[ei(e,S3(t)),ov(t)],s=Ow(t);return s.patternProperties[o]=n,s}function _z(e,t){return Nn(t)?{...cv(e,t.$ref),[Wn]:t[Wn]}:t}function Cz(e,t){return rl(If(e,t))}function Fz(e,t){return sn(If(e,t))}function If(e,t){return t.map(n=>ei(e,n))}function ei(e,t){return Us(t)?nt(ei(e,Jn(t,[qo])),t):Rw(t)?nt(ei(e,Jn(t,[yf])),t):ar(t)?nt(_z(e,t),t):Vu(t)?nt(bz(e,t.items),t):bp(t)?nt(Az(e,t.items),t):Wu(t)?nt(mz(e,t.target,t.parameters)):Xu(t)?nt(wz(e,t.parameters,t.returns),t):Zu(t)?nt(vz(e,t.parameters,t.returns),t):wi(t)?nt(xz(e,t.allOf),t):wp(t)?nt(Ez(e,t.items),t):Pi(t)?nt(Sz(e,t.properties),t):xp(t)?nt(Iz(e,t)):Ba(t)?nt(Cz(e,t.items||[]),t):Gr(t)?nt(Fz(e,t.anyOf),t):t}function Oz(e,t){return t in e?ei(e,e[t]):yr()}function Tz(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,n)=>({...t,[n]:Oz(e,n)}),{})}class Bz{constructor(t){const n=Tz(t),o=this.WithIdentifiers(n);this.$defs=o}Import(t,n){const o={...this.$defs,[t]:nt(this.$defs[t],n)};return nt({[at]:"Import",$defs:o,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((n,o)=>({...n,[o]:{...t[o],$id:o}}),{})}}function Rz(e){return new Bz(e)}function Mz(e,t){return nt({[at]:"Not",not:e},t)}function Uz(e,t){return Zu(e)?rl(e.parameters,t):yr()}let jz=0;function Nz(e,t={}){_r(t.$id)&&(t.$id=`T${jz++}`);const n=Ow(e({[at]:"This",$ref:`${t.$id}`}));return n.$id=t.$id,nt({[mp]:"Recursive",...n},t)}function Dz(e,t){const n=br(e)?new globalThis.RegExp(e):e;return nt({[at]:"RegExp",type:"RegExp",source:n.source,flags:n.flags},t)}function Pz(e){return wi(e)?e.allOf:Gr(e)?e.anyOf:Ba(e)?e.items??[]:[]}function kz(e){return Pz(e)}function Lz(e,t){return Zu(e)?nt(e.returns,t):yr(t)}class zz{constructor(t){this.schema=t}Decode(t){return new $z(this.schema,t)}}class $z{constructor(t,n){this.schema=t,this.decode=n}EncodeTransform(t,n){const u={Encode:l=>n[Wn].Encode(t(l)),Decode:l=>this.decode(n[Wn].Decode(l))};return{...n,[Wn]:u}}EncodeSchema(t,n){const o={Decode:this.decode,Encode:t};return{...n,[Wn]:o}}Encode(t){return ar(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}}function qz(e){return new zz(e)}function Hz(e={}){return nt({[at]:e[at]??"Unsafe"},e)}function Qz(e){return nt({[at]:"Void",type:"void"},e)}const Gz=Object.freeze(Object.defineProperty({__proto__:null,Any:Zc,Argument:$D,Array:qw,AsyncIterator:Hw,Awaited:Rp,BigInt:Yw,Boolean:e3,Capitalize:wL,Composite:S5,Const:C5,Constructor:Qw,ConstructorParameters:F5,Date:c3,Enum:O5,Exclude:rv,Extends:tv,Extract:nv,Function:wf,Index:Bp,InstanceType:Dk,Instantiate:lL,Integer:cL,Intersect:Ls,Iterator:Ww,KeyOf:Xw,Literal:Cr,Lowercase:vL,Mapped:QP,Module:Rz,Never:yr,Not:Mz,Null:f3,Number:ja,Object:Qr,Omit:Np,Optional:ks,Parameters:Uz,Partial:uv,Pick:Dp,Promise:o3,Readonly:Ps,ReadonlyOptional:x3,Record:E3,Recursive:Nz,Ref:vf,RegExp:Dz,Required:lv,Rest:kz,ReturnType:Lz,String:Ia,Symbol:h3,TemplateLiteral:r3,Transform:qz,Tuple:rl,Uint8Array:p3,Uncapitalize:xL,Undefined:d3,Union:sn,Unknown:Mp,Unsafe:Hz,Uppercase:EL,Void:Qz},Symbol.toStringTag,{value:"Module"})),je=Gz;function Kz(e){switch(e.errorType){case Ne.ArrayContains:return"Expected array to contain at least one matching value";case Ne.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case Ne.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case Ne.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case Ne.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case Ne.ArrayUniqueItems:return"Expected array elements to be unique";case Ne.Array:return"Expected array";case Ne.AsyncIterator:return"Expected AsyncIterator";case Ne.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case Ne.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case Ne.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case Ne.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case Ne.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case Ne.BigInt:return"Expected bigint";case Ne.Boolean:return"Expected boolean";case Ne.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case Ne.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case Ne.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case Ne.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case Ne.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case Ne.Date:return"Expected Date";case Ne.Function:return"Expected function";case Ne.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case Ne.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case Ne.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case Ne.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case Ne.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case Ne.Integer:return"Expected integer";case Ne.IntersectUnevaluatedProperties:return"Unexpected property";case Ne.Intersect:return"Expected all values to match";case Ne.Iterator:return"Expected Iterator";case Ne.Literal:return`Expected ${typeof e.schema.const=="string"?`'${e.schema.const}'`:e.schema.const}`;case Ne.Never:return"Never";case Ne.Not:return"Value should not match";case Ne.Null:return"Expected null";case Ne.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case Ne.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case Ne.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case Ne.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case Ne.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case Ne.Number:return"Expected number";case Ne.Object:return"Expected object";case Ne.ObjectAdditionalProperties:return"Unexpected property";case Ne.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case Ne.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case Ne.ObjectRequiredProperty:return"Expected required property";case Ne.Promise:return"Expected Promise";case Ne.RegExp:return"Expected string to match regular expression";case Ne.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case Ne.StringFormat:return`Expected string to match '${e.schema.format}' format`;case Ne.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case Ne.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case Ne.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case Ne.String:return"Expected string";case Ne.Symbol:return"Expected symbol";case Ne.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case Ne.Tuple:return"Expected tuple";case Ne.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case Ne.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case Ne.Uint8Array:return"Expected Uint8Array";case Ne.Undefined:return"Expected undefined";case Ne.Union:return"Expected union value";case Ne.Void:return"Expected void";case Ne.Kind:return`Expected kind '${e.schema[at]}'`;default:return"Unknown error type"}}let Yz=Kz;function Vz(){return Yz}class Wz extends ni{constructor(t){super(`Unable to dereference schema with $id '${t.$ref}'`),this.schema=t}}function Xz(e,t){const n=t.find(o=>o.$id===e.$ref);if(n===void 0)throw new Wz(e);return Qo(n,t)}function fv(e,t){return!Vi(e.$id)||t.some(n=>n.$id===e.$id)||t.push(e),t}function Qo(e,t){return e[at]==="This"||e[at]==="Ref"?Xz(e,t):e}class Zz extends ni{constructor(t){super("Unable to hash value"),this.value=t}}var ti;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(ti||(ti={}));let _u=BigInt("14695981039346656037");const[Jz,e7]=[BigInt("1099511628211"),BigInt("18446744073709551616")],t7=Array.from({length:256}).map((e,t)=>BigInt(t)),O3=new Float64Array(1),T3=new DataView(O3.buffer),B3=new Uint8Array(O3.buffer);function*r7(e){const t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let n=0;n<t;n++)yield e>>8*(t-1-n)&255}function n7(e){pn(ti.Array);for(const t of e)Qu(t)}function i7(e){pn(ti.Boolean),pn(e?1:0)}function o7(e){pn(ti.BigInt),T3.setBigInt64(0,e);for(const t of B3)pn(t)}function s7(e){pn(ti.Date),Qu(e.getTime())}function a7(e){pn(ti.Null)}function u7(e){pn(ti.Number),T3.setFloat64(0,e);for(const t of B3)pn(t)}function l7(e){pn(ti.Object);for(const t of globalThis.Object.getOwnPropertyNames(e).sort())Qu(t),Qu(e[t])}function c7(e){pn(ti.String);for(let t=0;t<e.length;t++)for(const n of r7(e.charCodeAt(t)))pn(n)}function f7(e){pn(ti.Symbol),Qu(e.description)}function h7(e){pn(ti.Uint8Array);for(let t=0;t<e.length;t++)pn(e[t])}function d7(e){return pn(ti.Undefined)}function Qu(e){if(ko(e))return n7(e);if(pp(e))return i7(e);if(yp(e))return o7(e);if(Tw(e))return s7(e);if(dp(e))return a7();if(jo(e))return u7(e);if(_a(e))return l7(e);if(Vi(e))return c7(e);if(gp(e))return f7(e);if(Bw(e))return h7(e);if(Ca(e))return d7();throw new Zz(e)}function pn(e){_u=_u^t7[e],_u=_u*Jz%e7}function R3(e){return _u=BigInt("14695981039346656037"),Qu(e),_u}class p7 extends ni{constructor(t){super("Unknown type"),this.schema=t}}function y7(e){return e[at]==="Any"||e[at]==="Unknown"}function Ct(e){return e!==void 0}function g7(e,t,n){return!0}function m7(e,t,n){return!0}function b7(e,t,n){if(!ko(n)||Ct(e.minItems)&&!(n.length>=e.minItems)||Ct(e.maxItems)&&!(n.length<=e.maxItems)||!n.every(u=>$r(e.items,t,u))||e.uniqueItems===!0&&!(function(){const u=new Set;for(const l of n){const c=R3(l);if(u.has(c))return!1;u.add(c)}return!0})())return!1;if(!(Ct(e.contains)||jo(e.minContains)||jo(e.maxContains)))return!0;const o=Ct(e.contains)?e.contains:yr(),s=n.reduce((u,l)=>$r(o,t,l)?u+1:u,0);return!(s===0||jo(e.minContains)&&s<e.minContains||jo(e.maxContains)&&s>e.maxContains)}function A7(e,t,n){return TT(n)}function w7(e,t,n){return!(!yp(n)||Ct(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||Ct(e.maximum)&&!(n<=e.maximum)||Ct(e.minimum)&&!(n>=e.minimum)||Ct(e.multipleOf)&&n%e.multipleOf!==BigInt(0))}function v7(e,t,n){return pp(n)}function x7(e,t,n){return $r(e.returns,t,n.prototype)}function E7(e,t,n){return!(!Tw(n)||Ct(e.exclusiveMaximumTimestamp)&&!(n.getTime()<e.exclusiveMaximumTimestamp)||Ct(e.exclusiveMinimumTimestamp)&&!(n.getTime()>e.exclusiveMinimumTimestamp)||Ct(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)||Ct(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)||Ct(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0)}function S7(e,t,n){return UT(n)}function I7(e,t,n){const o=globalThis.Object.values(e.$defs),s=e.$defs[e.$ref];return $r(s,[...t,...o],n)}function _7(e,t,n){return!(!MT(n)||Ct(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||Ct(e.maximum)&&!(n<=e.maximum)||Ct(e.minimum)&&!(n>=e.minimum)||Ct(e.multipleOf)&&n%e.multipleOf!==0)}function C7(e,t,n){const o=e.allOf.every(s=>$r(s,t,n));if(e.unevaluatedProperties===!1){const s=new RegExp(Vd(e)),u=Object.getOwnPropertyNames(n).every(l=>s.test(l));return o&&u}else if(Xn(e.unevaluatedProperties)){const s=new RegExp(Vd(e)),u=Object.getOwnPropertyNames(n).every(l=>s.test(l)||$r(e.unevaluatedProperties,t,n[l]));return o&&u}else return o}function F7(e,t,n){return BT(n)}function O7(e,t,n){return n===e.const}function T7(e,t,n){return!1}function B7(e,t,n){return!$r(e.not,t,n)}function R7(e,t,n){return dp(n)}function M7(e,t,n){return!(!jn.IsNumberLike(n)||Ct(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||Ct(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||Ct(e.minimum)&&!(n>=e.minimum)||Ct(e.maximum)&&!(n<=e.maximum)||Ct(e.multipleOf)&&n%e.multipleOf!==0)}function U7(e,t,n){if(!jn.IsObjectLike(n)||Ct(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;const o=Object.getOwnPropertyNames(e.properties);for(const s of o){const u=e.properties[s];if(e.required&&e.required.includes(s)){if(!$r(u,t,n[s])||(Ef(u)||y7(u))&&!(s in n))return!1}else if(jn.IsExactOptionalProperty(n,s)&&!$r(u,t,n[s]))return!1}if(e.additionalProperties===!1){const s=Object.getOwnPropertyNames(n);return e.required&&e.required.length===o.length&&s.length===o.length?!0:s.every(u=>o.includes(u))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(n).every(u=>o.includes(u)||$r(e.additionalProperties,t,n[u])):!0}function j7(e,t,n){return RT(n)}function N7(e,t,n){if(!jn.IsRecordLike(n)||Ct(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||Ct(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;const[o,s]=Object.entries(e.patternProperties)[0],u=new RegExp(o),l=Object.entries(n).every(([f,p])=>u.test(f)?$r(s,t,p):!0),c=typeof e.additionalProperties=="object"?Object.entries(n).every(([f,p])=>u.test(f)?!0:$r(e.additionalProperties,t,p)):!0,h=e.additionalProperties===!1?Object.getOwnPropertyNames(n).every(f=>u.test(f)):!0;return l&&c&&h}function D7(e,t,n){return $r(Qo(e,t),t,n)}function P7(e,t,n){const o=new RegExp(e.source,e.flags);return Ct(e.minLength)&&!(n.length>=e.minLength)||Ct(e.maxLength)&&!(n.length<=e.maxLength)?!1:o.test(n)}function k7(e,t,n){return!Vi(n)||Ct(e.minLength)&&!(n.length>=e.minLength)||Ct(e.maxLength)&&!(n.length<=e.maxLength)||Ct(e.pattern)&&!new RegExp(e.pattern).test(n)?!1:Ct(e.format)?KT(e.format)?YT(e.format)(n):!1:!0}function L7(e,t,n){return gp(n)}function z7(e,t,n){return Vi(n)&&new RegExp(e.pattern).test(n)}function $7(e,t,n){return $r(Qo(e,t),t,n)}function q7(e,t,n){if(!ko(n)||e.items===void 0&&n.length!==0||n.length!==e.maxItems)return!1;if(!e.items)return!0;for(let o=0;o<e.items.length;o++)if(!$r(e.items[o],t,n[o]))return!1;return!0}function H7(e,t,n){return Ca(n)}function Q7(e,t,n){return e.anyOf.some(o=>$r(o,t,n))}function G7(e,t,n){return!(!Bw(n)||Ct(e.maxByteLength)&&!(n.length<=e.maxByteLength)||Ct(e.minByteLength)&&!(n.length>=e.minByteLength))}function K7(e,t,n){return!0}function Y7(e,t,n){return jn.IsVoidLike(n)}function V7(e,t,n){return $w(e[at])?WT(e[at])(e,n):!1}function $r(e,t,n){const o=Ct(e.$id)?fv(e,t):t,s=e;switch(s[at]){case"Any":return g7();case"Argument":return m7();case"Array":return b7(s,o,n);case"AsyncIterator":return A7(s,o,n);case"BigInt":return w7(s,o,n);case"Boolean":return v7(s,o,n);case"Constructor":return x7(s,o,n);case"Date":return E7(s,o,n);case"Function":return S7(s,o,n);case"Import":return I7(s,o,n);case"Integer":return _7(s,o,n);case"Intersect":return C7(s,o,n);case"Iterator":return F7(s,o,n);case"Literal":return O7(s,o,n);case"Never":return T7();case"Not":return B7(s,o,n);case"Null":return R7(s,o,n);case"Number":return M7(s,o,n);case"Object":return U7(s,o,n);case"Promise":return j7(s,o,n);case"Record":return N7(s,o,n);case"Ref":return D7(s,o,n);case"RegExp":return P7(s,o,n);case"String":return k7(s,o,n);case"Symbol":return L7(s,o,n);case"TemplateLiteral":return z7(s,o,n);case"This":return $7(s,o,n);case"Tuple":return q7(s,o,n);case"Undefined":return H7(s,o,n);case"Union":return Q7(s,o,n);case"Uint8Array":return G7(s,o,n);case"Unknown":return K7();case"Void":return Y7(s,o,n);default:if(!$w(s[at]))throw new p7(s);return V7(s,o,n)}}function hv(...e){return e.length===3?$r(e[0],e[1],e[2]):$r(e[0],[],e[1])}var Ne;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(Ne||(Ne={}));class W7 extends ni{constructor(t){super("Unknown type"),this.schema=t}}function To(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function _t(e){return e!==void 0}class M3{constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){const t=this.iterator.next();return t.done?void 0:t.value}}function ot(e,t,n,o,s=[]){return{type:e,schema:t,path:n,value:o,message:Vz()({errorType:e,path:n,schema:t,value:o,errors:s}),errors:s}}function*X7(e,t,n,o){}function*Z7(e,t,n,o){}function*J7(e,t,n,o){if(!ko(o))return yield ot(Ne.Array,e,n,o);_t(e.minItems)&&!(o.length>=e.minItems)&&(yield ot(Ne.ArrayMinItems,e,n,o)),_t(e.maxItems)&&!(o.length<=e.maxItems)&&(yield ot(Ne.ArrayMaxItems,e,n,o));for(let l=0;l<o.length;l++)yield*qr(e.items,t,`${n}/${l}`,o[l]);if(e.uniqueItems===!0&&!(function(){const l=new Set;for(const c of o){const h=R3(c);if(l.has(h))return!1;l.add(h)}return!0})()&&(yield ot(Ne.ArrayUniqueItems,e,n,o)),!(_t(e.contains)||_t(e.minContains)||_t(e.maxContains)))return;const s=_t(e.contains)?e.contains:yr(),u=o.reduce((l,c,h)=>qr(s,t,`${n}${h}`,c).next().done===!0?l+1:l,0);u===0&&(yield ot(Ne.ArrayContains,e,n,o)),jo(e.minContains)&&u<e.minContains&&(yield ot(Ne.ArrayMinContains,e,n,o)),jo(e.maxContains)&&u>e.maxContains&&(yield ot(Ne.ArrayMaxContains,e,n,o))}function*e9(e,t,n,o){TT(o)||(yield ot(Ne.AsyncIterator,e,n,o))}function*t9(e,t,n,o){if(!yp(o))return yield ot(Ne.BigInt,e,n,o);_t(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield ot(Ne.BigIntExclusiveMaximum,e,n,o)),_t(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield ot(Ne.BigIntExclusiveMinimum,e,n,o)),_t(e.maximum)&&!(o<=e.maximum)&&(yield ot(Ne.BigIntMaximum,e,n,o)),_t(e.minimum)&&!(o>=e.minimum)&&(yield ot(Ne.BigIntMinimum,e,n,o)),_t(e.multipleOf)&&o%e.multipleOf!==BigInt(0)&&(yield ot(Ne.BigIntMultipleOf,e,n,o))}function*r9(e,t,n,o){pp(o)||(yield ot(Ne.Boolean,e,n,o))}function*n9(e,t,n,o){yield*qr(e.returns,t,n,o.prototype)}function*i9(e,t,n,o){if(!Tw(o))return yield ot(Ne.Date,e,n,o);_t(e.exclusiveMaximumTimestamp)&&!(o.getTime()<e.exclusiveMaximumTimestamp)&&(yield ot(Ne.DateExclusiveMaximumTimestamp,e,n,o)),_t(e.exclusiveMinimumTimestamp)&&!(o.getTime()>e.exclusiveMinimumTimestamp)&&(yield ot(Ne.DateExclusiveMinimumTimestamp,e,n,o)),_t(e.maximumTimestamp)&&!(o.getTime()<=e.maximumTimestamp)&&(yield ot(Ne.DateMaximumTimestamp,e,n,o)),_t(e.minimumTimestamp)&&!(o.getTime()>=e.minimumTimestamp)&&(yield ot(Ne.DateMinimumTimestamp,e,n,o)),_t(e.multipleOfTimestamp)&&o.getTime()%e.multipleOfTimestamp!==0&&(yield ot(Ne.DateMultipleOfTimestamp,e,n,o))}function*o9(e,t,n,o){UT(o)||(yield ot(Ne.Function,e,n,o))}function*s9(e,t,n,o){const s=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref];yield*qr(u,[...t,...s],n,o)}function*a9(e,t,n,o){if(!MT(o))return yield ot(Ne.Integer,e,n,o);_t(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield ot(Ne.IntegerExclusiveMaximum,e,n,o)),_t(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield ot(Ne.IntegerExclusiveMinimum,e,n,o)),_t(e.maximum)&&!(o<=e.maximum)&&(yield ot(Ne.IntegerMaximum,e,n,o)),_t(e.minimum)&&!(o>=e.minimum)&&(yield ot(Ne.IntegerMinimum,e,n,o)),_t(e.multipleOf)&&o%e.multipleOf!==0&&(yield ot(Ne.IntegerMultipleOf,e,n,o))}function*u9(e,t,n,o){let s=!1;for(const u of e.allOf)for(const l of qr(u,t,n,o))s=!0,yield l;if(s)return yield ot(Ne.Intersect,e,n,o);if(e.unevaluatedProperties===!1){const u=new RegExp(Vd(e));for(const l of Object.getOwnPropertyNames(o))u.test(l)||(yield ot(Ne.IntersectUnevaluatedProperties,e,`${n}/${l}`,o))}if(typeof e.unevaluatedProperties=="object"){const u=new RegExp(Vd(e));for(const l of Object.getOwnPropertyNames(o))if(!u.test(l)){const c=qr(e.unevaluatedProperties,t,`${n}/${l}`,o[l]).next();c.done||(yield c.value)}}}function*l9(e,t,n,o){BT(o)||(yield ot(Ne.Iterator,e,n,o))}function*c9(e,t,n,o){o!==e.const&&(yield ot(Ne.Literal,e,n,o))}function*f9(e,t,n,o){yield ot(Ne.Never,e,n,o)}function*h9(e,t,n,o){qr(e.not,t,n,o).next().done===!0&&(yield ot(Ne.Not,e,n,o))}function*d9(e,t,n,o){dp(o)||(yield ot(Ne.Null,e,n,o))}function*p9(e,t,n,o){if(!jn.IsNumberLike(o))return yield ot(Ne.Number,e,n,o);_t(e.exclusiveMaximum)&&!(o<e.exclusiveMaximum)&&(yield ot(Ne.NumberExclusiveMaximum,e,n,o)),_t(e.exclusiveMinimum)&&!(o>e.exclusiveMinimum)&&(yield ot(Ne.NumberExclusiveMinimum,e,n,o)),_t(e.maximum)&&!(o<=e.maximum)&&(yield ot(Ne.NumberMaximum,e,n,o)),_t(e.minimum)&&!(o>=e.minimum)&&(yield ot(Ne.NumberMinimum,e,n,o)),_t(e.multipleOf)&&o%e.multipleOf!==0&&(yield ot(Ne.NumberMultipleOf,e,n,o))}function*y9(e,t,n,o){if(!jn.IsObjectLike(o))return yield ot(Ne.Object,e,n,o);_t(e.minProperties)&&!(Object.getOwnPropertyNames(o).length>=e.minProperties)&&(yield ot(Ne.ObjectMinProperties,e,n,o)),_t(e.maxProperties)&&!(Object.getOwnPropertyNames(o).length<=e.maxProperties)&&(yield ot(Ne.ObjectMaxProperties,e,n,o));const s=Array.isArray(e.required)?e.required:[],u=Object.getOwnPropertyNames(e.properties),l=Object.getOwnPropertyNames(o);for(const c of s)l.includes(c)||(yield ot(Ne.ObjectRequiredProperty,e.properties[c],`${n}/${To(c)}`,void 0));if(e.additionalProperties===!1)for(const c of l)u.includes(c)||(yield ot(Ne.ObjectAdditionalProperties,e,`${n}/${To(c)}`,o[c]));if(typeof e.additionalProperties=="object")for(const c of l)u.includes(c)||(yield*qr(e.additionalProperties,t,`${n}/${To(c)}`,o[c]));for(const c of u){const h=e.properties[c];e.required&&e.required.includes(c)?(yield*qr(h,t,`${n}/${To(c)}`,o[c]),Ef(e)&&!(c in o)&&(yield ot(Ne.ObjectRequiredProperty,h,`${n}/${To(c)}`,void 0))):jn.IsExactOptionalProperty(o,c)&&(yield*qr(h,t,`${n}/${To(c)}`,o[c]))}}function*g9(e,t,n,o){RT(o)||(yield ot(Ne.Promise,e,n,o))}function*m9(e,t,n,o){if(!jn.IsRecordLike(o))return yield ot(Ne.Object,e,n,o);_t(e.minProperties)&&!(Object.getOwnPropertyNames(o).length>=e.minProperties)&&(yield ot(Ne.ObjectMinProperties,e,n,o)),_t(e.maxProperties)&&!(Object.getOwnPropertyNames(o).length<=e.maxProperties)&&(yield ot(Ne.ObjectMaxProperties,e,n,o));const[s,u]=Object.entries(e.patternProperties)[0],l=new RegExp(s);for(const[c,h]of Object.entries(o))l.test(c)&&(yield*qr(u,t,`${n}/${To(c)}`,h));if(typeof e.additionalProperties=="object")for(const[c,h]of Object.entries(o))l.test(c)||(yield*qr(e.additionalProperties,t,`${n}/${To(c)}`,h));if(e.additionalProperties===!1){for(const[c,h]of Object.entries(o))if(!l.test(c))return yield ot(Ne.ObjectAdditionalProperties,e,`${n}/${To(c)}`,h)}}function*b9(e,t,n,o){yield*qr(Qo(e,t),t,n,o)}function*A9(e,t,n,o){if(!Vi(o))return yield ot(Ne.String,e,n,o);if(_t(e.minLength)&&!(o.length>=e.minLength)&&(yield ot(Ne.StringMinLength,e,n,o)),_t(e.maxLength)&&!(o.length<=e.maxLength)&&(yield ot(Ne.StringMaxLength,e,n,o)),!new RegExp(e.source,e.flags).test(o))return yield ot(Ne.RegExp,e,n,o)}function*w9(e,t,n,o){if(!Vi(o))return yield ot(Ne.String,e,n,o);_t(e.minLength)&&!(o.length>=e.minLength)&&(yield ot(Ne.StringMinLength,e,n,o)),_t(e.maxLength)&&!(o.length<=e.maxLength)&&(yield ot(Ne.StringMaxLength,e,n,o)),Vi(e.pattern)&&(new RegExp(e.pattern).test(o)||(yield ot(Ne.StringPattern,e,n,o))),Vi(e.format)&&(KT(e.format)?YT(e.format)(o)||(yield ot(Ne.StringFormat,e,n,o)):yield ot(Ne.StringFormatUnknown,e,n,o))}function*v9(e,t,n,o){gp(o)||(yield ot(Ne.Symbol,e,n,o))}function*x9(e,t,n,o){if(!Vi(o))return yield ot(Ne.String,e,n,o);new RegExp(e.pattern).test(o)||(yield ot(Ne.StringPattern,e,n,o))}function*E9(e,t,n,o){yield*qr(Qo(e,t),t,n,o)}function*S9(e,t,n,o){if(!ko(o))return yield ot(Ne.Tuple,e,n,o);if(e.items===void 0&&o.length!==0)return yield ot(Ne.TupleLength,e,n,o);if(o.length!==e.maxItems)return yield ot(Ne.TupleLength,e,n,o);if(e.items)for(let s=0;s<e.items.length;s++)yield*qr(e.items[s],t,`${n}/${s}`,o[s])}function*I9(e,t,n,o){Ca(o)||(yield ot(Ne.Undefined,e,n,o))}function*_9(e,t,n,o){if(hv(e,t,o))return;const s=e.anyOf.map(u=>new M3(qr(u,t,n,o)));yield ot(Ne.Union,e,n,o,s)}function*C9(e,t,n,o){if(!Bw(o))return yield ot(Ne.Uint8Array,e,n,o);_t(e.maxByteLength)&&!(o.length<=e.maxByteLength)&&(yield ot(Ne.Uint8ArrayMaxByteLength,e,n,o)),_t(e.minByteLength)&&!(o.length>=e.minByteLength)&&(yield ot(Ne.Uint8ArrayMinByteLength,e,n,o))}function*F9(e,t,n,o){}function*O9(e,t,n,o){jn.IsVoidLike(o)||(yield ot(Ne.Void,e,n,o))}function*T9(e,t,n,o){WT(e[at])(e,o)||(yield ot(Ne.Kind,e,n,o))}function*qr(e,t,n,o){const s=_t(e.$id)?[...t,e]:t,u=e;switch(u[at]){case"Any":return yield*X7();case"Argument":return yield*Z7();case"Array":return yield*J7(u,s,n,o);case"AsyncIterator":return yield*e9(u,s,n,o);case"BigInt":return yield*t9(u,s,n,o);case"Boolean":return yield*r9(u,s,n,o);case"Constructor":return yield*n9(u,s,n,o);case"Date":return yield*i9(u,s,n,o);case"Function":return yield*o9(u,s,n,o);case"Import":return yield*s9(u,s,n,o);case"Integer":return yield*a9(u,s,n,o);case"Intersect":return yield*u9(u,s,n,o);case"Iterator":return yield*l9(u,s,n,o);case"Literal":return yield*c9(u,s,n,o);case"Never":return yield*f9(u,s,n,o);case"Not":return yield*h9(u,s,n,o);case"Null":return yield*d9(u,s,n,o);case"Number":return yield*p9(u,s,n,o);case"Object":return yield*y9(u,s,n,o);case"Promise":return yield*g9(u,s,n,o);case"Record":return yield*m9(u,s,n,o);case"Ref":return yield*b9(u,s,n,o);case"RegExp":return yield*A9(u,s,n,o);case"String":return yield*w9(u,s,n,o);case"Symbol":return yield*v9(u,s,n,o);case"TemplateLiteral":return yield*x9(u,s,n,o);case"This":return yield*E9(u,s,n,o);case"Tuple":return yield*S9(u,s,n,o);case"Undefined":return yield*I9(u,s,n,o);case"Union":return yield*_9(u,s,n,o);case"Uint8Array":return yield*C9(u,s,n,o);case"Unknown":return yield*F9();case"Void":return yield*O9(u,s,n,o);default:if(!$w(u[at]))throw new W7(e);return yield*T9(u,s,n,o)}}function B9(...e){const t=e.length===3?qr(e[0],e[1],"",e[2]):qr(e[0],[],"",e[1]);return new M3(t)}class R9 extends ni{constructor(t,n,o){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=n,this.error=o}}class M9 extends ni{constructor(t,n,o,s){super(s instanceof Error?s.message:"Unknown error"),this.schema=t,this.path=n,this.value=o,this.error=s}}function sr(e,t,n){try{return ar(e)?e[Wn].Decode(n):n}catch(o){throw new M9(e,t,n,o)}}function U9(e,t,n,o){return ko(o)?sr(e,n,o.map((s,u)=>ki(e.items,t,`${n}/${u}`,s))):sr(e,n,o)}function j9(e,t,n,o){if(!_a(o)||lD(o))return sr(e,n,o);const s=A5(e),u=s.map(p=>p[0]),l={...o};for(const[p,y]of s)p in l&&(l[p]=ki(y,t,`${n}/${p}`,l[p]));if(!ar(e.unevaluatedProperties))return sr(e,n,l);const c=Object.getOwnPropertyNames(l),h=e.unevaluatedProperties,f={...l};for(const p of c)u.includes(p)||(f[p]=sr(h,`${n}/${p}`,f[p]));return sr(e,n,f)}function N9(e,t,n,o){const s=globalThis.Object.values(e.$defs),u=e.$defs[e.$ref],l=ki(u,[...t,...s],n,o);return sr(e,n,l)}function D9(e,t,n,o){return sr(e,n,ki(e.not,t,n,o))}function P9(e,t,n,o){if(!_a(o))return sr(e,n,o);const s=nl(e),u={...o};for(const f of s)uD(u,f)&&(Ca(u[f])&&(!Ep(e.properties[f])||jn.IsExactOptionalProperty(u,f))||(u[f]=ki(e.properties[f],t,`${n}/${f}`,u[f])));if(!Xn(e.additionalProperties))return sr(e,n,u);const l=Object.getOwnPropertyNames(u),c=e.additionalProperties,h={...u};for(const f of l)s.includes(f)||(h[f]=sr(c,`${n}/${f}`,h[f]));return sr(e,n,h)}function k9(e,t,n,o){if(!_a(o))return sr(e,n,o);const s=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(s),l={...o};for(const p of Object.getOwnPropertyNames(o))u.test(p)&&(l[p]=ki(e.patternProperties[s],t,`${n}/${p}`,l[p]));if(!Xn(e.additionalProperties))return sr(e,n,l);const c=Object.getOwnPropertyNames(l),h=e.additionalProperties,f={...l};for(const p of c)u.test(p)||(f[p]=sr(h,`${n}/${p}`,f[p]));return sr(e,n,f)}function L9(e,t,n,o){const s=Qo(e,t);return sr(e,n,ki(s,t,n,o))}function z9(e,t,n,o){const s=Qo(e,t);return sr(e,n,ki(s,t,n,o))}function $9(e,t,n,o){return ko(o)&&ko(e.items)?sr(e,n,e.items.map((s,u)=>ki(s,t,`${n}/${u}`,o[u]))):sr(e,n,o)}function q9(e,t,n,o){for(const s of e.anyOf){if(!hv(s,t,o))continue;const u=ki(s,t,n,o);return sr(e,n,u)}return sr(e,n,o)}function ki(e,t,n,o){const s=fv(e,t),u=e;switch(e[at]){case"Array":return U9(u,s,n,o);case"Import":return N9(u,s,n,o);case"Intersect":return j9(u,s,n,o);case"Not":return D9(u,s,n,o);case"Object":return P9(u,s,n,o);case"Record":return k9(u,s,n,o);case"Ref":return L9(u,s,n,o);case"Symbol":return sr(u,n,o);case"This":return z9(u,s,n,o);case"Tuple":return $9(u,s,n,o);case"Union":return q9(u,s,n,o);default:return sr(u,n,o)}}function H9(e,t,n){return ki(e,t,"",n)}function Q9(e,t){return ar(e)||Pr(e.items,t)}function G9(e,t){return ar(e)||Pr(e.items,t)}function K9(e,t){return ar(e)||Pr(e.returns,t)||e.parameters.some(n=>Pr(n,t))}function Y9(e,t){return ar(e)||Pr(e.returns,t)||e.parameters.some(n=>Pr(n,t))}function V9(e,t){return ar(e)||ar(e.unevaluatedProperties)||e.allOf.some(n=>Pr(n,t))}function W9(e,t){const n=globalThis.Object.getOwnPropertyNames(e.$defs).reduce((s,u)=>[...s,e.$defs[u]],[]),o=e.$defs[e.$ref];return ar(e)||Pr(o,[...n,...t])}function X9(e,t){return ar(e)||Pr(e.items,t)}function Z9(e,t){return ar(e)||Pr(e.not,t)}function J9(e,t){return ar(e)||Object.values(e.properties).some(n=>Pr(n,t))||Xn(e.additionalProperties)&&Pr(e.additionalProperties,t)}function e$(e,t){return ar(e)||Pr(e.item,t)}function t$(e,t){const n=Object.getOwnPropertyNames(e.patternProperties)[0],o=e.patternProperties[n];return ar(e)||Pr(o,t)||Xn(e.additionalProperties)&&ar(e.additionalProperties)}function r$(e,t){return ar(e)?!0:Pr(Qo(e,t),t)}function n$(e,t){return ar(e)?!0:Pr(Qo(e,t),t)}function i$(e,t){return ar(e)||!Ca(e.items)&&e.items.some(n=>Pr(n,t))}function o$(e,t){return ar(e)||e.anyOf.some(n=>Pr(n,t))}function Pr(e,t){const n=fv(e,t),o=e;if(e.$id&&qb.has(e.$id))return!1;switch(e.$id&&qb.add(e.$id),e[at]){case"Array":return Q9(o,n);case"AsyncIterator":return G9(o,n);case"Constructor":return K9(o,n);case"Function":return Y9(o,n);case"Import":return W9(o,n);case"Intersect":return V9(o,n);case"Iterator":return X9(o,n);case"Not":return Z9(o,n);case"Object":return J9(o,n);case"Promise":return e$(o,n);case"Record":return t$(o,n);case"Ref":return r$(o,n);case"This":return n$(o,n);case"Tuple":return i$(o,n);case"Union":return o$(o,n);default:return ar(e)}}const qb=new Set;function s$(e,t){return qb.clear(),Pr(e,t)}function a$(...e){const[t,n,o]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!hv(t,n,o))throw new R9(t,o,B9(t,n,o).First());return s$(t,n)?H9(t,n,o):o}var Eo={},Om={exports:{}},Tm={},Bm={},Rm={},Mm,NI;function dv(){return NI||(NI=1,Mm=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[n]=s;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var l=Object.getOwnPropertySymbols(t);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,n);if(c.value!==s||c.enumerable!==!0)return!1}return!0}),Mm}var Um,DI;function Pp(){if(DI)return Um;DI=1;var e=dv();return Um=function(){return e()&&!!Symbol.toStringTag},Um}var jm,PI;function pv(){return PI||(PI=1,jm=Object),jm}var Nm,kI;function u$(){return kI||(kI=1,Nm=Error),Nm}var Dm,LI;function l$(){return LI||(LI=1,Dm=EvalError),Dm}var Pm,zI;function c$(){return zI||(zI=1,Pm=RangeError),Pm}var km,$I;function f$(){return $I||($I=1,km=ReferenceError),km}var Lm,qI;function U3(){return qI||(qI=1,Lm=SyntaxError),Lm}var zm,HI;function _f(){return HI||(HI=1,zm=TypeError),zm}var $m,QI;function h$(){return QI||(QI=1,$m=URIError),$m}var qm,GI;function d$(){return GI||(GI=1,qm=Math.abs),qm}var Hm,KI;function p$(){return KI||(KI=1,Hm=Math.floor),Hm}var Qm,YI;function y$(){return YI||(YI=1,Qm=Math.max),Qm}var Gm,VI;function g$(){return VI||(VI=1,Gm=Math.min),Gm}var Km,WI;function m$(){return WI||(WI=1,Km=Math.pow),Km}var Ym,XI;function b$(){return XI||(XI=1,Ym=Math.round),Ym}var Vm,ZI;function A$(){return ZI||(ZI=1,Vm=Number.isNaN||function(t){return t!==t}),Vm}var Wm,JI;function w$(){if(JI)return Wm;JI=1;var e=A$();return Wm=function(n){return e(n)||n===0?n:n<0?-1:1},Wm}var Xm,e_;function v$(){return e_||(e_=1,Xm=Object.getOwnPropertyDescriptor),Xm}var Zm,t_;function sl(){if(t_)return Zm;t_=1;var e=v$();if(e)try{e([],"length")}catch{e=null}return Zm=e,Zm}var Jm,r_;function kp(){if(r_)return Jm;r_=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Jm=e,Jm}var e0,n_;function x$(){if(n_)return e0;n_=1;var e=typeof Symbol<"u"&&Symbol,t=dv();return e0=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},e0}var t0,i_;function j3(){return i_||(i_=1,t0=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),t0}var r0,o_;function N3(){if(o_)return r0;o_=1;var e=pv();return r0=e.getPrototypeOf||null,r0}var n0,s_;function E$(){if(s_)return n0;s_=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,n=Math.max,o="[object Function]",s=function(h,f){for(var p=[],y=0;y<h.length;y+=1)p[y]=h[y];for(var g=0;g<f.length;g+=1)p[g+h.length]=f[g];return p},u=function(h,f){for(var p=[],y=f,g=0;y<h.length;y+=1,g+=1)p[g]=h[y];return p},l=function(c,h){for(var f="",p=0;p<c.length;p+=1)f+=c[p],p+1<c.length&&(f+=h);return f};return n0=function(h){var f=this;if(typeof f!="function"||t.apply(f)!==o)throw new TypeError(e+f);for(var p=u(arguments,1),y,g=function(){if(this instanceof y){var M=f.apply(this,s(p,arguments));return Object(M)===M?M:this}return f.apply(h,s(p,arguments))},m=n(0,f.length-p.length),w=[],F=0;F<m;F++)w[F]="$"+F;if(y=Function("binder","return function ("+l(w,",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var S=function(){};S.prototype=f.prototype,y.prototype=new S,S.prototype=null}return y},n0}var i0,a_;function Cf(){if(a_)return i0;a_=1;var e=E$();return i0=Function.prototype.bind||e,i0}var o0,u_;function yv(){return u_||(u_=1,o0=Function.prototype.call),o0}var s0,l_;function gv(){return l_||(l_=1,s0=Function.prototype.apply),s0}var a0,c_;function S$(){return c_||(c_=1,a0=typeof Reflect<"u"&&Reflect&&Reflect.apply),a0}var u0,f_;function D3(){if(f_)return u0;f_=1;var e=Cf(),t=gv(),n=yv(),o=S$();return u0=o||e.call(n,t),u0}var l0,h_;function mv(){if(h_)return l0;h_=1;var e=Cf(),t=_f(),n=yv(),o=D3();return l0=function(u){if(u.length<1||typeof u[0]!="function")throw new t("a function is required");return o(e,n,u)},l0}var c0,d_;function I$(){if(d_)return c0;d_=1;var e=mv(),t=sl(),n;try{n=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var o=!!n&&t&&t(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;return c0=o&&typeof o.get=="function"?e([o.get]):typeof u=="function"?function(c){return u(c==null?c:s(c))}:!1,c0}var f0,p_;function bv(){if(p_)return f0;p_=1;var e=j3(),t=N3(),n=I$();return f0=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:n?function(s){return n(s)}:null,f0}var h0,y_;function P3(){if(y_)return h0;y_=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=Cf();return h0=n.call(e,t),h0}var d0,g_;function Av(){if(g_)return d0;g_=1;var e,t=pv(),n=u$(),o=l$(),s=c$(),u=f$(),l=U3(),c=_f(),h=h$(),f=d$(),p=p$(),y=y$(),g=g$(),m=m$(),w=b$(),F=w$(),S=Function,M=function(Z){try{return S('"use strict"; return ('+Z+").constructor;")()}catch{}},A=sl(),I=kp(),R=function(){throw new c},T=A?(function(){try{return arguments.callee,R}catch{try{return A(arguments,"callee").get}catch{return R}}})():R,z=x$()(),k=bv(),L=N3(),U=j3(),j=gv(),H=yv(),P={},te=typeof Uint8Array>"u"||!k?e:k(Uint8Array),ue={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":z&&k?k([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&k?k(k([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!k?e:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":A,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!k?e:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&k?k(""[Symbol.iterator]()):e,"%Symbol%":z?Symbol:e,"%SyntaxError%":l,"%ThrowTypeError%":T,"%TypedArray%":te,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":j,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":L,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":y,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":w,"%Math.sign%":F,"%Reflect.getPrototypeOf%":U};if(k)try{null.error}catch(Z){var oe=k(k(Z));ue["%Error.prototype%"]=oe}var X=function Z(O){var q;if(O==="%AsyncFunction%")q=M("async function () {}");else if(O==="%GeneratorFunction%")q=M("function* () {}");else if(O==="%AsyncGeneratorFunction%")q=M("async function* () {}");else if(O==="%AsyncGenerator%"){var Y=Z("%AsyncGeneratorFunction%");Y&&(q=Y.prototype)}else if(O==="%AsyncIteratorPrototype%"){var se=Z("%AsyncGenerator%");se&&k&&(q=k(se.prototype))}return ue[O]=q,q},re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pe=Cf(),le=P3(),J=pe.call(H,Array.prototype.concat),G=pe.call(j,Array.prototype.splice),Q=pe.call(H,String.prototype.replace),K=pe.call(H,String.prototype.slice),W=pe.call(H,RegExp.prototype.exec),$=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,ae=function(O){var q=K(O,0,1),Y=K(O,-1);if(q==="%"&&Y!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&q!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var se=[];return Q(O,$,function(ye,ee,_,v){se[se.length]=_?Q(v,fe,"$1"):ee||ye}),se},ne=function(O,q){var Y=O,se;if(le(re,Y)&&(se=re[Y],Y="%"+se[0]+"%"),le(ue,Y)){var ye=ue[Y];if(ye===P&&(ye=X(Y)),typeof ye>"u"&&!q)throw new c("intrinsic "+O+" exists, but is not available. Please file an issue!");return{alias:se,name:Y,value:ye}}throw new l("intrinsic "+O+" does not exist!")};return d0=function(O,q){if(typeof O!="string"||O.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof q!="boolean")throw new c('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,O)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=ae(O),se=Y.length>0?Y[0]:"",ye=ne("%"+se+"%",q),ee=ye.name,_=ye.value,v=!1,C=ye.alias;C&&(se=C[0],G(Y,J([0,1],C)));for(var D=1,he=!0;D<Y.length;D+=1){var ce=Y[D],Ee=K(ce,0,1),Be=K(ce,-1);if((Ee==='"'||Ee==="'"||Ee==="`"||Be==='"'||Be==="'"||Be==="`")&&Ee!==Be)throw new l("property names with quotes must have matching quotes");if((ce==="constructor"||!he)&&(v=!0),se+="."+ce,ee="%"+se+"%",le(ue,ee))_=ue[ee];else if(_!=null){if(!(ce in _)){if(!q)throw new c("base intrinsic for "+O+" exists, but the property is not available.");return}if(A&&D+1>=Y.length){var de=A(_,ce);he=!!de,he&&"get"in de&&!("originalValue"in de.get)?_=de.get:_=_[ce]}else he=le(_,ce),_=_[ce];he&&!v&&(ue[ee]=_)}}return _},d0}var p0,m_;function al(){if(m_)return p0;m_=1;var e=Av(),t=mv(),n=t([e("%String.prototype.indexOf%")]);return p0=function(s,u){var l=e(s,!!u);return typeof l=="function"&&n(s,".prototype.")>-1?t([l]):l},p0}var y0,b_;function _$(){if(b_)return y0;b_=1;var e=Pp()(),t=al(),n=t("Object.prototype.toString"),o=function(c){return e&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:n(c)==="[object Arguments]"},s=function(c){return o(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&n(c)!=="[object Array]"&&"callee"in c&&n(c.callee)==="[object Function]"},u=(function(){return o(arguments)})();return o.isLegacyArguments=s,y0=u?o:s,y0}var g0,A_;function C$(){if(A_)return g0;A_=1;var e=al(),t=Pp()(),n=P3(),o=sl(),s;if(t){var u=e("RegExp.prototype.exec"),l={},c=function(){throw l},h={toString:c,valueOf:c};typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=c),s=function(g){if(!g||typeof g!="object")return!1;var m=o(g,"lastIndex"),w=m&&n(m,"value");if(!w)return!1;try{u(g,h)}catch(F){return F===l}}}else{var f=e("Object.prototype.toString"),p="[object RegExp]";s=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:f(g)===p}}return g0=s,g0}var m0,w_;function F$(){if(w_)return m0;w_=1;var e=al(),t=C$(),n=e("RegExp.prototype.exec"),o=_f();return m0=function(u){if(!t(u))throw new o("`regex` must be a RegExp");return function(c){return n(u,c)!==null}},m0}var b0,v_;function O$(){if(v_)return b0;v_=1;const e=(function*(){}).constructor;return b0=()=>e,b0}var A0,x_;function T$(){if(x_)return A0;x_=1;var e=al(),t=F$(),n=t(/^\s*(?:function)?\*/),o=Pp()(),s=bv(),u=e("Object.prototype.toString"),l=e("Function.prototype.toString"),c=O$();return A0=function(f){if(typeof f!="function")return!1;if(n(l(f)))return!0;if(!o){var p=u(f);return p==="[object GeneratorFunction]"}if(!s)return!1;var y=c();return y&&s(f)===y.prototype},A0}var w0,E_;function B$(){if(E_)return w0;E_=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,o;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},t(function(){throw 42},null,n)}catch(A){A!==o&&(t=null)}else t=null;var s=/^\s*class\b/,u=function(I){try{var R=e.call(I);return s.test(R)}catch{return!1}},l=function(I){try{return u(I)?!1:(e.call(I),!0)}catch{return!1}},c=Object.prototype.toString,h="[object Object]",f="[object Function]",p="[object GeneratorFunction]",y="[object HTMLAllCollection]",g="[object HTML document.all class]",m="[object HTMLCollection]",w=typeof Symbol=="function"&&!!Symbol.toStringTag,F=!(0 in[,]),S=function(){return!1};if(typeof document=="object"){var M=document.all;c.call(M)===c.call(document.all)&&(S=function(I){if((F||!I)&&(typeof I>"u"||typeof I=="object"))try{var R=c.call(I);return(R===y||R===g||R===m||R===h)&&I("")==null}catch{}return!1})}return w0=t?function(I){if(S(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;try{t(I,null,n)}catch(R){if(R!==o)return!1}return!u(I)&&l(I)}:function(I){if(S(I))return!0;if(!I||typeof I!="function"&&typeof I!="object")return!1;if(w)return l(I);if(u(I))return!1;var R=c.call(I);return R!==f&&R!==p&&!/^\[object HTML/.test(R)?!1:l(I)},w0}var v0,S_;function R$(){if(S_)return v0;S_=1;var e=B$(),t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=function(h,f,p){for(var y=0,g=h.length;y<g;y++)n.call(h,y)&&(p==null?f(h[y],y,h):f.call(p,h[y],y,h))},s=function(h,f,p){for(var y=0,g=h.length;y<g;y++)p==null?f(h.charAt(y),y,h):f.call(p,h.charAt(y),y,h)},u=function(h,f,p){for(var y in h)n.call(h,y)&&(p==null?f(h[y],y,h):f.call(p,h[y],y,h))};function l(c){return t.call(c)==="[object Array]"}return v0=function(h,f,p){if(!e(f))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=p),l(h)?o(h,f,y):typeof h=="string"?s(h,f,y):u(h,f,y)},v0}var x0,I_;function M$(){return I_||(I_=1,x0=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),x0}var E0,__;function U$(){if(__)return E0;__=1;var e=M$(),t=typeof globalThis>"u"?nf:globalThis;return E0=function(){for(var o=[],s=0;s<e.length;s++)typeof t[e[s]]=="function"&&(o[o.length]=e[s]);return o},E0}var S0={exports:{}},I0,C_;function k3(){if(C_)return I0;C_=1;var e=kp(),t=U3(),n=_f(),o=sl();return I0=function(u,l,c){if(!u||typeof u!="object"&&typeof u!="function")throw new n("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,g=!!o&&o(u,l);if(e)e(u,l,{configurable:p===null&&g?g.configurable:!p,enumerable:h===null&&g?g.enumerable:!h,value:c,writable:f===null&&g?g.writable:!f});else if(y||!h&&!f&&!p)u[l]=c;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},I0}var _0,F_;function L3(){if(F_)return _0;F_=1;var e=kp(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},_0=t,_0}var C0,O_;function j$(){if(O_)return C0;O_=1;var e=Av(),t=k3(),n=L3()(),o=sl(),s=_f(),u=e("%Math.floor%");return C0=function(c,h){if(typeof c!="function")throw new s("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||u(h)!==h)throw new s("`length` must be a positive 32-bit integer");var f=arguments.length>2&&!!arguments[2],p=!0,y=!0;if("length"in c&&o){var g=o(c,"length");g&&!g.configurable&&(p=!1),g&&!g.writable&&(y=!1)}return(p||y||!f)&&(n?t(c,"length",h,!0,!0):t(c,"length",h)),c},C0}var F0,T_;function N$(){if(T_)return F0;T_=1;var e=Cf(),t=gv(),n=D3();return F0=function(){return n(e,t,arguments)},F0}var B_;function Lp(){return B_||(B_=1,(function(e){var t=j$(),n=kp(),o=mv(),s=N$();e.exports=function(l){var c=o(arguments),h=l.length-(arguments.length-1);return t(c,1+(h>0?h:0),!0)},n?n(e.exports,"apply",{value:s}):e.exports.apply=s})(S0)),S0.exports}var O0,R_;function z3(){if(R_)return O0;R_=1;var e=R$(),t=U$(),n=Lp(),o=al(),s=sl(),u=bv(),l=o("Object.prototype.toString"),c=Pp()(),h=typeof globalThis>"u"?nf:globalThis,f=t(),p=o("String.prototype.slice"),y=o("Array.prototype.indexOf",!0)||function(S,M){for(var A=0;A<S.length;A+=1)if(S[A]===M)return A;return-1},g={__proto__:null};c&&s&&u?e(f,function(F){var S=new h[F];if(Symbol.toStringTag in S&&u){var M=u(S),A=s(M,Symbol.toStringTag);if(!A&&M){var I=u(M);A=s(I,Symbol.toStringTag)}g["$"+F]=n(A.get)}}):e(f,function(F){var S=new h[F],M=S.slice||S.set;M&&(g["$"+F]=n(M))});var m=function(S){var M=!1;return e(g,function(A,I){if(!M)try{"$"+A(S)===I&&(M=p(I,1))}catch{}}),M},w=function(S){var M=!1;return e(g,function(A,I){if(!M)try{A(S),M=p(I,1)}catch{}}),M};return O0=function(S){if(!S||typeof S!="object")return!1;if(!c){var M=p(l(S),8,-1);return y(f,M)>-1?M:M!=="Object"?!1:w(S)}return s?m(S):null},O0}var T0,M_;function D$(){if(M_)return T0;M_=1;var e=z3();return T0=function(n){return!!e(n)},T0}var U_;function P$(){return U_||(U_=1,(function(e){var t=_$(),n=T$(),o=z3(),s=D$();function u(D){return D.call.bind(D)}var l=typeof BigInt<"u",c=typeof Symbol<"u",h=u(Object.prototype.toString),f=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),y=u(Boolean.prototype.valueOf);if(l)var g=u(BigInt.prototype.valueOf);if(c)var m=u(Symbol.prototype.valueOf);function w(D,he){if(typeof D!="object")return!1;try{return he(D),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=s;function F(D){return typeof Promise<"u"&&D instanceof Promise||D!==null&&typeof D=="object"&&typeof D.then=="function"&&typeof D.catch=="function"}e.isPromise=F;function S(D){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(D):s(D)||K(D)}e.isArrayBufferView=S;function M(D){return o(D)==="Uint8Array"}e.isUint8Array=M;function A(D){return o(D)==="Uint8ClampedArray"}e.isUint8ClampedArray=A;function I(D){return o(D)==="Uint16Array"}e.isUint16Array=I;function R(D){return o(D)==="Uint32Array"}e.isUint32Array=R;function T(D){return o(D)==="Int8Array"}e.isInt8Array=T;function z(D){return o(D)==="Int16Array"}e.isInt16Array=z;function k(D){return o(D)==="Int32Array"}e.isInt32Array=k;function L(D){return o(D)==="Float32Array"}e.isFloat32Array=L;function U(D){return o(D)==="Float64Array"}e.isFloat64Array=U;function j(D){return o(D)==="BigInt64Array"}e.isBigInt64Array=j;function H(D){return o(D)==="BigUint64Array"}e.isBigUint64Array=H;function P(D){return h(D)==="[object Map]"}P.working=typeof Map<"u"&&P(new Map);function te(D){return typeof Map>"u"?!1:P.working?P(D):D instanceof Map}e.isMap=te;function ue(D){return h(D)==="[object Set]"}ue.working=typeof Set<"u"&&ue(new Set);function oe(D){return typeof Set>"u"?!1:ue.working?ue(D):D instanceof Set}e.isSet=oe;function X(D){return h(D)==="[object WeakMap]"}X.working=typeof WeakMap<"u"&&X(new WeakMap);function re(D){return typeof WeakMap>"u"?!1:X.working?X(D):D instanceof WeakMap}e.isWeakMap=re;function pe(D){return h(D)==="[object WeakSet]"}pe.working=typeof WeakSet<"u"&&pe(new WeakSet);function le(D){return pe(D)}e.isWeakSet=le;function J(D){return h(D)==="[object ArrayBuffer]"}J.working=typeof ArrayBuffer<"u"&&J(new ArrayBuffer);function G(D){return typeof ArrayBuffer>"u"?!1:J.working?J(D):D instanceof ArrayBuffer}e.isArrayBuffer=G;function Q(D){return h(D)==="[object DataView]"}Q.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Q(new DataView(new ArrayBuffer(1),0,1));function K(D){return typeof DataView>"u"?!1:Q.working?Q(D):D instanceof DataView}e.isDataView=K;var W=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(D){return h(D)==="[object SharedArrayBuffer]"}function fe(D){return typeof W>"u"?!1:(typeof $.working>"u"&&($.working=$(new W)),$.working?$(D):D instanceof W)}e.isSharedArrayBuffer=fe;function ae(D){return h(D)==="[object AsyncFunction]"}e.isAsyncFunction=ae;function ne(D){return h(D)==="[object Map Iterator]"}e.isMapIterator=ne;function Z(D){return h(D)==="[object Set Iterator]"}e.isSetIterator=Z;function O(D){return h(D)==="[object Generator]"}e.isGeneratorObject=O;function q(D){return h(D)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=q;function Y(D){return w(D,f)}e.isNumberObject=Y;function se(D){return w(D,p)}e.isStringObject=se;function ye(D){return w(D,y)}e.isBooleanObject=ye;function ee(D){return l&&w(D,g)}e.isBigIntObject=ee;function _(D){return c&&w(D,m)}e.isSymbolObject=_;function v(D){return Y(D)||se(D)||ye(D)||ee(D)||_(D)}e.isBoxedPrimitive=v;function C(D){return typeof Uint8Array<"u"&&(G(D)||fe(D))}e.isAnyArrayBuffer=C,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(D){Object.defineProperty(e,D,{enumerable:!1,value:function(){throw new Error(D+" is not supported in userland")}})})})(Rm)),Rm}var B0,j_;function k$(){return j_||(j_=1,B0=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),B0}var Xh={exports:{}},N_;function L$(){return N_||(N_=1,typeof Object.create=="function"?Xh.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xh.exports=function(t,n){if(n){t.super_=n;var o=function(){};o.prototype=n.prototype,t.prototype=new o,t.prototype.constructor=t}}),Xh.exports}var D_;function tf(){return D_||(D_=1,(function(e){var t={},n=Object.getOwnPropertyDescriptors||function(W){for(var $=Object.keys(W),fe={},ae=0;ae<$.length;ae++)fe[$[ae]]=Object.getOwnPropertyDescriptor(W,$[ae]);return fe},o=/%[sdj%]/g;e.format=function(K){if(!z(K)){for(var W=[],$=0;$<arguments.length;$++)W.push(c(arguments[$]));return W.join(" ")}for(var $=1,fe=arguments,ae=fe.length,ne=String(K).replace(o,function(O){if(O==="%%")return"%";if($>=ae)return O;switch(O){case"%s":return String(fe[$++]);case"%d":return Number(fe[$++]);case"%j":try{return JSON.stringify(fe[$++])}catch{return"[Circular]"}default:return O}}),Z=fe[$];$<ae;Z=fe[++$])I(Z)||!j(Z)?ne+=" "+Z:ne+=" "+c(Z);return ne},e.deprecate=function(K,W){if(typeof Ut<"u"&&Ut.noDeprecation===!0)return K;if(typeof Ut>"u")return function(){return e.deprecate(K,W).apply(this,arguments)};var $=!1;function fe(){if(!$){if(Ut.throwDeprecation)throw new Error(W);Ut.traceDeprecation?console.trace(W):console.error(W),$=!0}return K.apply(this,arguments)}return fe};var s={},u=/^$/;if(t.NODE_DEBUG){var l=t.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+l+"$","i")}e.debuglog=function(K){if(K=K.toUpperCase(),!s[K])if(u.test(K)){var W=Ut.pid;s[K]=function(){var $=e.format.apply(e,arguments);console.error("%s %d: %s",K,W,$)}}else s[K]=function(){};return s[K]};function c(K,W){var $={seen:[],stylize:f};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),A(W)?$.showHidden=W:W&&e._extend($,W),L($.showHidden)&&($.showHidden=!1),L($.depth)&&($.depth=2),L($.colors)&&($.colors=!1),L($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=h),y($,K,$.depth)}e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function h(K,W){var $=c.styles[W];return $?"\x1B["+c.colors[$][0]+"m"+K+"\x1B["+c.colors[$][1]+"m":K}function f(K,W){return K}function p(K){var W={};return K.forEach(function($,fe){W[$]=!0}),W}function y(K,W,$){if(K.customInspect&&W&&te(W.inspect)&&W.inspect!==e.inspect&&!(W.constructor&&W.constructor.prototype===W)){var fe=W.inspect($,K);return z(fe)||(fe=y(K,fe,$)),fe}var ae=g(K,W);if(ae)return ae;var ne=Object.keys(W),Z=p(ne);if(K.showHidden&&(ne=Object.getOwnPropertyNames(W)),P(W)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return m(W);if(ne.length===0){if(te(W)){var O=W.name?": "+W.name:"";return K.stylize("[Function"+O+"]","special")}if(U(W))return K.stylize(RegExp.prototype.toString.call(W),"regexp");if(H(W))return K.stylize(Date.prototype.toString.call(W),"date");if(P(W))return m(W)}var q="",Y=!1,se=["{","}"];if(M(W)&&(Y=!0,se=["[","]"]),te(W)){var ye=W.name?": "+W.name:"";q=" [Function"+ye+"]"}if(U(W)&&(q=" "+RegExp.prototype.toString.call(W)),H(W)&&(q=" "+Date.prototype.toUTCString.call(W)),P(W)&&(q=" "+m(W)),ne.length===0&&(!Y||W.length==0))return se[0]+q+se[1];if($<0)return U(W)?K.stylize(RegExp.prototype.toString.call(W),"regexp"):K.stylize("[Object]","special");K.seen.push(W);var ee;return Y?ee=w(K,W,$,Z,ne):ee=ne.map(function(_){return F(K,W,$,Z,_,Y)}),K.seen.pop(),S(ee,q,se)}function g(K,W){if(L(W))return K.stylize("undefined","undefined");if(z(W)){var $="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize($,"string")}if(T(W))return K.stylize(""+W,"number");if(A(W))return K.stylize(""+W,"boolean");if(I(W))return K.stylize("null","null")}function m(K){return"["+Error.prototype.toString.call(K)+"]"}function w(K,W,$,fe,ae){for(var ne=[],Z=0,O=W.length;Z<O;++Z)le(W,String(Z))?ne.push(F(K,W,$,fe,String(Z),!0)):ne.push("");return ae.forEach(function(q){q.match(/^\d+$/)||ne.push(F(K,W,$,fe,q,!0))}),ne}function F(K,W,$,fe,ae,ne){var Z,O,q;if(q=Object.getOwnPropertyDescriptor(W,ae)||{value:W[ae]},q.get?q.set?O=K.stylize("[Getter/Setter]","special"):O=K.stylize("[Getter]","special"):q.set&&(O=K.stylize("[Setter]","special")),le(fe,ae)||(Z="["+ae+"]"),O||(K.seen.indexOf(q.value)<0?(I($)?O=y(K,q.value,null):O=y(K,q.value,$-1),O.indexOf(`
|
|
62
62
|
`)>-1&&(ne?O=O.split(`
|
|
63
63
|
`).map(function(Y){return" "+Y}).join(`
|
|
64
64
|
`).slice(2):O=`
|