diff --git a/src/disco/gui/dist_dev/assets/firedancer_logo_circle-D9jlxCje.svg b/src/disco/gui/dist_dev/assets/firedancer_circle_logo-D9jlxCje.svg similarity index 100% rename from src/disco/gui/dist_dev/assets/firedancer_logo_circle-D9jlxCje.svg rename to src/disco/gui/dist_dev/assets/firedancer_circle_logo-D9jlxCje.svg diff --git a/src/disco/gui/dist_dev/assets/frankendancer_logo_circle-D5z79vwQ.svg b/src/disco/gui/dist_dev/assets/frankendancer_circle_logo-D5z79vwQ.svg similarity index 100% rename from src/disco/gui/dist_dev/assets/frankendancer_logo_circle-D5z79vwQ.svg rename to src/disco/gui/dist_dev/assets/frankendancer_circle_logo-D5z79vwQ.svg diff --git a/src/disco/gui/dist_dev/assets/index-BDBtonqO.js b/src/disco/gui/dist_dev/assets/index-BDBtonqO.js deleted file mode 100644 index f710aba5674..00000000000 --- a/src/disco/gui/dist_dev/assets/index-BDBtonqO.js +++ /dev/null @@ -1,229 +0,0 @@ -var q2e=Object.defineProperty;var $2e=(e,t,n)=>t in e?q2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var su=(e,t,n)=>$2e(e,typeof t!="symbol"?t+"":t,n);var T6,P0e,U0e,G0e;function epe(e,t){for(var n=0;nr[A]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const A of r)if(A.type==="childList")for(const i of A.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function t(r){const A={};return r.integrity&&(A.integrity=r.integrity),r.referrerPolicy&&(A.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?A.credentials="include":r.crossOrigin==="anonymous"?A.credentials="omit":A.credentials="same-origin",A}function n(r){if(r.ep)return;r.ep=!0;const A=t(r);fetch(r.href,A)}})();var C0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function MA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hO={exports:{}},Py={},pO={exports:{}},Pr={};/** -* @license React -* react.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var $m=Symbol.for("react.element"),tpe=Symbol.for("react.portal"),npe=Symbol.for("react.fragment"),rpe=Symbol.for("react.strict_mode"),ope=Symbol.for("react.profiler"),ipe=Symbol.for("react.provider"),Ape=Symbol.for("react.context"),spe=Symbol.for("react.forward_ref"),ape=Symbol.for("react.suspense"),lpe=Symbol.for("react.memo"),cpe=Symbol.for("react.lazy"),mO=Symbol.iterator;function upe(e){return e===null||typeof e!="object"?null:(e=mO&&e[mO]||e["@@iterator"],typeof e=="function"?e:null)}var EO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IO=Object.assign,CO={};function P2(e,t,n){this.props=e,this.context=t,this.refs=CO,this.updater=n||EO}P2.prototype.isReactComponent={},P2.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},P2.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function BO(){}BO.prototype=P2.prototype;function y3(e,t,n){this.props=e,this.context=t,this.refs=CO,this.updater=n||EO}var v3=y3.prototype=new BO;v3.constructor=y3,IO(v3,P2.prototype),v3.isPureReactComponent=!0;var yO=Array.isArray,vO=Object.prototype.hasOwnProperty,b3={current:null},bO={key:!0,ref:!0,__self:!0,__source:!0};function QO(e,t,n){var r,A={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)vO.call(t,r)&&!bO.hasOwnProperty(r)&&(A[r]=t[r]);var c=arguments.length-2;if(c===1)A.children=n;else if(1>>1,Ie=ae[Oe];if(0>>1;OeA(Ze,ye))TeA(De,Ze)?(ae[Oe]=De,ae[Te]=ye,Oe=Te):(ae[Oe]=Ze,ae[qe]=ye,Oe=qe);else if(TeA(De,ye))ae[Oe]=De,ae[Te]=ye,Oe=Te;else break e}}return fe}function A(ae,fe){var ye=ae.sortIndex-fe.sortIndex;return ye!==0?ye:ae.id-fe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}var f=[],h=[],m=1,I=null,v=3,k=!1,D=!1,R=!1,F=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(ae){for(var fe=n(h);fe!==null;){if(fe.callback===null)r(h);else if(fe.startTime<=ae)r(h),fe.sortIndex=fe.expirationTime,t(f,fe);else break;fe=n(h)}}function G(ae){if(R=!1,P(ae),!D)if(n(f)!==null)D=!0,Ae(Y);else{var fe=n(h);fe!==null&&Ce(G,fe.startTime-ae)}}function Y(ae,fe){D=!1,R&&(R=!1,N(K),K=-1),k=!0;var ye=v;try{for(P(fe),I=n(f);I!==null&&(!(I.expirationTime>fe)||ae&&!oe());){var Oe=I.callback;if(typeof Oe=="function"){I.callback=null,v=I.priorityLevel;var Ie=Oe(I.expirationTime<=fe);fe=e.unstable_now(),typeof Ie=="function"?I.callback=Ie:I===n(f)&&r(f),P(fe)}else r(f);I=n(f)}if(I!==null)var Fe=!0;else{var qe=n(h);qe!==null&&Ce(G,qe.startTime-fe),Fe=!1}return Fe}finally{I=null,v=ye,k=!1}}var z=!1,Z=null,K=-1,re=5,V=-1;function oe(){return!(e.unstable_now()-Vae||125Oe?(ae.sortIndex=ye,t(h,ae),n(f)===null&&ae===n(h)&&(R?(N(K),K=-1):R=!0,Ce(G,ye-Oe))):(ae.sortIndex=Ie,t(f,ae),D||k||(D=!0,Ae(Y))),ae},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(ae){var fe=v;return function(){var ye=v;v=fe;try{return ae.apply(this,arguments)}finally{v=ye}}}})(DO),SO.exports=DO;var ype=SO.exports;/** -* @license React -* react-dom.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var vpe=b,Fa=ype;function Ht(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_3=Object.prototype.hasOwnProperty,bpe=/^[: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]*$/,TO={},MO={};function Qpe(e){return _3.call(MO,e)?!0:_3.call(TO,e)?!1:bpe.test(e)?MO[e]=!0:(TO[e]=!0,!1)}function wpe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xpe(e,t,n,r){if(t===null||typeof t>"u"||wpe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function js(e,t,n,r,A,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=A,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var XA={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){XA[e]=new js(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];XA[t]=new js(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){XA[e]=new js(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){XA[e]=new js(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){XA[e]=new js(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){XA[e]=new js(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){XA[e]=new js(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){XA[e]=new js(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){XA[e]=new js(e,5,!1,e.toLowerCase(),null,!1,!1)});var k3=/[\-:]([a-z])/g;function S3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(k3,S3);XA[t]=new js(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(k3,S3);XA[t]=new js(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(k3,S3);XA[t]=new js(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){XA[e]=new js(e,1,!1,e.toLowerCase(),null,!1,!1)}),XA.xlinkHref=new js("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){XA[e]=new js(e,1,!1,e.toLowerCase(),null,!0,!0)});function D3(e,t,n,r){var A=XA.hasOwnProperty(t)?XA[t]:null;(A!==null?A.type!==0:r||!(2c||A[a]!==i[c]){var f=` -`+A[a].replace(" at new "," at ");return e.displayName&&f.includes("")&&(f=f.replace("",e.displayName)),f}while(1<=a&&0<=c);break}}}finally{L3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rE(e):""}function _pe(e){switch(e.tag){case 5:return rE(e.type);case 16:return rE("Lazy");case 13:return rE("Suspense");case 19:return rE("SuspenseList");case 0:case 2:case 15:return e=P3(e.type,!1),e;case 11:return e=P3(e.type.render,!1),e;case 1:return e=P3(e.type,!0),e;default:return""}}function U3(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H2:return"Fragment";case G2:return"Portal";case T3:return"Profiler";case R3:return"StrictMode";case F3:return"Suspense";case N3:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NO:return(e.displayName||"Context")+".Consumer";case FO:return(e._context.displayName||"Context")+".Provider";case M3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j3:return t=e.displayName||null,t!==null?t:U3(e.type)||"Memo";case kd:t=e._payload,e=e._init;try{return U3(e(t))}catch{}}return null}function kpe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U3(t);case 8:return t===R3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function LO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Spe(e){var t=LO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var A=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return A.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zy(e){e._valueTracker||(e._valueTracker=Spe(e))}function PO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function G3(e,t){var n=t.checked;return xi({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function UO(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sd(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GO(e,t){t=t.checked,t!=null&&D3(e,"checked",t,!1)}function H3(e,t){GO(e,t);var n=Sd(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Y3(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y3(e,t.type,Sd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function HO(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Y3(e,t,n){(t!=="number"||Jy(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oE=Array.isArray;function Y2(e,t,n,r){if(e=e.options,t){t={};for(var A=0;A"+t.valueOf().toString()+"",t=Wy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function iE(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var AE={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dpe=["Webkit","ms","Moz","O"];Object.keys(AE).forEach(function(e){Dpe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),AE[t]=AE[e]})});function XO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||AE.hasOwnProperty(e)&&AE[e]?(""+t).trim():t+"px"}function KO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,A=XO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,A):e[n]=A}}var Rpe=xi({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function W3(e,t){if(t){if(Rpe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ht(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ht(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ht(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ht(62))}}function Z3(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var X3=null;function K3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var V3=null,z2=null,J2=null;function VO(e){if(e=_E(e)){if(typeof V3!="function")throw Error(Ht(280));var t=e.stateNode;t&&(t=pv(t),V3(e.stateNode,e.type,t))}}function qO(e){z2?J2?J2.push(e):J2=[e]:z2=e}function $O(){if(z2){var e=z2,t=J2;if(J2=z2=null,VO(e),t)for(e=0;e>>=0,e===0?32:31-(Hpe(e)/Ype|0)|0}var qy=64,$y=4194304;function cE(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ev(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,A=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var c=a&~A;c!==0?r=cE(c):(i&=a,i!==0&&(r=cE(i)))}else a=n&~A,a!==0?r=cE(a):i!==0&&(r=cE(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&A)&&(A=r&-r,i=t&-t,A>=i||A===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function uE(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-sc(t),e[t]=n}function Zpe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=IE),xL=" ",_L=!1;function kL(e,t){switch(e){case"keyup":return y1e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var X2=!1;function b1e(e,t){switch(e){case"compositionend":return SL(t);case"keypress":return t.which!==32?null:(_L=!0,xL);case"textInput":return e=t.data,e===xL&&_L?null:e;default:return null}}function Q1e(e,t){if(X2)return e==="compositionend"||!hk&&kL(e,t)?(e=BL(),iv=lk=Fd=null,X2=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jL(n)}}function LL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?LL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PL(){for(var e=window,t=Jy();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jy(e.document)}return t}function Ek(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function M1e(e){var t=PL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&LL(n.ownerDocument.documentElement,n)){if(r!==null&&Ek(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var A=n.textContent.length,i=Math.min(r.start,A);r=r.end===void 0?i:Math.min(r.end,A),!e.extend&&i>r&&(A=r,r=i,i=A),A=OL(n,i);var a=OL(n,r);A&&a&&(e.rangeCount!==1||e.anchorNode!==A.node||e.anchorOffset!==A.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(A.node,A.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,K2=null,Ik=null,vE=null,Ck=!1;function UL(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ck||K2==null||K2!==Jy(r)||(r=K2,"selectionStart"in r&&Ek(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vE&&yE(vE,r)||(vE=r,r=fv(Ik,"onSelect"),0tp||(e.current=Rk[tp],Rk[tp]=null,tp--)}function qo(e,t){tp++,Rk[tp]=e.current,e.current=t}var Ld={},us=Od(Ld),oa=Od(!1),vg=Ld;function np(e,t){var n=e.type.contextTypes;if(!n)return Ld;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var A={},i;for(i in n)A[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=A),A}function ia(e){return e=e.childContextTypes,e!=null}function mv(){ci(oa),ci(us)}function nP(e,t,n){if(us.current!==Ld)throw Error(Ht(168));qo(us,t),qo(oa,n)}function rP(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var A in r)if(!(A in t))throw Error(Ht(108,kpe(e)||"Unknown",A));return xi({},n,r)}function Ev(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ld,vg=us.current,qo(us,e),qo(oa,oa.current),!0}function oP(e,t,n){var r=e.stateNode;if(!r)throw Error(Ht(169));n?(e=rP(e,t,vg),r.__reactInternalMemoizedMergedChildContext=e,ci(oa),ci(us),qo(us,e)):ci(oa),qo(oa,n)}var b0=null,Iv=!1,Tk=!1;function iP(e){b0===null?b0=[e]:b0.push(e)}function J1e(e){Iv=!0,iP(e)}function Pd(){if(!Tk&&b0!==null){Tk=!0;var e=0,t=Mo;try{var n=b0;for(Mo=1;e>=a,A-=a,Q0=1<<32-sc(t)+A|n<K?(re=Z,Z=null):re=Z.sibling;var V=v(N,Z,P[K],G);if(V===null){Z===null&&(Z=re);break}e&&Z&&V.alternate===null&&t(N,Z),T=i(V,T,K),z===null?Y=V:z.sibling=V,z=V,Z=re}if(K===P.length)return n(N,Z),mi&&Qg(N,K),Y;if(Z===null){for(;KK?(re=Z,Z=null):re=Z.sibling;var oe=v(N,Z,V.value,G);if(oe===null){Z===null&&(Z=re);break}e&&Z&&oe.alternate===null&&t(N,Z),T=i(oe,T,K),z===null?Y=oe:z.sibling=oe,z=oe,Z=re}if(V.done)return n(N,Z),mi&&Qg(N,K),Y;if(Z===null){for(;!V.done;K++,V=P.next())V=I(N,V.value,G),V!==null&&(T=i(V,T,K),z===null?Y=V:z.sibling=V,z=V);return mi&&Qg(N,K),Y}for(Z=r(N,Z);!V.done;K++,V=P.next())V=k(Z,N,K,V.value,G),V!==null&&(e&&V.alternate!==null&&Z.delete(V.key===null?K:V.key),T=i(V,T,K),z===null?Y=V:z.sibling=V,z=V);return e&&Z.forEach(function(Be){return t(N,Be)}),mi&&Qg(N,K),Y}function F(N,T,P,G){if(typeof P=="object"&&P!==null&&P.type===H2&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Yy:e:{for(var Y=P.key,z=T;z!==null;){if(z.key===Y){if(Y=P.type,Y===H2){if(z.tag===7){n(N,z.sibling),T=A(z,P.props.children),T.return=N,N=T;break e}}else if(z.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===kd&&uP(Y)===z.type){n(N,z.sibling),T=A(z,P.props),T.ref=kE(N,z,P),T.return=N,N=T;break e}n(N,z);break}else t(N,z);z=z.sibling}P.type===H2?(T=Tg(P.props.children,N.mode,G,P.key),T.return=N,N=T):(G=Wv(P.type,P.key,P.props,null,N.mode,G),G.ref=kE(N,T,P),G.return=N,N=G)}return a(N);case G2:e:{for(z=P.key;T!==null;){if(T.key===z)if(T.tag===4&&T.stateNode.containerInfo===P.containerInfo&&T.stateNode.implementation===P.implementation){n(N,T.sibling),T=A(T,P.children||[]),T.return=N,N=T;break e}else{n(N,T);break}else t(N,T);T=T.sibling}T=k8(P,N.mode,G),T.return=N,N=T}return a(N);case kd:return z=P._init,F(N,T,z(P._payload),G)}if(oE(P))return D(N,T,P,G);if(nE(P))return R(N,T,P,G);vv(N,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,T!==null&&T.tag===6?(n(N,T.sibling),T=A(T,P),T.return=N,N=T):(n(N,T),T=_8(P,N.mode,G),T.return=N,N=T),a(N)):n(N,T)}return F}var Ap=dP(!0),fP=dP(!1),bv=Od(null),Qv=null,sp=null,Lk=null;function Pk(){Lk=sp=Qv=null}function Uk(e){var t=bv.current;ci(bv),e._currentValue=t}function Gk(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ap(e,t){Qv=e,Lk=sp=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Aa=!0),e.firstContext=null)}function El(e){var t=e._currentValue;if(Lk!==e)if(e={context:e,memoizedValue:t,next:null},sp===null){if(Qv===null)throw Error(Ht(308));sp=e,Qv.dependencies={lanes:0,firstContext:e}}else sp=sp.next=e;return t}var wg=null;function Hk(e){wg===null?wg=[e]:wg.push(e)}function gP(e,t,n,r){var A=t.interleaved;return A===null?(n.next=n,Hk(t)):(n.next=A.next,A.next=n),t.interleaved=n,x0(e,r)}function x0(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ud=!1;function Yk(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _0(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gd(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,no&2){var A=r.pending;return A===null?t.next=t:(t.next=A.next,A.next=t),r.pending=t,x0(e,n)}return A=r.interleaved,A===null?(t.next=t,Hk(r)):(t.next=A.next,A.next=t),r.interleaved=t,x0(e,n)}function wv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ok(e,n)}}function pP(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var A=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?A=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?A=i=t:i=i.next=t}else A=i=t;n={baseState:r.baseState,firstBaseUpdate:A,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xv(e,t,n,r){var A=e.updateQueue;Ud=!1;var i=A.firstBaseUpdate,a=A.lastBaseUpdate,c=A.shared.pending;if(c!==null){A.shared.pending=null;var f=c,h=f.next;f.next=null,a===null?i=h:a.next=h,a=f;var m=e.alternate;m!==null&&(m=m.updateQueue,c=m.lastBaseUpdate,c!==a&&(c===null?m.firstBaseUpdate=h:c.next=h,m.lastBaseUpdate=f))}if(i!==null){var I=A.baseState;a=0,m=h=f=null,c=i;do{var v=c.lane,k=c.eventTime;if((r&v)===v){m!==null&&(m=m.next={eventTime:k,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var D=e,R=c;switch(v=t,k=n,R.tag){case 1:if(D=R.payload,typeof D=="function"){I=D.call(k,I,v);break e}I=D;break e;case 3:D.flags=D.flags&-65537|128;case 0:if(D=R.payload,v=typeof D=="function"?D.call(k,I,v):D,v==null)break e;I=xi({},I,v);break e;case 2:Ud=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,v=A.effects,v===null?A.effects=[c]:v.push(c))}else k={eventTime:k,lane:v,tag:c.tag,payload:c.payload,callback:c.callback,next:null},m===null?(h=m=k,f=I):m=m.next=k,a|=v;if(c=c.next,c===null){if(c=A.shared.pending,c===null)break;v=c,c=v.next,v.next=null,A.lastBaseUpdate=v,A.shared.pending=null}}while(!0);if(m===null&&(f=I),A.baseState=f,A.firstBaseUpdate=h,A.lastBaseUpdate=m,t=A.shared.interleaved,t!==null){A=t;do a|=A.lane,A=A.next;while(A!==t)}else i===null&&(A.shared.lanes=0);kg|=a,e.lanes=a,e.memoizedState=I}}function mP(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xk.transition;Xk.transition={};try{e(!1),t()}finally{Mo=n,Xk.transition=r}}function NP(){return Il().memoizedState}function K1e(e,t,n){var r=Jd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jP(e))OP(t,n);else if(n=gP(e,t,n,r),n!==null){var A=Ls();fc(n,e,r,A),LP(n,t,r)}}function V1e(e,t,n){var r=Jd(e),A={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jP(e))OP(t,A);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,c=i(a,n);if(A.hasEagerState=!0,A.eagerState=c,ac(c,a)){var f=t.interleaved;f===null?(A.next=A,Hk(t)):(A.next=f.next,f.next=A),t.interleaved=A;return}}catch{}finally{}n=gP(e,t,A,r),n!==null&&(A=Ls(),fc(n,e,r,A),LP(n,t,r))}}function jP(e){var t=e.alternate;return e===ki||t!==null&&t===ki}function OP(e,t){TE=Sv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function LP(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ok(e,n)}}var Tv={readContext:El,useCallback:ds,useContext:ds,useEffect:ds,useImperativeHandle:ds,useInsertionEffect:ds,useLayoutEffect:ds,useMemo:ds,useReducer:ds,useRef:ds,useState:ds,useDebugValue:ds,useDeferredValue:ds,useTransition:ds,useMutableSource:ds,useSyncExternalStore:ds,useId:ds,unstable_isNewReconciler:!1},q1e={readContext:El,useCallback:function(e,t){return uu().memoizedState=[e,t===void 0?null:t],e},useContext:El,useEffect:_P,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dv(4194308,4,DP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dv(4,2,e,t)},useMemo:function(e,t){var n=uu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=uu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=K1e.bind(null,ki,e),[r.memoizedState,e]},useRef:function(e){var t=uu();return e={current:e},t.memoizedState=e},useState:wP,useDebugValue:n8,useDeferredValue:function(e){return uu().memoizedState=e},useTransition:function(){var e=wP(!1),t=e[0];return e=X1e.bind(null,e[1]),uu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ki,A=uu();if(mi){if(n===void 0)throw Error(Ht(407));n=n()}else{if(n=t(),NA===null)throw Error(Ht(349));_g&30||BP(r,t,n)}A.memoizedState=n;var i={value:n,getSnapshot:t};return A.queue=i,_P(vP.bind(null,r,i,e),[e]),r.flags|=2048,NE(9,yP.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=uu(),t=NA.identifierPrefix;if(mi){var n=w0,r=Q0;n=(r&~(1<<32-sc(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ME++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[lu]=t,e[xE]=r,iU(e,t,!1,!1),t.stateNode=e;e:{switch(a=Z3(n,r),n){case"dialog":li("cancel",e),li("close",e),A=r;break;case"iframe":case"object":case"embed":li("load",e),A=r;break;case"video":case"audio":for(A=0;Afp&&(t.flags|=128,r=!0,jE(i,!1),t.lanes=4194304)}else{if(!r)if(e=_v(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jE(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!mi)return fs(t),null}else 2*Ki()-i.renderingStartTime>fp&&n!==1073741824&&(t.flags|=128,r=!0,jE(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ki(),t.sibling=null,n=_i.current,qo(_i,r?n&1|2:n&1),t):(fs(t),null);case 22:case 23:return Q8(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?La&1073741824&&(fs(t),t.subtreeFlags&6&&(t.flags|=8192)):fs(t),null;case 24:return null;case 25:return null}throw Error(Ht(156,t.tag))}function Ame(e,t){switch(Fk(t),t.tag){case 1:return ia(t.type)&&mv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lp(),ci(oa),ci(us),Zk(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jk(t),null;case 13:if(ci(_i),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ht(340));ip()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ci(_i),null;case 4:return lp(),null;case 10:return Uk(t.type._context),null;case 22:case 23:return Q8(),null;case 24:return null;default:return null}}var jv=!1,gs=!1,sme=typeof WeakSet=="function"?WeakSet:Set,gn=null;function up(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Hi(e,t,r)}else n.current=null}function aU(e,t,n){try{n()}catch(r){Hi(e,t,r)}}var lU=!1;function ame(e,t){if(wk=rv,e=PL(),Ek(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var A=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,c=-1,f=-1,h=0,m=0,I=e,v=null;t:for(;;){for(var k;I!==n||A!==0&&I.nodeType!==3||(c=a+A),I!==i||r!==0&&I.nodeType!==3||(f=a+r),I.nodeType===3&&(a+=I.nodeValue.length),(k=I.firstChild)!==null;)v=I,I=k;for(;;){if(I===e)break t;if(v===n&&++h===A&&(c=a),v===i&&++m===r&&(f=a),(k=I.nextSibling)!==null)break;I=v,v=I.parentNode}I=k}n=c===-1||f===-1?null:{start:c,end:f}}else n=null}n=n||{start:0,end:0}}else n=null;for(xk={focusedElem:e,selectionRange:n},rv=!1,gn=t;gn!==null;)if(t=gn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gn=e;else for(;gn!==null;){t=gn;try{var D=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(D!==null){var R=D.memoizedProps,F=D.memoizedState,N=t.stateNode,T=N.getSnapshotBeforeUpdate(t.elementType===t.type?R:cc(t.type,R),F);N.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ht(163))}}catch(G){Hi(t,t.return,G)}if(e=t.sibling,e!==null){e.return=t.return,gn=e;break}gn=t.return}return D=lU,lU=!1,D}function OE(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var A=r=r.next;do{if((A.tag&e)===e){var i=A.destroy;A.destroy=void 0,i!==void 0&&aU(t,n,i)}A=A.next}while(A!==r)}}function Ov(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function g8(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function cU(e){var t=e.alternate;t!==null&&(e.alternate=null,cU(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lu],delete t[xE],delete t[Dk],delete t[Y1e],delete t[z1e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uU(e){return e.tag===5||e.tag===3||e.tag===4}function dU(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uU(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function h8(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hv));else if(r!==4&&(e=e.child,e!==null))for(h8(e,t,n),e=e.sibling;e!==null;)h8(e,t,n),e=e.sibling}function p8(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(p8(e,t,n),e=e.sibling;e!==null;)p8(e,t,n),e=e.sibling}var KA=null,uc=!1;function Hd(e,t,n){for(n=n.child;n!==null;)fU(e,t,n),n=n.sibling}function fU(e,t,n){if(au&&typeof au.onCommitFiberUnmount=="function")try{au.onCommitFiberUnmount(Vy,n)}catch{}switch(n.tag){case 5:gs||up(n,t);case 6:var r=KA,A=uc;KA=null,Hd(e,t,n),KA=r,uc=A,KA!==null&&(uc?(e=KA,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):KA.removeChild(n.stateNode));break;case 18:KA!==null&&(uc?(e=KA,n=n.stateNode,e.nodeType===8?Sk(e.parentNode,n):e.nodeType===1&&Sk(e,n),pE(e)):Sk(KA,n.stateNode));break;case 4:r=KA,A=uc,KA=n.stateNode.containerInfo,uc=!0,Hd(e,t,n),KA=r,uc=A;break;case 0:case 11:case 14:case 15:if(!gs&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){A=r=r.next;do{var i=A,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&aU(n,t,a),A=A.next}while(A!==r)}Hd(e,t,n);break;case 1:if(!gs&&(up(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){Hi(n,t,c)}Hd(e,t,n);break;case 21:Hd(e,t,n);break;case 22:n.mode&1?(gs=(r=gs)||n.memoizedState!==null,Hd(e,t,n),gs=r):Hd(e,t,n);break;default:Hd(e,t,n)}}function gU(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sme),t.forEach(function(r){var A=mme.bind(null,e,r);n.has(r)||(n.add(r),r.then(A,A))})}}function dc(e,t){var n=t.deletions;if(n!==null)for(var r=0;rA&&(A=a),r&=~i}if(r=A,r=Ki()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cme(r/1960))-r,10e?16:e,zd===null)var r=!1;else{if(e=zd,zd=null,Hv=0,no&6)throw Error(Ht(331));var A=no;for(no|=4,gn=e.current;gn!==null;){var i=gn,a=i.child;if(gn.flags&16){var c=i.deletions;if(c!==null){for(var f=0;fKi()-I8?Dg(e,0):E8|=n),aa(e,t)}function xU(e,t){t===0&&(e.mode&1?(t=$y,$y<<=1,!($y&130023424)&&($y=4194304)):t=1);var n=Ls();e=x0(e,t),e!==null&&(uE(e,t,n),aa(e,n))}function pme(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xU(e,n)}function mme(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,A=e.memoizedState;A!==null&&(n=A.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ht(314))}r!==null&&r.delete(t),xU(e,n)}var _U;_U=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||oa.current)Aa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Aa=!1,ome(e,t,n);Aa=!!(e.flags&131072)}else Aa=!1,mi&&t.flags&1048576&&AP(t,Bv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Nv(e,t),e=t.pendingProps;var A=np(t,us.current);ap(t,n),A=Vk(null,t,r,e,A,n);var i=qk();return t.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ia(r)?(i=!0,Ev(t)):i=!1,t.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,Yk(t),A.updater=Mv,t.stateNode=A,A._reactInternals=t,o8(t,r,e,n),t=a8(null,t,r,!0,i,n)):(t.tag=0,mi&&i&&Mk(t),Os(null,t,A,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Nv(e,t),e=t.pendingProps,A=r._init,r=A(r._payload),t.type=r,A=t.tag=Ime(r),e=cc(r,e),A){case 0:t=s8(null,t,r,e,n);break e;case 1:t=$P(null,t,r,e,n);break e;case 11:t=ZP(null,t,r,e,n);break e;case 14:t=XP(null,t,r,cc(r.type,e),n);break e}throw Error(Ht(306,r,""))}return t;case 0:return r=t.type,A=t.pendingProps,A=t.elementType===r?A:cc(r,A),s8(e,t,r,A,n);case 1:return r=t.type,A=t.pendingProps,A=t.elementType===r?A:cc(r,A),$P(e,t,r,A,n);case 3:e:{if(eU(t),e===null)throw Error(Ht(387));r=t.pendingProps,i=t.memoizedState,A=i.element,hP(e,t),xv(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){A=cp(Error(Ht(423)),t),t=tU(e,t,r,n,A);break e}else if(r!==A){A=cp(Error(Ht(424)),t),t=tU(e,t,r,n,A);break e}else for(Oa=jd(t.stateNode.containerInfo.firstChild),ja=t,mi=!0,lc=null,n=fP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ip(),r===A){t=k0(e,t,n);break e}Os(e,t,r,n)}t=t.child}return t;case 5:return EP(t),e===null&&jk(t),r=t.type,A=t.pendingProps,i=e!==null?e.memoizedProps:null,a=A.children,_k(r,A)?a=null:i!==null&&_k(r,i)&&(t.flags|=32),qP(e,t),Os(e,t,a,n),t.child;case 6:return e===null&&jk(t),null;case 13:return nU(e,t,n);case 4:return zk(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ap(t,null,r,n):Os(e,t,r,n),t.child;case 11:return r=t.type,A=t.pendingProps,A=t.elementType===r?A:cc(r,A),ZP(e,t,r,A,n);case 7:return Os(e,t,t.pendingProps,n),t.child;case 8:return Os(e,t,t.pendingProps.children,n),t.child;case 12:return Os(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,A=t.pendingProps,i=t.memoizedProps,a=A.value,qo(bv,r._currentValue),r._currentValue=a,i!==null)if(ac(i.value,a)){if(i.children===A.children&&!oa.current){t=k0(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){a=i.child;for(var f=c.firstContext;f!==null;){if(f.context===r){if(i.tag===1){f=_0(-1,n&-n),f.tag=2;var h=i.updateQueue;if(h!==null){h=h.shared;var m=h.pending;m===null?f.next=f:(f.next=m.next,m.next=f),h.pending=f}}i.lanes|=n,f=i.alternate,f!==null&&(f.lanes|=n),Gk(i.return,n,t),c.lanes|=n;break}f=f.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ht(341));a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Gk(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Os(e,t,A.children,n),t=t.child}return t;case 9:return A=t.type,r=t.pendingProps.children,ap(t,n),A=El(A),r=r(A),t.flags|=1,Os(e,t,r,n),t.child;case 14:return r=t.type,A=cc(r,t.pendingProps),A=cc(r.type,A),XP(e,t,r,A,n);case 15:return KP(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,A=t.pendingProps,A=t.elementType===r?A:cc(r,A),Nv(e,t),t.tag=1,ia(r)?(e=!0,Ev(t)):e=!1,ap(t,n),UP(t,r,A),o8(t,r,A,n),a8(null,t,r,!0,e,n);case 19:return oU(e,t,n);case 22:return VP(e,t,n)}throw Error(Ht(156,t.tag))};function kU(e,t){return sL(e,t)}function Eme(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bl(e,t,n,r){return new Eme(e,t,n,r)}function x8(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ime(e){if(typeof e=="function")return x8(e)?1:0;if(e!=null){if(e=e.$$typeof,e===M3)return 11;if(e===j3)return 14}return 2}function Zd(e,t){var n=e.alternate;return n===null?(n=Bl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wv(e,t,n,r,A,i){var a=2;if(r=e,typeof e=="function")x8(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case H2:return Tg(n.children,A,i,t);case R3:a=8,A|=8;break;case T3:return e=Bl(12,n,t,A|2),e.elementType=T3,e.lanes=i,e;case F3:return e=Bl(13,n,t,A),e.elementType=F3,e.lanes=i,e;case N3:return e=Bl(19,n,t,A),e.elementType=N3,e.lanes=i,e;case jO:return Zv(n,A,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case FO:a=10;break e;case NO:a=9;break e;case M3:a=11;break e;case j3:a=14;break e;case kd:a=16,r=null;break e}throw Error(Ht(130,e==null?e:typeof e,""))}return t=Bl(a,n,t,A),t.elementType=e,t.type=r,t.lanes=i,t}function Tg(e,t,n,r){return e=Bl(7,e,r,t),e.lanes=n,e}function Zv(e,t,n,r){return e=Bl(22,e,r,t),e.elementType=jO,e.lanes=n,e.stateNode={isHidden:!1},e}function _8(e,t,n){return e=Bl(6,e,null,t),e.lanes=n,e}function k8(e,t,n){return t=Bl(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cme(e,t,n,r,A){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rk(0),this.expirationTimes=rk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rk(0),this.identifierPrefix=r,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function S8(e,t,n,r,A,i,a,c,f){return e=new Cme(e,t,n,c,f),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Bl(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yk(i),e}function Bme(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(FU)}catch(e){console.error(e)}}FU(),kO.exports=Ma;var fu=kO.exports;const NU=MA(fu);var jU=fu;x3.createRoot=jU.createRoot,x3.hydrateRoot=jU.hydrateRoot;function OU(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gc(...e){return t=>{let n=!1;const r=e.map(A=>{const i=OU(A,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let A=0;A{const{children:i,...a}=r,c=b.Children.toArray(i),f=c.find(_me);if(f){const h=f.props.children,m=c.map(I=>I===f?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:I);return p.jsx(t,{...a,ref:A,children:b.isValidElement(h)?b.cloneElement(h,void 0,m):null})}return p.jsx(t,{...a,ref:A,children:i})});return n.displayName=`${e}.Slot`,n}var Xd=Uo("Slot");function wme(e){const t=b.forwardRef((n,r)=>{const{children:A,...i}=n;if(b.isValidElement(A)){const a=Sme(A),c=kme(i,A.props);return A.type!==b.Fragment&&(c.ref=r?gc(r,a):a),b.cloneElement(A,c)}return b.Children.count(A)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var LU=Symbol("radix.slottable");function PU(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=LU,t}var xme=PU("Slottable");function _me(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===LU}function kme(e,t){const n={...t};for(const r in t){const A=e[r],i=t[r];/^on[A-Z]/.test(r)?A&&i?n[r]=(...a)=>{const c=i(...a);return A(...a),c}:A&&(n[r]=A):r==="style"?n[r]={...A,...i}:r==="className"&&(n[r]=[A,i].filter(Boolean).join(" "))}return{...e,...n}}function Sme(e){var r,A;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(A=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:A.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dme=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rme=Dme.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),UU=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Tme="VisuallyHidden",GU=b.forwardRef((e,t)=>p.jsx(Rme.span,{...e,ref:t,style:{...UU,...e.style}}));GU.displayName=Tme;var HU=GU;function Mme(e,t){const n=b.createContext(t),r=i=>{const{children:a,...c}=i,f=b.useMemo(()=>c,Object.values(c));return p.jsx(n.Provider,{value:f,children:a})};r.displayName=e+"Provider";function A(i){const a=b.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,A]}function la(e,t=[]){let n=[];function r(i,a){const c=b.createContext(a),f=n.length;n=[...n,a];const h=I=>{var N;const{scope:v,children:k,...D}=I,R=((N=v==null?void 0:v[e])==null?void 0:N[f])||c,F=b.useMemo(()=>D,Object.values(D));return p.jsx(R.Provider,{value:F,children:k})};h.displayName=i+"Provider";function m(I,v){var R;const k=((R=v==null?void 0:v[e])==null?void 0:R[f])||c,D=b.useContext(k);if(D)return D;if(a!==void 0)return a;throw new Error(`\`${I}\` must be used within \`${i}\``)}return[h,m]}const A=()=>{const i=n.map(a=>b.createContext(a));return function(a){const c=(a==null?void 0:a[e])||i;return b.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return A.scopeName=e,[r,Fme(A,...t)]}function Fme(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(A=>({useScope:A(),scopeName:A.scopeName}));return function(A){const i=r.reduce((a,{useScope:c,scopeName:f})=>{const h=c(A)[`__scope${f}`];return{...a,...h}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function tb(e){const t=e+"CollectionProvider",[n,r]=la(t),[A,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=R=>{const{scope:F,children:N}=R,T=vt.useRef(null),P=vt.useRef(new Map).current;return p.jsx(A,{scope:F,itemMap:P,collectionRef:T,children:N})};a.displayName=t;const c=e+"CollectionSlot",f=Uo(c),h=vt.forwardRef((R,F)=>{const{scope:N,children:T}=R,P=i(c,N),G=ir(F,P.collectionRef);return p.jsx(f,{ref:G,children:T})});h.displayName=c;const m=e+"CollectionItemSlot",I="data-radix-collection-item",v=Uo(m),k=vt.forwardRef((R,F)=>{const{scope:N,children:T,...P}=R,G=vt.useRef(null),Y=ir(F,G),z=i(m,N);return vt.useEffect(()=>(z.itemMap.set(G,{ref:G,...P}),()=>void z.itemMap.delete(G))),p.jsx(v,{[I]:"",ref:Y,children:T})});k.displayName=m;function D(R){const F=i(e+"CollectionConsumer",R);return vt.useCallback(()=>{const N=F.collectionRef.current;if(!N)return[];const T=Array.from(N.querySelectorAll(`[${I}]`));return Array.from(F.itemMap.values()).sort((P,G)=>T.indexOf(P.ref.current)-T.indexOf(G.ref.current))},[F.collectionRef,F.itemMap])}return[{Provider:a,Slot:h,ItemSlot:k},D,r]}function Vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var qA=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Nme=eE[" useInsertionEffect ".trim().toString()]||qA;function yl({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[A,i,a]=jme({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:A;{const m=b.useRef(e!==void 0);b.useEffect(()=>{const I=m.current;I!==c&&console.warn(`${r} is changing from ${I?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,r])}const h=b.useCallback(m=>{var I;if(c){const v=Ome(m)?m(e):m;v!==e&&((I=a.current)==null||I.call(a,v))}else i(m)},[c,e,i,a]);return[f,h]}function jme({defaultProp:e,onChange:t}){const[n,r]=b.useState(e),A=b.useRef(n),i=b.useRef(t);return Nme(()=>{i.current=t},[t]),b.useEffect(()=>{var a;A.current!==n&&((a=i.current)==null||a.call(i,n),A.current=n)},[n,A]),[n,r,i]}function Ome(e){return typeof e=="function"}function Lme(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var hs=e=>{const{present:t,children:n}=e,r=Pme(t),A=typeof n=="function"?n({present:r.isPresent}):b.Children.only(n),i=ir(r.ref,Ume(A));return typeof n=="function"||r.isPresent?b.cloneElement(A,{ref:i}):null};hs.displayName="Presence";function Pme(e){const[t,n]=b.useState(),r=b.useRef(null),A=b.useRef(e),i=b.useRef("none"),a=e?"mounted":"unmounted",[c,f]=Lme(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const h=nb(r.current);i.current=c==="mounted"?h:"none"},[c]),qA(()=>{const h=r.current,m=A.current;if(m!==e){const I=i.current,v=nb(h);e?f("MOUNT"):v==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&I!==v?"ANIMATION_OUT":"UNMOUNT"),A.current=e}},[e,f]),qA(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,I=k=>{const D=nb(r.current).includes(CSS.escape(k.animationName));if(k.target===t&&D&&(f("ANIMATION_END"),!A.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},v=k=>{k.target===t&&(i.current=nb(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",I),t.addEventListener("animationend",I),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",I),t.removeEventListener("animationend",I)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:b.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function nb(e){return(e==null?void 0:e.animationName)||"none"}function Ume(e){var r,A;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(A=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:A.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Gme=eE[" useId ".trim().toString()]||(()=>{}),Hme=0;function $A(e){const[t,n]=b.useState(Gme());return qA(()=>{n(r=>r??String(Hme++))},[e]),t?`radix-${t}`:""}var YU=b.createContext(void 0),Yme=e=>{const{dir:t,children:n}=e;return p.jsx(YU.Provider,{value:t,children:n})};function hp(e){const t=b.useContext(YU);return e||t||"ltr"}var zme=Yme,Jme=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],zU=Jme.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Wme(e,t){e&&fu.flushSync(()=>e.dispatchEvent(t))}function es(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Zme(e,t=globalThis==null?void 0:globalThis.document){const n=es(e);b.useEffect(()=>{const r=A=>{A.key==="Escape"&&n(A)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Xme="DismissableLayer",M8="dismissableLayer.update",Kme="dismissableLayer.pointerDownOutside",Vme="dismissableLayer.focusOutside",JU,WU=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pp=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:A,onFocusOutside:i,onInteractOutside:a,onDismiss:c,...f}=e,h=b.useContext(WU),[m,I]=b.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=b.useState({}),D=ir(t,Z=>I(Z)),R=Array.from(h.layers),[F]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),N=R.indexOf(F),T=m?R.indexOf(m):-1,P=h.layersWithOutsidePointerEventsDisabled.size>0,G=T>=N,Y=eEe(Z=>{const K=Z.target,re=[...h.branches].some(V=>V.contains(K));!G||re||(A==null||A(Z),a==null||a(Z),Z.defaultPrevented||(c==null||c()))},v),z=tEe(Z=>{const K=Z.target;[...h.branches].some(re=>re.contains(K))||(i==null||i(Z),a==null||a(Z),Z.defaultPrevented||(c==null||c()))},v);return Zme(Z=>{T===h.layers.size-1&&(r==null||r(Z),!Z.defaultPrevented&&c&&(Z.preventDefault(),c()))},v),b.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(JU=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),ZU(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=JU)}},[m,v,n,h]),b.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),ZU())},[m,h]),b.useEffect(()=>{const Z=()=>k({});return document.addEventListener(M8,Z),()=>document.removeEventListener(M8,Z)},[]),p.jsx(zU.div,{...f,ref:D,style:{pointerEvents:P?G?"auto":"none":void 0,...e.style},onFocusCapture:Vt(e.onFocusCapture,z.onFocusCapture),onBlurCapture:Vt(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Vt(e.onPointerDownCapture,Y.onPointerDownCapture)})});pp.displayName=Xme;var qme="DismissableLayerBranch",$me=b.forwardRef((e,t)=>{const n=b.useContext(WU),r=b.useRef(null),A=ir(t,r);return b.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(zU.div,{...e,ref:A})});$me.displayName=qme;function eEe(e,t=globalThis==null?void 0:globalThis.document){const n=es(e),r=b.useRef(!1),A=b.useRef(()=>{});return b.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let f=function(){XU(Kme,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",A.current),A.current=f,t.addEventListener("click",A.current,{once:!0})):f()}else t.removeEventListener("click",A.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",A.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tEe(e,t=globalThis==null?void 0:globalThis.document){const n=es(e),r=b.useRef(!1);return b.useEffect(()=>{const A=i=>{i.target&&!r.current&&XU(Vme,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",A),()=>t.removeEventListener("focusin",A)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ZU(){const e=new CustomEvent(M8);document.dispatchEvent(e)}function XU(e,t,n,{discrete:r}){const A=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&A.addEventListener(e,t,{once:!0}),r?Wme(A,i):A.dispatchEvent(i)}var nEe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rEe=nEe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),F8="focusScope.autoFocusOnMount",N8="focusScope.autoFocusOnUnmount",KU={bubbles:!1,cancelable:!0},oEe="FocusScope",HE=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:A,onUnmountAutoFocus:i,...a}=e,[c,f]=b.useState(null),h=es(A),m=es(i),I=b.useRef(null),v=ir(t,R=>f(R)),k=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let R=function(P){if(k.paused||!c)return;const G=P.target;c.contains(G)?I.current=G:Kd(I.current,{select:!0})},F=function(P){if(k.paused||!c)return;const G=P.relatedTarget;G!==null&&(c.contains(G)||Kd(I.current,{select:!0}))},N=function(P){if(document.activeElement===document.body)for(const G of P)G.removedNodes.length>0&&Kd(c)};document.addEventListener("focusin",R),document.addEventListener("focusout",F);const T=new MutationObserver(N);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",F),T.disconnect()}}},[r,c,k.paused]),b.useEffect(()=>{if(c){$U.add(k);const R=document.activeElement;if(!c.contains(R)){const F=new CustomEvent(F8,KU);c.addEventListener(F8,h),c.dispatchEvent(F),F.defaultPrevented||(iEe(cEe(VU(c)),{select:!0}),document.activeElement===R&&Kd(c))}return()=>{c.removeEventListener(F8,h),setTimeout(()=>{const F=new CustomEvent(N8,KU);c.addEventListener(N8,m),c.dispatchEvent(F),F.defaultPrevented||Kd(R??document.body,{select:!0}),c.removeEventListener(N8,m),$U.remove(k)},0)}}},[c,h,m,k]);const D=b.useCallback(R=>{if(!n&&!r||k.paused)return;const F=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,N=document.activeElement;if(F&&N){const T=R.currentTarget,[P,G]=AEe(T);P&&G?!R.shiftKey&&N===G?(R.preventDefault(),n&&Kd(P,{select:!0})):R.shiftKey&&N===P&&(R.preventDefault(),n&&Kd(G,{select:!0})):N===T&&R.preventDefault()}},[n,r,k.paused]);return p.jsx(rEe.div,{tabIndex:-1,...a,ref:v,onKeyDown:D})});HE.displayName=oEe;function iEe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Kd(r,{select:t}),document.activeElement!==n)return}function AEe(e){const t=VU(e),n=qU(t,e),r=qU(t.reverse(),e);return[n,r]}function VU(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const A=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||A?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function qU(e,t){for(const n of e)if(!sEe(n,{upTo:t}))return n}function sEe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function aEe(e){return e instanceof HTMLInputElement&&"select"in e}function Kd(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aEe(e)&&t&&e.select()}}var $U=lEe();function lEe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=eG(e,t),e.unshift(t)},remove(t){var n;e=eG(e,t),(n=e[0])==null||n.resume()}}}function eG(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cEe(e){return e.filter(t=>t.tagName!=="A")}var uEe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dEe=uEe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),fEe="Portal",Mg=b.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[A,i]=b.useState(!1);qA(()=>i(!0),[]);const a=n||A&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?NU.createPortal(p.jsx(dEe.div,{...r,ref:t}),a):null});Mg.displayName=fEe;var tG=Mg,gEe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],YE=gEe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),j8=0;function rb(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nG()),document.body.insertAdjacentElement("beforeend",e[1]??nG()),j8++,()=>{j8===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),j8--}},[])}function nG(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gu=function(){return gu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u")return DEe;var t=REe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},MEe=sG(),mp="data-scroll-locked",FEe=function(e,t,n,r){var A=e.left,i=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),` - .`.concat(pEe,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(c,"px ").concat(r,`; - } - body[`).concat(mp,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(A,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(a,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(c,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(ob,` { - right: `).concat(c,"px ").concat(r,`; - } - - .`).concat(ib,` { - margin-right: `).concat(c,"px ").concat(r,`; - } - - .`).concat(ob," .").concat(ob,` { - right: 0 `).concat(r,`; - } - - .`).concat(ib," .").concat(ib,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(mp,`] { - `).concat(mEe,": ").concat(c,`px; - } -`)},aG=function(){var e=parseInt(document.body.getAttribute(mp)||"0",10);return isFinite(e)?e:0},NEe=function(){b.useEffect(function(){return document.body.setAttribute(mp,(aG()+1).toString()),function(){var e=aG()-1;e<=0?document.body.removeAttribute(mp):document.body.setAttribute(mp,e.toString())}},[])},jEe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,A=r===void 0?"margin":r;NEe();var i=b.useMemo(function(){return TEe(A)},[A]);return b.createElement(MEe,{styles:FEe(i,!t,A,n?"":"!important")})},U8=!1;if(typeof window<"u")try{var sb=Object.defineProperty({},"passive",{get:function(){return U8=!0,!0}});window.addEventListener("test",sb,sb),window.removeEventListener("test",sb,sb)}catch{U8=!1}var Ep=U8?{passive:!1}:!1,OEe=function(e){return e.tagName==="TEXTAREA"},lG=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!OEe(e)&&n[t]==="visible")},LEe=function(e){return lG(e,"overflowY")},PEe=function(e){return lG(e,"overflowX")},cG=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var A=uG(e,r);if(A){var i=dG(e,r),a=i[1],c=i[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},UEe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},GEe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uG=function(e,t){return e==="v"?LEe(t):PEe(t)},dG=function(e,t){return e==="v"?UEe(t):GEe(t)},HEe=function(e,t){return e==="h"&&t==="rtl"?-1:1},YEe=function(e,t,n,r,A){var i=HEe(e,window.getComputedStyle(t).direction),a=i*r,c=n.target,f=t.contains(c),h=!1,m=a>0,I=0,v=0;do{if(!c)break;var k=dG(e,c),D=k[0],R=k[1],F=k[2],N=R-F-i*D;(D||N)&&uG(e,c)&&(I+=N,v+=D);var T=c.parentNode;c=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(I)<1||!m&&Math.abs(v)<1)&&(h=!0),h},ab=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fG=function(e){return[e.deltaX,e.deltaY]},gG=function(e){return e&&"current"in e?e.current:e},zEe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},JEe=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},WEe=0,Ip=[];function ZEe(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),A=b.useState(WEe++)[0],i=b.useState(sG)[0],a=b.useRef(e);b.useEffect(function(){a.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(A));var R=hEe([e.lockRef.current],(e.shards||[]).map(gG),!0).filter(Boolean);return R.forEach(function(F){return F.classList.add("allow-interactivity-".concat(A))}),function(){document.body.classList.remove("block-interactivity-".concat(A)),R.forEach(function(F){return F.classList.remove("allow-interactivity-".concat(A))})}}},[e.inert,e.lockRef.current,e.shards]);var c=b.useCallback(function(R,F){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!a.current.allowPinchZoom;var N=ab(R),T=n.current,P="deltaX"in R?R.deltaX:T[0]-N[0],G="deltaY"in R?R.deltaY:T[1]-N[1],Y,z=R.target,Z=Math.abs(P)>Math.abs(G)?"h":"v";if("touches"in R&&Z==="h"&&z.type==="range")return!1;var K=cG(Z,z);if(!K)return!0;if(K?Y=Z:(Y=Z==="v"?"h":"v",K=cG(Z,z)),!K)return!1;if(!r.current&&"changedTouches"in R&&(P||G)&&(r.current=Y),!Y)return!0;var re=r.current||Y;return YEe(re,F,R,re==="h"?P:G)},[]),f=b.useCallback(function(R){var F=R;if(!(!Ip.length||Ip[Ip.length-1]!==i)){var N="deltaY"in F?fG(F):ab(F),T=t.current.filter(function(Y){return Y.name===F.type&&(Y.target===F.target||F.target===Y.shadowParent)&&zEe(Y.delta,N)})[0];if(T&&T.should){F.cancelable&&F.preventDefault();return}if(!T){var P=(a.current.shards||[]).map(gG).filter(Boolean).filter(function(Y){return Y.contains(F.target)}),G=P.length>0?c(F,P[0]):!a.current.noIsolation;G&&F.cancelable&&F.preventDefault()}}},[]),h=b.useCallback(function(R,F,N,T){var P={name:R,delta:F,target:N,should:T,shadowParent:XEe(N)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(G){return G!==P})},1)},[]),m=b.useCallback(function(R){n.current=ab(R),r.current=void 0},[]),I=b.useCallback(function(R){h(R.type,fG(R),R.target,c(R,e.lockRef.current))},[]),v=b.useCallback(function(R){h(R.type,ab(R),R.target,c(R,e.lockRef.current))},[]);b.useEffect(function(){return Ip.push(i),e.setCallbacks({onScrollCapture:I,onWheelCapture:I,onTouchMoveCapture:v}),document.addEventListener("wheel",f,Ep),document.addEventListener("touchmove",f,Ep),document.addEventListener("touchstart",m,Ep),function(){Ip=Ip.filter(function(R){return R!==i}),document.removeEventListener("wheel",f,Ep),document.removeEventListener("touchmove",f,Ep),document.removeEventListener("touchstart",m,Ep)}},[]);var k=e.removeScrollBar,D=e.inert;return b.createElement(b.Fragment,null,D?b.createElement(i,{styles:JEe(A)}):null,k?b.createElement(jEe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XEe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KEe=bEe(AG,ZEe);var zE=b.forwardRef(function(e,t){return b.createElement(Ab,gu({},e,{ref:t,sideCar:KEe}))});zE.classNames=Ab.classNames;var VEe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cp=new WeakMap,lb=new WeakMap,cb={},G8=0,hG=function(e){return e&&(e.host||hG(e.parentNode))},qEe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hG(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$Ee=function(e,t,n,r){var A=qEe(t,Array.isArray(e)?e:[e]);cb[n]||(cb[n]=new WeakMap);var i=cb[n],a=[],c=new Set,f=new Set(A),h=function(I){!I||c.has(I)||(c.add(I),h(I.parentNode))};A.forEach(h);var m=function(I){!I||f.has(I)||Array.prototype.forEach.call(I.children,function(v){if(c.has(v))m(v);else try{var k=v.getAttribute(r),D=k!==null&&k!=="false",R=(Cp.get(v)||0)+1,F=(i.get(v)||0)+1;Cp.set(v,R),i.set(v,F),a.push(v),R===1&&D&&lb.set(v,!0),F===1&&v.setAttribute(n,"true"),D||v.setAttribute(r,"true")}catch(N){console.error("aria-hidden: cannot operate on ",v,N)}})};return m(t),c.clear(),G8++,function(){a.forEach(function(I){var v=Cp.get(I)-1,k=i.get(I)-1;Cp.set(I,v),i.set(I,k),v||(lb.has(I)||I.removeAttribute(r),lb.delete(I)),k||I.removeAttribute(n)}),G8--,G8||(Cp=new WeakMap,Cp=new WeakMap,lb=new WeakMap,cb={})}},ub=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),A=VEe(e);return A?(r.push.apply(r,Array.from(A.querySelectorAll("[aria-live], script"))),$Ee(r,A,n,"aria-hidden")):function(){return null}},db="Dialog",[pG]=la(db),[eIe,hc]=pG(db),mG=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:A,onOpenChange:i,modal:a=!0}=e,c=b.useRef(null),f=b.useRef(null),[h,m]=yl({prop:r,defaultProp:A??!1,onChange:i,caller:db});return p.jsx(eIe,{scope:t,triggerRef:c,contentRef:f,contentId:$A(),titleId:$A(),descriptionId:$A(),open:h,onOpenChange:m,onOpenToggle:b.useCallback(()=>m(I=>!I),[m]),modal:a,children:n})};mG.displayName=db;var EG="DialogTrigger",IG=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,A=hc(EG,n),i=ir(t,A.triggerRef);return p.jsx(YE.button,{type:"button","aria-haspopup":"dialog","aria-expanded":A.open,"aria-controls":A.contentId,"data-state":z8(A.open),...r,ref:i,onClick:Vt(e.onClick,A.onOpenToggle)})});IG.displayName=EG;var H8="DialogPortal",[tIe,CG]=pG(H8,{forceMount:void 0}),BG=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:A}=e,i=hc(H8,t);return p.jsx(tIe,{scope:t,forceMount:n,children:b.Children.map(r,a=>p.jsx(hs,{present:n||i.open,children:p.jsx(Mg,{asChild:!0,container:A,children:a})}))})};BG.displayName=H8;var fb="DialogOverlay",yG=b.forwardRef((e,t)=>{const n=CG(fb,e.__scopeDialog),{forceMount:r=n.forceMount,...A}=e,i=hc(fb,e.__scopeDialog);return i.modal?p.jsx(hs,{present:r||i.open,children:p.jsx(rIe,{...A,ref:t})}):null});yG.displayName=fb;var nIe=Uo("DialogOverlay.RemoveScroll"),rIe=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,A=hc(fb,n);return p.jsx(zE,{as:nIe,allowPinchZoom:!0,shards:[A.contentRef],children:p.jsx(YE.div,{"data-state":z8(A.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fg="DialogContent",vG=b.forwardRef((e,t)=>{const n=CG(Fg,e.__scopeDialog),{forceMount:r=n.forceMount,...A}=e,i=hc(Fg,e.__scopeDialog);return p.jsx(hs,{present:r||i.open,children:i.modal?p.jsx(oIe,{...A,ref:t}):p.jsx(iIe,{...A,ref:t})})});vG.displayName=Fg;var oIe=b.forwardRef((e,t)=>{const n=hc(Fg,e.__scopeDialog),r=b.useRef(null),A=ir(t,n.contentRef,r);return b.useEffect(()=>{const i=r.current;if(i)return ub(i)},[]),p.jsx(bG,{...e,ref:A,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vt(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Vt(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&i.preventDefault()}),onFocusOutside:Vt(e.onFocusOutside,i=>i.preventDefault())})}),iIe=b.forwardRef((e,t)=>{const n=hc(Fg,e.__scopeDialog),r=b.useRef(!1),A=b.useRef(!1);return p.jsx(bG,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||((c=n.triggerRef.current)==null||c.focus()),i.preventDefault()),r.current=!1,A.current=!1},onInteractOutside:i=>{var c,f;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(A.current=!0));const a=i.target;(f=n.triggerRef.current)!=null&&f.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&A.current&&i.preventDefault()}})}),bG=b.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:A,onCloseAutoFocus:i,...a}=e,c=hc(Fg,n),f=b.useRef(null),h=ir(t,f);return rb(),p.jsxs(p.Fragment,{children:[p.jsx(HE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:A,onUnmountAutoFocus:i,children:p.jsx(pp,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":z8(c.open),...a,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(AIe,{titleId:c.titleId}),p.jsx(aIe,{contentRef:f,descriptionId:c.descriptionId})]})]})}),Y8="DialogTitle",QG=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,A=hc(Y8,n);return p.jsx(YE.h2,{id:A.titleId,...r,ref:t})});QG.displayName=Y8;var wG="DialogDescription",xG=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,A=hc(wG,n);return p.jsx(YE.p,{id:A.descriptionId,...r,ref:t})});xG.displayName=wG;var _G="DialogClose",kG=b.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,A=hc(_G,n);return p.jsx(YE.button,{type:"button",...r,ref:t,onClick:Vt(e.onClick,()=>A.onOpenChange(!1))})});kG.displayName=_G;function z8(e){return e?"open":"closed"}var SG="DialogTitleWarning",[nyt,DG]=Mme(SG,{contentName:Fg,titleName:Y8,docsSlug:"dialog"}),AIe=({titleId:e})=>{const t=DG(SG),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},sIe="DialogDescriptionWarning",aIe=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${DG(sIe).contentName}}.`;return b.useEffect(()=>{var A;const r=(A=e.current)==null?void 0:A.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},RG=mG,lIe=IG,TG=BG,MG=yG,FG=vG,cIe=QG,uIe=xG,dIe=kG,NG={exports:{}},jG={};/** -* @license React -* use-sync-external-store-shim.production.js -* -* Copyright (c) Meta Platforms, Inc. and affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var Bp=b;function fIe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gIe=typeof Object.is=="function"?Object.is:fIe,hIe=Bp.useState,pIe=Bp.useEffect,mIe=Bp.useLayoutEffect,EIe=Bp.useDebugValue;function IIe(e,t){var n=t(),r=hIe({inst:{value:n,getSnapshot:t}}),A=r[0].inst,i=r[1];return mIe(function(){A.value=n,A.getSnapshot=t,J8(A)&&i({inst:A})},[e,n,t]),pIe(function(){return J8(A)&&i({inst:A}),e(function(){J8(A)&&i({inst:A})})},[e]),EIe(n),n}function J8(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gIe(e,n)}catch{return!0}}function CIe(e,t){return t()}var BIe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?CIe:IIe;jG.useSyncExternalStore=Bp.useSyncExternalStore!==void 0?Bp.useSyncExternalStore:BIe,NG.exports=jG;var yIe=NG.exports;function W8(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Z8(e){const[t,n]=b.useState(void 0);return qA(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(A=>{if(!Array.isArray(A)||!A.length)return;const i=A[0];let a,c;if("borderBoxSize"in i){const f=i.borderBoxSize,h=Array.isArray(f)?f[0]:f;a=h.inlineSize,c=h.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const vIe=["top","right","bottom","left"],Vd=Math.min,Pa=Math.max,gb=Math.round,hb=Math.floor,hu=e=>({x:e,y:e}),bIe={left:"right",right:"left",bottom:"top",top:"bottom"},QIe={start:"end",end:"start"};function X8(e,t,n){return Pa(e,Vd(t,n))}function D0(e,t){return typeof e=="function"?e(t):e}function R0(e){return e.split("-")[0]}function yp(e){return e.split("-")[1]}function K8(e){return e==="x"?"y":"x"}function V8(e){return e==="y"?"height":"width"}const wIe=new Set(["top","bottom"]);function pu(e){return wIe.has(R0(e))?"y":"x"}function q8(e){return K8(pu(e))}function xIe(e,t,n){n===void 0&&(n=!1);const r=yp(e),A=q8(e),i=V8(A);let a=A==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=pb(a)),[a,pb(a)]}function _Ie(e){const t=pb(e);return[$8(e),t,$8(t)]}function $8(e){return e.replace(/start|end/g,t=>QIe[t])}const OG=["left","right"],LG=["right","left"],kIe=["top","bottom"],SIe=["bottom","top"];function DIe(e,t,n){switch(e){case"top":case"bottom":return n?t?LG:OG:t?OG:LG;case"left":case"right":return t?kIe:SIe;default:return[]}}function RIe(e,t,n,r){const A=yp(e);let i=DIe(R0(e),n==="start",r);return A&&(i=i.map(a=>a+"-"+A),t&&(i=i.concat(i.map($8)))),i}function pb(e){return e.replace(/left|right|bottom|top/g,t=>bIe[t])}function TIe(e){return{top:0,right:0,bottom:0,left:0,...e}}function PG(e){return typeof e!="number"?TIe(e):{top:e,right:e,bottom:e,left:e}}function mb(e){const{x:t,y:n,width:r,height:A}=e;return{width:r,height:A,top:n,left:t,right:t+r,bottom:n+A,x:t,y:n}}function UG(e,t,n){let{reference:r,floating:A}=e;const i=pu(t),a=q8(t),c=V8(a),f=R0(t),h=i==="y",m=r.x+r.width/2-A.width/2,I=r.y+r.height/2-A.height/2,v=r[c]/2-A[c]/2;let k;switch(f){case"top":k={x:m,y:r.y-A.height};break;case"bottom":k={x:m,y:r.y+r.height};break;case"right":k={x:r.x+r.width,y:I};break;case"left":k={x:r.x-A.width,y:I};break;default:k={x:r.x,y:r.y}}switch(yp(t)){case"start":k[a]-=v*(n&&h?-1:1);break;case"end":k[a]+=v*(n&&h?-1:1);break}return k}const MIe=async(e,t,n)=>{const{placement:r="bottom",strategy:A="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),f=await(a.isRTL==null?void 0:a.isRTL(t));let h=await a.getElementRects({reference:e,floating:t,strategy:A}),{x:m,y:I}=UG(h,r,f),v=r,k={},D=0;for(let R=0;R({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:A,rects:i,platform:a,elements:c,middlewareData:f}=t,{element:h,padding:m=0}=D0(e,t)||{};if(h==null)return{};const I=PG(m),v={x:n,y:r},k=q8(A),D=V8(k),R=await a.getDimensions(h),F=k==="y",N=F?"top":"left",T=F?"bottom":"right",P=F?"clientHeight":"clientWidth",G=i.reference[D]+i.reference[k]-v[k]-i.floating[D],Y=v[k]-i.reference[k],z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(h));let Z=z?z[P]:0;(!Z||!await(a.isElement==null?void 0:a.isElement(z)))&&(Z=c.floating[P]||i.floating[D]);const K=G/2-Y/2,re=Z/2-R[D]/2-1,V=Vd(I[N],re),oe=Vd(I[T],re),Be=V,he=Z-R[D]-oe,de=Z/2-R[D]/2+K,me=X8(Be,de,he),Ae=!f.arrow&&yp(A)!=null&&de!==me&&i.reference[D]/2-(dede<=0)){var oe,Be;const de=(((oe=i.flip)==null?void 0:oe.index)||0)+1,me=Z[de];if(me&&(!(I==="alignment"&&T!==pu(me))||V.every(Ce=>pu(Ce.placement)===T?Ce.overflows[0]>0:!0)))return{data:{index:de,overflows:V},reset:{placement:me}};let Ae=(Be=V.filter(Ce=>Ce.overflows[0]<=0).sort((Ce,ae)=>Ce.overflows[1]-ae.overflows[1])[0])==null?void 0:Be.placement;if(!Ae)switch(k){case"bestFit":{var he;const Ce=(he=V.filter(ae=>{if(z){const fe=pu(ae.placement);return fe===T||fe==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(fe=>fe>0).reduce((fe,ye)=>fe+ye,0)]).sort((ae,fe)=>ae[1]-fe[1])[0])==null?void 0:he[0];Ce&&(Ae=Ce);break}case"initialPlacement":Ae=c;break}if(A!==Ae)return{reset:{placement:Ae}}}return{}}}};function GG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HG(e){return vIe.some(t=>e[t]>=0)}const jIe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...A}=D0(e,t);switch(r){case"referenceHidden":{const i=await JE(t,{...A,elementContext:"reference"}),a=GG(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:HG(a)}}}case"escaped":{const i=await JE(t,{...A,altBoundary:!0}),a=GG(i,n.floating);return{data:{escapedOffsets:a,escaped:HG(a)}}}default:return{}}}}},YG=new Set(["left","top"]);async function OIe(e,t){const{placement:n,platform:r,elements:A}=e,i=await(r.isRTL==null?void 0:r.isRTL(A.floating)),a=R0(n),c=yp(n),f=pu(n)==="y",h=YG.has(a)?-1:1,m=i&&f?-1:1,I=D0(t,e);let{mainAxis:v,crossAxis:k,alignmentAxis:D}=typeof I=="number"?{mainAxis:I,crossAxis:0,alignmentAxis:null}:{mainAxis:I.mainAxis||0,crossAxis:I.crossAxis||0,alignmentAxis:I.alignmentAxis};return c&&typeof D=="number"&&(k=c==="end"?D*-1:D),f?{x:k*m,y:v*h}:{x:v*h,y:k*m}}const LIe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:A,y:i,placement:a,middlewareData:c}=t,f=await OIe(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:A+f.x,y:i+f.y,data:{...f,placement:a}}}}},PIe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:A}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:F=>{let{x:N,y:T}=F;return{x:N,y:T}}},...f}=D0(e,t),h={x:n,y:r},m=await JE(t,f),I=pu(R0(A)),v=K8(I);let k=h[v],D=h[I];if(i){const F=v==="y"?"top":"left",N=v==="y"?"bottom":"right",T=k+m[F],P=k-m[N];k=X8(T,k,P)}if(a){const F=I==="y"?"top":"left",N=I==="y"?"bottom":"right",T=D+m[F],P=D-m[N];D=X8(T,D,P)}const R=c.fn({...t,[v]:k,[I]:D});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[v]:i,[I]:a}}}}}},UIe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:A,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:f=!0,crossAxis:h=!0}=D0(e,t),m={x:n,y:r},I=pu(A),v=K8(I);let k=m[v],D=m[I];const R=D0(c,t),F=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(f){const P=v==="y"?"height":"width",G=i.reference[v]-i.floating[P]+F.mainAxis,Y=i.reference[v]+i.reference[P]-F.mainAxis;kY&&(k=Y)}if(h){var N,T;const P=v==="y"?"width":"height",G=YG.has(R0(A)),Y=i.reference[I]-i.floating[P]+(G&&((N=a.offset)==null?void 0:N[I])||0)+(G?0:F.crossAxis),z=i.reference[I]+i.reference[P]+(G?0:((T=a.offset)==null?void 0:T[I])||0)-(G?F.crossAxis:0);Dz&&(D=z)}return{[v]:k,[I]:D}}}},GIe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:A,rects:i,platform:a,elements:c}=t,{apply:f=()=>{},...h}=D0(e,t),m=await JE(t,h),I=R0(A),v=yp(A),k=pu(A)==="y",{width:D,height:R}=i.floating;let F,N;I==="top"||I==="bottom"?(F=I,N=v===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(N=I,F=v==="end"?"top":"bottom");const T=R-m.top-m.bottom,P=D-m.left-m.right,G=Vd(R-m[F],T),Y=Vd(D-m[N],P),z=!t.middlewareData.shift;let Z=G,K=Y;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(K=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Z=T),z&&!v){const V=Pa(m.left,0),oe=Pa(m.right,0),Be=Pa(m.top,0),he=Pa(m.bottom,0);k?K=D-2*(V!==0||oe!==0?V+oe:Pa(m.left,m.right)):Z=R-2*(Be!==0||he!==0?Be+he:Pa(m.top,m.bottom))}await f({...t,availableWidth:K,availableHeight:Z});const re=await a.getDimensions(c.floating);return D!==re.width||R!==re.height?{reset:{rects:!0}}:{}}}};function Eb(){return typeof window<"u"}function vp(e){return eS(e)?(e.nodeName||"").toLowerCase():"#document"}function Ua(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mu(e){var t;return(t=(eS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eS(e){return Eb()?e instanceof Node||e instanceof Ua(e).Node:!1}function Ps(e){return Eb()?e instanceof Element||e instanceof Ua(e).Element:!1}function Eu(e){return Eb()?e instanceof HTMLElement||e instanceof Ua(e).HTMLElement:!1}function tS(e){return!Eb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ua(e).ShadowRoot}const HIe=new Set(["inline","contents"]);function WE(e){const{overflow:t,overflowX:n,overflowY:r,display:A}=pc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!HIe.has(A)}const YIe=new Set(["table","td","th"]);function zIe(e){return YIe.has(vp(e))}const JIe=[":popover-open",":modal"];function Ib(e){return JIe.some(t=>{try{return e.matches(t)}catch{return!1}})}const WIe=["transform","translate","scale","rotate","perspective"],ZIe=["transform","translate","scale","rotate","perspective","filter"],XIe=["paint","layout","strict","content"];function nS(e){const t=rS(),n=Ps(e)?pc(e):e;return WIe.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ZIe.some(r=>(n.willChange||"").includes(r))||XIe.some(r=>(n.contain||"").includes(r))}function KIe(e){let t=qd(e);for(;Eu(t)&&!bp(t);){if(nS(t))return t;if(Ib(t))return null;t=qd(t)}return null}function rS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const VIe=new Set(["html","body","#document"]);function bp(e){return VIe.has(vp(e))}function pc(e){return Ua(e).getComputedStyle(e)}function Cb(e){return Ps(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qd(e){if(vp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tS(e)&&e.host||mu(e);return tS(t)?t.host:t}function zG(e){const t=qd(e);return bp(t)?e.ownerDocument?e.ownerDocument.body:e.body:Eu(t)&&WE(t)?t:zG(t)}function ZE(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const A=zG(e),i=A===((r=e.ownerDocument)==null?void 0:r.body),a=Ua(A);if(i){const c=oS(a);return t.concat(a,a.visualViewport||[],WE(A)?A:[],c&&n?ZE(c):[])}return t.concat(A,ZE(A,[],n))}function oS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function JG(e){const t=pc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const A=Eu(e),i=A?e.offsetWidth:n,a=A?e.offsetHeight:r,c=gb(n)!==i||gb(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function iS(e){return Ps(e)?e:e.contextElement}function Qp(e){const t=iS(e);if(!Eu(t))return hu(1);const n=t.getBoundingClientRect(),{width:r,height:A,$:i}=JG(t);let a=(i?gb(n.width):n.width)/r,c=(i?gb(n.height):n.height)/A;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const qIe=hu(0);function WG(e){const t=Ua(e);return!rS()||!t.visualViewport?qIe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $Ie(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ua(e)?!1:t}function Ng(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const A=e.getBoundingClientRect(),i=iS(e);let a=hu(1);t&&(r?Ps(r)&&(a=Qp(r)):a=Qp(e));const c=$Ie(i,n,r)?WG(i):hu(0);let f=(A.left+c.x)/a.x,h=(A.top+c.y)/a.y,m=A.width/a.x,I=A.height/a.y;if(i){const v=Ua(i),k=r&&Ps(r)?Ua(r):r;let D=v,R=oS(D);for(;R&&r&&k!==D;){const F=Qp(R),N=R.getBoundingClientRect(),T=pc(R),P=N.left+(R.clientLeft+parseFloat(T.paddingLeft))*F.x,G=N.top+(R.clientTop+parseFloat(T.paddingTop))*F.y;f*=F.x,h*=F.y,m*=F.x,I*=F.y,f+=P,h+=G,D=Ua(R),R=oS(D)}}return mb({width:m,height:I,x:f,y:h})}function Bb(e,t){const n=Cb(e).scrollLeft;return t?t.left+n:Ng(mu(e)).left+n}function ZG(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Bb(e,n),A=n.top+t.scrollTop;return{x:r,y:A}}function eCe(e){let{elements:t,rect:n,offsetParent:r,strategy:A}=e;const i=A==="fixed",a=mu(r),c=t?Ib(t.floating):!1;if(r===a||c&&i)return n;let f={scrollLeft:0,scrollTop:0},h=hu(1);const m=hu(0),I=Eu(r);if((I||!I&&!i)&&((vp(r)!=="body"||WE(a))&&(f=Cb(r)),Eu(r))){const k=Ng(r);h=Qp(r),m.x=k.x+r.clientLeft,m.y=k.y+r.clientTop}const v=a&&!I&&!i?ZG(a,f):hu(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+m.x+v.x,y:n.y*h.y-f.scrollTop*h.y+m.y+v.y}}function tCe(e){return Array.from(e.getClientRects())}function nCe(e){const t=mu(e),n=Cb(e),r=e.ownerDocument.body,A=Pa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Pa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Bb(e);const c=-n.scrollTop;return pc(r).direction==="rtl"&&(a+=Pa(t.clientWidth,r.clientWidth)-A),{width:A,height:i,x:a,y:c}}const XG=25;function rCe(e,t){const n=Ua(e),r=mu(e),A=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,f=0;if(A){i=A.width,a=A.height;const m=rS();(!m||m&&t==="fixed")&&(c=A.offsetLeft,f=A.offsetTop)}const h=Bb(r);if(h<=0){const m=r.ownerDocument,I=m.body,v=getComputedStyle(I),k=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,D=Math.abs(r.clientWidth-I.clientWidth-k);D<=XG&&(i-=D)}else h<=XG&&(i+=h);return{width:i,height:a,x:c,y:f}}const oCe=new Set(["absolute","fixed"]);function iCe(e,t){const n=Ng(e,!0,t==="fixed"),r=n.top+e.clientTop,A=n.left+e.clientLeft,i=Eu(e)?Qp(e):hu(1),a=e.clientWidth*i.x,c=e.clientHeight*i.y,f=A*i.x,h=r*i.y;return{width:a,height:c,x:f,y:h}}function KG(e,t,n){let r;if(t==="viewport")r=rCe(e,n);else if(t==="document")r=nCe(mu(e));else if(Ps(t))r=iCe(t,n);else{const A=WG(e);r={x:t.x-A.x,y:t.y-A.y,width:t.width,height:t.height}}return mb(r)}function VG(e,t){const n=qd(e);return n===t||!Ps(n)||bp(n)?!1:pc(n).position==="fixed"||VG(n,t)}function ACe(e,t){const n=t.get(e);if(n)return n;let r=ZE(e,[],!1).filter(c=>Ps(c)&&vp(c)!=="body"),A=null;const i=pc(e).position==="fixed";let a=i?qd(e):e;for(;Ps(a)&&!bp(a);){const c=pc(a),f=nS(a);!f&&c.position==="fixed"&&(A=null),(i?!f&&!A:!f&&c.position==="static"&&A&&oCe.has(A.position)||WE(a)&&!f&&VG(e,a))?r=r.filter(h=>h!==a):A=c,a=qd(a)}return t.set(e,r),r}function sCe(e){let{element:t,boundary:n,rootBoundary:r,strategy:A}=e;const i=[...n==="clippingAncestors"?Ib(t)?[]:ACe(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((f,h)=>{const m=KG(t,h,A);return f.top=Pa(m.top,f.top),f.right=Vd(m.right,f.right),f.bottom=Vd(m.bottom,f.bottom),f.left=Pa(m.left,f.left),f},KG(t,a,A));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function aCe(e){const{width:t,height:n}=JG(e);return{width:t,height:n}}function lCe(e,t,n){const r=Eu(t),A=mu(t),i=n==="fixed",a=Ng(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const f=hu(0);function h(){f.x=Bb(A)}if(r||!r&&!i)if((vp(t)!=="body"||WE(A))&&(c=Cb(t)),r){const k=Ng(t,!0,i,t);f.x=k.x+t.clientLeft,f.y=k.y+t.clientTop}else A&&h();i&&!r&&A&&h();const m=A&&!r&&!i?ZG(A,c):hu(0),I=a.left+c.scrollLeft-f.x-m.x,v=a.top+c.scrollTop-f.y-m.y;return{x:I,y:v,width:a.width,height:a.height}}function AS(e){return pc(e).position==="static"}function qG(e,t){if(!Eu(e)||pc(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return mu(e)===n&&(n=n.ownerDocument.body),n}function $G(e,t){const n=Ua(e);if(Ib(e))return n;if(!Eu(e)){let A=qd(e);for(;A&&!bp(A);){if(Ps(A)&&!AS(A))return A;A=qd(A)}return n}let r=qG(e,t);for(;r&&zIe(r)&&AS(r);)r=qG(r,t);return r&&bp(r)&&AS(r)&&!nS(r)?n:r||KIe(e)||n}const cCe=async function(e){const t=this.getOffsetParent||$G,n=this.getDimensions,r=await n(e.floating);return{reference:lCe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uCe(e){return pc(e).direction==="rtl"}const dCe={convertOffsetParentRelativeRectToViewportRelativeRect:eCe,getDocumentElement:mu,getClippingRect:sCe,getOffsetParent:$G,getElementRects:cCe,getClientRects:tCe,getDimensions:aCe,getScale:Qp,isElement:Ps,isRTL:uCe};function eH(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fCe(e,t){let n=null,r;const A=mu(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();const h=e.getBoundingClientRect(),{left:m,top:I,width:v,height:k}=h;if(c||t(),!v||!k)return;const D=hb(I),R=hb(A.clientWidth-(m+v)),F=hb(A.clientHeight-(I+k)),N=hb(m),T={rootMargin:-D+"px "+-R+"px "+-F+"px "+-N+"px",threshold:Pa(0,Vd(1,f))||1};let P=!0;function G(Y){const z=Y[0].intersectionRatio;if(z!==f){if(!P)return a();z?a(!1,z):r=setTimeout(()=>{a(!1,1e-7)},1e3)}z===1&&!eH(h,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(G,{...T,root:A.ownerDocument})}catch{n=new IntersectionObserver(G,T)}n.observe(e)}return a(!0),i}function tH(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:A=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=iS(e),m=A||i?[...h?ZE(h):[],...ZE(t)]:[];m.forEach(N=>{A&&N.addEventListener("scroll",n,{passive:!0}),i&&N.addEventListener("resize",n)});const I=h&&c?fCe(h,n):null;let v=-1,k=null;a&&(k=new ResizeObserver(N=>{let[T]=N;T&&T.target===h&&k&&(k.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var P;(P=k)==null||P.observe(t)})),n()}),h&&!f&&k.observe(h),k.observe(t));let D,R=f?Ng(e):null;f&&F();function F(){const N=Ng(e);R&&!eH(R,N)&&n(),R=N,D=requestAnimationFrame(F)}return n(),()=>{var N;m.forEach(T=>{A&&T.removeEventListener("scroll",n),i&&T.removeEventListener("resize",n)}),I==null||I(),(N=k)==null||N.disconnect(),k=null,f&&cancelAnimationFrame(D)}}const gCe=LIe,hCe=PIe,pCe=NIe,mCe=GIe,ECe=jIe,nH=FIe,ICe=UIe,CCe=(e,t,n)=>{const r=new Map,A={platform:dCe,...n},i={...A.platform,_c:r};return MIe(e,t,{...A,platform:i})};var BCe=typeof document<"u",yCe=function(){},yb=BCe?b.useLayoutEffect:yCe;function vb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,A;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vb(e[r],t[r]))return!1;return!0}if(A=Object.keys(e),n=A.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,A[r]))return!1;for(r=n;r--!==0;){const i=A[r];if(!(i==="_owner"&&e.$$typeof)&&!vb(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function rH(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oH(e,t){const n=rH(e);return Math.round(t*n)/n}function sS(e){const t=b.useRef(e);return yb(()=>{t.current=e}),t}function iH(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:A,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:f,open:h}=e,[m,I]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,k]=b.useState(r);vb(v,r)||k(r);const[D,R]=b.useState(null),[F,N]=b.useState(null),T=b.useCallback(ae=>{ae!==z.current&&(z.current=ae,R(ae))},[]),P=b.useCallback(ae=>{ae!==Z.current&&(Z.current=ae,N(ae))},[]),G=i||D,Y=a||F,z=b.useRef(null),Z=b.useRef(null),K=b.useRef(m),re=f!=null,V=sS(f),oe=sS(A),Be=sS(h),he=b.useCallback(()=>{if(!z.current||!Z.current)return;const ae={placement:t,strategy:n,middleware:v};oe.current&&(ae.platform=oe.current),CCe(z.current,Z.current,ae).then(fe=>{const ye={...fe,isPositioned:Be.current!==!1};de.current&&!vb(K.current,ye)&&(K.current=ye,fu.flushSync(()=>{I(ye)}))})},[v,t,n,oe,Be]);yb(()=>{h===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,I(ae=>({...ae,isPositioned:!1})))},[h]);const de=b.useRef(!1);yb(()=>(de.current=!0,()=>{de.current=!1}),[]),yb(()=>{if(G&&(z.current=G),Y&&(Z.current=Y),G&&Y){if(V.current)return V.current(G,Y,he);he()}},[G,Y,he,V,re]);const me=b.useMemo(()=>({reference:z,floating:Z,setReference:T,setFloating:P}),[T,P]),Ae=b.useMemo(()=>({reference:G,floating:Y}),[G,Y]),Ce=b.useMemo(()=>{const ae={position:n,left:0,top:0};if(!Ae.floating)return ae;const fe=oH(Ae.floating,m.x),ye=oH(Ae.floating,m.y);return c?{...ae,transform:"translate("+fe+"px, "+ye+"px)",...rH(Ae.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:ye}},[n,c,Ae.floating,m.x,m.y]);return b.useMemo(()=>({...m,update:he,refs:me,elements:Ae,floatingStyles:Ce}),[m,he,me,Ae,Ce])}const vCe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:A}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nH({element:r.current,padding:A}).fn(n):{}:r?nH({element:r,padding:A}).fn(n):{}}}},AH=(e,t)=>({...gCe(e),options:[e,t]}),bCe=(e,t)=>({...hCe(e),options:[e,t]}),QCe=(e,t)=>({...ICe(e),options:[e,t]}),wCe=(e,t)=>({...pCe(e),options:[e,t]}),xCe=(e,t)=>({...mCe(e),options:[e,t]}),_Ce=(e,t)=>({...ECe(e),options:[e,t]}),kCe=(e,t)=>({...vCe(e),options:[e,t]});var SCe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],DCe=SCe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),RCe="Arrow",sH=b.forwardRef((e,t)=>{const{children:n,width:r=10,height:A=5,...i}=e;return p.jsx(DCe.svg,{...i,ref:t,width:r,height:A,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});sH.displayName=RCe;var TCe=sH,MCe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aH=MCe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),aS="Popper",[lH,$d]=la(aS),[FCe,cH]=lH(aS),uH=e=>{const{__scopePopper:t,children:n}=e,[r,A]=b.useState(null);return p.jsx(FCe,{scope:t,anchor:r,onAnchorChange:A,children:n})};uH.displayName=aS;var dH="PopperAnchor",fH=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...A}=e,i=cH(dH,n),a=b.useRef(null),c=ir(t,a),f=b.useRef(null);return b.useEffect(()=>{const h=f.current;f.current=(r==null?void 0:r.current)||a.current,h!==f.current&&i.onAnchorChange(f.current)}),r?null:p.jsx(aH.div,{...A,ref:c})});fH.displayName=dH;var lS="PopperContent",[NCe,jCe]=lH(lS),gH=b.forwardRef((e,t)=>{var De,Se,Qe,Ye,At,Je;const{__scopePopper:n,side:r="bottom",sideOffset:A=0,align:i="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:I="partial",hideWhenDetached:v=!1,updatePositionStrategy:k="optimized",onPlaced:D,...R}=e,F=cH(lS,n),[N,T]=b.useState(null),P=ir(t,Nt=>T(Nt)),[G,Y]=b.useState(null),z=Z8(G),Z=(z==null?void 0:z.width)??0,K=(z==null?void 0:z.height)??0,re=r+(i!=="center"?"-"+i:""),V=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},oe=Array.isArray(h)?h:[h],Be=oe.length>0,he={padding:V,boundary:oe.filter(LCe),altBoundary:Be},{refs:de,floatingStyles:me,placement:Ae,isPositioned:Ce,middlewareData:ae}=iH({strategy:"fixed",placement:re,whileElementsMounted:(...Nt)=>tH(...Nt,{animationFrame:k==="always"}),elements:{reference:F.anchor},middleware:[AH({mainAxis:A+K,alignmentAxis:a}),f&&bCe({mainAxis:!0,crossAxis:!1,limiter:I==="partial"?QCe():void 0,...he}),f&&wCe({...he}),xCe({...he,apply:({elements:Nt,rects:jt,availableWidth:bt,availableHeight:wt})=>{const{width:se,height:$t}=jt.reference,Sn=Nt.floating.style;Sn.setProperty("--radix-popper-available-width",`${bt}px`),Sn.setProperty("--radix-popper-available-height",`${wt}px`),Sn.setProperty("--radix-popper-anchor-width",`${se}px`),Sn.setProperty("--radix-popper-anchor-height",`${$t}px`)}}),G&&kCe({element:G,padding:c}),PCe({arrowWidth:Z,arrowHeight:K}),v&&_Ce({strategy:"referenceHidden",...he})]}),[fe,ye]=mH(Ae),Oe=es(D);qA(()=>{Ce&&(Oe==null||Oe())},[Ce,Oe]);const Ie=(De=ae.arrow)==null?void 0:De.x,Fe=(Se=ae.arrow)==null?void 0:Se.y,qe=((Qe=ae.arrow)==null?void 0:Qe.centerOffset)!==0,[Ze,Te]=b.useState();return qA(()=>{N&&Te(window.getComputedStyle(N).zIndex)},[N]),p.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:Ce?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ze,"--radix-popper-transform-origin":[(Ye=ae.transformOrigin)==null?void 0:Ye.x,(At=ae.transformOrigin)==null?void 0:At.y].join(" "),...((Je=ae.hide)==null?void 0:Je.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(NCe,{scope:n,placedSide:fe,onArrowChange:Y,arrowX:Ie,arrowY:Fe,shouldHideArrow:qe,children:p.jsx(aH.div,{"data-side":fe,"data-align":ye,...R,ref:P,style:{...R.style,animation:Ce?void 0:"none"}})})})});gH.displayName=lS;var hH="PopperArrow",OCe={top:"bottom",right:"left",bottom:"top",left:"right"},pH=b.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,A=jCe(hH,n),i=OCe[A.placedSide];return p.jsx("span",{ref:A.onArrowChange,style:{position:"absolute",left:A.arrowX,top:A.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[A.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[A.placedSide],visibility:A.shouldHideArrow?"hidden":void 0},children:p.jsx(TCe,{...r,ref:t,style:{...r.style,display:"block"}})})});pH.displayName=hH;function LCe(e){return e!==null}var PCe=e=>({name:"transformOrigin",options:e,fn(t){var R,F,N;const{placement:n,rects:r,middlewareData:A}=t,i=((R=A.arrow)==null?void 0:R.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[f,h]=mH(n),m={start:"0%",center:"50%",end:"100%"}[h],I=(((F=A.arrow)==null?void 0:F.x)??0)+a/2,v=(((N=A.arrow)==null?void 0:N.y)??0)+c/2;let k="",D="";return f==="bottom"?(k=i?m:`${I}px`,D=`${-c}px`):f==="top"?(k=i?m:`${I}px`,D=`${r.floating.height+c}px`):f==="right"?(k=`${-c}px`,D=i?m:`${v}px`):f==="left"&&(k=`${r.floating.width+c}px`,D=i?m:`${v}px`),{data:{x:k,y:D}}}});function mH(e){const[t,n="center"]=e.split("-");return[t,n]}var bb=uH,XE=fH,Qb=gH,wb=pH,UCe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],KE=UCe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function GCe(e,t){e&&fu.flushSync(()=>e.dispatchEvent(t))}var HCe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],EH=HCe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),cS="rovingFocusGroup.onEntryFocus",YCe={bubbles:!1,cancelable:!0},VE="RovingFocusGroup",[uS,IH,zCe]=tb(VE),[JCe,xb]=la(VE,[zCe]),[WCe,ZCe]=JCe(VE),CH=b.forwardRef((e,t)=>p.jsx(uS.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(uS.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(XCe,{...e,ref:t})})}));CH.displayName=VE;var XCe=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:A=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...I}=e,v=b.useRef(null),k=ir(t,v),D=hp(i),[R,F]=yl({prop:a,defaultProp:c??null,onChange:f,caller:VE}),[N,T]=b.useState(!1),P=es(h),G=IH(n),Y=b.useRef(!1),[z,Z]=b.useState(0);return b.useEffect(()=>{const K=v.current;if(K)return K.addEventListener(cS,P),()=>K.removeEventListener(cS,P)},[P]),p.jsx(WCe,{scope:n,orientation:r,dir:D,loop:A,currentTabStopId:R,onItemFocus:b.useCallback(K=>F(K),[F]),onItemShiftTab:b.useCallback(()=>T(!0),[]),onFocusableItemAdd:b.useCallback(()=>Z(K=>K+1),[]),onFocusableItemRemove:b.useCallback(()=>Z(K=>K-1),[]),children:p.jsx(EH.div,{tabIndex:N||z===0?-1:0,"data-orientation":r,...I,ref:k,style:{outline:"none",...e.style},onMouseDown:Vt(e.onMouseDown,()=>{Y.current=!0}),onFocus:Vt(e.onFocus,K=>{const re=!Y.current;if(K.target===K.currentTarget&&re&&!N){const V=new CustomEvent(cS,YCe);if(K.currentTarget.dispatchEvent(V),!V.defaultPrevented){const oe=G().filter(me=>me.focusable),Be=oe.find(me=>me.active),he=oe.find(me=>me.id===R),de=[Be,he,...oe].filter(Boolean).map(me=>me.ref.current);vH(de,m)}}Y.current=!1}),onBlur:Vt(e.onBlur,()=>T(!1))})})}),BH="RovingFocusGroupItem",yH=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:A=!1,tabStopId:i,children:a,...c}=e,f=$A(),h=i||f,m=ZCe(BH,n),I=m.currentTabStopId===h,v=IH(n),{onFocusableItemAdd:k,onFocusableItemRemove:D,currentTabStopId:R}=m;return b.useEffect(()=>{if(r)return k(),()=>D()},[r,k,D]),p.jsx(uS.ItemSlot,{scope:n,id:h,focusable:r,active:A,children:p.jsx(EH.span,{tabIndex:I?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:Vt(e.onMouseDown,F=>{r?m.onItemFocus(h):F.preventDefault()}),onFocus:Vt(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:Vt(e.onKeyDown,F=>{if(F.key==="Tab"&&F.shiftKey){m.onItemShiftTab();return}if(F.target!==F.currentTarget)return;const N=qCe(F,m.orientation,m.dir);if(N!==void 0){if(F.metaKey||F.ctrlKey||F.altKey||F.shiftKey)return;F.preventDefault();let T=v().filter(P=>P.focusable).map(P=>P.ref.current);if(N==="last")T.reverse();else if(N==="prev"||N==="next"){N==="prev"&&T.reverse();const P=T.indexOf(F.currentTarget);T=m.loop?$Ce(T,P+1):T.slice(P+1)}setTimeout(()=>vH(T))}}),children:typeof a=="function"?a({isCurrentTabStop:I,hasTabStop:R!=null}):a})})});yH.displayName=BH;var KCe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VCe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function qCe(e,t,n){const r=VCe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return KCe[r]}function vH(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $Ce(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bH=CH,QH=yH,dS=["Enter"," "],eBe=["ArrowDown","PageUp","Home"],wH=["ArrowUp","PageDown","End"],tBe=[...eBe,...wH],nBe={ltr:[...dS,"ArrowRight"],rtl:[...dS,"ArrowLeft"]},rBe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qE="Menu",[$E,oBe,iBe]=tb(qE),[jg,xH]=la(qE,[iBe,$d,xb]),_b=$d(),_H=xb(),[ABe,Og]=jg(qE),[sBe,eI]=jg(qE),kH=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:A,onOpenChange:i,modal:a=!0}=e,c=_b(t),[f,h]=b.useState(null),m=b.useRef(!1),I=es(i),v=hp(A);return b.useEffect(()=>{const k=()=>{m.current=!0,document.addEventListener("pointerdown",D,{capture:!0,once:!0}),document.addEventListener("pointermove",D,{capture:!0,once:!0})},D=()=>m.current=!1;return document.addEventListener("keydown",k,{capture:!0}),()=>{document.removeEventListener("keydown",k,{capture:!0}),document.removeEventListener("pointerdown",D,{capture:!0}),document.removeEventListener("pointermove",D,{capture:!0})}},[]),p.jsx(bb,{...c,children:p.jsx(ABe,{scope:t,open:n,onOpenChange:I,content:f,onContentChange:h,children:p.jsx(sBe,{scope:t,onClose:b.useCallback(()=>I(!1),[I]),isUsingKeyboardRef:m,dir:v,modal:a,children:r})})})};kH.displayName=qE;var aBe="MenuAnchor",fS=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,A=_b(n);return p.jsx(XE,{...A,...r,ref:t})});fS.displayName=aBe;var gS="MenuPortal",[lBe,SH]=jg(gS,{forceMount:void 0}),DH=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:A}=e,i=Og(gS,t);return p.jsx(lBe,{scope:t,forceMount:n,children:p.jsx(hs,{present:n||i.open,children:p.jsx(Mg,{asChild:!0,container:A,children:r})})})};DH.displayName=gS;var vl="MenuContent",[cBe,hS]=jg(vl),RH=b.forwardRef((e,t)=>{const n=SH(vl,e.__scopeMenu),{forceMount:r=n.forceMount,...A}=e,i=Og(vl,e.__scopeMenu),a=eI(vl,e.__scopeMenu);return p.jsx($E.Provider,{scope:e.__scopeMenu,children:p.jsx(hs,{present:r||i.open,children:p.jsx($E.Slot,{scope:e.__scopeMenu,children:a.modal?p.jsx(uBe,{...A,ref:t}):p.jsx(dBe,{...A,ref:t})})})})}),uBe=b.forwardRef((e,t)=>{const n=Og(vl,e.__scopeMenu),r=b.useRef(null),A=ir(t,r);return b.useEffect(()=>{const i=r.current;if(i)return ub(i)},[]),p.jsx(pS,{...e,ref:A,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Vt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),dBe=b.forwardRef((e,t)=>{const n=Og(vl,e.__scopeMenu);return p.jsx(pS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),fBe=Uo("MenuContent.ScrollLock"),pS=b.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:A,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:I,onInteractOutside:v,onDismiss:k,disableOutsideScroll:D,...R}=e,F=Og(vl,n),N=eI(vl,n),T=_b(n),P=_H(n),G=oBe(n),[Y,z]=b.useState(null),Z=b.useRef(null),K=ir(t,Z,F.onContentChange),re=b.useRef(0),V=b.useRef(""),oe=b.useRef(0),Be=b.useRef(null),he=b.useRef("right"),de=b.useRef(0),me=D?zE:b.Fragment,Ae=D?{as:fBe,allowPinchZoom:!0}:void 0,Ce=fe=>{var De,Se;const ye=V.current+fe,Oe=G().filter(Qe=>!Qe.disabled),Ie=document.activeElement,Fe=(De=Oe.find(Qe=>Qe.ref.current===Ie))==null?void 0:De.textValue,qe=Oe.map(Qe=>Qe.textValue),Ze=QBe(qe,ye,Fe),Te=(Se=Oe.find(Qe=>Qe.textValue===Ze))==null?void 0:Se.ref.current;(function Qe(Ye){V.current=Ye,window.clearTimeout(re.current),Ye!==""&&(re.current=window.setTimeout(()=>Qe(""),1e3))})(ye),Te&&setTimeout(()=>Te.focus())};b.useEffect(()=>()=>window.clearTimeout(re.current),[]),rb();const ae=b.useCallback(fe=>{var ye,Oe;return he.current===((ye=Be.current)==null?void 0:ye.side)&&xBe(fe,(Oe=Be.current)==null?void 0:Oe.area)},[]);return p.jsx(cBe,{scope:n,searchRef:V,onItemEnter:b.useCallback(fe=>{ae(fe)&&fe.preventDefault()},[ae]),onItemLeave:b.useCallback(fe=>{var ye;ae(fe)||((ye=Z.current)==null||ye.focus(),z(null))},[ae]),onTriggerLeave:b.useCallback(fe=>{ae(fe)&&fe.preventDefault()},[ae]),pointerGraceTimerRef:oe,onPointerGraceIntentChange:b.useCallback(fe=>{Be.current=fe},[]),children:p.jsx(me,{...Ae,children:p.jsx(HE,{asChild:!0,trapped:A,onMountAutoFocus:Vt(i,fe=>{var ye;fe.preventDefault(),(ye=Z.current)==null||ye.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:p.jsx(pp,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:I,onInteractOutside:v,onDismiss:k,children:p.jsx(bH,{asChild:!0,...P,dir:N.dir,orientation:"vertical",loop:r,currentTabStopId:Y,onCurrentTabStopIdChange:z,onEntryFocus:Vt(f,fe=>{N.isUsingKeyboardRef.current||fe.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Qb,{role:"menu","aria-orientation":"vertical","data-state":XH(F.open),"data-radix-menu-content":"",dir:N.dir,...T,...R,ref:K,style:{outline:"none",...R.style},onKeyDown:Vt(R.onKeyDown,fe=>{const ye=fe.target.closest("[data-radix-menu-content]")===fe.currentTarget,Oe=fe.ctrlKey||fe.altKey||fe.metaKey,Ie=fe.key.length===1;ye&&(fe.key==="Tab"&&fe.preventDefault(),!Oe&&Ie&&Ce(fe.key));const Fe=Z.current;if(fe.target!==Fe||!tBe.includes(fe.key))return;fe.preventDefault();const qe=G().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);wH.includes(fe.key)&&qe.reverse(),vBe(qe)}),onBlur:Vt(e.onBlur,fe=>{fe.currentTarget.contains(fe.target)||(window.clearTimeout(re.current),V.current="")}),onPointerMove:Vt(e.onPointerMove,nI(fe=>{const ye=fe.target,Oe=de.current!==fe.clientX;if(fe.currentTarget.contains(ye)&&Oe){const Ie=fe.clientX>de.current?"right":"left";he.current=Ie,de.current=fe.clientX}}))})})})})})})});RH.displayName=vl;var gBe="MenuGroup",mS=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(KE.div,{role:"group",...r,ref:t})});mS.displayName=gBe;var hBe="MenuLabel",TH=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(KE.div,{...r,ref:t})});TH.displayName=hBe;var kb="MenuItem",MH="menu.itemSelect",Sb=b.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...A}=e,i=b.useRef(null),a=eI(kb,e.__scopeMenu),c=hS(kb,e.__scopeMenu),f=ir(t,i),h=b.useRef(!1),m=()=>{const I=i.current;if(!n&&I){const v=new CustomEvent(MH,{bubbles:!0,cancelable:!0});I.addEventListener(MH,k=>r==null?void 0:r(k),{once:!0}),GCe(I,v),v.defaultPrevented?h.current=!1:a.onClose()}};return p.jsx(FH,{...A,ref:f,disabled:n,onClick:Vt(e.onClick,m),onPointerDown:I=>{var v;(v=e.onPointerDown)==null||v.call(e,I),h.current=!0},onPointerUp:Vt(e.onPointerUp,I=>{var v;h.current||((v=I.currentTarget)==null||v.click())}),onKeyDown:Vt(e.onKeyDown,I=>{const v=c.searchRef.current!=="";n||v&&I.key===" "||dS.includes(I.key)&&(I.currentTarget.click(),I.preventDefault())})})});Sb.displayName=kb;var FH=b.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:A,...i}=e,a=hS(kb,n),c=_H(n),f=b.useRef(null),h=ir(t,f),[m,I]=b.useState(!1),[v,k]=b.useState("");return b.useEffect(()=>{const D=f.current;D&&k((D.textContent??"").trim())},[i.children]),p.jsx($E.ItemSlot,{scope:n,disabled:r,textValue:A??v,children:p.jsx(QH,{asChild:!0,...c,focusable:!r,children:p.jsx(KE.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:h,onPointerMove:Vt(e.onPointerMove,nI(D=>{r?a.onItemLeave(D):(a.onItemEnter(D),D.defaultPrevented||D.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Vt(e.onPointerLeave,nI(D=>a.onItemLeave(D))),onFocus:Vt(e.onFocus,()=>I(!0)),onBlur:Vt(e.onBlur,()=>I(!1))})})})}),pBe="MenuCheckboxItem",NH=b.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...A}=e;return p.jsx(UH,{scope:e.__scopeMenu,checked:n,children:p.jsx(Sb,{role:"menuitemcheckbox","aria-checked":Db(n)?"mixed":n,...A,ref:t,"data-state":IS(n),onSelect:Vt(A.onSelect,()=>r==null?void 0:r(Db(n)?!0:!n),{checkForDefaultPrevented:!1})})})});NH.displayName=pBe;var jH="MenuRadioGroup",[mBe,EBe]=jg(jH,{value:void 0,onValueChange:()=>{}}),OH=b.forwardRef((e,t)=>{const{value:n,onValueChange:r,...A}=e,i=es(r);return p.jsx(mBe,{scope:e.__scopeMenu,value:n,onValueChange:i,children:p.jsx(mS,{...A,ref:t})})});OH.displayName=jH;var LH="MenuRadioItem",PH=b.forwardRef((e,t)=>{const{value:n,...r}=e,A=EBe(LH,e.__scopeMenu),i=n===A.value;return p.jsx(UH,{scope:e.__scopeMenu,checked:i,children:p.jsx(Sb,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":IS(i),onSelect:Vt(r.onSelect,()=>{var a;return(a=A.onValueChange)==null?void 0:a.call(A,n)},{checkForDefaultPrevented:!1})})})});PH.displayName=LH;var ES="MenuItemIndicator",[UH,IBe]=jg(ES,{checked:!1}),GH=b.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...A}=e,i=IBe(ES,n);return p.jsx(hs,{present:r||Db(i.checked)||i.checked===!0,children:p.jsx(KE.span,{...A,ref:t,"data-state":IS(i.checked)})})});GH.displayName=ES;var CBe="MenuSeparator",HH=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(KE.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});HH.displayName=CBe;var BBe="MenuArrow",YH=b.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,A=_b(n);return p.jsx(wb,{...A,...r,ref:t})});YH.displayName=BBe;var yBe="MenuSub",[ryt,zH]=jg(yBe),tI="MenuSubTrigger",JH=b.forwardRef((e,t)=>{const n=Og(tI,e.__scopeMenu),r=eI(tI,e.__scopeMenu),A=zH(tI,e.__scopeMenu),i=hS(tI,e.__scopeMenu),a=b.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=i,h={__scopeMenu:e.__scopeMenu},m=b.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return b.useEffect(()=>m,[m]),b.useEffect(()=>{const I=c.current;return()=>{window.clearTimeout(I),f(null)}},[c,f]),p.jsx(fS,{asChild:!0,...h,children:p.jsx(FH,{id:A.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":A.contentId,"data-state":XH(n.open),...e,ref:gc(t,A.onTriggerChange),onClick:I=>{var v;(v=e.onClick)==null||v.call(e,I),!(e.disabled||I.defaultPrevented)&&(I.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Vt(e.onPointerMove,nI(I=>{i.onItemEnter(I),!I.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Vt(e.onPointerLeave,nI(I=>{var k,D;m();const v=(k=n.content)==null?void 0:k.getBoundingClientRect();if(v){const R=(D=n.content)==null?void 0:D.dataset.side,F=R==="right",N=F?-5:5,T=v[F?"left":"right"],P=v[F?"right":"left"];i.onPointerGraceIntentChange({area:[{x:I.clientX+N,y:I.clientY},{x:T,y:v.top},{x:P,y:v.top},{x:P,y:v.bottom},{x:T,y:v.bottom}],side:R}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(I),I.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Vt(e.onKeyDown,I=>{var k;const v=i.searchRef.current!=="";e.disabled||v&&I.key===" "||nBe[r.dir].includes(I.key)&&(n.onOpenChange(!0),(k=n.content)==null||k.focus(),I.preventDefault())})})})});JH.displayName=tI;var WH="MenuSubContent",ZH=b.forwardRef((e,t)=>{const n=SH(vl,e.__scopeMenu),{forceMount:r=n.forceMount,...A}=e,i=Og(vl,e.__scopeMenu),a=eI(vl,e.__scopeMenu),c=zH(WH,e.__scopeMenu),f=b.useRef(null),h=ir(t,f);return p.jsx($E.Provider,{scope:e.__scopeMenu,children:p.jsx(hs,{present:r||i.open,children:p.jsx($E.Slot,{scope:e.__scopeMenu,children:p.jsx(pS,{id:c.contentId,"aria-labelledby":c.triggerId,...A,ref:h,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var I;a.isUsingKeyboardRef.current&&((I=f.current)==null||I.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Vt(e.onFocusOutside,m=>{m.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Vt(e.onEscapeKeyDown,m=>{a.onClose(),m.preventDefault()}),onKeyDown:Vt(e.onKeyDown,m=>{var k;const I=m.currentTarget.contains(m.target),v=rBe[a.dir].includes(m.key);I&&v&&(i.onOpenChange(!1),(k=c.trigger)==null||k.focus(),m.preventDefault())})})})})})});ZH.displayName=WH;function XH(e){return e?"open":"closed"}function Db(e){return e==="indeterminate"}function IS(e){return Db(e)?"indeterminate":e?"checked":"unchecked"}function vBe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function bBe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function QBe(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,A=n?e.indexOf(n):-1;let i=bBe(e,Math.max(A,0));r.length===1&&(i=i.filter(c=>c!==n));const a=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function wBe(e,t){const{x:n,y:r}=e;let A=!1;for(let i=0,a=t.length-1;ir!=v>r&&n<(I-h)*(r-m)/(v-m)+h&&(A=!A)}return A}function xBe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return wBe(n,t)}function nI(e){return t=>t.pointerType==="mouse"?e(t):void 0}var _Be=kH,kBe=fS,SBe=DH,DBe=RH,RBe=mS,TBe=TH,MBe=Sb,FBe=NH,NBe=OH,jBe=PH,OBe=GH,LBe=HH,PBe=YH,UBe=JH,GBe=ZH,HBe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],YBe=HBe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Rb="DropdownMenu",[zBe]=la(Rb,[xH]),Us=xH(),[JBe,KH]=zBe(Rb),VH=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:A,defaultOpen:i,onOpenChange:a,modal:c=!0}=e,f=Us(t),h=b.useRef(null),[m,I]=yl({prop:A,defaultProp:i??!1,onChange:a,caller:Rb});return p.jsx(JBe,{scope:t,triggerId:$A(),triggerRef:h,contentId:$A(),open:m,onOpenChange:I,onOpenToggle:b.useCallback(()=>I(v=>!v),[I]),modal:c,children:p.jsx(_Be,{...f,open:m,onOpenChange:I,dir:r,modal:c,children:n})})};VH.displayName=Rb;var qH="DropdownMenuTrigger",$H=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...A}=e,i=KH(qH,n),a=Us(n);return p.jsx(kBe,{asChild:!0,...a,children:p.jsx(YBe.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...A,ref:gc(t,i.triggerRef),onPointerDown:Vt(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:Vt(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});$H.displayName=qH;var WBe="DropdownMenuPortal",eY=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Us(t);return p.jsx(SBe,{...r,...n})};eY.displayName=WBe;var tY="DropdownMenuContent",nY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=KH(tY,n),i=Us(n),a=b.useRef(!1);return p.jsx(DBe,{id:A.contentId,"aria-labelledby":A.triggerId,...i,...r,ref:t,onCloseAutoFocus:Vt(e.onCloseAutoFocus,c=>{var f;a.current||((f=A.triggerRef.current)==null||f.focus()),a.current=!1,c.preventDefault()}),onInteractOutside:Vt(e.onInteractOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,m=f.button===2||h;(!A.modal||m)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nY.displayName=tY;var ZBe="DropdownMenuGroup",rY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(RBe,{...A,...r,ref:t})});rY.displayName=ZBe;var XBe="DropdownMenuLabel",oY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(TBe,{...A,...r,ref:t})});oY.displayName=XBe;var KBe="DropdownMenuItem",iY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(MBe,{...A,...r,ref:t})});iY.displayName=KBe;var VBe="DropdownMenuCheckboxItem",AY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(FBe,{...A,...r,ref:t})});AY.displayName=VBe;var qBe="DropdownMenuRadioGroup",sY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(NBe,{...A,...r,ref:t})});sY.displayName=qBe;var $Be="DropdownMenuRadioItem",aY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(jBe,{...A,...r,ref:t})});aY.displayName=$Be;var eye="DropdownMenuItemIndicator",lY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(OBe,{...A,...r,ref:t})});lY.displayName=eye;var tye="DropdownMenuSeparator",cY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(LBe,{...A,...r,ref:t})});cY.displayName=tye;var nye="DropdownMenuArrow",rye=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(PBe,{...A,...r,ref:t})});rye.displayName=nye;var oye="DropdownMenuSubTrigger",uY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(UBe,{...A,...r,ref:t})});uY.displayName=oye;var iye="DropdownMenuSubContent",dY=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,A=Us(n);return p.jsx(GBe,{...A,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});dY.displayName=iye;var fY=VH,gY=$H,CS=eY,hY=nY,Aye=rY,sye=oY,pY=iY,aye=AY,lye=sY,cye=aY,mY=lY,uye=cY,dye=uY,fye=dY,gye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hye=gye.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),pye="Label",EY=b.forwardRef((e,t)=>p.jsx(hye.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));EY.displayName=pye;var mye=EY;function rI(e,[t,n]){return Math.min(n,Math.max(t,e))}var Eye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],IY=Eye.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Tb="Popover",[CY]=la(Tb,[$d]),oI=$d(),[Iye,ef]=CY(Tb),BY=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:A,onOpenChange:i,modal:a=!1}=e,c=oI(t),f=b.useRef(null),[h,m]=b.useState(!1),[I,v]=yl({prop:r,defaultProp:A??!1,onChange:i,caller:Tb});return p.jsx(bb,{...c,children:p.jsx(Iye,{scope:t,contentId:$A(),triggerRef:f,open:I,onOpenChange:v,onOpenToggle:b.useCallback(()=>v(k=>!k),[v]),hasCustomAnchor:h,onCustomAnchorAdd:b.useCallback(()=>m(!0),[]),onCustomAnchorRemove:b.useCallback(()=>m(!1),[]),modal:a,children:n})})};BY.displayName=Tb;var yY="PopoverAnchor",vY=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,A=ef(yY,n),i=oI(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=A;return b.useEffect(()=>(a(),()=>c()),[a,c]),p.jsx(XE,{...i,...r,ref:t})});vY.displayName=yY;var bY="PopoverTrigger",QY=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,A=ef(bY,n),i=oI(n),a=ir(t,A.triggerRef),c=p.jsx(IY.button,{type:"button","aria-haspopup":"dialog","aria-expanded":A.open,"aria-controls":A.contentId,"data-state":DY(A.open),...r,ref:a,onClick:Vt(e.onClick,A.onOpenToggle)});return A.hasCustomAnchor?c:p.jsx(XE,{asChild:!0,...i,children:c})});QY.displayName=bY;var BS="PopoverPortal",[Cye,Bye]=CY(BS,{forceMount:void 0}),wY=e=>{const{__scopePopover:t,forceMount:n,children:r,container:A}=e,i=ef(BS,t);return p.jsx(Cye,{scope:t,forceMount:n,children:p.jsx(hs,{present:n||i.open,children:p.jsx(Mg,{asChild:!0,container:A,children:r})})})};wY.displayName=BS;var wp="PopoverContent",xY=b.forwardRef((e,t)=>{const n=Bye(wp,e.__scopePopover),{forceMount:r=n.forceMount,...A}=e,i=ef(wp,e.__scopePopover);return p.jsx(hs,{present:r||i.open,children:i.modal?p.jsx(vye,{...A,ref:t}):p.jsx(bye,{...A,ref:t})})});xY.displayName=wp;var yye=Uo("PopoverContent.RemoveScroll"),vye=b.forwardRef((e,t)=>{const n=ef(wp,e.__scopePopover),r=b.useRef(null),A=ir(t,r),i=b.useRef(!1);return b.useEffect(()=>{const a=r.current;if(a)return ub(a)},[]),p.jsx(zE,{as:yye,allowPinchZoom:!0,children:p.jsx(_Y,{...e,ref:A,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Vt(e.onCloseAutoFocus,a=>{var c;a.preventDefault(),i.current||((c=n.triggerRef.current)==null||c.focus())}),onPointerDownOutside:Vt(e.onPointerDownOutside,a=>{const c=a.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0,h=c.button===2||f;i.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:Vt(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),bye=b.forwardRef((e,t)=>{const n=ef(wp,e.__scopePopover),r=b.useRef(!1),A=b.useRef(!1);return p.jsx(_Y,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||((c=n.triggerRef.current)==null||c.focus()),i.preventDefault()),r.current=!1,A.current=!1},onInteractOutside:i=>{var c,f;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(A.current=!0));const a=i.target;(f=n.triggerRef.current)!=null&&f.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&A.current&&i.preventDefault()}})}),_Y=b.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:A,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:m,...I}=e,v=ef(wp,n),k=oI(n);return rb(),p.jsx(HE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:A,onUnmountAutoFocus:i,children:p.jsx(pp,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:h,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(Qb,{"data-state":DY(v.open),role:"dialog",id:v.contentId,...k,...I,ref:t,style:{...I.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),kY="PopoverClose",SY=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,A=ef(kY,n);return p.jsx(IY.button,{type:"button",...r,ref:t,onClick:Vt(e.onClick,()=>A.onOpenChange(!1))})});SY.displayName=kY;var Qye="PopoverArrow",wye=b.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,A=oI(n);return p.jsx(wb,{...A,...r,ref:t})});wye.displayName=Qye;function DY(e){return e?"open":"closed"}var yS=BY,vS=vY,RY=QY,bS=wY,QS=xY,xye=SY,_ye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],TY=_ye.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),wS="Progress",xS=100,[kye]=la(wS),[Sye,Dye]=kye(wS),MY=b.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:A,getValueLabel:i=Rye,...a}=e;(A||A===0)&&!OY(A)&&console.error(Tye(`${A}`,"Progress"));const c=OY(A)?A:xS;r!==null&&!LY(r,c)&&console.error(Mye(`${r}`,"Progress"));const f=LY(r,c)?r:null,h=Mb(f)?i(f,c):void 0;return p.jsx(Sye,{scope:n,value:f,max:c,children:p.jsx(TY.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Mb(f)?f:void 0,"aria-valuetext":h,role:"progressbar","data-state":jY(f,c),"data-value":f??void 0,"data-max":c,...a,ref:t})})});MY.displayName=wS;var FY="ProgressIndicator",NY=b.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,A=Dye(FY,n);return p.jsx(TY.div,{"data-state":jY(A.value,A.max),"data-value":A.value??void 0,"data-max":A.max,...r,ref:t})});NY.displayName=FY;function Rye(e,t){return`${Math.round(e/t*100)}%`}function jY(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Mb(e){return typeof e=="number"}function OY(e){return Mb(e)&&!isNaN(e)&&e>0}function LY(e,t){return Mb(e)&&!isNaN(e)&&e<=t&&e>=0}function Tye(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${xS}\`.`}function Mye(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or ${xS} if no \`max\` prop is set) - - \`null\` or \`undefined\` if the progress is indeterminate. - -Defaulting to \`null\`.`}var Fye=MY,Nye=NY,jye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],iI=jye.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Oye(e,t){return b.useReducer((n,r)=>t[n][r]??n,e)}var _S="ScrollArea",[PY]=la(_S),[Lye,bl]=PY(_S),UY=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:A,scrollHideDelay:i=600,...a}=e,[c,f]=b.useState(null),[h,m]=b.useState(null),[I,v]=b.useState(null),[k,D]=b.useState(null),[R,F]=b.useState(null),[N,T]=b.useState(0),[P,G]=b.useState(0),[Y,z]=b.useState(!1),[Z,K]=b.useState(!1),re=ir(t,oe=>f(oe)),V=hp(A);return p.jsx(Lye,{scope:n,type:r,dir:V,scrollHideDelay:i,scrollArea:c,viewport:h,onViewportChange:m,content:I,onContentChange:v,scrollbarX:k,onScrollbarXChange:D,scrollbarXEnabled:Y,onScrollbarXEnabledChange:z,scrollbarY:R,onScrollbarYChange:F,scrollbarYEnabled:Z,onScrollbarYEnabledChange:K,onCornerWidthChange:T,onCornerHeightChange:G,children:p.jsx(iI.div,{dir:V,...a,ref:re,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":P+"px",...e.style}})})});UY.displayName=_S;var GY="ScrollAreaViewport",HY=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:A,...i}=e,a=bl(GY,n),c=b.useRef(null),f=ir(t,c,a.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:A}),p.jsx(iI.div,{"data-radix-scroll-area-viewport":"",...i,ref:f,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});HY.displayName=GY;var Iu="ScrollAreaScrollbar",YY=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,A=bl(Iu,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=A,c=e.orientation==="horizontal";return b.useEffect(()=>(c?i(!0):a(!0),()=>{c?i(!1):a(!1)}),[c,i,a]),A.type==="hover"?p.jsx(Pye,{...r,ref:t,forceMount:n}):A.type==="scroll"?p.jsx(Uye,{...r,ref:t,forceMount:n}):A.type==="auto"?p.jsx(zY,{...r,ref:t,forceMount:n}):A.type==="always"?p.jsx(kS,{...r,ref:t}):null});YY.displayName=Iu;var Pye=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,A=bl(Iu,e.__scopeScrollArea),[i,a]=b.useState(!1);return b.useEffect(()=>{const c=A.scrollArea;let f=0;if(c){const h=()=>{window.clearTimeout(f),a(!0)},m=()=>{f=window.setTimeout(()=>a(!1),A.scrollHideDelay)};return c.addEventListener("pointerenter",h),c.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),c.removeEventListener("pointerenter",h),c.removeEventListener("pointerleave",m)}}},[A.scrollArea,A.scrollHideDelay]),p.jsx(hs,{present:n||i,children:p.jsx(zY,{"data-state":i?"visible":"hidden",...r,ref:t})})}),Uye=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,A=bl(Iu,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Ob(()=>f("SCROLL_END"),100),[c,f]=Oye("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(c==="idle"){const h=window.setTimeout(()=>f("HIDE"),A.scrollHideDelay);return()=>window.clearTimeout(h)}},[c,A.scrollHideDelay,f]),b.useEffect(()=>{const h=A.viewport,m=i?"scrollLeft":"scrollTop";if(h){let I=h[m];const v=()=>{const k=h[m];I!==k&&(f("SCROLL"),a()),I=k};return h.addEventListener("scroll",v),()=>h.removeEventListener("scroll",v)}},[A.viewport,i,f,a]),p.jsx(hs,{present:n||c!=="hidden",children:p.jsx(kS,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:Vt(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:Vt(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),zY=b.forwardRef((e,t)=>{const n=bl(Iu,e.__scopeScrollArea),{forceMount:r,...A}=e,[i,a]=b.useState(!1),c=e.orientation==="horizontal",f=Ob(()=>{if(n.viewport){const h=n.viewport.offsetWidth{const{orientation:n="vertical",...r}=e,A=bl(Iu,e.__scopeScrollArea),i=b.useRef(null),a=b.useRef(0),[c,f]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=KY(c.viewport,c.content),m={...r,sizes:c,onSizesChange:f,hasThumb:h>0&&h<1,onThumbChange:v=>i.current=v,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:v=>a.current=v};function I(v,k){return Wye(v,a.current,c,k)}return n==="horizontal"?p.jsx(Gye,{...m,ref:t,onThumbPositionChange:()=>{if(A.viewport&&i.current){const v=A.viewport.scrollLeft,k=VY(v,c,A.dir);i.current.style.transform=`translate3d(${k}px, 0, 0)`}},onWheelScroll:v=>{A.viewport&&(A.viewport.scrollLeft=v)},onDragScroll:v=>{A.viewport&&(A.viewport.scrollLeft=I(v,A.dir))}}):n==="vertical"?p.jsx(Hye,{...m,ref:t,onThumbPositionChange:()=>{if(A.viewport&&i.current){const v=A.viewport.scrollTop,k=VY(v,c);i.current.style.transform=`translate3d(0, ${k}px, 0)`}},onWheelScroll:v=>{A.viewport&&(A.viewport.scrollTop=v)},onDragScroll:v=>{A.viewport&&(A.viewport.scrollTop=I(v))}}):null}),Gye=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...A}=e,i=bl(Iu,e.__scopeScrollArea),[a,c]=b.useState(),f=b.useRef(null),h=ir(t,f,i.onScrollbarXChange);return b.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),p.jsx(WY,{"data-orientation":"horizontal",...A,ref:h,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":jb(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,I)=>{if(i.viewport){const v=i.viewport.scrollLeft+m.deltaX;e.onWheelScroll(v),$Y(v,I)&&m.preventDefault()}},onResize:()=>{f.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Nb(a.paddingLeft),paddingEnd:Nb(a.paddingRight)}})}})}),Hye=b.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...A}=e,i=bl(Iu,e.__scopeScrollArea),[a,c]=b.useState(),f=b.useRef(null),h=ir(t,f,i.onScrollbarYChange);return b.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),p.jsx(WY,{"data-orientation":"vertical",...A,ref:h,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":jb(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,I)=>{if(i.viewport){const v=i.viewport.scrollTop+m.deltaY;e.onWheelScroll(v),$Y(v,I)&&m.preventDefault()}},onResize:()=>{f.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Nb(a.paddingTop),paddingEnd:Nb(a.paddingBottom)}})}})}),[Yye,JY]=PY(Iu),WY=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:A,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:m,onResize:I,...v}=e,k=bl(Iu,n),[D,R]=b.useState(null),F=ir(t,re=>R(re)),N=b.useRef(null),T=b.useRef(""),P=k.viewport,G=r.content-r.viewport,Y=es(m),z=es(f),Z=Ob(I,10);function K(re){if(N.current){const V=re.clientX-N.current.left,oe=re.clientY-N.current.top;h({x:V,y:oe})}}return b.useEffect(()=>{const re=V=>{const oe=V.target;D!=null&&D.contains(oe)&&Y(V,G)};return document.addEventListener("wheel",re,{passive:!1}),()=>document.removeEventListener("wheel",re,{passive:!1})},[P,D,G,Y]),b.useEffect(z,[r,z]),xp(D,Z),xp(k.content,Z),p.jsx(Yye,{scope:n,scrollbar:D,hasThumb:A,onThumbChange:es(i),onThumbPointerUp:es(a),onThumbPositionChange:z,onThumbPointerDown:es(c),children:p.jsx(iI.div,{...v,ref:F,style:{position:"absolute",...v.style},onPointerDown:Vt(e.onPointerDown,re=>{re.button===0&&(re.target.setPointerCapture(re.pointerId),N.current=D.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",k.viewport&&(k.viewport.style.scrollBehavior="auto"),K(re))}),onPointerMove:Vt(e.onPointerMove,K),onPointerUp:Vt(e.onPointerUp,re=>{const V=re.target;V.hasPointerCapture(re.pointerId)&&V.releasePointerCapture(re.pointerId),document.body.style.webkitUserSelect=T.current,k.viewport&&(k.viewport.style.scrollBehavior=""),N.current=null})})})}),Fb="ScrollAreaThumb",ZY=b.forwardRef((e,t)=>{const{forceMount:n,...r}=e,A=JY(Fb,e.__scopeScrollArea);return p.jsx(hs,{present:n||A.hasThumb,children:p.jsx(zye,{ref:t,...r})})}),zye=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...A}=e,i=bl(Fb,n),a=JY(Fb,n),{onThumbPositionChange:c}=a,f=ir(t,I=>a.onThumbChange(I)),h=b.useRef(void 0),m=Ob(()=>{h.current&&(h.current(),h.current=void 0)},100);return b.useEffect(()=>{const I=i.viewport;if(I){const v=()=>{if(m(),!h.current){const k=Zye(I,c);h.current=k,c()}};return c(),I.addEventListener("scroll",v),()=>I.removeEventListener("scroll",v)}},[i.viewport,m,c]),p.jsx(iI.div,{"data-state":a.hasThumb?"visible":"hidden",...A,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Vt(e.onPointerDownCapture,I=>{const v=I.target.getBoundingClientRect(),k=I.clientX-v.left,D=I.clientY-v.top;a.onThumbPointerDown({x:k,y:D})}),onPointerUp:Vt(e.onPointerUp,a.onThumbPointerUp)})});ZY.displayName=Fb;var SS="ScrollAreaCorner",XY=b.forwardRef((e,t)=>{const n=bl(SS,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(Jye,{...e,ref:t}):null});XY.displayName=SS;var Jye=b.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,A=bl(SS,n),[i,a]=b.useState(0),[c,f]=b.useState(0),h=!!(i&&c);return xp(A.scrollbarX,()=>{var I;const m=((I=A.scrollbarX)==null?void 0:I.offsetHeight)||0;A.onCornerHeightChange(m),f(m)}),xp(A.scrollbarY,()=>{var I;const m=((I=A.scrollbarY)==null?void 0:I.offsetWidth)||0;A.onCornerWidthChange(m),a(m)}),h?p.jsx(iI.div,{...r,ref:t,style:{width:i,height:c,position:"absolute",right:A.dir==="ltr"?0:void 0,left:A.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Nb(e){return e?parseInt(e,10):0}function KY(e,t){const n=e/t;return isNaN(n)?0:n}function jb(e){const t=KY(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Wye(e,t,n,r="ltr"){const A=jb(n),i=A/2,a=t||i,c=A-a,f=n.scrollbar.paddingStart+a,h=n.scrollbar.size-n.scrollbar.paddingEnd-c,m=n.content-n.viewport,I=r==="ltr"?[0,m]:[m*-1,0];return qY([f,h],I)(e)}function VY(e,t,n="ltr"){const r=jb(t),A=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-A,a=t.content-t.viewport,c=i-r,f=n==="ltr"?[0,a]:[a*-1,0],h=rI(e,f);return qY([0,a],[0,c])(h)}function qY(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function $Y(e,t){return e>0&&e{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function A(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,c=n.top!==i.top;(a||c)&&t(),n=i,r=window.requestAnimationFrame(A)}(),()=>window.cancelAnimationFrame(r)};function Ob(e,t){const n=es(e),r=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),b.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function xp(e,t){const n=es(t);qA(()=>{let r=0;if(e){const A=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return A.observe(e),()=>{window.cancelAnimationFrame(r),A.unobserve(e)}}},[e,n])}var ez=UY,tz=HY,DS=YY,RS=ZY,Xye=XY,Kye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ga=Kye.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Vye=[" ","Enter","ArrowUp","ArrowDown"],qye=[" ","Enter"],Lg="Select",[Lb,Pb,$ye]=tb(Lg),[_p]=la(Lg,[$ye,$d]),Ub=$d(),[eve,tf]=_p(Lg),[tve,nve]=_p(Lg),nz=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:A,onOpenChange:i,value:a,defaultValue:c,onValueChange:f,dir:h,name:m,autoComplete:I,disabled:v,required:k,form:D}=e,R=Ub(t),[F,N]=b.useState(null),[T,P]=b.useState(null),[G,Y]=b.useState(!1),z=hp(h),[Z,K]=yl({prop:r,defaultProp:A??!1,onChange:i,caller:Lg}),[re,V]=yl({prop:a,defaultProp:c,onChange:f,caller:Lg}),oe=b.useRef(null),Be=F?D||!!F.closest("form"):!0,[he,de]=b.useState(new Set),me=Array.from(he).map(Ae=>Ae.props.value).join(";");return p.jsx(bb,{...R,children:p.jsxs(eve,{required:k,scope:t,trigger:F,onTriggerChange:N,valueNode:T,onValueNodeChange:P,valueNodeHasChildren:G,onValueNodeHasChildrenChange:Y,contentId:$A(),value:re,onValueChange:V,open:Z,onOpenChange:K,dir:z,triggerPointerDownPosRef:oe,disabled:v,children:[p.jsx(Lb.Provider,{scope:t,children:p.jsx(tve,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(Ae=>{de(Ce=>new Set(Ce).add(Ae))},[]),onNativeOptionRemove:b.useCallback(Ae=>{de(Ce=>{const ae=new Set(Ce);return ae.delete(Ae),ae})},[]),children:n})}),Be?p.jsxs(Qz,{"aria-hidden":!0,required:k,tabIndex:-1,name:m,autoComplete:I,value:re,onChange:Ae=>V(Ae.target.value),disabled:v,form:D,children:[re===void 0?p.jsx("option",{value:""}):null,Array.from(he)]},me):null]})})};nz.displayName=Lg;var rz="SelectTrigger",oz=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...A}=e,i=Ub(n),a=tf(rz,n),c=a.disabled||r,f=ir(t,a.onTriggerChange),h=Pb(n),m=b.useRef("touch"),[I,v,k]=xz(R=>{const F=h().filter(P=>!P.disabled),N=F.find(P=>P.value===a.value),T=_z(F,R,N);T!==void 0&&a.onValueChange(T.value)}),D=R=>{c||(a.onOpenChange(!0),k()),R&&(a.triggerPointerDownPosRef.current={x:Math.round(R.pageX),y:Math.round(R.pageY)})};return p.jsx(XE,{asChild:!0,...i,children:p.jsx(Ga.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":wz(a.value)?"":void 0,...A,ref:f,onClick:Vt(A.onClick,R=>{R.currentTarget.focus(),m.current!=="mouse"&&D(R)}),onPointerDown:Vt(A.onPointerDown,R=>{m.current=R.pointerType;const F=R.target;F.hasPointerCapture(R.pointerId)&&F.releasePointerCapture(R.pointerId),R.button===0&&R.ctrlKey===!1&&R.pointerType==="mouse"&&(D(R),R.preventDefault())}),onKeyDown:Vt(A.onKeyDown,R=>{const F=I.current!=="";!(R.ctrlKey||R.altKey||R.metaKey)&&R.key.length===1&&v(R.key),!(F&&R.key===" ")&&Vye.includes(R.key)&&(D(),R.preventDefault())})})})});oz.displayName=rz;var iz="SelectValue",Az=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:A,children:i,placeholder:a="",...c}=e,f=tf(iz,n),{onValueNodeHasChildrenChange:h}=f,m=i!==void 0,I=ir(t,f.onValueNodeChange);return qA(()=>{h(m)},[h,m]),p.jsx(Ga.span,{...c,ref:I,style:{pointerEvents:"none"},children:wz(f.value)?p.jsx(p.Fragment,{children:a}):i})});Az.displayName=iz;var rve="SelectIcon",sz=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...A}=e;return p.jsx(Ga.span,{"aria-hidden":!0,...A,ref:t,children:r||"\u25BC"})});sz.displayName=rve;var ove="SelectPortal",az=e=>p.jsx(Mg,{asChild:!0,...e});az.displayName=ove;var Pg="SelectContent",lz=b.forwardRef((e,t)=>{const n=tf(Pg,e.__scopeSelect),[r,A]=b.useState();if(qA(()=>{A(new DocumentFragment)},[]),!n.open){const i=r;return i?fu.createPortal(p.jsx(cz,{scope:e.__scopeSelect,children:p.jsx(Lb.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),i):null}return p.jsx(uz,{...e,ref:t})});lz.displayName=Pg;var mc=10,[cz,nf]=_p(Pg),ive="SelectContentImpl",Ave=Uo("SelectContent.RemoveScroll"),uz=b.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:A,onEscapeKeyDown:i,onPointerDownOutside:a,side:c,sideOffset:f,align:h,alignOffset:m,arrowPadding:I,collisionBoundary:v,collisionPadding:k,sticky:D,hideWhenDetached:R,avoidCollisions:F,...N}=e,T=tf(Pg,n),[P,G]=b.useState(null),[Y,z]=b.useState(null),Z=ir(t,De=>G(De)),[K,re]=b.useState(null),[V,oe]=b.useState(null),Be=Pb(n),[he,de]=b.useState(!1),me=b.useRef(!1);b.useEffect(()=>{if(P)return ub(P)},[P]),rb();const Ae=b.useCallback(De=>{const[Se,...Qe]=Be().map(Je=>Je.ref.current),[Ye]=Qe.slice(-1),At=document.activeElement;for(const Je of De)if(Je===At||(Je==null||Je.scrollIntoView({block:"nearest"}),Je===Se&&Y&&(Y.scrollTop=0),Je===Ye&&Y&&(Y.scrollTop=Y.scrollHeight),Je==null||Je.focus(),document.activeElement!==At))return},[Be,Y]),Ce=b.useCallback(()=>Ae([K,P]),[Ae,K,P]);b.useEffect(()=>{he&&Ce()},[he,Ce]);const{onOpenChange:ae,triggerPointerDownPosRef:fe}=T;b.useEffect(()=>{if(P){let De={x:0,y:0};const Se=Ye=>{var At,Je;De={x:Math.abs(Math.round(Ye.pageX)-(((At=fe.current)==null?void 0:At.x)??0)),y:Math.abs(Math.round(Ye.pageY)-(((Je=fe.current)==null?void 0:Je.y)??0))}},Qe=Ye=>{De.x<=10&&De.y<=10?Ye.preventDefault():P.contains(Ye.target)||ae(!1),document.removeEventListener("pointermove",Se),fe.current=null};return fe.current!==null&&(document.addEventListener("pointermove",Se),document.addEventListener("pointerup",Qe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Se),document.removeEventListener("pointerup",Qe,{capture:!0})}}},[P,ae,fe]),b.useEffect(()=>{const De=()=>ae(!1);return window.addEventListener("blur",De),window.addEventListener("resize",De),()=>{window.removeEventListener("blur",De),window.removeEventListener("resize",De)}},[ae]);const[ye,Oe]=xz(De=>{const Se=Be().filter(At=>!At.disabled),Qe=Se.find(At=>At.ref.current===document.activeElement),Ye=_z(Se,De,Qe);Ye&&setTimeout(()=>Ye.ref.current.focus())}),Ie=b.useCallback((De,Se,Qe)=>{const Ye=!me.current&&!Qe;(T.value!==void 0&&T.value===Se||Ye)&&(re(De),Ye&&(me.current=!0))},[T.value]),Fe=b.useCallback(()=>P==null?void 0:P.focus(),[P]),qe=b.useCallback((De,Se,Qe)=>{const Ye=!me.current&&!Qe;(T.value!==void 0&&T.value===Se||Ye)&&oe(De)},[T.value]),Ze=r==="popper"?TS:dz,Te=Ze===TS?{side:c,sideOffset:f,align:h,alignOffset:m,arrowPadding:I,collisionBoundary:v,collisionPadding:k,sticky:D,hideWhenDetached:R,avoidCollisions:F}:{};return p.jsx(cz,{scope:n,content:P,viewport:Y,onViewportChange:z,itemRefCallback:Ie,selectedItem:K,onItemLeave:Fe,itemTextRefCallback:qe,focusSelectedItem:Ce,selectedItemText:V,position:r,isPositioned:he,searchRef:ye,children:p.jsx(zE,{as:Ave,allowPinchZoom:!0,children:p.jsx(HE,{asChild:!0,trapped:T.open,onMountAutoFocus:De=>{De.preventDefault()},onUnmountAutoFocus:Vt(A,De=>{var Se;(Se=T.trigger)==null||Se.focus({preventScroll:!0}),De.preventDefault()}),children:p.jsx(pp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:De=>De.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:p.jsx(Ze,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:De=>De.preventDefault(),...N,...Te,onPlaced:()=>de(!0),ref:Z,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Vt(N.onKeyDown,De=>{const Se=De.ctrlKey||De.altKey||De.metaKey;if(De.key==="Tab"&&De.preventDefault(),!Se&&De.key.length===1&&Oe(De.key),["ArrowUp","ArrowDown","Home","End"].includes(De.key)){let Qe=Be().filter(Ye=>!Ye.disabled).map(Ye=>Ye.ref.current);if(["ArrowUp","End"].includes(De.key)&&(Qe=Qe.slice().reverse()),["ArrowUp","ArrowDown"].includes(De.key)){const Ye=De.target,At=Qe.indexOf(Ye);Qe=Qe.slice(At+1)}setTimeout(()=>Ae(Qe)),De.preventDefault()}})})})})})})});uz.displayName=ive;var sve="SelectItemAlignedPosition",dz=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...A}=e,i=tf(Pg,n),a=nf(Pg,n),[c,f]=b.useState(null),[h,m]=b.useState(null),I=ir(t,Z=>m(Z)),v=Pb(n),k=b.useRef(!1),D=b.useRef(!0),{viewport:R,selectedItem:F,selectedItemText:N,focusSelectedItem:T}=a,P=b.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&h&&R&&F&&N){const Z=i.trigger.getBoundingClientRect(),K=h.getBoundingClientRect(),re=i.valueNode.getBoundingClientRect(),V=N.getBoundingClientRect();if(i.dir!=="rtl"){const Ye=V.left-K.left,At=re.left-Ye,Je=Z.left-At,Nt=Z.width+Je,jt=Math.max(Nt,K.width),bt=window.innerWidth-mc,wt=rI(At,[mc,Math.max(mc,bt-jt)]);c.style.minWidth=Nt+"px",c.style.left=wt+"px"}else{const Ye=K.right-V.right,At=window.innerWidth-re.right-Ye,Je=window.innerWidth-Z.right-At,Nt=Z.width+Je,jt=Math.max(Nt,K.width),bt=window.innerWidth-mc,wt=rI(At,[mc,Math.max(mc,bt-jt)]);c.style.minWidth=Nt+"px",c.style.right=wt+"px"}const oe=v(),Be=window.innerHeight-mc*2,he=R.scrollHeight,de=window.getComputedStyle(h),me=parseInt(de.borderTopWidth,10),Ae=parseInt(de.paddingTop,10),Ce=parseInt(de.borderBottomWidth,10),ae=parseInt(de.paddingBottom,10),fe=me+Ae+he+ae+Ce,ye=Math.min(F.offsetHeight*5,fe),Oe=window.getComputedStyle(R),Ie=parseInt(Oe.paddingTop,10),Fe=parseInt(Oe.paddingBottom,10),qe=Z.top+Z.height/2-mc,Ze=Be-qe,Te=F.offsetHeight/2,De=F.offsetTop+Te,Se=me+Ae+De,Qe=fe-Se;if(Se<=qe){const Ye=oe.length>0&&F===oe[oe.length-1].ref.current;c.style.bottom="0px";const At=h.clientHeight-R.offsetTop-R.offsetHeight,Je=Math.max(Ze,Te+(Ye?Fe:0)+At+Ce),Nt=Se+Je;c.style.height=Nt+"px"}else{const Ye=oe.length>0&&F===oe[0].ref.current;c.style.top="0px";const At=Math.max(qe,me+R.offsetTop+(Ye?Ie:0)+Te)+Qe;c.style.height=At+"px",R.scrollTop=Se-qe+R.offsetTop}c.style.margin=`${mc}px 0`,c.style.minHeight=ye+"px",c.style.maxHeight=Be+"px",r==null||r(),requestAnimationFrame(()=>k.current=!0)}},[v,i.trigger,i.valueNode,c,h,R,F,N,i.dir,r]);qA(()=>P(),[P]);const[G,Y]=b.useState();qA(()=>{h&&Y(window.getComputedStyle(h).zIndex)},[h]);const z=b.useCallback(Z=>{Z&&D.current===!0&&(P(),T==null||T(),D.current=!1)},[P,T]);return p.jsx(lve,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:k,onScrollButtonChange:z,children:p.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:G},children:p.jsx(Ga.div,{...A,ref:I,style:{boxSizing:"border-box",maxHeight:"100%",...A.style}})})})});dz.displayName=sve;var ave="SelectPopperPosition",TS=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:A=mc,...i}=e,a=Ub(n);return p.jsx(Qb,{...a,...i,ref:t,align:r,collisionPadding:A,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});TS.displayName=ave;var[lve,MS]=_p(Pg,{}),FS="SelectViewport",fz=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...A}=e,i=nf(FS,n),a=MS(FS,n),c=ir(t,i.onViewportChange),f=b.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Lb.Slot,{scope:n,children:p.jsx(Ga.div,{"data-radix-select-viewport":"",role:"presentation",...A,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...A.style},onScroll:Vt(A.onScroll,h=>{const m=h.currentTarget,{contentWrapper:I,shouldExpandOnScrollRef:v}=a;if(v!=null&&v.current&&I){const k=Math.abs(f.current-m.scrollTop);if(k>0){const D=window.innerHeight-mc*2,R=parseFloat(I.style.minHeight),F=parseFloat(I.style.height),N=Math.max(R,F);if(N0?G:0,I.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});fz.displayName=FS;var gz="SelectGroup",[cve,uve]=_p(gz),hz=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,A=$A();return p.jsx(cve,{scope:n,id:A,children:p.jsx(Ga.div,{role:"group","aria-labelledby":A,...r,ref:t})})});hz.displayName=gz;var pz="SelectLabel",mz=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,A=uve(pz,n);return p.jsx(Ga.div,{id:A.id,...r,ref:t})});mz.displayName=pz;var Gb="SelectItem",[dve,Ez]=_p(Gb),Iz=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:A=!1,textValue:i,...a}=e,c=tf(Gb,n),f=nf(Gb,n),h=c.value===r,[m,I]=b.useState(i??""),[v,k]=b.useState(!1),D=ir(t,T=>{var P;return(P=f.itemRefCallback)==null?void 0:P.call(f,T,r,A)}),R=$A(),F=b.useRef("touch"),N=()=>{A||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(dve,{scope:n,value:r,disabled:A,textId:R,isSelected:h,onItemTextChange:b.useCallback(T=>{I(P=>P||((T==null?void 0:T.textContent)??"").trim())},[]),children:p.jsx(Lb.ItemSlot,{scope:n,value:r,disabled:A,textValue:m,children:p.jsx(Ga.div,{role:"option","aria-labelledby":R,"data-highlighted":v?"":void 0,"aria-selected":h&&v,"data-state":h?"checked":"unchecked","aria-disabled":A||void 0,"data-disabled":A?"":void 0,tabIndex:A?void 0:-1,...a,ref:D,onFocus:Vt(a.onFocus,()=>k(!0)),onBlur:Vt(a.onBlur,()=>k(!1)),onClick:Vt(a.onClick,()=>{F.current!=="mouse"&&N()}),onPointerUp:Vt(a.onPointerUp,()=>{F.current==="mouse"&&N()}),onPointerDown:Vt(a.onPointerDown,T=>{F.current=T.pointerType}),onPointerMove:Vt(a.onPointerMove,T=>{var P;F.current=T.pointerType,A?(P=f.onItemLeave)==null||P.call(f):F.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Vt(a.onPointerLeave,T=>{var P;T.currentTarget===document.activeElement&&((P=f.onItemLeave)==null||P.call(f))}),onKeyDown:Vt(a.onKeyDown,T=>{var P;((P=f.searchRef)==null?void 0:P.current)!==""&&T.key===" "||(qye.includes(T.key)&&N(),T.key===" "&&T.preventDefault())})})})})});Iz.displayName=Gb;var AI="SelectItemText",Cz=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:A,...i}=e,a=tf(AI,n),c=nf(AI,n),f=Ez(AI,n),h=nve(AI,n),[m,I]=b.useState(null),v=ir(t,N=>I(N),f.onItemTextChange,N=>{var T;return(T=c.itemTextRefCallback)==null?void 0:T.call(c,N,f.value,f.disabled)}),k=m==null?void 0:m.textContent,D=b.useMemo(()=>p.jsx("option",{value:f.value,disabled:f.disabled,children:k},f.value),[f.disabled,f.value,k]),{onNativeOptionAdd:R,onNativeOptionRemove:F}=h;return qA(()=>(R(D),()=>F(D)),[R,F,D]),p.jsxs(p.Fragment,{children:[p.jsx(Ga.span,{id:f.textId,...i,ref:v}),f.isSelected&&a.valueNode&&!a.valueNodeHasChildren?fu.createPortal(i.children,a.valueNode):null]})});Cz.displayName=AI;var Bz="SelectItemIndicator",yz=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ez(Bz,n).isSelected?p.jsx(Ga.span,{"aria-hidden":!0,...r,ref:t}):null});yz.displayName=Bz;var NS="SelectScrollUpButton",fve=b.forwardRef((e,t)=>{const n=nf(NS,e.__scopeSelect),r=MS(NS,e.__scopeSelect),[A,i]=b.useState(!1),a=ir(t,r.onScrollButtonChange);return qA(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=f.scrollTop>0;i(h)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),A?p.jsx(vz,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});fve.displayName=NS;var jS="SelectScrollDownButton",gve=b.forwardRef((e,t)=>{const n=nf(jS,e.__scopeSelect),r=MS(jS,e.__scopeSelect),[A,i]=b.useState(!1),a=ir(t,r.onScrollButtonChange);return qA(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),A?p.jsx(vz,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});gve.displayName=jS;var vz=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...A}=e,i=nf("SelectScrollButton",n),a=b.useRef(null),c=Pb(n),f=b.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return b.useEffect(()=>()=>f(),[f]),qA(()=>{var h,m;(m=(h=c().find(I=>I.ref.current===document.activeElement))==null?void 0:h.ref.current)==null||m.scrollIntoView({block:"nearest"})},[c]),p.jsx(Ga.div,{"aria-hidden":!0,...A,ref:t,style:{flexShrink:0,...A.style},onPointerDown:Vt(A.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Vt(A.onPointerMove,()=>{var h;(h=i.onItemLeave)==null||h.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Vt(A.onPointerLeave,()=>{f()})})}),hve="SelectSeparator",bz=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(Ga.div,{"aria-hidden":!0,...r,ref:t})});bz.displayName=hve;var OS="SelectArrow",pve=b.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,A=Ub(n),i=tf(OS,n),a=nf(OS,n);return i.open&&a.position==="popper"?p.jsx(wb,{...A,...r,ref:t}):null});pve.displayName=OS;var mve="SelectBubbleInput",Qz=b.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const A=b.useRef(null),i=ir(r,A),a=W8(t);return b.useEffect(()=>{const c=A.current;if(!c)return;const f=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(f,"value").set;if(a!==t&&h){const m=new Event("change",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[a,t]),p.jsx(Ga.select,{...n,style:{...UU,...n.style},ref:i,defaultValue:t})});Qz.displayName=mve;function wz(e){return e===""||e===void 0}function xz(e){const t=es(e),n=b.useRef(""),r=b.useRef(0),A=b.useCallback(a=>{const c=n.current+a;t(c),function f(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(c)},[t]),i=b.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,A,i]}function _z(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,A=n?e.indexOf(n):-1;let i=Eve(e,Math.max(A,0));r.length===1&&(i=i.filter(c=>c!==n));const a=i.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function Eve(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ive=nz,Cve=oz,Bve=Az,yve=sz,vve=az,bve=lz,Qve=fz,wve=hz,xve=mz,_ve=Iz,kve=Cz,Sve=yz,Dve=bz,Rve=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sI=Rve.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),kz=["PageUp","PageDown"],Sz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Dz={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},kp="Slider",[LS,Tve,Mve]=tb(kp),[Rz]=la(kp,[Mve]),[Fve,Hb]=Rz(kp),Tz=b.forwardRef((e,t)=>{const{name:n,min:r=0,max:A=100,step:i=1,orientation:a="horizontal",disabled:c=!1,minStepsBetweenThumbs:f=0,defaultValue:h=[r],value:m,onValueChange:I=()=>{},onValueCommit:v=()=>{},inverted:k=!1,form:D,...R}=e,F=b.useRef(new Set),N=b.useRef(0),T=a==="horizontal"?Nve:jve,[P=[],G]=yl({prop:m,defaultProp:h,onChange:V=>{var oe;(oe=[...F.current][N.current])==null||oe.focus(),I(V)}}),Y=b.useRef(P);function z(V){const oe=Gve(P,V);re(V,oe)}function Z(V){re(V,N.current)}function K(){const V=Y.current[N.current];P[N.current]!==V&&v(P)}function re(V,oe,{commit:Be}={commit:!1}){const he=Jve(i),de=Wve(Math.round((V-r)/i)*i+r,he),me=rI(de,[r,A]);G((Ae=[])=>{const Ce=Pve(Ae,me,oe);if(zve(Ce,f*i)){N.current=Ce.indexOf(me);const ae=String(Ce)!==String(Ae);return ae&&Be&&v(Ce),ae?Ce:Ae}else return Ae})}return p.jsx(Fve,{scope:e.__scopeSlider,name:n,disabled:c,min:r,max:A,valueIndexToChangeRef:N,thumbs:F.current,values:P,orientation:a,form:D,children:p.jsx(LS.Provider,{scope:e.__scopeSlider,children:p.jsx(LS.Slot,{scope:e.__scopeSlider,children:p.jsx(T,{"aria-disabled":c,"data-disabled":c?"":void 0,...R,ref:t,onPointerDown:Vt(R.onPointerDown,()=>{c||(Y.current=P)}),min:r,max:A,inverted:k,onSlideStart:c?void 0:z,onSlideMove:c?void 0:Z,onSlideEnd:c?void 0:K,onHomeKeyDown:()=>!c&&re(r,0,{commit:!0}),onEndKeyDown:()=>!c&&re(A,P.length-1,{commit:!0}),onStepKeyDown:({event:V,direction:oe})=>{if(!c){const Be=kz.includes(V.key)||V.shiftKey&&Sz.includes(V.key)?10:1,he=N.current,de=P[he],me=i*Be*oe;re(de+me,he,{commit:!0})}}})})})})});Tz.displayName=kp;var[Mz,Fz]=Rz(kp,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Nve=b.forwardRef((e,t)=>{const{min:n,max:r,dir:A,inverted:i,onSlideStart:a,onSlideMove:c,onSlideEnd:f,onStepKeyDown:h,...m}=e,[I,v]=b.useState(null),k=ir(t,P=>v(P)),D=b.useRef(void 0),R=hp(A),F=R==="ltr",N=F&&!i||!F&&i;function T(P){const G=D.current||I.getBoundingClientRect(),Y=[0,G.width],z=GS(Y,N?[n,r]:[r,n]);return D.current=G,z(P-G.left)}return p.jsx(Mz,{scope:e.__scopeSlider,startEdge:N?"left":"right",endEdge:N?"right":"left",direction:N?1:-1,size:"width",children:p.jsx(Nz,{dir:R,"data-orientation":"horizontal",...m,ref:k,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:P=>{const G=T(P.clientX);a==null||a(G)},onSlideMove:P=>{const G=T(P.clientX);c==null||c(G)},onSlideEnd:()=>{D.current=void 0,f==null||f()},onStepKeyDown:P=>{const G=Dz[N?"from-left":"from-right"].includes(P.key);h==null||h({event:P,direction:G?-1:1})}})})}),jve=b.forwardRef((e,t)=>{const{min:n,max:r,inverted:A,onSlideStart:i,onSlideMove:a,onSlideEnd:c,onStepKeyDown:f,...h}=e,m=b.useRef(null),I=ir(t,m),v=b.useRef(void 0),k=!A;function D(R){const F=v.current||m.current.getBoundingClientRect(),N=[0,F.height],T=GS(N,k?[r,n]:[n,r]);return v.current=F,T(R-F.top)}return p.jsx(Mz,{scope:e.__scopeSlider,startEdge:k?"bottom":"top",endEdge:k?"top":"bottom",size:"height",direction:k?1:-1,children:p.jsx(Nz,{"data-orientation":"vertical",...h,ref:I,style:{...h.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:R=>{const F=D(R.clientY);i==null||i(F)},onSlideMove:R=>{const F=D(R.clientY);a==null||a(F)},onSlideEnd:()=>{v.current=void 0,c==null||c()},onStepKeyDown:R=>{const F=Dz[k?"from-bottom":"from-top"].includes(R.key);f==null||f({event:R,direction:F?-1:1})}})})}),Nz=b.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:A,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:c,onStepKeyDown:f,...h}=e,m=Hb(kp,n);return p.jsx(sI.span,{...h,ref:t,onKeyDown:Vt(e.onKeyDown,I=>{I.key==="Home"?(a(I),I.preventDefault()):I.key==="End"?(c(I),I.preventDefault()):kz.concat(Sz).includes(I.key)&&(f(I),I.preventDefault())}),onPointerDown:Vt(e.onPointerDown,I=>{const v=I.target;v.setPointerCapture(I.pointerId),I.preventDefault(),m.thumbs.has(v)?v.focus():r(I)}),onPointerMove:Vt(e.onPointerMove,I=>{I.target.hasPointerCapture(I.pointerId)&&A(I)}),onPointerUp:Vt(e.onPointerUp,I=>{const v=I.target;v.hasPointerCapture(I.pointerId)&&(v.releasePointerCapture(I.pointerId),i(I))})})}),jz="SliderTrack",Oz=b.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,A=Hb(jz,n);return p.jsx(sI.span,{"data-disabled":A.disabled?"":void 0,"data-orientation":A.orientation,...r,ref:t})});Oz.displayName=jz;var PS="SliderRange",Lz=b.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,A=Hb(PS,n),i=Fz(PS,n),a=b.useRef(null),c=ir(t,a),f=A.values.length,h=A.values.map(v=>Gz(v,A.min,A.max)),m=f>1?Math.min(...h):0,I=100-Math.max(...h);return p.jsx(sI.span,{"data-orientation":A.orientation,"data-disabled":A.disabled?"":void 0,...r,ref:c,style:{...e.style,[i.startEdge]:m+"%",[i.endEdge]:I+"%"}})});Lz.displayName=PS;var US="SliderThumb",Pz=b.forwardRef((e,t)=>{const n=Tve(e.__scopeSlider),[r,A]=b.useState(null),i=ir(t,c=>A(c)),a=b.useMemo(()=>r?n().findIndex(c=>c.ref.current===r):-1,[n,r]);return p.jsx(Ove,{...e,ref:i,index:a})}),Ove=b.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:A,...i}=e,a=Hb(US,n),c=Fz(US,n),[f,h]=b.useState(null),m=ir(t,T=>h(T)),I=f?a.form||!!f.closest("form"):!0,v=Z8(f),k=a.values[r],D=k===void 0?0:Gz(k,a.min,a.max),R=Uve(r,a.values.length),F=v==null?void 0:v[c.size],N=F?Hve(F,D,c.direction):0;return b.useEffect(()=>{if(f)return a.thumbs.add(f),()=>{a.thumbs.delete(f)}},[f,a.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${D}% + ${N}px)`},children:[p.jsx(LS.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(sI.span,{role:"slider","aria-label":e["aria-label"]||R,"aria-valuemin":a.min,"aria-valuenow":k,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:m,style:k===void 0?{display:"none"}:e.style,onFocus:Vt(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),I&&p.jsx(Uz,{name:A??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:k},r)]})});Pz.displayName=US;var Lve="RadioBubbleInput",Uz=b.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const A=b.useRef(null),i=ir(A,r),a=W8(t);return b.useEffect(()=>{const c=A.current;if(!c)return;const f=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(f,"value").set;if(a!==t&&h){const m=new Event("input",{bubbles:!0});h.call(c,t),c.dispatchEvent(m)}},[a,t]),p.jsx(sI.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});Uz.displayName=Lve;function Pve(e=[],t,n){const r=[...e];return r[n]=t,r.sort((A,i)=>A-i)}function Gz(e,t,n){const r=100/(n-t)*(e-t);return rI(r,[0,100])}function Uve(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Gve(e,t){if(e.length===1)return 0;const n=e.map(A=>Math.abs(A-t)),r=Math.min(...n);return n.indexOf(r)}function Hve(e,t,n){const r=e/2,A=GS([0,50],[0,r]);return(r-A(t)*n)*n}function Yve(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function zve(e,t){if(t>0){const n=Yve(e);return Math.min(...n)>=t}return!0}function GS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Jve(e){return(String(e).split(".")[1]||"").length}function Wve(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Hz=Tz,Yz=Oz,Zve=Lz,zz=Pz,Xve=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Jz=Xve.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Yb="Switch",[Kve]=la(Yb),[Vve,qve]=Kve(Yb),Wz=b.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:A,defaultChecked:i,required:a,disabled:c,value:f="on",onCheckedChange:h,form:m,...I}=e,[v,k]=b.useState(null),D=ir(t,P=>k(P)),R=b.useRef(!1),F=v?m||!!v.closest("form"):!0,[N,T]=yl({prop:A,defaultProp:i??!1,onChange:h,caller:Yb});return p.jsxs(Vve,{scope:n,checked:N,disabled:c,children:[p.jsx(Jz.button,{type:"button",role:"switch","aria-checked":N,"aria-required":a,"data-state":Vz(N),"data-disabled":c?"":void 0,disabled:c,value:f,...I,ref:D,onClick:Vt(e.onClick,P=>{T(G=>!G),F&&(R.current=P.isPropagationStopped(),R.current||P.stopPropagation())})}),F&&p.jsx(Kz,{control:v,bubbles:!R.current,name:r,value:f,checked:N,required:a,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});Wz.displayName=Yb;var Zz="SwitchThumb",Xz=b.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,A=qve(Zz,n);return p.jsx(Jz.span,{"data-state":Vz(A.checked),"data-disabled":A.disabled?"":void 0,...r,ref:t})});Xz.displayName=Zz;var $ve="SwitchBubbleInput",Kz=b.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...A},i)=>{const a=b.useRef(null),c=ir(a,i),f=W8(n),h=Z8(t);return b.useEffect(()=>{const m=a.current;if(!m)return;const I=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(I,"checked").set;if(f!==n&&v){const k=new Event("click",{bubbles:r});v.call(m,n),m.dispatchEvent(k)}},[f,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...A,tabIndex:-1,ref:c,style:{...A.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Kz.displayName=$ve;function Vz(e){return e?"checked":"unchecked"}var ebe=Wz,tbe=Xz,nbe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rbe=nbe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qz="Toggle",HS=b.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:A,...i}=e,[a,c]=yl({prop:n,onChange:A,defaultProp:r??!1,caller:qz});return p.jsx(rbe.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:Vt(e.onClick,()=>{e.disabled||c(!a)})})});HS.displayName=qz;var YS=HS,obe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$z=obe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),rf="ToggleGroup",[eJ]=la(rf,[xb]),tJ=xb(),zS=vt.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const A=r;return p.jsx(ibe,{...A,ref:t})}if(n==="multiple"){const A=r;return p.jsx(Abe,{...A,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${rf}\``)});zS.displayName=rf;var[nJ,rJ]=eJ(rf),ibe=vt.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:A=()=>{},...i}=e,[a,c]=yl({prop:n,defaultProp:r??"",onChange:A,caller:rf});return p.jsx(nJ,{scope:e.__scopeToggleGroup,type:"single",value:vt.useMemo(()=>a?[a]:[],[a]),onItemActivate:c,onItemDeactivate:vt.useCallback(()=>c(""),[c]),children:p.jsx(oJ,{...i,ref:t})})}),Abe=vt.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:A=()=>{},...i}=e,[a,c]=yl({prop:n,defaultProp:r??[],onChange:A,caller:rf}),f=vt.useCallback(m=>c((I=[])=>[...I,m]),[c]),h=vt.useCallback(m=>c((I=[])=>I.filter(v=>v!==m)),[c]);return p.jsx(nJ,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:f,onItemDeactivate:h,children:p.jsx(oJ,{...i,ref:t})})});zS.displayName=rf;var[sbe,abe]=eJ(rf),oJ=vt.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:A=!0,orientation:i,dir:a,loop:c=!0,...f}=e,h=tJ(n),m=hp(a),I={role:"group",dir:m,...f};return p.jsx(sbe,{scope:n,rovingFocus:A,disabled:r,children:A?p.jsx(bH,{asChild:!0,...h,orientation:i,dir:m,loop:c,children:p.jsx($z.div,{...I,ref:t})}):p.jsx($z.div,{...I,ref:t})})}),zb="ToggleGroupItem",iJ=vt.forwardRef((e,t)=>{const n=rJ(zb,e.__scopeToggleGroup),r=abe(zb,e.__scopeToggleGroup),A=tJ(e.__scopeToggleGroup),i=n.value.includes(e.value),a=r.disabled||e.disabled,c={...e,pressed:i,disabled:a},f=vt.useRef(null);return r.rovingFocus?p.jsx(QH,{asChild:!0,...A,focusable:!a,active:i,ref:f,children:p.jsx(AJ,{...c,ref:t})}):p.jsx(AJ,{...c,ref:t})});iJ.displayName=zb;var AJ=vt.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...A}=e,i=rJ(zb,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},c=i.type==="single"?a:void 0;return p.jsx(HS,{...c,...A,ref:t,onPressedChange:f=>{f?i.onItemActivate(r):i.onItemDeactivate(r)}})}),JS=zS,Sp=iJ,lbe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cbe=lbe.reduce((e,t)=>{const n=Uo(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),[Jb]=la("Tooltip",[$d]),Wb=$d(),sJ="TooltipProvider",ube=700,WS="tooltip.open",[dbe,ZS]=Jb(sJ),aJ=e=>{const{__scopeTooltip:t,delayDuration:n=ube,skipDelayDuration:r=300,disableHoverableContent:A=!1,children:i}=e,a=b.useRef(!0),c=b.useRef(!1),f=b.useRef(0);return b.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),p.jsx(dbe,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:b.useCallback(()=>{window.clearTimeout(f.current),a.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:b.useCallback(h=>{c.current=h},[]),disableHoverableContent:A,children:i})};aJ.displayName=sJ;var aI="Tooltip",[fbe,lI]=Jb(aI),lJ=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:A,onOpenChange:i,disableHoverableContent:a,delayDuration:c}=e,f=ZS(aI,e.__scopeTooltip),h=Wb(t),[m,I]=b.useState(null),v=$A(),k=b.useRef(0),D=a??f.disableHoverableContent,R=c??f.delayDuration,F=b.useRef(!1),[N,T]=yl({prop:r,defaultProp:A??!1,onChange:Z=>{Z?(f.onOpen(),document.dispatchEvent(new CustomEvent(WS))):f.onClose(),i==null||i(Z)},caller:aI}),P=b.useMemo(()=>N?F.current?"delayed-open":"instant-open":"closed",[N]),G=b.useCallback(()=>{window.clearTimeout(k.current),k.current=0,F.current=!1,T(!0)},[T]),Y=b.useCallback(()=>{window.clearTimeout(k.current),k.current=0,T(!1)},[T]),z=b.useCallback(()=>{window.clearTimeout(k.current),k.current=window.setTimeout(()=>{F.current=!0,T(!0),k.current=0},R)},[R,T]);return b.useEffect(()=>()=>{k.current&&(window.clearTimeout(k.current),k.current=0)},[]),p.jsx(bb,{...h,children:p.jsx(fbe,{scope:t,contentId:v,open:N,stateAttribute:P,trigger:m,onTriggerChange:I,onTriggerEnter:b.useCallback(()=>{f.isOpenDelayedRef.current?z():G()},[f.isOpenDelayedRef,z,G]),onTriggerLeave:b.useCallback(()=>{D?Y():(window.clearTimeout(k.current),k.current=0)},[Y,D]),onOpen:G,onClose:Y,disableHoverableContent:D,children:n})})};lJ.displayName=aI;var XS="TooltipTrigger",cJ=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,A=lI(XS,n),i=ZS(XS,n),a=Wb(n),c=b.useRef(null),f=ir(t,c,A.onTriggerChange),h=b.useRef(!1),m=b.useRef(!1),I=b.useCallback(()=>h.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",I),[I]),p.jsx(XE,{asChild:!0,...a,children:p.jsx(cbe.button,{"aria-describedby":A.open?A.contentId:void 0,"data-state":A.stateAttribute,...r,ref:f,onPointerMove:Vt(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!i.isPointerInTransitRef.current&&(A.onTriggerEnter(),m.current=!0)}),onPointerLeave:Vt(e.onPointerLeave,()=>{A.onTriggerLeave(),m.current=!1}),onPointerDown:Vt(e.onPointerDown,()=>{A.open&&A.onClose(),h.current=!0,document.addEventListener("pointerup",I,{once:!0})}),onFocus:Vt(e.onFocus,()=>{h.current||A.onOpen()}),onBlur:Vt(e.onBlur,A.onClose),onClick:Vt(e.onClick,A.onClose)})})});cJ.displayName=XS;var KS="TooltipPortal",[gbe,hbe]=Jb(KS,{forceMount:void 0}),uJ=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:A}=e,i=lI(KS,t);return p.jsx(gbe,{scope:t,forceMount:n,children:p.jsx(hs,{present:n||i.open,children:p.jsx(Mg,{asChild:!0,container:A,children:r})})})};uJ.displayName=KS;var Dp="TooltipContent",dJ=b.forwardRef((e,t)=>{const n=hbe(Dp,e.__scopeTooltip),{forceMount:r=n.forceMount,side:A="top",...i}=e,a=lI(Dp,e.__scopeTooltip);return p.jsx(hs,{present:r||a.open,children:a.disableHoverableContent?p.jsx(fJ,{side:A,...i,ref:t}):p.jsx(pbe,{side:A,...i,ref:t})})}),pbe=b.forwardRef((e,t)=>{const n=lI(Dp,e.__scopeTooltip),r=ZS(Dp,e.__scopeTooltip),A=b.useRef(null),i=ir(t,A),[a,c]=b.useState(null),{trigger:f,onClose:h}=n,m=A.current,{onPointerInTransitChange:I}=r,v=b.useCallback(()=>{c(null),I(!1)},[I]),k=b.useCallback((D,R)=>{const F=D.currentTarget,N={x:D.clientX,y:D.clientY},T=Cbe(N,F.getBoundingClientRect()),P=Bbe(N,T),G=ybe(R.getBoundingClientRect()),Y=bbe([...P,...G]);c(Y),I(!0)},[I]);return b.useEffect(()=>()=>v(),[v]),b.useEffect(()=>{if(f&&m){const D=F=>k(F,m),R=F=>k(F,f);return f.addEventListener("pointerleave",D),m.addEventListener("pointerleave",R),()=>{f.removeEventListener("pointerleave",D),m.removeEventListener("pointerleave",R)}}},[f,m,k,v]),b.useEffect(()=>{if(a){const D=R=>{const F=R.target,N={x:R.clientX,y:R.clientY},T=(f==null?void 0:f.contains(F))||(m==null?void 0:m.contains(F)),P=!vbe(N,a);T?v():P&&(v(),h())};return document.addEventListener("pointermove",D),()=>document.removeEventListener("pointermove",D)}},[f,m,a,h,v]),p.jsx(fJ,{...e,ref:i})}),[mbe,Ebe]=Jb(aI,{isInside:!1}),Ibe=PU("TooltipContent"),fJ=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":A,onEscapeKeyDown:i,onPointerDownOutside:a,...c}=e,f=lI(Dp,n),h=Wb(n),{onClose:m}=f;return b.useEffect(()=>(document.addEventListener(WS,m),()=>document.removeEventListener(WS,m)),[m]),b.useEffect(()=>{if(f.trigger){const I=v=>{var k;(k=v.target)!=null&&k.contains(f.trigger)&&m()};return window.addEventListener("scroll",I,{capture:!0}),()=>window.removeEventListener("scroll",I,{capture:!0})}},[f.trigger,m]),p.jsx(pp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:I=>I.preventDefault(),onDismiss:m,children:p.jsxs(Qb,{"data-state":f.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Ibe,{children:r}),p.jsx(mbe,{scope:n,isInside:!0,children:p.jsx(HU,{id:f.contentId,role:"tooltip",children:A||r})})]})})});dJ.displayName=Dp;var gJ="TooltipArrow",hJ=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,A=Wb(n);return Ebe(gJ,n).isInside?null:p.jsx(wb,{...A,...r,ref:t})});hJ.displayName=gJ;function Cbe(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),A=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,A,i)){case i:return"left";case A:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Bbe(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ybe(e){const{top:t,right:n,bottom:r,left:A}=e;return[{x:A,y:t},{x:n,y:t},{x:n,y:r},{x:A,y:r}]}function vbe(e,t){const{x:n,y:r}=e;let A=!1;for(let i=0,a=t.length-1;ir!=v>r&&n<(I-h)*(r-m)/(v-m)+h&&(A=!A)}return A}function bbe(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),Qbe(t)}function Qbe(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(A.y-a.y)>=(i.y-a.y)*(A.x-a.x))t.pop();else break}t.push(A)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const A=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(A.y-a.y)>=(i.y-a.y)*(A.x-a.x))n.pop();else break}n.push(A)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var wbe=aJ,xbe=lJ,_be=cJ,kbe=uJ,Sbe=dJ,Dbe=hJ,pJ={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;aVS.includes(t))}function Af({className:e,customProperties:t,...n}){const r=uI({allowArbitraryValues:!0,className:e,...n}),A=Hbe({customProperties:t,...n});return[r,A]}function uI({allowArbitraryValues:e,value:t,className:n,propValues:r,parseValue:A=i=>i}){const i=[];if(t){if(typeof t=="string"&&r.includes(t))return bJ(n,t,A);if(cI(t)){const a=t;for(const c in a){if(!vJ(a,c)||!VS.includes(c))continue;const f=a[c];if(f!==void 0){if(r.includes(f)){const h=bJ(n,f,A),m=c==="initial"?h:`${c}:${h}`;i.push(m)}else if(e){const h=c==="initial"?n:`${c}:${n}`;i.push(h)}}}return i.join(" ")}if(e)return n}}function bJ(e,t,n){const r=e?"-":"",A=n(t),i=A==null?void 0:A.startsWith("-"),a=i?"-":"",c=i?A==null?void 0:A.substring(1):A;return`${a}${e}${r}${c}`}function Hbe({customProperties:e,value:t,propValues:n,parseValue:r=A=>A}){let A={};if(!(!t||typeof t=="string"&&n.includes(t))){if(typeof t=="string"&&(A=Object.fromEntries(e.map(i=>[i,t]))),cI(t)){const i=t;for(const a in i){if(!vJ(i,a)||!VS.includes(a))continue;const c=i[a];if(!n.includes(c))for(const f of e)A={[a==="initial"?f:`${f}-${a}`]:c,...A}}}for(const i in A){const a=A[i];a!==void 0&&(A[i]=r(a))}return A}}function dI(...e){let t={};for(const n of e)n&&(t={...t,...n});return Object.keys(t).length?t:void 0}function Ybe(...e){return Object.assign({},...e)}function Fo(e,...t){let n,r;const A={...e},i=Ybe(...t);for(const a in i){let c=A[a];const f=i[a];if(f.default!==void 0&&c===void 0&&(c=f.default),f.type==="enum"&&![f.default,...f.values].includes(c)&&!cI(c)&&(c=f.default),A[a]=c,"className"in f&&f.className){delete A[a];const h="responsive"in f;if(!c||cI(c)&&!h)continue;if(cI(c)&&(f.default!==void 0&&c.initial===void 0&&(c.initial=f.default),f.type==="enum"&&([f.default,...f.values].includes(c.initial)||(c.initial=f.default))),f.type==="enum"){const m=uI({allowArbitraryValues:!1,value:c,className:f.className,propValues:f.values,parseValue:f.parseValue});n=_n(n,m);continue}if(f.type==="string"||f.type==="enum | string"){const m=f.type==="string"?[]:f.values,[I,v]=Af({className:f.className,customProperties:f.customProperties,propValues:m,parseValue:f.parseValue,value:c});r=dI(r,v),n=_n(n,I);continue}if(f.type==="boolean"&&c){n=_n(n,f.className);continue}}}return A.className=_n(n,e.className),A.style=dI(r,e.style),A}const Ug=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],ts={m:{type:"enum | string",values:Ug,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:Ug,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:Ug,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:Ug,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:Ug,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:Ug,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:Ug,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}},QJ=b.forwardRef((e,t)=>{const{children:n,className:r,asChild:A,as:i="h1",color:a,...c}=Fo(e,Gbe,ts);return b.createElement(Xd,{"data-accent-color":a,...c,ref:t,className:_n("rt-Heading",r)},A?n:b.createElement(i,null,n))});QJ.displayName="Heading";const zbe=["span","div","label","p"],Jbe=["1","2","3","4","5","6","7","8","9"],Wbe={as:{type:"enum",values:zbe,default:"span"},...Ql,size:{type:"enum",className:"rt-r-size",values:Jbe,responsive:!0},...yJ,...IJ,...EJ,...BJ,...CJ,...ca,...of},be=b.forwardRef((e,t)=>{const{children:n,className:r,asChild:A,as:i="span",color:a,...c}=Fo(e,Wbe,ts);return b.createElement(Xd,{"data-accent-color":a,...c,ref:t,className:_n("rt-Text",r)},A?n:b.createElement(i,null,n))});be.displayName="Text";function Zbe(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}const Xbe=["none","small","medium","large","full"],Gg={radius:{type:"enum",values:Xbe,default:void 0}},Ha={hasBackground:{default:!0},appearance:{default:"inherit"},accentColor:{default:"indigo"},grayColor:{default:"auto"},panelBackground:{default:"translucent"},radius:{default:"medium"},scaling:{default:"100%"}},Rp=()=>{},Xb=b.createContext(void 0);function wJ(){const e=b.useContext(Xb);if(e===void 0)throw new Error("`useThemeContext` must be used within a `Theme`");return e}const sf=b.forwardRef((e,t)=>b.useContext(Xb)===void 0?b.createElement(wbe,{delayDuration:200},b.createElement(zme,{dir:"ltr"},b.createElement(xJ,{...e,ref:t}))):b.createElement(qS,{...e,ref:t}));sf.displayName="Theme";const xJ=b.forwardRef((e,t)=>{const{appearance:n=Ha.appearance.default,accentColor:r=Ha.accentColor.default,grayColor:A=Ha.grayColor.default,panelBackground:i=Ha.panelBackground.default,radius:a=Ha.radius.default,scaling:c=Ha.scaling.default,hasBackground:f=Ha.hasBackground.default,...h}=e,[m,I]=b.useState(n);b.useEffect(()=>I(n),[n]);const[v,k]=b.useState(r);b.useEffect(()=>k(r),[r]);const[D,R]=b.useState(A);b.useEffect(()=>R(A),[A]);const[F,N]=b.useState(i);b.useEffect(()=>N(i),[i]);const[T,P]=b.useState(a);b.useEffect(()=>P(a),[a]);const[G,Y]=b.useState(c);return b.useEffect(()=>Y(c),[c]),b.createElement(qS,{...h,ref:t,isRoot:!0,hasBackground:f,appearance:m,accentColor:v,grayColor:D,panelBackground:F,radius:T,scaling:G,onAppearanceChange:I,onAccentColorChange:k,onGrayColorChange:R,onPanelBackgroundChange:N,onRadiusChange:P,onScalingChange:Y})});xJ.displayName="ThemeRoot";const qS=b.forwardRef((e,t)=>{const n=b.useContext(Xb),{asChild:r,isRoot:A,hasBackground:i,appearance:a=(n==null?void 0:n.appearance)??Ha.appearance.default,accentColor:c=(n==null?void 0:n.accentColor)??Ha.accentColor.default,grayColor:f=(n==null?void 0:n.resolvedGrayColor)??Ha.grayColor.default,panelBackground:h=(n==null?void 0:n.panelBackground)??Ha.panelBackground.default,radius:m=(n==null?void 0:n.radius)??Ha.radius.default,scaling:I=(n==null?void 0:n.scaling)??Ha.scaling.default,onAppearanceChange:v=Rp,onAccentColorChange:k=Rp,onGrayColorChange:D=Rp,onPanelBackgroundChange:R=Rp,onRadiusChange:F=Rp,onScalingChange:N=Rp,...T}=e,P=r?Xd:"div",G=f==="auto"?Zbe(c):f,Y=e.appearance==="light"||e.appearance==="dark",z=i===void 0?A||Y:i;return b.createElement(Xb.Provider,{value:b.useMemo(()=>({appearance:a,accentColor:c,grayColor:f,resolvedGrayColor:G,panelBackground:h,radius:m,scaling:I,onAppearanceChange:v,onAccentColorChange:k,onGrayColorChange:D,onPanelBackgroundChange:R,onRadiusChange:F,onScalingChange:N}),[a,c,f,G,h,m,I,v,k,D,R,F,N])},b.createElement(P,{"data-is-root-theme":A?"true":"false","data-accent-color":c,"data-gray-color":G,"data-has-background":z?"true":"false","data-panel-background":h,"data-radius":m,"data-scaling":I,ref:t,...T,className:_n("radix-themes",{light:a==="light",dark:a==="dark"},T.className)}))});qS.displayName="ThemeImpl";const Tp=e=>{if(!b.isValidElement(e))throw Error(`Expected a single React Element child, but got: ${b.Children.toArray(e).map(t=>typeof t=="object"&&"type"in t&&typeof t.type=="string"?t.type:typeof t).join(", ")}`);return e};function _J(e,t){const{asChild:n,children:r}=e;if(!n)return typeof t=="function"?t(r):t;const A=b.Children.only(r);return b.cloneElement(A,{children:typeof t=="function"?t(A.props.children):t})}const $S=Xd,Kbe=["div","span"],Vbe=["none","inline","inline-block","block","contents"],qbe={as:{type:"enum",values:Kbe,default:"div"},...Ql,display:{type:"enum",className:"rt-r-display",values:Vbe,responsive:!0}},Hg=["0","1","2","3","4","5","6","7","8","9"],fI={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:Hg,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:Hg,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:Hg,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:Hg,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:Hg,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:Hg,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:Hg,responsive:!0}},eD=["visible","hidden","clip","scroll","auto"],$be=["static","relative","absolute","fixed","sticky"],gI=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],eQe=["0","1"],tQe=["0","1"],Kb={...fI,...wl,...Zb,position:{type:"enum",className:"rt-r-position",values:$be,responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:gI,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:gI,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:gI,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:gI,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:gI,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:eD,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:eD,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:eD,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:eQe,responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:tQe,responsive:!0},gridArea:{type:"string",className:"rt-r-ga",customProperties:["--grid-area"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0}},rr=b.forwardRef((e,t)=>{const{className:n,asChild:r,as:A="div",...i}=Fo(e,qbe,Kb,ts);return b.createElement(r?$S:A,{...i,ref:t,className:_n("rt-Box",n)})});rr.displayName="Box";const nQe=["1","2","3","4"],rQe=["classic","solid","soft","surface","outline","ghost"],kJ={...Ql,size:{type:"enum",className:"rt-r-size",values:nQe,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:rQe,default:"solid"},...Fbe,...of,...Gg,loading:{type:"boolean",className:"rt-loading",default:!1}},tD=["0","1","2","3","4","5","6","7","8","9"],SJ={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:tD,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:tD,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:tD,responsive:!0}},oQe=["div","span"],iQe=["none","inline-flex","flex"],AQe=["row","column","row-reverse","column-reverse"],sQe=["start","center","end","baseline","stretch"],aQe=["start","center","end","between"],lQe=["nowrap","wrap","wrap-reverse"],DJ={as:{type:"enum",values:oQe,default:"div"},...Ql,display:{type:"enum",className:"rt-r-display",values:iQe,responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:AQe,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:sQe,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:aQe,parseValue:cQe,responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:lQe,responsive:!0},...SJ};function cQe(e){return e==="between"?"space-between":e}const xe=b.forwardRef((e,t)=>{const{className:n,asChild:r,as:A="div",...i}=Fo(e,DJ,Kb,ts);return b.createElement(r?$S:A,{...i,ref:t,className:_n("rt-Flex",n)})});xe.displayName="Flex";const uQe=["1","2","3"],dQe={size:{type:"enum",className:"rt-r-size",values:uQe,default:"2",responsive:!0},loading:{type:"boolean",default:!0}},Vb=b.forwardRef((e,t)=>{const{className:n,children:r,loading:A,...i}=Fo(e,dQe,ts);if(!A)return r;const a=b.createElement("span",{...i,ref:t,className:_n("rt-Spinner",n)},b.createElement("span",{className:"rt-SpinnerLeaf"}),b.createElement("span",{className:"rt-SpinnerLeaf"}),b.createElement("span",{className:"rt-SpinnerLeaf"}),b.createElement("span",{className:"rt-SpinnerLeaf"}),b.createElement("span",{className:"rt-SpinnerLeaf"}),b.createElement("span",{className:"rt-SpinnerLeaf"}),b.createElement("span",{className:"rt-SpinnerLeaf"}),b.createElement("span",{className:"rt-SpinnerLeaf"}));return r===void 0?a:b.createElement(xe,{asChild:!0,position:"relative",align:"center",justify:"center"},b.createElement("span",null,b.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:void 0},r),b.createElement(xe,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},b.createElement("span",null,a))))});Vb.displayName="Spinner";const fQe=HU;function gQe(e,t){if(e!==void 0)return typeof e=="string"?t(e):Object.fromEntries(Object.entries(e).map(([n,r])=>[n,t(r)]))}function hQe(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}const nD=b.forwardRef((e,t)=>{const{size:n=kJ.size.default}=e,{className:r,children:A,asChild:i,color:a,radius:c,disabled:f=e.loading,...h}=Fo(e,kJ,ts),m=i?Xd:"button";return b.createElement(m,{"data-disabled":f||void 0,"data-accent-color":a,"data-radius":c,...h,ref:t,className:_n("rt-reset","rt-BaseButton",r),disabled:f},e.loading?b.createElement(b.Fragment,null,b.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},A),b.createElement(fQe,null,A),b.createElement(xe,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},b.createElement("span",null,b.createElement(Vb,{size:gQe(n,hQe)})))):A)});nD.displayName="BaseButton";const xl=b.forwardRef(({className:e,...t},n)=>b.createElement(nD,{...t,ref:n,className:_n("rt-Button",e)}));xl.displayName="Button";const pQe=["1","2","3","4","5"],mQe=["surface","classic","ghost"],EQe={...Ql,size:{type:"enum",className:"rt-r-size",values:pQe,default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:mQe,default:"surface"}},hI=b.forwardRef((e,t)=>{const{asChild:n,className:r,...A}=Fo(e,EQe,ts),i=n?Xd:"div";return b.createElement(i,{ref:t,...A,className:_n("rt-reset","rt-BaseCard","rt-Card",r)})});hI.displayName="Card";const IQe=["div","span"],CQe=["none","inline-grid","grid"],BQe=["1","2","3","4","5","6","7","8","9"],yQe=["1","2","3","4","5","6","7","8","9"],vQe=["row","column","dense","row-dense","column-dense"],bQe=["start","center","end","baseline","stretch"],QQe=["start","center","end","between"],RJ={as:{type:"enum",values:IQe,default:"div"},...Ql,display:{type:"enum",className:"rt-r-display",values:CQe,responsive:!0},areas:{type:"string",className:"rt-r-gta",customProperties:["--grid-template-areas"],responsive:!0},columns:{type:"enum | string",className:"rt-r-gtc",customProperties:["--grid-template-columns"],values:BQe,parseValue:TJ,responsive:!0},rows:{type:"enum | string",className:"rt-r-gtr",customProperties:["--grid-template-rows"],values:yQe,parseValue:TJ,responsive:!0},flow:{type:"enum",className:"rt-r-gaf",values:vQe,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:bQe,responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:QQe,parseValue:wQe,responsive:!0},...SJ};function TJ(e){return RJ.columns.values.includes(e)?e:e!=null&&e.match(/^\d+$/)?`repeat(${e}, minmax(0, 1fr))`:e}function wQe(e){return e==="between"?"space-between":e}const lA=b.forwardRef((e,t)=>{const{className:n,asChild:r,as:A="div",...i}=Fo(e,RJ,Kb,ts);return b.createElement(r?$S:A,{...i,ref:t,className:_n("rt-Grid",n)})});lA.displayName="Grid";const xQe=vt.forwardRef((e,t)=>vt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},vt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z"})));xQe.displayName="ThickDividerHorizontalIcon";const qb=vt.forwardRef((e,t)=>vt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},vt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"})));qb.displayName="ThickCheckIcon";const rD=vt.forwardRef((e,t)=>vt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},vt.createElement("path",{d:"M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z"})));rD.displayName="ChevronDownIcon";const MJ=vt.forwardRef((e,t)=>vt.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},vt.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z"})));MJ.displayName="ThickChevronRightIcon";const _Qe=["1","2","3","4"],kQe=["none","initial"],SQe=["left","center","right"],DQe={...Ql,size:{type:"enum",className:"rt-r-size",values:_Qe,default:"4",responsive:!0},display:{type:"enum",className:"rt-r-display",values:kQe,parseValue:RQe,responsive:!0},align:{type:"enum",className:"rt-r-ai",values:SQe,parseValue:TQe,responsive:!0}};function RQe(e){return e==="initial"?"flex":e}function TQe(e){return e==="left"?"start":e==="right"?"end":e}const FJ=b.forwardRef(({width:e,minWidth:t,maxWidth:n,height:r,minHeight:A,maxHeight:i,...a},c)=>{const{asChild:f,children:h,className:m,...I}=Fo(a,DQe,Kb,ts),{className:v,style:k}=Fo({width:e,minWidth:t,maxWidth:n,height:r,minHeight:A,maxHeight:i},wl,Zb),D=f?Xd:"div";return b.createElement(D,{...I,ref:c,className:_n("rt-Container",m)},_J({asChild:f,children:h},R=>b.createElement("div",{className:_n("rt-ContainerInner",v),style:k},R)))});FJ.displayName="Container";const MQe=["1","2","3"],pI={...Ql,size:{values:MQe,default:"1"},...Gg,scrollbars:{default:"both"}};function FQe(e){const{m:t,mx:n,my:r,mt:A,mr:i,mb:a,ml:c,...f}=e;return{m:t,mx:n,my:r,mt:A,mr:i,mb:a,ml:c,rest:f}}const Yg=ts.m.values;function NQe(e){const[t,n]=Af({className:"rt-r-m",customProperties:["--margin"],propValues:Yg,value:e.m}),[r,A]=Af({className:"rt-r-mx",customProperties:["--margin-left","--margin-right"],propValues:Yg,value:e.mx}),[i,a]=Af({className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"],propValues:Yg,value:e.my}),[c,f]=Af({className:"rt-r-mt",customProperties:["--margin-top"],propValues:Yg,value:e.mt}),[h,m]=Af({className:"rt-r-mr",customProperties:["--margin-right"],propValues:Yg,value:e.mr}),[I,v]=Af({className:"rt-r-mb",customProperties:["--margin-bottom"],propValues:Yg,value:e.mb}),[k,D]=Af({className:"rt-r-ml",customProperties:["--margin-left"],propValues:Yg,value:e.ml});return[_n(t,r,i,c,h,I,k),dI(n,A,a,f,m,v,D)]}const $b=b.forwardRef((e,t)=>{const{rest:n,...r}=FQe(e),[A,i]=NQe(r),{asChild:a,children:c,className:f,style:h,type:m,scrollHideDelay:I=m!=="scroll"?0:void 0,dir:v,size:k=pI.size.default,radius:D=pI.radius.default,scrollbars:R=pI.scrollbars.default,...F}=n;return b.createElement(ez,{type:m,scrollHideDelay:I,className:_n("rt-ScrollAreaRoot",A,f),style:dI(i,h),asChild:a},_J({asChild:a,children:c},N=>b.createElement(b.Fragment,null,b.createElement(tz,{...F,ref:t,className:"rt-ScrollAreaViewport"},N),b.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),R!=="vertical"?b.createElement(DS,{"data-radius":D,orientation:"horizontal",className:_n("rt-ScrollAreaScrollbar",uI({className:"rt-r-size",value:k,propValues:pI.size.values}))},b.createElement(RS,{className:"rt-ScrollAreaThumb"})):null,R!=="horizontal"?b.createElement(DS,{"data-radius":D,orientation:"vertical",className:_n("rt-ScrollAreaScrollbar",uI({className:"rt-r-size",value:k,propValues:pI.size.values}))},b.createElement(RS,{className:"rt-ScrollAreaThumb"})):null,R==="both"?b.createElement(Xye,{className:"rt-ScrollAreaCorner"}):null)))});$b.displayName="ScrollArea";const jQe=["1","2"],OQe=["solid","soft"],mI={size:{type:"enum",className:"rt-r-size",values:jQe,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:OQe,default:"solid"},...ca,...of},LQe={...Ql,...ca},PQe={...ca},UQe={...ca},NJ=e=>b.createElement(RG,{...e,modal:!0});NJ.displayName="Dialog.Root";const jJ=b.forwardRef(({children:e,...t},n)=>b.createElement(lIe,{...t,ref:n,asChild:!0},Tp(e)));jJ.displayName="Dialog.Trigger";const OJ=b.forwardRef(({align:e,...t},n)=>{const{align:r,...A}=Mbe,{className:i}=Fo({align:e},{align:r}),{className:a,forceMount:c,container:f,...h}=Fo(t,A);return b.createElement(TG,{container:f,forceMount:c},b.createElement(sf,{asChild:!0},b.createElement(MG,{className:"rt-BaseDialogOverlay rt-DialogOverlay"},b.createElement("div",{className:"rt-BaseDialogScroll rt-DialogScroll"},b.createElement("div",{className:`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${i}`},b.createElement(FG,{...h,ref:n,className:_n("rt-BaseDialogContent","rt-DialogContent",a)}))))))});OJ.displayName="Dialog.Content";const LJ=b.forwardRef((e,t)=>b.createElement(cIe,{asChild:!0},b.createElement(QJ,{size:"5",mb:"3",trim:"start",...e,asChild:!1,ref:t})));LJ.displayName="Dialog.Title";const GQe=b.forwardRef((e,t)=>b.createElement(uIe,{asChild:!0},b.createElement(be,{as:"p",size:"3",...e,asChild:!1,ref:t})));GQe.displayName="Dialog.Description";const PJ=b.forwardRef(({children:e,...t},n)=>b.createElement(dIe,{...t,ref:n,asChild:!0},Tp(e)));PJ.displayName="Dialog.Close";const UJ=e=>b.createElement(fY,{...e});UJ.displayName="DropdownMenu.Root";const GJ=b.forwardRef(({children:e,...t},n)=>b.createElement(gY,{...t,ref:n,asChild:!0},Tp(e)));GJ.displayName="DropdownMenu.Trigger";const HJ=b.createContext({}),YJ=b.forwardRef((e,t)=>{const n=wJ(),{size:r=mI.size.default,variant:A=mI.variant.default,highContrast:i=mI.highContrast.default}=e,{className:a,children:c,color:f,container:h,forceMount:m,...I}=Fo(e,mI),v=f||n.accentColor;return b.createElement(CS,{container:h,forceMount:m},b.createElement(sf,{asChild:!0},b.createElement(hY,{"data-accent-color":v,align:"start",sideOffset:4,collisionPadding:10,...I,asChild:!1,ref:t,className:_n("rt-PopperContent","rt-BaseMenuContent","rt-DropdownMenuContent",a)},b.createElement($b,{type:"auto"},b.createElement("div",{className:_n("rt-BaseMenuViewport","rt-DropdownMenuViewport")},b.createElement(HJ.Provider,{value:b.useMemo(()=>({size:r,variant:A,color:v,highContrast:i}),[r,A,v,i])},c))))))});YJ.displayName="DropdownMenu.Content";const HQe=b.forwardRef(({className:e,...t},n)=>b.createElement(sye,{...t,asChild:!1,ref:n,className:_n("rt-BaseMenuLabel","rt-DropdownMenuLabel",e)}));HQe.displayName="DropdownMenu.Label";const zJ=b.forwardRef((e,t)=>{const{className:n,children:r,color:A=LQe.color.default,shortcut:i,...a}=e;return b.createElement(pY,{"data-accent-color":A,...a,ref:t,className:_n("rt-reset","rt-BaseMenuItem","rt-DropdownMenuItem",n)},b.createElement(xme,null,r),i&&b.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},i))});zJ.displayName="DropdownMenu.Item";const YQe=b.forwardRef(({className:e,...t},n)=>b.createElement(Aye,{...t,asChild:!1,ref:n,className:_n("rt-BaseMenuGroup","rt-DropdownMenuGroup",e)}));YQe.displayName="DropdownMenu.Group";const zQe=b.forwardRef(({className:e,...t},n)=>b.createElement(lye,{...t,asChild:!1,ref:n,className:_n("rt-BaseMenuRadioGroup","rt-DropdownMenuRadioGroup",e)}));zQe.displayName="DropdownMenu.RadioGroup";const JQe=b.forwardRef((e,t)=>{const{children:n,className:r,color:A=UQe.color.default,...i}=e;return b.createElement(cye,{...i,asChild:!1,ref:t,"data-accent-color":A,className:_n("rt-BaseMenuItem","rt-BaseMenuRadioItem","rt-DropdownMenuItem","rt-DropdownMenuRadioItem",r)},n,b.createElement(mY,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},b.createElement(qb,{className:"rt-BaseMenuItemIndicatorIcon rt-DropdownMenuItemIndicatorIcon"})))});JQe.displayName="DropdownMenu.RadioItem";const WQe=b.forwardRef((e,t)=>{const{children:n,className:r,shortcut:A,color:i=PQe.color.default,...a}=e;return b.createElement(aye,{...a,asChild:!1,ref:t,"data-accent-color":i,className:_n("rt-BaseMenuItem","rt-BaseMenuCheckboxItem","rt-DropdownMenuItem","rt-DropdownMenuCheckboxItem",r)},n,b.createElement(mY,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},b.createElement(qb,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})),A&&b.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},A))});WQe.displayName="DropdownMenu.CheckboxItem";const ZQe=b.forwardRef((e,t)=>{const{className:n,children:r,...A}=e;return b.createElement(dye,{...A,asChild:!1,ref:t,className:_n("rt-BaseMenuItem","rt-BaseMenuSubTrigger","rt-DropdownMenuItem","rt-DropdownMenuSubTrigger",n)},r,b.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},b.createElement(MJ,{className:"rt-BaseMenuSubTriggerIcon rt-DropdownMenuSubtriggerIcon"})))});ZQe.displayName="DropdownMenu.SubTrigger";const XQe=b.forwardRef((e,t)=>{const{size:n,variant:r,color:A,highContrast:i}=b.useContext(HJ),{className:a,children:c,container:f,forceMount:h,...m}=Fo({size:n,variant:r,color:A,highContrast:i,...e},mI);return b.createElement(CS,{container:f,forceMount:h},b.createElement(sf,{asChild:!0},b.createElement(fye,{"data-accent-color":A,alignOffset:-Number(n)*4,sideOffset:1,collisionPadding:10,...m,asChild:!1,ref:t,className:_n("rt-PopperContent","rt-BaseMenuContent","rt-BaseMenuSubContent","rt-DropdownMenuContent","rt-DropdownMenuSubContent",a)},b.createElement($b,{type:"auto"},b.createElement("div",{className:_n("rt-BaseMenuViewport","rt-DropdownMenuViewport")},c)))))});XQe.displayName="DropdownMenu.SubContent";const KQe=b.forwardRef(({className:e,...t},n)=>b.createElement(uye,{...t,asChild:!1,ref:n,className:_n("rt-BaseMenuSeparator","rt-DropdownMenuSeparator",e)}));KQe.displayName="DropdownMenu.Separator";const _l=b.forwardRef(({className:e,...t},n)=>b.createElement(nD,{...t,ref:n,className:_n("rt-IconButton",e)}));_l.displayName="IconButton";const VQe=["1","2","3","4"],qQe={...Ql,size:{type:"enum",className:"rt-r-size",values:VQe,default:"2",responsive:!0},width:wl.width,minWidth:wl.minWidth,maxWidth:{...wl.maxWidth,default:"480px"},...Zb},JJ=e=>b.createElement(yS,{...e});JJ.displayName="Popover.Root";const WJ=b.forwardRef(({children:e,...t},n)=>b.createElement(RY,{...t,ref:n,asChild:!0},Tp(e)));WJ.displayName="Popover.Trigger";const ZJ=b.forwardRef((e,t)=>{const{className:n,forceMount:r,container:A,...i}=Fo(e,qQe);return b.createElement(bS,{container:A,forceMount:r},b.createElement(sf,{asChild:!0},b.createElement(QS,{align:"start",sideOffset:8,collisionPadding:10,...i,ref:t,className:_n("rt-PopperContent","rt-PopoverContent",n)})))});ZJ.displayName="Popover.Content";const $Qe=b.forwardRef(({children:e,...t},n)=>b.createElement(xye,{...t,ref:n,asChild:!0},Tp(e)));$Qe.displayName="Popover.Close";const ewe=b.forwardRef(({children:e,...t},n)=>b.createElement(vS,{...t,ref:n}));ewe.displayName="Popover.Anchor";const twe=["1","2","3"],nwe=["classic","surface","soft"],rwe={size:{type:"enum",className:"rt-r-size",values:twe,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:nwe,default:"surface"},...ca,...of,...Gg,duration:{type:"string"}},af=b.forwardRef((e,t)=>{const{className:n,style:r,color:A,radius:i,duration:a,...c}=Fo(e,rwe,ts);return b.createElement(Fye,{"data-accent-color":A,"data-radius":i,ref:t,className:_n("rt-ProgressRoot",n),style:dI({"--progress-duration":"value"in c?void 0:a,"--progress-value":"value"in c?c.value:void 0,"--progress-max":"max"in c?c.max:void 0},r),...c,asChild:!1},b.createElement(Nye,{className:"rt-ProgressIndicator"}))});af.displayName="Progress";const Mp=b.forwardRef(({className:e,children:t,...n},r)=>b.createElement(Xd,{...n,ref:r,className:_n("rt-reset",e)},Tp(t)));Mp.displayName="Reset";const owe=["1","2","3"],oD={size:{type:"enum",className:"rt-r-size",values:owe,default:"2",responsive:!0}},iwe=["classic","surface","soft","ghost"],Awe={variant:{type:"enum",className:"rt-variant",values:iwe,default:"surface"},...ca,...Gg,placeholder:{type:"string"}},swe=["solid","soft"],awe={variant:{type:"enum",className:"rt-variant",values:swe,default:"solid"},...ca,...of},iD=b.createContext({}),AD=e=>{const{children:t,size:n=oD.size.default,...r}=e;return b.createElement(Ive,{...r},b.createElement(iD.Provider,{value:b.useMemo(()=>({size:n}),[n])},t))};AD.displayName="Select.Root";const sD=b.forwardRef((e,t)=>{const n=b.useContext(iD),{children:r,className:A,color:i,radius:a,placeholder:c,...f}=Fo({size:n==null?void 0:n.size,...e},{size:oD.size},Awe,ts);return b.createElement(Cve,{asChild:!0},b.createElement("button",{"data-accent-color":i,"data-radius":a,...f,ref:t,className:_n("rt-reset","rt-SelectTrigger",A)},b.createElement("span",{className:"rt-SelectTriggerInner"},b.createElement(Bve,{placeholder:c},r)),b.createElement(yve,{asChild:!0},b.createElement(rD,{className:"rt-SelectIcon"}))))});sD.displayName="Select.Trigger";const aD=b.forwardRef((e,t)=>{const n=b.useContext(iD),{className:r,children:A,color:i,container:a,...c}=Fo({size:n==null?void 0:n.size,...e},{size:oD.size},awe),f=wJ(),h=i||f.accentColor;return b.createElement(vve,{container:a},b.createElement(sf,{asChild:!0},b.createElement(bve,{"data-accent-color":h,sideOffset:4,...c,asChild:!1,ref:t,className:_n({"rt-PopperContent":c.position==="popper"},"rt-SelectContent",r)},b.createElement(ez,{type:"auto",className:"rt-ScrollAreaRoot"},b.createElement(Qve,{asChild:!0,className:"rt-SelectViewport"},b.createElement(tz,{className:"rt-ScrollAreaViewport",style:{overflowY:void 0}},A)),b.createElement(DS,{className:"rt-ScrollAreaScrollbar rt-r-size-1",orientation:"vertical"},b.createElement(RS,{className:"rt-ScrollAreaThumb"}))))))});aD.displayName="Select.Content";const EI=b.forwardRef((e,t)=>{const{className:n,children:r,...A}=e;return b.createElement(_ve,{...A,asChild:!1,ref:t,className:_n("rt-SelectItem",n)},b.createElement(Sve,{className:"rt-SelectItemIndicator"},b.createElement(qb,{className:"rt-SelectItemIndicatorIcon"})),b.createElement(kve,null,r))});EI.displayName="Select.Item";const lD=b.forwardRef(({className:e,...t},n)=>b.createElement(wve,{...t,asChild:!1,ref:n,className:_n("rt-SelectGroup",e)}));lD.displayName="Select.Group";const lwe=b.forwardRef(({className:e,...t},n)=>b.createElement(xve,{...t,asChild:!1,ref:n,className:_n("rt-SelectLabel",e)}));lwe.displayName="Select.Label";const cwe=b.forwardRef(({className:e,...t},n)=>b.createElement(Dve,{...t,asChild:!1,ref:n,className:_n("rt-SelectSeparator",e)}));cwe.displayName="Select.Separator";const uwe=["horizontal","vertical"],dwe=["1","2","3","4"],fwe={orientation:{type:"enum",className:"rt-r-orientation",values:uwe,default:"horizontal",responsive:!0},size:{type:"enum",className:"rt-r-size",values:dwe,default:"1",responsive:!0},color:{...ca.color,default:"gray"},decorative:{type:"boolean",default:!0}},Ya=b.forwardRef((e,t)=>{const{className:n,color:r,decorative:A,...i}=Fo(e,fwe,ts);return b.createElement("span",{"data-accent-color":r,role:A?void 0:"separator",...i,ref:t,className:_n("rt-Separator",n)})});Ya.displayName="Separator";const gwe=["1","2","3"],hwe=["classic","surface","soft"],pwe={size:{type:"enum",className:"rt-r-size",values:gwe,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:hwe,default:"surface"},...ca,...of,...Gg},XJ=b.forwardRef((e,t)=>{const{className:n,color:r,radius:A,tabIndex:i,...a}=Fo(e,pwe,ts);return b.createElement(Hz,{"data-accent-color":r,"data-radius":A,ref:t,...a,asChild:!1,className:_n("rt-SliderRoot",n)},b.createElement(Yz,{className:"rt-SliderTrack"},b.createElement(Zve,{className:_n("rt-SliderRange",{"rt-high-contrast":e.highContrast}),"data-inverted":a.inverted?"":void 0})),(a.value??a.defaultValue??[]).map((c,f)=>b.createElement(zz,{key:f,className:"rt-SliderThumb",...i!==void 0?{tabIndex:i}:void 0})))});XJ.displayName="Slider";const mwe=["1","2","3"],Ewe=["classic","surface","soft"],Iwe={size:{type:"enum",className:"rt-r-size",values:mwe,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:Ewe,default:"surface"},...ca,...of,...Gg},cD=b.forwardRef((e,t)=>{const{className:n,color:r,radius:A,...i}=Fo(e,Iwe,ts);return b.createElement(ebe,{"data-accent-color":r,"data-radius":A,...i,asChild:!1,ref:t,className:_n("rt-reset","rt-SwitchRoot",n)},b.createElement(tbe,{className:_n("rt-SwitchThumb",{"rt-high-contrast":e.highContrast})}))});cD.displayName="Switch";const Cwe=["1","2","3"],Bwe=["surface","ghost"],ywe=["auto","fixed"],uD={size:{type:"enum",className:"rt-r-size",values:Cwe,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:Bwe,default:"ghost"},layout:{type:"enum",className:"rt-r-tl",values:ywe,responsive:!0}},vwe=["start","center","end","baseline"],bwe={align:{type:"enum",className:"rt-r-va",values:vwe,parseValue:Qwe,responsive:!0}};function Qwe(e){return{baseline:"baseline",start:"top",center:"middle",end:"bottom"}[e]}const wwe=["start","center","end"],dD={justify:{type:"enum",className:"rt-r-ta",values:wwe,parseValue:xwe,responsive:!0},...wl,...fI};function xwe(e){return{start:"left",center:"center",end:"right"}[e]}const Fp=b.forwardRef((e,t)=>{const{layout:n,...r}=uD,{className:A,children:i,layout:a,...c}=Fo(e,r,ts),f=uI({value:a,className:uD.layout.className,propValues:uD.layout.values});return b.createElement("div",{ref:t,className:_n("rt-TableRoot",A),...c},b.createElement($b,null,b.createElement("table",{className:_n("rt-TableRootTable",f)},i)))});Fp.displayName="Table.Root";const zg=b.forwardRef(({className:e,...t},n)=>b.createElement("thead",{...t,ref:n,className:_n("rt-TableHeader",e)}));zg.displayName="Table.Header";const Np=b.forwardRef(({className:e,...t},n)=>b.createElement("tbody",{...t,ref:n,className:_n("rt-TableBody",e)}));Np.displayName="Table.Body";const za=b.forwardRef((e,t)=>{const{className:n,...r}=Fo(e,bwe);return b.createElement("tr",{...r,ref:t,className:_n("rt-TableRow",n)})});za.displayName="Table.Row";const Si=b.forwardRef((e,t)=>{const{className:n,...r}=Fo(e,dD);return b.createElement("td",{className:_n("rt-TableCell",n),ref:t,...r})});Si.displayName="Table.Cell";const jA=b.forwardRef((e,t)=>{const{className:n,...r}=Fo(e,dD);return b.createElement("th",{className:_n("rt-TableCell","rt-TableColumnHeaderCell",n),scope:"col",ref:t,...r})});jA.displayName="Table.ColumnHeaderCell";const eQ=b.forwardRef((e,t)=>{const{className:n,...r}=Fo(e,dD);return b.createElement("th",{className:_n("rt-TableCell","rt-TableRowHeaderCell",n),scope:"row",ref:t,...r})});eQ.displayName="Table.RowHeaderCell";const _we=["1","2","3"],kwe=["classic","surface","soft"],Swe={size:{type:"enum",className:"rt-r-size",values:_we,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:kwe,default:"surface"},...ca,...Gg},Dwe=["left","right"],Rwe={side:{type:"enum",values:Dwe},...ca,gap:DJ.gap,px:fI.px,pl:fI.pl,pr:fI.pr},fD=b.forwardRef((e,t)=>{const n=b.useRef(null),{children:r,className:A,color:i,radius:a,style:c,...f}=Fo(e,Swe,ts);return b.createElement("div",{"data-accent-color":i,"data-radius":a,style:c,className:_n("rt-TextFieldRoot",A),onPointerDown:h=>{const m=h.target;if(m.closest("input, button, a"))return;const I=n.current;if(!I)return;const v=m.closest(` - .rt-TextFieldSlot[data-side='right'], - .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left']) - `)?I.value.length:0;requestAnimationFrame(()=>{try{I.setSelectionRange(v,v)}catch{}I.focus()})}},b.createElement("input",{spellCheck:"false",...f,ref:gc(n,t),className:"rt-reset rt-TextFieldInput"}),r)});fD.displayName="TextField.Root";const tQ=b.forwardRef((e,t)=>{const{className:n,color:r,side:A,...i}=Fo(e,Rwe);return b.createElement("div",{"data-accent-color":r,"data-side":A,...i,ref:t,className:_n("rt-TextFieldSlot",n)})});tQ.displayName="TextField.Slot";const Twe={content:{type:"ReactNode",required:!0},width:wl.width,minWidth:wl.minWidth,maxWidth:{...wl.maxWidth,default:"360px"}},Ei=b.forwardRef((e,t)=>{const{children:n,className:r,open:A,defaultOpen:i,onOpenChange:a,delayDuration:c,disableHoverableContent:f,content:h,container:m,forceMount:I,...v}=Fo(e,Twe),k={open:A,defaultOpen:i,onOpenChange:a,delayDuration:c,disableHoverableContent:f};return b.createElement(xbe,{...k},b.createElement(_be,{asChild:!0},n),b.createElement(kbe,{container:m,forceMount:I},b.createElement(sf,{asChild:!0},b.createElement(Sbe,{sideOffset:4,collisionPadding:10,...v,asChild:!1,ref:t,className:_n("rt-TooltipContent",r)},b.createElement(be,{as:"p",className:"rt-TooltipText",size:"1"},h),b.createElement(Dbe,{className:"rt-TooltipArrow"})))))});Ei.displayName="Tooltip";const gD=new WeakMap,Mwe=new WeakMap,nQ={current:[]};let hD=!1,II=0;const CI=new Set,rQ=new Map;function KJ(e){for(const t of e){if(nQ.current.includes(t))continue;nQ.current.push(t),t.recompute();const n=Mwe.get(t);if(n)for(const r of n){const A=gD.get(r);A!=null&&A.length&&KJ(A)}}}function Fwe(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function Nwe(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function VJ(e){if(II>0&&!rQ.has(e)&&rQ.set(e,e.prevState),CI.add(e),!(II>0)&&!hD)try{for(hD=!0;CI.size>0;){const t=Array.from(CI);CI.clear();for(const n of t){const r=rQ.get(n)??n.prevState;n.prevState=r,Fwe(n)}for(const n of t){const r=gD.get(n);r&&(nQ.current.push(n),KJ(r))}for(const n of t){const r=gD.get(n);if(r)for(const A of r)Nwe(A)}}}finally{hD=!1,nQ.current=[],rQ.clear()}}function BI(e){II++;try{e()}finally{if(II--,II===0){const t=CI.values().next().value;t&&VJ(t)}}}function jwe(e){return typeof e=="function"}class Owe{constructor(t,n){this.listeners=new Set,this.subscribe=r=>{var A,i;this.listeners.add(r);const a=(i=(A=this.options)==null?void 0:A.onSubscribe)==null?void 0:i.call(A,r,this);return()=>{this.listeners.delete(r),a==null||a()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,A;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):jwe(t)?this.state=t(this.prevState):this.state=t,(A=(r=this.options)==null?void 0:r.onUpdate)==null||A.call(r),VJ(this)}}const lf="__TSR_index",qJ="popstate",$J="beforeunload";function Lwe(e){let t=e.getLocation();const n=new Set,r=a=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:a}))},A=a=>{e.notifyOnIndexChange??!0?r(a):t=e.getLocation()},i=async({task:a,navigateOpts:c,...f})=>{var I,v;if((c==null?void 0:c.ignoreBlocker)??!1){a();return}const h=((I=e.getBlockers)==null?void 0:I.call(e))??[],m=f.type==="PUSH"||f.type==="REPLACE";if(typeof document<"u"&&h.length&&m)for(const k of h){const D=oQ(f.path,f.state);if(await k.blockerFn({currentLocation:t,nextLocation:D,action:f.type})){(v=e.onBlocked)==null||v.call(e);return}}a()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:a=>(n.add(a),()=>{n.delete(a)}),push:(a,c,f)=>{const h=t.state[lf];c=eW(h+1,c),i({task:()=>{e.pushState(a,c),r({type:"PUSH"})},navigateOpts:f,type:"PUSH",path:a,state:c})},replace:(a,c,f)=>{const h=t.state[lf];c=eW(h,c),i({task:()=>{e.replaceState(a,c),r({type:"REPLACE"})},navigateOpts:f,type:"REPLACE",path:a,state:c})},go:(a,c)=>{i({task:()=>{e.go(a),A({type:"GO",index:a})},navigateOpts:c,type:"GO"})},back:a=>{i({task:()=>{e.back((a==null?void 0:a.ignoreBlocker)??!1),A({type:"BACK"})},navigateOpts:a,type:"BACK"})},forward:a=>{i({task:()=>{e.forward((a==null?void 0:a.ignoreBlocker)??!1),A({type:"FORWARD"})},navigateOpts:a,type:"FORWARD"})},canGoBack:()=>t.state[lf]!==0,createHref:a=>e.createHref(a),block:a=>{var f;if(!e.setBlockers)return()=>{};const c=((f=e.getBlockers)==null?void 0:f.call(e))??[];return e.setBlockers([...c,a]),()=>{var m,I;const h=((m=e.getBlockers)==null?void 0:m.call(e))??[];(I=e.setBlockers)==null||I.call(e,h.filter(v=>v!==a))}},flush:()=>{var a;return(a=e.flush)==null?void 0:a.call(e)},destroy:()=>{var a;return(a=e.destroy)==null?void 0:a.call(e)},notify:r}}function eW(e,t){t||(t={});const n=pD();return{...t,key:n,__TSR_key:n,[lf]:e}}function Pwe(e){var K,re;const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let A=[];const i=()=>A,a=V=>A=V,c=V=>V,f=()=>oQ(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);if(!((K=t.history.state)!=null&&K.__TSR_key)&&!((re=t.history.state)!=null&&re.key)){const V=pD();t.history.replaceState({[lf]:0,key:V,__TSR_key:V},"")}let h=f(),m,I=!1,v=!1,k=!1,D=!1;const R=()=>h;let F,N;const T=()=>{F&&(Z._ignoreSubscribers=!0,(F.isPush?t.history.pushState:t.history.replaceState)(F.state,"",F.href),Z._ignoreSubscribers=!1,F=void 0,N=void 0,m=void 0)},P=(V,oe,Be)=>{const he=c(oe);N||(m=h),h=oQ(oe,Be),F={href:he,state:Be,isPush:(F==null?void 0:F.isPush)||V==="push"},N||(N=Promise.resolve().then(()=>T()))},G=V=>{h=f(),Z.notify({type:V})},Y=async()=>{if(v){v=!1;return}const V=f(),oe=V.state[lf]-h.state[lf],Be=oe===1,he=oe===-1,de=!Be&&!he||I;I=!1;const me=de?"GO":he?"BACK":"FORWARD",Ae=de?{type:"GO",index:oe}:{type:he?"BACK":"FORWARD"};if(k)k=!1;else{const Ce=i();if(typeof document<"u"&&Ce.length){for(const ae of Ce)if(await ae.blockerFn({currentLocation:h,nextLocation:V,action:me})){v=!0,t.history.go(1),Z.notify(Ae);return}}}h=f(),Z.notify(Ae)},z=V=>{if(D){D=!1;return}let oe=!1;const Be=i();if(typeof document<"u"&&Be.length)for(const he of Be){const de=he.enableBeforeUnload??!0;if(de===!0){oe=!0;break}if(typeof de=="function"&&de()===!0){oe=!0;break}}if(oe)return V.preventDefault(),V.returnValue=""},Z=Lwe({getLocation:R,getLength:()=>t.history.length,pushState:(V,oe)=>P("push",V,oe),replaceState:(V,oe)=>P("replace",V,oe),back:V=>(V&&(k=!0),D=!0,t.history.back()),forward:V=>{V&&(k=!0),D=!0,t.history.forward()},go:V=>{I=!0,t.history.go(V)},createHref:V=>c(V),flush:T,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener($J,z,{capture:!0}),t.removeEventListener(qJ,Y)},onBlocked:()=>{m&&h!==m&&(h=m)},getBlockers:i,setBlockers:a,notifyOnIndexChange:!1});return t.addEventListener($J,z,{capture:!0}),t.addEventListener(qJ,Y),t.history.pushState=function(...V){const oe=n.apply(t.history,V);return Z._ignoreSubscribers||G("PUSH"),oe},t.history.replaceState=function(...V){const oe=r.apply(t.history,V);return Z._ignoreSubscribers||G("REPLACE"),oe},Z}function oQ(e,t){const n=e.indexOf("#"),r=e.indexOf("?"),A=pD();return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{[lf]:0,key:A,__TSR_key:A}}}function pD(){return(Math.random()+1).toString(36).substring(7)}function mD(e){return e[e.length-1]}function Uwe(e){return typeof e=="function"}function Jg(e,t){return Uwe(e)?e(t):e}const Gwe=Object.prototype.hasOwnProperty;function Ec(e,t){if(e===t)return e;const n=t,r=rW(e)&&rW(n);if(!r&&!(iQ(e)&&iQ(n)))return n;const A=r?e:tW(e);if(!A)return n;const i=r?n:tW(n);if(!i)return n;const a=A.length,c=i.length,f=r?new Array(c):{};let h=0;for(let m=0;m"u")return!0;const n=t.prototype;return!(!nW(n)||!n.hasOwnProperty("isPrototypeOf"))}function nW(e){return Object.prototype.toString.call(e)==="[object Object]"}function rW(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cf(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,A=e.length;rA||!cf(e[a],t[a],n)))return!1;return A===i}return!1}function jp(e){let t,n;const r=new Promise((A,i)=>{t=A,n=i});return r.status="pending",r.resolve=A=>{r.status="resolved",r.value=A,t(A),e==null||e(A)},r.reject=A=>{r.status="rejected",n(A)},r}function uf(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}const Hwe=Array.from(new Map([["%","%25"],["\\","%5C"]]).values());function oW(e,t=Hwe){function n(A,i,a=0){for(let c=a;c{try{return decodeURI(c)}catch{return c}})}}if(e===""||!/%[0-9A-Fa-f]{2}/g.test(e))return e;const r=e.replaceAll(/%[0-9a-f]{2}/g,A=>A.toUpperCase());return n(r,t)}var Ywe="Invariant failed";function T0(e,t){if(!e)throw new Error(Ywe)}const Cu=0,Wg=1,Op=2,Lp=3;function M0(e){return ED(e.filter(t=>t!==void 0).join("/"))}function ED(e){return e.replace(/\/{2,}/g,"/")}function ID(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function df(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function AQ(e){return df(ID(e))}function sQ(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function zwe(e,t,n){return sQ(e,n)===sQ(t,n)}function Jwe(e){const{type:t,value:n}=e;if(t===Cu)return n;const{prefixSegment:r,suffixSegment:A}=e;if(t===Wg){const i=n.substring(1);if(r&&A)return`${r}{$${i}}${A}`;if(r)return`${r}{$${i}}`;if(A)return`{$${i}}${A}`}if(t===Lp){const i=n.substring(1);return r&&A?`${r}{-$${i}}${A}`:r?`${r}{-$${i}}`:A?`{-$${i}}${A}`:`{-$${i}}`}if(t===Op){if(r&&A)return`${r}{$}${A}`;if(r)return`${r}{$}`;if(A)return`{$}${A}`}return n}function Wwe({base:e,to:t,trailingSlash:n="never",parseCache:r}){var c;let A=Pp(e,r).slice();const i=Pp(t,r);A.length>1&&((c=mD(A))==null?void 0:c.value)==="/"&&A.pop();for(let f=0,h=i.length;f1&&(mD(A).value==="/"?n==="never"&&A.pop():n==="always"&&A.push({type:Cu,value:"/"}));const a=A.map(Jwe);return M0(a)}const Pp=(e,t)=>{if(!e)return[];const n=t==null?void 0:t.get(e);if(n)return n;const r=$we(e);return t==null||t.set(e,r),r},Zwe=/^\$.{1,}$/,Xwe=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,Kwe=/^(.*?)\{-(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,Vwe=/^\$$/,qwe=/^(.*?)\{\$\}(.*)$/;function $we(e){e=ED(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:Cu,value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>{const A=r.match(qwe);if(A){const c=A[1],f=A[2];return{type:Op,value:"$",prefixSegment:c||void 0,suffixSegment:f||void 0}}const i=r.match(Kwe);if(i){const c=i[1],f=i[2],h=i[3];return{type:Lp,value:f,prefixSegment:c||void 0,suffixSegment:h||void 0}}const a=r.match(Xwe);if(a){const c=a[1],f=a[2],h=a[3];return{type:Wg,value:""+f,prefixSegment:c||void 0,suffixSegment:h||void 0}}if(Zwe.test(r)){const c=r.substring(1);return{type:Wg,value:"$"+c,prefixSegment:void 0,suffixSegment:void 0}}return Vwe.test(r)?{type:Op,value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:Cu,value:r}})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:Cu,value:"/"})),t}function CD({path:e,params:t,leaveParams:n,decodeCharMap:r,parseCache:A}){const i=Pp(e,A);function a(m){const I=t[m],v=typeof I=="string";return m==="*"||m==="_splat"?v?encodeURI(I):I:v?e4e(I,r):I}let c=!1;const f={},h=M0(i.map(m=>{if(m.type===Cu)return m.value;if(m.type===Op){f._splat=t._splat,f["*"]=t._splat;const I=m.prefixSegment||"",v=m.suffixSegment||"";if(!t._splat)return c=!0,I||v?`${I}${v}`:void 0;const k=a("_splat");return`${I}${k}${v}`}if(m.type===Wg){const I=m.value.substring(1);!c&&!(I in t)&&(c=!0),f[I]=t[I];const v=m.prefixSegment||"",k=m.suffixSegment||"";if(n){const D=a(m.value);return`${v}${m.value}${D??""}${k}`}return`${v}${a(I)??"undefined"}${k}`}if(m.type===Lp){const I=m.value.substring(1),v=m.prefixSegment||"",k=m.suffixSegment||"";if(!(I in t)||t[I]==null)return v||k?`${v}${k}`:void 0;if(f[I]=t[I],n){const D=a(m.value);return`${v}${m.value}${D??""}${k}`}return`${v}${a(I)??""}${k}`}return m.value}));return{usedParams:f,interpolatedPath:h,isMissingParams:c}}function e4e(e,t){let n=encodeURIComponent(e);if(t)for(const[r,A]of t)n=n.replaceAll(r,A);return n}function BD(e,t,n){const r=t4e(e,t,n);if(!(t.to&&!r))return r??{}}function t4e(e,{to:t,fuzzy:n,caseSensitive:r},A){const i=t,a=Pp(e.startsWith("/")?e:`/${e}`,A),c=Pp(i.startsWith("/")?i:`/${i}`,A),f={};return n4e(a,c,f,n,r)?f:void 0}function n4e(e,t,n,r,A){var c,f,h;let i=0,a=0;for(;iT.value)));D&&N.startsWith(D)&&(N=N.slice(D.length)),R&&N.endsWith(R)&&(N=N.slice(0,N.length-R.length)),k=N}else k=decodeURI(M0(v.map(D=>D.value)));return n["*"]=k,n._splat=k,!0}if(I.type===Cu){if(I.value==="/"&&!(m!=null&&m.value)){a++;continue}if(m){if(A){if(I.value!==m.value)return!1}else if(I.value.toLowerCase()!==m.value.toLowerCase())return!1;i++,a++;continue}else return!1}if(I.type===Wg){if(!m||m.value==="/")return!1;let v="",k=!1;if(I.prefixSegment||I.suffixSegment){const D=I.prefixSegment||"",R=I.suffixSegment||"",F=m.value;if(D&&!F.startsWith(D)||R&&!F.endsWith(R))return!1;let N=F;D&&N.startsWith(D)&&(N=N.slice(D.length)),R&&N.endsWith(R)&&(N=N.slice(0,N.length-R.length)),v=decodeURIComponent(N),k=!0}else v=decodeURIComponent(m.value),k=!0;k&&(n[I.value.substring(1)]=v,i++),a++;continue}if(I.type===Lp){if(!m){a++;continue}if(m.value==="/"){a++;continue}let v="",k=!1;if(I.prefixSegment||I.suffixSegment){const D=I.prefixSegment||"",R=I.suffixSegment||"",F=m.value;if((!D||F.startsWith(D))&&(!R||F.endsWith(R))){let N=F;D&&N.startsWith(D)&&(N=N.slice(D.length)),R&&N.endsWith(R)&&(N=N.slice(0,N.length-R.length)),v=decodeURIComponent(N),k=!0}}else{let D=!0;for(let R=a+1;R=t.length)return n["**"]=M0(e.slice(i).map(v=>v.value)),!!r&&((f=t[t.length-1])==null?void 0:f.value)!=="/";if(a=e.length){for(let v=a;v{var m;if(n.isRoot||!n.path)return;const A=ID(n.fullPath);let i=Pp(A),a=0;for(;i.length>a+1&&((m=i[a])==null?void 0:m.value)==="/";)a++;a>0&&(i=i.slice(a));let c=0,f=!1;const h=i.map((I,v)=>{if(I.value==="/")return r4e;if(I.type===Cu)return o4e;let k;I.type===Wg?k=i4e:I.type===Lp?(k=A4e,c++):k=s4e;for(let D=v+1;D{const A=Math.min(n.scores.length,r.scores.length);for(let i=0;ir.parsed[i].value?1:-1;return n.index-r.index}).map((n,r)=>(n.child.rank=r,n.child))}function f4e({routeTree:e,initRoute:t}){const n={},r={},A=a=>{a.forEach((c,f)=>{t==null||t(c,f);const h=n[c.id];if(T0(!h,`Duplicate routes found with id: ${String(c.id)}`),n[c.id]=c,!c.isRoot&&c.path){const I=df(c.fullPath);(!r[I]||c.fullPath.endsWith("/"))&&(r[I]=c)}const m=c.children;m!=null&&m.length&&A(m)})};A([e]);const i=d4e(Object.values(n));return{routesById:n,routesByPath:r,flatRoutes:i}}function Ic(e){return!!(e!=null&&e.isNotFound)}function g4e(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const aQ="tsr-scroll-restoration-v1_3",h4e=(e,t)=>{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function p4e(){const e=g4e();if(!e)return null;const t=e.getItem(aQ);let n=t?JSON.parse(t):{};return{state:n,set:r=>(n=Jg(r,n)||n,e.setItem(aQ,JSON.stringify(n)))}}const lQ=p4e(),yD=e=>e.state.__TSR_key||e.href;function m4e(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let cQ=!1;function aW({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:A,location:i}){var h,m;let a;try{a=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(I){console.error(I);return}const c=t||((h=window.history.state)==null?void 0:h.__TSR_key),f=a[c];cQ=!0;e:{if(r&&f&&Object.keys(f).length>0){for(const k in f){const D=f[k];if(k==="window")window.scrollTo({top:D.scrollY,left:D.scrollX,behavior:n});else if(k){const R=document.querySelector(k);R&&(R.scrollLeft=D.scrollX,R.scrollTop=D.scrollY)}}break e}const I=(i??window.location).hash.split("#",2)[1];if(I){const k=((m=window.history.state)==null?void 0:m.__hashScrollIntoViewOptions)??!0;if(k){const D=document.getElementById(I);D&&D.scrollIntoView(k)}break e}const v={top:0,left:0,behavior:n};if(window.scrollTo(v),A)for(const k of A){if(k==="window")continue;const D=typeof k=="function"?k():document.querySelector(k);D&&D.scrollTo(v)}}cQ=!1}function E4e(e,t){if(!lQ&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!lQ))return;e.isScrollRestorationSetup=!0,cQ=!1;const n=e.options.getScrollRestorationKey||yD;window.history.scrollRestoration="manual";const r=A=>{if(cQ||!e.isScrollRestoring)return;let i="";if(A.target===document||A.target===window)i="window";else{const c=A.target.getAttribute("data-scroll-restoration-id");c?i=`[data-scroll-restoration-id="${c}"]`:i=m4e(A.target)}const a=n(e.state.location);lQ.set(c=>{const f=c[a]||(c[a]={}),h=f[i]||(f[i]={});if(i==="window")h.scrollX=window.scrollX||0,h.scrollY=window.scrollY||0;else if(i){const m=document.querySelector(i);m&&(h.scrollX=m.scrollLeft||0,h.scrollY=m.scrollTop||0)}return c})};typeof document<"u"&&document.addEventListener("scroll",h4e(r,100),!0),e.subscribe("onRendered",A=>{const i=n(A.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(aW({storageKey:aQ,key:i,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&lQ.set(a=>(a[i]||(a[i]={}),a)))})}function I4e(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function C4e(e,t=String){const n=new URLSearchParams;for(const r in e){const A=e[r];A!==void 0&&n.set(r,t(A))}return n.toString()}function vD(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function B4e(e){const t=new URLSearchParams(e),n={};for(const[r,A]of t.entries()){const i=n[r];i==null?n[r]=vD(A):Array.isArray(i)?i.push(vD(A)):n[r]=[i,vD(A)]}return n}const y4e=b4e(JSON.parse),v4e=Q4e(JSON.stringify,JSON.parse);function b4e(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=B4e(t);for(const r in n){const A=n[r];if(typeof A=="string")try{n[r]=e(A)}catch{}}return n}}function Q4e(e,t){const n=typeof t=="function";function r(A){if(typeof A=="object"&&A!==null)try{return e(A)}catch{}else if(n&&typeof A=="string")try{return t(A),e(A)}catch{}return A}return A=>{const i=C4e(A,r);return i?`?${i}`:""}}const Ja="__root__";function lW(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Bu(e){return e instanceof Response&&!!e.options}function w4e(e){const t=new Map;let n,r;const A=i=>{i.next&&(i.prev?(i.prev.next=i.next,i.next.prev=i.prev,i.next=void 0,r&&(r.next=i,i.prev=r)):(i.next.prev=void 0,n=i.next,i.next=void 0,r&&(i.prev=r,r.next=i)),r=i)};return{get(i){const a=t.get(i);if(a)return A(a),a.value},set(i,a){if(t.size>=e&&n){const f=n;t.delete(f.key),f.next&&(n=f.next,f.next.prev=void 0),f===r&&(r=void 0)}const c=t.get(i);if(c)c.value=a,A(c);else{const f={key:i,value:a,prev:r};r&&(r.next=f),r=f,n||(n=f),t.set(i,f)}}}}const uQ=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},dQ=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),cW=(e,t)=>{var A;const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&((A=e.router.options)!=null&&A.defaultNotFoundComponent)&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),T0(n.options.notFoundComponent);const r=e.matches.find(i=>i.routeId===n.id);T0(r,"Could not find match for route: "+n.id),e.updateMatch(r.id,i=>({...i,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,cW(e,t))},ff=(e,t,n)=>{var r,A,i;if(!(!Bu(n)&&!Ic(n))){if(Bu(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(r=t._nonReactive.beforeLoadPromise)==null||r.resolve(),(A=t._nonReactive.loaderPromise)==null||A.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const a=Bu(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,c=>({...c,status:a,isFetching:!1,error:n})),Ic(n)&&!n.routeId&&(n.routeId=t.routeId),(i=t._nonReactive.loadPromise)==null||i.resolve()}throw Bu(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(cW(e,n),n)}},uW=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},yI=(e,t,n,r)=>{var c,f;const{id:A,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),ff(e,e.router.getMatch(A),n);try{(f=(c=a.options).onError)==null||f.call(c,n)}catch(h){n=h,ff(e,e.router.getMatch(A),n)}e.updateMatch(A,h=>{var m,I;return(m=h._nonReactive.beforeLoadPromise)==null||m.resolve(),h._nonReactive.beforeLoadPromise=void 0,(I=h._nonReactive.loadPromise)==null||I.resolve(),{...h,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},x4e=(e,t,n,r)=>{var k;const A=e.router.getMatch(t),i=(k=e.matches[n-1])==null?void 0:k.id,a=i?e.router.getMatch(i):void 0;if(e.router.isShell()){A.ssr=r.id===Ja;return}if((a==null?void 0:a.ssr)===!1){A.ssr=!1;return}const c=D=>D===!0&&(a==null?void 0:a.ssr)==="data-only"?"data-only":D,f=e.router.options.defaultSsr??!0;if(r.options.ssr===void 0){A.ssr=c(f);return}if(typeof r.options.ssr!="function"){A.ssr=c(r.options.ssr);return}const{search:h,params:m}=A,I={search:fQ(h,A.searchError),params:fQ(m,A.paramsError),location:e.location,matches:e.matches.map(D=>({index:D.index,pathname:D.pathname,fullPath:D.fullPath,staticData:D.staticData,id:D.id,routeId:D.routeId,search:fQ(D.search,D.searchError),params:fQ(D.params,D.paramsError),ssr:D.ssr}))},v=r.options.ssr(I);if(uf(v))return v.then(D=>{A.ssr=c(D??f)});A.ssr=c(v??f)},dW=(e,t,n,r)=>{var i;if(r._nonReactive.pendingTimeout!==void 0)return;const A=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!e.router.isServer&&!dQ(e,t)&&(n.options.loader||n.options.beforeLoad||mW(n))&&typeof A=="number"&&A!==1/0&&(n.options.pendingComponent??((i=e.router.options)==null?void 0:i.defaultPendingComponent))){const a=setTimeout(()=>{uQ(e)},A);r._nonReactive.pendingTimeout=a}},_4e=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;dW(e,t,n,r);const A=()=>{const i=e.router.getMatch(t);i.preload&&(i.status==="redirected"||i.status==="notFound")&&ff(e,i,i.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(A):A()},k4e=(e,t,n,r)=>{var Y,z;const A=e.router.getMatch(t),i=A._nonReactive.loadPromise;A._nonReactive.loadPromise=jp(()=>{i==null||i.resolve()});const{paramsError:a,searchError:c}=A;a&&yI(e,n,a,"PARSE_PARAMS"),c&&yI(e,n,c,"VALIDATE_SEARCH"),dW(e,t,r,A);const f=new AbortController,h=(Y=e.matches[n-1])==null?void 0:Y.id,m={...((z=h?e.router.getMatch(h):void 0)==null?void 0:z.context)??e.router.options.context??void 0,...A.__routeContext};let I=!1;const v=()=>{I||(I=!0,e.updateMatch(t,Z=>({...Z,isFetching:"beforeLoad",fetchCount:Z.fetchCount+1,abortController:f,context:m})))},k=()=>{var Z;(Z=A._nonReactive.beforeLoadPromise)==null||Z.resolve(),A._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,K=>({...K,isFetching:!1}))};if(!r.options.beforeLoad){BI(()=>{v(),k()});return}A._nonReactive.beforeLoadPromise=jp();const{search:D,params:R,cause:F}=A,N=dQ(e,t),T={search:D,abortController:f,params:R,preload:N,context:m,location:e.location,navigate:Z=>e.router.navigate({...Z,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:N?"preload":F,matches:e.matches,...e.router.options.additionalContext},P=Z=>{if(Z===void 0){BI(()=>{v(),k()});return}(Bu(Z)||Ic(Z))&&(v(),yI(e,n,Z,"BEFORE_LOAD")),BI(()=>{v(),e.updateMatch(t,K=>({...K,__beforeLoadContext:Z,context:{...K.context,...Z}})),k()})};let G;try{if(G=r.options.beforeLoad(T),uf(G))return v(),G.catch(Z=>{yI(e,n,Z,"BEFORE_LOAD")}).then(P)}catch(Z){v(),yI(e,n,Z,"BEFORE_LOAD")}P(G)},S4e=(e,t)=>{const{id:n,routeId:r}=e.matches[t],A=e.router.looseRoutesById[r],i=()=>{if(e.router.isServer){const f=x4e(e,n,t,A);if(uf(f))return f.then(c)}return c()},a=()=>k4e(e,n,t,A),c=()=>{if(uW(e,n))return;const f=_4e(e,n,A);return uf(f)?f.then(a):a()};return i()},vI=(e,t,n)=>{var i,a,c,f,h,m;const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const A={matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(a=(i=n.options).head)==null?void 0:a.call(i,A),(f=(c=n.options).scripts)==null?void 0:f.call(c,A),(m=(h=n.options).headers)==null?void 0:m.call(h,A)]).then(([I,v,k])=>{const D=I==null?void 0:I.meta,R=I==null?void 0:I.links,F=I==null?void 0:I.scripts,N=I==null?void 0:I.styles;return{meta:D,links:R,headScripts:F,headers:k,scripts:v,styles:N}})},fW=(e,t,n,r)=>{const A=e.matchPromises[n-1],{params:i,loaderDeps:a,abortController:c,cause:f}=e.router.getMatch(t);let h=e.router.options.context??{};for(let I=0;I<=n;I++){const v=e.matches[I];if(!v)continue;const k=e.router.getMatch(v.id);k&&(h={...h,...k.__routeContext??{},...k.__beforeLoadContext??{}})}const m=dQ(e,t);return{params:i,deps:a,preload:!!m,parentMatchPromise:A,abortController:c,context:h,location:e.location,navigate:I=>e.router.navigate({...I,_fromLocation:e.location}),cause:m?"preload":f,route:r,...e.router.options.additionalContext}},gW=async(e,t,n,r)=>{var A,i,a,c,f,h;try{const m=e.router.getMatch(t);try{(!e.router.isServer||m.ssr===!0)&&pW(r);const I=(i=(A=r.options).loader)==null?void 0:i.call(A,fW(e,t,n,r)),v=r.options.loader&&uf(I);if((v||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||m._nonReactive.minPendingPromise)&&e.updateMatch(t,F=>({...F,isFetching:"loader"})),r.options.loader){const F=v?await I:I;ff(e,e.router.getMatch(t),F),F!==void 0&&e.updateMatch(t,N=>({...N,loaderData:F}))}r._lazyPromise&&await r._lazyPromise;const k=vI(e,t,r),D=k?await k:void 0,R=m._nonReactive.minPendingPromise;R&&await R,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,F=>({...F,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...D}))}catch(I){let v=I;const k=m._nonReactive.minPendingPromise;k&&await k,Ic(I)&&await((c=(a=r.options.notFoundComponent)==null?void 0:a.preload)==null?void 0:c.call(a)),ff(e,e.router.getMatch(t),I);try{(h=(f=r.options).onError)==null||h.call(f,I)}catch(F){v=F,ff(e,e.router.getMatch(t),F)}const D=vI(e,t,r),R=D?await D:void 0;e.updateMatch(t,F=>({...F,error:v,status:"error",isFetching:!1,...R}))}}catch(m){const I=e.router.getMatch(t);if(I){const v=vI(e,t,r);if(v){const k=await v;e.updateMatch(t,D=>({...D,...k}))}I._nonReactive.loaderPromise=void 0}ff(e,I,m)}},D4e=async(e,t)=>{var h,m;const{id:n,routeId:r}=e.matches[t];let A=!1,i=!1;const a=e.router.looseRoutesById[r];if(uW(e,n)){if(e.router.isServer){const I=vI(e,n,a);if(I){const v=await I;e.updateMatch(n,k=>({...k,...v}))}return e.router.getMatch(n)}}else{const I=e.router.getMatch(n);if(I._nonReactive.loaderPromise){if(I.status==="success"&&!e.sync&&!I.preload)return I;await I._nonReactive.loaderPromise;const v=e.router.getMatch(n),k=v._nonReactive.error||v.error;k&&ff(e,v,k)}else{const v=Date.now()-I.updatedAt,k=dQ(e,n),D=k?a.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:a.options.staleTime??e.router.options.defaultStaleTime??0,R=a.options.shouldReload,F=typeof R=="function"?R(fW(e,n,t,a)):R,N=!!k&&!e.router.state.matches.some(Y=>Y.id===n),T=e.router.getMatch(n);T._nonReactive.loaderPromise=jp(),N!==T.preload&&e.updateMatch(n,Y=>({...Y,preload:N}));const{status:P,invalid:G}=T;if(A=P==="success"&&(G||(F??v>D)),!(k&&a.options.preload===!1))if(A&&!e.sync)i=!0,(async()=>{var Y,z;try{await gW(e,n,t,a);const Z=e.router.getMatch(n);(Y=Z._nonReactive.loaderPromise)==null||Y.resolve(),(z=Z._nonReactive.loadPromise)==null||z.resolve(),Z._nonReactive.loaderPromise=void 0}catch(Z){Bu(Z)&&await e.router.navigate(Z.options)}})();else if(P!=="success"||A&&e.sync)await gW(e,n,t,a);else{const Y=vI(e,n,a);if(Y){const z=await Y;e.updateMatch(n,Z=>({...Z,...z}))}}}}const c=e.router.getMatch(n);i||((h=c._nonReactive.loaderPromise)==null||h.resolve(),(m=c._nonReactive.loadPromise)==null||m.resolve()),clearTimeout(c._nonReactive.pendingTimeout),c._nonReactive.pendingTimeout=void 0,i||(c._nonReactive.loaderPromise=void 0),c._nonReactive.dehydrated=void 0;const f=i?c.isFetching:!1;return f!==c.isFetching||c.invalid!==!1?(e.updateMatch(n,I=>({...I,isFetching:f,invalid:!1})),e.router.getMatch(n)):c};async function hW(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&uQ(t);try{for(let A=0;A{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var r;const n=[];for(const A of EW){const i=(r=e.options[A])==null?void 0:r.preload;i&&n.push(i())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function fQ(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function mW(e){var t;for(const n of EW)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const EW=["component","errorComponent","pendingComponent","notFoundComponent"];function R4e(e){return{input:({url:t})=>{for(const n of e)t=IW(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=CW(e[n],t);return t}}}function T4e(e){const t=AQ(e.basepath),n=`/${t}`,r=`${n}/`,A=e.caseSensitive?n:n.toLowerCase(),i=e.caseSensitive?r:r.toLowerCase();return{input:({url:a})=>{const c=e.caseSensitive?a.pathname:a.pathname.toLowerCase();return c===A?a.pathname="/":c.startsWith(i)&&(a.pathname=a.pathname.slice(n.length)),a},output:({url:a})=>(a.pathname=M0(["/",t,a.pathname]),a)}}function IW(e,t){var r;const n=(r=e==null?void 0:e.input)==null?void 0:r.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function CW(e,t){var r;const n=(r=e==null?void 0:e.output)==null?void 0:r.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Zg(e){const t=e.resolvedLocation,n=e.location,r=(t==null?void 0:t.pathname)!==n.pathname,A=(t==null?void 0:t.href)!==n.href,i=(t==null?void 0:t.hash)!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:A,hashChanged:i}}class M4e{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{var m;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,A=this.basepath??(r==null?void 0:r.basepath)??"/",i=this.basepath===void 0,a=r==null?void 0:r.rewrite;this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(I=>[encodeURIComponent(I),I])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Pwe())),this.origin=this.options.origin,this.origin||(!this.isServer&&(window!=null&&window.origin)&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new Owe(N4e(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(I=>!["redirected"].includes(I.status))}}}),E4e(this));let c=!1;const f=this.options.basepath??"/",h=this.options.rewrite;if(i||A!==f||a!==h){this.basepath=f;const I=[];AQ(f)!==""&&I.push(T4e({basepath:f})),h&&I.push(h),this.rewrite=I.length===0?void 0:I.length===1?I[0]:R4e(I),this.history&&this.updateLatestLocation(),c=!0}c&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((m=window.CSS)==null?void 0:m.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:r,flatRoutes:A}=f4e({routeTree:this.routeTree,initRoute:(a,c)=>{a.init({originalIndex:c})}});this.routesById=n,this.routesByPath=r,this.flatRoutes=A;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)},this.subscribe=(n,r)=>{const A={eventType:n,fn:r};return this.subscribers.add(A),()=>{this.subscribers.delete(A)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const A=({href:f,state:h})=>{const m=new URL(f,this.origin),I=IW(this.rewrite,m),v=this.options.parseSearch(I.search),k=this.options.stringifySearch(v);I.search=k;const D=I.href.replace(I.origin,""),{pathname:R,hash:F}=I;return{href:D,publicHref:f,url:I.href,pathname:oW(R),searchStr:k,search:Ec(r==null?void 0:r.search,v),hash:F.split("#").reverse()[0]??"",state:Ec(r==null?void 0:r.state,h)}},i=A(n),{__tempLocation:a,__tempKey:c}=i.state;if(a&&(!c||c===this.tempLocationKey)){const f=A(a);return f.state.key=i.state.key,f.state.__TSR_key=i.state.__TSR_key,delete f.state.__tempLocation,{...f,maskedLocation:i}}return i},this.resolvePathWithBase=(n,r)=>Wwe({base:n,to:ED(r),trailingSlash:this.options.trailingSlash,parseCache:this.parsePathnameCache}),this.matchRoutes=(n,r,A)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},A):this.matchRoutesInternal(n,r),this.parsePathnameCache=w4e(1e3),this.getMatchedRoutes=(n,r)=>j4e({pathname:n,routePathname:r,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes,parseCache:this.parsePathnameCache}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(A=>A.status==="pending"),r=this.state.matches.filter(A=>A.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(A=>{this.cancelMatch(A.id)})},this.buildLocation=n=>{const r=(i={})=>{var V,oe;const a=i._fromLocation||this.pendingBuiltLocation||this.latestLocation,c=this.matchRoutes(a,{_buildLocation:!0}),f=mD(c);i.from;const h=i.unsafeRelative==="path"?a.pathname:i.from??f.fullPath,m=this.resolvePathWithBase(h,"."),I=f.search,v={...f.params},k=i.to?this.resolvePathWithBase(m,`${i.to}`):this.resolvePathWithBase(m,"."),D=i.params===!1||i.params===null?{}:(i.params??!0)===!0?v:Object.assign(v,Jg(i.params,v)),R=CD({path:k,params:D,parseCache:this.parsePathnameCache}).interpolatedPath,F=this.matchRoutes(R,void 0,{_buildLocation:!0}).map(Be=>this.looseRoutesById[Be.routeId]);if(Object.keys(D).length>0)for(const Be of F){const he=((V=Be.options.params)==null?void 0:V.stringify)??Be.options.stringifyParams;he&&Object.assign(D,he(D))}const N=oW(CD({path:k,params:D,leaveParams:n.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap,parseCache:this.parsePathnameCache}).interpolatedPath);let T=I;if(n._includeValidateSearch&&((oe=this.options.search)!=null&&oe.strict)){const Be={};F.forEach(he=>{if(he.options.validateSearch)try{Object.assign(Be,bD(he.options.validateSearch,{...Be,...T}))}catch{}}),T=Be}T=O4e({search:T,dest:i,destRoutes:F,_includeValidateSearch:n._includeValidateSearch}),T=Ec(I,T);const P=this.options.stringifySearch(T),G=i.hash===!0?a.hash:i.hash?Jg(i.hash,a.hash):void 0,Y=G?`#${G}`:"";let z=i.state===!0?a.state:i.state?Jg(i.state,a.state):{};z=Ec(a.state,z);const Z=`${N}${P}${Y}`,K=new URL(Z,this.origin),re=CW(this.rewrite,K);return{publicHref:re.pathname+re.search+re.hash,href:Z,url:re.href,pathname:N,search:T,searchStr:P,state:z,hash:G??"",unmaskOnReload:i.unmaskOnReload}},A=(i={},a)=>{var h;const c=r(i);let f=a?r(a):void 0;if(!f){let m={};const I=(h=this.options.routeMasks)==null?void 0:h.find(v=>{const k=BD(c.pathname,{to:v.from,caseSensitive:!1,fuzzy:!1},this.parsePathnameCache);return k?(m=k,!0):!1});if(I){const{from:v,...k}=I;a={from:n.from,...k,params:m},f=r(a)}}return f&&(c.maskedLocation=f),c};return n.mask?A(n,{from:n.from,...n.mask}):A(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...A})=>{const i=()=>{const f=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];f.forEach(m=>{A.state[m]=this.latestLocation.state[m]});const h=cf(A.state,this.latestLocation.state);return f.forEach(m=>{delete A.state[m]}),h},a=df(this.latestLocation.href)===df(A.href),c=this.commitLocationPromise;if(this.commitLocationPromise=jp(()=>{c==null||c.resolve()}),a&&i())this.load();else{let{maskedLocation:f,hashScrollIntoView:h,...m}=A;f&&(m={...f,state:{...f.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[A.replace?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:r})}return this.resetNextScroll=A.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:A,viewTransition:i,ignoreBlocker:a,href:c,...f}={})=>{if(c){const I=this.history.location.state.__TSR_index,v=oQ(c,{__TSR_index:n?I:I+1});f.to=v.pathname,f.search=this.options.parseSearch(v.search),f.hash=v.hash.slice(1)}const h=this.buildLocation({...f,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const m=this.commitLocation({...h,viewTransition:i,replace:n,resetScroll:r,hashScrollIntoView:A,ignoreBlocker:a});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),m},this.navigate=({to:n,reloadDocument:r,href:A,...i})=>{if(!r&&A)try{new URL(`${A}`),r=!0}catch{}return r?(A||(A=this.buildLocation({to:n,...i}).url),i.replace?window.location.replace(A):window.location.href=A,Promise.resolve()):this.buildAndCommitLocation({...i,href:A,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),A=i=>{try{return encodeURI(decodeURI(i))}catch{return i}};if(AQ(A(this.latestLocation.href))!==AQ(A(r.href))){let i=r.url;throw this.origin&&i.startsWith(this.origin)&&(i=i.replace(this.origin,"")||"/"),lW({href:i})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(A=>!n.some(i=>i.id===A.id))}))},this.load=async n=>{let r,A,i;for(i=new Promise(c=>{this.startTransition(async()=>{var f;try{this.beforeLoad();const h=this.latestLocation,m=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Zg({resolvedLocation:m,location:h})}),this.emit({type:"onBeforeLoad",...Zg({resolvedLocation:m,location:h})}),await hW({router:this,sync:n==null?void 0:n.sync,matches:this.state.pendingMatches,location:h,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let I=[],v=[],k=[];BI(()=>{this.__store.setState(D=>{const R=D.matches,F=D.pendingMatches||D.matches;return I=R.filter(N=>!F.some(T=>T.id===N.id)),v=F.filter(N=>!R.some(T=>T.id===N.id)),k=F.filter(N=>R.some(T=>T.id===N.id)),{...D,isLoading:!1,loadedAt:Date.now(),matches:F,pendingMatches:void 0,cachedMatches:[...D.cachedMatches,...I.filter(N=>N.status!=="error")]}}),this.clearExpiredCache()}),[[I,"onLeave"],[v,"onEnter"],[k,"onStay"]].forEach(([D,R])=>{D.forEach(F=>{var N,T;(T=(N=this.looseRoutesById[F.routeId].options)[R])==null||T.call(N,F)})})})})}})}catch(h){Bu(h)?(r=h,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):Ic(h)&&(A=h),this.__store.setState(m=>({...m,statusCode:r?r.status:A?404:m.matches.some(I=>I.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===i&&((f=this.commitLocationPromise)==null||f.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let a;this.hasNotFoundMatch()?a=404:this.__store.state.matches.some(c=>c.status==="error")&&(a=500),a!==void 0&&this.__store.setState(c=>({...c,statusCode:a}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let A;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,a=this.state.resolvedLocation,c=typeof r.types=="function"?r.types(Zg({resolvedLocation:a,location:i})):r.types;if(c===!1){n();return}A={update:n,types:c}}else A=n;document.startViewTransition(A)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{var i;const A=(i=this.state.pendingMatches)!=null&&i.some(a=>a.id===n)?"pendingMatches":this.state.matches.some(a=>a.id===n)?"matches":this.state.cachedMatches.some(a=>a.id===n)?"cachedMatches":"";A&&this.__store.setState(a=>{var c;return{...a,[A]:(c=a[A])==null?void 0:c.map(f=>f.id===n?r(f):f)}})})},this.getMatch=n=>{var A;const r=i=>i.id===n;return this.state.cachedMatches.find(r)??((A=this.state.pendingMatches)==null?void 0:A.find(r))??this.state.matches.find(r)},this.invalidate=n=>{const r=A=>{var i;return((i=n==null?void 0:n.filter)==null?void 0:i.call(n,A))??!0?{...A,invalid:!0,...n!=null&&n.forcePending||A.status==="error"?{status:"pending",error:void 0}:void 0}:A};return this.__store.setState(A=>{var i;return{...A,matches:A.matches.map(r),cachedMatches:A.cachedMatches.map(r),pendingMatches:(i=A.pendingMatches)==null?void 0:i.map(r)}}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.resolveRedirect=n=>{if(!n.options.href){const r=this.buildLocation(n.options);let A=r.url;this.origin&&A.startsWith(this.origin)&&(A=A.replace(this.origin,"")||"/"),n.options.href=r.href,n.headers.set("Location",A)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n==null?void 0:n.filter;r!==void 0?this.__store.setState(A=>({...A,cachedMatches:A.cachedMatches.filter(i=>!r(i))})):this.__store.setState(A=>({...A,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const A=this.looseRoutesById[r.routeId];if(!A.options.loader)return!0;const i=(r.preload?A.options.preloadGcTime??this.options.defaultPreloadGcTime:A.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=i};this.clearCache({filter:n})},this.loadRouteChunk=pW,this.preloadRoute=async n=>{const r=this.buildLocation(n);let A=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const i=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(c=>c.id)),a=new Set([...i,...this.state.cachedMatches.map(c=>c.id)]);BI(()=>{A.forEach(c=>{a.has(c.id)||this.__store.setState(f=>({...f,cachedMatches:[...f.cachedMatches,c]}))})});try{return A=await hW({router:this,matches:A,location:r,preload:!0,updateMatch:(c,f)=>{i.has(c)?A=A.map(h=>h.id===c?f(h):h):this.updateMatch(c,f)}}),A}catch(c){if(Bu(c))return c.options.reloadDocument?void 0:await this.preloadRoute({...c.options,_fromLocation:r});Ic(c)||console.error(c);return}},this.matchRoute=(n,r)=>{const A={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(A);if(r!=null&&r.pending&&this.state.status!=="pending")return!1;const a=((r==null?void 0:r.pending)===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,c=BD(a.pathname,{...r,to:i.pathname},this.parsePathnameCache);return!c||n.params&&!cf(c,n.params,{partial:!0})?!1:c&&((r==null?void 0:r.includeSearch)??!0)?cf(a.search,i.search,{partial:!0})?c:!1:c},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??v4e,parseSearch:t.parseSearch??y4e}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){var m;const{foundRoute:r,matchedRoutes:A,routeParams:i}=this.getMatchedRoutes(t.pathname,(m=n==null?void 0:n.dest)==null?void 0:m.to);let a=!1;(r?r.path!=="/"&&i["**"]:df(t.pathname))&&(this.options.notFoundRoute?A.push(this.options.notFoundRoute):a=!0);const c=(()=>{if(a){if(this.options.notFoundMode!=="root")for(let I=A.length-1;I>=0;I--){const v=A[I];if(v.children)return v.id}return Ja}})(),f=[],h=I=>I!=null&&I.id?I.context??this.options.context??void 0:this.options.context??void 0;return A.forEach((I,v)=>{var he,de,me;const k=f[v-1],[D,R,F]=(()=>{const Ae=(k==null?void 0:k.search)??t.search,Ce=(k==null?void 0:k._strictSearch)??void 0;try{const ae=bD(I.options.validateSearch,{...Ae})??void 0;return[{...Ae,...ae},{...Ce,...ae},void 0]}catch(ae){let fe=ae;if(ae instanceof gQ||(fe=new gQ(ae.message,{cause:ae})),n==null?void 0:n.throwOnError)throw fe;return[Ae,{},fe]}})(),N=((de=(he=I.options).loaderDeps)==null?void 0:de.call(he,{search:D}))??"",T=N?JSON.stringify(N):"",{interpolatedPath:P,usedParams:G}=CD({path:I.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),Y=I.id+P+T,z=this.getMatch(Y),Z=this.state.matches.find(Ae=>Ae.routeId===I.id),K=(z==null?void 0:z._strictParams)??G;let re;if(!z){const Ae=((me=I.options.params)==null?void 0:me.parse)??I.options.parseParams;if(Ae)try{Object.assign(K,Ae(K))}catch(Ce){if(re=new F4e(Ce.message,{cause:Ce}),n==null?void 0:n.throwOnError)throw re}}Object.assign(i,K);const V=Z?"stay":"enter";let oe;if(z)oe={...z,cause:V,params:Z?Ec(Z.params,i):i,_strictParams:K,search:Ec(Z?Z.search:z.search,D),_strictSearch:R};else{const Ae=I.options.loader||I.options.beforeLoad||I.lazyFn||mW(I)?"pending":"success";oe={id:Y,index:v,routeId:I.id,params:Z?Ec(Z.params,i):i,_strictParams:K,pathname:P,updatedAt:Date.now(),search:Z?Ec(Z.search,D):D,_strictSearch:R,searchError:void 0,status:Ae,isFetching:!1,error:void 0,paramsError:re,__routeContext:void 0,_nonReactive:{loadPromise:jp()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:V,loaderDeps:Z?Ec(Z.loaderDeps,N):N,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:I.options.staticData||{},fullPath:I.fullPath}}n!=null&&n.preload||(oe.globalNotFound=c===I.id),oe.searchError=F;const Be=h(k);oe.context={...Be,...oe.__routeContext,...oe.__beforeLoadContext},f.push(oe)}),f.forEach((I,v)=>{const k=this.looseRoutesById[I.routeId];if(!this.getMatch(I.id)&&(n==null?void 0:n._buildLocation)!==!0){const D=f[v-1],R=h(D);if(k.options.context){const F={deps:I.loaderDeps,params:I.params,context:R??{},location:t,navigate:N=>this.navigate({...N,_fromLocation:t}),buildLocation:this.buildLocation,cause:I.cause,abortController:I.abortController,preload:!!I.preload,matches:f};I.__routeContext=k.options.context(F)??void 0}I.context={...R,...I.__routeContext,...I.__beforeLoadContext}}}),f}}class gQ extends Error{}class F4e extends Error{}function N4e(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function bD(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new gQ("Async validation not supported");if(n.issues)throw new gQ(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function j4e({pathname:e,routePathname:t,caseSensitive:n,routesByPath:r,routesById:A,flatRoutes:i,parseCache:a}){let c={};const f=df(e),h=k=>{var D;return BD(f,{to:k.fullPath,caseSensitive:((D=k.options)==null?void 0:D.caseSensitive)??n,fuzzy:!0},a)};let m=t!==void 0?r[t]:void 0;if(m)c=h(m);else{let k;for(const D of i){const R=h(D);if(R)if(D.path!=="/"&&R["**"])k||(k={foundRoute:D,routeParams:R});else{m=D,c=R;break}}!m&&k&&(m=k.foundRoute,c=k.routeParams)}let I=m||A[Ja];const v=[I];for(;I.parentRoute;)I=I.parentRoute,v.push(I);return v.reverse(),{matchedRoutes:v,routeParams:c,foundRoute:m}}function O4e({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){const A=n.reduce((c,f)=>{var m;const h=[];if("search"in f.options)(m=f.options.search)!=null&&m.middlewares&&h.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const I=({search:v,next:k})=>{let D=v;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(D=f.options.preSearchFilters.reduce((F,N)=>N(F),v));const R=k(D);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((F,N)=>N(F),R):R};h.push(I)}if(r&&f.options.validateSearch){const I=({search:v,next:k})=>{const D=k(v);try{return{...D,...bD(f.options.validateSearch,D)??void 0}}catch{return D}};h.push(I)}return c.concat(h)},[])??[],i=({search:c})=>t.search?t.search===!0?c:Jg(t.search,c):{};A.push(i);const a=(c,f)=>{if(c>=A.length)return f;const h=A[c];return h({search:f,next:m=>a(c+1,m)})};return a(0,e)}const L4e="Error preloading route! \u261D\uFE0F";class BW{constructor(t){if(this.init=n=>{var h,m;this.originalIndex=n.originalIndex;const r=this.options,A=!(r!=null&&r.path)&&!(r!=null&&r.id);this.parentRoute=(m=(h=this.options).getParentRoute)==null?void 0:m.call(h),A?this._path=Ja:this.parentRoute||T0(!1);let i=A?Ja:r==null?void 0:r.path;i&&i!=="/"&&(i=ID(i));const a=(r==null?void 0:r.id)||i;let c=A?Ja:M0([this.parentRoute.id===Ja?"":this.parentRoute.id,a]);i===Ja&&(i="/"),c!==Ja&&(c=M0(["/",c]));const f=c===Ja?"/":M0([this.parentRoute.fullPath,i]);this._path=i,this._id=c,this._fullPath=f,this._to=f},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),(t==null?void 0:t.id)&&(t==null?void 0:t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class P4e extends BW{constructor(t){super(t)}}function U4e(e){return({search:t,next:n})=>{const r=n(t);return e===!0?{...t,...r}:(e.forEach(A=>{A in r||(r[A]=t[A])}),r)}}function G4e(e){return({search:t,next:n})=>{if(e===!0)return{};const r=n(t);return Array.isArray(e)?e.forEach(A=>{delete r[A]}):Object.entries(e).forEach(([A,i])=>{cf(r[A],i)&&delete r[A]}),r}}function QD(e){const t=e.errorComponent??hQ;return p.jsx(H4e,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?b.createElement(t,{error:n,reset:r}):e.children})}class H4e extends b.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function hQ({error:e}){const[t,n]=b.useState(!1);return p.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[p.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),p.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),p.jsx("div",{style:{height:".25rem"}}),t?p.jsx("div",{children:p.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?p.jsx("code",{children:e.message}):null})}):null]})}function Y4e({children:e,fallback:t=null}){return z4e()?p.jsx(vt.Fragment,{children:e}):p.jsx(vt.Fragment,{children:t})}function z4e(){return vt.useSyncExternalStore(J4e,()=>!0,()=>!1)}function J4e(){return()=>{}}var yW={exports:{}},vW={};/** -* @license React -* use-sync-external-store-shim/with-selector.production.js -* -* Copyright (c) Meta Platforms, Inc. and affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var pQ=b,W4e=yIe;function Z4e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var X4e=typeof Object.is=="function"?Object.is:Z4e,K4e=W4e.useSyncExternalStore,V4e=pQ.useRef,q4e=pQ.useEffect,$4e=pQ.useMemo,exe=pQ.useDebugValue;vW.useSyncExternalStoreWithSelector=function(e,t,n,r,A){var i=V4e(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=$4e(function(){function f(k){if(!h){if(h=!0,m=k,k=r(k),A!==void 0&&a.hasValue){var D=a.value;if(A(D,k))return I=D}return I=k}if(D=I,X4e(m,k))return D;var R=r(k);return A!==void 0&&A(D,R)?(m=k,D):(m=k,I=R)}var h=!1,m,I,v=n===void 0?null:n;return[function(){return f(t())},v===null?void 0:function(){return f(v())}]},[t,n,r,A]);var c=K4e(e,i[0],i[1]);return q4e(function(){a.hasValue=!0,a.value=c},[c]),exe(c),c},yW.exports=vW;var txe=yW.exports;function nxe(e,t=r=>r,n={}){const r=n.equal??rxe;return txe.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,r)}function rxe(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,A]of e)if(!t.has(r)||!Object.is(A,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=bW(e);if(n.length!==bW(t).length)return!1;for(let r=0;r"u"?wD:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=wD,wD)}function Wa(e){const t=b.useContext(QW());return e==null||e.warn,t}function Gs(e){const t=Wa({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,r=b.useRef(void 0);return nxe(n.__store,A=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=Ec(r.current,e.select(A));return r.current=i,i}return e.select(A)}return A})}const mQ=b.createContext(void 0),oxe=b.createContext(void 0);function yu(e){const t=b.useContext(e.from?oxe:mQ);return Gs({select:n=>{const r=n.matches.find(A=>e.from?e.from===A.routeId:A.id===t);if(T0(!((e.shouldThrow??!0)&&!r),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),r!==void 0)return e.select?e.select(r):r},structuralSharing:e.structuralSharing})}function xD(e){return yu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function _D(e){const{select:t,...n}=e;return yu({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function kD(e){return yu({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function SD(e){return yu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Up(e){const t=Wa();return b.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}const EQ=typeof window<"u"?b.useLayoutEffect:b.useEffect;function DD(e){const t=b.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function ixe(e,t,n={},r={}){b.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const A=new IntersectionObserver(([i])=>{t(i)},n);return A.observe(e.current),()=>{A.disconnect()}},[t,n,r.disabled,e])}function Axe(e){const t=b.useRef(null);return b.useImperativeHandle(e,()=>t.current,[]),t}function sxe(e,t){const n=Wa(),[r,A]=b.useState(!1),i=b.useRef(!1),a=Axe(t),{activeProps:c,inactiveProps:f,activeOptions:h,to:m,preload:I,preloadDelay:v,hashScrollIntoView:k,replace:D,startTransition:R,resetScroll:F,viewTransition:N,children:T,target:P,disabled:G,style:Y,className:z,onClick:Z,onFocus:K,onMouseEnter:re,onMouseLeave:V,onTouchStart:oe,ignoreBlocker:Be,params:he,search:de,hash:me,state:Ae,mask:Ce,reloadDocument:ae,unsafeRelative:fe,from:ye,_fromLocation:Oe,...Ie}=e,Fe=Gs({select:Dt=>Dt.location.search,structuralSharing:!0}),qe=e.from,Ze=b.useMemo(()=>({...e,from:qe}),[n,Fe,qe,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Te=b.useMemo(()=>n.buildLocation({...Ze}),[n,Ze]),De=b.useMemo(()=>{if(G)return;let Dt=Te.maskedLocation?Te.maskedLocation.url:Te.url,Gt=!1;return n.origin&&(Dt.startsWith(n.origin)?Dt=n.history.createHref(Dt.replace(n.origin,""))||"/":Gt=!0),{href:Dt,external:Gt}},[G,Te.maskedLocation,Te.url,n.origin,n.history]),Se=b.useMemo(()=>{if(De!=null&&De.external)return De.href;try{return new URL(m),m}catch{}},[m,De]),Qe=e.reloadDocument||Se?!1:I??n.options.defaultPreload,Ye=v??n.options.defaultPreloadDelay??0,At=Gs({select:Dt=>{if(Se)return!1;if(h!=null&&h.exact){if(!zwe(Dt.location.pathname,Te.pathname,n.basepath))return!1}else{const Gt=sQ(Dt.location.pathname,n.basepath),It=sQ(Te.pathname,n.basepath);if(!(Gt.startsWith(It)&&(Gt.length===It.length||Gt[It.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!cf(Dt.location.search,Te.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?Dt.location.hash===Te.hash:!0}}),Je=b.useCallback(()=>{n.preloadRoute({...Ze}).catch(Dt=>{console.warn(Dt),console.warn(L4e)})},[n,Ze]),Nt=b.useCallback(Dt=>{Dt!=null&&Dt.isIntersecting&&Je()},[Je]);ixe(a,Nt,dxe,{disabled:!!G||Qe!=="viewport"}),b.useEffect(()=>{i.current||!G&&Qe==="render"&&(Je(),i.current=!0)},[G,Je,Qe]);const jt=Dt=>{const Gt=Dt.currentTarget.getAttribute("target"),It=P!==void 0?P:Gt;if(!G&&!fxe(Dt)&&!Dt.defaultPrevented&&(!It||It==="_self")&&Dt.button===0){Dt.preventDefault(),fu.flushSync(()=>{A(!0)});const Cn=n.subscribe("onResolved",()=>{Cn(),A(!1)});n.navigate({...Ze,replace:D,resetScroll:F,hashScrollIntoView:k,startTransition:R,viewTransition:N,ignoreBlocker:Be})}};if(Se)return{...Ie,ref:a,href:Se,...T&&{children:T},...P&&{target:P},...G&&{disabled:G},...Y&&{style:Y},...z&&{className:z},...Z&&{onClick:Z},...K&&{onFocus:K},...re&&{onMouseEnter:re},...V&&{onMouseLeave:V},...oe&&{onTouchStart:oe}};const bt=Dt=>{G||Qe&&Je()},wt=bt,se=Dt=>{if(!(G||!Qe))if(!Ye)Je();else{const Gt=Dt.target;if(bI.has(Gt))return;const It=setTimeout(()=>{bI.delete(Gt),Je()},Ye);bI.set(Gt,It)}},$t=Dt=>{if(G||!Qe||!Ye)return;const Gt=Dt.target,It=bI.get(Gt);It&&(clearTimeout(It),bI.delete(Gt))},Sn=At?Jg(c,{})??axe:RD,fn=At?RD:Jg(f,{})??RD,ue=[z,Sn.className,fn.className].filter(Boolean).join(" "),ln=(Y||Sn.style||fn.style)&&{...Y,...Sn.style,...fn.style};return{...Ie,...Sn,...fn,href:De==null?void 0:De.href,ref:a,onClick:QI([Z,jt]),onFocus:QI([K,bt]),onMouseEnter:QI([re,se]),onMouseLeave:QI([V,$t]),onTouchStart:QI([oe,wt]),disabled:!!G,target:P,...ln&&{style:ln},...ue&&{className:ue},...G&&lxe,...At&&cxe,...r&&uxe}}const RD={},axe={className:"active"},lxe={role:"link","aria-disabled":!0},cxe={"data-status":"active","aria-current":"page"},uxe={"data-transitioning":"transitioning"},bI=new WeakMap,dxe={rootMargin:"100px"},QI=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},Xg=b.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:A,ref:i,...a}=sxe(r,t),c=typeof r.children=="function"?r.children({isActive:a["data-status"]==="active"}):r.children;return n===void 0&&delete a.disabled,b.createElement(n||"a",{...a,ref:i},c)});function fxe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let gxe=class extends BW{constructor(e){super(e),this.useMatch=t=>yu({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>yu({...t,from:this.id,select:n=>t!=null&&t.select?t.select(n.context):n.context}),this.useSearch=t=>SD({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>kD({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>_D({...t,from:this.id}),this.useLoaderData=t=>xD({...t,from:this.id}),this.useNavigate=()=>Up({from:this.fullPath}),this.Link=vt.forwardRef((t,n)=>p.jsx(Xg,{ref:n,from:this.fullPath,...t})),this.$$typeof=Symbol.for("react.memo")}};function hxe(e){return new gxe(e)}class pxe extends P4e{constructor(t){super(t),this.useMatch=n=>yu({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>yu({...n,from:this.id,select:r=>n!=null&&n.select?n.select(r.context):r.context}),this.useSearch=n=>SD({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>kD({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>_D({...n,from:this.id}),this.useLoaderData=n=>xD({...n,from:this.id}),this.useNavigate=()=>Up({from:this.fullPath}),this.Link=vt.forwardRef((n,r)=>p.jsx(Xg,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function mxe(e){return new pxe(e)}function Kg(e){return typeof e=="object"?new wW(e,{silent:!0}).createRoute(e):new wW(e,{silent:!0}).createRoute}class wW{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const A=hxe(r);return A.isRoot=!1,A},this.silent=n==null?void 0:n.silent}}class xW{constructor(t){this.useMatch=n=>yu({select:n==null?void 0:n.select,from:this.options.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>yu({from:this.options.id,select:r=>n!=null&&n.select?n.select(r.context):r.context}),this.useSearch=n=>SD({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useParams=n=>kD({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>_D({...n,from:this.options.id}),this.useLoaderData=n=>xD({...n,from:this.options.id}),this.useNavigate=()=>{const n=Wa();return Up({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function _W(e){return typeof e=="object"?new xW(e):t=>new xW({id:e,...t})}function Exe(){const e=Wa(),t=b.useRef({router:e,mounted:!1}),[n,r]=b.useState(!1),{hasPendingMatches:A,isLoading:i}=Gs({select:I=>({isLoading:I.isLoading,hasPendingMatches:I.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),a=DD(i),c=i||n||A,f=DD(c),h=i||A,m=DD(h);return e.startTransition=I=>{r(!0),b.startTransition(()=>{I(),r(!1)})},b.useEffect(()=>{const I=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return df(e.latestLocation.href)!==df(v.href)&&e.commitLocation({...v,replace:!0}),()=>{I()}},[e,e.history]),EQ(()=>{typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(I){console.error(I)}})())},[e]),EQ(()=>{a&&!i&&e.emit({type:"onLoad",...Zg(e.state)})},[a,e,i]),EQ(()=>{m&&!h&&e.emit({type:"onBeforeRouteMount",...Zg(e.state)})},[h,m,e]),EQ(()=>{f&&!c&&(e.emit({type:"onResolved",...Zg(e.state)}),e.__store.setState(I=>({...I,status:"idle",resolvedLocation:I.location})),I4e(e))},[c,f,e]),null}function Ixe(e){const t=Gs({select:n=>`not-found-${n.location.pathname}-${n.status}`});return p.jsx(QD,{getResetKey:()=>t,onCatch:(n,r)=>{var A;if(Ic(n))(A=e.onCatch)==null||A.call(e,n,r);else throw n},errorComponent:({error:n})=>{var r;if(Ic(n))return(r=e.fallback)==null?void 0:r.call(e,n);throw n},children:e.children})}function Cxe(){return p.jsx("p",{children:"Not Found"})}function Gp(e){return p.jsx(p.Fragment,{children:e.children})}function kW(e,t,n){return t.options.notFoundComponent?p.jsx(t.options.notFoundComponent,{data:n}):e.options.defaultNotFoundComponent?p.jsx(e.options.defaultNotFoundComponent,{data:n}):p.jsx(Cxe,{})}function Bxe({children:e}){var n;const t=Wa();return t.isServer?p.jsx("script",{nonce:(n=t.options.ssr)==null?void 0:n.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:[e].filter(Boolean).join(` -`)+";$_TSR.c()"}}):null}function yxe(){const e=Wa();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const t=(e.options.getScrollRestorationKey||yD)(e.latestLocation),n=t!==yD(e.latestLocation)?t:void 0,r={storageKey:aQ,shouldScrollRestoration:!0};return n&&(r.key=n),p.jsx(Bxe,{children:`(${aW.toString()})(${JSON.stringify(r)})`})}const SW=b.memo(function({matchId:e}){var F,N;const t=Wa(),n=Gs({select:T=>{const P=T.matches.find(G=>G.id===e);return T0(P),{routeId:P.routeId,ssr:P.ssr,_displayPending:P._displayPending}},structuralSharing:!0}),r=t.routesById[n.routeId],A=r.options.pendingComponent??t.options.defaultPendingComponent,i=A?p.jsx(A,{}):null,a=r.options.errorComponent??t.options.defaultErrorComponent,c=r.options.onCatch??t.options.defaultOnCatch,f=r.isRoot?r.options.notFoundComponent??((F=t.options.notFoundRoute)==null?void 0:F.options.component):r.options.notFoundComponent,h=n.ssr===!1||n.ssr==="data-only",m=(!r.isRoot||r.options.wrapInSuspense||h)&&(r.options.wrapInSuspense??A??(((N=r.options.errorComponent)==null?void 0:N.preload)||h))?b.Suspense:Gp,I=a?QD:Gp,v=f?Ixe:Gp,k=Gs({select:T=>T.loadedAt}),D=Gs({select:T=>{var G;const P=T.matches.findIndex(Y=>Y.id===e);return(G=T.matches[P-1])==null?void 0:G.routeId}}),R=r.isRoot?r.options.shellComponent??Gp:Gp;return p.jsxs(R,{children:[p.jsx(mQ.Provider,{value:e,children:p.jsx(m,{fallback:i,children:p.jsx(I,{getResetKey:()=>k,errorComponent:a||hQ,onCatch:(T,P)=>{if(Ic(T))throw T;c==null||c(T,P)},children:p.jsx(v,{fallback:T=>{if(!f||T.routeId&&T.routeId!==n.routeId||!T.routeId&&!r.isRoot)throw T;return b.createElement(f,T)},children:h||n._displayPending?p.jsx(Y4e,{fallback:i,children:p.jsx(DW,{matchId:e})}):p.jsx(DW,{matchId:e})})})})}),D===Ja&&t.options.scrollRestoration?p.jsxs(p.Fragment,{children:[p.jsx(vxe,{}),p.jsx(yxe,{})]}):null]})});function vxe(){const e=Wa(),t=b.useRef(void 0);return p.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Zg(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const DW=b.memo(function({matchId:e}){var c,f,h,m;const t=Wa(),{match:n,key:r,routeId:A}=Gs({select:I=>{var R;const v=I.matches.find(F=>F.id===e),k=v.routeId,D=(R=t.routesById[k].options.remountDeps??t.options.defaultRemountDeps)==null?void 0:R({routeId:k,loaderDeps:v.loaderDeps,params:v._strictParams,search:v._strictSearch});return{key:D?JSON.stringify(D):void 0,routeId:k,match:{id:v.id,status:v.status,error:v.error,_forcePending:v._forcePending,_displayPending:v._displayPending}}},structuralSharing:!0}),i=t.routesById[A],a=b.useMemo(()=>{const I=i.options.component??t.options.defaultComponent;return I?p.jsx(I,{},r):p.jsx(RW,{})},[r,i.options.component,t.options.defaultComponent]);if(n._displayPending)throw(c=t.getMatch(n.id))==null?void 0:c._nonReactive.displayPendingPromise;if(n._forcePending)throw(f=t.getMatch(n.id))==null?void 0:f._nonReactive.minPendingPromise;if(n.status==="pending"){const I=i.options.pendingMinMs??t.options.defaultPendingMinMs;if(I){const v=t.getMatch(n.id);if(v&&!v._nonReactive.minPendingPromise&&!t.isServer){const k=jp();v._nonReactive.minPendingPromise=k,setTimeout(()=>{k.resolve(),v._nonReactive.minPendingPromise=void 0},I)}}throw(h=t.getMatch(n.id))==null?void 0:h._nonReactive.loadPromise}if(n.status==="notFound")return T0(Ic(n.error)),kW(t,i,n.error);if(n.status==="redirected")throw T0(Bu(n.error)),(m=t.getMatch(n.id))==null?void 0:m._nonReactive.loadPromise;if(n.status==="error"){if(t.isServer){const I=(i.options.errorComponent??t.options.defaultErrorComponent)||hQ;return p.jsx(I,{error:n.error,reset:void 0,info:{componentStack:""}})}throw n.error}return a}),RW=b.memo(function(){const e=Wa(),t=b.useContext(mQ),n=Gs({select:f=>{var h;return(h=f.matches.find(m=>m.id===t))==null?void 0:h.routeId}}),r=e.routesById[n],A=Gs({select:f=>{const h=f.matches.find(m=>m.id===t);return T0(h),h.globalNotFound}}),i=Gs({select:f=>{var I;const h=f.matches,m=h.findIndex(v=>v.id===t);return(I=h[m+1])==null?void 0:I.id}}),a=e.options.defaultPendingComponent?p.jsx(e.options.defaultPendingComponent,{}):null;if(A)return kW(e,r,void 0);if(!i)return null;const c=p.jsx(SW,{matchId:i});return n===Ja?p.jsx(b.Suspense,{fallback:a,children:c}):c});function bxe(){const e=Wa(),t=e.routesById[Ja].options.pendingComponent??e.options.defaultPendingComponent,n=t?p.jsx(t,{}):null,r=e.isServer||typeof document<"u"&&e.ssr?Gp:b.Suspense,A=p.jsxs(r,{fallback:n,children:[!e.isServer&&p.jsx(Exe,{}),p.jsx(Qxe,{})]});return e.options.InnerWrap?p.jsx(e.options.InnerWrap,{children:A}):A}function Qxe(){const e=Wa(),t=Gs({select:A=>{var i;return(i=A.matches[0])==null?void 0:i.id}}),n=Gs({select:A=>A.loadedAt}),r=t?p.jsx(SW,{matchId:t}):null;return p.jsx(mQ.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:p.jsx(QD,{getResetKey:()=>n,errorComponent:hQ,onCatch:A=>{A.message||A.toString()},children:r})})}const wxe=e=>new xxe(e);class xxe extends M4e{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=Kg,globalThis.createLazyFileRoute=_W):typeof window<"u"&&(window.createFileRoute=Kg,window.createLazyFileRoute=_W);function _xe({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=QW(),A=p.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?p.jsx(e.options.Wrap,{children:A}):A}function kxe({router:e,...t}){return p.jsx(_xe,{router:e,...t,children:p.jsx(bxe,{})})}function Sxe(e){return Gs({select:t=>t.location})}const Hp={};function TW(e){return"init"in e}function TD(e){return!!e.write}function MW(e){return"v"in e||"e"in e}function IQ(e){if("e"in e)throw e.e;if((Hp?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const CQ=new WeakMap;function FW(e){var t;return BQ(e)&&!!((t=CQ.get(e))!=null&&t[0])}function Dxe(e){const t=CQ.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function MD(e,t){let n=CQ.get(e);if(!n){n=[!0,new Set],CQ.set(e,n);const r=()=>{n[0]=!1};e.then(r,r)}n[1].add(t)}function BQ(e){return typeof(e==null?void 0:e.then)=="function"}function NW(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function jW(e,t,n){var r;const A=new Set;for(const i of((r=n.get(e))==null?void 0:r.t)||[])n.has(i)&&A.add(i);for(const i of t.p)A.add(i);return A}const Rxe=(e,t,...n)=>t.read(...n),Txe=(e,t,...n)=>t.write(...n),Mxe=(e,t)=>{var n;return(n=t.unstable_onInit)==null?void 0:n.call(t,e)},Fxe=(e,t,n)=>{var r;return(r=t.onMount)==null?void 0:r.call(t,n)},Nxe=(e,t)=>{const n=ps(e),r=n[0],A=n[9];if((Hp?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let i=r.get(t);return i||(i={d:new Map,p:new Set,n:0},r.set(t,i),A==null||A(e,t)),i},jxe=e=>{const t=ps(e),n=t[1],r=t[3],A=t[4],i=t[5],a=t[6],c=t[13],f=[],h=m=>{try{m()}catch(I){f.push(I)}};do{a.f&&h(a.f);const m=new Set,I=m.add.bind(m);r.forEach(v=>{var k;return(k=n.get(v))==null?void 0:k.l.forEach(I)}),r.clear(),i.forEach(I),i.clear(),A.forEach(I),A.clear(),m.forEach(h),r.size&&c(e)}while(r.size||i.size||A.size);if(f.length)throw new AggregateError(f)},Oxe=e=>{const t=ps(e),n=t[1],r=t[2],A=t[3],i=t[11],a=t[14],c=t[17],f=[],h=new WeakSet,m=new WeakSet,I=Array.from(A);for(;I.length;){const v=I[I.length-1],k=i(e,v);if(m.has(v)){I.pop();continue}if(h.has(v)){if(r.get(v)===k.n)f.push([v,k]);else if((Hp?"production":void 0)!=="production"&&r.has(v))throw new Error("[Bug] invalidated atom exists");m.add(v),I.pop();continue}h.add(v);for(const D of jW(v,k,n))h.has(D)||I.push(D)}for(let v=f.length-1;v>=0;--v){const[k,D]=f[v];let R=!1;for(const F of D.d.keys())if(F!==k&&A.has(F)){R=!0;break}R&&(a(e,k),c(e,k)),r.delete(k)}},Lxe=(e,t)=>{var n,r;const A=ps(e),i=A[1],a=A[2],c=A[3],f=A[6],h=A[7],m=A[11],I=A[12],v=A[13],k=A[14],D=A[16],R=A[17],F=m(e,t);if(MW(F)&&(i.has(t)&&a.get(t)!==F.n||Array.from(F.d).every(([K,re])=>k(e,K).n===re)))return F;F.d.clear();let N=!0;function T(){i.has(t)&&(R(e,t),v(e),I(e))}function P(K){var re;if(K===t){const oe=m(e,K);if(!MW(oe))if(TW(K))yQ(e,K,K.init);else throw new Error("no atom init");return IQ(oe)}const V=k(e,K);try{return IQ(V)}finally{F.d.set(K,V.n),FW(F.v)&&NW(t,F.v,V),(re=i.get(K))==null||re.t.add(t),N||T()}}let G,Y;const z={get signal(){return G||(G=new AbortController),G.signal},get setSelf(){return(Hp?"production":void 0)!=="production"&&!TD(t)&&console.warn("setSelf function cannot be used with read-only atom"),!Y&&TD(t)&&(Y=(...K)=>{if((Hp?"production":void 0)!=="production"&&N&&console.warn("setSelf function cannot be called in sync"),!N)try{return D(e,t,...K)}finally{v(e),I(e)}}),Y}},Z=F.n;try{const K=h(e,t,P,z);return yQ(e,t,K),BQ(K)&&(MD(K,()=>G==null?void 0:G.abort()),K.then(T,T)),(n=f.r)==null||n.call(f,t),F}catch(K){return delete F.v,F.e=K,++F.n,F}finally{N=!1,Z!==F.n&&a.get(t)===Z&&(a.set(t,F.n),c.add(t),(r=f.c)==null||r.call(f,t))}},Pxe=(e,t)=>{const n=ps(e),r=n[1],A=n[2],i=n[11],a=[t];for(;a.length;){const c=a.pop(),f=i(e,c);for(const h of jW(c,f,r)){const m=i(e,h);A.set(h,m.n),a.push(h)}}},OW=(e,t,...n)=>{const r=ps(e),A=r[3],i=r[6],a=r[8],c=r[11],f=r[12],h=r[13],m=r[14],I=r[15],v=r[17];let k=!0;const D=F=>IQ(m(e,F)),R=(F,...N)=>{var T;const P=c(e,F);try{if(F===t){if(!TW(F))throw new Error("atom not writable");const G=P.n,Y=N[0];yQ(e,F,Y),v(e,F),G!==P.n&&(A.add(F),(T=i.c)==null||T.call(i,F),I(e,F));return}else return OW(e,F,...N)}finally{k||(h(e),f(e))}};try{return a(e,t,D,R,...n)}finally{k=!1}},Uxe=(e,t)=>{var n;const r=ps(e),A=r[1],i=r[3],a=r[6],c=r[11],f=r[15],h=r[18],m=r[19],I=c(e,t),v=A.get(t);if(v&&!FW(I.v)){for(const[k,D]of I.d)if(!v.d.has(k)){const R=c(e,k);h(e,k).t.add(t),v.d.add(k),D!==R.n&&(i.add(k),(n=a.c)==null||n.call(a,k),f(e,k))}for(const k of v.d||[])if(!I.d.has(k)){v.d.delete(k);const D=m(e,k);D==null||D.t.delete(t)}}},LW=(e,t)=>{var n;const r=ps(e),A=r[1],i=r[4],a=r[6],c=r[10],f=r[11],h=r[12],m=r[13],I=r[14],v=r[16],k=f(e,t);let D=A.get(t);if(!D){I(e,t);for(const R of k.d.keys())LW(e,R).t.add(t);if(D={l:new Set,d:new Set(k.d.keys()),t:new Set},A.set(t,D),(n=a.m)==null||n.call(a,t),TD(t)){const R=()=>{let F=!0;const N=(...T)=>{try{return v(e,t,...T)}finally{F||(m(e),h(e))}};try{const T=c(e,t,N);T&&(D.u=()=>{F=!0;try{T()}finally{F=!1}})}finally{F=!1}};i.add(R)}}return D},Gxe=(e,t)=>{var n;const r=ps(e),A=r[1],i=r[5],a=r[6],c=r[11],f=r[19],h=c(e,t);let m=A.get(t);if(m&&!m.l.size&&!Array.from(m.t).some(I=>{var v;return(v=A.get(I))==null?void 0:v.d.has(t)})){m.u&&i.add(m.u),m=void 0,A.delete(t),(n=a.u)==null||n.call(a,t);for(const I of h.d.keys()){const v=f(e,I);v==null||v.t.delete(t)}return}return m},yQ=(e,t,n)=>{const r=ps(e)[11],A=r(e,t),i="v"in A,a=A.v;if(BQ(n))for(const c of A.d.keys())NW(t,n,r(e,c));A.v=n,delete A.e,(!i||!Object.is(a,A.v))&&(++A.n,BQ(a)&&Dxe(a))},Hxe=(e,t)=>{const n=ps(e)[14];return IQ(n(e,t))},Yxe=(e,t,...n)=>{const r=ps(e),A=r[12],i=r[13],a=r[16];try{return a(e,t,...n)}finally{i(e),A(e)}},zxe=(e,t,n)=>{const r=ps(e),A=r[12],i=r[18],a=r[19],c=i(e,t).l;return c.add(n),A(e),()=>{c.delete(n),a(e,t),A(e)}},PW=new WeakMap,ps=e=>{const t=PW.get(e);if((Hp?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function Jxe(...e){const t={get(r){const A=ps(t)[21];return A(t,r)},set(r,...A){const i=ps(t)[22];return i(t,r,...A)},sub(r,A){const i=ps(t)[23];return i(t,r,A)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},Rxe,Txe,Mxe,Fxe,Nxe,jxe,Oxe,Lxe,Pxe,OW,Uxe,LW,Gxe,yQ,Hxe,Yxe,zxe,void 0].map((r,A)=>e[A]||r);return PW.set(t,Object.freeze(n)),t}const UW={};let Wxe=0;function Ke(e,t){const n=`atom${++Wxe}`,r={toString(){return(UW?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=Zxe,r.write=Xxe),t&&(r.write=t),r}function Zxe(e){return e(this)}function Xxe(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function Kxe(){return Jxe()}let wI;function ns(){return wI||(wI=Kxe(),(UW?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=wI),globalThis.__JOTAI_DEFAULT_STORE__!==wI&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),wI}const Vxe={},qxe=b.createContext(void 0);function GW(e){return b.useContext(qxe)||ns()}const FD=e=>typeof(e==null?void 0:e.then)=="function",ND=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},$xe=vt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(ND(e),e)}),jD=new WeakMap,HW=(e,t)=>{let n=jD.get(e);return n||(n=new Promise((r,A)=>{let i=e;const a=h=>m=>{i===h&&r(m)},c=h=>m=>{i===h&&A(m)},f=()=>{try{const h=t();FD(h)?(jD.set(h,n),i=h,h.then(a(h),c(h)),MD(h,f)):r(h)}catch(h){A(h)}};e.then(a(e),c(e)),MD(e,f)}),jD.set(e,n)),n};function we(e,t){const{delay:n,unstable_promiseStatus:r=!vt.use}={},A=GW(),[[i,a,c],f]=b.useReducer(m=>{const I=A.get(e);return Object.is(m[0],I)&&m[1]===A&&m[2]===e?m:[I,A,e]},void 0,()=>[A.get(e),A,e]);let h=i;if((a!==A||c!==e)&&(f(),h=A.get(e)),b.useEffect(()=>{const m=A.sub(e,()=>{if(r)try{const I=A.get(e);FD(I)&&ND(HW(I,()=>A.get(e)))}catch{}if(typeof n=="number"){setTimeout(f,n);return}f()});return f(),m},[A,e,n,r]),b.useDebugValue(h),FD(h)){const m=HW(h,()=>A.get(e));return r&&ND(m),$xe(m)}return h}function dt(e,t){const n=GW();return b.useCallback((...r)=>{if((Vxe?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Cc(e,t){return[we(e),dt(e)]}var YW=Symbol.for("immer-nothing"),zW=Symbol.for("immer-draftable"),xo=Symbol.for("immer-state");function kl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var xI=Object.getPrototypeOf;function Yp(e){return!!e&&!!e[xo]}function F0(e){var t;return e?WW(e)||Array.isArray(e)||!!e[zW]||!!((t=e.constructor)!=null&&t[zW])||kI(e)||bQ(e):!1}var e_e=Object.prototype.constructor.toString(),JW=new WeakMap;function WW(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=JW.get(n);return r===void 0&&(r=Function.toString.call(n),JW.set(n,r)),r===e_e}function _I(e,t,n=!0){vQ(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,A)=>t(A,r,e))}function vQ(e){const t=e[xo];return t?t.type_:Array.isArray(e)?1:kI(e)?2:bQ(e)?3:0}function OD(e,t){return vQ(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ZW(e,t,n){const r=vQ(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function t_e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function kI(e){return e instanceof Map}function bQ(e){return e instanceof Set}function OA(e){return e.copy_||e.base_}function LD(e,t){if(kI(e))return new Map(e);if(bQ(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=WW(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[xo];let A=Reflect.ownKeys(r);for(let i=0;i1&&Object.defineProperties(e,{set:QQ,add:QQ,clear:QQ,delete:QQ}),Object.freeze(e),t&&Object.values(e).forEach(n=>PD(n,!0))),e}function n_e(){kl(2)}var QQ={value:n_e};function wQ(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var UD={};function Vg(e){const t=UD[e];return t||kl(0,e),t}function r_e(e,t){UD[e]||(UD[e]=t)}var SI;function xQ(){return SI}function o_e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function XW(e,t){t&&(Vg("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function GD(e){HD(e),e.drafts_.forEach(i_e),e.drafts_=null}function HD(e){e===SI&&(SI=e.parent_)}function KW(e){return SI=o_e(SI,e)}function i_e(e){const t=e[xo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function VW(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xo].modified_&&(GD(t),kl(4)),F0(e)&&(e=_Q(t,e),t.parent_||kQ(t,e)),t.patches_&&Vg("Patches").generateReplacementPatches_(n[xo].base_,e,t.patches_,t.inversePatches_)):e=_Q(t,n,[]),GD(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==YW?e:void 0}function _Q(e,t,n){if(wQ(t))return t;const r=e.immer_.shouldUseStrictIteration(),A=t[xo];if(!A)return _I(t,(i,a)=>qW(e,A,t,i,a,n),r),t;if(A.scope_!==e)return t;if(!A.modified_)return kQ(e,A.base_,!0),A.base_;if(!A.finalized_){A.finalized_=!0,A.scope_.unfinalizedDrafts_--;const i=A.copy_;let a=i,c=!1;A.type_===3&&(a=new Set(i),i.clear(),c=!0),_I(a,(f,h)=>qW(e,A,i,f,h,n,c),r),kQ(e,i,!1),n&&e.patches_&&Vg("Patches").generatePatches_(A,n,e.patches_,e.inversePatches_)}return A.copy_}function qW(e,t,n,r,A,i,a){if(A==null||typeof A!="object"&&!a)return;const c=wQ(A);if(!(c&&!a)){if(Yp(A)){const f=i&&t&&t.type_!==3&&!OD(t.assigned_,r)?i.concat(r):void 0,h=_Q(e,A,f);if(ZW(n,r,h),Yp(h))e.canAutoFreeze_=!1;else return}else a&&n.add(A);if(F0(A)&&!c){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===A&&c)return;_Q(e,A),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(kI(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&kQ(e,A)}}}function kQ(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&PD(t,n)}function A_e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:xQ(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let A=r,i=YD;n&&(A=[r],i=DI);const{revoke:a,proxy:c}=Proxy.revocable(A,i);return r.draft_=c,r.revoke_=a,c}var YD={get(e,t){if(t===xo)return e;const n=OA(e);if(!OD(n,t))return s_e(e,n,t);const r=n[t];return e.finalized_||!F0(r)?r:r===zD(e.base_,t)?(JD(e),e.copy_[t]=RI(r,e)):r},has(e,t){return t in OA(e)},ownKeys(e){return Reflect.ownKeys(OA(e))},set(e,t,n){const r=$W(OA(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const A=zD(OA(e),t),i=A==null?void 0:A[xo];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(t_e(n,A)&&(n!==void 0||OD(e.base_,t)))return!0;JD(e),N0(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return zD(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,JD(e),N0(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=OA(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){kl(11)},getPrototypeOf(e){return xI(e.base_)},setPrototypeOf(){kl(12)}},DI={};_I(YD,(e,t)=>{DI[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),DI.deleteProperty=function(e,t){return DI.set.call(this,e,t,void 0)},DI.set=function(e,t,n){return YD.set.call(this,e[0],t,n,e[0])};function zD(e,t){const n=e[xo];return(n?OA(n):e)[t]}function s_e(e,t,n){var A;const r=$W(t,n);return r?"value"in r?r.value:(A=r.get)==null?void 0:A.call(e.draft_):void 0}function $W(e,t){if(!(t in e))return;let n=xI(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=xI(n)}}function N0(e){e.modified_||(e.modified_=!0,e.parent_&&N0(e.parent_))}function JD(e){e.copy_||(e.copy_=LD(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var a_e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(c=i,...f){return a.produce(c,h=>n.call(this,h,...f))}}typeof n!="function"&&kl(6),r!==void 0&&typeof r!="function"&&kl(7);let A;if(F0(t)){const i=KW(this),a=RI(t,void 0);let c=!0;try{A=n(a),c=!1}finally{c?GD(i):HD(i)}return XW(i,r),VW(A,i)}else if(!t||typeof t!="object"){if(A=n(t),A===void 0&&(A=t),A===YW&&(A=void 0),this.autoFreeze_&&PD(A,!0),r){const i=[],a=[];Vg("Patches").generateReplacementPatches_(t,A,i,a),r(i,a)}return A}else kl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,c=>t(c,...a));let r,A;return[this.produce(t,n,(i,a)=>{r=i,A=a}),r,A]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){F0(e)||kl(8),Yp(e)&&(e=l_e(e));const t=KW(this),n=RI(e,void 0);return n[xo].isManual_=!0,HD(t),n}finishDraft(e,t){const n=e&&e[xo];(!n||!n.isManual_)&&kl(9);const{scope_:r}=n;return XW(r,t),VW(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const A=t[n];if(A.path.length===0&&A.op==="replace"){e=A.value;break}}n>-1&&(t=t.slice(n+1));const r=Vg("Patches").applyPatches_;return Yp(e)?r(e,t):this.produce(e,A=>r(A,t))}};function RI(e,t){const n=kI(e)?Vg("MapSet").proxyMap_(e,t):bQ(e)?Vg("MapSet").proxySet_(e,t):A_e(e,t);return(t?t.scope_:xQ()).drafts_.push(n),n}function l_e(e){return Yp(e)||kl(10,e),eZ(e)}function eZ(e){if(!F0(e)||wQ(e))return e;const t=e[xo];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=LD(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=LD(e,!0);return _I(n,(A,i)=>{ZW(n,A,eZ(i))},r),t&&(t.finalized_=!1),n}function c_e(){class e extends Map{constructor(f,h){super(),this[xo]={type_:2,parent_:h,scope_:h?h.scope_:xQ(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:f,draft_:this,isManual_:!1,revoked_:!1}}get size(){return OA(this[xo]).size}has(f){return OA(this[xo]).has(f)}set(f,h){const m=this[xo];return a(m),(!OA(m).has(f)||OA(m).get(f)!==h)&&(n(m),N0(m),m.assigned_.set(f,!0),m.copy_.set(f,h),m.assigned_.set(f,!0)),this}delete(f){if(!this.has(f))return!1;const h=this[xo];return a(h),n(h),N0(h),h.base_.has(f)?h.assigned_.set(f,!1):h.assigned_.delete(f),h.copy_.delete(f),!0}clear(){const f=this[xo];a(f),OA(f).size&&(n(f),N0(f),f.assigned_=new Map,_I(f.base_,h=>{f.assigned_.set(h,!1)}),f.copy_.clear())}forEach(f,h){const m=this[xo];OA(m).forEach((I,v,k)=>{f.call(h,this.get(v),v,this)})}get(f){const h=this[xo];a(h);const m=OA(h).get(f);if(h.finalized_||!F0(m)||m!==h.base_.get(f))return m;const I=RI(m,h);return n(h),h.copy_.set(f,I),I}keys(){return OA(this[xo]).keys()}values(){const f=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const h=f.next();return h.done?h:{done:!1,value:this.get(h.value)}}}}entries(){const f=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const h=f.next();if(h.done)return h;const m=this.get(h.value);return{done:!1,value:[h.value,m]}}}}[Symbol.iterator](){return this.entries()}}function t(c,f){return new e(c,f)}function n(c){c.copy_||(c.assigned_=new Map,c.copy_=new Map(c.base_))}class r extends Set{constructor(f,h){super(),this[xo]={type_:3,parent_:h,scope_:h?h.scope_:xQ(),modified_:!1,finalized_:!1,copy_:void 0,base_:f,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return OA(this[xo]).size}has(f){const h=this[xo];return a(h),h.copy_?!!(h.copy_.has(f)||h.drafts_.has(f)&&h.copy_.has(h.drafts_.get(f))):h.base_.has(f)}add(f){const h=this[xo];return a(h),this.has(f)||(i(h),N0(h),h.copy_.add(f)),this}delete(f){if(!this.has(f))return!1;const h=this[xo];return a(h),i(h),N0(h),h.copy_.delete(f)||(h.drafts_.has(f)?h.copy_.delete(h.drafts_.get(f)):!1)}clear(){const f=this[xo];a(f),OA(f).size&&(i(f),N0(f),f.copy_.clear())}values(){const f=this[xo];return a(f),i(f),f.copy_.values()}entries(){const f=this[xo];return a(f),i(f),f.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(f,h){const m=this.values();let I=m.next();for(;!I.done;)f.call(h,I.value,I.value,this),I=m.next()}}function A(c,f){return new r(c,f)}function i(c){c.copy_||(c.copy_=new Set,c.base_.forEach(f=>{if(F0(f)){const h=RI(f,c);c.drafts_.set(f,h),c.copy_.add(h)}else c.copy_.add(f)}))}function a(c){c.revoked_&&kl(3,JSON.stringify(OA(c)))}r_e("MapSet",{proxyMap_:t,proxySet_:A})}var u_e=new a_e,tZ=u_e.produce;function Za(e){const t=Ke(e,(n,r,A)=>r(t,tZ(n(t),typeof A=="function"?A:()=>A)));return t}function nZ(e){const t=Ke(e);let n;return Ke(r=>r(t),(r,A,i)=>{n!==void 0&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>{n=void 0,A(t,i)})})}function d_e(e=6e4){const t=Za({});return n=>Ke(r=>n==null?!1:!!r(t)[n],(r,A)=>{if(n==null)return;const i=setTimeout(()=>{A(t,a=>{delete a[n]})},e);A(t,a=>{a[n]&&clearTimeout(a[n]),a[n]=i})})}const rZ=Ke(void 0),TI=Ke(void 0),oZ=Ke(void 0),qg=Ke(void 0),iZ=Ke(void 0),zp=Ke(void 0),SQ=Ke(void 0),AZ=Ke(void 0),sZ=Ke(void 0),aZ=Ke(void 0);Ke(void 0);const lZ=Ke(void 0),Jp=Ke(void 0),cZ=Ke(void 0);Ke(void 0);const f_e=Ke(void 0),uZ=Ke(void 0),dZ=Ke(void 0),fZ=Ke(void 0),gZ=Ke(void 0),hZ=Ke(void 0),WD=Ke(void 0),pZ=Ke(void 0),mZ=nZ(void 0),EZ=Ke(void 0),IZ=Ke(void 0),DQ=Ke(void 0),Wp=Ke(void 0),vu=Ke(void 0),CZ=nZ(void 0),BZ=Ke(void 0),yZ=Ke(void 0),vZ=Ke(void 0),bZ=Ke(void 0),ZD=Ke(void 0),QZ=Ke(void 0),RQ=Ke(void 0),wZ=Ke(void 0),xZ=Ke(void 0),g_e="_outer-container_13cf2_1",h_e="_inner-container_13cf2_12",_Z={outerContainer:g_e,innerContainer:h_e};function gt(e,t,n){function r(c,f){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:f,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,f);const h=a.prototype,m=Object.keys(h);for(let I=0;I{var f,h;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(h=(f=c==null?void 0:c._zod)==null?void 0:f.traits)==null?void 0:h.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class Zp extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class kZ extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const SZ={};function gf(e){return SZ}function p_e(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function XD(e,t){return typeof t=="bigint"?t.toString():t}function TQ(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function KD(e){return e==null}function VD(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function m_e(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let A=(r.split(".")[1]||"").length;if(A===0&&/\d?e-\d?/.test(r)){const f=r.match(/\d?e-(\d?)/);f!=null&&f[1]&&(A=Number.parseInt(f[1]))}const i=n>A?n:A,a=Number.parseInt(e.toFixed(i).replace(".","")),c=Number.parseInt(t.toFixed(i).replace(".",""));return a%c/10**i}const DZ=Symbol("evaluating");function Go(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==DZ)return r===void 0&&(r=DZ,r=n()),r},set(A){Object.defineProperty(e,t,{value:A})},configurable:!0})}function $g(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function eh(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function RZ(e){return JSON.stringify(e)}function E_e(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const TZ="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function MI(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const I_e=TQ(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Xp(e){if(MI(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(MI(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function MZ(e){return Xp(e)?{...e}:Array.isArray(e)?[...e]:e}const C_e=new Set(["string","number","symbol"]);function Kp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hf(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function bn(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function B_e(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const y_e={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function v_e(e,t){const n=e._zod.def,r=eh(e._zod.def,{get shape(){const A={};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(A[i]=n.shape[i])}return $g(this,"shape",A),A},checks:[]});return hf(e,r)}function b_e(e,t){const n=e._zod.def,r=eh(e._zod.def,{get shape(){const A={...e._zod.def.shape};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete A[i]}return $g(this,"shape",A),A},checks:[]});return hf(e,r)}function Q_e(e,t){if(!Xp(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const r=eh(e._zod.def,{get shape(){const A={...e._zod.def.shape,...t};return $g(this,"shape",A),A},checks:[]});return hf(e,r)}function w_e(e,t){if(!Xp(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return $g(this,"shape",r),r},checks:e._zod.def.checks};return hf(e,n)}function x_e(e,t){const n=eh(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return $g(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return hf(e,n)}function __e(e,t,n){const r=eh(t._zod.def,{get shape(){const A=t._zod.def.shape,i={...A};if(n)for(const a in n){if(!(a in A))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=e?new e({type:"optional",innerType:A[a]}):A[a])}else for(const a in A)i[a]=e?new e({type:"optional",innerType:A[a]}):A[a];return $g(this,"shape",i),i},checks:[]});return hf(t,r)}function k_e(e,t,n){const r=eh(t._zod.def,{get shape(){const A=t._zod.def.shape,i={...A};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:A[a]}))}else for(const a in A)i[a]=new e({type:"nonoptional",innerType:A[a]});return $g(this,"shape",i),i},checks:[]});return hf(t,r)}function Vp(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function MQ(e){return typeof e=="string"?e:e==null?void 0:e.message}function pf(e,t,n){var A,i,a,c,f,h;const r={...e,path:e.path??[]};if(!e.message){const m=MQ((a=(i=(A=e.inst)==null?void 0:A._zod.def)==null?void 0:i.error)==null?void 0:a.call(i,e))??MQ((c=t==null?void 0:t.error)==null?void 0:c.call(t,e))??MQ((f=n.customError)==null?void 0:f.call(n,e))??MQ((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input";r.message=m}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function qD(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function FI(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const FZ=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,XD,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},NZ=gt("$ZodError",FZ),jZ=gt("$ZodError",FZ,{Parent:Error});function S_e(e,t=n=>n.message){const n={},r=[];for(const A of e.issues)A.path.length>0?(n[A.path[0]]=n[A.path[0]]||[],n[A.path[0]].push(t(A))):r.push(t(A));return{formErrors:r,fieldErrors:n}}function D_e(e,t=n=>n.message){const n={_errors:[]},r=A=>{for(const i of A.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>r({issues:a}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let a=n,c=0;for(;c(t,n,r,A)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Zp;if(a.issues.length){const c=new((A==null?void 0:A.Err)??e)(a.issues.map(f=>pf(f,i,gf())));throw TZ(c,A==null?void 0:A.callee),c}return a.value},e5=e=>async(t,n,r,A)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new((A==null?void 0:A.Err)??e)(a.issues.map(f=>pf(f,i,gf())));throw TZ(c,A==null?void 0:A.callee),c}return a.value},FQ=e=>(t,n,r)=>{const A=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},A);if(i instanceof Promise)throw new Zp;return i.issues.length?{success:!1,error:new(e??NZ)(i.issues.map(a=>pf(a,A,gf())))}:{success:!0,data:i.value}},R_e=FQ(jZ),NQ=e=>async(t,n,r)=>{const A=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},A);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>pf(a,A,gf())))}:{success:!0,data:i.value}},T_e=NQ(jZ),M_e=e=>(t,n,r)=>{const A=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return $D(e)(t,n,A)},F_e=e=>(t,n,r)=>$D(e)(t,n,r),N_e=e=>async(t,n,r)=>{const A=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return e5(e)(t,n,A)},j_e=e=>async(t,n,r)=>e5(e)(t,n,r),O_e=e=>(t,n,r)=>{const A=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return FQ(e)(t,n,A)},L_e=e=>(t,n,r)=>FQ(e)(t,n,r),P_e=e=>async(t,n,r)=>{const A=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return NQ(e)(t,n,A)},U_e=e=>async(t,n,r)=>NQ(e)(t,n,r),G_e=/^[cC][^\s-]{8,}$/,H_e=/^[0-9a-z]+$/,Y_e=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,z_e=/^[0-9a-vA-V]{20}$/,J_e=/^[A-Za-z0-9]{27}$/,W_e=/^[a-zA-Z0-9_-]{21}$/,Z_e=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,X_e=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,OZ=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,K_e=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,V_e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function q_e(){return new RegExp(V_e,"u")}const $_e=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,e6e=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,t6e=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,n6e=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,r6e=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,LZ=/^[A-Za-z0-9_-]*$/,o6e=/^\+(?:[0-9]){6,14}[0-9]$/,PZ="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",i6e=new RegExp(`^${PZ}$`);function UZ(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function A6e(e){return new RegExp(`^${UZ(e)}$`)}function s6e(e){const t=UZ({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${PZ}T(?:${r})$`)}const a6e=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},l6e=/^-?\d+n?$/,c6e=/^-?\d+$/,u6e=/^-?\d+(?:\.\d+)?/,d6e=/^(?:true|false)$/i,f6e=/^null$/i,g6e=/^[^A-Z]*$/,h6e=/^[^a-z]*$/,ua=gt("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),GZ={number:"number",bigint:"bigint",object:"date"},HZ=gt("$ZodCheckLessThan",(e,t)=>{ua.init(e,t);const n=GZ[typeof t.value];e._zod.onattach.push(r=>{const A=r._zod.bag,i=(t.inclusive?A.maximum:A.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?r.value<=t.value:r.value{ua.init(e,t);const n=GZ[typeof t.value];e._zod.onattach.push(r=>{const A=r._zod.bag,i=(t.inclusive?A.minimum:A.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?A.minimum=t.value:A.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),p6e=gt("$ZodCheckMultipleOf",(e,t)=>{ua.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):m_e(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),m6e=gt("$ZodCheckNumberFormat",(e,t)=>{var a;ua.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),r=n?"int":"number",[A,i]=y_e[t.format];e._zod.onattach.push(c=>{const f=c._zod.bag;f.format=t.format,f.minimum=A,f.maximum=i,n&&(f.pattern=c6e)}),e._zod.check=c=>{const f=c.value;if(n){if(!Number.isInteger(f)){c.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?c.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):c.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}fi&&c.issues.push({origin:"number",input:f,code:"too_big",maximum:i,inst:e})}}),E6e=gt("$ZodCheckMaxLength",(e,t)=>{var n;ua.init(e,t),(n=e._zod.def).when??(n.when=r=>{const A=r.value;return!KD(A)&&A.length!==void 0}),e._zod.onattach.push(r=>{const A=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const A=r.value;if(A.length<=t.maximum)return;const i=qD(A);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:A,inst:e,continue:!t.abort})}}),I6e=gt("$ZodCheckMinLength",(e,t)=>{var n;ua.init(e,t),(n=e._zod.def).when??(n.when=r=>{const A=r.value;return!KD(A)&&A.length!==void 0}),e._zod.onattach.push(r=>{const A=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>A&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const A=r.value;if(A.length>=t.minimum)return;const i=qD(A);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:A,inst:e,continue:!t.abort})}}),C6e=gt("$ZodCheckLengthEquals",(e,t)=>{var n;ua.init(e,t),(n=e._zod.def).when??(n.when=r=>{const A=r.value;return!KD(A)&&A.length!==void 0}),e._zod.onattach.push(r=>{const A=r._zod.bag;A.minimum=t.length,A.maximum=t.length,A.length=t.length}),e._zod.check=r=>{const A=r.value,i=A.length;if(i===t.length)return;const a=qD(A),c=i>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),jQ=gt("$ZodCheckStringFormat",(e,t)=>{var n,r;ua.init(e,t),e._zod.onattach.push(A=>{const i=A._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=A=>{t.pattern.lastIndex=0,!t.pattern.test(A.value)&&A.issues.push({origin:"string",code:"invalid_format",format:t.format,input:A.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),B6e=gt("$ZodCheckRegex",(e,t)=>{jQ.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),y6e=gt("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=g6e),jQ.init(e,t)}),v6e=gt("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=h6e),jQ.init(e,t)}),b6e=gt("$ZodCheckIncludes",(e,t)=>{ua.init(e,t);const n=Kp(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(A=>{const i=A._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=A=>{A.value.includes(t.includes,t.position)||A.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:A.value,inst:e,continue:!t.abort})}}),Q6e=gt("$ZodCheckStartsWith",(e,t)=>{ua.init(e,t);const n=new RegExp(`^${Kp(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const A=r._zod.bag;A.patterns??(A.patterns=new Set),A.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),w6e=gt("$ZodCheckEndsWith",(e,t)=>{ua.init(e,t);const n=new RegExp(`.*${Kp(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const A=r._zod.bag;A.patterns??(A.patterns=new Set),A.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),x6e=gt("$ZodCheckOverwrite",(e,t)=>{ua.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class _6e{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` -`).filter(i=>i),r=Math.min(...n.map(i=>i.length-i.trimStart().length)),A=n.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(const i of A)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(A=>` ${A}`)];return new t(...n,r.join(` -`))}}const k6e={major:4,minor:1,patch:13},Ho=gt("$ZodType",(e,t)=>{var A;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=k6e;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(A=e._zod.deferred)==null||A.push(()=>{e._zod.run=e._zod.parse});else{const i=(c,f,h)=>{let m=Vp(c),I;for(const v of f){if(v._zod.def.when){if(!v._zod.def.when(c))continue}else if(m)continue;const k=c.issues.length,D=v._zod.check(c);if(D instanceof Promise&&(h==null?void 0:h.async)===!1)throw new Zp;if(I||D instanceof Promise)I=(I??Promise.resolve()).then(async()=>{await D,c.issues.length!==k&&(m||(m=Vp(c,k)))});else{if(c.issues.length===k)continue;m||(m=Vp(c,k))}}return I?I.then(()=>c):c},a=(c,f,h)=>{if(Vp(c))return c.aborted=!0,c;const m=i(f,r,h);if(m instanceof Promise){if(h.async===!1)throw new Zp;return m.then(I=>e._zod.parse(I,h))}return e._zod.parse(m,h)};e._zod.run=(c,f)=>{if(f.skipChecks)return e._zod.parse(c,f);if(f.direction==="backward"){const m=e._zod.parse({value:c.value,issues:[]},{...f,skipChecks:!0});return m instanceof Promise?m.then(I=>a(I,c,f)):a(m,c,f)}const h=e._zod.parse(c,f);if(h instanceof Promise){if(f.async===!1)throw new Zp;return h.then(m=>i(m,r,f))}return i(h,r,f)}}e["~standard"]={validate:i=>{var a;try{const c=R_e(e,i);return c.success?{value:c.data}:{issues:(a=c.error)==null?void 0:a.issues}}catch{return T_e(e,i).then(c=>{var f;return c.success?{value:c.data}:{issues:(f=c.error)==null?void 0:f.issues}})}},vendor:"zod",version:1}}),t5=gt("$ZodString",(e,t)=>{var n;Ho.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??a6e(e._zod.bag),e._zod.parse=(r,A)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ii=gt("$ZodStringFormat",(e,t)=>{jQ.init(e,t),t5.init(e,t)}),S6e=gt("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=X_e),Ii.init(e,t)}),D6e=gt("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=OZ(n))}else t.pattern??(t.pattern=OZ());Ii.init(e,t)}),R6e=gt("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=K_e),Ii.init(e,t)}),T6e=gt("$ZodURL",(e,t)=>{Ii.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),A=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(A.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(A.protocol.endsWith(":")?A.protocol.slice(0,-1):A.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=A.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),M6e=gt("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=q_e()),Ii.init(e,t)}),F6e=gt("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=W_e),Ii.init(e,t)}),N6e=gt("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=G_e),Ii.init(e,t)}),j6e=gt("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=H_e),Ii.init(e,t)}),O6e=gt("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Y_e),Ii.init(e,t)}),L6e=gt("$ZodXID",(e,t)=>{t.pattern??(t.pattern=z_e),Ii.init(e,t)}),P6e=gt("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=J_e),Ii.init(e,t)}),U6e=gt("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=s6e(t)),Ii.init(e,t)}),G6e=gt("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=i6e),Ii.init(e,t)}),H6e=gt("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=A6e(t)),Ii.init(e,t)}),Y6e=gt("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Z_e),Ii.init(e,t)}),z6e=gt("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$_e),Ii.init(e,t),e._zod.bag.format="ipv4"}),J6e=gt("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=e6e),Ii.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),W6e=gt("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=t6e),Ii.init(e,t)}),Z6e=gt("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=n6e),Ii.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[A,i]=r;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${A}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function zZ(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const X6e=gt("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=r6e),Ii.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{zZ(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function K6e(e){if(!LZ.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return zZ(n)}const V6e=gt("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=LZ),Ii.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{K6e(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),q6e=gt("$ZodE164",(e,t)=>{t.pattern??(t.pattern=o6e),Ii.init(e,t)});function $6e(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const A=JSON.parse(atob(r));return!("typ"in A&&(A==null?void 0:A.typ)!=="JWT"||!A.alg||t&&(!("alg"in A)||A.alg!==t))}catch{return!1}}const e3e=gt("$ZodJWT",(e,t)=>{Ii.init(e,t),e._zod.check=n=>{$6e(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),JZ=gt("$ZodNumber",(e,t)=>{Ho.init(e,t),e._zod.pattern=e._zod.bag.pattern??u6e,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const A=n.value;if(typeof A=="number"&&!Number.isNaN(A)&&Number.isFinite(A))return n;const i=typeof A=="number"?Number.isNaN(A)?"NaN":Number.isFinite(A)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:A,inst:e,...i?{received:i}:{}}),n}}),t3e=gt("$ZodNumberFormat",(e,t)=>{m6e.init(e,t),JZ.init(e,t)}),n3e=gt("$ZodBoolean",(e,t)=>{Ho.init(e,t),e._zod.pattern=d6e,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const A=n.value;return typeof A=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:A,inst:e}),n}}),r3e=gt("$ZodBigInt",(e,t)=>{Ho.init(e,t),e._zod.pattern=l6e,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),o3e=gt("$ZodNull",(e,t)=>{Ho.init(e,t),e._zod.pattern=f6e,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const A=n.value;return A===null||n.issues.push({expected:"null",code:"invalid_type",input:A,inst:e}),n}}),i3e=gt("$ZodUnknown",(e,t)=>{Ho.init(e,t),e._zod.parse=n=>n}),A3e=gt("$ZodNever",(e,t)=>{Ho.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function WZ(e,t,n){e.issues.length&&t.issues.push(...th(n,e.issues)),t.value[n]=e.value}const s3e=gt("$ZodArray",(e,t)=>{Ho.init(e,t),e._zod.parse=(n,r)=>{const A=n.value;if(!Array.isArray(A))return n.issues.push({expected:"array",code:"invalid_type",input:A,inst:e}),n;n.value=Array(A.length);const i=[];for(let a=0;aWZ(h,n,a))):WZ(f,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function OQ(e,t,n,r){e.issues.length&&t.issues.push(...th(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function ZZ(e){var r,A,i,a;const t=Object.keys(e.shape);for(const c of t)if(!((a=(i=(A=(r=e.shape)==null?void 0:r[c])==null?void 0:A._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${c}": expected a Zod schema`);const n=B_e(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function XZ(e,t,n,r,A,i){const a=[],c=A.keySet,f=A.catchall._zod,h=f.def.type;for(const m in t){if(c.has(m))continue;if(h==="never"){a.push(m);continue}const I=f.run({value:t[m],issues:[]},r);I instanceof Promise?e.push(I.then(v=>OQ(v,n,m,t))):OQ(I,n,m,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const a3e=gt("$ZodObject",(e,t)=>{var a;if(Ho.init(e,t),!((a=Object.getOwnPropertyDescriptor(t,"shape"))!=null&&a.get)){const c=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...c};return Object.defineProperty(t,"shape",{value:f}),f}})}const n=TQ(()=>ZZ(t));Go(e._zod,"propValues",()=>{const c=t.shape,f={};for(const h in c){const m=c[h]._zod;if(m.values){f[h]??(f[h]=new Set);for(const I of m.values)f[h].add(I)}}return f});const r=MI,A=t.catchall;let i;e._zod.parse=(c,f)=>{i??(i=n.value);const h=c.value;if(!r(h))return c.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),c;c.value={};const m=[],I=i.shape;for(const v of i.keys){const k=I[v]._zod.run({value:h[v],issues:[]},f);k instanceof Promise?m.push(k.then(D=>OQ(D,c,v,h))):OQ(k,c,v,h)}return A?XZ(m,h,c,f,n.value,e):m.length?Promise.all(m).then(()=>c):c}}),l3e=gt("$ZodObjectJIT",(e,t)=>{a3e.init(e,t);const n=e._zod.parse,r=TQ(()=>ZZ(t)),A=I=>{const v=new _6e(["shape","payload","ctx"]),k=r.value,D=T=>{const P=RZ(T);return`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`};v.write("const input = payload.value;");const R=Object.create(null);let F=0;for(const T of k.keys)R[T]=`key_${F++}`;v.write("const newResult = {};");for(const T of k.keys){const P=R[T],G=RZ(T);v.write(`const ${P} = ${D(T)};`),v.write(` - if (${P}.issues.length) { - payload.issues = payload.issues.concat(${P}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${G}, ...iss.path] : [${G}] - }))); - } - - - if (${P}.value === undefined) { - if (${G} in input) { - newResult[${G}] = undefined; - } - } else { - newResult[${G}] = ${P}.value; - } - - `)}v.write("payload.value = newResult;"),v.write("return payload;");const N=v.compile();return(T,P)=>N(I,T,P)};let i;const a=MI,c=!SZ.jitless,f=c&&I_e.value,h=t.catchall;let m;e._zod.parse=(I,v)=>{m??(m=r.value);const k=I.value;return a(k)?c&&f&&(v==null?void 0:v.async)===!1&&v.jitless!==!0?(i||(i=A(t.shape)),I=i(I,v),h?XZ([],k,I,v,m,e):I):n(I,v):(I.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),I)}});function KZ(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const A=e.filter(i=>!Vp(i));return A.length===1?(t.value=A[0].value,A[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>pf(a,r,gf())))}),t)}const VZ=gt("$ZodUnion",(e,t)=>{Ho.init(e,t),Go(e._zod,"optin",()=>t.options.some(A=>A._zod.optin==="optional")?"optional":void 0),Go(e._zod,"optout",()=>t.options.some(A=>A._zod.optout==="optional")?"optional":void 0),Go(e._zod,"values",()=>{if(t.options.every(A=>A._zod.values))return new Set(t.options.flatMap(A=>Array.from(A._zod.values)))}),Go(e._zod,"pattern",()=>{if(t.options.every(A=>A._zod.pattern)){const A=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${A.map(i=>VD(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(A,i)=>{if(n)return r(A,i);let a=!1;const c=[];for(const f of t.options){const h=f._zod.run({value:A.value,issues:[]},i);if(h instanceof Promise)c.push(h),a=!0;else{if(h.issues.length===0)return h;c.push(h)}}return a?Promise.all(c).then(f=>KZ(f,A,e,i)):KZ(c,A,e,i)}}),c3e=gt("$ZodDiscriminatedUnion",(e,t)=>{VZ.init(e,t);const n=e._zod.parse;Go(e._zod,"propValues",()=>{const A={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[c,f]of Object.entries(a)){A[c]||(A[c]=new Set);for(const h of f)A[c].add(h)}}return A});const r=TQ(()=>{var a;const A=t.options,i=new Map;for(const c of A){const f=(a=c._zod.propValues)==null?void 0:a[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(const h of f){if(i.has(h))throw new Error(`Duplicate discriminator value "${String(h)}"`);i.set(h,c)}}return i});e._zod.parse=(A,i)=>{const a=A.value;if(!MI(a))return A.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),A;const c=r.value.get(a==null?void 0:a[t.discriminator]);return c?c._zod.run(A,i):t.unionFallback?n(A,i):(A.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),A)}}),u3e=gt("$ZodIntersection",(e,t)=>{Ho.init(e,t),e._zod.parse=(n,r)=>{const A=n.value,i=t.left._zod.run({value:A,issues:[]},r),a=t.right._zod.run({value:A,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,f])=>qZ(n,c,f)):qZ(n,i,a)}});function n5(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Xp(e)&&Xp(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),A={...e,...t};for(const i of r){const a=n5(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};A[i]=a.data}return{valid:!0,data:A}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r{Ho.init(e,t);const n=t.items;e._zod.parse=(r,A)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const a=[],c=[...n].reverse().findIndex(m=>m._zod.optin!=="optional"),f=c===-1?0:n.length-c;if(!t.rest){const m=i.length>n.length,I=i.length=i.length&&h>=f)continue;const I=m._zod.run({value:i[h],issues:[]},A);I instanceof Promise?a.push(I.then(v=>LQ(v,r,h))):LQ(I,r,h)}if(t.rest){const m=i.slice(n.length);for(const I of m){h++;const v=t.rest._zod.run({value:I,issues:[]},A);v instanceof Promise?a.push(v.then(k=>LQ(k,r,h))):LQ(v,r,h)}}return a.length?Promise.all(a).then(()=>r):r}});function LQ(e,t,n){e.issues.length&&t.issues.push(...th(n,e.issues)),t.value[n]=e.value}const f3e=gt("$ZodRecord",(e,t)=>{Ho.init(e,t),e._zod.parse=(n,r)=>{const A=n.value;if(!Xp(A))return n.issues.push({expected:"record",code:"invalid_type",input:A,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const c=new Set;for(const h of a)if(typeof h=="string"||typeof h=="number"||typeof h=="symbol"){c.add(typeof h=="number"?h.toString():h);const m=t.valueType._zod.run({value:A[h],issues:[]},r);m instanceof Promise?i.push(m.then(I=>{I.issues.length&&n.issues.push(...th(h,I.issues)),n.value[h]=I.value})):(m.issues.length&&n.issues.push(...th(h,m.issues)),n.value[h]=m.value)}let f;for(const h in A)c.has(h)||(f=f??[],f.push(h));f&&f.length>0&&n.issues.push({code:"unrecognized_keys",input:A,inst:e,keys:f})}else{n.value={};for(const c of Reflect.ownKeys(A)){if(c==="__proto__")continue;const f=t.keyType._zod.run({value:c,issues:[]},r);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(m=>pf(m,r,gf())),input:c,path:[c],inst:e}),n.value[f.value]=f.value;continue}const h=t.valueType._zod.run({value:A[c],issues:[]},r);h instanceof Promise?i.push(h.then(m=>{m.issues.length&&n.issues.push(...th(c,m.issues)),n.value[f.value]=m.value})):(h.issues.length&&n.issues.push(...th(c,h.issues)),n.value[f.value]=h.value)}}return i.length?Promise.all(i).then(()=>n):n}}),g3e=gt("$ZodEnum",(e,t)=>{Ho.init(e,t);const n=p_e(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(A=>C_e.has(typeof A)).map(A=>typeof A=="string"?Kp(A):A.toString()).join("|")})$`),e._zod.parse=(A,i)=>{const a=A.value;return r.has(a)||A.issues.push({code:"invalid_value",values:n,input:a,inst:e}),A}}),h3e=gt("$ZodLiteral",(e,t)=>{if(Ho.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Kp(r):r?Kp(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,A)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),p3e=gt("$ZodTransform",(e,t)=>{Ho.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new kZ(e.constructor.name);const A=t.transform(n.value,n);if(r.async)return(A instanceof Promise?A:Promise.resolve(A)).then(i=>(n.value=i,n));if(A instanceof Promise)throw new Zp;return n.value=A,n}});function $Z(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const m3e=gt("$ZodOptional",(e,t)=>{Ho.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Go(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Go(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${VD(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const A=t.innerType._zod.run(n,r);return A instanceof Promise?A.then(i=>$Z(i,n.value)):$Z(A,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),E3e=gt("$ZodNullable",(e,t)=>{Ho.init(e,t),Go(e._zod,"optin",()=>t.innerType._zod.optin),Go(e._zod,"optout",()=>t.innerType._zod.optout),Go(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${VD(n.source)}|null)$`):void 0}),Go(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),I3e=gt("$ZodDefault",(e,t)=>{Ho.init(e,t),e._zod.optin="optional",Go(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const A=t.innerType._zod.run(n,r);return A instanceof Promise?A.then(i=>eX(i,t)):eX(A,t)}});function eX(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const C3e=gt("$ZodPrefault",(e,t)=>{Ho.init(e,t),e._zod.optin="optional",Go(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),B3e=gt("$ZodNonOptional",(e,t)=>{Ho.init(e,t),Go(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const A=t.innerType._zod.run(n,r);return A instanceof Promise?A.then(i=>tX(i,e)):tX(A,e)}});function tX(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const y3e=gt("$ZodCatch",(e,t)=>{Ho.init(e,t),Go(e._zod,"optin",()=>t.innerType._zod.optin),Go(e._zod,"optout",()=>t.innerType._zod.optout),Go(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const A=t.innerType._zod.run(n,r);return A instanceof Promise?A.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>pf(a,r,gf()))},input:n.value}),n.issues=[]),n)):(n.value=A.value,A.issues.length&&(n.value=t.catchValue({...n,error:{issues:A.issues.map(i=>pf(i,r,gf()))},input:n.value}),n.issues=[]),n)}}),v3e=gt("$ZodPipe",(e,t)=>{Ho.init(e,t),Go(e._zod,"values",()=>t.in._zod.values),Go(e._zod,"optin",()=>t.in._zod.optin),Go(e._zod,"optout",()=>t.out._zod.optout),Go(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(a=>PQ(a,t.in,r)):PQ(i,t.in,r)}const A=t.in._zod.run(n,r);return A instanceof Promise?A.then(i=>PQ(i,t.out,r)):PQ(A,t.out,r)}});function PQ(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const b3e=gt("$ZodReadonly",(e,t)=>{Ho.init(e,t),Go(e._zod,"propValues",()=>t.innerType._zod.propValues),Go(e._zod,"values",()=>t.innerType._zod.values),Go(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),Go(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const A=t.innerType._zod.run(n,r);return A instanceof Promise?A.then(nX):nX(A)}});function nX(e){return e.value=Object.freeze(e.value),e}const Q3e=gt("$ZodCustom",(e,t)=>{ua.init(e,t),Ho.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,A=t.fn(r);if(A instanceof Promise)return A.then(i=>rX(i,n,r,e));rX(A,n,r,e)}});function rX(e,t,n,r){if(!e){const A={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(A.params=r._zod.def.params),t.issues.push(FI(A))}}var oX;class w3e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const A={...r,...this._map.get(t)};return Object.keys(A).length?A:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function x3e(){return new w3e}(oX=globalThis).__zod_globalRegistry??(oX.__zod_globalRegistry=x3e());const UQ=globalThis.__zod_globalRegistry;function _3e(e,t){return new e({type:"string",...bn(t)})}function k3e(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...bn(t)})}function iX(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...bn(t)})}function S3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...bn(t)})}function D3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...bn(t)})}function R3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...bn(t)})}function T3e(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...bn(t)})}function M3e(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...bn(t)})}function F3e(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...bn(t)})}function N3e(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...bn(t)})}function j3e(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...bn(t)})}function O3e(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...bn(t)})}function L3e(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...bn(t)})}function P3e(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...bn(t)})}function U3e(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...bn(t)})}function G3e(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...bn(t)})}function H3e(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...bn(t)})}function Y3e(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...bn(t)})}function z3e(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...bn(t)})}function J3e(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...bn(t)})}function W3e(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...bn(t)})}function Z3e(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...bn(t)})}function X3e(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...bn(t)})}function K3e(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...bn(t)})}function V3e(e,t){return new e({type:"string",format:"date",check:"string_format",...bn(t)})}function q3e(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...bn(t)})}function $3e(e,t){return new e({type:"string",format:"duration",check:"string_format",...bn(t)})}function eke(e,t){return new e({type:"number",checks:[],...bn(t)})}function tke(e,t){return new e({type:"number",coerce:!0,checks:[],...bn(t)})}function nke(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...bn(t)})}function rke(e,t){return new e({type:"boolean",...bn(t)})}function oke(e,t){return new e({type:"bigint",coerce:!0,...bn(t)})}function ike(e,t){return new e({type:"null",...bn(t)})}function Ake(e){return new e({type:"unknown"})}function ske(e,t){return new e({type:"never",...bn(t)})}function GQ(e,t){return new HZ({check:"less_than",...bn(t),value:e,inclusive:!1})}function qp(e,t){return new HZ({check:"less_than",...bn(t),value:e,inclusive:!0})}function HQ(e,t){return new YZ({check:"greater_than",...bn(t),value:e,inclusive:!1})}function mf(e,t){return new YZ({check:"greater_than",...bn(t),value:e,inclusive:!0})}function r5(e,t){return new p6e({check:"multiple_of",...bn(t),value:e})}function AX(e,t){return new E6e({check:"max_length",...bn(t),maximum:e})}function YQ(e,t){return new I6e({check:"min_length",...bn(t),minimum:e})}function sX(e,t){return new C6e({check:"length_equals",...bn(t),length:e})}function ake(e,t){return new B6e({check:"string_format",format:"regex",...bn(t),pattern:e})}function lke(e){return new y6e({check:"string_format",format:"lowercase",...bn(e)})}function cke(e){return new v6e({check:"string_format",format:"uppercase",...bn(e)})}function uke(e,t){return new b6e({check:"string_format",format:"includes",...bn(t),includes:e})}function dke(e,t){return new Q6e({check:"string_format",format:"starts_with",...bn(t),prefix:e})}function fke(e,t){return new w6e({check:"string_format",format:"ends_with",...bn(t),suffix:e})}function $p(e){return new x6e({check:"overwrite",tx:e})}function gke(e){return $p(t=>t.normalize(e))}function hke(){return $p(e=>e.trim())}function pke(){return $p(e=>e.toLowerCase())}function mke(){return $p(e=>e.toUpperCase())}function Eke(){return $p(e=>E_e(e))}function Ike(e,t,n){return new e({type:"array",element:t,...bn(n)})}function Cke(e,t,n){return new e({type:"custom",check:"custom",fn:t,...bn(n)})}function Bke(e){const t=yke(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(FI(r,n.value,t._zod.def));else{const A=r;A.fatal&&(A.continue=!1),A.code??(A.code="custom"),A.input??(A.input=n.value),A.inst??(A.inst=t),A.continue??(A.continue=!t._zod.def.abort),n.issues.push(FI(A))}},e(n.value,n)));return t}function yke(e,t){const n=new ua({check:"custom",...bn(t)});return n._zod.check=e,n}const vke=gt("ZodISODateTime",(e,t)=>{U6e.init(e,t),Di.init(e,t)});function bke(e){return K3e(vke,e)}const Qke=gt("ZodISODate",(e,t)=>{G6e.init(e,t),Di.init(e,t)});function wke(e){return V3e(Qke,e)}const xke=gt("ZodISOTime",(e,t)=>{H6e.init(e,t),Di.init(e,t)});function _ke(e){return q3e(xke,e)}const kke=gt("ZodISODuration",(e,t)=>{Y6e.init(e,t),Di.init(e,t)});function Ske(e){return $3e(kke,e)}const aX=(e,t)=>{NZ.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>D_e(e,n)},flatten:{value:n=>S_e(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,XD,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,XD,2)}},isEmpty:{get(){return e.issues.length===0}}})},Dke=gt("ZodError",aX),Sl=gt("ZodError",aX,{Parent:Error}),Rke=$D(Sl),Tke=e5(Sl),Mke=FQ(Sl),Fke=NQ(Sl),Nke=M_e(Sl),jke=F_e(Sl),Oke=N_e(Sl),Lke=j_e(Sl),Pke=O_e(Sl),Uke=L_e(Sl),Gke=P_e(Sl),Hke=U_e(Sl),ui=gt("ZodType",(e,t)=>(Ho.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(eh(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>hf(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>Rke(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Mke(e,n,r),e.parseAsync=async(n,r)=>Tke(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Fke(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Nke(e,n,r),e.decode=(n,r)=>jke(e,n,r),e.encodeAsync=async(n,r)=>Oke(e,n,r),e.decodeAsync=async(n,r)=>Lke(e,n,r),e.safeEncode=(n,r)=>Pke(e,n,r),e.safeDecode=(n,r)=>Uke(e,n,r),e.safeEncodeAsync=async(n,r)=>Gke(e,n,r),e.safeDecodeAsync=async(n,r)=>Hke(e,n,r),e.refine=(n,r)=>e.check(L8e(n,r)),e.superRefine=n=>e.check(P8e(n)),e.overwrite=n=>e.check($p(n)),e.optional=()=>pX(e),e.nullable=()=>yc(e),e.nullish=()=>pX(yc(e)),e.nonoptional=n=>R8e(e,n),e.array=()=>vA(e),e.or=n=>gX([e,n]),e.and=n=>C8e(e,n),e.transform=n=>EX(e,w8e(n)),e.default=n=>k8e(e,n),e.prefault=n=>D8e(e,n),e.catch=n=>M8e(e,n),e.pipe=n=>EX(e,n),e.readonly=()=>j8e(e),e.describe=n=>{const r=e.clone();return UQ.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=UQ.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return UQ.get(e);const r=e.clone();return UQ.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),lX=gt("_ZodString",(e,t)=>{t5.init(e,t),ui.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(ake(...r)),e.includes=(...r)=>e.check(uke(...r)),e.startsWith=(...r)=>e.check(dke(...r)),e.endsWith=(...r)=>e.check(fke(...r)),e.min=(...r)=>e.check(YQ(...r)),e.max=(...r)=>e.check(AX(...r)),e.length=(...r)=>e.check(sX(...r)),e.nonempty=(...r)=>e.check(YQ(1,...r)),e.lowercase=r=>e.check(lke(r)),e.uppercase=r=>e.check(cke(r)),e.trim=()=>e.check(hke()),e.normalize=(...r)=>e.check(gke(...r)),e.toLowerCase=()=>e.check(pke()),e.toUpperCase=()=>e.check(mke()),e.slugify=()=>e.check(Eke())}),Yke=gt("ZodString",(e,t)=>{t5.init(e,t),lX.init(e,t),e.email=n=>e.check(k3e(zke,n)),e.url=n=>e.check(M3e(Jke,n)),e.jwt=n=>e.check(X3e(s8e,n)),e.emoji=n=>e.check(F3e(Wke,n)),e.guid=n=>e.check(iX(cX,n)),e.uuid=n=>e.check(S3e(zQ,n)),e.uuidv4=n=>e.check(D3e(zQ,n)),e.uuidv6=n=>e.check(R3e(zQ,n)),e.uuidv7=n=>e.check(T3e(zQ,n)),e.nanoid=n=>e.check(N3e(Zke,n)),e.guid=n=>e.check(iX(cX,n)),e.cuid=n=>e.check(j3e(Xke,n)),e.cuid2=n=>e.check(O3e(Kke,n)),e.ulid=n=>e.check(L3e(Vke,n)),e.base64=n=>e.check(J3e(o8e,n)),e.base64url=n=>e.check(W3e(i8e,n)),e.xid=n=>e.check(P3e(qke,n)),e.ksuid=n=>e.check(U3e($ke,n)),e.ipv4=n=>e.check(G3e(e8e,n)),e.ipv6=n=>e.check(H3e(t8e,n)),e.cidrv4=n=>e.check(Y3e(n8e,n)),e.cidrv6=n=>e.check(z3e(r8e,n)),e.e164=n=>e.check(Z3e(A8e,n)),e.datetime=n=>e.check(bke(n)),e.date=n=>e.check(wke(n)),e.time=n=>e.check(_ke(n)),e.duration=n=>e.check(Ske(n))});function ur(e){return _3e(Yke,e)}const Di=gt("ZodStringFormat",(e,t)=>{Ii.init(e,t),lX.init(e,t)}),zke=gt("ZodEmail",(e,t)=>{R6e.init(e,t),Di.init(e,t)}),cX=gt("ZodGUID",(e,t)=>{S6e.init(e,t),Di.init(e,t)}),zQ=gt("ZodUUID",(e,t)=>{D6e.init(e,t),Di.init(e,t)}),Jke=gt("ZodURL",(e,t)=>{T6e.init(e,t),Di.init(e,t)}),Wke=gt("ZodEmoji",(e,t)=>{M6e.init(e,t),Di.init(e,t)}),Zke=gt("ZodNanoID",(e,t)=>{F6e.init(e,t),Di.init(e,t)}),Xke=gt("ZodCUID",(e,t)=>{N6e.init(e,t),Di.init(e,t)}),Kke=gt("ZodCUID2",(e,t)=>{j6e.init(e,t),Di.init(e,t)}),Vke=gt("ZodULID",(e,t)=>{O6e.init(e,t),Di.init(e,t)}),qke=gt("ZodXID",(e,t)=>{L6e.init(e,t),Di.init(e,t)}),$ke=gt("ZodKSUID",(e,t)=>{P6e.init(e,t),Di.init(e,t)}),e8e=gt("ZodIPv4",(e,t)=>{z6e.init(e,t),Di.init(e,t)}),t8e=gt("ZodIPv6",(e,t)=>{J6e.init(e,t),Di.init(e,t)}),n8e=gt("ZodCIDRv4",(e,t)=>{W6e.init(e,t),Di.init(e,t)}),r8e=gt("ZodCIDRv6",(e,t)=>{Z6e.init(e,t),Di.init(e,t)}),o8e=gt("ZodBase64",(e,t)=>{X6e.init(e,t),Di.init(e,t)}),i8e=gt("ZodBase64URL",(e,t)=>{V6e.init(e,t),Di.init(e,t)}),A8e=gt("ZodE164",(e,t)=>{q6e.init(e,t),Di.init(e,t)}),s8e=gt("ZodJWT",(e,t)=>{e3e.init(e,t),Di.init(e,t)}),o5=gt("ZodNumber",(e,t)=>{JZ.init(e,t),ui.init(e,t),e.gt=(r,A)=>e.check(HQ(r,A)),e.gte=(r,A)=>e.check(mf(r,A)),e.min=(r,A)=>e.check(mf(r,A)),e.lt=(r,A)=>e.check(GQ(r,A)),e.lte=(r,A)=>e.check(qp(r,A)),e.max=(r,A)=>e.check(qp(r,A)),e.int=r=>e.check(uX(r)),e.safe=r=>e.check(uX(r)),e.positive=r=>e.check(HQ(0,r)),e.nonnegative=r=>e.check(mf(0,r)),e.negative=r=>e.check(GQ(0,r)),e.nonpositive=r=>e.check(qp(0,r)),e.multipleOf=(r,A)=>e.check(r5(r,A)),e.step=(r,A)=>e.check(r5(r,A)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Pe(e){return eke(o5,e)}const a8e=gt("ZodNumberFormat",(e,t)=>{t3e.init(e,t),o5.init(e,t)});function uX(e){return nke(a8e,e)}const l8e=gt("ZodBoolean",(e,t)=>{n3e.init(e,t),ui.init(e,t)});function nh(e){return rke(l8e,e)}const c8e=gt("ZodBigInt",(e,t)=>{r3e.init(e,t),ui.init(e,t),e.gte=(r,A)=>e.check(mf(r,A)),e.min=(r,A)=>e.check(mf(r,A)),e.gt=(r,A)=>e.check(HQ(r,A)),e.gte=(r,A)=>e.check(mf(r,A)),e.min=(r,A)=>e.check(mf(r,A)),e.lt=(r,A)=>e.check(GQ(r,A)),e.lte=(r,A)=>e.check(qp(r,A)),e.max=(r,A)=>e.check(qp(r,A)),e.positive=r=>e.check(HQ(BigInt(0),r)),e.negative=r=>e.check(GQ(BigInt(0),r)),e.nonpositive=r=>e.check(qp(BigInt(0),r)),e.nonnegative=r=>e.check(mf(BigInt(0),r)),e.multipleOf=(r,A)=>e.check(r5(r,A));const n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),u8e=gt("ZodNull",(e,t)=>{o3e.init(e,t),ui.init(e,t)});function d8e(e){return ike(u8e,e)}const f8e=gt("ZodUnknown",(e,t)=>{i3e.init(e,t),ui.init(e,t)});function dX(){return Ake(f8e)}const g8e=gt("ZodNever",(e,t)=>{A3e.init(e,t),ui.init(e,t)});function h8e(e){return ske(g8e,e)}const p8e=gt("ZodArray",(e,t)=>{s3e.init(e,t),ui.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(YQ(n,r)),e.nonempty=n=>e.check(YQ(1,n)),e.max=(n,r)=>e.check(AX(n,r)),e.length=(n,r)=>e.check(sX(n,r)),e.unwrap=()=>e.element});function vA(e,t){return Ike(p8e,e,t)}const m8e=gt("ZodObject",(e,t)=>{l3e.init(e,t),ui.init(e,t),Go(e,"shape",()=>t.shape),e.keyof=()=>Bc(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:dX()}),e.loose=()=>e.clone({...e._zod.def,catchall:dX()}),e.strict=()=>e.clone({...e._zod.def,catchall:h8e()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Q_e(e,n),e.safeExtend=n=>w_e(e,n),e.merge=n=>x_e(e,n),e.pick=n=>v_e(e,n),e.omit=n=>b_e(e,n),e.partial=(...n)=>__e(hX,e,n[0]),e.required=(...n)=>k_e(mX,e,n[0])});function Xn(e,t){const n={type:"object",shape:e??{},...bn(t)};return new m8e(n)}const fX=gt("ZodUnion",(e,t)=>{VZ.init(e,t),ui.init(e,t),e.options=t.options});function gX(e,t){return new fX({type:"union",options:e,...bn(t)})}const E8e=gt("ZodDiscriminatedUnion",(e,t)=>{fX.init(e,t),c3e.init(e,t)});function rh(e,t,n){return new E8e({type:"union",options:t,discriminator:e,...bn(n)})}const I8e=gt("ZodIntersection",(e,t)=>{u3e.init(e,t),ui.init(e,t)});function C8e(e,t){return new I8e({type:"intersection",left:e,right:t})}const B8e=gt("ZodTuple",(e,t)=>{d3e.init(e,t),ui.init(e,t),e.rest=n=>e.clone({...e._zod.def,rest:n})});function y8e(e,t,n){const r=t instanceof Ho,A=r?n:t,i=r?t:null;return new B8e({type:"tuple",items:e,rest:i,...bn(A)})}const v8e=gt("ZodRecord",(e,t)=>{f3e.init(e,t),ui.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function i5(e,t,n){return new v8e({type:"record",keyType:e,valueType:t,...bn(n)})}const A5=gt("ZodEnum",(e,t)=>{g3e.init(e,t),ui.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,A)=>{const i={};for(const a of r)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new A5({...t,checks:[],...bn(A),entries:i})},e.exclude=(r,A)=>{const i={...t.entries};for(const a of r)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new A5({...t,checks:[],...bn(A),entries:i})}});function Bc(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new A5({type:"enum",entries:n,...bn(t)})}const b8e=gt("ZodLiteral",(e,t)=>{h3e.init(e,t),ui.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function kn(e,t){return new b8e({type:"literal",values:Array.isArray(e)?e:[e],...bn(t)})}const Q8e=gt("ZodTransform",(e,t)=>{p3e.init(e,t),ui.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new kZ(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(FI(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(FI(a))}};const A=t.transform(n.value,n);return A instanceof Promise?A.then(i=>(n.value=i,n)):(n.value=A,n)}});function w8e(e){return new Q8e({type:"transform",transform:e})}const hX=gt("ZodOptional",(e,t)=>{m3e.init(e,t),ui.init(e,t),e.unwrap=()=>e._zod.def.innerType});function pX(e){return new hX({type:"optional",innerType:e})}const x8e=gt("ZodNullable",(e,t)=>{E3e.init(e,t),ui.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yc(e){return new x8e({type:"nullable",innerType:e})}const _8e=gt("ZodDefault",(e,t)=>{I3e.init(e,t),ui.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function k8e(e,t){return new _8e({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():MZ(t)}})}const S8e=gt("ZodPrefault",(e,t)=>{C3e.init(e,t),ui.init(e,t),e.unwrap=()=>e._zod.def.innerType});function D8e(e,t){return new S8e({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():MZ(t)}})}const mX=gt("ZodNonOptional",(e,t)=>{B3e.init(e,t),ui.init(e,t),e.unwrap=()=>e._zod.def.innerType});function R8e(e,t){return new mX({type:"nonoptional",innerType:e,...bn(t)})}const T8e=gt("ZodCatch",(e,t)=>{y3e.init(e,t),ui.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function M8e(e,t){return new T8e({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const F8e=gt("ZodPipe",(e,t)=>{v3e.init(e,t),ui.init(e,t),e.in=t.in,e.out=t.out});function EX(e,t){return new F8e({type:"pipe",in:e,out:t})}const N8e=gt("ZodReadonly",(e,t)=>{b3e.init(e,t),ui.init(e,t),e.unwrap=()=>e._zod.def.innerType});function j8e(e){return new N8e({type:"readonly",innerType:e})}const O8e=gt("ZodCustom",(e,t)=>{Q3e.init(e,t),ui.init(e,t)});function L8e(e,t={}){return Cke(O8e,e,t)}function P8e(e){return Bke(e)}function ms(e){return tke(o5,e)}function Fr(e){return oke(c8e,e)}const IX=Bc(["Frankendancer","Firedancer"]),Ci=IX.enum,Nr=Xn({topic:kn("summary")}),CX=Xn({topic:kn("epoch")}),e1=Xn({topic:kn("gossip")}),BX=Xn({topic:kn("peers")}),Ef=Xn({topic:kn("slot")}),yX=Xn({topic:kn("block_engine")}),U8e=rh("topic",[Nr,CX,e1,BX,Ef,yX]),G8e=ur(),H8e=Bc(["development","mainnet-beta","devnet","testnet","pythtest","pythnet","unknown"]),Y8e=ur(),z8e=ur(),J8e=ur(),W8e=Fr(),vX=Bc(["perf","balanced","revenue"]),j0=vX.enum,s5=Bc(["sock","net","quic","bundle","verify","dedup","resolv","pack","execle","poh","shred","store","snapct","snapld","snapdc","snapin","netlnk","metric","ipecho","gossvf","gossip","repair","replay","execrp","tower","txsend","sign","rpc","gui","http","plugin","cswtch","genesi","diag","event"]),Z8e=Xn({kind:ur(),kind_id:Pe()}),bX=Fr();Fr();const X8e=Pe(),K8e=Pe(),V8e=Pe(),q8e=Pe().nullable(),$8e=Pe().nullable(),eSe=Xn({repair:Pe().array(),turbine:Pe().array()}),tSe=ms(),nSe=Pe(),rSe=Pe().nullable(),oSe=Pe().nullable(),iSe=Pe(),ASe=Pe().nullable(),sSe=Pe(),aSe=Pe(),lSe=Xn({total:Pe(),vote:Pe(),nonvote_success:Pe(),nonvote_failed:Pe()}),cSe=Xn({ingress:vA(Pe()),egress:vA(Pe())}),uSe=Xn({pack_cranked:Pe(),pack_retained:Pe(),resolv_retained:Pe(),quic:Pe(),udp:Pe(),gossip:Pe(),block_engine:Pe()}),dSe=Xn({net_overrun:Pe(),quic_overrun:Pe(),quic_frag_drop:Pe(),quic_abandoned:Pe(),tpu_quic_invalid:Pe(),tpu_udp_invalid:Pe(),verify_overrun:Pe(),verify_parse:Pe(),verify_failed:Pe(),verify_duplicate:Pe(),dedup_duplicate:Pe(),resolv_lut_failed:Pe(),resolv_expired:Pe(),resolv_no_ledger:Pe(),resolv_ancient:Pe(),resolv_retained:Pe(),pack_invalid:Pe(),pack_already_executed:Pe(),pack_invalid_bundle:Pe(),pack_retained:Pe(),pack_leader_slow:Pe(),pack_wait_full:Pe(),pack_expired:Pe(),bank_invalid:Pe(),bank_nonce_already_advanced:Pe(),bank_nonce_advance_failed:Pe(),bank_nonce_wrong_blockhash:Pe(),block_success:Pe(),block_fail:Pe()}),QX=Xn({in:uSe,out:dSe}),fSe=Xn({next_leader_slot:Pe().nullable(),waterfall:QX}),wX=Xn({net_in:Pe(),quic:Pe(),verify:Pe(),bundle_rtt_smoothed_millis:Pe(),bundle_rx_delay_millis_p90:Pe(),dedup:Pe(),pack:Pe(),bank:Pe(),poh:Pe(),shred:Pe(),store:Pe(),net_out:Pe()}),gSe=Xn({next_leader_slot:Pe().nullable(),tile_primary_metric:wX}),hSe=Xn({timers:vA(vA(Pe()).nullable()),in_backp:vA(nh().nullable()),backp_msgs:vA(Pe().nullable()),alive:vA(Pe().nullable()),nvcsw:vA(Pe().nullable()),nivcsw:vA(Pe().nullable()),last_cpu:vA(Pe().nullable()),minflt:vA(Pe().nullable()),majflt:vA(Pe().nullable())});Xn({tile:ur(),kind_id:Pe(),idle:Pe()});const pSe=Bc(["initializing","searching_for_full_snapshot","downloading_full_snapshot","searching_for_incremental_snapshot","downloading_incremental_snapshot","cleaning_blockstore","cleaning_accounts","loading_ledger","processing_ledger","starting_services","halted","waiting_for_supermajority","running"]),mSe=Xn({phase:pSe,downloading_full_snapshot_slot:Pe().nullable(),downloading_full_snapshot_peer:ur().nullable(),downloading_full_snapshot_elapsed_secs:Pe().nullable(),downloading_full_snapshot_remaining_secs:Pe().nullable(),downloading_full_snapshot_throughput:Pe().nullable(),downloading_full_snapshot_total_bytes:ms().nullable(),downloading_full_snapshot_current_bytes:ms().nullable(),downloading_incremental_snapshot_slot:Pe().nullable(),downloading_incremental_snapshot_peer:ur().nullable(),downloading_incremental_snapshot_elapsed_secs:Pe().nullable(),downloading_incremental_snapshot_remaining_secs:Pe().nullable(),downloading_incremental_snapshot_throughput:Pe().nullable(),downloading_incremental_snapshot_total_bytes:ms().nullable(),downloading_incremental_snapshot_current_bytes:ms().nullable(),ledger_slot:Pe().nullable(),ledger_max_slot:Pe().nullable(),waiting_for_supermajority_slot:Pe().nullable(),waiting_for_supermajority_stake_percent:Pe().nullable()}),xX=Bc(["joining_gossip","loading_full_snapshot","loading_incremental_snapshot","catching_up","running"]),Hs=xX.enum,ESe=Xn({phase:xX,joining_gossip_elapsed_seconds:Pe().nullable().optional(),loading_full_snapshot_elapsed_seconds:Pe().nullable().optional(),loading_full_snapshot_reset_count:Pe().nullable().optional(),loading_full_snapshot_slot:Pe().nullable().optional(),loading_full_snapshot_total_bytes_compressed:ms().nullable().optional(),loading_full_snapshot_read_bytes_compressed:ms().nullable().optional(),loading_full_snapshot_read_path:ur().nullable().optional(),loading_full_snapshot_decompress_bytes_decompressed:ms().nullable().optional(),loading_full_snapshot_decompress_bytes_compressed:ms().nullable().optional(),loading_full_snapshot_insert_bytes_decompressed:ms().nullable().optional(),loading_full_snapshot_insert_accounts:Pe().nullable().optional(),loading_incremental_snapshot_elapsed_seconds:Pe().nullable().optional(),loading_incremental_snapshot_reset_count:Pe().nullable().optional(),loading_incremental_snapshot_slot:Pe().nullable().optional(),loading_incremental_snapshot_total_bytes_compressed:ms().nullable().optional(),loading_incremental_snapshot_read_bytes_compressed:ms().nullable().optional(),loading_incremental_snapshot_read_path:ur().nullable().optional(),loading_incremental_snapshot_decompress_bytes_decompressed:ms().nullable().optional(),loading_incremental_snapshot_decompress_bytes_compressed:ms().nullable().optional(),loading_incremental_snapshot_insert_bytes_decompressed:ms().nullable().optional(),loading_incremental_snapshot_insert_accounts:Pe().nullable().optional(),catching_up_elapsed_seconds:Pe().nullable().optional(),catching_up_first_replay_slot:Pe().nullable().optional()}),ISe=Xn({start_timestamp_nanos:Fr(),target_end_timestamp_nanos:Fr(),txn_mb_start_timestamps_nanos:Fr().array(),txn_mb_end_timestamps_nanos:Fr().array(),txn_compute_units_requested:Pe().array(),txn_compute_units_consumed:Pe().array(),txn_transaction_fee:Fr().array(),txn_priority_fee:Fr().array(),txn_tips:Fr().array(),txn_error_code:Pe().array(),txn_from_bundle:nh().array(),txn_is_simple_vote:nh().array(),txn_bank_idx:Pe().array(),txn_preload_end_timestamps_nanos:Fr().array(),txn_start_timestamps_nanos:Fr().array(),txn_load_end_timestamps_nanos:Fr().array(),txn_end_timestamps_nanos:Fr().array(),txn_arrival_timestamps_nanos:Fr().array(),txn_microblock_id:Pe().array(),txn_landed:nh().array(),txn_signature:ur().array(),txn_source_ipv4:ur().array(),txn_source_tpu:ur().array()}),CSe=Bc(["incomplete","completed","optimistically_confirmed","rooted","finalized"]),BSe=Xn({slot:Pe(),mine:nh(),skipped:nh(),level:CSe,success_nonvote_transaction_cnt:Pe().nullable(),failed_nonvote_transaction_cnt:Pe().nullable(),success_vote_transaction_cnt:Pe().nullable(),failed_vote_transaction_cnt:Pe().nullable(),priority_fee:Fr().nullable(),transaction_fee:Fr().nullable(),tips:Fr().nullable(),max_compute_units:Pe().nullable(),compute_units:Pe().nullable(),duration_nanos:Pe().nullable(),completed_time_nanos:Fr().nullable(),vote_latency:Pe().nullable()}),ySe=vA(y8e([Pe(),Pe(),Pe(),Pe()])),vSe=Bc(["voting","non-voting","delinquent"]),bSe=Pe(),QSe=Xn({epoch:Pe(),skip_rate:Pe()}),wSe=rh("key",[Nr.extend({key:kn("ping"),value:d8e(),id:Pe()}),Nr.extend({key:kn("version"),value:G8e}),Nr.extend({key:kn("cluster"),value:H8e}),Nr.extend({key:kn("commit_hash"),value:Y8e}),Nr.extend({key:kn("identity_key"),value:z8e}),Nr.extend({key:kn("vote_key"),value:J8e}),Nr.extend({key:kn("startup_time_nanos"),value:W8e}),Nr.extend({key:kn("schedule_strategy"),value:vX}),Nr.extend({key:kn("tiles"),value:Z8e.array()}),Nr.extend({key:kn("identity_balance"),value:bX}),Nr.extend({key:kn("vote_balance"),value:bX}),Nr.extend({key:kn("root_slot"),value:X8e}),Nr.extend({key:kn("optimistically_confirmed_slot"),value:K8e}),Nr.extend({key:kn("completed_slot"),value:V8e}),Nr.extend({key:kn("estimated_slot"),value:nSe}),Nr.extend({key:kn("reset_slot"),value:rSe}),Nr.extend({key:kn("storage_slot"),value:oSe}),Nr.extend({key:kn("vote_slot"),value:iSe}),Nr.extend({key:kn("slot_caught_up"),value:ASe}),Nr.extend({key:kn("active_fork_count"),value:sSe}),Nr.extend({key:kn("estimated_slot_duration_nanos"),value:aSe}),Nr.extend({key:kn("estimated_tps"),value:lSe}),Nr.extend({key:kn("live_network_metrics"),value:cSe}),Nr.extend({key:kn("live_txn_waterfall"),value:fSe}),Nr.extend({key:kn("live_tile_primary_metric"),value:gSe}),Nr.extend({key:kn("live_tile_metrics"),value:hSe}),Nr.extend({key:kn("live_tile_timers"),value:Pe().array()}),Nr.extend({key:kn("startup_progress"),value:mSe}),Nr.extend({key:kn("boot_progress"),value:ESe}),Nr.extend({key:kn("tps_history"),value:ySe}),Nr.extend({key:kn("vote_state"),value:vSe}),Nr.extend({key:kn("vote_distance"),value:bSe}),Nr.extend({key:kn("skip_rate"),value:QSe}),Nr.extend({key:kn("turbine_slot"),value:q8e}),Nr.extend({key:kn("repair_slot"),value:$8e}),Nr.extend({key:kn("catch_up_history"),value:eSe}),Nr.extend({key:kn("server_time_nanos"),value:tSe})]),xSe=Xn({epoch:Pe(),start_time_nanos:ur().nullable(),end_time_nanos:ur().nullable(),start_slot:Pe(),end_slot:Pe(),excluded_stake_lamports:Fr(),staked_pubkeys:ur().array(),staked_lamports:Fr().array(),leader_slots:Pe().array()}),_Se=rh("key",[CX.extend({key:kn("new"),value:xSe})]),kSe=Xn({num_push_messages_rx_success:Pe(),num_push_messages_rx_failure:Pe(),num_push_entries_rx_success:Pe(),num_push_entries_rx_failure:Pe(),num_push_entries_rx_duplicate:Pe(),num_pull_response_messages_rx_success:Pe(),num_pull_response_messages_rx_failure:Pe(),num_pull_response_entries_rx_success:Pe(),num_pull_response_entries_rx_failure:Pe(),num_pull_response_entries_rx_duplicate:Pe(),total_peers:Pe(),total_stake:Fr(),connected_stake:Fr(),connected_staked_peers:Pe(),connected_unstaked_peers:Pe()}),_X=Xn({total_throughput:Pe(),peer_names:ur().array(),peer_identities:ur().array(),peer_throughput:Pe().array()}),SSe=Xn({capacity:Pe(),expired_count:Pe(),evicted_count:Pe(),count:Pe().array(),count_tx:Pe().array(),bytes_tx:Pe().array()}),DSe=Xn({num_bytes_rx:Pe().array(),num_bytes_tx:Pe().array(),num_messages_rx:Pe().array(),num_messages_tx:Pe().array()}),RSe=Xn({health:kSe,ingress:_X,egress:_X,storage:SSe,messages:DSe}),TSe=Pe(),kX=gX([ur(),Pe()]),SX=i5(ur(),i5(ur(),kX)).nullable(),MSe=Xn({changes:vA(Xn({row_index:Pe(),column_name:ur(),new_value:kX}))}),FSe=rh("key",[e1.extend({key:kn("network_stats"),value:RSe}),e1.extend({key:kn("peers_size_update"),value:TSe}),e1.extend({key:kn("query_scroll"),value:SX}),e1.extend({key:kn("query_sort"),value:SX}),e1.extend({key:kn("view_update"),value:MSe})]),NSe=Xn({client_id:Pe().nullable().optional(),wallclock:Pe(),shred_version:Pe(),version:ur().nullable(),feature_set:Pe().nullable(),sockets:i5(ur(),ur()),country_code:ur().nullable().optional(),city_name:ur().nullable().optional()}),jSe=Xn({vote_account:ur(),activated_stake:Fr(),last_vote:yc(Pe()),root_slot:yc(Pe()),epoch_credits:Pe(),commission:Pe(),delinquent:nh()}),OSe=Xn({name:yc(ur()),details:yc(ur()),website:yc(ur()),icon_url:yc(ur()),keybase_username:yc(ur())}),DX=Xn({identity_pubkey:ur(),gossip:yc(NSe),vote:vA(jSe),info:yc(OSe)}),LSe=Xn({identity_pubkey:ur()}),PSe=Xn({add:vA(DX).optional(),update:vA(DX).optional(),remove:vA(LSe).optional()}),USe=rh("key",[BX.extend({key:kn("update"),value:PSe})]),GSe=Xn({timestamp_nanos:ur(),tile_timers:Pe().array()}),HSe=Xn({timestamp_nanos:Fr(),regular:Pe(),votes:Pe(),conflicting:Pe(),bundles:Pe()}),YSe=Xn({account:ur(),cost:Pe()}),zSe=Xn({used_total_block_cost:Pe(),used_total_vote_cost:Pe(),used_account_write_costs:YSe.array(),used_total_bytes:Pe(),used_total_microblocks:Pe(),max_total_block_cost:Pe(),max_total_vote_cost:Pe(),max_account_write_cost:Pe(),max_total_bytes:Pe(),max_total_microblocks:Pe()}),JSe=Xn({block_hash:ur().optional(),end_slot_reason:ur().optional(),slot_schedule_counts:Pe().array(),end_slot_schedule_counts:Pe().array(),pending_smallest_cost:Pe().nullable(),pending_smallest_bytes:Pe().nullable(),pending_vote_smallest_cost:Pe().nullable(),pending_vote_smallest_bytes:Pe().nullable()}),RX=Xn({publish:BSe,waterfall:QX.nullable().optional(),tile_primary_metric:wX.nullable().optional(),tile_timers:GSe.array().nullable().optional(),scheduler_counts:HSe.array().nullable().optional(),transactions:ISe.nullable().optional(),limits:zSe.nullable().optional(),scheduler_stats:JSe.nullable().optional()}),WSe=Pe().array(),ZSe=Pe().array(),XSe=Xn({slots_largest_tips:Pe().array(),vals_largest_tips:Fr().array(),slots_smallest_tips:Pe().array(),vals_smallest_tips:Fr().array(),slots_largest_fees:Pe().array(),vals_largest_fees:Fr().array(),slots_smallest_fees:Pe().array(),vals_smallest_fees:Fr().array(),slots_largest_rewards:Pe().array(),vals_largest_rewards:Fr().array(),slots_smallest_rewards:Pe().array(),vals_smallest_rewards:Fr().array(),slots_largest_duration:Pe().array(),vals_largest_duration:Fr().array(),slots_smallest_duration:Pe().array(),vals_smallest_duration:Fr().array(),slots_largest_compute_units:Pe().array(),vals_largest_compute_units:Fr().array(),slots_smallest_compute_units:Pe().array(),vals_smallest_compute_units:Fr().array(),slots_largest_skipped:Pe().array(),vals_largest_skipped:Fr().array(),slots_smallest_skipped:Pe().array(),vals_smallest_skipped:Fr().array()});var $o=(e=>(e[e.shred_repair_request=0]="shred_repair_request",e[e.shred_received_turbine=1]="shred_received_turbine",e[e.shred_received_repair=2]="shred_received_repair",e[e.shred_replayed=3]="shred_replayed",e[e.slot_complete=4]="slot_complete",e[e.shred_published=6]="shred_published",e))($o||{});const KSe=Xn({reference_slot:Pe(),reference_ts:Fr(),slot_delta:Pe().array(),shred_idx:Pe().nullable().array(),event:Pe().array(),event_ts_delta:ms().array()}),VSe=rh("key",[Ef.extend({key:kn("skipped_history"),value:WSe}),Ef.extend({key:kn("skipped_history_cluster"),value:ZSe}),Ef.extend({key:kn("update"),value:RX}),Ef.extend({key:kn("query"),value:RX.nullable()}),Ef.extend({key:kn("query_rankings"),value:XSe}),Ef.extend({key:kn("live_shreds"),value:KSe}),Ef.extend({key:kn("late_votes_history"),value:Xn({slot:Pe().array(),latency:Pe().nullable().array()})})]),qSe=Bc(["disconnected","connecting","connected"]),$Se=Xn({name:ur(),url:ur(),ip:ur().optional(),status:qSe}),eDe=rh("key",[yX.extend({key:kn("update"),value:$Se})]),ro=4,a5=5,TX=3,Es=4,tDe=9,If=1e9,l5=1e6,MX=6e7,c5={0:"Success",1:"Account In Use",2:"Account Loaded Twice",3:"Account Not Found",4:"Program Account Not Found",5:"Insufficient Funds For Fee",6:"Invalid Account For Fee",7:"Already Processed",8:"Blockhash Not Found",9:"Instruction Error",10:"Call Chain Too Deep",11:"Missing Signature For Fee",12:"Invalid Account Index",13:"Signature Failure",14:"Invalid Program For Execution",15:"Sanitize Failure",16:"Cluster Maintenance",17:"Account Borrow Outstanding",18:"Would Exceed Max Block Cost Limit",19:"Unsupported Version",20:"Invalid Writable Account",21:"Would Exceed Max Account Cost Limit",22:"Would Exceed Account Data Block Limit",23:"Too Many Account Locks",24:"Address Lookup Table Not Found",25:"Invalid Address Lookup Table Owner",26:"Invalid Address Lookup Table Data",27:"Invalid Address Lookup Table Index",28:"Invalid Rent Paying Account",29:"Would Exceed Max Vote Cost Limit",30:"Would Exceed Account Data Total Limit",31:"Duplicate Instruction",32:"Insufficient Funds For Rent",33:"Max Loaded Accounts Data Size Exceeded",34:"Invalid Loaded Accounts Data Size Limit",35:"Resanitization Needed",36:"Program Execution Temporarily Restricted",37:"Unbalanced Transaction",38:"Program Cache Hit Max Limit",39:"Commit Cancelled",40:"Bundle Peer",50:"Blockhash Nonce Already Advanced",51:"Blockhash Advanced Failed",52:"Blockhash Wrong Nonce"},JQ="\xA0",NI=5,FX=30,jI=48,u5=13,d5=21,nDe=28,Cf=5,f5=21,WQ=8,g5=WQ,h5=122,NX=f5+WQ,rDe=NX+h5+Cf,jX="(max-width: 768px)",OX="473px",oh=110,LX="1920px";var bu=(e=>(e.AgaveJito="Agave Jito",e.Frankendancer="Frankendancer",e.Agave="Agave",e.AgavePaladin="Agave Paladin",e.Firedancer="Firedancer",e.AgaveBam="Agave BAM",e.Sig="Sig",e.AgaveRakurai="Agave Rakurai",e))(bu||{});const oDe={1:"Agave Jito",2:"Frankendancer",3:"Agave",4:"Agave Paladin",5:"Firedancer",6:"Agave BAM",7:"Sig",8:"Agave Rakurai"};function iDe(){const e=navigator.userAgent.toLowerCase();return/iphone|android|windows phone|ipad|android|tablet/.test(e)||"ontouchstart"in window&&!!(matchMedia!=null&&matchMedia("(hover: none)").matches)}const ADe=iDe();var ZQ={exports:{}};/** -* @license -* Lodash -* Copyright OpenJS Foundation and other contributors -* Released under MIT license -* Based on Underscore.js 1.8.3 -* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -*/ZQ.exports,function(e,t){(function(){var n,r="4.17.21",A=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",I=1,v=2,k=4,D=1,R=2,F=1,N=2,T=4,P=8,G=16,Y=32,z=64,Z=128,K=256,re=512,V=30,oe="...",Be=800,he=16,de=1,me=2,Ae=3,Ce=1/0,ae=9007199254740991,fe=17976931348623157e292,ye=NaN,Oe=4294967295,Ie=Oe-1,Fe=Oe>>>1,qe=[["ary",Z],["bind",F],["bindKey",N],["curry",P],["curryRight",G],["flip",re],["partial",Y],["partialRight",z],["rearg",K]],Ze="[object Arguments]",Te="[object Array]",De="[object AsyncFunction]",Se="[object Boolean]",Qe="[object Date]",Ye="[object DOMException]",At="[object Error]",Je="[object Function]",Nt="[object GeneratorFunction]",jt="[object Map]",bt="[object Number]",wt="[object Null]",se="[object Object]",$t="[object Promise]",Sn="[object Proxy]",fn="[object RegExp]",ue="[object Set]",ln="[object String]",Dt="[object Symbol]",Gt="[object Undefined]",It="[object WeakMap]",Cn="[object WeakSet]",wn="[object ArrayBuffer]",jr="[object DataView]",Yr="[object Float32Array]",or="[object Float64Array]",$r="[object Int8Array]",xr="[object Int16Array]",yr="[object Int32Array]",Co="[object Uint8Array]",oi="[object Uint8ClampedArray]",pA="[object Uint16Array]",mA="[object Uint32Array]",Do=/\b__p \+= '';/g,ii=/\b(__p \+=) '' \+/g,Ni=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oo=/&(?:amp|lt|gt|quot|#39);/g,yi=/[&<>"']/g,kA=RegExp(oo.source),EA=RegExp(yi.source),Ne=/<%-([\s\S]+?)%>/g,$e=/<%([\s\S]+?)%>/g,ht=/<%=([\s\S]+?)%>/g,ct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,_e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(Le.source),nt=/^\s+/,Ct=/\s/,pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pt=/\{\n\/\* \[wrapped with (.+)\] \*/,vn=/,? & /,ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/[()=,{}\[\]\/\s]/,rn=/\\(\\)?/g,pn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vr=/\w*$/,uo=/^[-+]0x[0-9a-f]+$/i,gr=/^0b[01]+$/i,zr=/^\[object .+?Constructor\]$/,Dn=/^0o[0-7]+$/i,y=/^(?:0|[1-9]\d*)$/,Ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=/($^)/,E=/['\n\r\u2028\u2029\\]/g,qt="\\ud800-\\udfff",On="\\u0300-\\u036f",HA="\\ufe20-\\ufe2f",Ro="\\u20d0-\\u20ff",Rn=On+HA+Ro,Ks="\\u2700-\\u27bf",Ln="a-z\\xdf-\\xf6\\xf8-\\xff",vi="\\xac\\xb1\\xd7\\xf7",Wc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zc="\\u2000-\\u206f",Al=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",H="A-Z\\xc0-\\xd6\\xd8-\\xde",Xo="\\ufe0e\\ufe0f",Jt=vi+Wc+Zc+Al,va="['\u2019]",Fn="["+qt+"]",nA="["+Jt+"]",Vs="["+Rn+"]",YA="\\d+",ud="["+Ks+"]",ql="["+Ln+"]",Hn="[^"+qt+Jt+YA+Ks+Ln+H+"]",$l="\\ud83c[\\udffb-\\udfff]",Xc="(?:"+Vs+"|"+$l+")",ec="[^"+qt+"]",ee="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Me="["+H+"]",it="\\u200d",Qt="(?:"+ql+"|"+Hn+")",tn="(?:"+Me+"|"+Hn+")",sr="(?:"+va+"(?:d|ll|m|re|s|t|ve))?",Ur="(?:"+va+"(?:D|LL|M|RE|S|T|VE))?",ji=Xc+"?",Oi="["+Xo+"]?",Ai="(?:"+it+"(?:"+[ec,ee,Ee].join("|")+")"+Oi+ji+")*",Fm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_s="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ag=Oi+ji+Ai,$u="(?:"+[ud,ee,Ee].join("|")+")"+Ag,e0="(?:"+[ec+Vs+"?",Vs,ee,Ee,Fn].join("|")+")",dd=RegExp(va,"g"),fd=RegExp(Vs,"g"),eo=RegExp($l+"(?="+$l+")|"+e0+Ag,"g"),Kc=RegExp([Me+"?"+ql+"+"+sr+"(?="+[nA,Me,"$"].join("|")+")",tn+"+"+Ur+"(?="+[nA,Me+Qt,"$"].join("|")+")",Me+"?"+Qt+"+"+sr,Me+"+"+Ur,_s,Fm,YA,$u].join("|"),"g"),gd=RegExp("["+it+qt+Rn+Xo+"]"),_2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ba=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],As=-1,Bo={};Bo[Yr]=Bo[or]=Bo[$r]=Bo[xr]=Bo[yr]=Bo[Co]=Bo[oi]=Bo[pA]=Bo[mA]=!0,Bo[Ze]=Bo[Te]=Bo[wn]=Bo[Se]=Bo[jr]=Bo[Qe]=Bo[At]=Bo[Je]=Bo[jt]=Bo[bt]=Bo[se]=Bo[fn]=Bo[ue]=Bo[ln]=Bo[It]=!1;var fo={};fo[Ze]=fo[Te]=fo[wn]=fo[jr]=fo[Se]=fo[Qe]=fo[Yr]=fo[or]=fo[$r]=fo[xr]=fo[yr]=fo[jt]=fo[bt]=fo[se]=fo[fn]=fo[ue]=fo[ln]=fo[Dt]=fo[Co]=fo[oi]=fo[pA]=fo[mA]=!0,fo[At]=fo[Je]=fo[It]=!1;var To={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},yo={"&":"&","<":"<",">":">",'"':""","'":"'"},rA={"&":"&","<":"<",">":">",""":'"',"'":"'"},vo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ko=parseFloat,io=parseInt,go=typeof C0=="object"&&C0&&C0.Object===Object&&C0,tc=typeof self=="object"&&self&&self.Object===Object&&self,No=go||tc||Function("return this")(),hd=t&&!t.nodeType&&t,oA=hd&&!0&&e&&!e.nodeType&&e,IA=oA&&oA.exports===hd,ks=IA&&go.process,zA=function(){try{var He=oA&&oA.require&&oA.require("util").types;return He||ks&&ks.binding&&ks.binding("util")}catch{}}(),pd=zA&&zA.isArrayBuffer,md=zA&&zA.isDate,qs=zA&&zA.isMap,$s=zA&&zA.isRegExp,sl=zA&&zA.isSet,al=zA&&zA.isTypedArray;function Gr(He,lt,rt){switch(rt.length){case 0:return He.call(lt);case 1:return He.call(lt,rt[0]);case 2:return He.call(lt,rt[0],rt[1]);case 3:return He.call(lt,rt[0],rt[1],rt[2])}return He.apply(lt,rt)}function Ss(He,lt,rt,Kt){for(var xn=-1,$n=He==null?0:He.length;++xn<$n;){var Jr=He[xn];lt(Kt,Jr,rt(Jr),He)}return Kt}function JA(He,lt){for(var rt=-1,Kt=He==null?0:He.length;++rt-1}function Ji(He,lt,rt){for(var Kt=-1,xn=He==null?0:He.length;++Kt-1;);return rt}function lg(He,lt){for(var rt=He.length;rt--&&as(lt,He[rt],0)>-1;);return rt}function k2(He,lt){for(var rt=He.length,Kt=0;rt--;)He[rt]===lt&&++Kt;return Kt}var cg=Bd(To),X=Bd(yo);function te(He){return"\\"+vo[He]}function ie(He,lt){return He==null?n:He[lt]}function ve(He){return gd.test(He)}function Ge(He){return _2.test(He)}function et(He){for(var lt,rt=[];!(lt=He.next()).done;)rt.push(lt.value);return rt}function ut(He){var lt=-1,rt=Array(He.size);return He.forEach(function(Kt,xn){rt[++lt]=[xn,Kt]}),rt}function _t(He,lt){return function(rt){return He(lt(rt))}}function Rt(He,lt){for(var rt=-1,Kt=He.length,xn=0,$n=[];++rt-1}function B(C,x){var j=this.__data__,W=mn(j,C);return W<0?(++this.size,j.push([C,x])):j[W][1]=x,this}s.prototype.clear=u,s.prototype.delete=l,s.prototype.get=d,s.prototype.has=g,s.prototype.set=B;function S(C){var x=-1,j=C==null?0:C.length;for(this.clear();++x=x?C:x)),C}function Xr(C,x,j,W,q,ge){var Re,Ue=x&I,Ve=x&v,mt=x&k;if(j&&(Re=q?j(C,W,q,ge):j(C)),Re!==n)return Re;if(!wi(C))return C;var Et=cr(C);if(Et){if(Re=xde(C),!Ue)return ea(C,Re)}else{var kt=cs(C),An=kt==Je||kt==Nt;if(_d(C))return Aj(C,Ue);if(kt==se||kt==Ze||An&&!q){if(Re=Ve||An?{}:Qj(C),!Ue)return Ve?pde(C,kr(Re,C)):hde(C,pr(Re,C))}else{if(!fo[kt])return q?C:{};Re=_de(C,kt,Ue)}}ge||(ge=new $);var Qn=ge.get(C);if(Qn)return Qn;ge.set(C,Re),eO(C)?C.forEach(function(Wn){Re.add(Xr(Wn,x,j,Wn,C,ge))}):qj(C)&&C.forEach(function(Wn,Lr){Re.set(Lr,Xr(Wn,x,j,Lr,C,ge))});var Jn=mt?Ve?$6:q6:Ve?na:TA,wr=Et?n:Jn(C);return JA(wr||C,function(Wn,Lr){wr&&(Lr=Wn,Wn=C[Lr]),an(Re,Lr,Xr(Wn,x,j,Lr,C,ge))}),Re}function Qi(C){var x=TA(C);return function(j){return AA(j,C,x)}}function AA(C,x,j){var W=j.length;if(C==null)return!W;for(C=nn(C);W--;){var q=j[W],ge=x[q],Re=C[q];if(Re===n&&!(q in C)||!ge(Re))return!1}return!0}function RA(C,x,j){if(typeof C!="function")throw new Ao(a);return Vm(function(){C.apply(n,j)},x)}function WA(C,x,j,W){var q=-1,ge=ll,Re=!0,Ue=C.length,Ve=[],mt=x.length;if(!Ue)return Ve;j&&(x=ho(x,Mr(j))),W?(ge=Ji,Re=!1):x.length>=A&&(ge=wa,Re=!1,x=new O(x));e:for(;++qq?0:q+j),W=W===n||W>q?q:Er(W),W<0&&(W+=q),W=j>W?0:nO(W);j0&&j(Ue)?x>1?jn(Ue,x-1,j,W,q):cl(q,Ue):W||(q[q.length]=Ue)}return q}var Or=dj(),Vo=dj(!0);function so(C,x){return C&&Or(C,x,TA)}function sA(C,x){return C&&Vo(C,x,TA)}function ka(C,x){return ss(x,function(j){return m0(C[j])})}function oc(C,x){x=wd(x,C);for(var j=0,W=x.length;C!=null&&jx}function H0e(C,x){return C!=null&&We.call(C,x)}function Y0e(C,x){return C!=null&&x in nn(C)}function z0e(C,x,j){return C>=CA(x,j)&&C=120&&Et.length>=120)?new O(Re&&Et):n}Et=C[0];var kt=-1,An=Ue[0];e:for(;++kt-1;)Ue!==C&&fg.call(Ue,Ve,1),fg.call(C,Ve,1);return C}function qN(C,x){for(var j=C?x.length:0,W=j-1;j--;){var q=x[j];if(j==W||q!==ge){var ge=q;p0(q)?fg.call(C,q,1):z6(C,q)}}return C}function G6(C,x){return C+hg(a0()*(x-C+1))}function ode(C,x,j,W){for(var q=-1,ge=Ui(gg((x-C)/(j||1)),0),Re=rt(ge);ge--;)Re[W?ge:++q]=C,C+=j;return Re}function H6(C,x){var j="";if(!C||x<1||x>ae)return j;do x%2&&(j+=C),x=hg(x/2),x&&(C+=C);while(x);return j}function Dr(C,x){return A3(_j(C,x,ra),C+"")}function ide(C){return st(L2(C))}function Ade(C,x){var j=L2(C);return Dy(j,to(x,0,j.length))}function Zm(C,x,j,W){if(!wi(C))return C;x=wd(x,C);for(var q=-1,ge=x.length,Re=ge-1,Ue=C;Ue!=null&&++qq?0:q+x),j=j>q?q:j,j<0&&(j+=q),q=x>j?0:j-x>>>0,x>>>=0;for(var ge=rt(q);++W>>1,Re=C[ge];Re!==null&&!Da(Re)&&(j?Re<=x:Re=A){var mt=x?null:Cde(C);if(mt)return Bt(mt);Re=!1,q=wa,Ve=new O}else Ve=x?[]:Ue;e:for(;++W=W?C:fl(C,x,j)}var ij=DA||function(C){return No.clearTimeout(C)};function Aj(C,x){if(x)return C.slice();var j=C.length,W=iA?iA(j):new C.constructor(j);return C.copy(W),W}function X6(C){var x=new C.constructor(C.byteLength);return new dg(x).set(new dg(C)),x}function ude(C,x){var j=x?X6(C.buffer):C.buffer;return new C.constructor(j,C.byteOffset,C.byteLength)}function dde(C){var x=new C.constructor(C.source,vr.exec(C));return x.lastIndex=C.lastIndex,x}function fde(C){return nu?nn(nu.call(C)):{}}function sj(C,x){var j=x?X6(C.buffer):C.buffer;return new C.constructor(j,C.byteOffset,C.length)}function aj(C,x){if(C!==x){var j=C!==n,W=C===null,q=C===C,ge=Da(C),Re=x!==n,Ue=x===null,Ve=x===x,mt=Da(x);if(!Ue&&!mt&&!ge&&C>x||ge&&Re&&Ve&&!Ue&&!mt||W&&Re&&Ve||!j&&Ve||!q)return 1;if(!W&&!ge&&!mt&&C=Ue)return Ve;var mt=j[W];return Ve*(mt=="desc"?-1:1)}}return C.index-x.index}function lj(C,x,j,W){for(var q=-1,ge=C.length,Re=j.length,Ue=-1,Ve=x.length,mt=Ui(ge-Re,0),Et=rt(Ve+mt),kt=!W;++Ue1?j[q-1]:n,Re=q>2?j[2]:n;for(ge=C.length>3&&typeof ge=="function"?(q--,ge):n,Re&&Ms(j[0],j[1],Re)&&(ge=q<3?n:ge,q=1),x=nn(x);++W-1?q[ge?x[Re]:Re]:n}}function hj(C){return h0(function(x){var j=x.length,W=j,q=Rs.prototype.thru;for(C&&x.reverse();W--;){var ge=x[W];if(typeof ge!="function")throw new Ao(a);if(q&&!Re&&ky(ge)=="wrapper")var Re=new Rs([],!0)}for(W=Re?W:j;++W1&&Wr.reverse(),Et&&VeUe))return!1;var mt=ge.get(C),Et=ge.get(x);if(mt&&Et)return mt==x&&Et==C;var kt=-1,An=!0,Qn=j&R?new O:n;for(ge.set(C,x),ge.set(x,C);++kt1?"& ":"")+x[W],x=x.join(j>2?", ":" "),C.replace(pt,`{ -/* [wrapped with `+x+`] */ -`)}function Sde(C){return cr(C)||Ig(C)||!!(Lm&&C&&C[Lm])}function p0(C,x){var j=typeof C;return x=x??ae,!!x&&(j=="number"||j!="symbol"&&y.test(C))&&C>-1&&C%1==0&&C0){if(++x>=Be)return arguments[0]}else x=0;return C.apply(n,arguments)}}function Dy(C,x){var j=-1,W=C.length,q=W-1;for(x=x===n?W:x;++j1?C[x-1]:n;return j=typeof j=="function"?(C.pop(),j):n,Pj(C,j)});function Uj(C){var x=le(C);return x.__chain__=!0,x}function Ufe(C,x){return x(C),C}function Ry(C,x){return x(C)}var Gfe=h0(function(C){var x=C.length,j=x?C[0]:0,W=this.__wrapped__,q=function(ge){return Qo(ge,C)};return x>1||this.__actions__.length||!(W instanceof Qr)||!p0(j)?this.thru(q):(W=W.slice(j,+j+(x?1:0)),W.__actions__.push({func:Ry,args:[q],thisArg:n}),new Rs(W,this.__chain__).thru(function(ge){return x&&!ge.length&&ge.push(n),ge}))});function Hfe(){return Uj(this)}function Yfe(){return new Rs(this.value(),this.__chain__)}function zfe(){this.__values__===n&&(this.__values__=tO(this.value()));var C=this.__index__>=this.__values__.length,x=C?n:this.__values__[this.__index__++];return{done:C,value:x}}function Jfe(){return this}function Wfe(C){for(var x,j=this;j instanceof bd;){var W=Mj(j);W.__index__=0,W.__values__=n,x?q.__wrapped__=W:x=W;var q=W;j=j.__wrapped__}return q.__wrapped__=C,x}function Zfe(){var C=this.__wrapped__;if(C instanceof Qr){var x=C;return this.__actions__.length&&(x=new Qr(this)),x=x.reverse(),x.__actions__.push({func:Ry,args:[s3],thisArg:n}),new Rs(x,this.__chain__)}return this.thru(s3)}function Xfe(){return rj(this.__wrapped__,this.__actions__)}var Kfe=by(function(C,x,j){We.call(C,j)?++C[j]:mr(C,j,1)});function Vfe(C,x,j){var W=cr(C)?Ed:f0;return j&&Ms(C,x,j)&&(x=n),W(C,zn(x,3))}function qfe(C,x){var j=cr(C)?ss:Sr;return j(C,zn(x,3))}var $fe=gj(Fj),ege=gj(Nj);function tge(C,x){return jn(Ty(C,x),1)}function nge(C,x){return jn(Ty(C,x),Ce)}function rge(C,x,j){return j=j===n?1:Er(j),jn(Ty(C,x),j)}function Gj(C,x){var j=cr(C)?JA:ZA;return j(C,zn(x,3))}function Hj(C,x){var j=cr(C)?sg:ou;return j(C,zn(x,3))}var oge=by(function(C,x,j){We.call(C,j)?C[j].push(x):mr(C,j,[x])});function ige(C,x,j,W){C=ta(C)?C:L2(C),j=j&&!W?Er(j):0;var q=C.length;return j<0&&(j=Ui(q+j,0)),Oy(C)?j<=q&&C.indexOf(x,j)>-1:!!q&&as(C,x,j)>-1}var Age=Dr(function(C,x,j){var W=-1,q=typeof x=="function",ge=ta(C)?rt(C.length):[];return ZA(C,function(Re){ge[++W]=q?Gr(x,Re,j):Jm(Re,x,j)}),ge}),sge=by(function(C,x,j){mr(C,j,x)});function Ty(C,x){var j=cr(C)?ho:JN;return j(C,zn(x,3))}function age(C,x,j,W){return C==null?[]:(cr(x)||(x=x==null?[]:[x]),j=W?n:j,cr(j)||(j=j==null?[]:[j]),KN(C,x,j))}var lge=by(function(C,x,j){C[j?0:1].push(x)},function(){return[[],[]]});function cge(C,x,j){var W=cr(C)?SA:Li,q=arguments.length<3;return W(C,zn(x,4),j,q,ZA)}function uge(C,x,j){var W=cr(C)?Qa:Li,q=arguments.length<3;return W(C,zn(x,4),j,q,ou)}function dge(C,x){var j=cr(C)?ss:Sr;return j(C,Ny(zn(x,3)))}function fge(C){var x=cr(C)?st:ide;return x(C)}function gge(C,x,j){(j?Ms(C,x,j):x===n)?x=1:x=Er(x);var W=cr(C)?Tt:Ade;return W(C,x)}function hge(C){var x=cr(C)?Mt:ade;return x(C)}function pge(C){if(C==null)return 0;if(ta(C))return Oy(C)?br(C):C.length;var x=cs(C);return x==jt||x==ue?C.size:L6(C).length}function mge(C,x,j){var W=cr(C)?nc:lde;return j&&Ms(C,x,j)&&(x=n),W(C,zn(x,3))}var Ege=Dr(function(C,x){if(C==null)return[];var j=x.length;return j>1&&Ms(C,x[0],x[1])?x=[]:j>2&&Ms(x[0],x[1],x[2])&&(x=[x[0]]),KN(C,jn(x,1),[])}),My=ay||function(){return No.Date.now()};function Ige(C,x){if(typeof x!="function")throw new Ao(a);return C=Er(C),function(){if(--C<1)return x.apply(this,arguments)}}function Yj(C,x,j){return x=j?n:x,x=C&&x==null?C.length:x,g0(C,Z,n,n,n,n,x)}function zj(C,x){var j;if(typeof x!="function")throw new Ao(a);return C=Er(C),function(){return--C>0&&(j=x.apply(this,arguments)),C<=1&&(x=n),j}}var l3=Dr(function(C,x,j){var W=F;if(j.length){var q=Rt(j,j2(l3));W|=Y}return g0(C,W,x,j,q)}),Jj=Dr(function(C,x,j){var W=F|N;if(j.length){var q=Rt(j,j2(Jj));W|=Y}return g0(x,W,C,j,q)});function Wj(C,x,j){x=j?n:x;var W=g0(C,P,n,n,n,n,n,x);return W.placeholder=Wj.placeholder,W}function Zj(C,x,j){x=j?n:x;var W=g0(C,G,n,n,n,n,n,x);return W.placeholder=Zj.placeholder,W}function Xj(C,x,j){var W,q,ge,Re,Ue,Ve,mt=0,Et=!1,kt=!1,An=!0;if(typeof C!="function")throw new Ao(a);x=hl(x)||0,wi(j)&&(Et=!!j.leading,kt="maxWait"in j,ge=kt?Ui(hl(j.maxWait)||0,x):ge,An="trailing"in j?!!j.trailing:An);function Qn(Xi){var Ac=W,I0=q;return W=q=n,mt=Xi,Re=C.apply(I0,Ac),Re}function Jn(Xi){return mt=Xi,Ue=Vm(Lr,x),Et?Qn(Xi):Re}function wr(Xi){var Ac=Xi-Ve,I0=Xi-mt,gO=x-Ac;return kt?CA(gO,ge-I0):gO}function Wn(Xi){var Ac=Xi-Ve,I0=Xi-mt;return Ve===n||Ac>=x||Ac<0||kt&&I0>=ge}function Lr(){var Xi=My();if(Wn(Xi))return Wr(Xi);Ue=Vm(Lr,wr(Xi))}function Wr(Xi){return Ue=n,An&&W?Qn(Xi):(W=q=n,Re)}function Ra(){Ue!==n&&ij(Ue),mt=0,W=Ve=q=Ue=n}function Fs(){return Ue===n?Re:Wr(My())}function Ta(){var Xi=My(),Ac=Wn(Xi);if(W=arguments,q=this,Ve=Xi,Ac){if(Ue===n)return Jn(Ve);if(kt)return ij(Ue),Ue=Vm(Lr,x),Qn(Ve)}return Ue===n&&(Ue=Vm(Lr,x)),Re}return Ta.cancel=Ra,Ta.flush=Fs,Ta}var Cge=Dr(function(C,x){return RA(C,1,x)}),Bge=Dr(function(C,x,j){return RA(C,hl(x)||0,j)});function yge(C){return g0(C,re)}function Fy(C,x){if(typeof C!="function"||x!=null&&typeof x!="function")throw new Ao(a);var j=function(){var W=arguments,q=x?x.apply(this,W):W[0],ge=j.cache;if(ge.has(q))return ge.get(q);var Re=C.apply(this,W);return j.cache=ge.set(q,Re)||ge,Re};return j.cache=new(Fy.Cache||S),j}Fy.Cache=S;function Ny(C){if(typeof C!="function")throw new Ao(a);return function(){var x=arguments;switch(x.length){case 0:return!C.call(this);case 1:return!C.call(this,x[0]);case 2:return!C.call(this,x[0],x[1]);case 3:return!C.call(this,x[0],x[1],x[2])}return!C.apply(this,x)}}function vge(C){return zj(2,C)}var bge=cde(function(C,x){x=x.length==1&&cr(x[0])?ho(x[0],Mr(zn())):ho(jn(x,1),Mr(zn()));var j=x.length;return Dr(function(W){for(var q=-1,ge=CA(W.length,j);++q=x}),Ig=HN(function(){return arguments}())?HN:function(C){return Gi(C)&&We.call(C,"callee")&&!Om.call(C,"callee")},cr=rt.isArray,Lge=pd?Mr(pd):W0e;function ta(C){return C!=null&&jy(C.length)&&!m0(C)}function Zi(C){return Gi(C)&&ta(C)}function Pge(C){return C===!0||C===!1||Gi(C)&&Ts(C)==Se}var _d=T2||B3,Uge=md?Mr(md):Z0e;function Gge(C){return Gi(C)&&C.nodeType===1&&!qm(C)}function Hge(C){if(C==null)return!0;if(ta(C)&&(cr(C)||typeof C=="string"||typeof C.splice=="function"||_d(C)||O2(C)||Ig(C)))return!C.length;var x=cs(C);if(x==jt||x==ue)return!C.size;if(Km(C))return!L6(C).length;for(var j in C)if(We.call(C,j))return!1;return!0}function Yge(C,x){return Wm(C,x)}function zge(C,x,j){j=typeof j=="function"?j:n;var W=j?j(C,x):n;return W===n?Wm(C,x,n,j):!!W}function u3(C){if(!Gi(C))return!1;var x=Ts(C);return x==At||x==Ye||typeof C.message=="string"&&typeof C.name=="string"&&!qm(C)}function Jge(C){return typeof C=="number"&&Pm(C)}function m0(C){if(!wi(C))return!1;var x=Ts(C);return x==Je||x==Nt||x==De||x==Sn}function Vj(C){return typeof C=="number"&&C==Er(C)}function jy(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=ae}function wi(C){var x=typeof C;return C!=null&&(x=="object"||x=="function")}function Gi(C){return C!=null&&typeof C=="object"}var qj=qs?Mr(qs):K0e;function Wge(C,x){return C===x||O6(C,x,t3(x))}function Zge(C,x,j){return j=typeof j=="function"?j:n,O6(C,x,t3(x),j)}function Xge(C){return $j(C)&&C!=+C}function Kge(C){if(Tde(C))throw new xn(i);return YN(C)}function Vge(C){return C===null}function qge(C){return C==null}function $j(C){return typeof C=="number"||Gi(C)&&Ts(C)==bt}function qm(C){if(!Gi(C)||Ts(C)!=se)return!1;var x=D2(C);if(x===null)return!0;var j=We.call(x,"constructor")&&x.constructor;return typeof j=="function"&&j instanceof j&&xa.call(j)==F6}var d3=$s?Mr($s):V0e;function $ge(C){return Vj(C)&&C>=-ae&&C<=ae}var eO=sl?Mr(sl):q0e;function Oy(C){return typeof C=="string"||!cr(C)&&Gi(C)&&Ts(C)==ln}function Da(C){return typeof C=="symbol"||Gi(C)&&Ts(C)==Dt}var O2=al?Mr(al):$0e;function ehe(C){return C===n}function the(C){return Gi(C)&&cs(C)==It}function nhe(C){return Gi(C)&&Ts(C)==Cn}var rhe=_y(P6),ohe=_y(function(C,x){return C<=x});function tO(C){if(!C)return[];if(ta(C))return Oy(C)?Vn(C):ea(C);if(s0&&C[s0])return et(C[s0]());var x=cs(C),j=x==jt?ut:x==ue?Bt:L2;return j(C)}function E0(C){if(!C)return C===0?C:0;if(C=hl(C),C===Ce||C===-Ce){var x=C<0?-1:1;return x*fe}return C===C?C:0}function Er(C){var x=E0(C),j=x%1;return x===x?j?x-j:x:0}function nO(C){return C?to(Er(C),0,Oe):0}function hl(C){if(typeof C=="number")return C;if(Da(C))return ye;if(wi(C)){var x=typeof C.valueOf=="function"?C.valueOf():C;C=wi(x)?x+"":x}if(typeof C!="string")return C===0?C:+C;C=$c(C);var j=gr.test(C);return j||Dn.test(C)?io(C.slice(2),j?2:8):uo.test(C)?ye:+C}function rO(C){return iu(C,na(C))}function ihe(C){return C?to(Er(C),-ae,ae):C===0?C:0}function wo(C){return C==null?"":Sa(C)}var Ahe=F2(function(C,x){if(Km(x)||ta(x)){iu(x,TA(x),C);return}for(var j in x)We.call(x,j)&&an(C,j,x[j])}),oO=F2(function(C,x){iu(x,na(x),C)}),Ly=F2(function(C,x,j,W){iu(x,na(x),C,W)}),she=F2(function(C,x,j,W){iu(x,TA(x),C,W)}),ahe=h0(Qo);function lhe(C,x){var j=d0(C);return x==null?j:pr(j,x)}var che=Dr(function(C,x){C=nn(C);var j=-1,W=x.length,q=W>2?x[2]:n;for(q&&Ms(x[0],x[1],q)&&(W=1);++j1),ge}),iu(C,$6(C),j),W&&(j=Xr(j,I|v|k,Bde));for(var q=x.length;q--;)z6(j,x[q]);return j});function _he(C,x){return AO(C,Ny(zn(x)))}var khe=h0(function(C,x){return C==null?{}:nde(C,x)});function AO(C,x){if(C==null)return{};var j=ho($6(C),function(W){return[W]});return x=zn(x),VN(C,j,function(W,q){return x(W,q[0])})}function She(C,x,j){x=wd(x,C);var W=-1,q=x.length;for(q||(q=1,C=n);++Wx){var W=C;C=x,x=W}if(j||C%1||x%1){var q=a0();return CA(C+q*(x-C+Ko("1e-"+((q+"").length-1))),x)}return G6(C,x)}var Uhe=N2(function(C,x,j){return x=x.toLowerCase(),C+(j?lO(x):x)});function lO(C){return h3(wo(C).toLowerCase())}function cO(C){return C=wo(C),C&&C.replace(Ot,cg).replace(fd,"")}function Ghe(C,x,j){C=wo(C),x=Sa(x);var W=C.length;j=j===n?W:to(Er(j),0,W);var q=j;return j-=x.length,j>=0&&C.slice(j,q)==x}function Hhe(C){return C=wo(C),C&&EA.test(C)?C.replace(yi,X):C}function Yhe(C){return C=wo(C),C&&ot.test(C)?C.replace(Le,"\\$&"):C}var zhe=N2(function(C,x,j){return C+(j?"-":"")+x.toLowerCase()}),Jhe=N2(function(C,x,j){return C+(j?" ":"")+x.toLowerCase()}),Whe=fj("toLowerCase");function Zhe(C,x,j){C=wo(C),x=Er(x);var W=x?br(C):0;if(!x||W>=x)return C;var q=(x-W)/2;return xy(hg(q),j)+C+xy(gg(q),j)}function Xhe(C,x,j){C=wo(C),x=Er(x);var W=x?br(C):0;return x&&W>>0,j?(C=wo(C),C&&(typeof x=="string"||x!=null&&!d3(x))&&(x=Sa(x),!x&&ve(C))?xd(Vn(C),0,j):C.split(x,j)):[]}var n2e=N2(function(C,x,j){return C+(j?" ":"")+h3(x)});function r2e(C,x,j){return C=wo(C),j=j==null?0:to(Er(j),0,C.length),x=Sa(x),C.slice(j,j+x.length)==x}function o2e(C,x,j){var W=le.templateSettings;j&&Ms(C,x,j)&&(x=n),C=wo(C),x=Ly({},x,W,Cj);var q=Ly({},x.imports,W.imports,Cj),ge=TA(q),Re=eu(q,ge),Ue,Ve,mt=0,Et=x.interpolate||o,kt="__p += '",An=Po((x.escape||o).source+"|"+Et.source+"|"+(Et===ht?pn:o).source+"|"+(x.evaluate||o).source+"|$","g"),Qn="//# sourceURL="+(We.call(x,"sourceURL")?(x.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++As+"]")+` -`;C.replace(An,function(Wn,Lr,Wr,Ra,Fs,Ta){return Wr||(Wr=Ra),kt+=C.slice(mt,Ta).replace(E,te),Lr&&(Ue=!0,kt+=`' + -__e(`+Lr+`) + -'`),Fs&&(Ve=!0,kt+=`'; -`+Fs+`; -__p += '`),Wr&&(kt+=`' + -((__t = (`+Wr+`)) == null ? '' : __t) + -'`),mt=Ta+Wn.length,Wn}),kt+=`'; -`;var Jn=We.call(x,"variable")&&x.variable;if(!Jn)kt=`with (obj) { -`+kt+` -} -`;else if(Wt.test(Jn))throw new xn(c);kt=(Ve?kt.replace(Do,""):kt).replace(ii,"$1").replace(Ni,"$1;"),kt="function("+(Jn||"obj")+`) { -`+(Jn?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Ue?", __e = _.escape":"")+(Ve?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+kt+`return __p -}`;var wr=dO(function(){return $n(ge,Qn+"return "+kt).apply(n,Re)});if(wr.source=kt,u3(wr))throw wr;return wr}function i2e(C){return wo(C).toLowerCase()}function A2e(C){return wo(C).toUpperCase()}function s2e(C,x,j){if(C=wo(C),C&&(j||x===n))return $c(C);if(!C||!(x=Sa(x)))return C;var W=Vn(C),q=Vn(x),ge=tu(W,q),Re=lg(W,q)+1;return xd(W,ge,Re).join("")}function a2e(C,x,j){if(C=wo(C),C&&(j||x===n))return C.slice(0,ar(C)+1);if(!C||!(x=Sa(x)))return C;var W=Vn(C),q=lg(W,Vn(x))+1;return xd(W,0,q).join("")}function l2e(C,x,j){if(C=wo(C),C&&(j||x===n))return C.replace(nt,"");if(!C||!(x=Sa(x)))return C;var W=Vn(C),q=tu(W,Vn(x));return xd(W,q).join("")}function c2e(C,x){var j=V,W=oe;if(wi(x)){var q="separator"in x?x.separator:q;j="length"in x?Er(x.length):j,W="omission"in x?Sa(x.omission):W}C=wo(C);var ge=C.length;if(ve(C)){var Re=Vn(C);ge=Re.length}if(j>=ge)return C;var Ue=j-br(W);if(Ue<1)return W;var Ve=Re?xd(Re,0,Ue).join(""):C.slice(0,Ue);if(q===n)return Ve+W;if(Re&&(Ue+=Ve.length-Ue),d3(q)){if(C.slice(Ue).search(q)){var mt,Et=Ve;for(q.global||(q=Po(q.source,wo(vr.exec(q))+"g")),q.lastIndex=0;mt=q.exec(Et);)var kt=mt.index;Ve=Ve.slice(0,kt===n?Ue:kt)}}else if(C.indexOf(Sa(q),Ue)!=Ue){var An=Ve.lastIndexOf(q);An>-1&&(Ve=Ve.slice(0,An))}return Ve+W}function u2e(C){return C=wo(C),C&&kA.test(C)?C.replace(oo,Pn):C}var d2e=N2(function(C,x,j){return C+(j?" ":"")+x.toUpperCase()}),h3=fj("toUpperCase");function uO(C,x,j){return C=wo(C),x=j?n:x,x===n?Ge(C)?_r(C):r0(C):C.match(x)||[]}var dO=Dr(function(C,x){try{return Gr(C,n,x)}catch(j){return u3(j)?j:new xn(j)}}),f2e=h0(function(C,x){return JA(x,function(j){j=Au(j),mr(C,j,l3(C[j],C))}),C});function g2e(C){var x=C==null?0:C.length,j=zn();return C=x?ho(C,function(W){if(typeof W[1]!="function")throw new Ao(a);return[j(W[0]),W[1]]}):[],Dr(function(W){for(var q=-1;++qae)return[];var j=Oe,W=CA(C,Oe);x=zn(x),C-=Oe;for(var q=qc(W,x);++j0||x<0)?new Qr(j):(C<0?j=j.takeRight(-C):C&&(j=j.drop(C)),x!==n&&(x=Er(x),j=x<0?j.dropRight(-x):j.take(x-C)),j)},Qr.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},Qr.prototype.toArray=function(){return this.take(Oe)},so(Qr.prototype,function(C,x){var j=/^(?:filter|find|map|reject)|While$/.test(x),W=/^(?:head|last)$/.test(x),q=le[W?"take"+(x=="last"?"Right":""):x],ge=W||/^find/.test(x);q&&(le.prototype[x]=function(){var Re=this.__wrapped__,Ue=W?[1]:arguments,Ve=Re instanceof Qr,mt=Ue[0],Et=Ve||cr(Re),kt=function(Lr){var Wr=q.apply(le,cl([Lr],Ue));return W&&An?Wr[0]:Wr};Et&&j&&typeof mt=="function"&&mt.length!=1&&(Ve=Et=!1);var An=this.__chain__,Qn=!!this.__actions__.length,Jn=ge&&!An,wr=Ve&&!Qn;if(!ge&&Et){Re=wr?Re:new Qr(this);var Wn=C.apply(Re,Ue);return Wn.__actions__.push({func:Ry,args:[kt],thisArg:n}),new Rs(Wn,An)}return Jn&&wr?C.apply(this,Ue):(Wn=this.thru(kt),Jn?W?Wn.value()[0]:Wn.value():Wn)})}),JA(["pop","push","shift","sort","splice","unshift"],function(C){var x=Wi[C],j=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",W=/^(?:pop|shift)$/.test(C);le.prototype[C]=function(){var q=arguments;if(W&&!this.__chain__){var ge=this.value();return x.apply(cr(ge)?ge:[],q)}return this[j](function(Re){return x.apply(cr(Re)?Re:[],q)})}}),so(Qr.prototype,function(C,x){var j=le[x];if(j){var W=j.name+"";We.call(Nn,W)||(Nn[W]=[]),Nn[W].push({name:x,func:j})}}),Nn[Qy(n,N).name]=[{name:"wrapper",func:n}],Qr.prototype.clone=my,Qr.prototype.reverse=en,Qr.prototype.value=Hm,le.prototype.at=Gfe,le.prototype.chain=Hfe,le.prototype.commit=Yfe,le.prototype.next=zfe,le.prototype.plant=Wfe,le.prototype.reverse=Zfe,le.prototype.toJSON=le.prototype.valueOf=le.prototype.value=Xfe,le.prototype.first=le.prototype.head,s0&&(le.prototype[s0]=Jfe),le},qn=Pi();oA?((oA.exports=qn)._=qn,hd._=qn):No._=qn}).call(C0)}(ZQ,ZQ.exports);var hn=ZQ.exports;class ih extends Error{}class sDe extends ih{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class aDe extends ih{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class lDe extends ih{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class t1 extends ih{}class PX extends ih{constructor(t){super(`Invalid unit ${t}`)}}class Is extends ih{}class Bf extends ih{constructor(){super("Zone is an abstract class")}}const sn="numeric",vc="short",Xa="long",XQ={year:sn,month:sn,day:sn},UX={year:sn,month:vc,day:sn},cDe={year:sn,month:vc,day:sn,weekday:vc},GX={year:sn,month:Xa,day:sn},HX={year:sn,month:Xa,day:sn,weekday:Xa},YX={hour:sn,minute:sn},zX={hour:sn,minute:sn,second:sn},JX={hour:sn,minute:sn,second:sn,timeZoneName:vc},WX={hour:sn,minute:sn,second:sn,timeZoneName:Xa},ZX={hour:sn,minute:sn,hourCycle:"h23"},XX={hour:sn,minute:sn,second:sn,hourCycle:"h23"},KX={hour:sn,minute:sn,second:sn,hourCycle:"h23",timeZoneName:vc},VX={hour:sn,minute:sn,second:sn,hourCycle:"h23",timeZoneName:Xa},qX={year:sn,month:sn,day:sn,hour:sn,minute:sn},$X={year:sn,month:sn,day:sn,hour:sn,minute:sn,second:sn},eK={year:sn,month:vc,day:sn,hour:sn,minute:sn},tK={year:sn,month:vc,day:sn,hour:sn,minute:sn,second:sn},uDe={year:sn,month:vc,day:sn,weekday:vc,hour:sn,minute:sn},nK={year:sn,month:Xa,day:sn,hour:sn,minute:sn,timeZoneName:vc},rK={year:sn,month:Xa,day:sn,hour:sn,minute:sn,second:sn,timeZoneName:vc},oK={year:sn,month:Xa,day:sn,weekday:Xa,hour:sn,minute:sn,timeZoneName:Xa},iK={year:sn,month:Xa,day:sn,weekday:Xa,hour:sn,minute:sn,second:sn,timeZoneName:Xa};class OI{get type(){throw new Bf}get name(){throw new Bf}get ianaName(){return this.name}get isUniversal(){throw new Bf}offsetName(t,n){throw new Bf}formatOffset(t,n){throw new Bf}offset(t){throw new Bf}equals(t){throw new Bf}get isValid(){throw new Bf}}let p5=null;class M6 extends OI{static get instance(){return p5===null&&(p5=new M6),p5}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return DK(t,n,r)}formatOffset(t,n){return UI(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const m5=new Map;function dDe(e){let t=m5.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),m5.set(e,t)),t}const fDe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function gDe(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,A,i,a,c,f,h,m]=r;return[a,A,i,c,f,h,m]}function hDe(e,t){const n=e.formatToParts(t),r=[];for(let A=0;A=0?k:1e3+k,(I-v)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let AK={};function pDe(e,t={}){const n=JSON.stringify([e,t]);let r=AK[n];return r||(r=new Intl.ListFormat(e,t),AK[n]=r),r}const I5=new Map;function C5(e,t={}){const n=JSON.stringify([e,t]);let r=I5.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),I5.set(n,r)),r}const B5=new Map;function mDe(e,t={}){const n=JSON.stringify([e,t]);let r=B5.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),B5.set(n,r)),r}const y5=new Map;function EDe(e,t={}){const{base:n,...r}=t,A=JSON.stringify([e,r]);let i=y5.get(A);return i===void 0&&(i=new Intl.RelativeTimeFormat(e,t),y5.set(A,i)),i}let KQ=null;function IDe(){return KQ||(KQ=new Intl.DateTimeFormat().resolvedOptions().locale,KQ)}const v5=new Map;function sK(e){let t=v5.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),v5.set(e,t)),t}const b5=new Map;function CDe(e){let t=b5.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...aK,...t}),b5.set(e,t)}return t}function BDe(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,A;try{r=C5(e).resolvedOptions(),A=e}catch{const c=e.substring(0,n);r=C5(c).resolvedOptions(),A=c}const{numberingSystem:i,calendar:a}=r;return[A,i,a]}}function yDe(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function vDe(e){const t=[];for(let n=1;n<=12;n++){const r=Gn.utc(2009,n,1);t.push(e(r))}return t}function bDe(e){const t=[];for(let n=1;n<=7;n++){const r=Gn.utc(2016,11,13+n);t.push(e(r))}return t}function VQ(e,t,n,r){const A=e.listingMode();return A==="error"?null:A==="en"?n(t):r(t)}function QDe(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||sK(e.locale).numberingSystem==="latn"}class wDe{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:A,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const c={useGrouping:!1,...r};r.padTo>0&&(c.minimumIntegerDigits=r.padTo),this.inf=mDe(t,c)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):T5(t,3);return cA(n,this.padTo)}}}class xDe{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let A;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const a=-1*(t.offset/60),c=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;t.offset!==0&&cd.create(c).valid?(A=c,this.dt=t):(A="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,A=t.zone.name):(A="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i={...this.opts};i.timeZone=i.timeZone||A,this.dtf=C5(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class _De{constructor(t,n,r){this.opts={style:"long",...r},!n&&xK()&&(this.rtf=EDe(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):KDe(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const aK={firstDay:1,minimalDays:4,weekend:[6,7]};class So{static fromOpts(t){return So.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,A,i=!1){const a=t||Yi.defaultLocale,c=a||(i?"en-US":IDe()),f=n||Yi.defaultNumberingSystem,h=r||Yi.defaultOutputCalendar,m=D5(A)||Yi.defaultWeekSettings;return new So(c,f,h,m,a)}static resetCache(){KQ=null,I5.clear(),B5.clear(),y5.clear(),v5.clear(),b5.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:A}={}){return So.create(t,n,r,A)}constructor(t,n,r,A,i){const[a,c,f]=BDe(t);this.locale=a,this.numberingSystem=n||c||null,this.outputCalendar=r||f||null,this.weekSettings=A,this.intl=yDe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=QDe(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:So.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,D5(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return VQ(this,t,MK,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const A=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";if(!this.monthsCache[i][t]){const a=r?c=>this.dtFormatter(c,A).format():c=>this.extract(c,A,"month");this.monthsCache[i][t]=vDe(a)}return this.monthsCache[i][t]})}weekdays(t,n=!1){return VQ(this,t,jK,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},A=n?"format":"standalone";return this.weekdaysCache[A][t]||(this.weekdaysCache[A][t]=bDe(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[A][t]})}meridiems(){return VQ(this,void 0,()=>OK,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Gn.utc(2016,11,13,9),Gn.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return VQ(this,t,LK,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Gn.utc(-40,1,1),Gn.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const A=this.dtFormatter(t,n),i=A.formatToParts(),a=i.find(c=>c.type.toLowerCase()===r);return a?a.value:null}numberFormatter(t={}){return new wDe(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new xDe(t,this.intl,n)}relFormatter(t={}){return new _De(this.intl,this.isEnglish(),t)}listFormatter(t={}){return pDe(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||sK(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:_K()?CDe(this.locale):aK}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Q5=null;class Xs extends OI{static get utcInstance(){return Q5===null&&(Q5=new Xs(0)),Q5}static instance(t){return t===0?Xs.utcInstance:new Xs(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Xs(nw(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${UI(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${UI(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return UI(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class kDe extends OI{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function yf(e,t){if(er(e)||e===null)return t;if(e instanceof OI)return e;if(FDe(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?M6.instance:n==="utc"||n==="gmt"?Xs.utcInstance:Xs.parseSpecifier(n)||cd.create(e)}else return vf(e)?Xs.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new kDe(e)}const w5={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},lK={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},SDe=w5.hanidec.replace(/[\[|\]]/g,"").split("");function DDe(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=i&&r<=a&&(t+=r-i)}}return parseInt(t,10)}else return t}const x5=new Map;function RDe(){x5.clear()}function bc({numberingSystem:e},t=""){const n=e||"latn";let r=x5.get(n);r===void 0&&(r=new Map,x5.set(n,r));let A=r.get(t);return A===void 0&&(A=new RegExp(`${w5[n]}${t}`),r.set(t,A)),A}let cK=()=>Date.now(),uK="system",dK=null,fK=null,gK=null,hK=60,pK,mK=null;class Yi{static get now(){return cK}static set now(t){cK=t}static set defaultZone(t){uK=t}static get defaultZone(){return yf(uK,M6.instance)}static get defaultLocale(){return dK}static set defaultLocale(t){dK=t}static get defaultNumberingSystem(){return fK}static set defaultNumberingSystem(t){fK=t}static get defaultOutputCalendar(){return gK}static set defaultOutputCalendar(t){gK=t}static get defaultWeekSettings(){return mK}static set defaultWeekSettings(t){mK=D5(t)}static get twoDigitCutoffYear(){return hK}static set twoDigitCutoffYear(t){hK=t%100}static get throwOnInvalid(){return pK}static set throwOnInvalid(t){pK=t}static resetCaches(){So.resetCache(),cd.resetCache(),Gn.resetCache(),RDe()}}class Qc{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const EK=[0,31,59,90,120,151,181,212,243,273,304,334],IK=[0,31,60,91,121,152,182,213,244,274,305,335];function Dl(e,t){return new Qc("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function _5(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const A=r.getUTCDay();return A===0?7:A}function CK(e,t,n){return n+(LI(e)?IK:EK)[t-1]}function BK(e,t){const n=LI(e)?IK:EK,r=n.findIndex(i=>iPI(r,t,n)?(h=r+1,f=1):h=r,{weekYear:h,weekNumber:f,weekday:c,...ow(e)}}function yK(e,t=4,n=1){const{weekYear:r,weekNumber:A,weekday:i}=e,a=k5(_5(r,1,t),n),c=r1(r);let f=A*7+i-a-7+t,h;f<1?(h=r-1,f+=r1(h)):f>c?(h=r+1,f-=r1(r)):h=r;const{month:m,day:I}=BK(h,f);return{year:h,month:m,day:I,...ow(e)}}function S5(e){const{year:t,month:n,day:r}=e,A=CK(t,n,r);return{year:t,ordinal:A,...ow(e)}}function vK(e){const{year:t,ordinal:n}=e,{month:r,day:A}=BK(t,n);return{year:t,month:r,day:A,...ow(e)}}function bK(e,t){if(!er(e.localWeekday)||!er(e.localWeekNumber)||!er(e.localWeekYear)){if(!er(e.weekday)||!er(e.weekNumber)||!er(e.weekYear))throw new t1("Cannot mix locale-based week fields with ISO-based week fields");return er(e.localWeekday)||(e.weekday=e.localWeekday),er(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),er(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function TDe(e,t=4,n=1){const r=$Q(e.weekYear),A=Rl(e.weekNumber,1,PI(e.weekYear,t,n)),i=Rl(e.weekday,1,7);return r?A?i?!1:Dl("weekday",e.weekday):Dl("week",e.weekNumber):Dl("weekYear",e.weekYear)}function MDe(e){const t=$Q(e.year),n=Rl(e.ordinal,1,r1(e.year));return t?n?!1:Dl("ordinal",e.ordinal):Dl("year",e.year)}function QK(e){const t=$Q(e.year),n=Rl(e.month,1,12),r=Rl(e.day,1,ew(e.year,e.month));return t?n?r?!1:Dl("day",e.day):Dl("month",e.month):Dl("year",e.year)}function wK(e){const{hour:t,minute:n,second:r,millisecond:A}=e,i=Rl(t,0,23)||t===24&&n===0&&r===0&&A===0,a=Rl(n,0,59),c=Rl(r,0,59),f=Rl(A,0,999);return i?a?c?f?!1:Dl("millisecond",A):Dl("second",r):Dl("minute",n):Dl("hour",t)}function er(e){return typeof e>"u"}function vf(e){return typeof e=="number"}function $Q(e){return typeof e=="number"&&e%1===0}function FDe(e){return typeof e=="string"}function NDe(e){return Object.prototype.toString.call(e)==="[object Date]"}function xK(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function _K(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function jDe(e){return Array.isArray(e)?e:[e]}function kK(e,t,n){if(e.length!==0)return e.reduce((r,A)=>{const i=[t(A),A];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function ODe(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function n1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function D5(e){if(e==null)return null;if(typeof e!="object")throw new Is("Week settings must be an object");if(!Rl(e.firstDay,1,7)||!Rl(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Rl(t,1,7)))throw new Is("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Rl(e,t,n){return $Q(e)&&e>=t&&e<=n}function LDe(e,t){return e-t*Math.floor(e/t)}function cA(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function bf(e){if(!(er(e)||e===null||e===""))return parseInt(e,10)}function Ah(e){if(!(er(e)||e===null||e===""))return parseFloat(e)}function R5(e){if(!(er(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function T5(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function LI(e){return e%4===0&&(e%100!==0||e%400===0)}function r1(e){return LI(e)?366:365}function ew(e,t){const n=LDe(t-1,12)+1,r=e+(t-n)/12;return n===2?LI(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function tw(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function SK(e,t,n){return-k5(_5(e,1,t),n)+t-1}function PI(e,t=4,n=1){const r=SK(e,t,n),A=SK(e+1,t,n);return(r1(e)-r+A)/7}function M5(e){return e>99?e:e>Yi.twoDigitCutoffYear?1900+e:2e3+e}function DK(e,t,n,r=null){const A=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},c=new Intl.DateTimeFormat(n,a).formatToParts(A).find(f=>f.type.toLowerCase()==="timezonename");return c?c.value:null}function nw(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,A=n<0||Object.is(n,-0)?-r:r;return n*60+A}function RK(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new Is(`Invalid unit value ${e}`);return t}function rw(e,t){const n={};for(const r in e)if(n1(e,r)){const A=e[r];if(A==null)continue;n[t(r)]=RK(A)}return n}function UI(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),A=e>=0?"+":"-";switch(t){case"short":return`${A}${cA(n,2)}:${cA(r,2)}`;case"narrow":return`${A}${n}${r>0?`:${r}`:""}`;case"techie":return`${A}${cA(n,2)}${cA(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function ow(e){return ODe(e,["hour","minute","second","millisecond"])}const PDe=["January","February","March","April","May","June","July","August","September","October","November","December"],TK=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],UDe=["J","F","M","A","M","J","J","A","S","O","N","D"];function MK(e){switch(e){case"narrow":return[...UDe];case"short":return[...TK];case"long":return[...PDe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const FK=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],NK=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],GDe=["M","T","W","T","F","S","S"];function jK(e){switch(e){case"narrow":return[...GDe];case"short":return[...NK];case"long":return[...FK];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const OK=["AM","PM"],HDe=["Before Christ","Anno Domini"],YDe=["BC","AD"],zDe=["B","A"];function LK(e){switch(e){case"narrow":return[...zDe];case"short":return[...YDe];case"long":return[...HDe];default:return null}}function JDe(e){return OK[e.hour<12?0:1]}function WDe(e,t){return jK(t)[e.weekday-1]}function ZDe(e,t){return MK(t)[e.month-1]}function XDe(e,t){return LK(t)[e.year<0?0:1]}function KDe(e,t,n="always",r=!1){const A={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&i){const I=e==="days";switch(t){case 1:return I?"tomorrow":`next ${A[e][0]}`;case-1:return I?"yesterday":`last ${A[e][0]}`;case 0:return I?"today":`this ${A[e][0]}`}}const a=Object.is(t,-0)||t<0,c=Math.abs(t),f=c===1,h=A[e],m=r?f?h[1]:h[2]||h[1]:f?A[e][0]:e;return a?`${c} ${m} ago`:`in ${c} ${m}`}function PK(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const VDe={D:XQ,DD:UX,DDD:GX,DDDD:HX,t:YX,tt:zX,ttt:JX,tttt:WX,T:ZX,TT:XX,TTT:KX,TTTT:VX,f:qX,ff:eK,fff:nK,ffff:oK,F:$X,FF:tK,FFF:rK,FFFF:iK};class xs{static create(t,n={}){return new xs(t,n)}static parseFormat(t){let n=null,r="",A=!1;const i=[];for(let a=0;a0||A)&&i.push({literal:A||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",A=!A):A||c===n?r+=c:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=c,n=c)}return r.length>0&&i.push({literal:A||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(t){return VDe[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return cA(t,n);const A={...this.opts};return n>0&&(A.padTo=n),r&&(A.signDisplay=r),this.loc.numberFormatter(A).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",A=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(k,D)=>this.loc.extract(t,k,D),a=k=>t.isOffsetFixed&&t.offset===0&&k.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,k.format):"",c=()=>r?JDe(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),f=(k,D)=>r?ZDe(t,k):i(D?{month:k}:{month:k,day:"numeric"},"month"),h=(k,D)=>r?WDe(t,k):i(D?{weekday:k}:{weekday:k,month:"long",day:"numeric"},"weekday"),m=k=>{const D=xs.macroTokenToFormatOpts(k);return D?this.formatWithSystemDefault(t,D):k},I=k=>r?XDe(t,k):i({era:k},"era"),v=k=>{switch(k){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return A?i({day:"numeric"},"day"):this.num(t.day);case"dd":return A?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return A?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return A?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return f("short",!0);case"LLLL":return f("long",!0);case"LLLLL":return f("narrow",!0);case"M":return A?i({month:"numeric"},"month"):this.num(t.month);case"MM":return A?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return f("short",!1);case"MMMM":return f("long",!1);case"MMMMM":return f("narrow",!1);case"y":return A?i({year:"numeric"},"year"):this.num(t.year);case"yy":return A?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return A?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return A?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return I("short");case"GG":return I("long");case"GGGGG":return I("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return m(k)}};return PK(xs.parseFormat(n),v)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,A=m=>{switch(m[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(m,I)=>v=>{const k=A(v);if(k){const D=I.isNegativeDuration&&k!==I.largestUnit?r:1;let R;return this.opts.signMode==="negativeLargestOnly"&&k!==I.largestUnit?R="never":this.opts.signMode==="all"?R="always":R="auto",this.num(m.get(k)*D,v.length,R)}else return v},a=xs.parseFormat(n),c=a.reduce((m,{literal:I,val:v})=>I?m:m.concat(v),[]),f=t.shiftTo(...c.map(A).filter(m=>m)),h={isNegativeDuration:f<0,largestUnit:Object.keys(f.values)[0]};return PK(a,i(f,h))}}const UK=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function o1(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function i1(...e){return t=>e.reduce(([n,r,A],i)=>{const[a,c,f]=i(t,A);return[{...n,...a},c||r,f]},[{},null,1]).slice(0,2)}function A1(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const A=n.exec(e);if(A)return r(A)}return[null,null]}function GK(...e){return(t,n)=>{const r={};let A;for(A=0;Ak!==void 0&&(D||k&&m)?-k:k;return[{years:v(Ah(n)),months:v(Ah(r)),weeks:v(Ah(A)),days:v(Ah(i)),hours:v(Ah(a)),minutes:v(Ah(c)),seconds:v(Ah(f),f==="-0"),milliseconds:v(R5(h),I)}]}const c5e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function j5(e,t,n,r,A,i,a){const c={year:t.length===2?M5(bf(t)):bf(t),month:TK.indexOf(n)+1,day:bf(r),hour:bf(A),minute:bf(i)};return a&&(c.second=bf(a)),e&&(c.weekday=e.length>3?FK.indexOf(e)+1:NK.indexOf(e)+1),c}const u5e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function d5e(e){const[,t,n,r,A,i,a,c,f,h,m,I]=e,v=j5(t,A,r,n,i,a,c);let k;return f?k=c5e[f]:h?k=0:k=nw(m,I),[v,new Xs(k)]}function f5e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const g5e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,h5e=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,p5e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function JK(e){const[,t,n,r,A,i,a,c]=e;return[j5(t,A,r,n,i,a,c),Xs.utcInstance]}function m5e(e){const[,t,n,r,A,i,a,c]=e;return[j5(t,c,n,r,A,i,a),Xs.utcInstance]}const E5e=o1($De,N5),I5e=o1(e5e,N5),C5e=o1(t5e,N5),B5e=o1(YK),WK=i1(A5e,a1,GI,HI),y5e=i1(n5e,a1,GI,HI),v5e=i1(r5e,a1,GI,HI),b5e=i1(a1,GI,HI);function Q5e(e){return A1(e,[E5e,WK],[I5e,y5e],[C5e,v5e],[B5e,b5e])}function w5e(e){return A1(f5e(e),[u5e,d5e])}function x5e(e){return A1(e,[g5e,JK],[h5e,JK],[p5e,m5e])}function _5e(e){return A1(e,[a5e,l5e])}const k5e=i1(a1);function S5e(e){return A1(e,[s5e,k5e])}const D5e=o1(o5e,i5e),R5e=o1(zK),T5e=i1(a1,GI,HI);function M5e(e){return A1(e,[D5e,WK],[R5e,T5e])}const ZK="Invalid Duration",XK={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},F5e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...XK},Tl=146097/400,l1=146097/4800,N5e={years:{quarters:4,months:12,weeks:Tl/7,days:Tl,hours:Tl*24,minutes:Tl*24*60,seconds:Tl*24*60*60,milliseconds:Tl*24*60*60*1e3},quarters:{months:3,weeks:Tl/28,days:Tl/4,hours:Tl*24/4,minutes:Tl*24*60/4,seconds:Tl*24*60*60/4,milliseconds:Tl*24*60*60*1e3/4},months:{weeks:l1/7,days:l1,hours:l1*24,minutes:l1*24*60,seconds:l1*24*60*60,milliseconds:l1*24*60*60*1e3},...XK},sh=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],j5e=sh.slice(0).reverse();function O0(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Tr(r)}function KK(e,t){let n=t.milliseconds??0;for(const r of j5e.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function VK(e,t){const n=KK(e,t)<0?-1:1;sh.reduceRight((r,A)=>{if(er(t[A]))return r;if(r){const i=t[r]*n,a=e[A][r],c=Math.floor(i/a);t[A]+=c*n,t[r]-=c*a*n}return A},null),sh.reduce((r,A)=>{if(er(t[A]))return r;if(r){const i=t[r]%1;t[r]-=i,t[A]+=i*e[r][A]}return A},null)}function qK(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Tr{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?N5e:F5e;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||So.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Tr.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Is(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Tr({values:rw(t,Tr.normalizeUnit),loc:So.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(vf(t))return Tr.fromMillis(t);if(Tr.isDuration(t))return t;if(typeof t=="object")return Tr.fromObject(t);throw new Is(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=_5e(t);return r?Tr.fromObject(r,n):Tr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=S5e(t);return r?Tr.fromObject(r,n):Tr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Is("need to specify a reason the Duration is invalid");const r=t instanceof Qc?t:new Qc(t,n);if(Yi.throwOnInvalid)throw new lDe(r);return new Tr({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new PX(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?xs.create(this.loc,r).formatDurationFromString(this,t):ZK}toHuman(t={}){if(!this.isValid)return ZK;const n=t.showZeros!==!1,r=sh.map(A=>{const i=this.values[A];return er(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:A.slice(0,-1)}).format(i)}).filter(A=>A);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=T5(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Gn.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?KK(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Tr.fromDurationLike(t),r={};for(const A of sh)(n1(n.values,A)||n1(this.values,A))&&(r[A]=n.get(A)+this.get(A));return O0(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Tr.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=RK(t(this.values[r],r));return O0(this,{values:n},!0)}get(t){return this[Tr.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...rw(t,Tr.normalizeUnit)};return O0(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:A}={}){const i={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:A,conversionAccuracy:r};return O0(this,i)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return VK(this.matrix,t),O0(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=qK(this.normalize().shiftToAll().toObject());return O0(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(a=>Tr.normalizeUnit(a));const n={},r={},A=this.toObject();let i;for(const a of sh)if(t.indexOf(a)>=0){i=a;let c=0;for(const h in r)c+=this.matrix[h][a]*r[h],r[h]=0;vf(A[a])&&(c+=A[a]);const f=Math.trunc(c);n[a]=f,r[a]=(c*1e3-f*1e3)/1e3}else vf(A[a])&&(r[a]=A[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return VK(this.matrix,n),O0(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return O0(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=qK(this.values);return O0(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,A){return r===void 0||r===0?A===void 0||A===0:r===A}for(const r of sh)if(!n(this.values[r],t.values[r]))return!1;return!0}}const c1="Invalid Interval";function O5e(e,t){return!e||!e.isValid?zi.invalid("missing or invalid start"):!t||!t.isValid?zi.invalid("missing or invalid end"):tt:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?zi.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(JI).filter(a=>this.contains(a)).sort((a,c)=>a.toMillis()-c.toMillis()),r=[];let{s:A}=this,i=0;for(;A+this.e?this.e:a;r.push(zi.fromDateTimes(A,c)),A=c,i+=1}return r}splitBy(t){const n=Tr.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,A=1,i;const a=[];for(;rf*A));i=+c>+this.e?this.e:c,a.push(zi.fromDateTimes(r,i)),r=i,A+=1}return a}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e=r?null:zi.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.st.e?this.e:t.e;return zi.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((A,i)=>A.s-i.s).reduce(([A,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[A,i.union(a)]:[A.concat([i]),a]:[A,a],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const A=[],i=t.map(f=>[{time:f.s,type:"s"},{time:f.e,type:"e"}]),a=Array.prototype.concat(...i),c=a.sort((f,h)=>f.time-h.time);for(const f of c)r+=f.type==="s"?1:-1,r===1?n=f.time:(n&&+n!=+f.time&&A.push(zi.fromDateTimes(n,f.time)),n=null);return zi.merge(A)}difference(...t){return zi.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:c1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=XQ,n={}){return this.isValid?xs.create(this.s.loc.clone(n),t).formatInterval(this):c1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:c1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:c1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:c1}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:c1}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Tr.invalid(this.invalidReason)}mapEndpoints(t){return zi.fromDateTimes(t(this.s),t(this.e))}}class iw{static hasDST(t=Yi.defaultZone){const n=Gn.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return cd.isValidZone(t)}static normalizeZone(t){return yf(t,Yi.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||So.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||So.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||So.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:A=null,outputCalendar:i="gregory"}={}){return(A||So.create(n,r,i)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:A=null,outputCalendar:i="gregory"}={}){return(A||So.create(n,r,i)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:A=null}={}){return(A||So.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:A=null}={}){return(A||So.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return So.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return So.create(n,null,"gregory").eras(t)}static features(){return{relative:xK(),localeWeek:_K()}}}function $K(e,t){const n=A=>A.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Tr.fromMillis(r).as("days"))}function L5e(e,t,n){const r=[["years",(f,h)=>h.year-f.year],["quarters",(f,h)=>h.quarter-f.quarter+(h.year-f.year)*4],["months",(f,h)=>h.month-f.month+(h.year-f.year)*12],["weeks",(f,h)=>{const m=$K(f,h);return(m-m%7)/7}],["days",$K]],A={},i=e;let a,c;for(const[f,h]of r)n.indexOf(f)>=0&&(a=f,A[f]=h(e,t),c=i.plus(A),c>t?(A[f]--,e=i.plus(A),e>t&&(c=e,A[f]--,e=i.plus(A))):e=c);return[e,A,c,a]}function P5e(e,t,n,r){let[A,i,a,c]=L5e(e,t,n);const f=t-A,h=n.filter(I=>["hours","minutes","seconds","milliseconds"].indexOf(I)>=0);h.length===0&&(a0?Tr.fromMillis(f,r).shiftTo(...h).plus(m):m}const U5e="missing Intl.DateTimeFormat.formatToParts support";function mo(e,t=n=>n){return{regex:e,deser:([n])=>t(DDe(n))}}const G5e="\xA0",eV=`[ ${G5e}]`,tV=new RegExp(eV,"g");function H5e(e){return e.replace(/\./g,"\\.?").replace(tV,eV)}function nV(e){return e.replace(/\./g,"").replace(tV," ").toLowerCase()}function wc(e,t){return e===null?null:{regex:RegExp(e.map(H5e).join("|")),deser:([n])=>e.findIndex(r=>nV(n)===nV(r))+t}}function rV(e,t){return{regex:e,deser:([,n,r])=>nw(n,r),groups:t}}function Aw(e){return{regex:e,deser:([t])=>t}}function Y5e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function z5e(e,t){const n=bc(t),r=bc(t,"{2}"),A=bc(t,"{3}"),i=bc(t,"{4}"),a=bc(t,"{6}"),c=bc(t,"{1,2}"),f=bc(t,"{1,3}"),h=bc(t,"{1,6}"),m=bc(t,"{1,9}"),I=bc(t,"{2,4}"),v=bc(t,"{4,6}"),k=R=>({regex:RegExp(Y5e(R.val)),deser:([F])=>F,literal:!0}),D=(R=>{if(e.literal)return k(R);switch(R.val){case"G":return wc(t.eras("short"),0);case"GG":return wc(t.eras("long"),0);case"y":return mo(h);case"yy":return mo(I,M5);case"yyyy":return mo(i);case"yyyyy":return mo(v);case"yyyyyy":return mo(a);case"M":return mo(c);case"MM":return mo(r);case"MMM":return wc(t.months("short",!0),1);case"MMMM":return wc(t.months("long",!0),1);case"L":return mo(c);case"LL":return mo(r);case"LLL":return wc(t.months("short",!1),1);case"LLLL":return wc(t.months("long",!1),1);case"d":return mo(c);case"dd":return mo(r);case"o":return mo(f);case"ooo":return mo(A);case"HH":return mo(r);case"H":return mo(c);case"hh":return mo(r);case"h":return mo(c);case"mm":return mo(r);case"m":return mo(c);case"q":return mo(c);case"qq":return mo(r);case"s":return mo(c);case"ss":return mo(r);case"S":return mo(f);case"SSS":return mo(A);case"u":return Aw(m);case"uu":return Aw(c);case"uuu":return mo(n);case"a":return wc(t.meridiems(),0);case"kkkk":return mo(i);case"kk":return mo(I,M5);case"W":return mo(c);case"WW":return mo(r);case"E":case"c":return mo(n);case"EEE":return wc(t.weekdays("short",!1),1);case"EEEE":return wc(t.weekdays("long",!1),1);case"ccc":return wc(t.weekdays("short",!0),1);case"cccc":return wc(t.weekdays("long",!0),1);case"Z":case"ZZ":return rV(new RegExp(`([+-]${c.source})(?::(${r.source}))?`),2);case"ZZZ":return rV(new RegExp(`([+-]${c.source})(${r.source})?`),2);case"z":return Aw(/[a-z_+-/]{1,256}?/i);case" ":return Aw(/[^\S\n\r]/);default:return k(R)}})(e)||{invalidReason:U5e};return D.token=e,D}const J5e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function W5e(e,t,n){const{type:r,value:A}=e;if(r==="literal"){const f=/^\s+$/.test(A);return{literal:!f,val:f?" ":A}}const i=t[r];let a=r;r==="hour"&&(t.hour12!=null?a=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let c=J5e[a];if(typeof c=="object"&&(c=c[i]),c)return{literal:!1,val:c}}function Z5e(e){return[`^${e.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,e]}function X5e(e,t,n){const r=e.match(t);if(r){const A={};let i=1;for(const a in n)if(n1(n,a)){const c=n[a],f=c.groups?c.groups+1:1;!c.literal&&c.token&&(A[c.token.val[0]]=c.deser(r.slice(i,i+f))),i+=f}return[r,A]}else return[r,{}]}function K5e(e){const t=A=>{switch(A){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return er(e.z)||(n=cd.create(e.z)),er(e.Z)||(n||(n=new Xs(e.Z)),r=e.Z),er(e.q)||(e.M=(e.q-1)*3+1),er(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),er(e.u)||(e.S=R5(e.u)),[Object.keys(e).reduce((A,i)=>{const a=t(i);return a&&(A[a]=e[i]),A},{}),n,r]}let O5=null;function V5e(){return O5||(O5=Gn.fromMillis(1555555555555)),O5}function q5e(e,t){if(e.literal)return e;const n=xs.macroTokenToFormatOpts(e.val),r=sV(n,t);return r==null||r.includes(void 0)?e:r}function oV(e,t){return Array.prototype.concat(...e.map(n=>q5e(n,t)))}class iV{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=oV(xs.parseFormat(n),t),this.units=this.tokens.map(r=>z5e(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,A]=Z5e(this.units);this.regex=RegExp(r,"i"),this.handlers=A}}explainFromTokens(t){if(this.isValid){const[n,r]=X5e(t,this.regex,this.handlers),[A,i,a]=r?K5e(r):[null,null,void 0];if(n1(r,"a")&&n1(r,"H"))throw new t1("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:A,zone:i,specificOffset:a}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function AV(e,t,n){return new iV(e,n).explainFromTokens(t)}function $5e(e,t,n){const{result:r,zone:A,specificOffset:i,invalidReason:a}=AV(e,t,n);return[r,A,i,a]}function sV(e,t){if(!e)return null;const n=xs.create(t,e).dtFormatter(V5e()),r=n.formatToParts(),A=n.resolvedOptions();return r.map(i=>W5e(i,e,A))}const L5="Invalid DateTime",aV=864e13;function YI(e){return new Qc("unsupported zone",`the zone "${e.name}" is not supported`)}function P5(e){return e.weekData===null&&(e.weekData=qQ(e.c)),e.weekData}function U5(e){return e.localWeekData===null&&(e.localWeekData=qQ(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function ah(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Gn({...n,...t,old:n})}function lV(e,t,n){let r=e-t*60*1e3;const A=n.offset(r);if(t===A)return[r,t];r-=(A-t)*60*1e3;const i=n.offset(r);return A===i?[r,A]:[e-Math.min(A,i)*60*1e3,Math.max(A,i)]}function sw(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function aw(e,t,n){return lV(tw(e),t,n)}function cV(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),A=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i={...e.c,year:r,month:A,day:Math.min(e.c.day,ew(r,A))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},a=Tr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=tw(i);let[f,h]=lV(c,n,e.zone);return a!==0&&(f+=a,h=e.zone.offset(f)),{ts:f,o:h}}function u1(e,t,n,r,A,i){const{setZone:a,zone:c}=n;if(e&&Object.keys(e).length!==0||t){const f=t||c,h=Gn.fromObject(e,{...n,zone:f,specificOffset:i});return a?h:h.setZone(c)}else return Gn.invalid(new Qc("unparsable",`the input "${A}" can't be parsed as ${r}`))}function lw(e,t,n=!0){return e.isValid?xs.create(So.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function G5(e,t,n){const r=e.c.year>9999||e.c.year<0;let A="";if(r&&e.c.year>=0&&(A+="+"),A+=cA(e.c.year,r?6:4),n==="year")return A;if(t){if(A+="-",A+=cA(e.c.month),n==="month")return A;A+="-"}else if(A+=cA(e.c.month),n==="month")return A;return A+=cA(e.c.day),A}function uV(e,t,n,r,A,i,a){let c=!n||e.c.millisecond!==0||e.c.second!==0,f="";switch(a){case"day":case"month":case"year":break;default:if(f+=cA(e.c.hour),a==="hour")break;if(t){if(f+=":",f+=cA(e.c.minute),a==="minute")break;c&&(f+=":",f+=cA(e.c.second))}else{if(f+=cA(e.c.minute),a==="minute")break;c&&(f+=cA(e.c.second))}if(a==="second")break;c&&(!r||e.c.millisecond!==0)&&(f+=".",f+=cA(e.c.millisecond,3))}return A&&(e.isOffsetFixed&&e.offset===0&&!i?f+="Z":e.o<0?(f+="-",f+=cA(Math.trunc(-e.o/60)),f+=":",f+=cA(Math.trunc(-e.o%60))):(f+="+",f+=cA(Math.trunc(e.o/60)),f+=":",f+=cA(Math.trunc(e.o%60)))),i&&(f+="["+e.zone.ianaName+"]"),f}const dV={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},eRe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},tRe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},cw=["year","month","day","hour","minute","second","millisecond"],nRe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rRe=["year","ordinal","hour","minute","second","millisecond"];function uw(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new PX(e);return t}function fV(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return uw(e)}}function oRe(e){if(zI===void 0&&(zI=Yi.now()),e.type!=="iana")return e.offset(zI);const t=e.name;let n=H5.get(t);return n===void 0&&(n=e.offset(zI),H5.set(t,n)),n}function gV(e,t){const n=yf(t.zone,Yi.defaultZone);if(!n.isValid)return Gn.invalid(YI(n));const r=So.fromObject(t);let A,i;if(er(e.year))A=Yi.now();else{for(const f of cw)er(e[f])&&(e[f]=dV[f]);const a=QK(e)||wK(e);if(a)return Gn.invalid(a);const c=oRe(n);[A,i]=aw(e,c,n)}return new Gn({ts:A,zone:n,loc:r,o:i})}function hV(e,t,n){const r=er(n.round)?!0:n.round,A=er(n.rounding)?"trunc":n.rounding,i=(c,f)=>(c=T5(c,r||n.calendary?0:2,n.calendary?"round":A),t.loc.clone(n).relFormatter(n).format(c,f)),a=c=>n.calendary?t.hasSame(e,c)?0:t.startOf(c).diff(e.startOf(c),c).get(c):t.diff(e,c).get(c);if(n.unit)return i(a(n.unit),n.unit);for(const c of n.units){const f=a(c);if(Math.abs(f)>=1)return i(f,c)}return i(e>t?-0:0,n.units[n.units.length-1])}function pV(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let zI;const H5=new Map;class Gn{constructor(t){const n=t.zone||Yi.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Qc("invalid input"):null)||(n.isValid?null:YI(n));this.ts=er(t.ts)?Yi.now():t.ts;let A=null,i=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[A,i]=[t.old.c,t.old.o];else{const a=vf(t.o)&&!t.old?t.o:n.offset(this.ts);A=sw(this.ts,a),r=Number.isNaN(A.year)?new Qc("invalid input"):null,A=r?null:A,i=r?null:a}this._zone=n,this.loc=t.loc||So.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=A,this.o=i,this.isLuxonDateTime=!0}static now(){return new Gn({})}static local(){const[t,n]=pV(arguments),[r,A,i,a,c,f,h]=n;return gV({year:r,month:A,day:i,hour:a,minute:c,second:f,millisecond:h},t)}static utc(){const[t,n]=pV(arguments),[r,A,i,a,c,f,h]=n;return t.zone=Xs.utcInstance,gV({year:r,month:A,day:i,hour:a,minute:c,second:f,millisecond:h},t)}static fromJSDate(t,n={}){const r=NDe(t)?t.valueOf():NaN;if(Number.isNaN(r))return Gn.invalid("invalid input");const A=yf(n.zone,Yi.defaultZone);return A.isValid?new Gn({ts:r,zone:A,loc:So.fromObject(n)}):Gn.invalid(YI(A))}static fromMillis(t,n={}){if(vf(t))return t<-aV||t>aV?Gn.invalid("Timestamp out of range"):new Gn({ts:t,zone:yf(n.zone,Yi.defaultZone),loc:So.fromObject(n)});throw new Is(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(vf(t))return new Gn({ts:t*1e3,zone:yf(n.zone,Yi.defaultZone),loc:So.fromObject(n)});throw new Is("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=yf(n.zone,Yi.defaultZone);if(!r.isValid)return Gn.invalid(YI(r));const A=So.fromObject(n),i=rw(t,fV),{minDaysInFirstWeek:a,startOfWeek:c}=bK(i,A),f=Yi.now(),h=er(n.specificOffset)?r.offset(f):n.specificOffset,m=!er(i.ordinal),I=!er(i.year),v=!er(i.month)||!er(i.day),k=I||v,D=i.weekYear||i.weekNumber;if((k||m)&&D)throw new t1("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&m)throw new t1("Can't mix ordinal dates with month/day");const R=D||i.weekday&&!k;let F,N,T=sw(f,h);R?(F=nRe,N=eRe,T=qQ(T,a,c)):m?(F=rRe,N=tRe,T=S5(T)):(F=cw,N=dV);let P=!1;for(const V of F){const oe=i[V];er(oe)?P?i[V]=N[V]:i[V]=T[V]:P=!0}const G=R?TDe(i,a,c):m?MDe(i):QK(i),Y=G||wK(i);if(Y)return Gn.invalid(Y);const z=R?yK(i,a,c):m?vK(i):i,[Z,K]=aw(z,h,r),re=new Gn({ts:Z,zone:r,o:K,loc:A});return i.weekday&&k&&t.weekday!==re.weekday?Gn.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${re.toISO()}`):re.isValid?re:Gn.invalid(re.invalid)}static fromISO(t,n={}){const[r,A]=Q5e(t);return u1(r,A,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,A]=w5e(t);return u1(r,A,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,A]=x5e(t);return u1(r,A,n,"HTTP",n)}static fromFormat(t,n,r={}){if(er(t)||er(n))throw new Is("fromFormat requires an input string and a format");const{locale:A=null,numberingSystem:i=null}=r,a=So.fromOpts({locale:A,numberingSystem:i,defaultToEN:!0}),[c,f,h,m]=$5e(a,t,n);return m?Gn.invalid(m):u1(c,f,r,`format ${n}`,t,h)}static fromString(t,n,r={}){return Gn.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,A]=M5e(t);return u1(r,A,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Is("need to specify a reason the DateTime is invalid");const r=t instanceof Qc?t:new Qc(t,n);if(Yi.throwOnInvalid)throw new sDe(r);return new Gn({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=sV(t,So.fromObject(n));return r?r.map(A=>A?A.val:null).join(""):null}static expandFormat(t,n={}){return oV(xs.parseFormat(t),So.fromObject(n)).map(r=>r.val).join("")}static resetCache(){zI=void 0,H5.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?P5(this).weekYear:NaN}get weekNumber(){return this.isValid?P5(this).weekNumber:NaN}get weekday(){return this.isValid?P5(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?U5(this).weekday:NaN}get localWeekNumber(){return this.isValid?U5(this).weekNumber:NaN}get localWeekYear(){return this.isValid?U5(this).weekYear:NaN}get ordinal(){return this.isValid?S5(this.c).ordinal:NaN}get monthShort(){return this.isValid?iw.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?iw.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?iw.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?iw.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=tw(this.c),A=this.zone.offset(r-t),i=this.zone.offset(r+t),a=this.zone.offset(r-A*n),c=this.zone.offset(r-i*n);if(a===c)return[this];const f=r-a*n,h=r-c*n,m=sw(f,a),I=sw(h,c);return m.hour===I.hour&&m.minute===I.minute&&m.second===I.second&&m.millisecond===I.millisecond?[ah(this,{ts:f}),ah(this,{ts:h})]:[this]}get isInLeapYear(){return LI(this.year)}get daysInMonth(){return ew(this.year,this.month)}get daysInYear(){return this.isValid?r1(this.year):NaN}get weeksInWeekYear(){return this.isValid?PI(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?PI(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:A}=xs.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:A}}toUTC(t=0,n={}){return this.setZone(Xs.instance(t),n)}toLocal(){return this.setZone(Yi.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=yf(t,Yi.defaultZone),t.equals(this.zone))return this;if(t.isValid){let A=this.ts;if(n||r){const i=t.offset(this.ts),a=this.toObject();[A]=aw(a,i,t)}return ah(this,{ts:A,zone:t})}else return Gn.invalid(YI(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const A=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return ah(this,{loc:A})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=rw(t,fV),{minDaysInFirstWeek:r,startOfWeek:A}=bK(n,this.loc),i=!er(n.weekYear)||!er(n.weekNumber)||!er(n.weekday),a=!er(n.ordinal),c=!er(n.year),f=!er(n.month)||!er(n.day),h=c||f,m=n.weekYear||n.weekNumber;if((h||a)&&m)throw new t1("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&a)throw new t1("Can't mix ordinal dates with month/day");let I;i?I=yK({...qQ(this.c,r,A),...n},r,A):er(n.ordinal)?(I={...this.toObject(),...n},er(n.day)&&(I.day=Math.min(ew(I.year,I.month),I.day))):I=vK({...S5(this.c),...n});const[v,k]=aw(I,this.o,this.zone);return ah(this,{ts:v,o:k})}plus(t){if(!this.isValid)return this;const n=Tr.fromDurationLike(t);return ah(this,cV(this,n))}minus(t){if(!this.isValid)return this;const n=Tr.fromDurationLike(t).negate();return ah(this,cV(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},A=Tr.normalizeUnit(t);switch(A){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(A==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a=3&&(f+="T"),f+=uV(this,c,n,r,A,i,a),f}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?G5(this,t==="extended",uw(n)):null}toISOWeekDate(){return lw(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:A=!1,extendedZone:i=!1,format:a="extended",precision:c="milliseconds"}={}){return this.isValid?(c=uw(c),(A&&cw.indexOf(c)>=3?"T":"")+uV(this,a==="extended",n,t,r,i,c)):null}toRFC2822(){return lw(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return lw(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?G5(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let A="HH:mm:ss.SSS";return(n||t)&&(r&&(A+=" "),n?A+="z":t&&(A+="ZZ")),lw(this,A,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():L5}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Tr.invalid("created by diffing an invalid DateTime");const A={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=jDe(n).map(Tr.normalizeUnit),a=t.valueOf()>this.valueOf(),c=a?this:t,f=a?t:this,h=P5e(c,f,i,A);return a?h.negate():h}diffNow(t="milliseconds",n={}){return this.diff(Gn.now(),t,n)}until(t){return this.isValid?zi.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const A=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n,r)<=A&&A<=i.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Gn.fromObject({},{zone:this.zone}),r=t.padding?thisn.valueOf(),Math.min)}static max(...t){if(!t.every(Gn.isDateTime))throw new Is("max requires all arguments be DateTimes");return kK(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:A=null,numberingSystem:i=null}=r,a=So.fromOpts({locale:A,numberingSystem:i,defaultToEN:!0});return AV(a,t,n)}static fromStringExplain(t,n,r={}){return Gn.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:A=null}=n,i=So.fromOpts({locale:r,numberingSystem:A,defaultToEN:!0});return new iV(i,t)}static fromFormatParser(t,n,r={}){if(er(t)||er(n))throw new Is("fromFormatParser requires an input string and a format parser");const{locale:A=null,numberingSystem:i=null}=r,a=So.fromOpts({locale:A,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new Is(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:c,zone:f,specificOffset:h,invalidReason:m}=n.explainFromTokens(t);return m?Gn.invalid(m):u1(c,f,r,`format ${n.format}`,t,h)}static get DATE_SHORT(){return XQ}static get DATE_MED(){return UX}static get DATE_MED_WITH_WEEKDAY(){return cDe}static get DATE_FULL(){return GX}static get DATE_HUGE(){return HX}static get TIME_SIMPLE(){return YX}static get TIME_WITH_SECONDS(){return zX}static get TIME_WITH_SHORT_OFFSET(){return JX}static get TIME_WITH_LONG_OFFSET(){return WX}static get TIME_24_SIMPLE(){return ZX}static get TIME_24_WITH_SECONDS(){return XX}static get TIME_24_WITH_SHORT_OFFSET(){return KX}static get TIME_24_WITH_LONG_OFFSET(){return VX}static get DATETIME_SHORT(){return qX}static get DATETIME_SHORT_WITH_SECONDS(){return $X}static get DATETIME_MED(){return eK}static get DATETIME_MED_WITH_SECONDS(){return tK}static get DATETIME_MED_WITH_WEEKDAY(){return uDe}static get DATETIME_FULL(){return nK}static get DATETIME_FULL_WITH_SECONDS(){return rK}static get DATETIME_HUGE(){return oK}static get DATETIME_HUGE_WITH_SECONDS(){return iK}}function JI(e){if(Gn.isDateTime(e))return e;if(e&&e.valueOf&&vf(e.valueOf()))return Gn.fromJSDate(e);if(e&&typeof e=="object")return Gn.fromObject(e);throw new Is(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Qu="#E5484D",Y5="#67B873",mV="#C567EA",EV="#2A7EDF",dw="#1CE7C2",iRe="#CBCBCB",IV="#8A8A8A",z5="#B2BCC9",d1="#67696A",J5="#8E909D",CV="#B4B4B4",BV="#949494",ARe="rgba(250, 250, 250, 0.12)",sRe="rgba(250, 250, 250, 0.05)",aRe="#24262B",lRe="#F7F8F8",cRe="#1C2129",uRe="#333333",dRe="#F7F7F7",yV=BV,L0="#557AE0",Qf=Y5,fRe="#9982f0",gRe="#00205F",hRe="#010102",pRe="#03030C",mRe="#A7A7A7",ERe="#121213",IRe=dw,CRe="#3BA158",BRe="#030312",yRe="#020C12",vRe="#020912",bRe="#060E0E",QRe="#252D2C",wRe="#175E51",xRe="#2D2B25",_Re="#6A510C",kRe="#E6B11E",SRe="#2D2525",DRe="#5E1717",RRe="#CE3636",TRe="#A2A2A2",MRe="#666",FRe="#C8B3B3",NRe="#686868",vV="#171765ff",bV="linear-gradient(270deg, #1414B8 0%, #090952 100%)",QV="#8F8FED",wV="#0E0E8E",xV="#0C171D",_V="linear-gradient(270deg, #1481B8 0%, #093952 100%)",kV="#47B4EB",SV="#0F3F57",DV="#041225",RV="linear-gradient(270deg, #0E448B 0%, #090E15 100%)",TV="#83B3F2",MV="#0E448B",FV="#091515",NV=`linear-gradient(270deg, ${dw} 0%, #0C6B5A 100%)`,jV="#2EC9C9",OV="#0C6B5A",jRe="rgba(16, 129, 108, 0.53)",ORe="#ffffff1a",LV="#3972C9",PV="#74AFEA",UV="#0F1313",GV="#118B74",HV="#871616",YV="#163454",zV="#89603E",LRe="#EF5F00",PRe="#F76B15",URe="#0D9B8A",GRe="#53B9AB",HRe="#0588F0",YRe="#0090FF",JV=dw,WV="#E7B81C",ZV="#1C96E7",XV="#E7601C",KV="#9D1CE7",VV="#E71C88",qV="#898989",$V="#3CFF73",eq="#FFA73C",zRe="#FF7878",JRe="#FF9D0A",WRe="#FFC267",tq="#141720",P0="#BDF3FF",fw="#6F77C0",nq="#363A63",W5="#20788C",ZRe="#167B91",rq="#006851",oq="#19307C",iq="#743F4D",XRe="#919191",KRe="#E5B319",VRe="#E55A19",qRe="#E5484D",Z5="#55BA83",X5="#D94343",Aq="#232A38",$Re="#676767",eTe="#E13131",tTe="#5F6FA9",nTe="#A2A2A2",rTe="#DB8F38",oTe="#CACACA",K5="#858585",V5="#312D42",q5="#A66759",$5="#597FA6",eR="#A67F59",tR="#366357",nR="#B2904D",rR="#2F3842",oR="#B23232",iR="#82738C",iTe="#FAFAFA",ATe="#3CB4FF",sTe="#142D53",aTe="#FF5353",sq="#525463",aq="#23639E",lq="#5C5555",cq="#452909",wf="#C6C6C6",AR="#183A5A",uq="#10273D",lTe="#7CE198",cTe="#A4A3A3",uTe="#1B659933",ei="#777b84",sR="#2C3235",lh="#D19DFF",f1="#4CCCE6",xf="#1FD8A4",dTe="#6A6A6E",dq=d1,fq="rgba(250, 250, 250, 0.05)",aR="#30A46C",lR="#E5484D",gw="#FF8DCC",g1="#9EB1FF",fTe="#292929",gTe="#9e9e9e",gq="#1d6fba",hTe="#84858a",cR="rgba(0, 0, 0, .5)",hq="rgba(125, 94, 84, .5)",pq="#A18072",uR="#6C4E62",mq="rgba(158, 108, 0, .5)",Eq="#836A21",Iq="rgba(96, 100, 108, .5)",Cq="#B5B2BC",Bq="rgba(17, 50, 100, .5)",yq="#0090FF",pTe="#41B9D3",mTe="#C46BF0",ETe="#6BEFD7",ITe="#C6F06A",CTe="#71EF9B",BTe="#6AC4F0",yTe="#DDD",vTe="#8FB6FC",bTe="linear-gradient(83.85deg, #024eff 0.22%, #3ce844 102.21%)",dR="#AFB2C2",QTe="rgba(178, 178, 178, 0.12)",wTe="#424242",xTe="rgba(114, 114, 114, 0.15)",_Te="#646464",fR="#676767",kTe="#1190CF",STe="#6CB1D3",DTe="#967DC8",hw="#871616",gR="#1d863b",hR="#1d6286",vq="#1CE7C2",bq="#076B59",RTe="#313131",Qq="#666666",wq=hR,TTe="#19457A",MTe="#FFF",FTe="var(--gray-10)",xq="var(--teal-9)",_q="var(--cyan-9)",kq="var(--red-8)",Sq="var(--sky-8)",Dq="var(--green-9)",Rq="var(--indigo-10)",NTe="var(--blue-9)",jTe="#15181e",OTe="#9aabc3",LTe="#250f0f",PTe="#283551",UTe="#3b0c0c",GTe="#e3efff",HTe="#484D53B2",YTe="var(--gray-11)",zTe="var(--gray-10)",JTe="var(--gray-12)",WTe="#70B8FF",ZTe="#070A13",XTe="#070B14 ",KTe="rgba(42, 126, 223, 0.5)",VTe="rgba(125, 125, 125, 0.50)",qTe="#2A7EDF",$Te="#070a13",eMe="#0D0D0D",tMe="#250f0f",nMe="#002163",rMe="#3b0c0c",oMe="#848484",iMe="#A0A0A0",AMe="#ccc",sMe="#878787",aMe="rgba(191, 135, 253, 0.13)",lMe="#283551",cMe="#37a4bc",pw="#0000001F",uMe=Object.freeze(Object.defineProperty({__proto__:null,appTeal:dw,bootProgressCatchupBackgroundColor:bRe,bootProgressFullSnapshotBackgroundColor:yRe,bootProgressGossipBackgroundColor:BRe,bootProgressGossipBarsColor:QRe,bootProgressGossipFilledBarColor:wRe,bootProgressGossipHighBarColor:SRe,bootProgressGossipHighFilledBarColor:DRe,bootProgressGossipHighThresholdBarColor:RRe,bootProgressGossipMidBarColor:xRe,bootProgressGossipMidFilledBarColor:_Re,bootProgressGossipMidThresholdBarColor:kRe,bootProgressIncrSnapshotBackgroundColor:vRe,bootProgressPrimaryTextColor:TRe,bootProgressSecondaryTextColor:MRe,bootProgressSnapshotUnitsColor:NRe,bootProgressTertiaryColor:FRe,cardBackgroundColor:tq,chartAxisColor:ei,chartGridColor:sR,chartGridStrokeColor:fq,circularProgressPathColor:wq,circularProgressTrailColor:Qq,clusterDevelopmentColor:ZV,clusterDevnetColor:XV,clusterMainnetBetaColor:JV,clusterPythnetColor:KV,clusterPythtestColor:VV,clusterTestnetColor:WV,clusterUnknownColor:qV,computeUnitsColor:lh,connectedColor:$V,connectingColor:eq,containerBackgroundColor:sRe,containerBorderColor:ARe,dropdownBackgroundColor:aRe,dropdownButtonTextColor:lRe,elapsedTimeColor:dTe,epochNotLiveColor:ATe,epochSkippedSlotColor:aTe,epochSliderProgressColor:sTe,epochTextColor:iTe,errorToggleColor:lR,fadedText:hTe,failureColor:Qu,feesColor:f1,firstTurbineSlotColor:LV,focusedBorderColor:gq,gridLineColor:V5,gridTicksColor:K5,headerColor:P0,headerLabelTextColor:BV,highIncrementTextColor:qRe,iconButtonColor:CV,incomePerCuToggleControlColor:g1,latestTurbineSlotColor:PV,lowIncrementTextColor:KRe,midIncrementTextColor:VRe,missingSlotColor:UV,mySlotsColor:EV,navButtonInactiveTextColor:yV,navButtonTextColor:dRe,needsReplaySlotColor:YV,nextColor:mV,nextSlotValueColor:oTe,nonDelinquentChartColor:nq,nonDelinquentColor:fw,nonVoteColor:Qf,popoverBackgroundColor:cRe,primaryTextColor:z5,progressBackgroundColor:ZRe,progressBarCompleteCatchupColor:OV,progressBarCompleteFullSnapshotColor:SV,progressBarCompleteGossipColor:wV,progressBarCompleteIncSnapshotColor:MV,progressBarInProgressCatchupBackground:NV,progressBarInProgressCatchupBorder:jV,progressBarInProgressFullSnapshotBackground:_V,progressBarInProgressFullSnapshotBorder:kV,progressBarInProgressGossipBackground:bV,progressBarInProgressGossipBorder:QV,progressBarInProgressIncSnapshotBackground:RV,progressBarInProgressIncSnapshotBorder:TV,progressBarIncompleteCatchupColor:FV,progressBarIncompleteFullSnapshotColor:xV,progressBarIncompleteGossipColor:vV,progressBarIncompleteIncSnapshotColor:DV,regularTextColor:J5,repairedNeedsReplaySlotColor:zV,repairedSlotsBoldTextColor:PRe,repairedSlotsTextColor:LRe,replayedMissingSlotColor:HV,replayedSlotColor:GV,replayedSlotsBoldTextColor:GRe,replayedSlotsTextColor:URe,requestedToggleControlColor:gw,rowSeparatorBackgroundColor:uRe,sankeyBaseLabelColor:wf,sankeyDroppedLinkColor:lq,sankeyIncomingLinkColor:aq,sankeyLinkGradientEndColor:AR,sankeyLinkGradientMiddleColor:uq,sankeyRetainedLinkColor:cq,sankeyStartEndNodeColor:sq,sankeySuccessRateColor:lTe,searchDisabledBackgroundColor:xTe,searchDisabledBorderColor:QTe,searchDisabledTextColor:wTe,searchIconColor:dR,secondaryTextColor:d1,shredPublishedColor:iR,shredReceivedRepairColor:eR,shredReceivedTurbineColor:$5,shredRepairRequestedColor:q5,shredReplayedNothingColor:rR,shredReplayedRepairColor:nR,shredReplayedTurbineColor:tR,shredSkippedColor:oR,skipRateLabelColor:_Te,slotCardSectionBackgroundColor:fR,slotDetailsBackgroundColor:jTe,slotDetailsChartControlsTriggered:WTe,slotDetailsClickableSlotColor:NTe,slotDetailsColor:OTe,slotDetailsDisabledSlotBorderColor:HTe,slotDetailsEarliestSlotColor:xq,slotDetailsFeesSlotColor:Sq,slotDetailsMySlotsNotSelectedColor:TTe,slotDetailsQuickSearchTextColor:FTe,slotDetailsRecentSlotColor:_q,slotDetailsRewardsSlotColor:Rq,slotDetailsSearchLabelColor:MTe,slotDetailsSelectedBackgroundColor:PTe,slotDetailsSelectedColor:GTe,slotDetailsSkippedBackgroundColor:LTe,slotDetailsSkippedSelectedBackgroundColor:UTe,slotDetailsSkippedSlotColor:kq,slotDetailsStatsPrimary:YTe,slotDetailsStatsSecondary:zTe,slotDetailsStatsTertiary:JTe,slotDetailsTipsSlotColor:Dq,slotNavBackgroundColor:hRe,slotNavFilterBackgroundColor:gRe,slotSelectorItemBackgroundColor:uTe,slotSelectorTextColor:cTe,slotStatusBlue:hR,slotStatusDullTeal:bq,slotStatusGray:RTe,slotStatusGreen:gR,slotStatusRed:hw,slotStatusTeal:vq,slotTextActiveLinkColor:STe,slotTextLinkColor:kTe,slotTextVisitedLinkColor:DTe,slotsListBackgroundColor:$Te,slotsListCurrentSlotBoxShadowColor:aMe,slotsListCurrentSlotNumberBackgroundColor:lMe,slotsListFutureSlotBackgroundColor:eMe,slotsListFutureSlotColor:sMe,slotsListMySlotBackgroundColor:XTe,slotsListMySlotsBorderColor:KTe,slotsListMySlotsSelectedBorderColor:qTe,slotsListNextLeaderProgressBarColor:cMe,slotsListNotProcessedMySlotsBorderColor:VTe,slotsListPastSlotColor:iMe,slotsListPastSlotNumberColor:oMe,slotsListSelectedBackgroundColor:nMe,slotsListSkippedBackgroundColor:tMe,slotsListSkippedSelectedBackgroundColor:rMe,slotsListSlotBackgroundColor:ZTe,slotsListSlotColor:AMe,snapshotAreaChartDark:jRe,snapshotAreaChartGridLineColor:ORe,startLineColor:dq,startupBackgroundColor:pRe,startupCompleteStepColor:CRe,startupProgressBackgroundColor:ERe,startupProgressTealColor:IRe,startupTextColor:mRe,successColor:Y5,successToggleColor:aR,summaryAgaveTextColor:ITe,summaryBamTextColor:yTe,summaryFiredancerTextColor:ETe,summaryFrankendancerTextColor:mTe,summaryJitoTextColor:CTe,summaryMySlotsColor:pTe,summaryPaladinTextColor:BTe,summaryRakuraiTextColor:bTe,summarySigTextColor:vTe,tableBodyColor:IV,tableHeaderColor:iRe,tileBackgroundBlueColor:tTe,tileBackgroundRedColor:eTe,tileBusyGreenColor:Z5,tileBusyRedColor:X5,tileChartDarkBackground:pw,tilePrimaryStatValueColor:rTe,tileSparklineBackgroundColor:Aq,tileSparklineRangeTextColor:$Re,tileSubHeaderColor:nTe,tipsColor:xf,toastConnectingEndColor:WRe,toastConnectingStartColor:JRe,toastDisconnectedColor:zRe,toggleItemBackgroundColor:fTe,toggleItemTextColor:gTe,totalValidatorsColor:W5,transactionAxisTextColor:XRe,transactionDefaultColor:cR,transactionExecuteColor:Iq,transactionExecuteTextColor:Cq,transactionFailedPathColor:iq,transactionLoadingColor:mq,transactionLoadingTextColor:Eq,transactionNonVotePathColor:rq,transactionPostExecuteColor:Bq,transactionPostExecuteTextColor:yq,transactionPreloadingColor:hq,transactionPreloadingTextColor:pq,transactionValidateColor:uR,transactionVotePathColor:oq,turbineSlotsBoldTextColor:YRe,turbineSlotsTextColor:HRe,voteLatencyColor:fRe,votesColor:L0},Symbol.toStringTag,{value:"Module"}));var dMe={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},fMe=Array.prototype.slice;function mw(e){var t=e.length;return t?t===1?[e[0]]:t===2?[e[0],e[1]]:t===3?[e[0],e[1],e[2]]:fMe.call(e,0):[]}function gMe(e){var t={};for(var n in e)dMe[n]||(t[n]=e[n]);return t}function hMe(e){return typeof e=="function"&&e.isMemoized}function pMe(e,t){return e===t||e!==e&&t!==t}function Tq(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}var mMe=function(){function e(t){this.keys=[],this.values=[],this.options=t;var n=typeof t.isMatchingKey=="function";n?this.getKeyIndex=this._getKeyIndexFromMatchingKey:t.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey=typeof t.transformKey=="function",this.shouldCloneArguments=this.canTransformKey||n,this.shouldUpdateOnAdd=typeof t.onCacheAdd=="function",this.shouldUpdateOnChange=typeof t.onCacheChange=="function",this.shouldUpdateOnHit=typeof t.onCacheHit=="function"}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:mw(this.keys),size:this.size,values:mw(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(t){var n=this.options,r=n.isMatchingKey,A=n.maxSize,i=this.keys,a=i.length;if(!a)return-1;if(r(i[0],t))return 0;if(A>1){for(var c=1;c1){for(var f=0;f1){for(var a=0;a=f&&(A.length=i.length=f)},e.prototype.updateAsyncCache=function(t){var n=this,r=this.options,A=r.onCacheChange,i=r.onCacheHit,a=this.keys[0],c=this.values[0];this.values[0]=c.then(function(f){return n.shouldUpdateOnHit&&i(n,n.options,t),n.shouldUpdateOnChange&&A(n,n.options,t),f},function(f){var h=n.getKeyIndex(a);throw h!==-1&&(n.keys.splice(h,1),n.values.splice(h,1)),f})},e}();function _f(e,t){if(t===void 0&&(t={}),hMe(e))return _f(e.fn,Tq(e.options,t));if(typeof e!="function")throw new TypeError("You must pass a function to `memoize`.");var n=t.isEqual,r=n===void 0?pMe:n,A=t.isMatchingKey,i=t.isPromise,a=i===void 0?!1:i,c=t.maxSize,f=c===void 0?1:c,h=t.onCacheAdd,m=t.onCacheChange,I=t.onCacheHit,v=t.transformKey,k=Tq({isEqual:r,isMatchingKey:A,isPromise:a,maxSize:f,onCacheAdd:h,onCacheChange:m,onCacheHit:I,transformKey:v},gMe(t)),D=new mMe(k),R=D.keys,F=D.values,N=D.canTransformKey,T=D.shouldCloneArguments,P=D.shouldUpdateOnAdd,G=D.shouldUpdateOnChange,Y=D.shouldUpdateOnHit,z=function(){var Z=T?mw(arguments):arguments;N&&(Z=v(Z));var K=R.length?D.getKeyIndex(Z):-1;if(K!==-1)Y&&I(D,k,z),K&&(D.orderByLru(R[K],F[K],K),G&&m(D,k,z));else{var re=e.apply(this,arguments),V=T?Z:mw(arguments);D.orderByLru(V,re,R.length),a&&D.updateAsyncCache(z),P&&h(D,k,z),G&&m(D,k,z)}return F[0]};return z.cache=D,z.fn=e,z.isMemoized=!0,z.options=k,z}function pR(e,t){return e.leader_slots.reduce((n,r,A)=>(e.staked_pubkeys[r]===t&&n.push(A*ro+e.start_slot),n),[])}function Vi(e){return e-e%ro}const mR=[{unit:"years",suffix:"y"},{unit:"months",suffix:"m"},{unit:"weeks",suffix:"w"},{unit:"days",suffix:"d"},{unit:"hours",suffix:"h"},{unit:"minutes",suffix:"m"},{unit:"seconds",suffix:"s"}];function EMe(e,t){if(t!=null&&t.showOnlyTwoSignificantUnits){const n=mR.findIndex(({unit:r})=>!!e[r]);return mR.slice(n,n+2).map(({unit:r,suffix:A})=>[e[r],A])}return mR.filter(({unit:n})=>t!=null&&t.omitSeconds&&n==="seconds"?!1:!!e[n]).map(({unit:n,suffix:r})=>[e[n],r])}function Mq(e,t){if(!e)return;if(e.toMillis()<1e3)return[[0,"s"]];const n=EMe(e,t);return n.length?n:[[0,"s"]]}function kf(e,t){const n=Mq(e,t);return n?n.map(([r,A])=>`${r}${A}`).join(" "):"Never"}function IMe(e,t={showSeconds:!0}){if(!e)return"Never";if(e.toMillis()<0)return"0s";let n="";return e.years&&(n&&(n+=" "),n+=`${e.years}y`),e.months&&(n&&(n+=" "),n+=`${e.months}m`),e.weeks&&(n&&(n+=" "),n+=`${e.weeks}w`),e.days&&(n&&(n+=" "),n+=`${e.days}d`),e.hours&&(n&&(n+=" "),n+=`${e.hours}h`),e.minutes&&(n&&(n+=" "),n+=`${e.minutes}m`),e.seconds&&t.showSeconds&&(n&&(n+=" "),n+=`${e.seconds}s`),n||(n="0s"),n}let WI=Gn.now();setInterval(()=>{WI=Gn.now()},1e3);function ZI(e){return e!==void 0}const XI=e=>e>=18446744073709552e3?0:e;function Fq(e){return e.vote.reduce((t,{activated_stake:n})=>t+n,0n)}function KI(e,t){if(e===void 0)return;const n=Number(e)/If;return n<1?n.toLocaleString(void 0,{maximumFractionDigits:t}):n<100?n.toLocaleString(void 0,{maximumFractionDigits:2}):n.toLocaleString(void 0,{maximumFractionDigits:0})}function ER(e,t){const n=KI(e,t);if(n!==void 0)return`${n}\xA0SOL`}const CMe=e=>Array.isArray(e);function IR(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-999999px",document.body.appendChild(t),t.select();try{document.execCommand("copy")||console.error("Failed to copy text",e)}catch(n){console.error("Failed to copy text",e,n)}finally{document.body.removeChild(t)}}function BMe(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function CR(e,t){return e.txn_landed[t]&&![5,6].includes(e.txn_error_code[t])?e.txn_priority_fee[t]+e.txn_transaction_fee[t]:0n}function BR(e,t){return e.txn_landed[t]&&e.txn_error_code[t]===0?e.txn_tips[t]:0n}function U0(e,t){return CR(e,t)+BR(e,t)}function yR(e){return e.split(":")[0]}function Ew(e){switch(e){case"mainnet-beta":return JV;case"testnet":return WV;case"development":return ZV;case"devnet":return XV;case"pythnet":return KV;case"pythtest":return VV;case"unknown":case void 0:return qV}}function VI(e){const t=e*8;return t<1e3?{value:Iw(t),unit:"b"}:t<1e6?{value:Iw(t/1e3),unit:"Kb"}:t<1e9?{value:Iw(t/1e6),unit:"Mb"}:{value:Iw(t/1e9),unit:"Gb"}}function wu(e,t=1,n=!0){return e===0&&n?{value:"0",unit:"B"}:e<1e3?{value:e.toFixed(t),unit:"B"}:e<1e6?{value:(e/1e3).toFixed(t),unit:"kB"}:e<1e9?{value:(e/1e6).toFixed(t),unit:"MB"}:{value:(e/1e9).toFixed(t),unit:"GB"}}function Iw(e){return e>=9.5?Math.round(e):Math.round(e*10)/10}function h1(e){let t=-1/0;for(let n=0;nt&&(t=r)}return t}function yMe(e){let t=1/0;for(let n=0;n{if(e)return e.toUpperCase().split("").map(t=>String.fromCodePoint(t.charCodeAt(0)-65+127462)).join("")},{maxSize:100});function Nq(e){return e===bu.Agave||e===bu.AgaveJito||e===bu.AgavePaladin||e===bu.AgaveBam||e===bu.AgaveRakurai}const bMe=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",timeZoneName:"short",fractionalSecondDigits:3});function jq(e){const t=Number(e/1000000n),n=Number(e%1000000n),r=new Date(t),A=bMe.formatToParts(r),i=n.toString().padStart(6,"0");let a="",c="";for(const f of A)a+=f.value,c+=f.value,f.type==="fractionalSecond"&&(c+=i);return{inMillis:a,inNanos:c}}function QMe(e){return e.level==="rooted"&&(e.vote_latency&&e.vote_latency>1||e.vote_latency===null&&!e.skipped)}function Oq(e,t,n){let r=0;for(let A=e;A{var f;const r=e(Ri);if(!r)return;if(n=n.trim(),!n){t(da,void 0),t(Eo,void 0);return}const A=parseInt(n,10);if(!isNaN(A)&&A>=r.start_slot&&A<=r.end_slot){t(da,void 0),t(Eo,A);return}if(n.length<3){t(da,[]),t(Eo,void 0);return}const i=n.split(/[,;]/).map(h=>h.trim().toLowerCase()).filter(h=>!!h),a=(f=e(t9e))==null?void 0:f.filter(({name:h,pubkey:m})=>i.some(I=>(h==null?void 0:h.includes(I))||m.toLowerCase().includes(I))).map(({pubkey:h})=>h);if(!(a!=null&&a.length)){t(da,[]),t(Eo,void 0);return}const c=a.flatMap(h=>pR(r,h)).sort();t(da,c)}),xMe=Ke(null,(e,t)=>{const n=e(da);if(!n)return;const r=e(Eo),A=e(xc),i=n.map(f=>Math.abs(f-(r??A??0))),a=Math.min(...i),c=Math.max(i.indexOf(a),0);t(Eo,n[c])}),_Me=Ke(null,(e,t,n)=>{const r=e(Eo),A=e(da),i=e(xc);if(i!==void 0)if(A!=null&&A.length)if(r!==void 0){const a=A.map(h=>Math.abs(h-r)),c=Math.min(...a),f=Math.max(a.indexOf(c),0);if(f>=0){const h=Math.min(Math.max(f+Math.trunc(n/4),0),A.length-1);t(Eo,A[h])}}else t(xMe);else r!==void 0?t(Eo,r+n):t(Eo,n+i+ro*3)});var Sf=(e=>(e.Valid="valid",e.NotReady="invalid",e.OutsideEpoch="outside-epoch",e.BeforeFirstProcessed="before-first-processed",e.Future="future",e.NotYou="not-you",e))(Sf||{});function kMe(e,t,n,r,A){return e===void 0?"valid":!t||!n||r===void 0||A===void 0?"invalid":e=A?"future":"valid":"not-you"}const G0=function(){const e=Ke(),t=Ke(n=>{const r=n(Ri),A=n(e),i=n(PA),a=n(Df),c=n(LA);return kMe(A,r,i,a,c)});return{slot:e,state:t,isValid:Ke(n=>n(t)==="valid")}}(),Kr=Ke(e=>e(G0.isValid)?e(G0.slot):void 0);var rs=(e=>(e.Count="Count",e.Pct="Pct %",e.Rate="Rate",e))(rs||{});const p1=Ke("Count"),SMe=Ke(e=>{if(!e(Kr))return e(DQ)}),DMe=Ke(e=>{const t=e(SMe),n=e(zp);return t==null?void 0:t.reduce((r,A,i)=>{var f;const a=n==null?void 0:n[i];if(!a)return r;const c=s5.safeParse(a.kind);return c.error||(r[f=c.data]??(r[f]=[]),r[c.data].push(A)),r},{})}),RMe=Ke(e=>{const t=e(zp),n=["snapld","snapdc","snapin"];if(!t)return;const r=t.reduce((A,i,a)=>{const c=s5.safeParse(i.kind);if(c.error||!n.includes(c.data))return A;const f=A.get(c.data)??[];return f.push(a),A.set(c.data,f),A},new Map);return Array.from(r.entries()).map(([A,i])=>[A,i])}),TMe=Ke(e=>{const t=e(DQ),n=e(RMe);if(!(!t||!n))return n.reduce((r,[A,i])=>(r[A]=i.map(a=>t[a]),r),{})}),MMe=Ke(e=>{var t;return e(Kr)?void 0:e(p1)==="Rate"?e(Pq):(t=e(mZ))==null?void 0:t.waterfall}),Lq=Za([]),Pq=Ke(e=>{var i;if(e(p1)!=="Rate")return;const t=e(Lq);if(t.length<2)return(i=t[0])==null?void 0:i.waterfall;const n=t[t.length-1],r=t[0],A=(n.ts-r.ts)/1e3;return tZ(n.waterfall,a=>{for(const c in a.in)if(Object.prototype.hasOwnProperty.call(a.in,c)){const f=a.in[c]-r.waterfall.in[c];a.in[c]=Math.trunc(f/A)}for(const c in a.out)if(Object.prototype.hasOwnProperty.call(a.out,c)){const f=a.out[c]-r.waterfall.out[c];a.out[c]=Math.trunc(f/A)}})},(e,t,n)=>{t(Lq,r=>{const A=performance.now();for(n&&r.push({waterfall:n,ts:A});r.length&&A-r[0].ts>1e3;)r.shift();const i=Object.values(r[r.length-1].waterfall.in);for(;r.length>1&&Object.values(r[0].waterfall.in).some((a,c)=>i[c]-a<0);)r.shift()})}),qI=Ke(e=>{const t=e(zp),n=hn.countBy(t,r=>r.kind);return Object.fromEntries(s5.options.map(r=>[r,n[r]??0]))}),FMe={};function vR(e,t){let n=null;const r=new Map,A=new Set,i=c=>{let f;if(f=r.get(c),f!==void 0)if(n!=null&&n(f[1],c))i.remove(c);else return f[0];const h=e(c);return r.set(c,[h,Date.now()]),a("CREATE",c,h),h},a=(c,f,h)=>{for(const m of A)m({type:c,param:f,atom:h})};return i.unstable_listen=c=>(A.add(c),()=>{A.delete(c)}),i.getParams=()=>r.keys(),i.remove=c=>{{if(!r.has(c))return;const[f]=r.get(c);r.delete(c),a("REMOVE",c,f)}},i.setShouldRemove=c=>{if(n=c,!!n)for(const[f,[h,m]]of r)n(m,f)&&(r.delete(f),a("REMOVE",f,h))},i}const NMe=e=>typeof(e==null?void 0:e.then)=="function";function jMe(e=()=>{try{return window.localStorage}catch(n){(FMe?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(n);return}},t){var n;let r,A;const i={getItem:(f,h)=>{var m,I;const v=D=>{if(D=D||"",r!==D){try{A=JSON.parse(D,t==null?void 0:t.reviver)}catch{return h}r=D}return A},k=(I=(m=e())==null?void 0:m.getItem(f))!=null?I:null;return NMe(k)?k.then(v):v(k)},setItem:(f,h)=>{var m;return(m=e())==null?void 0:m.setItem(f,JSON.stringify(h,void 0))},removeItem:f=>{var h;return(h=e())==null?void 0:h.removeItem(f)}},a=f=>(h,m,I)=>f(h,v=>{let k;try{k=JSON.parse(v||"")}catch{k=I}m(k)});let c;try{c=(n=e())==null?void 0:n.subscribe}catch{}return!c&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(c=(f,h)=>{if(!(e()instanceof window.Storage))return()=>{};const m=I=>{I.storageArea===e()&&I.key===f&&h(I.newValue)};return window.addEventListener("storage",m),()=>{window.removeEventListener("storage",m)}}),c&&(i.subscribe=a(c)),i}jMe();const qi=Ke(()=>{const e=IX.safeParse("Firedancer".trim());return e.error?Ci.Frankendancer:e.data}),m1=Ke();Ke();const OMe=Ke(!1),Uq=Ke(),Cw=Za([]),Ri=Ke(e=>{const t=e(LA),n=e(Cw);if(!n.length||t===void 0)return;const r=n.find(({start_slot:A,end_slot:i})=>t>=A&&t<=i);if(r)return r},(e,t,n)=>{t(Cw,r=>{r.findIndex(A=>A.epoch===n.epoch)===-1&&r.push(n)})}),LMe=Ke(null,(e,t,n)=>{t(Cw,r=>{r=r==null?void 0:r.filter(({epoch:A})=>A>=n)})}),PMe=Ke(e=>{const t=e(Ri);return t?e(Cw).find(n=>n.epoch===(t==null?void 0:t.epoch)+1):void 0}),[Eo,UMe]=function(){const e=Ke();return[Ke(t=>t(e),(t,n,r)=>{const A=t(Ri);if(!A)return;const i=r===void 0?void 0:hn.clamp(Vi(r),A.start_slot,A.end_slot);n(e,i)}),Ke(t=>t(e)===void 0)]}(),bR=Za({}),GMe=_f(e=>Ke(t=>e!==void 0&&t(bR)[e]||"incomplete"),{maxSize:1e3});var $I=(e=>(e.AllSlots="All Slots",e.MySlots="My Slots",e))($I||{});const E1=function(){const e=Ke();return Ke(t=>t(e)??"All Slots",(t,n,r)=>{n(e,r);const A=t(Kr);n(Eo,A??void 0)})}(),HMe=Ke(null,(e,t,n,r)=>{(r==="completed"||r==="optimistically_confirmed"||r==="rooted")&&t(LA,n+1),t(bR,A=>{A[n]=r})}),Gq=10,YMe=Ke(e=>{const t=e(PA),n=e(Kr);if(t===void 0||n===void 0)return;const r=t.indexOf(Vi(n));if(r!==-1)return t.slice(Math.max(r-Gq,0),r+Gq)}),Bw=1e3,zMe=Ke(null,(e,t)=>{const n=e(Eo),r=e(YMe),A=e(LA),i=e(da),a=e(PA),c=e(E1),f=n??A;f!==void 0&&t(bR,h=>{const m=f-Bw/2,I=f+Bw/2,v=Object.keys(h);for(const k of v){const D=Number(k),R=Vi(D);i!=null&&i.includes(R)||r!=null&&r.includes(R)||c==="My Slots"&&(a!=null&&a.includes(R))||!isNaN(D)&&(DI)&&delete h[D]}})}),yw=Za({}),QR=vR(e=>Ke(t=>{var n;return e!==void 0?(n=t(yw)[e])==null?void 0:n.publish:void 0})),Hq=vR(e=>Ke(t=>e!==void 0?t(yw)[e]:void 0)),JMe=Ke(null,(e,t,n)=>{const r=n.publish.slot;t(yw,A=>{var i,a,c,f,h,m,I;n.transactions??(n.transactions=(i=A[r])==null?void 0:i.transactions),n.tile_primary_metric??(n.tile_primary_metric=(a=A[r])==null?void 0:a.tile_primary_metric),n.tile_timers??(n.tile_timers=(c=A[r])==null?void 0:c.tile_timers),n.waterfall??(n.waterfall=(f=A[r])==null?void 0:f.waterfall),n.scheduler_counts??(n.scheduler_counts=(h=A[r])==null?void 0:h.scheduler_counts),n.limits??(n.limits=(m=A[r])==null?void 0:m.limits),n.scheduler_stats??(n.scheduler_stats=(I=A[r])==null?void 0:I.scheduler_stats),A[r]=n})}),WMe=Ke(null,(e,t)=>{const n=e(Eo),r=e(Kr),A=e(LA),i=e(da),a=n??A,c=e(E1),f=e(PA);a!==void 0&&t(yw,h=>{const m=a-Bw/2,I=a+Bw/2,v=Object.keys(h);for(const k of v){const D=Number(k),R=Vi(D);i!=null&&i.length&&i.includes(R)||r!==void 0&&R===Vi(r)||c==="My Slots"&&(f!=null&&f.includes(R))||!isNaN(D)&&(DI)&&(delete h[D],QR.remove(D))}})}),Df=Ke(e=>{var t;if(e(qi)===Ci.Frankendancer){const n=e(vu);return(n==null?void 0:n.ledger_max_slot)==null?void 0:n.ledger_max_slot+1}return((t=e(Wp))==null?void 0:t.catching_up_first_replay_slot)??void 0}),Yq=Ke(e=>{const t=e(PA),n=e(Df);if(!t||n===void 0)return;const r=t.findIndex(A=>A>=n);return r!==-1?r:void 0});Ke(e=>{const t=e(PA),n=e(Yq);return n?t==null?void 0:t[n]:void 0});const wR=Ke(e=>{const t=e(PA),n=e(eC);return n?t==null?void 0:t[n-1]:void 0}),zq=Ke(void 0),LA=Ke(e=>e(zq),(e,t,n)=>{const r=e(tC);(r===void 0||n>=r)&&t(tC,n),t(zq,A=>Math.max(n,A??0))}),PA=Ke(e=>{const t=e(Ri),n=e(qg);if(!(!t||!n))return pR(t,n)}),ZMe=Ke(e=>{const t=e(PMe),n=e(qg);if(!(!t||!n))return pR(t,n)}),eC=Ke(void 0),tC=Ke(e=>{const t=e(PA),n=e(eC);if(!(!t||n===void 0))return t[n]},(e,t,n)=>{const r=e(PA);r!=null&&t(eC,A=>{let i=A??0;for((r[i-1]??0)>n&&(i=0);i=r.length))return i})}),XMe=Ke(e=>{const t=e(ZMe);if(t)return t[0]}),Jq=Ke(e=>{const t=e(PA),n=e(eC);if(t)return n===void 0?t[t.length-1]:t[n-1]}),KMe=Ke(e=>{const t=e(LA),n=e(Jq);return t===void 0||n===void 0?!1:t>=n&&t<=n+ro}),xc=Ke(e=>{const t=e(LA);if(t!=null)return Vi(t)}),xu=Za({}),xR=Ke(e=>Object.values(e(xu)));Ke(e=>e(xR).length);const Wq=vR(e=>Ke(t=>e!==void 0?t(xu)[e]:void 0)),VMe=Ke(null,(e,t,n)=>{n!=null&&n.length&&t(xu,r=>{for(const A of n)r[A.identity_pubkey]?r[A.identity_pubkey]=hn.merge(r[A.identity_pubkey],A):r[A.identity_pubkey]=A})}),qMe=6e4*5,$Me=Ke(null,(e,t,n)=>{n!=null&&n.length&&(t(xu,r=>{for(const A of n)r[A.identity_pubkey]&&(r[A.identity_pubkey].removed=!0,Wq.remove(A.identity_pubkey))}),setTimeout(()=>{t(xu,r=>{for(const A of n)r[A.identity_pubkey]&&delete r[A.identity_pubkey]})},qMe))}),I1=Ke(e=>{const t=e(xu);if(!t)return;const n=Object.values(t).filter(c=>!c.removed),r=n.filter(c=>c.vote.every(f=>!f.activated_stake)&&!!c.gossip),A=n.filter(c=>c.vote.some(f=>f.activated_stake)),i=n.reduce((c,f)=>f.vote.reduce((h,m)=>m.delinquent?h:h+m.activated_stake,0n)+c,0n),a=n.reduce((c,f)=>f.vote.reduce((h,m)=>m.delinquent?h+m.activated_stake:h,0n)+c,0n);return{rpcCount:r.length,validatorCount:A.length,activeStake:i,delinquentStake:a}}),Zq=Ke(e=>{const t=e(I1);if(t&&t.activeStake+t.delinquentStake)return t.activeStake+t.delinquentStake}),Xq=Ke(e=>{const t=e(xu),n=e(qg),r=e(I1);if(!t||!n||!r)return;const A=t[n];if(A)return Fq(A)}),e9e=Ke(e=>{const t=e(Zq),n=e(Xq);if(!(n===void 0||!t))return Number(n)/Number(t)*100}),t9e=Ke(e=>{const t=e(Ri),n=e(xu);return!t||!n?void 0:[...new Set(t.leader_slots.map(r=>t.staked_pubkeys[r]))].map(r=>{var A,i,a;return{pubkey:r,name:(a=(i=(A=n[r])==null?void 0:A.info)==null?void 0:i.name)==null?void 0:a.toLowerCase()}})}),n9e=_f(e=>Ke(t=>{if(e===void 0)return!0;const n=t(LA);return n===void 0||e>=n}),{maxSize:1e3}),C1=Ke(e=>{const t=e(hZ);if(!t)return 300;const n=Math.trunc(t/1e6);return Math.max(50,Math.min(n,1e3*10))}),Kq=Za({}),Vq=Ke(e=>{const t=e(Ri);if(t)return e(Kq)[t.epoch]},(e,t,n)=>{t(Kq,r=>{r[n.epoch]=n})}),qq=Ke(e=>{const t=e(LA);if(t===void 0)return null;const n=e(Eo);return n===void 0?"Live":Vi(n)===Vi(t)?"Current":n>t?"Future":"Past"}),[vw,r9e,o9e,i9e]=function(){const e=Za(new Set);return[Ke(t=>t(e)),Ke(null,(t,n,r)=>{n(e,A=>{for(const i of r)A.add(i)})}),Ke(null,(t,n,r)=>{n(e,A=>{A.delete(r)})}),Ke(null,(t,n,r,A)=>{n(e,i=>{const a=new Set;for(const c of i)cA||a.add(c);return a})})]}(),$q=Ke(e=>{const t=e(cZ);if(t!=null)return Math.round(t/l5)}),[e$,A9e,s9e,a9e]=function(){const e=Za(new Map);return[Ke(t=>{const n=t(e),r=t(vw),A=new Set;for(const[i,a]of n){if(a===null){A.add(i);continue}Oq(i,a,r)>1&&A.add(i)}return A}),Ke(null,(t,n,r,A)=>{n(e,i=>{i.set(r,A)})}),Ke(null,(t,n,r)=>{n(e,A=>{A.delete(r)})}),Ke(null,(t,n,r)=>{n(e,A=>{if(!r){A.clear();return}const i=[];A.forEach((a,c)=>{(cA.delete(a))})})]}(),_R=Ke(null),ch=Ke(e=>{var t,n;return((t=e(Wp))==null?void 0:t.loading_incremental_snapshot_slot)??((n=e(Wp))==null?void 0:n.loading_full_snapshot_slot)}),l9e=Ke(e=>{const t=e(ch),n=e(t$);return t!=null&&!!n.size}),[t$,c9e,n$,B1,u9e]=function(){const e=Za(new Set),t=Ke(),n=Ke();return[Ke(r=>r(e)),Ke(null,(r,A,i)=>{r(Ml)&&A(e,a=>{i.forEach(c=>{a.add(c),A(t,f=>f?Math.min(f,c):c),A(n,f=>f?Math.max(f,c):c)})})}),Ke(r=>r(t)),Ke(r=>r(n)),Ke(null,(r,A)=>{A(t,void 0),A(n,void 0),A(e,new Set)})]}(),[d9e,f9e,g9e]=function(){const e=Za(new Set);return[Ke(t=>t(e)),Ke(null,(t,n,r)=>{t(Ml)&&n(e,A=>{r.forEach(i=>{A.add(i)})})}),Ke(null,(t,n)=>{n(e,new Set)})]}(),nC=Ke(e=>{var t;return(t=e(Wp))==null?void 0:t.phase}),[Ml,r$]=function(){const e=Ke(!0),t=Ke();return[Ke(n=>n(e),(n,r,A)=>{r(e,A),r(t,A?void 0:n(B1)??-1)}),Ke(n=>n(t))]}(),bw=Ke(!0),o$=Ke(null),Qw=Ke(e=>{const t=e(Ml);if(!t)return!1;const n=e(qi);return n===Ci.Frankendancer?t:n===Ci.Firedancer?t&&e(bw):!0}),i$="/assets/firedancer-D_J0EzUc.svg",h9e="/assets/frankendancer-0Top5G94.svg",p9e="_text_o41r7_1",m9e="_container_o41r7_6",A$={text:p9e,container:m9e};function E9e({label:e,hide:t}){const n=t?{visibility:"hidden"}:{};return p.jsx(xe,{gap:"2",align:"center",style:n,className:A$.container,children:p.jsx(be,{className:A$.text,children:e})})}const I9e="_container_1tszc_1",C9e="_text_1tszc_11",s$={container:I9e,text:C9e};function B9e({label:e,hide:t,rightChildren:n,bottomChildren:r}){const A=t?{visibility:"hidden"}:{};return p.jsxs("div",{className:s$.container,style:A,children:[p.jsx(xe,{justify:"center",align:"center",children:p.jsx(Vb,{})}),p.jsxs(xe,{gap:"2",align:"center",children:[p.jsxs(be,{className:s$.text,children:[e,"..."]}),p.jsx(rr,{flexGrow:"1"}),n]}),r&&p.jsxs(p.Fragment,{children:[p.jsx("div",{}),r]})]})}const y9e="data:image/svg+xml,%3csvg%20width='14'%20height='11'%20viewBox='0%200%2014%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.75%208.6748L12.6953%200.729492L13.75%201.78418L4.75%2010.7842L0.566406%206.60059L1.62109%205.5459L4.75%208.6748Z'%20fill='%231D863B'/%3e%3c/svg%3e",v9e="_text_1ont6_1",b9e="_container_1ont6_7",a$={text:v9e,container:b9e};function Q9e({label:e,hide:t}){const n=t?{visibility:"hidden"}:{};return p.jsxs(xe,{gap:"2",align:"center",style:n,className:a$.container,children:[p.jsx("img",{src:y9e,alt:"complete"}),p.jsx(be,{className:a$.text,children:e})]})}const w9e="_label_1ojid_1",x9e="_value_1ojid_6",l$={label:w9e,value:x9e};function H0({label:e,value:t}){return p.jsxs(xe,{gap:"1",flexGrow:"1",children:[p.jsx(be,{className:l$.label,children:e}),p.jsx(be,{className:l$.value,children:t??"-"})]})}function _9e(){const e=we(vu);return e?p.jsxs(xe,{children:[p.jsx(H0,{label:"Current Slot",value:e.ledger_slot}),p.jsx(H0,{label:"Max Slot",value:e.ledger_max_slot})]}):null}const k9e="_progress_gtr5g_1",S9e="_text_gtr5g_11",ww={progress:k9e,text:S9e};let c$={};const u$=new WeakMap,d$={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]};class D9e{constructor(t,n){n=Object.assign({units:"metric",precision:1,locale:void 0},c$,n),u$.set(this,n),Object.assign(d$,n.customUnits);const r=t<0?"-":"";t=Math.abs(t);const A=d$[n.units];if(A){const i=A.find(a=>t>=a.from&&t{if(!t)return"";const a=uh(t,{units:"iec"}),c=e?e/t:0,f=Number(a.value);return`${isNaN(f)?"0":(f*c).toFixed(1)} / ${a.toString()}`};return p.jsx(xe,{children:p.jsxs(xe,{direction:"column",children:[p.jsx(rr,{minHeight:"10px"}),p.jsx(af,{value:r,className:ww.progress}),p.jsxs(xe,{minHeight:"10px",children:[p.jsx(be,{className:ww.text,children:i()}),p.jsx(rr,{flexGrow:"1"}),p.jsxs(be,{className:ww.text,children:["~",kf(A)]})]})]})})}function R9e(){const e=we(vu);if(e)return p.jsx(f$,{currentBytes:e.downloading_full_snapshot_current_bytes,totalBytes:e.downloading_full_snapshot_total_bytes,remainingSecs:e.downloading_full_snapshot_remaining_secs})}function T9e(){const e=we(vu);if(e)return p.jsx(f$,{currentBytes:e.downloading_incremental_snapshot_current_bytes,totalBytes:e.downloading_incremental_snapshot_total_bytes,remainingSecs:e.downloading_incremental_snapshot_remaining_secs})}var kR=oC(),dr=e=>rC(e,kR),SR=oC();dr.write=e=>rC(e,SR);var xw=oC();dr.onStart=e=>rC(e,xw);var DR=oC();dr.onFrame=e=>rC(e,DR);var RR=oC();dr.onFinish=e=>rC(e,RR);var y1=[];dr.setTimeout=(e,t)=>{const n=dr.now()+t,r=()=>{const i=y1.findIndex(a=>a.cancel==r);~i&&y1.splice(i,1),Tf-=~i?1:0},A={time:n,handler:e,cancel:r};return y1.splice(g$(n),0,A),Tf+=1,h$(),A};var g$=e=>~(~y1.findIndex(t=>t.time>e)||~y1.length);dr.cancel=e=>{xw.delete(e),DR.delete(e),RR.delete(e),kR.delete(e),SR.delete(e)},dr.sync=e=>{MR=!0,dr.batchedUpdates(e),MR=!1},dr.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...A){t=A,dr.onStart(n)}return r.handler=e,r.cancel=()=>{xw.delete(n),t=null},r};var TR=typeof window<"u"?window.requestAnimationFrame:()=>{};dr.use=e=>TR=e,dr.now=typeof performance<"u"?()=>performance.now():Date.now,dr.batchedUpdates=e=>e(),dr.catch=console.error,dr.frameLoop="always",dr.advance=()=>{dr.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):m$()};var Rf=-1,Tf=0,MR=!1;function rC(e,t){MR?(t.delete(e),e(0)):(t.add(e),h$())}function h$(){Rf<0&&(Rf=0,dr.frameLoop!=="demand"&&TR(p$))}function M9e(){Rf=-1}function p$(){~Rf&&(TR(p$),dr.batchedUpdates(m$))}function m$(){const e=Rf;Rf=dr.now();const t=g$(Rf);if(t&&(E$(y1.splice(0,t),n=>n.handler()),Tf-=t),!Tf){M9e();return}xw.flush(),kR.flush(e?Math.min(64,Rf-e):16.667),DR.flush(),SR.flush(),RR.flush()}function oC(){let e=new Set,t=e;return{add(n){Tf+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Tf-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Tf-=t.size,E$(t,r=>r(n)&&e.add(r)),Tf+=e.size,t=e)}}}function E$(e,t){e.forEach(n=>{try{t(n)}catch(r){dr.catch(r)}})}var F9e=Object.defineProperty,N9e=(e,t)=>{for(var n in t)F9e(e,n,{get:t[n],enumerable:!0})},_c={};N9e(_c,{assign:()=>O9e,colors:()=>Mf,createStringInterpolator:()=>jR,skipAnimation:()=>C$,to:()=>I$,willAdvance:()=>OR});function FR(){}var j9e=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ut={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Y0(e,t){if(Ut.arr(e)){if(!Ut.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function _u(e,t,n){if(Ut.arr(e)){for(let r=0;rUt.und(e)?[]:Ut.arr(e)?e:[e];function iC(e,t){if(e.size){const n=Array.from(e);e.clear(),Ar(n,t)}}var AC=(e,...t)=>iC(e,n=>n(...t)),NR=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),jR,I$,Mf=null,C$=!1,OR=FR,O9e=e=>{e.to&&(I$=e.to),e.now&&(dr.now=e.now),e.colors!==void 0&&(Mf=e.colors),e.skipAnimation!=null&&(C$=e.skipAnimation),e.createStringInterpolator&&(jR=e.createStringInterpolator),e.requestAnimationFrame&&dr.use(e.requestAnimationFrame),e.batchedUpdates&&(dr.batchedUpdates=e.batchedUpdates),e.willAdvance&&(OR=e.willAdvance),e.frameLoop&&(dr.frameLoop=e.frameLoop)},sC=new Set,Fl=[],LR=[],_w=0,kw={get idle(){return!sC.size&&!Fl.length},start(e){_w>e.priority?(sC.add(e),dr.onStart(L9e)):(B$(e),dr(PR))},advance:PR,sort(e){if(_w)dr.onFrame(()=>kw.sort(e));else{const t=Fl.indexOf(e);~t&&(Fl.splice(t,1),y$(e))}},clear(){Fl=[],sC.clear()}};function L9e(){sC.forEach(B$),sC.clear(),dr(PR)}function B$(e){Fl.includes(e)||y$(e)}function y$(e){Fl.splice(P9e(Fl,t=>t.priority>e.priority),0,e)}function PR(e){const t=LR;for(let n=0;n0}function P9e(e,t){const n=e.findIndex(t);return n<0?e.length:n}var U9e={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},kc="[-+]?\\d*\\.?\\d+",Sw=kc+"%";function Dw(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var G9e=new RegExp("rgb"+Dw(kc,kc,kc)),H9e=new RegExp("rgba"+Dw(kc,kc,kc,kc)),Y9e=new RegExp("hsl"+Dw(kc,Sw,Sw)),z9e=new RegExp("hsla"+Dw(kc,Sw,Sw,kc)),J9e=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,W9e=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Z9e=/^#([0-9a-fA-F]{6})$/,X9e=/^#([0-9a-fA-F]{8})$/;function K9e(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Z9e.exec(e))?parseInt(t[1]+"ff",16)>>>0:Mf&&Mf[e]!==void 0?Mf[e]:(t=G9e.exec(e))?(v1(t[1])<<24|v1(t[2])<<16|v1(t[3])<<8|255)>>>0:(t=H9e.exec(e))?(v1(t[1])<<24|v1(t[2])<<16|v1(t[3])<<8|Q$(t[4]))>>>0:(t=J9e.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=X9e.exec(e))?parseInt(t[1],16)>>>0:(t=W9e.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Y9e.exec(e))?(v$(b$(t[1]),Rw(t[2]),Rw(t[3]))|255)>>>0:(t=z9e.exec(e))?(v$(b$(t[1]),Rw(t[2]),Rw(t[3]))|Q$(t[4]))>>>0:null}function UR(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function v$(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,A=2*n-r,i=UR(A,r,e+1/3),a=UR(A,r,e),c=UR(A,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(c*255)<<8}function v1(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function b$(e){return(parseFloat(e)%360+360)%360/360}function Q$(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Rw(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function w$(e){let t=K9e(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,A=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${A}, ${i})`}var aC=(e,t,n)=>{if(Ut.fun(e))return e;if(Ut.arr(e))return aC({range:e,output:t,extrapolate:n});if(Ut.str(e.output[0]))return jR(e);const r=e,A=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",f=r.easing||(h=>h);return h=>{const m=q9e(h,i);return V9e(h,i[m],i[m+1],A[m],A[m+1],f,a,c,r.map)}};function V9e(e,t,n,r,A,i,a,c,f){let h=f?f(e):e;if(hn){if(c==="identity")return h;c==="clamp"&&(h=n)}return r===A?r:t===n?e<=t?r:A:(t===-1/0?h=-h:n===1/0?h=h-t:h=(h-t)/(n-t),h=i(h),r===-1/0?h=-h:A===1/0?h=h+r:h=h*(A-r)+r,h)}function q9e(e,t){for(var n=1;n=e);++n);return n-1}var $9e={linear:e=>e},lC=Symbol.for("FluidValue.get"),b1=Symbol.for("FluidValue.observers"),Nl=e=>!!(e&&e[lC]),fa=e=>e&&e[lC]?e[lC]():e,x$=e=>e[b1]||null;function eFe(e,t){e.eventObserved?e.eventObserved(t):e(t)}function cC(e,t){const n=e[b1];n&&n.forEach(r=>{eFe(r,t)})}var _$=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");tFe(this,e)}},tFe=(e,t)=>k$(e,lC,t);function Q1(e,t){if(e[lC]){let n=e[b1];n||k$(e,b1,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function uC(e,t){const n=e[b1];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[b1]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var k$=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Tw=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,nFe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,S$=new RegExp(`(${Tw.source})(%|[a-z]+)`,"i"),rFe=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,D$=e=>{const[t,n]=oFe(e);if(!t||NR())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&Mw.test(n)?D$(n):n||e},oFe=e=>{const t=Mw.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},GR,iFe=(e,t,n,r,A)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${A})`,R$=e=>{GR||(GR=Mf?new RegExp(`(${Object.keys(Mf).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(A=>fa(A).replace(Mw,D$).replace(nFe,w$).replace(GR,w$)),n=t.map(A=>A.match(Tw).map(Number)),r=n[0].map((A,i)=>n.map(a=>{if(!(i in a))throw Error('The arity of each "output" value must be equal');return a[i]})).map(A=>aC({...e,output:A}));return A=>{var c;const i=!S$.test(t[0])&&((c=t.find(f=>S$.test(f)))==null?void 0:c.replace(Tw,""));let a=0;return t[0].replace(Tw,()=>`${r[a++](A)}${i||""}`).replace(rFe,iFe)}},HR="react-spring: ",T$=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${HR}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},AFe=T$(console.warn);function sFe(){AFe(`${HR}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var aFe=T$(console.warn);function lFe(){aFe(`${HR}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Fw(e){return Ut.str(e)&&(e[0]=="#"||/\d/.test(e)||!NR()&&Mw.test(e)||e in(Mf||{}))}var dh=NR()?b.useEffect:b.useLayoutEffect,cFe=()=>{const e=b.useRef(!1);return dh(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function YR(){const e=b.useState()[1],t=cFe();return()=>{t.current&&e(Math.random())}}function uFe(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),A=r.current;let i=A;return i?t&&i.inputs&&dFe(t,i.inputs)||(i={inputs:t,result:e()}):i=n,b.useEffect(()=>{r.current=i,A==n&&(n.inputs=n.result=void 0)},[i]),i.result}function dFe(e,t){if(e.length!==t.length)return!1;for(let n=0;nb.useEffect(e,fFe),fFe=[];function JR(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var dC=Symbol.for("Animated:node"),gFe=e=>!!e&&e[dC]===e,ku=e=>e&&e[dC],WR=(e,t)=>j9e(e,dC,t),Nw=e=>e&&e[dC]&&e[dC].getPayload(),M$=class{constructor(){WR(this,this)}getPayload(){return this.payload||[]}},fC=class extends M${constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ut.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new fC(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ut.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ut.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},gC=class extends fC{constructor(e){super(0),this._string=null,this._toString=aC({output:[e,e]})}static create(e){return new gC(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(Ut.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=aC({output:[this.getValue(),e]})),this._value=0,super.reset()}},jw={dependencies:null},Ow=class extends M${constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return _u(this.source,(n,r)=>{gFe(n)?t[r]=n.getValue(e):Nl(n)?t[r]=fa(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ar(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return _u(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){jw.dependencies&&Nl(e)&&jw.dependencies.add(e);const t=Nw(e);t&&Ar(t,n=>this.add(n))}},F$=class extends Ow{constructor(e){super(e)}static create(e){return new F$(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(hFe)),!0)}};function hFe(e){return(Fw(e)?gC:fC).create(e)}function ZR(e){const t=ku(e);return t?t.constructor:Ut.arr(e)?F$:Fw(e)?gC:fC}var N$=(e,t)=>{const n=!Ut.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,A)=>{const i=b.useRef(null),a=n&&b.useCallback(D=>{i.current=EFe(A,D)},[A]),[c,f]=mFe(r,t),h=YR(),m=()=>{const D=i.current;n&&!D||(D?t.applyAnimatedValues(D,c.getValue(!0)):!1)===!1&&h()},I=new pFe(m,f),v=b.useRef();dh(()=>(v.current=I,Ar(f,D=>Q1(D,I)),()=>{v.current&&(Ar(v.current.deps,D=>uC(D,v.current)),dr.cancel(v.current.update))})),b.useEffect(m,[]),zR(()=>()=>{const D=v.current;Ar(D.deps,R=>uC(R,D))});const k=t.getComponentProps(c.getValue());return b.createElement(e,{...k,ref:a})})},pFe=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&dr.write(this.update)}};function mFe(e,t){const n=new Set;return jw.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ow(e),jw.dependencies=null,[e,n]}function EFe(e,t){return e&&(Ut.fun(e)?e(t):e.current=t),t}var j$=Symbol.for("AnimatedComponent"),IFe=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=A=>new Ow(A),getComponentProps:r=A=>A}={})=>{const A={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=a=>{const c=O$(a)||"Anonymous";return Ut.str(a)?a=i[a]||(i[a]=N$(a,A)):a=a[j$]||(a[j$]=N$(a,A)),a.displayName=`Animated(${c})`,a};return _u(e,(a,c)=>{Ut.arr(e)&&(c=O$(a)),i[c]=i(a)}),{animated:i}},O$=e=>Ut.str(e)?e:e&&Ut.str(e.displayName)?e.displayName:Ut.fun(e)&&e.name||null;function ga(e,...t){return Ut.fun(e)?e(...t):e}var hC=(e,t)=>e===!0||!!(t&&e&&(Ut.fun(e)?e(t):Ys(e).includes(t))),L$=(e,t)=>Ut.obj(e)?t&&e[t]:e,P$=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,CFe=e=>e,Lw=(e,t=CFe)=>{let n=BFe;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const A of n){const i=t(e[A],A);Ut.und(i)||(r[A]=i)}return r},BFe=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yFe={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function vFe(e){const t={};let n=0;if(_u(e,(r,A)=>{yFe[A]||(t[A]=r,n++)}),n)return t}function XR(e){const t=vFe(e);if(t){const n={to:t};return _u(e,(r,A)=>A in t||(n[A]=r)),n}return{...e}}function pC(e){return e=fa(e),Ut.arr(e)?e.map(pC):Fw(e)?_c.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function U$(e){for(const t in e)return!0;return!1}function KR(e){return Ut.fun(e)||Ut.arr(e)&&Ut.obj(e[0])}function VR(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function G$(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var qR={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},$R={...qR.default,mass:1,damping:1,easing:$9e.linear,clamp:!1},bFe=class{constructor(){this.velocity=0,Object.assign(this,$R)}};function QFe(e,t,n){n&&(n={...n},H$(n,t),t={...n,...t}),H$(e,t),Object.assign(e,t);for(const a in $R)e[a]==null&&(e[a]=$R[a]);let{frequency:r,damping:A}=e;const{mass:i}=e;return Ut.und(r)||(r<.01&&(r=.01),A<0&&(A=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*A*i/r),e}function H$(e,t){if(!Ut.und(t.decay))e.duration=void 0;else{const n=!Ut.und(t.tension)||!Ut.und(t.friction);(n||!Ut.und(t.frequency)||!Ut.und(t.damping)||!Ut.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Y$=[],wFe=class{constructor(){this.changed=!1,this.values=Y$,this.toValues=null,this.fromValues=Y$,this.config=new bFe,this.immediate=!1}};function z$(e,{key:t,props:n,defaultProps:r,state:A,actions:i}){return new Promise((a,c)=>{let f,h,m=hC(n.cancel??(r==null?void 0:r.cancel),t);if(m)k();else{Ut.und(n.pause)||(A.paused=hC(n.pause,t));let D=r==null?void 0:r.pause;D!==!0&&(D=A.paused||hC(D,t)),f=ga(n.delay||0,t),D?(A.resumeQueue.add(v),i.pause()):(i.resume(),v())}function I(){A.resumeQueue.add(v),A.timeouts.delete(h),h.cancel(),f=h.time-dr.now()}function v(){f>0&&!_c.skipAnimation?(A.delayed=!0,h=dr.setTimeout(k,f),A.pauseQueue.add(I),A.timeouts.add(h)):k()}function k(){A.delayed&&(A.delayed=!1),A.pauseQueue.delete(I),A.timeouts.delete(h),e<=(A.cancelId||0)&&(m=!0);try{i.start({...n,callId:e,cancel:m},a)}catch(D){c(D)}}})}var eT=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?w1(e.get()):t.every(n=>n.noop)?J$(e.get()):Sc(e.get(),t.every(n=>n.finished)),J$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Sc=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),w1=e=>({value:e,cancelled:!0,finished:!1});function W$(e,t,n,r){const{callId:A,parentId:i,onRest:a}=t,{asyncTo:c,promise:f}=n;return!i&&e===c&&!t.reset?f:n.promise=(async()=>{n.asyncId=A,n.asyncTo=e;const h=Lw(t,(F,N)=>N==="onRest"?void 0:F);let m,I;const v=new Promise((F,N)=>(m=F,I=N)),k=F=>{const N=A<=(n.cancelId||0)&&w1(r)||A!==n.asyncId&&Sc(r,!1);if(N)throw F.result=N,I(F),F},D=(F,N)=>{const T=new Z$,P=new X$;return(async()=>{if(_c.skipAnimation)throw mC(n),P.result=Sc(r,!1),I(P),P;k(T);const G=Ut.obj(F)?{...F}:{...N,to:F};G.parentId=A,_u(h,(z,Z)=>{Ut.und(G[Z])&&(G[Z]=z)});const Y=await r.start(G);return k(T),n.paused&&await new Promise(z=>{n.resumeQueue.add(z)}),Y})()};let R;if(_c.skipAnimation)return mC(n),Sc(r,!1);try{let F;Ut.arr(e)?F=(async N=>{for(const T of N)await D(T)})(e):F=Promise.resolve(e(D,r.stop.bind(r))),await Promise.all([F.then(m),v]),R=Sc(r.get(),!0,!1)}catch(F){if(F instanceof Z$)R=F.result;else if(F instanceof X$)R=F.result;else throw F}finally{A==n.asyncId&&(n.asyncId=i,n.asyncTo=i?c:void 0,n.promise=i?f:void 0)}return Ut.fun(a)&&dr.batchedUpdates(()=>{a(R,r,r.item)}),R})()}function mC(e,t){iC(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Z$=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},X$=class extends Error{constructor(){super("SkipAnimationSignal")}},tT=e=>e instanceof nT,xFe=1,nT=class extends _${constructor(){super(...arguments),this.id=xFe++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ku(this);return e&&e.getValue()}to(...e){return _c.to(this,e)}interpolate(...e){return sFe(),_c.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){cC(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||kw.sort(this),cC(this,{type:"priority",parent:this,priority:e})}},fh=Symbol.for("SpringPhase"),K$=1,rT=2,oT=4,iT=e=>(e[fh]&K$)>0,Ff=e=>(e[fh]&rT)>0,EC=e=>(e[fh]&oT)>0,V$=(e,t)=>t?e[fh]|=rT|K$:e[fh]&=~rT,q$=(e,t)=>t?e[fh]|=oT:e[fh]&=~oT,_Fe=class extends nT{constructor(e,t){if(super(),this.animation=new wFe,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ut.und(e)||!Ut.und(t)){const n=Ut.obj(e)?{...e}:{...t,from:e};Ut.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ff(this)||this._state.asyncTo)||EC(this)}get goal(){return fa(this.animation.to)}get velocity(){const e=ku(this);return e instanceof fC?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return iT(this)}get isAnimating(){return Ff(this)}get isPaused(){return EC(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:A}=r;const{config:i}=r,a=Nw(r.to);!a&&Nl(r.to)&&(A=Ys(fa(r.to))),r.values.forEach((h,m)=>{if(h.done)return;const I=h.constructor==gC?1:a?a[m].lastPosition:A[m];let v=r.immediate,k=I;if(!v){if(k=h.lastPosition,i.tension<=0){h.done=!0;return}let D=h.elapsedTime+=e;const R=r.fromValues[m],F=h.v0!=null?h.v0:h.v0=Ut.arr(i.velocity)?i.velocity[m]:i.velocity;let N;const T=i.precision||(R==I?.005:Math.min(1,Math.abs(I-R)*.001));if(Ut.und(i.duration))if(i.decay){const P=i.decay===!0?.998:i.decay,G=Math.exp(-(1-P)*D);k=R+F/(1-P)*(1-G),v=Math.abs(h.lastPosition-k)<=T,N=F*G}else{N=h.lastVelocity==null?F:h.lastVelocity;const P=i.restVelocity||T/10,G=i.clamp?0:i.bounce,Y=!Ut.und(G),z=R==I?h.v0>0:RP,!(!Z&&(v=Math.abs(I-k)<=T,v)));++oe){Y&&(K=k==I||k>I==z,K&&(N=-N*G,k=I));const Be=-i.tension*1e-6*(k-I),he=-i.friction*.001*N,de=(Be+he)/i.mass;N=N+de*re,k=k+N*re}}else{let P=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,h.durationProgress>0&&(h.elapsedTime=i.duration*h.durationProgress,D=h.elapsedTime+=e)),P=(i.progress||0)+D/this._memoizedDuration,P=P>1?1:P<0?0:P,h.durationProgress=P),k=R+i.easing(P)*(I-R),N=(k-h.lastPosition)/e,v=P==1}h.lastVelocity=N,Number.isNaN(k)&&(console.warn("Got NaN while animating:",this),v=!0)}a&&!a[m].done&&(v=!1),v?h.done=!0:t=!1,h.setValue(k,i.round)&&(n=!0)});const c=ku(this),f=c.getValue();if(t){const h=fa(r.to);(f!==h||n)&&!i.decay?(c.setValue(h),this._onChange(h)):n&&i.decay&&this._onChange(f),this._stop()}else n&&this._onChange(f)}set(e){return dr.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ff(this)){const{to:e,config:t}=this.animation;dr.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ut.und(e)?(n=this.queue||[],this.queue=[]):n=[Ut.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>eT(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),mC(this._state,e&&this._lastCallId),dr.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ut.obj(n)?n[t]:n,(n==null||KR(n))&&(n=void 0),r=Ut.obj(r)?r[t]:r,r==null&&(r=void 0);const A={to:n,from:r};return iT(this)||(e.reverse&&([n,r]=[r,n]),r=fa(r),Ut.und(r)?ku(this)||this._set(n):this._set(r)),A}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Lw(e,(a,c)=>/^on/.test(c)?L$(a,n):a)),tee(this,e,"onProps"),BC(this,"onProps",e,this);const A=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return z$(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{EC(this)||(q$(this,!0),AC(i.pauseQueue),BC(this,"onPause",Sc(this,IC(this,this.animation.to)),this))},resume:()=>{EC(this)&&(q$(this,!1),Ff(this)&&this._resume(),AC(i.resumeQueue),BC(this,"onResume",Sc(this,IC(this,this.animation.to)),this))},start:this._merge.bind(this,A)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const c=$$(e);if(c)return this._update(c,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(w1(this));const r=!Ut.und(e.to),A=!Ut.und(e.from);if(r||A)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(w1(this));const{key:i,defaultProps:a,animation:c}=this,{to:f,from:h}=c;let{to:m=f,from:I=h}=e;A&&!r&&(!t.default||Ut.und(m))&&(m=I),t.reverse&&([m,I]=[I,m]);const v=!Y0(I,h);v&&(c.from=I),I=fa(I);const k=!Y0(m,f);k&&this._focus(m);const D=KR(t.to),{config:R}=c,{decay:F,velocity:N}=R;(r||A)&&(R.velocity=0),t.config&&!D&&QFe(R,ga(t.config,i),t.config!==a.config?ga(a.config,i):void 0);let T=ku(this);if(!T||Ut.und(m))return n(Sc(this,!0));const P=Ut.und(t.reset)?A&&!t.default:!Ut.und(I)&&hC(t.reset,i),G=P?I:this.get(),Y=pC(m),z=Ut.num(Y)||Ut.arr(Y)||Fw(Y),Z=!D&&(!z||hC(a.immediate||t.immediate,i));if(k){const oe=ZR(m);if(oe!==T.constructor)if(Z)T=this._set(Y);else throw Error(`Cannot animate between ${T.constructor.name} and ${oe.name}, as the "to" prop suggests`)}const K=T.constructor;let re=Nl(m),V=!1;if(!re){const oe=P||!iT(this)&&v;(k||oe)&&(V=Y0(pC(G),Y),re=!V),(!Y0(c.immediate,Z)&&!Z||!Y0(R.decay,F)||!Y0(R.velocity,N))&&(re=!0)}if(V&&Ff(this)&&(c.changed&&!P?re=!0:re||this._stop(f)),!D&&((re||Nl(f))&&(c.values=T.getPayload(),c.toValues=Nl(m)?null:K==gC?[1]:Ys(Y)),c.immediate!=Z&&(c.immediate=Z,!Z&&!P&&this._set(f)),re)){const{onRest:oe}=c;Ar(SFe,he=>tee(this,t,he));const Be=Sc(this,IC(this,f));AC(this._pendingCalls,Be),this._pendingCalls.add(n),c.changed&&dr.batchedUpdates(()=>{var he;c.changed=!P,oe==null||oe(Be,this),P?ga(a.onRest,Be):(he=c.onStart)==null||he.call(c,Be,this)})}P&&this._set(G),D?n(W$(t.to,t,this._state,this)):re?this._start():Ff(this)&&!k?this._pendingCalls.add(n):n(J$(G))}_focus(e){const t=this.animation;e!==t.to&&(x$(this)&&this._detach(),t.to=e,x$(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Nl(t)&&(Q1(t,this),tT(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Nl(e)&&uC(e,this)}_set(e,t=!0){const n=fa(e);if(!Ut.und(n)){const r=ku(this);if(!r||!Y0(n,r.getValue())){const A=ZR(n);!r||r.constructor!=A?WR(this,A.create(n)):r.setValue(n),r&&dr.batchedUpdates(()=>{this._onChange(n,t)})}}return ku(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,BC(this,"onStart",Sc(this,IC(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ga(this.animation.onChange,e,this)),ga(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ku(this).reset(fa(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ff(this)||(V$(this,!0),EC(this)||this._resume())}_resume(){_c.skipAnimation?this.finish():kw.start(this)}_stop(e,t){if(Ff(this)){V$(this,!1);const n=this.animation;Ar(n.values,A=>{A.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),cC(this,{type:"idle",parent:this});const r=t?w1(this.get()):Sc(this.get(),IC(this,e??n.to));AC(this._pendingCalls,r),n.changed&&(n.changed=!1,BC(this,"onRest",r,this))}}};function IC(e,t){const n=pC(t),r=pC(e.get());return Y0(r,n)}function $$(e,t=e.loop,n=e.to){const r=ga(t);if(r){const A=r!==!0&&XR(r),i=(A||e).reverse,a=!A||A.reset;return CC({...e,loop:t,default:!1,pause:void 0,to:!i||KR(n)?n:void 0,from:a?e.from:void 0,reset:a,...A})}}function CC(e){const{to:t,from:n}=e=XR(e),r=new Set;return Ut.obj(t)&&eee(t,r),Ut.obj(n)&&eee(n,r),e.keys=r.size?Array.from(r):null,e}function kFe(e){const t=CC(e);return Ut.und(t.default)&&(t.default=Lw(t)),t}function eee(e,t){_u(e,(n,r)=>n!=null&&t.add(r))}var SFe=["onStart","onRest","onChange","onPause","onResume"];function tee(e,t,n){e.animation[n]=t[n]!==P$(t,n)?L$(t[n],e.key):void 0}function BC(e,t,...n){var r,A,i,a;(A=(r=e.animation)[t])==null||A.call(r,...n),(a=(i=e.defaultProps)[t])==null||a.call(i,...n)}var DFe=["onStart","onChange","onRest"],RFe=1,nee=class{constructor(e,t){this.id=RFe++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];Ut.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(CC(e)),this}start(e){let{queue:t}=this;return e?t=Ys(e).map(CC):this.queue=[],this._flush?this._flush(this,t):(see(this,t),AT(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ar(Ys(t),r=>n[r].stop(!!e))}else mC(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(Ut.und(e))this.start({pause:!0});else{const t=this.springs;Ar(Ys(e),n=>t[n].pause())}return this}resume(e){if(Ut.und(e))this.start({pause:!1});else{const t=this.springs;Ar(Ys(e),n=>t[n].resume())}return this}each(e){_u(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,A=this._changed.size>0;(r&&!this._started||A&&!this._started)&&(this._started=!0,iC(e,([c,f])=>{f.value=this.get(),c(f,this,this._item)}));const i=!r&&this._started,a=A||i&&n.size?this.get():null;A&&t.size&&iC(t,([c,f])=>{f.value=a,c(f,this,this._item)}),i&&(this._started=!1,iC(n,([c,f])=>{f.value=a,c(f,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;dr.onFrame(this._onFrame)}};function AT(e,t){return Promise.all(t.map(n=>ree(e,n))).then(n=>eT(e,n))}async function ree(e,t,n){const{keys:r,to:A,from:i,loop:a,onRest:c,onResolve:f}=t,h=Ut.obj(t.default)&&t.default;a&&(t.loop=!1),A===!1&&(t.to=null),i===!1&&(t.from=null);const m=Ut.arr(A)||Ut.fun(A)?A:void 0;m?(t.to=void 0,t.onRest=void 0,h&&(h.onRest=void 0)):Ar(DFe,R=>{const F=t[R];if(Ut.fun(F)){const N=e._events[R];t[R]=({finished:T,cancelled:P})=>{const G=N.get(F);G?(T||(G.finished=!1),P&&(G.cancelled=!0)):N.set(F,{value:null,finished:T||!1,cancelled:P||!1})},h&&(h[R]=t[R])}});const I=e._state;t.pause===!I.paused?(I.paused=t.pause,AC(t.pause?I.pauseQueue:I.resumeQueue)):I.paused&&(t.pause=!0);const v=(r||Object.keys(e.springs)).map(R=>e.springs[R].start(t)),k=t.cancel===!0||P$(t,"cancel")===!0;(m||k&&I.asyncId)&&v.push(z$(++e._lastAsyncId,{props:t,state:I,actions:{pause:FR,resume:FR,start(R,F){k?(mC(I,e._lastAsyncId),F(w1(e))):(R.onRest=c,F(W$(m,R,I,e)))}}})),I.paused&&await new Promise(R=>{I.resumeQueue.add(R)});const D=eT(e,await Promise.all(v));if(a&&D.finished&&!(n&&D.noop)){const R=$$(t,a,A);if(R)return see(e,[R]),ree(e,R,!0)}return f&&dr.batchedUpdates(()=>f(D,e,e.item)),D}function sT(e,t){const n={...e.springs};return t&&Ar(Ys(t),r=>{Ut.und(r.keys)&&(r=CC(r)),Ut.obj(r.to)||(r={...r,to:void 0}),Aee(n,r,A=>iee(A))}),oee(e,n),n}function oee(e,t){_u(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Q1(n,e))})}function iee(e,t){const n=new _Fe;return n.key=e,t&&Q1(n,t),n}function Aee(e,t,n){t.keys&&Ar(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function see(e,t){Ar(t,n=>{Aee(e.springs,n,r=>iee(r,e))})}var yC=({children:e,...t})=>{const n=b.useContext(Pw),r=t.pause||!!n.pause,A=t.immediate||!!n.immediate;t=uFe(()=>({pause:r,immediate:A}),[r,A]);const{Provider:i}=Pw;return b.createElement(i,{value:t},e)},Pw=TFe(yC,{});yC.Provider=Pw.Provider,yC.Consumer=Pw.Consumer;function TFe(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var aee=()=>{const e=[],t=function(r){lFe();const A=[];return Ar(e,(i,a)=>{if(Ut.und(r))A.push(i.start());else{const c=n(r,i,a);c&&A.push(i.start(c))}}),A};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const A=e.indexOf(r);~A&&e.splice(A,1)},t.pause=function(){return Ar(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ar(e,r=>r.resume(...arguments)),this},t.set=function(r){Ar(e,(A,i)=>{const a=Ut.fun(r)?r(i,A):r;a&&A.set(a)})},t.start=function(r){const A=[];return Ar(e,(i,a)=>{if(Ut.und(r))A.push(i.start());else{const c=this._getProps(r,i,a);c&&A.push(i.start(c))}}),A},t.stop=function(){return Ar(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ar(e,(A,i)=>A.update(this._getProps(r,A,i))),this};const n=function(r,A,i){return Ut.fun(r)?r(i,A):r};return t._getProps=n,t};function MFe(e,t,n){const r=Ut.fun(t)&&t;r&&!n&&(n=[]);const A=b.useMemo(()=>r||arguments.length==3?aee():void 0,[]),i=b.useRef(0),a=YR(),c=b.useMemo(()=>({ctrls:[],queue:[],flush(N,T){const P=sT(N,T);return i.current>0&&!c.queue.length&&!Object.keys(P).some(G=>!N.springs[G])?AT(N,T):new Promise(G=>{oee(N,P),c.queue.push(()=>{G(AT(N,T))}),a()})}}),[]),f=b.useRef([...c.ctrls]),h=[],m=JR(e)||0;b.useMemo(()=>{Ar(f.current.slice(e,m),N=>{VR(N,A),N.stop(!0)}),f.current.length=e,I(m,e)},[e]),b.useMemo(()=>{I(0,Math.min(m,e))},n);function I(N,T){for(let P=N;PsT(N,h[T])),k=b.useContext(yC),D=JR(k),R=k!==D&&U$(k);dh(()=>{i.current++,c.ctrls=f.current;const{queue:N}=c;N.length&&(c.queue=[],Ar(N,T=>T())),Ar(f.current,(T,P)=>{A==null||A.add(T),R&&T.start({default:k});const G=h[P];G&&(G$(T,G.ref),T.ref?T.queue.push(G):T.start(G))})}),zR(()=>()=>{Ar(c.ctrls,N=>N.stop(!0))});const F=v.map(N=>({...N}));return A?[F,A]:F}function vC(e,t){const n=Ut.fun(e),[[r],A]=MFe(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,A]:r}function aT(e,t,n){const r=Ut.fun(t)&&t,{reset:A,sort:i,trail:a=0,expires:c=!0,exitBeforeEnter:f=!1,onDestroyed:h,ref:m,config:I}=r?r():t,v=b.useMemo(()=>r||arguments.length==3?aee():void 0,[]),k=Ys(e),D=[],R=b.useRef(null),F=A?null:R.current;dh(()=>{R.current=D}),zR(()=>(Ar(D,de=>{v==null||v.add(de.ctrl),de.ctrl.ref=v}),()=>{Ar(R.current,de=>{de.expired&&clearTimeout(de.expirationId),VR(de.ctrl,v),de.ctrl.stop(!0)})}));const N=NFe(k,r?r():t,F),T=A&&R.current||[];dh(()=>Ar(T,({ctrl:de,item:me,key:Ae})=>{VR(de,v),ga(h,me,Ae)}));const P=[];if(F&&Ar(F,(de,me)=>{de.expired?(clearTimeout(de.expirationId),T.push(de)):(me=P[me]=N.indexOf(de.key),~me&&(D[me]=de))}),Ar(k,(de,me)=>{D[me]||(D[me]={key:N[me],item:de,phase:"mount",ctrl:new nee},D[me].ctrl.item=de)}),P.length){let de=-1;const{leave:me}=r?r():t;Ar(P,(Ae,Ce)=>{const ae=F[Ce];~Ae?(de=D.indexOf(ae),D[de]={...ae,item:k[Ae]}):me&&D.splice(++de,0,ae)})}Ut.fun(i)&&D.sort((de,me)=>i(de.item,me.item));let G=-a;const Y=YR(),z=Lw(t),Z=new Map,K=b.useRef(new Map),re=b.useRef(!1);Ar(D,(de,me)=>{const Ae=de.key,Ce=de.phase,ae=r?r():t;let fe,ye;const Oe=ga(ae.delay||0,Ae);if(Ce=="mount")fe=ae.enter,ye="enter";else{const Ze=N.indexOf(Ae)<0;if(Ce!="leave")if(Ze)fe=ae.leave,ye="leave";else if(fe=ae.update)ye="update";else return;else if(!Ze)fe=ae.enter,ye="enter";else return}if(fe=ga(fe,de.item,me),fe=Ut.obj(fe)?XR(fe):{to:fe},!fe.config){const Ze=I||z.config;fe.config=ga(Ze,de.item,me,ye)}G+=a;const Ie={...z,delay:Oe+G,ref:m,immediate:ae.immediate,reset:!1,...fe};if(ye=="enter"&&Ut.und(Ie.from)){const Ze=r?r():t,Te=Ut.und(Ze.initial)||F?Ze.from:Ze.initial;Ie.from=ga(Te,de.item,me)}const{onResolve:Fe}=Ie;Ie.onResolve=Ze=>{ga(Fe,Ze);const Te=R.current,De=Te.find(Se=>Se.key===Ae);if(De&&!(Ze.cancelled&&De.phase!="update")&&De.ctrl.idle){const Se=Te.every(Qe=>Qe.ctrl.idle);if(De.phase=="leave"){const Qe=ga(c,De.item);if(Qe!==!1){const Ye=Qe===!0?0:Qe;if(De.expired=!0,!Se&&Ye>0){Ye<=2147483647&&(De.expirationId=setTimeout(Y,Ye));return}}}Se&&Te.some(Qe=>Qe.expired)&&(K.current.delete(De),f&&(re.current=!0),Y())}};const qe=sT(de.ctrl,Ie);ye==="leave"&&f?K.current.set(de,{phase:ye,springs:qe,payload:Ie}):Z.set(de,{phase:ye,springs:qe,payload:Ie})});const V=b.useContext(yC),oe=JR(V),Be=V!==oe&&U$(V);dh(()=>{Be&&Ar(D,de=>{de.ctrl.start({default:V})})},[V]),Ar(Z,(de,me)=>{if(K.current.size){const Ae=D.findIndex(Ce=>Ce.key===me.key);D.splice(Ae,1)}}),dh(()=>{Ar(K.current.size?K.current:Z,({phase:de,payload:me},Ae)=>{const{ctrl:Ce}=Ae;Ae.phase=de,v==null||v.add(Ce),Be&&de=="enter"&&Ce.start({default:V}),me&&(G$(Ce,me.ref),(Ce.ref||v)&&!re.current?Ce.update(me):(Ce.start(me),re.current&&(re.current=!1)))})},A?void 0:n);const he=de=>b.createElement(b.Fragment,null,D.map((me,Ae)=>{const{springs:Ce}=Z.get(me)||me.ctrl,ae=de({...Ce},me.item,me,Ae);return ae&&ae.type?b.createElement(ae.type,{...ae.props,key:Ut.str(me.key)||Ut.num(me.key)?me.key:me.ctrl.id,ref:ae.ref}):ae}));return v?[he,v]:he}var FFe=1;function NFe(e,{key:t,keys:n=t},r){if(n===null){const A=new Set;return e.map(i=>{const a=r&&r.find(c=>c.item===i&&c.phase!=="leave"&&!A.has(c));return a?(A.add(a),a.key):FFe++})}return Ut.und(n)?e:Ut.fun(n)?e.map(n):Ys(n)}var lee=class extends nT{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=aC(...t);const n=this._get(),r=ZR(n);WR(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Y0(t,n)||(ku(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&cee(this._active)&&lT(this)}_get(){const e=Ut.arr(this.source)?this.source.map(fa):Ys(fa(this.source));return this.calc(...e)}_start(){this.idle&&!cee(this._active)&&(this.idle=!1,Ar(Nw(this),e=>{e.done=!1}),_c.skipAnimation?(dr.batchedUpdates(()=>this.advance()),lT(this)):kw.start(this))}_attach(){let e=1;Ar(Ys(this.source),t=>{Nl(t)&&Q1(t,this),tT(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ar(Ys(this.source),e=>{Nl(e)&&uC(e,this)}),this._active.clear(),lT(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ys(this.source).reduce((t,n)=>Math.max(t,(tT(n)?n.priority:0)+1),0))}};function jFe(e){return e.idle!==!1}function cee(e){return!e.size||Array.from(e).every(jFe)}function lT(e){e.idle||(e.idle=!0,Ar(Nw(e),t=>{t.done=!0}),cC(e,{type:"idle",parent:e}))}var bC=(e,...t)=>new lee(e,t);_c.assign({createStringInterpolator:R$,to:(e,t)=>new lee(e,t)});var uee=/^--/;function OFe(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!uee.test(e)&&!(QC.hasOwnProperty(e)&&QC[e])?t+"px":(""+t).trim()}var dee={};function LFe(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:A,children:i,scrollTop:a,scrollLeft:c,viewBox:f,...h}=t,m=Object.values(h),I=Object.keys(h).map(v=>n||e.hasAttribute(v)?v:dee[v]||(dee[v]=v.replace(/([A-Z])/g,k=>"-"+k.toLowerCase())));i!==void 0&&(e.textContent=i);for(const v in A)if(A.hasOwnProperty(v)){const k=OFe(v,A[v]);uee.test(v)?e.style.setProperty(v,k):e.style[v]=k}I.forEach((v,k)=>{e.setAttribute(v,m[k])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),c!==void 0&&(e.scrollLeft=c),f!==void 0&&e.setAttribute("viewBox",f)}var QC={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},PFe=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),UFe=["Webkit","Ms","Moz","O"];QC=Object.keys(QC).reduce((e,t)=>(UFe.forEach(n=>e[PFe(n,t)]=e[t]),e),QC);var GFe=/^(matrix|translate|scale|rotate|skew)/,HFe=/^(translate)/,YFe=/^(rotate|skew)/,cT=(e,t)=>Ut.num(e)&&e!==0?e+t:e,Uw=(e,t)=>Ut.arr(e)?e.every(n=>Uw(n,t)):Ut.num(e)?e===t:parseFloat(e)===t,zFe=class extends Ow{constructor({x:e,y:t,z:n,...r}){const A=[],i=[];(e||t||n)&&(A.push([e||0,t||0,n||0]),i.push(a=>[`translate3d(${a.map(c=>cT(c,"px")).join(",")})`,Uw(a,0)])),_u(r,(a,c)=>{if(c==="transform")A.push([a||""]),i.push(f=>[f,f===""]);else if(GFe.test(c)){if(delete r[c],Ut.und(a))return;const f=HFe.test(c)?"px":YFe.test(c)?"deg":"";A.push(Ys(a)),i.push(c==="rotate3d"?([h,m,I,v])=>[`rotate3d(${h},${m},${I},${cT(v,f)})`,Uw(v,0)]:h=>[`${c}(${h.map(m=>cT(m,f)).join(",")})`,Uw(h,c.startsWith("scale")?1:0)])}}),A.length&&(r.transform=new JFe(A,i)),super(r)}},JFe=class extends _${constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ar(this.inputs,(n,r)=>{const A=fa(n[0]),[i,a]=this.transforms[r](Ut.arr(A)?A:n.map(fa));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Ar(this.inputs,t=>Ar(t,n=>Nl(n)&&Q1(n,this)))}observerRemoved(e){e==0&&Ar(this.inputs,t=>Ar(t,n=>Nl(n)&&uC(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),cC(this,e)}},WFe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];_c.assign({batchedUpdates:fu.unstable_batchedUpdates,createStringInterpolator:R$,colors:U9e});var ZFe=IFe(WFe,{applyAnimatedValues:LFe,createAnimatedStyle:e=>new zFe(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Dc=ZFe.animated;function XFe(){const e=we(vu);if(!e)return;const t=e.downloading_full_snapshot_throughput?`${uh(e.downloading_full_snapshot_throughput).toString()}/s`:"-";return p.jsxs(xe,{children:[p.jsx(H0,{label:"Peer",value:e.downloading_full_snapshot_peer}),p.jsx(H0,{label:"Slot",value:e.downloading_full_snapshot_slot}),p.jsx(H0,{label:"Throughput",value:t})]})}function KFe(){const e=we(vu);return e?p.jsx(H0,{label:"Slot",value:e.waiting_for_supermajority_slot}):null}function VFe(){const e=we(vu);return e?p.jsx(af,{value:e.waiting_for_supermajority_stake_percent||0,className:ww.progress}):null}function qFe(){const e=we(vu);if(!e)return;const t=e.downloading_incremental_snapshot_throughput?`${uh(e.downloading_incremental_snapshot_throughput).toString()}/s`:"-";return p.jsxs(xe,{children:[p.jsx(H0,{label:"Peer",value:e.downloading_incremental_snapshot_peer}),p.jsx(H0,{label:"Slot",value:e.downloading_incremental_snapshot_slot}),p.jsx(H0,{label:"Throughput",value:t})]})}const fee=[{step:"initializing"},{step:"searching_for_full_snapshot"},{step:"downloading_full_snapshot",rightChildren:p.jsx(R9e,{}),bottomChildren:p.jsx(XFe,{})},{step:"searching_for_incremental_snapshot"},{step:"downloading_incremental_snapshot",rightChildren:p.jsx(T9e,{}),bottomChildren:p.jsx(qFe,{})},{step:"cleaning_blockstore"},{step:"cleaning_accounts"},{step:"loading_ledger"},{step:"processing_ledger",bottomChildren:p.jsx(_9e,{})},{step:"starting_services"},{step:"waiting_for_supermajority",rightChildren:p.jsx(VFe,{}),bottomChildren:p.jsx(KFe,{}),optional:!0},{step:"running"}];function $Fe(){const e=we(qi),t=we(vu),[n,r]=Cc(Ml),A=we(xu),i=!!Object.values(A).length,[a,c]=b.useState();b.useEffect(()=>{(t==null?void 0:t.phase)!=="running"&&r(!0),c(v=>t?t.phase==="running":v)},[r,t]);const f=a===!0||a===void 0;b.useEffect(()=>{i&&(t==null?void 0:t.phase)==="running"&&r(!1)},[i,r,n,t==null?void 0:t.phase]);const h=Math.max(0,fee.findIndex(({step:v})=>v===(t==null?void 0:t.phase))),[m,I]=vC(()=>({from:{opacity:n?1:0,zIndex:n?1:-1}}));return b.useEffect(()=>{I.stop(),n?I.start({from:{opacity:1,zIndex:1}}):I.start({from:{opacity:1,zIndex:1},to:{opacity:0,zIndex:-1}})},[I,n]),p.jsx(Dc.div,{className:_Z.outerContainer,style:m,children:p.jsxs(xe,{direction:"column",gap:"4",className:_Z.innerContainer,children:[p.jsx(rr,{flexGrow:"1"}),p.jsx("img",{src:e===Ci.Firedancer?i$:h9e,alt:"fd",height:"50px",style:{marginBottom:"28px"}}),fee.map(({step:v,rightChildren:k,bottomChildren:D,optional:R},F)=>{if(R&&v!==(t==null?void 0:t.phase))return null;const N=e7e(v);return F===h?p.jsx(B9e,{label:N,hide:f,rightChildren:k,bottomChildren:D},v):Ft!==void 0).map((t,n)=>t==="for"?t:t==="rpc"?"RPC":(n===0?t[0].toUpperCase():t[0])+t.slice(1)).join(" ")}const t7e="_container_e8h4h_1",n7e="_blur_e8h4h_4",gee={container:t7e,blur:n7e};function hee(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var A=e.length;for(t=0;tm7e(e||null),{maxSize:1e3}),E7e="_hide_1etvv_1",Eee={hide:E7e};function jl({url:e,size:t,hideFallback:n,hideTooltip:r=!1,isYou:A}){const[i,a]=Cc(mee(e)),[c,f]=b.useState(i),[h,m]=b.useState(!1),I={width:`${t}px`,height:`${t}px`};if(!e||c){if(n)return p.jsx("div",{style:I});if(A){const k=p.jsx("img",{src:p7e,style:I});return r?k:p.jsx(Ei,{content:"Your current validator",children:k})}return p.jsx("img",{src:pee,alt:"private",style:I})}const v=()=>{a(),f(!0)};return p.jsxs(p.Fragment,{children:[p.jsx("img",{className:xt({[Eee.hide]:!h}),style:I,onError:v,onLoad:()=>m(!0),src:e}),p.jsx("img",{className:xt({[Eee.hide]:h}),style:I,src:pee,alt:"private"})]})}const uT=_f((e,t,n)=>new Intl.NumberFormat(void 0,{minimumFractionDigits:n?e:0,maximumFractionDigits:e,minimumSignificantDigits:!n&&t?1:t,maximumSignificantDigits:t}),{maxSize:100});function dT(e,t){const{trailingZeroes:n=!0,decimalsOnZero:r=!1}=t;if(e===0&&!r)return"0";let A;if("decimals"in t){const c=typeof t.decimals=="function"?t.decimals(e):t.decimals;A=uT(c,void 0,n)}else{const{significantDigits:c,exactIntegers:f}=t;f&&Math.abs(e)>Math.pow(10,c)?A=uT(0,void 0,n):A=uT(void 0,c||1,n)}let i="";t.useSuffix&&([e,i]=I7e(e));const a=A.format(e);return a==="-0"?"0":a+i}function I7e(e){if(isFinite(e)){const t=Math.abs(e);if(t>=1e12)return[e/1e12,"T"];if(t>=1e9)return[e/1e9,"B"];if(t>=1e6)return[e/1e6,"M"];if(t>=1e3)return[e/1e3,"K"]}return[e,""]}const C7e=Intl.NumberFormat(void 0,{notation:"compact",compactDisplay:"short",maximumFractionDigits:0}),fT=Intl.NumberFormat(void 0,{notation:"compact",compactDisplay:"short",minimumFractionDigits:1,maximumFractionDigits:1});function B7e(){var e=b.useRef(!0);return e.current?(e.current=!1,!0):e.current}var Iee=function(){};function y7e(e){for(var t=[],n=1;ni.preventDefault(),children:t})})]})}function xee(e){const t=we(iZ),n=Cee();if(z0(n,e),!!t)return WI.diff(Gn.fromMillis(Math.trunc(Number(t.startupTimeNanos)/1e6))).rescale()}function k1(e,t,n,r){var A=this,i=b.useRef(null),a=b.useRef(0),c=b.useRef(0),f=b.useRef(null),h=b.useRef([]),m=b.useRef(),I=b.useRef(),v=b.useRef(e),k=b.useRef(!0);v.current=e;var D=typeof window<"u",R=!t&&t!==0&&D;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var F=!!(n=n||{}).leading,N=!("trailing"in n)||!!n.trailing,T="maxWait"in n,P="debounceOnServer"in n&&!!n.debounceOnServer,G=T?Math.max(+n.maxWait||0,t):null;b.useEffect(function(){return k.current=!0,function(){k.current=!1}},[]);var Y=b.useMemo(function(){var z=function(he){var de=h.current,me=m.current;return h.current=m.current=null,a.current=he,c.current=c.current||he,I.current=v.current.apply(me,de)},Z=function(he,de){R&&cancelAnimationFrame(f.current),f.current=R?requestAnimationFrame(he):setTimeout(he,de)},K=function(he){if(!k.current)return!1;var de=he-i.current;return!i.current||de>=t||de<0||T&&he-a.current>=G},re=function(he){return f.current=null,N&&h.current?z(he):(h.current=m.current=null,I.current)},V=function he(){var de=Date.now();if(F&&c.current===a.current&&oe(),K(de))return re(de);if(k.current){var me=t-(de-i.current),Ae=T?Math.min(me,G-(de-a.current)):me;Z(he,Ae)}},oe=function(){r&&r({})},Be=function(){if(D||P){var he=Date.now(),de=K(he);if(h.current=[].slice.call(arguments),m.current=A,i.current=he,de){if(!f.current&&k.current)return a.current=i.current,Z(V,t),F?z(i.current):I.current;if(T)return Z(V,t),z(i.current)}return f.current||Z(V,t),I.current}};return Be.cancel=function(){var he=f.current;he&&(R?cancelAnimationFrame(f.current):clearTimeout(f.current)),a.current=0,h.current=i.current=m.current=f.current=null,he&&r&&r({})},Be.isPending=function(){return!!f.current},Be.flush=function(){return f.current?re(Date.now()):I.current},Be},[F,T,t,G,N,R,D,P,r]);return Y}function O7e(e,t){return e===t}function _ee(e,t,n){var r=n&&n.equalityFn||O7e,A=b.useRef(e),i=b.useState({})[1],a=k1(b.useCallback(function(f){A.current=f,i({})},[i]),t,n,i),c=b.useRef(e);return r(c.current,e)||(a(e),c.current=e),[A.current,a]}function ha(e,t,n){var r=n===void 0?{}:n,A=r.leading,i=r.trailing;return k1(e,t,{maxWait:t,leading:A===void 0||A,trailing:i===void 0||i})}function Ti(e,t){if(e==null)return{};var n={},r=Object.keys(e),A,i;for(i=0;i=0)&&(n[A]=e[A]);return n}var L7e=["color"],kee=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,L7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M7.5 2C7.77614 2 8 2.22386 8 2.5L8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.75979 12.9473 7.63261 13 7.5 13C7.36739 13 7.24021 12.9473 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 2.5C7 2.22386 7.22386 2 7.5 2Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),P7e=["color"],See=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,P7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M7.14645 2.14645C7.34171 1.95118 7.65829 1.95118 7.85355 2.14645L11.8536 6.14645C12.0488 6.34171 12.0488 6.65829 11.8536 6.85355C11.6583 7.04882 11.3417 7.04882 11.1464 6.85355L8 3.70711L8 12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 3.70711L3.85355 6.85355C3.65829 7.04882 3.34171 7.04882 3.14645 6.85355C2.95118 6.65829 2.95118 6.34171 3.14645 6.14645L7.14645 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),U7e=["color"],pT=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,U7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M4.18179 6.18181C4.35753 6.00608 4.64245 6.00608 4.81819 6.18181L7.49999 8.86362L10.1818 6.18181C10.3575 6.00608 10.6424 6.00608 10.8182 6.18181C10.9939 6.35755 10.9939 6.64247 10.8182 6.81821L7.81819 9.81821C7.73379 9.9026 7.61934 9.95001 7.49999 9.95001C7.38064 9.95001 7.26618 9.9026 7.18179 9.81821L4.18179 6.81821C4.00605 6.64247 4.00605 6.35755 4.18179 6.18181Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),G7e=["color"],mT=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,G7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M4.18179 8.81819C4.00605 8.64245 4.00605 8.35753 4.18179 8.18179L7.18179 5.18179C7.26618 5.0974 7.38064 5.04999 7.49999 5.04999C7.61933 5.04999 7.73379 5.0974 7.81819 5.18179L10.8182 8.18179C10.9939 8.35753 10.9939 8.64245 10.8182 8.81819C10.6424 8.99392 10.3575 8.99392 10.1818 8.81819L7.49999 6.13638L4.81819 8.81819C4.64245 8.99392 4.35753 8.99392 4.18179 8.81819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),H7e=["color"],Y7e=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,H7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),z7e=["color"],J7e=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,z7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),W7e=["color"],Z7e=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,W7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),X7e=["color"],K7e=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,X7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M1 9.50006C1 10.3285 1.67157 11.0001 2.5 11.0001H4L4 10.0001H2.5C2.22386 10.0001 2 9.7762 2 9.50006L2 2.50006C2 2.22392 2.22386 2.00006 2.5 2.00006L9.5 2.00006C9.77614 2.00006 10 2.22392 10 2.50006V4.00002H5.5C4.67158 4.00002 4 4.67159 4 5.50002V12.5C4 13.3284 4.67158 14 5.5 14H12.5C13.3284 14 14 13.3284 14 12.5V5.50002C14 4.67159 13.3284 4.00002 12.5 4.00002H11V2.50006C11 1.67163 10.3284 1.00006 9.5 1.00006H2.5C1.67157 1.00006 1 1.67163 1 2.50006V9.50006ZM5 5.50002C5 5.22388 5.22386 5.00002 5.5 5.00002H12.5C12.7761 5.00002 13 5.22388 13 5.50002V12.5C13 12.7762 12.7761 13 12.5 13H5.5C5.22386 13 5 12.7762 5 12.5V5.50002Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),V7e=["color"],q7e=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,V7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M13.15 7.49998C13.15 4.66458 10.9402 1.84998 7.50002 1.84998C4.72167 1.84998 3.34849 3.9064 2.76335 5H4.5C4.77614 5 5 5.22386 5 5.5C5 5.77614 4.77614 6 4.5 6H1.5C1.22386 6 1 5.77614 1 5.5V2.5C1 2.22386 1.22386 2 1.5 2C1.77614 2 2 2.22386 2 2.5V4.31318C2.70453 3.07126 4.33406 0.849976 7.50002 0.849976C11.5628 0.849976 14.15 4.18537 14.15 7.49998C14.15 10.8146 11.5628 14.15 7.50002 14.15C5.55618 14.15 3.93778 13.3808 2.78548 12.2084C2.16852 11.5806 1.68668 10.839 1.35816 10.0407C1.25306 9.78536 1.37488 9.49315 1.63024 9.38806C1.8856 9.28296 2.17781 9.40478 2.2829 9.66014C2.56374 10.3425 2.97495 10.9745 3.4987 11.5074C4.47052 12.4963 5.83496 13.15 7.50002 13.15C10.9402 13.15 13.15 10.3354 13.15 7.49998ZM7.5 4.00001C7.77614 4.00001 8 4.22387 8 4.50001V7.29291L9.85355 9.14646C10.0488 9.34172 10.0488 9.65831 9.85355 9.85357C9.65829 10.0488 9.34171 10.0488 9.14645 9.85357L7.14645 7.85357C7.05268 7.7598 7 7.63262 7 7.50001V4.50001C7 4.22387 7.22386 4.00001 7.5 4.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$7e=["color"],ET=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,$7e);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M12.8536 2.85355C13.0488 2.65829 13.0488 2.34171 12.8536 2.14645C12.6583 1.95118 12.3417 1.95118 12.1464 2.14645L7.5 6.79289L2.85355 2.14645C2.65829 1.95118 2.34171 1.95118 2.14645 2.14645C1.95118 2.34171 1.95118 2.65829 2.14645 2.85355L6.79289 7.5L2.14645 12.1464C1.95118 12.3417 1.95118 12.6583 2.14645 12.8536C2.34171 13.0488 2.65829 13.0488 2.85355 12.8536L7.5 8.20711L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L8.20711 7.5L12.8536 2.85355Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),eNe=["color"],tNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,eNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),nNe=["color"],rNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,nNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M11.1464 6.85355C11.3417 7.04882 11.6583 7.04882 11.8536 6.85355C12.0488 6.65829 12.0488 6.34171 11.8536 6.14645L7.85355 2.14645C7.65829 1.95118 7.34171 1.95118 7.14645 2.14645L3.14645 6.14645C2.95118 6.34171 2.95118 6.65829 3.14645 6.85355C3.34171 7.04882 3.65829 7.04882 3.85355 6.85355L7.5 3.20711L11.1464 6.85355ZM11.1464 12.8536C11.3417 13.0488 11.6583 13.0488 11.8536 12.8536C12.0488 12.6583 12.0488 12.3417 11.8536 12.1464L7.85355 8.14645C7.65829 7.95118 7.34171 7.95118 7.14645 8.14645L3.14645 12.1464C2.95118 12.3417 2.95118 12.6583 3.14645 12.8536C3.34171 13.0488 3.65829 13.0488 3.85355 12.8536L7.5 9.20711L11.1464 12.8536Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),oNe=["color"],iNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,oNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ANe=["color"],sNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,ANe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),aNe=["color"],Dee=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,aNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),lNe=["color"],Ree=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,lNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cNe=["color"],uNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,cNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M1.85001 7.50043C1.85001 4.37975 4.37963 1.85001 7.50001 1.85001C10.6204 1.85001 13.15 4.37975 13.15 7.50043C13.15 10.6211 10.6204 13.1509 7.50001 13.1509C4.37963 13.1509 1.85001 10.6211 1.85001 7.50043ZM7.50001 0.850006C3.82728 0.850006 0.850006 3.82753 0.850006 7.50043C0.850006 11.1733 3.82728 14.1509 7.50001 14.1509C11.1727 14.1509 14.15 11.1733 14.15 7.50043C14.15 3.82753 11.1727 0.850006 7.50001 0.850006ZM7.00001 8.00001V3.12811C7.16411 3.10954 7.33094 3.10001 7.50001 3.10001C9.93006 3.10001 11.9 5.07014 11.9 7.50043C11.9 7.66935 11.8905 7.83604 11.872 8.00001H7.00001Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),dNe=["color"],fNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,dNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gNe=["color"],hNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,gNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),pNe=["color"],mNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,pNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M3.89949 9.49998C3.89949 9.72089 3.7204 9.89997 3.49949 9.89997C3.27857 9.89997 3.09949 9.72089 3.09949 9.49998L3.09949 2.46566L1.78233 3.78282C1.62612 3.93903 1.37285 3.93903 1.21664 3.78282C1.06043 3.62661 1.06043 3.37334 1.21664 3.21713L3.21664 1.21713C3.29166 1.14212 3.3934 1.09998 3.49949 1.09998C3.60557 1.09998 3.70732 1.14212 3.78233 1.21713L5.78233 3.21713C5.93854 3.37334 5.93854 3.62661 5.78233 3.78282C5.62612 3.93903 5.37285 3.93903 5.21664 3.78282L3.89949 2.46566L3.89949 9.49998ZM8.49998 1.99998C8.22383 1.99998 7.99998 2.22383 7.99998 2.49998C7.99998 2.77612 8.22383 2.99998 8.49998 2.99998H14.5C14.7761 2.99998 15 2.77612 15 2.49998C15 2.22383 14.7761 1.99998 14.5 1.99998H8.49998ZM8.49998 4.99998C8.22383 4.99998 7.99998 5.22383 7.99998 5.49998C7.99998 5.77612 8.22383 5.99998 8.49998 5.99998H14.5C14.7761 5.99998 15 5.77612 15 5.49998C15 5.22383 14.7761 4.99998 14.5 4.99998H8.49998ZM7.99998 8.49998C7.99998 8.22383 8.22383 7.99998 8.49998 7.99998H14.5C14.7761 7.99998 15 8.22383 15 8.49998C15 8.77612 14.7761 8.99998 14.5 8.99998H8.49998C8.22383 8.99998 7.99998 8.77612 7.99998 8.49998Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ENe=["color"],Tee=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,ENe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M7.49998 0.849976C7.22383 0.849976 6.99998 1.07383 6.99998 1.34998V3.52234C6.99998 3.79848 7.22383 4.02234 7.49998 4.02234C7.77612 4.02234 7.99998 3.79848 7.99998 3.52234V1.8718C10.8862 2.12488 13.15 4.54806 13.15 7.49998C13.15 10.6204 10.6204 13.15 7.49998 13.15C4.37957 13.15 1.84998 10.6204 1.84998 7.49998C1.84998 6.10612 2.35407 4.83128 3.19049 3.8459C3.36919 3.63538 3.34339 3.31985 3.13286 3.14115C2.92234 2.96245 2.60681 2.98825 2.42811 3.19877C1.44405 4.35808 0.849976 5.86029 0.849976 7.49998C0.849976 11.1727 3.82728 14.15 7.49998 14.15C11.1727 14.15 14.15 11.1727 14.15 7.49998C14.15 3.82728 11.1727 0.849976 7.49998 0.849976ZM6.74049 8.08072L4.22363 4.57237C4.15231 4.47295 4.16346 4.33652 4.24998 4.25C4.33649 4.16348 4.47293 4.15233 4.57234 4.22365L8.08069 6.74051C8.56227 7.08599 8.61906 7.78091 8.19998 8.2C7.78089 8.61909 7.08597 8.56229 6.74049 8.08072Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),INe=["color"],CNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,INe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159ZM4.25 6.5C4.25 6.22386 4.47386 6 4.75 6H6V4.75C6 4.47386 6.22386 4.25 6.5 4.25C6.77614 4.25 7 4.47386 7 4.75V6H8.25C8.52614 6 8.75 6.22386 8.75 6.5C8.75 6.77614 8.52614 7 8.25 7H7V8.25C7 8.52614 6.77614 8.75 6.5 8.75C6.22386 8.75 6 8.52614 6 8.25V7H4.75C4.47386 7 4.25 6.77614 4.25 6.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),BNe=["color"],yNe=b.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,A=Ti(e,BNe);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A,{ref:t}),b.createElement("path",{d:"M6.5 10C8.433 10 10 8.433 10 6.5C10 4.567 8.433 3 6.5 3C4.567 3 3 4.567 3 6.5C3 8.433 4.567 10 6.5 10ZM6.5 11C7.56251 11 8.53901 10.6318 9.30884 10.0159L12.1464 12.8536C12.3417 13.0488 12.6583 13.0488 12.8536 12.8536C13.0488 12.6583 13.0488 12.3417 12.8536 12.1464L10.0159 9.30884C10.6318 8.53901 11 7.56251 11 6.5C11 4.01472 8.98528 2 6.5 2C4.01472 2 2 4.01472 2 6.5C2 8.98528 4.01472 11 6.5 11ZM4.75 6C4.47386 6 4.25 6.22386 4.25 6.5C4.25 6.77614 4.47386 7 4.75 7H8.25C8.52614 7 8.75 6.77614 8.75 6.5C8.75 6.22386 8.52614 6 8.25 6H4.75Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const vNe="_copy-button_h0vqv_1",bNe="_hide-icon-until-hover_h0vqv_8",QNe="_icon_h0vqv_9",Yw={copyButton:vNe,hideIconUntilHover:bNe,icon:QNe};function zw({value:e,color:t,size:n,hideIconUntilHover:r,className:A,children:i}){const[a,c]=b.useState(!1),f=k1(()=>c(!1),1e3);return e===void 0?i:p.jsxs(xl,{className:xt(A,Yw.copyButton,r&&Yw.hideIconUntilHover),variant:"ghost",size:"1",onClick:h=>{IR(e),c(!0),f(),h.stopPropagation()},children:[p.jsx(be,{truncate:!0,children:i}),a?p.jsx(Y7e,{className:Yw.icon,color:"green",height:n}):p.jsx(K7e,{className:Yw.icon,color:t,height:n})]})}function IT({children:e,...t}){return t.content?p.jsx(Ei,{...t,children:e}):p.jsx(p.Fragment,{children:e})}function wNe(){var i;const{peer:e,identityKey:t}=_C(),n=Yo(`(min-width: ${OX})`),r=Yo("(min-width: 620px)"),A=Yo("(min-width: 1100px)");return b.useEffect(()=>{var c;let a=document.title;(c=e==null?void 0:e.info)!=null&&c.name?a+=` | ${e.info.name}`:t&&(a+=` | ${t}`),document.title=a},[t,e]),p.jsx(xNe,{showDropdown:!0,children:p.jsxs("div",{className:xt(jf.container,jf.horizontal,jf.pointer),children:[p.jsx(jl,{url:(i=e==null?void 0:e.info)==null?void 0:i.icon_url,size:28,isYou:!0}),n&&p.jsx(Mee,{shouldShrink:!0}),r&&p.jsxs(p.Fragment,{children:[p.jsx(jee,{showTooltip:!0}),p.jsx(Nee,{showTooltip:!0})]}),A&&p.jsxs(p.Fragment,{children:[p.jsx(Lee,{}),p.jsx(Oee,{}),p.jsx(Fee,{showTooltip:!0})]})]})})}function xNe({showDropdown:e,children:t}){return e?p.jsx(hT,{content:p.jsx(_Ne,{}),children:t}):t}function _Ne(){var t;const{peer:e}=_C();return p.jsxs(xe,{direction:"column",wrap:"wrap",gap:"2",className:xt(jf.container,jf.dropdownMenu),style:{zIndex:oh},children:[p.jsxs(xe,{gap:"2",children:[p.jsx(jl,{url:(t=e==null?void 0:e.info)==null?void 0:t.icon_url,size:24,isYou:!0}),p.jsx(Mee,{})]}),p.jsx(jee,{}),p.jsx(Nee,{}),p.jsx(Lee,{}),p.jsx(Oee,{}),p.jsx(Fee,{}),p.jsx(kNe,{}),p.jsx(SNe,{})]})}function Mee({shouldShrink:e}){const{identityKey:t}=_C();return p.jsx(Of,{label:"Validator Name",copyValue:t,shouldShrink:e,children:t})}function kNe(){var t;const{peer:e}=_C();return p.jsx(Of,{label:"Vote Pubkey",children:(t=e==null?void 0:e.vote[0])==null?void 0:t.vote_account})}function SNe(){const e=we(sZ),t=KI(e);return p.jsx(Of,{label:"Vote Balance",children:p.jsx(S1,{value:t,suffix:"SOL"})})}function Fee({showTooltip:e}){const t=we(AZ),n=KI(t);return p.jsx(Of,{label:"Identity Balance",tooltip:e?"Account balance of this validators identity account. The balance is on the highest slot of the currently active fork of the validator.":void 0,children:p.jsx(S1,{value:n,suffix:"SOL"})})}function Nee({showTooltip:e}){const t=we(e9e),n=t===void 0?void 0:dT(t,{significantDigits:4,trailingZeroes:!1});return p.jsx(Of,{label:"Stake %",tooltip:e?"What percentage of total stake is delegated to this validator":void 0,children:p.jsx(S1,{value:n,suffix:"%"})})}function jee({showTooltip:e}){const t=we(Xq),n=KI(t);return p.jsx(Of,{label:"Stake Amount",tooltip:e?"Amount of total stake that is delegated to this validator":void 0,children:p.jsx(S1,{value:n,suffix:"SOL"})})}function Oee(){var n;const{peer:e}=_C(),t=e==null?void 0:e.vote.reduce((r,A)=>A.activated_stake>r.maxStake?{maxStake:A.activated_stake,commission:A.commission}:r,{maxStake:0n,commission:void 0});return p.jsx(Of,{label:"Commission",children:p.jsx(S1,{value:(n=t==null?void 0:t.commission)==null?void 0:n.toLocaleString(),suffix:"%"})})}function Lee(){const e=xee(6e4),t=e?Mq(e,{omitSeconds:!0}):void 0;return p.jsx(Of,{label:"Uptime",children:t==null?void 0:t.map(([n,r],A)=>p.jsxs(b.Fragment,{children:[A!==0&&"\xA0",p.jsx(S1,{value:n,suffix:r,excludeSpace:!0})]},`${n}${r}`))})}function Of({label:e,tooltip:t,shouldShrink:n=!1,children:r,copyValue:A}){return r?p.jsx(IT,{content:t,children:p.jsxs(xe,{direction:"column",minWidth:"0",flexShrink:n?"1":"0",children:[p.jsx(be,{className:jf.label,children:e}),p.jsx(zw,{value:A,color:"white",size:"10px",hideIconUntilHover:!0,children:p.jsx("div",{className:jf.value,children:r})})]})}):null}function S1({value:e,suffix:t,valueColor:n,excludeSpace:r}){return p.jsxs(p.Fragment,{children:[p.jsxs("span",{style:{color:n},children:[e,!r&&"\xA0"]}),p.jsx("span",{className:jf.valueSuffix,children:t})]})}const DNe="_nav-link_cdpop_1",RNe="_icon_cdpop_14",TNe="_dropdown-icon_cdpop_19",MNe="_active_cdpop_29",FNe="_nav-dropdown-content_cdpop_35",kC={navLink:DNe,icon:RNe,dropdownIcon:TNe,active:MNe,navDropdownContent:FNe},NNe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},b.createElement("path",{d:"M21 5.47 12 12 7.62 7.62 3 11V8.52L7.83 5l4.38 4.38L21 3v2.47zM21 15h-4.7l-4.17 3.34L6 12.41l-3 2.13V17l2.8-2 6.2 6 5-4h4v-2z"})),jNe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},b.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"})),ONe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},b.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})),LNe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},b.createElement("path",{d:"M18 11v2h4v-2h-4zm-2 6.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61zM20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4zM4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9H4zm11.5 3c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34z"})),PNe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},b.createElement("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})),Jw={Overview:"/","Slot Details":"/slotDetails",Schedule:"/leaderSchedule",Gossip:"/gossip"};function Ww(){const e=Sxe();return b.useMemo(()=>{const t=Object.entries(Jw).find(([n,r])=>e.pathname===r);return t?t[0]:"Overview"},[e.pathname])}function UNe(){const e=we(PA),t=we(xc),n=we(Eo),r=dt(Eo),[A,i]=b.useMemo(()=>{if(e===void 0)return[-1,-1];const a=e.findIndex(f=>f>(n??t??0));let c=a-1;return c===e.findIndex(f=>f===(n??t??0))&&c--,[c,a]},[t,e,n]);return b.useMemo(()=>({navPrevLeaderSlot:(a=1)=>{if(A>-1&&a>0){const c=e==null?void 0:e[A-a+1];c!==void 0&&r(c)}},navNextLeaderSlot:(a=1)=>{if(i>-1&&a>0){const c=e==null?void 0:e[i+a-1];c!==void 0&&r(c)}}}),[e,i,A,r])}const GNe={Overview:NNe,Schedule:ONe,Gossip:LNe,"Slot Details":jNe},Zw=b.forwardRef(({label:e,isActive:t,showDropdownIcon:n=!1,isLink:r,...A},i)=>{const a=we(TI),c=Ew(a),f=GNe[e],h=Jw[e],m=b.useMemo(()=>{const I=t?c:yV;return p.jsxs(p.Fragment,{children:[p.jsx(f,{className:kC.icon,fill:I}),p.jsx(be,{truncate:!0,children:e}),n&&p.jsx(PNe,{className:kC.dropdownIcon,fill:I})]})},[f,c,t,e,n]);return p.jsx(xl,{ref:i,...A,size:"2",variant:"soft",color:"gray",className:xt(kC.navLink,{[kC.active]:t}),style:{color:t?c:void 0},asChild:r,children:r?p.jsx(Xg,{to:h,children:m}):m})});Zw.displayName="NavButton";function HNe(){const e=Ww(),t=we(qi);return p.jsx(xe,{gap:`${Cf}px`,children:Object.keys(Jw).map(n=>{const r=n;if(!(r==="Gossip"&&t===Ci.Frankendancer))return p.jsx(Zw,{label:r,isActive:e===r,isLink:!0},r)})})}function YNe(){const e=we(m1),t=Ww(),n=we(qi);return p.jsxs(fY,{children:[p.jsx(gY,{asChild:!0,children:p.jsx(Zw,{label:t,isActive:!0,showDropdownIcon:!0,isLink:!1},t)}),p.jsx(CS,{container:e,children:p.jsx(hY,{side:"bottom",sideOffset:5,className:kC.navDropdownContent,style:{zIndex:oh},children:Object.keys(Jw).map(r=>{const A=r;if(!(A==="Gossip"&&n===Ci.Frankendancer))return p.jsx(pY,{asChild:!0,children:p.jsx(Zw,{label:A,isActive:A===t,isLink:!0},A)},A)})})})]})}function zNe(){const e=UNe();return b.useEffect(()=>{const t=n=>{n.code==="ArrowLeft"?e.navPrevLeaderSlot():n.code==="ArrowRight"&&e.navNextLeaderSlot()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e]),null}const Pee="/assets/firedancer_logo-CrgwxzPk.svg",Uee="/assets/frankendancer_logo-CHyfJ772.svg",JNe="_logo_1ml9x_1",WNe={logo:JNe};function ZNe(){const e=we(qi);return p.jsx(Mp,{children:p.jsx(Xg,{to:"/",children:p.jsx("img",{className:WNe.logo,width:f5,src:e===Ci.Firedancer?Pee:Uee,alt:e===Ci.Firedancer?"Firedancer":"Frankendancer"})})})}const XNe="_cluster-container_c8wbz_1",KNe="_cluster_c8wbz_1",VNe="_cluster-name_c8wbz_19",qNe="_ws-status-icon_c8wbz_25",Xw={clusterContainer:XNe,cluster:KNe,clusterName:VNe,wsStatusIcon:qNe},$Ne="data:image/svg+xml,%3csvg%20width='10'%20height='15'%20viewBox='0%200%2010%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.06927%203.73828C8.44427%203.73828%208.78412%203.90234%209.08881%204.23047C9.39349%204.53516%209.54584%204.875%209.54584%205.25V9.36328L6.90912%2012V14.25H3.18256V12L0.545837%209.36328V5.25C0.545837%204.875%200.698181%204.53516%201.00287%204.23047C1.30756%203.90234%201.6474%203.73828%202.0224%203.73828H2.05756V0.75H3.53412V3.73828H6.55756V0.75H8.03412L8.06927%203.73828Z'%20fill='%233CFF73'/%3e%3c/svg%3e",eje="data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.41406%203.41406C8.96875%208.99219%2012.3438%2012.3672%2013.5391%2013.5391L12.5898%2014.4883L9.25%2011.1484L8.86328%2011.5V13.75H5.13672V11.5L2.5%208.86328V4.75C2.5%204.63281%202.51172%204.53906%202.53516%204.46875L0.0390625%201.9375L0.988281%200.988281L3.37891%203.41406H3.41406ZM11.5%208.86328L11.1484%209.25L4.01172%202.11328V0.25H5.48828V3.23828H8.51172V0.25H9.98828V3.23828C10.3633%203.23828%2010.7031%203.40234%2011.0078%203.73047C11.3359%204.03516%2011.5%204.375%2011.5%204.75V8.86328Z'%20fill='%23FFA73C'/%3e%3c/svg%3e",tje="data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.41406%203.41406C8.96875%208.99219%2012.3438%2012.3672%2013.5391%2013.5391L12.5898%2014.4883L9.25%2011.1484L8.86328%2011.5V13.75H5.13672V11.5L2.5%208.86328V4.75C2.5%204.63281%202.51172%204.53906%202.53516%204.46875L0.0390625%201.9375L0.988281%200.988281L3.37891%203.41406H3.41406ZM11.5%208.86328L11.1484%209.25L4.01172%202.11328V0.25H5.48828V3.23828H8.51172V0.25H9.98828V3.23828C10.3633%203.23828%2010.7031%203.40234%2011.0078%203.73047C11.3359%204.03516%2011.5%204.375%2011.5%204.75V8.86328Z'%20fill='%23E5484D'/%3e%3c/svg%3e";var zs=(e=>(e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected",e))(zs||{});const Kw=Ke(zs.Disconnected),nje=e=>b.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M6.39844 3.39062V9.89844H11.6484V11.0742H0V9.89844H5.25V3.39062C4.72135 3.20833 4.36589 2.85286 4.18359 2.32422H2.32422L4.07422 6.39844C4.07422 6.72656 3.98307 7.02734 3.80078 7.30078C3.61849 7.55599 3.3724 7.76562 3.0625 7.92969C2.7526 8.07552 2.40625 8.14844 2.02344 8.14844C1.65885 8.14844 1.32161 8.07552 1.01172 7.92969C0.701823 7.76562 0.455729 7.55599 0.273438 7.30078C0.0911458 7.02734 0 6.72656 0 6.39844L1.75 2.32422H0.574219V1.14844H4.18359C4.29297 0.820312 4.49349 0.546875 4.78516 0.328125C5.09505 0.109375 5.44141 0 5.82422 0C6.20703 0 6.54427 0.109375 6.83594 0.328125C7.14583 0.546875 7.35547 0.820312 7.46484 1.14844H11.0742V2.32422H9.89844L11.6484 6.39844C11.6484 6.72656 11.5573 7.02734 11.375 7.30078C11.1927 7.55599 10.9466 7.76562 10.6367 7.92969C10.3268 8.07552 9.98958 8.14844 9.625 8.14844C9.24219 8.14844 8.89583 8.07552 8.58594 7.92969C8.27604 7.76562 8.02995 7.55599 7.84766 7.30078C7.66536 7.02734 7.57422 6.72656 7.57422 6.39844L9.32422 2.32422H7.46484C7.28255 2.85286 6.92708 3.20833 6.39844 3.39062ZM10.7188 6.39844L9.625 3.85547L8.53125 6.39844H10.7188ZM3.11719 6.39844L2.02344 3.85547L0.929688 6.39844H3.11719ZM5.82422 2.32422C5.98828 2.32422 6.125 2.26953 6.23438 2.16016C6.34375 2.03255 6.39844 1.89583 6.39844 1.75C6.39844 1.58594 6.34375 1.44922 6.23438 1.33984C6.125 1.21224 5.98828 1.14844 5.82422 1.14844C5.66016 1.14844 5.52344 1.21224 5.41406 1.33984C5.30469 1.44922 5.25 1.58594 5.25 1.75C5.25 1.89583 5.30469 2.03255 5.41406 2.16016C5.52344 2.26953 5.66016 2.32422 5.82422 2.32422Z"})),rje=e=>b.createElement("svg",{width:7,height:11,viewBox:"0 0 7 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M2.48828 10.5H1.88672L2.48828 6.42578H0.4375C0.145833 6.42578 0.0729167 6.29818 0.21875 6.04297C0.273438 5.95182 0.282552 5.92448 0.246094 5.96094C1.17578 4.33854 2.30599 2.35156 3.63672 0H4.23828L3.63672 4.07422H5.6875C5.94271 4.07422 6.02474 4.20182 5.93359 4.45703L2.48828 10.5Z"})),oje=e=>b.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.18359 2.26953L3.41797 2.13281C2.9987 2.04167 2.64323 2.15104 2.35156 2.46094L0 4.8125L2.10547 5.71484C2.1237 5.67839 2.1875 5.54167 2.29688 5.30469C2.40625 5.06771 2.55208 4.77604 2.73438 4.42969C2.91667 4.08333 3.1263 3.72786 3.36328 3.36328C3.61849 2.98047 3.89193 2.61589 4.18359 2.26953ZM5.33203 8.50391L2.89844 6.07031C2.89844 6.07031 2.95312 5.95182 3.0625 5.71484C3.17188 5.47786 3.31771 5.17708 3.5 4.8125C3.70052 4.44792 3.92839 4.07422 4.18359 3.69141C4.45703 3.29036 4.7487 2.9349 5.05859 2.625C5.69661 1.98698 6.29818 1.49479 6.86328 1.14844C7.42839 0.783854 7.94792 0.519531 8.42188 0.355469C8.91406 0.191406 9.35156 0.0911458 9.73438 0.0546875C10.1172 0.0182292 10.4362 0.0182292 10.6914 0.0546875C10.9466 0.0911458 11.1289 0.127604 11.2383 0.164062C11.2747 0.273438 11.3112 0.455729 11.3477 0.710938C11.3841 0.966146 11.3841 1.28516 11.3477 1.66797C11.3112 2.05078 11.2109 2.48828 11.0469 2.98047C10.8828 3.45443 10.6185 3.97396 10.2539 4.53906C9.90755 5.10417 9.41536 5.70573 8.77734 6.34375C8.46745 6.65365 8.11198 6.94531 7.71094 7.21875C7.32812 7.47396 6.95443 7.70182 6.58984 7.90234C6.22526 8.08464 5.92448 8.23047 5.6875 8.33984C5.45052 8.44922 5.33203 8.50391 5.33203 8.50391ZM9.13281 7.21875L9.26953 7.98438C9.36068 8.40365 9.2513 8.75911 8.94141 9.05078L6.58984 11.4023L5.6875 9.29688C5.72396 9.27865 5.86068 9.21484 6.09766 9.10547C6.33464 8.99609 6.6263 8.85026 6.97266 8.66797C7.31901 8.48568 7.67448 8.27604 8.03906 8.03906C8.42188 7.78385 8.78646 7.51042 9.13281 7.21875ZM4.07422 9.07812C4.07422 8.75 3.99219 8.45833 3.82812 8.20312C3.68229 7.92969 3.47266 7.72005 3.19922 7.57422C2.94401 7.41016 2.65234 7.32812 2.32422 7.32812C2.08724 7.32812 1.85938 7.3737 1.64062 7.46484C1.42188 7.55599 1.23958 7.68359 1.09375 7.84766C0.947917 7.97526 0.820312 8.1849 0.710938 8.47656C0.601562 8.75 0.501302 9.0599 0.410156 9.40625C0.31901 9.73438 0.236979 10.0534 0.164062 10.3633C0.109375 10.6732 0.0638021 10.9284 0.0273438 11.1289C0.00911458 11.3112 0 11.4023 0 11.4023C0 11.4023 0.0911458 11.3932 0.273438 11.375C0.473958 11.3385 0.729167 11.293 1.03906 11.2383C1.34896 11.1654 1.66797 11.0833 1.99609 10.9922C2.34245 10.901 2.65234 10.8008 2.92578 10.6914C3.21745 10.582 3.42708 10.4544 3.55469 10.3086C3.71875 10.1628 3.84635 9.98047 3.9375 9.76172C4.02865 9.54297 4.07422 9.3151 4.07422 9.07812ZM6.39844 3.82812C6.39844 4.15625 6.50781 4.4388 6.72656 4.67578C6.96354 4.89453 7.24609 5.00391 7.57422 5.00391C7.90234 5.00391 8.17578 4.89453 8.39453 4.67578C8.63151 4.4388 8.75 4.15625 8.75 3.82812C8.75 3.5 8.63151 3.22656 8.39453 3.00781C8.17578 2.77083 7.90234 2.65234 7.57422 2.65234C7.24609 2.65234 6.96354 2.77083 6.72656 3.00781C6.50781 3.22656 6.39844 3.5 6.39844 3.82812Z"}));function Gee({strategy:e,iconSize:t,tooltipContent:n}){const r=we(TI),A=b.useMemo(()=>({width:`${t}px`,height:`${t}px`,color:Ew(r)}),[r,t]),i=b.useMemo(()=>{if(e===j0.balanced)return p.jsx(nje,{...A});if(e===j0.perf)return p.jsx(rje,{...A});if(e===j0.revenue)return p.jsx(oje,{...A})},[e,A]);return n?p.jsx(Ei,{content:n,children:p.jsx("div",{style:{lineHeight:0},children:i})}):i}const SC=2;function ije(){const e=we(TI),t=we(rZ),n=we(oZ),r=we(Kw);if(!e&&!t)return null;let A=tje;r===zs.Connected?A=$Ne:r===zs.Connecting&&(A=eje);let i=e;return e==="mainnet-beta"&&(i="mainnet"),p.jsxs(xe,{width:`${h5+SC}px`,className:Xw.clusterContainer,gap:"5px",ml:`-${SC}px`,p:`${SC}px 5px ${SC}px ${SC}px`,children:[p.jsxs(xe,{className:Xw.cluster,flexGrow:"1",direction:"column",align:"center",style:{background:Ew(e)},children:[p.jsx(Ei,{content:"Cluster the validator is joined to",children:p.jsx(be,{className:Xw.clusterName,children:i})}),p.jsx(Ei,{content:`Current validator software version. Commit Hash: ${n||"unknown"}`,children:p.jsxs(be,{children:["v",t]})})]}),p.jsx(Ei,{content:`GUI is currently ${r} ${r===zs.Disconnected?"from":"to"} the validator`,children:p.jsx("img",{src:A,className:Xw.wsStatusIcon,alt:"ws status"})}),p.jsx(aje,{}),p.jsx(lje,{})]})}function Aje(){const e=we(TI),t=Ew(e);return p.jsx("div",{style:{background:t,height:NI,width:"100%"}})}function sje(e){switch(e.status){case"connected":return $V;case"connecting":return eq;case"disconnected":return Qu}}function aje(){const e=we(wZ);if(!e)return null;const t=sje(e);return p.jsx(Ei,{content:`Currently ${e.status} ${e.status==="disconnected"?"from":"to"} ${e.name} - ${e.url} (${e.ip})`,children:p.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("rect",{x:"0.957031",y:"0.478027",width:"46.6736",height:"46.6736",rx:"23.3368",fill:t}),p.jsx("circle",{cx:"24.29",cy:"23.5771",r:"18.6313",stroke:t,strokeWidth:"1.62011"}),p.jsx("path",{d:"M26.1499 19.0332C24.8137 19.9555 23.3768 20.2715 21.842 19.9795C20.3046 19.6893 19.0833 18.8857 18.1757 17.5706L16.8251 15.6137L18.7625 14.2765L20.1131 16.2334C20.6504 17.012 21.3676 17.4839 22.2672 17.6474C23.1642 17.8126 24.0091 17.6217 24.7967 17.0781L28.2146 14.7043C29.301 13.9499 30.7935 14.2212 31.5448 15.3097L26.1499 19.0332Z",fill:t}),p.jsx("path",{d:"M28.7658 25.5351C27.8418 24.1963 27.5235 22.7579 27.8126 21.2226C28.0999 19.6846 28.9007 18.464 30.2133 17.558L32.1665 16.21L33.5062 18.1511L31.5531 19.4991C30.776 20.0355 30.3057 20.7523 30.1439 21.6522C29.9803 22.5495 30.1726 23.3953 30.7172 24.1844L33.1006 27.6163C33.8536 28.7006 33.5828 30.1903 32.4963 30.9402L28.7658 25.5351Z",fill:t}),p.jsx("path",{d:"M22.2392 28.1641C23.5755 27.2418 25.0123 26.9258 26.5471 27.2178C28.0846 27.508 29.3058 28.3116 30.2135 29.6267L31.5641 31.5835L29.6267 32.9207L28.2761 30.9638C27.7387 30.1853 27.0215 29.7134 26.1219 29.5499C25.2249 29.3846 24.38 29.5756 23.5924 30.1191L20.1745 32.4929C19.0882 33.2474 17.5956 32.9761 16.8443 31.8875L22.2392 28.1641Z",fill:t}),p.jsx("path",{d:"M19.7405 21.8316C20.6645 23.1704 20.9829 24.6088 20.6938 26.1441C20.4065 27.6821 19.6056 28.9027 18.293 29.8087L16.3398 31.1567L15.0001 29.2156L16.9533 27.8676C17.7304 27.3312 18.2007 26.6144 18.3625 25.7145C18.5261 24.8172 18.3338 23.9714 17.7892 23.1823L15.4058 19.7504C14.6527 18.6661 14.9235 17.1764 16.01 16.4265L19.7405 21.8316Z",fill:t})]})})}function lje(){const e=we(SQ),t=b.useMemo(()=>{if(e===j0.balanced)return"Transaction scheduler strategy: balanced";if(e===j0.perf)return"Transaction scheduler strategy: performance";if(e===j0.revenue)return"Transaction scheduler strategy: revenue"},[e]);if(e)return p.jsx(Gee,{strategy:e,iconSize:12,tooltipContent:t})}const cje="_nav-filter-toggle-group_148xa_1",uje="_lg_148xa_47",dje="_toggle-button_148xa_43",fje="_floating_148xa_61",gje="_mirror_148xa_75",hje="_slot-nav-container_148xa_81",pje="_nav-background_148xa_85",gh={navFilterToggleGroup:cje,lg:uje,toggleButton:dje,floating:fje,mirror:gje,slotNavContainer:hje,navBackground:pje},mje=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},b.createElement("path",{d:"M13 7h9v2h-9zm0 8h9v2h-9zm3-4h6v2h-6zm-3 1L8 7v4H2v2h6v4z"}));function D1(){const e=Yo(jX),[t,n]=Cc(OMe),r=Ww()==="Schedule",A=r||!t,i=r;return{isNarrowScreen:e,showNav:A,setIsNavCollapsed:n,showOnlyEpochBar:i,blurBackground:e&&!t&&!i,occupyRowWidth:i||!e&&!t}}function CT({isFloating:e,isLarge:t}){const{showNav:n,setIsNavCollapsed:r,showOnlyEpochBar:A}=D1(),i=`${t?nDe:d5}px`;return A?p.jsx("div",{style:{height:i,width:i}}):p.jsx(_l,{size:"1",onClick:()=>r(a=>!a),className:xt(gh.toggleButton,{[gh.floating]:e}),style:{height:i,width:i},children:p.jsx(mje,{className:xt({[gh.lg]:t,[gh.mirror]:n})})})}function Hee(){const{setIsNavCollapsed:e}=D1();return p.jsx("div",{onClick:()=>e(!0),className:"blur",style:{zIndex:oh-2}})}const Eje="_nav-background_4ydm9_1",Ije="_attribute-container_4ydm9_5",Yee={navBackground:Eje,attributeContainer:Ije};function zee({isStartup:e}){const t=Yo("(max-width: 900px)"),n=Yo("(max-width: 401px)"),r=Yo(`(max-width: ${OX})`),{isNarrowScreen:A,blurBackground:i,showNav:a,showOnlyEpochBar:c}=D1(),f=!a&&n,h="3px";return p.jsxs("div",{className:"sticky",style:{top:0,backgroundColor:"var(--color-background)",zIndex:oh},children:[p.jsx(Aje,{}),p.jsxs(rr,{px:"2",className:"app-width-container",children:[p.jsxs(xe,{height:`${jI}px`,align:"center",children:[p.jsxs(xe,{className:xt({[Yee.navBackground]:a&&!c}),height:"100%",align:"center",gapX:f?h:`${WQ}px`,pr:f?h:`${Cf}px`,ml:`${-g5}px`,pl:`${g5}px`,children:[!e&&A&&!a&&p.jsx(CT,{isLarge:!0}),p.jsx(ZNe,{}),p.jsx(ije,{})]}),p.jsxs(xe,{position:"relative",gapX:f?h:`${u5}px`,height:"100%",flexGrow:"1",align:"center",justify:"between",pl:f?h:`${u5-Cf}px`,minWidth:"0",children:[!e&&p.jsxs(xe,{flexShrink:r?"1":"0",minWidth:"100px",children:[p.jsx(zNe,{}),t?p.jsx(YNe,{}):p.jsx(HNe,{})]}),p.jsxs(xe,{gap:A?"1":"3",justify:"end",align:"center",minWidth:"50px",flexGrow:"1",children:[p.jsx(wNe,{}),p.jsxs(xe,{gap:"1",direction:A?"column":"row",children:[p.jsx(Cje,{}),e?p.jsx(yje,{}):p.jsx(Bje,{})]})]}),i&&p.jsx(Hee,{})]})]}),!e&&!A&&p.jsx("div",{style:{position:"relative"},children:p.jsx("div",{style:{position:"absolute",top:0,left:0},children:p.jsx(CT,{isFloating:!a})})})]})]})}function Cje(){return p.jsx(hT,{content:p.jsx(xe,{maxWidth:"100vw",p:"2",className:Yee.attributeContainer,children:p.jsx(be,{size:"2",wrap:"wrap",children:p.jsx("a",{href:"https://db-ip.com",children:"IP Geolocation by DB-IP"})})}),children:p.jsx(Dee,{color:"var(--gray-11)"})})}function Bje(){const e=we(Ml),t=dt(bw),n=dt(o$);return e?p.jsx(_l,{ref:n,variant:"ghost",color:"gray",onClick:()=>t(!0),children:p.jsx(Tee,{})}):null}function yje(){const e=we(Ml),t=dt(bw),n=we(o$),r=we(Uq),A=b.useCallback(()=>{if(!n||!r)return;const{bottom:i,left:a,width:c,height:f}=n.getBoundingClientRect();r.style.setProperty("--transform-origin",`${Math.round(a+c/2)}px ${Math.round(i-f/2)}px`),t(!1)},[r,n,t]);return e?p.jsx(_l,{variant:"ghost",color:"gray",onClick:A,children:p.jsx(ET,{color:"white"})}):null}const vje="_logo-container_1po46_1",bje="_hidden_1po46_30",Jee={logoContainer:vje,hidden:bje};function Qje(){const e=we(nC),[t,n]=b.useState(!0);return e&&t&&n(!1),p.jsx(xe,{className:xt(Jee.logoContainer,{[Jee.hidden]:!t}),children:p.jsx("img",{src:i$,alt:"fd"})})}const wje="_secondary-color_2x9jp_1",xje="_ellipsis_2x9jp_5",_je="_card_2x9jp_11",kje="_sparkline-card_2x9jp_19",Sje="_snapshot-tile-title_2x9jp_25",Dje="_snapshot-tile-busy_2x9jp_31",Rje="_sparkline-container_2x9jp_36",Tje="_bars-card_2x9jp_54",Mje="_card-header_2x9jp_62",Fje="_title_2x9jp_68",Nje="_accounts-rate_2x9jp_74",jje="_total_2x9jp_79",Oje="_throughput_2x9jp_84",Lje="_with-prefix_2x9jp_87",Pje="_reading-card_2x9jp_95",Uje="_read-path-container_2x9jp_96",Gje="_read-path_2x9jp_96",Hje="_decompressing-card_2x9jp_124",Yje="_decompressing-card-left_2x9jp_127",zje="_decompressing-card-right_2x9jp_137",Jje="_inserting-card_2x9jp_146",jo={secondaryColor:wje,ellipsis:xje,card:_je,sparklineCard:kje,snapshotTileTitle:Sje,snapshotTileBusy:Dje,sparklineContainer:Rje,barsCard:Tje,cardHeader:Mje,title:Fje,accountsRate:Nje,total:jje,throughput:Oje,withPrefix:Lje,readingCard:Pje,readPathContainer:Uje,readPath:Gje,decompressingCard:Hje,decompressingCardLeft:Yje,decompressingCardRight:zje,insertingCard:Jje},Wje="_busy_1fw9w_1",Zje={busy:Wje};function Vw({busy:e,className:t}){const n=e!==void 0?Math.trunc(e*100):void 0;return p.jsx(xe,{gap:"1",align:"end",children:p.jsxs(be,{className:t??Zje.busy,style:{color:`color-mix(in srgb, ${Z5}, ${X5} ${n}%)`},children:[n??"-","%"]})})}function Xje(e){const t=new Set;let n=null,r=performance.now();function A(){const c=()=>{const f=performance.now();if(f-r>=e){const h=f-r;r=f,t.forEach(m=>m(f,h))}n=requestAnimationFrame(c)};n=requestAnimationFrame(c)}function i(){n!=null&&cancelAnimationFrame(n),n=null}function a(c){return t.add(c),n==null&&A(),()=>{t.delete(c),t.size||i()}}return{subscribeClock:a}}const qw=2;function Wee({isLive:e,tileCount:t,liveIdlePerTile:n,queryIdlePerTile:r}){var h;const A=b.useMemo(()=>new Array(t).fill(0),[t]),i=n==null?void 0:n.map(m=>m===-1?void 0:1-m),a=r==null?void 0:r.map(m=>{const I=m.filter(v=>v!==-1);if(I.length)return 1-hn.mean(I)}).filter(m=>m!==void 0),c=A.map((m,I)=>{const v=r==null?void 0:r.map(k=>1-k[I]).filter(k=>k!==void 0&&k<=1);if(v!=null&&v.length)return hn.mean(v)}),f=(h=e?i:c)==null?void 0:h.filter(m=>m!==void 0&&m<=1);return{avgBusy:f!=null&&f.length?hn.mean(f):void 0,aggQueryBusyPerTs:a,tileCountArr:A,liveBusyPerTile:i,busy:f}}function BT(e){const t=b.useRef();return e!==void 0&&(t.current=e),e??t.current}const Zee=[0,1],Kje=150,Xee=3,yT=new Map;function Kee(e,t,n){var A;const r=performance.now();for(e.push({value:n,ts:r});(((A=e[1])==null?void 0:A.ts)??0)+t{let D=n,R=A;const F=R/(D/c);return t||(D+=c*Xee,R+=F*Xee),{pxPerTick:F,width:R,windowMs:D}},[A,n,t,c]),k=b.useRef([{value:void 0,ts:performance.now()-v},{value:void 0,ts:performance.now()}]);return b.useLayoutEffect(()=>{a||t!=null&&t.length||Kee(k.current,v,e)},[t==null?void 0:t.length,v,a,e]),z0(()=>{var R;if(a||t!=null&&t.length)return;const D=(R=k.current[k.current.length-1])==null?void 0:R.ts;D!==void 0&&performance.now()-D{function D(R,F){var Y,z;const N=R.length;if(N===0){h([]);return}const T=F-v,P=I/v,G=new Array(N);for(let Z=0;Z({value:P,ts:N+G*F}));D(T,R)}else{yT.has(c)||yT.set(c,Xje(c));const R=yT.get(c);if(R)return R.subscribeClock(F=>{D(k.current,F)})}},[r,t,c,I,v]),{scaledDataPoints:f,range:Zee,pxPerTick:m,chartTickMs:c,isLive:!t}}const Vje="_range-label_14i5c_1",qje="_top_14i5c_9",$je="_bottom_14i5c_13",eOe="_g-transform_14i5c_17",DC={rangeLabel:Vje,top:qje,bottom:$je,gTransform:eOe},tOe=400*4,nOe=80;function RC({value:e,queryBusy:t,height:n=24,background:r,windowMs:A=tOe,strokeWidth:i=qw,updateIntervalMs:a=nOe,tickMs:c}){const[f,{width:h}]=Ka(),{scaledDataPoints:m,range:I,pxPerTick:v,chartTickMs:k,isLive:D}=Vee({value:e,queryBusy:t,windowMs:A,height:n,width:h,updateIntervalMs:a,tickMs:c});return p.jsx(qee,{svgRef:f,scaledDataPoints:m,range:I,height:n,background:r,pxPerTick:v,tickMs:k,isLive:D,strokeWidth:i})}function qee({svgRef:e,scaledDataPoints:t,range:n=Zee,showRange:r=!1,height:A,background:i=Aq,pxPerTick:a,tickMs:c,isLive:f,strokeWidth:h=qw}){const m=b.useRef(null),I=b.useRef(null),v=b.useRef(null),k=b.useMemo(()=>{const R=n[1]-n[0],F=(A-h*2)/R,N=F*(n[1]-1);return[N+F,N]},[A,n,h]),D=b.useMemo(()=>t.map(({x:R,y:F})=>`${R},${F}`).join(" "),[t]);return b.useLayoutEffect(()=>{var F,N,T;const R=m.current;if(R)if(f){v.current||(v.current=R.animate([{transform:"translate3d(0px, 0, 0)"},{transform:"translate3d(0px, 0, 0)"}],{duration:c,easing:"linear",fill:"forwards"}),v.current.cancel()),v.current.finish(),(F=I.current)==null||F.setAttribute("points",D);const P=v.current.effect;P.setKeyframes([{transform:"translate3d(0px, 0, 0)"},{transform:`translate3d(${-a}px, 0, 0)`}]),P.updateTiming({duration:c,easing:"linear",fill:"forwards"}),v.current.currentTime=0,v.current.play()}else(N=I.current)==null||N.setAttribute("points",D),(T=v.current)==null||T.cancel()},[f,D,a,c]),p.jsxs(p.Fragment,{children:[p.jsxs("svg",{ref:e,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:`${A}px`,fill:"none",style:{background:i},shapeRendering:"optimizeSpeed",children:[p.jsx("g",{ref:m,className:DC.gTransform,children:p.jsx("polyline",{ref:I,stroke:"url(#paint0_linear_2971_11300)",strokeWidth:h,strokeLinecap:"butt",vectorEffect:"non-scaling-stroke",pointerEvents:"none"})}),p.jsx("defs",{children:p.jsxs("linearGradient",{id:"paint0_linear_2971_11300",x1:"59.5",y1:k[0],x2:"59.5",y2:k[1],gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:Z5}),p.jsx("stop",{offset:"1",stopColor:X5})]})})]}),r&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:xt(DC.rangeLabel,DC.top),children:[Math.round(n[1]*100),"%"]}),p.jsxs("div",{className:xt(DC.rangeLabel,DC.bottom),children:[Math.round(n[0]*100),"%"]})]})]})}const $w=15,$ee=$w*6+1,ete=$w*15+1,rOe=6e3,oOe=50;function vT({title:e,tileType:t,isComplete:n}){const r=we(qI),A=we(TMe),{avgBusy:i}=Wee({isLive:!0,tileCount:r[t],liveIdlePerTile:A==null?void 0:A[t]}),a=BT(i),{scaledDataPoints:c,range:f,pxPerTick:h,chartTickMs:m,isLive:I}=Vee({value:a,windowMs:rOe,height:$ee,width:ete,updateIntervalMs:oOe,stopShifting:n});return p.jsxs(hI,{className:xt(jo.card,jo.sparklineCard),children:[p.jsxs(xe,{justify:"between",align:"center",children:[p.jsx(be,{className:jo.snapshotTileTitle,children:e}),p.jsx(Vw,{busy:a,className:jo.snapshotTileBusy})]}),p.jsx(xe,{className:jo.sparklineContainer,style:{alignSelf:"center",width:`${ete}px`,backgroundSize:`${$w}px ${$w}px`},children:p.jsx(qee,{scaledDataPoints:c,range:f,showRange:!0,height:$ee,background:"transparent",tickMs:m,pxPerTick:h,isLive:I})})]})}const iOe="_bars_1snvg_1",AOe="_threshold_1snvg_7",sOe="_filled_1snvg_10",aOe="_mid_1snvg_14",lOe="_high_1snvg_24",TC={bars:iOe,threshold:AOe,filled:sOe,mid:aOe,high:lOe},cOe=2,tte=1e3;function bT({value:e,max:t,barWidth:n=cOe}){const[r,{width:A}]=Ka(),i=n*1.5,a=Math.trunc(A/(n+i)),c=!t||!e?-1:hn.clamp(Math.round(e/t*a)-1,0,a-1),f=a*(n+i);return p.jsx("svg",{className:TC.bars,ref:r,preserveAspectRatio:"none",width:"100%",viewBox:`0 0 ${f} ${tte}`,xmlns:"http://www.w3.org/2000/svg",children:Array.from({length:a},(h,m)=>{const I=m>=a*.95||m===a-1,v=!I&&m>=a*.85;return p.jsx("rect",{x:m*(f/a),width:n,height:tte,ry:n*2,className:xt({[TC.threshold]:m===c,[TC.filled]:m2&&A[0]&&A[0][1]<=r-n;)A.shift();return A}function rte(e,t=500){const[n,r]=b.useState([]);b.useEffect(()=>{e!=null&&r(i=>nte(i,e,t))},[e,t]),z0(()=>{r(i=>{const a=performance.now(),c=i[i.length-1];return c&&c[1]{r([])},[]);return{valuePerSecond:b.useMemo(()=>{if(!(n.length<=1))return 1e3*(n[n.length-1][0]-n[0][0])/(n[n.length-1][1]-n[0][1])},[n]),reset:A}}const uOe=e=>b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},b.createElement("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}));function QT({headerContent:e,footer:t,throughput:n,containerClassName:r,maxThroughput:A}){return p.jsxs(hI,{className:xt(jo.card,jo.barsCard,r),children:[p.jsx(xe,{justify:"between",align:"center",wrap:"wrap",gapX:"4",className:jo.cardHeader,children:e}),p.jsx(bT,{value:n??0,max:A}),t]})}function e4({value:e,unit:t}){return p.jsxs(p.Fragment,{children:[p.jsx(be,{children:e??"--"}),t&&p.jsxs(p.Fragment,{children:[" ",p.jsx(be,{className:jo.secondaryColor,children:t})]})]})}function wT({text:e}){return p.jsx(be,{className:xt(jo.title,jo.ellipsis),children:e})}function dOe({cumulativeAccounts:e}){const t=we(nC),{valuePerSecond:n,reset:r}=rte(e,1e3);b.useEffect(()=>{r()},[t,r]);const A=b.useMemo(()=>{if(e!=null&&n==null)return"0";if(n!=null)return fT.format(n)},[n,e]);return p.jsx("div",{className:jo.accountsRate,children:p.jsx(e4,{value:A,unit:"Accounts / sec"})})}function xT({completed:e,total:t}){return p.jsxs("div",{className:jo.total,children:[p.jsx(e4,{value:e==null?void 0:e.value,unit:e==null?void 0:e.unit}),p.jsx(be,{children:" / "}),p.jsx(e4,{value:t==null?void 0:t.value,unit:t==null?void 0:t.unit})]})}function t4({prefix:e,throughput:t}){return p.jsxs("div",{className:xt(jo.throughput,{[jo.withPrefix]:!!e}),children:[e&&p.jsxs(be,{className:jo.secondaryColor,children:[e," "]}),p.jsx(e4,{value:t==null?void 0:t.value,unit:t==null?void 0:t.unit}),p.jsx(be,{className:jo.secondaryColor,children:"/sec"})]})}function fOe({readPath:e}){return p.jsxs(xe,{align:"center",gap:"10px",wrap:"nowrap",className:jo.readPathContainer,children:[p.jsx(uOe,{}),p.jsx(be,{className:xt(jo.readPath,jo.ellipsis),children:e})]})}const ote={forceUpdateIntervalMs:1500,halfLifeMs:5e3,initMinSamples:5};function MC(e,t){const{forceUpdateIntervalMs:n,halfLifeMs:r,initMinSamples:A}={...ote,...t},i=b.useMemo(()=>r/Math.log(2),[r]),[a,c]=b.useState(),f=b.useRef(),h=b.useRef(e);h.current=e;const m=b.useRef(),I=b.useRef(0),v=b.useRef(!1);v.current=a!==void 0;const k=b.useCallback(()=>{c(void 0),f.current=void 0,m.current=void 0,I.current=0,R.current!==void 0&&(clearTimeout(R.current),R.current=void 0)},[]),D=b.useCallback(F=>{F??(F=h.current);const N=performance.now();if(f.current===void 0){F!=null&&(f.current={value:F,tsMs:N});return}F??(F=f.current.value);const{value:T,tsMs:P}=f.current,G=N-P;if(!isFinite(G)||G<=0)return;const Y=F-T;if(!isFinite(Y)||Y<0){k();return}if(f.current={value:F,tsMs:N},!v.current&&Y>0){if(I.current+=1,!m.current){m.current={value:F,tsMs:N};return}if(I.current{const Z=Y/G*1e3;if(z===void 0)return Z>0?Z:z;const K=-Math.expm1(-G/i);return z*(1-K)+Z*K})},[A,k,i]),R=b.useRef();return b.useEffect(()=>{if(R.current!==void 0&&(clearTimeout(R.current),R.current=void 0),D(e),n!==void 0){let F=function(){R.current=setTimeout(()=>{D(),F()},n)};F()}return()=>{R.current!==void 0&&(clearTimeout(R.current),R.current=void 0)}},[n,D,e]),{ema:a,reset:k}}function uA(e,t=ote){return MC(e,t).ema??0}function gOe({compressedCompleted:e,compressedTotal:t,readPath:n}){const r=we(nC),{ema:A,reset:i}=MC(e);b.useEffect(()=>{i()},[r,i]);const a=A==null?void 0:wu(A),c=e==null?void 0:wu(e),f=t==null?void 0:wu(t),h=b.useMemo(()=>p.jsx(fOe,{readPath:n}),[n]);return p.jsx(QT,{containerClassName:jo.readingCard,headerContent:p.jsxs(p.Fragment,{children:[p.jsx(wT,{text:"Reading"}),p.jsx(xT,{completed:c,total:f}),p.jsx(t4,{throughput:a})]}),footer:h,throughput:A,maxThroughput:8e8})}function hOe({compressedCompleted:e,decompressedCompleted:t,compressedTotal:n}){const r=we(nC),{ema:A,reset:i}=MC(e),{ema:a,reset:c}=MC(t);b.useEffect(()=>{i(),c()},[r,i,c]);const f=A==null?void 0:wu(A),h=a==null?void 0:wu(a),m=e==null?void 0:wu(e),I=n==null?void 0:wu(n);return p.jsx(QT,{containerClassName:jo.decompressingCard,headerContent:p.jsxs(p.Fragment,{children:[p.jsxs(xe,{flexGrow:"1",justify:"between",align:"center",className:jo.decompressingCardLeft,children:[p.jsx(wT,{text:"Decompressing"}),p.jsx(xT,{completed:m,total:I})]}),p.jsxs(xe,{gapX:"30px",justify:"end",flexGrow:"1",className:jo.decompressingCardRight,children:[p.jsx(t4,{prefix:"Input",throughput:f}),p.jsx(t4,{prefix:"Output",throughput:h})]})]}),throughput:A,maxThroughput:8e8})}function pOe({decompressedThroughput:e,decompressedCompleted:t,decompressedTotal:n,cumulativeAccounts:r}){const A=e==null?void 0:wu(e),i=t==null?void 0:wu(t),a=n==null?void 0:wu(n);return p.jsx(QT,{containerClassName:jo.insertingCard,headerContent:p.jsxs(p.Fragment,{children:[p.jsx(wT,{text:"Inserting"}),p.jsx(dOe,{cumulativeAccounts:r}),p.jsx(xT,{completed:i,total:a}),p.jsx(t4,{throughput:A})]}),throughput:e,maxThroughput:35e8})}const mOe="_secondary-text_1stfa_1",EOe="_step-container_1stfa_5",IOe="_step-name_1stfa_11",COe="_no-wrap_1stfa_15",Lf={secondaryText:mOe,stepContainer:EOe,stepName:IOe,noWrap:COe},BOe="_progress-bar_2amyy_1",yOe="_current-step_2amyy_14",vOe="_progressing-bar_2amyy_21",_T={progressBar:BOe,currentStep:yOe,progressingBar:vOe},bOe={[Hs.joining_gossip]:{name:"Joining Gossip",incompleteColor:vV,inProgressBackground:bV,completeColor:wV,estimatedPct:.1,borderColor:QV},[Hs.loading_full_snapshot]:{name:"Loading Full Snapshot",incompleteColor:xV,inProgressBackground:_V,completeColor:SV,estimatedPct:.6,borderColor:kV},[Hs.loading_incremental_snapshot]:{name:"Loading Incremental Snapshot",incompleteColor:DV,inProgressBackground:RV,completeColor:MV,estimatedPct:.05,borderColor:TV},[Hs.catching_up]:{name:"Catching Up",incompleteColor:FV,inProgressBackground:NV,completeColor:OV,estimatedPct:.25,borderColor:jV},[Hs.running]:{name:"Running",incompleteColor:"",inProgressBackground:"",completeColor:"",estimatedPct:0,borderColor:"transparent"}},kT=Object.entries(bOe).reduce((e,[t,n],r)=>(e[t]={...n,index:r},e),{});function QOe({stepIndex:e,phaseCompletePct:t}){return p.jsx(xe,{className:_T.progressBar,children:Object.entries(kT).map(([n,{name:r,estimatedPct:A,completeColor:i,inProgressBackground:a,incompleteColor:c,borderColor:f}],h)=>{if(n===Hs.running)return;const m=`${A*100}%`;if(h===e)return p.jsx("div",{className:_T.currentStep,style:{width:m,background:c,borderColor:f},children:p.jsx("div",{className:_T.progressingBar,style:{transform:`scaleX(${t/100})`,background:a}})},r);const I=h{const m=n==null?void 0:Math.max(Math.round(n),0);A(m)},1e3);b.useEffect(()=>{i(n)},[i,n]);const a=b.useMemo(()=>{if(r!=null)return kf(Tr.fromObject({seconds:r}).rescale(),{showOnlyTwoSignificantUnits:!0})},[r]),c=kT[e],f=b.useMemo(()=>Object.values(kT).reduce((h,{index:m,estimatedPct:I})=>(m{c()},[e==null?void 0:e.phase,c]);const{totalCompressedBytes:f,readCompressedBytes:h,readPath:m,decompressCompressedBytes:I,decompressDecompressedBytes:v,insertDecompressedBytes:k,insertAccounts:D,insertCompressedBytes:R,totalDecompressedBytes:F}=i??{},N=a==null||F==null||k==null?void 0:Math.round((F-k)/a),T=Math.min(f&&R?R/f*100:0,100);if(!(!e||!i))return p.jsxs(p.Fragment,{children:[p.jsx(ite,{phase:e.phase,phaseCompletePct:T,remainingSeconds:N}),p.jsxs(xe,{mt:"52px",direction:"column",gap:Ate,className:Nf.startupContentIndentation,children:[p.jsxs(xe,{className:jo.rowContainer,gap:A,wrap:r,children:[p.jsx(gOe,{compressedCompleted:h,compressedTotal:f,readPath:m}),p.jsx(vT,{title:"CPU Utilization",tileType:"snapld",isComplete:t&&!!h&&h===f})]}),p.jsxs(xe,{className:jo.rowContainer,gap:A,wrap:r,children:[p.jsx(hOe,{compressedCompleted:I,decompressedCompleted:v,compressedTotal:f}),p.jsx(vT,{title:"CPU Utilization",tileType:"snapdc",isComplete:t&&!!I&&I===f})]}),p.jsxs(xe,{className:jo.rowContainer,gap:A,wrap:r,children:[p.jsx(pOe,{decompressedThroughput:a,decompressedCompleted:k,decompressedTotal:F,cumulativeAccounts:D}),p.jsx(vT,{title:"CPU Utilization",tileType:"snapin",isComplete:t&&!!R&&R===f})]})]})]})}const SOe=!0,bA="u-",DOe="uplot",ROe=bA+"hz",TOe=bA+"vt",MOe=bA+"title",FOe=bA+"wrap",NOe=bA+"under",jOe=bA+"over",OOe=bA+"axis",hh=bA+"off",LOe=bA+"select",POe=bA+"cursor-x",UOe=bA+"cursor-y",GOe=bA+"cursor-pt",HOe=bA+"legend",YOe=bA+"live",zOe=bA+"inline",JOe=bA+"series",WOe=bA+"marker",ste=bA+"label",ZOe=bA+"value",FC="width",NC="height",jC="top",ate="bottom",R1="left",ST="right",DT="#000",lte=DT+"0",RT="mousemove",cte="mousedown",TT="mouseup",ute="mouseenter",dte="mouseleave",fte="dblclick",XOe="resize",KOe="scroll",gte="change",n4="dppxchange",MT="--",T1=typeof window<"u",FT=T1?document:null,M1=T1?window:null,VOe=T1?navigator:null;let Io,r4;function NT(){let e=devicePixelRatio;Io!=e&&(Io=e,r4&<(gte,r4,NT),r4=matchMedia(`(min-resolution: ${Io-.001}dppx) and (max-resolution: ${Io+.001}dppx)`),ph(gte,r4,NT),M1.dispatchEvent(new CustomEvent(n4)))}function Va(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function jT(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function di(e,t,n){e.style[t]=n+"px"}function Rc(e,t,n,r){let A=FT.createElement(e);return t!=null&&Va(A,t),n==null||n.insertBefore(A,r),A}function Ol(e,t){return Rc("div",e,t)}const hte=new WeakMap;function Su(e,t,n,r,A){let i="translate("+t+"px,"+n+"px)",a=hte.get(e);i!=a&&(e.style.transform=i,hte.set(e,i),t<0||n<0||t>r||n>A?Va(e,hh):jT(e,hh))}const pte=new WeakMap;function mte(e,t,n){let r=t+n,A=pte.get(e);r!=A&&(pte.set(e,r),e.style.background=t,e.style.borderColor=n)}const Ete=new WeakMap;function Ite(e,t,n,r){let A=t+""+n,i=Ete.get(e);A!=i&&(Ete.set(e,A),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}const OT={passive:!0},qOe={...OT,capture:!0};function ph(e,t,n,r){t.addEventListener(e,n,r?qOe:OT)}function LT(e,t,n,r){t.removeEventListener(e,n,OT)}T1&&NT();function Tc(e,t,n,r){let A;n=n||0,r=r||t.length-1;let i=r<=2147483647;for(;r-n>1;)A=i?n+r>>1:$a((n+r)/2),t[A]{let A=-1,i=-1;for(let a=n;a<=r;a++)if(e(t[a])){A=a;break}for(let a=r;a>=n;a--)if(e(t[a])){i=a;break}return[A,i]}}const Bte=e=>e!=null,yte=e=>e!=null&&e>0,o4=Cte(Bte),$Oe=Cte(yte);function eLe(e,t,n,r=0,A=!1){let i=A?$Oe:o4,a=A?yte:Bte;[t,n]=i(e,t,n);let c=e[t],f=e[t];if(t>-1)if(r==1)c=e[t],f=e[n];else if(r==-1)c=e[n],f=e[t];else for(let h=t;h<=n;h++){let m=e[h];a(m)&&(mf&&(f=m))}return[c??zo,f??-zo]}function i4(e,t,n,r){let A=Qte(e),i=Qte(t);e==t&&(A==-1?(e*=n,t/=n):(e/=n,t*=n));let a=n==10?J0:wte,c=A==1?$a:Ll,f=i==1?Ll:$a,h=c(a(QA(e))),m=f(a(QA(t))),I=F1(n,h),v=F1(n,m);return n==10&&(h<0&&(I=Jo(I,-h)),m<0&&(v=Jo(v,-m))),r||n==2?(e=I*A,t=v*i):(e=Tte(e,I),t=a4(t,v)),[e,t]}function PT(e,t,n,r){let A=i4(e,t,n,r);return e==0&&(A[0]=0),t==0&&(A[1]=0),A}const UT=.1,vte={mode:3,pad:UT},OC={pad:0,soft:null,mode:0},tLe={min:OC,max:OC};function A4(e,t,n,r){return l4(n)?bte(e,t,n):(OC.pad=n,OC.soft=r?0:null,OC.mode=r?3:0,bte(e,t,tLe))}function ao(e,t){return e??t}function nLe(e,t,n){for(t=ao(t,0),n=ao(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function bte(e,t,n){let r=n.min,A=n.max,i=ao(r.pad,0),a=ao(A.pad,0),c=ao(r.hard,-zo),f=ao(A.hard,zo),h=ao(r.soft,zo),m=ao(A.soft,-zo),I=ao(r.mode,0),v=ao(A.mode,0),k=t-e,D=J0(k),R=Js(QA(e),QA(t)),F=J0(R),N=QA(F-D);(k<1e-24||N>10)&&(k=0,(e==0||t==0)&&(k=1e-24,I==2&&h!=zo&&(i=0),v==2&&m!=-zo&&(a=0)));let T=k||R||1e3,P=J0(T),G=F1(10,$a(P)),Y=T*(k==0?e==0?.1:1:i),z=Jo(Tte(e-Y,G/10),24),Z=e>=h&&(I==1||I==3&&z<=h||I==2&&z>=h)?h:zo,K=Js(c,z=Z?Z:Mc(Z,z)),re=T*(k==0?t==0?.1:1:a),V=Jo(a4(t+re,G/10),24),oe=t<=m&&(v==1||v==3&&V>=m||v==2&&V<=m)?m:-zo,Be=Mc(f,V>oe&&t<=oe?oe:Js(oe,V));return K==Be&&K==0&&(Be=100),[K,Be]}const rLe=new Intl.NumberFormat(T1?VOe.language:"en-US"),GT=e=>rLe.format(e),qa=Math,s4=qa.PI,QA=qa.abs,$a=qa.floor,wA=qa.round,Ll=qa.ceil,Mc=qa.min,Js=qa.max,F1=qa.pow,Qte=qa.sign,J0=qa.log10,wte=qa.log2,oLe=(e,t=1)=>qa.sinh(e)*t,HT=(e,t=1)=>qa.asinh(e/t),zo=1/0;function xte(e){return(J0((e^e>>31)-(e>>31))|0)+1}function YT(e,t,n){return Mc(Js(e,t),n)}function _te(e){return typeof e=="function"}function Hr(e){return _te(e)?e:()=>e}const iLe=()=>{},kte=e=>e,Ste=(e,t)=>t,ALe=e=>null,Dte=e=>!0,Rte=(e,t)=>e==t,sLe=/\.\d*?(?=9{6,}|0{6,})/gm,mh=e=>{if(Fte(e)||Pf.has(e))return e;const t=`${e}`,n=t.match(sLe);if(n==null)return e;let r=n[0].length-1;if(t.indexOf("e-")!=-1){let[A,i]=t.split("e");return+`${mh(A)}e${i}`}return Jo(e,r)};function Eh(e,t){return mh(Jo(mh(e/t))*t)}function a4(e,t){return mh(Ll(mh(e/t))*t)}function Tte(e,t){return mh($a(mh(e/t))*t)}function Jo(e,t=0){if(Fte(e))return e;let n=10**t,r=e*n*(1+Number.EPSILON);return wA(r)/n}const Pf=new Map;function Mte(e){return((""+e).split(".")[1]||"").length}function LC(e,t,n,r){let A=[],i=r.map(Mte);for(let a=t;a=0?0:c)+(a>=i[h]?0:i[h]),v=e==10?m:Jo(m,I);A.push(v),Pf.set(v,I)}}return A}const PC={},zT=[],N1=[null,null],Uf=Array.isArray,Fte=Number.isInteger,aLe=e=>e===void 0;function Nte(e){return typeof e=="string"}function l4(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function lLe(e){return e!=null&&typeof e=="object"}const cLe=Object.getPrototypeOf(Uint8Array),jte="__proto__";function j1(e,t=l4){let n;if(Uf(e)){let r=e.find(A=>A!=null);if(Uf(r)||t(r)){n=Array(e.length);for(let A=0;Ai){for(A=a-1;A>=0&&e[A]==null;)e[A--]=null;for(A=a+1;Aa-c)],A=r[0].length,i=new Map;for(let a=0;a"u"?e=>Promise.resolve().then(e):queueMicrotask;function mLe(e){let t=e[0],n=t.length,r=Array(n);for(let i=0;it[i]-t[a]);let A=[];for(let i=0;i=r&&e[A]==null;)A--;if(A<=r)return!0;const i=Js(1,$a((A-r+1)/t));for(let a=e[r],c=r+i;c<=A;c+=i){const f=e[c];if(f!=null){if(f<=a)return!1;a=f}}return!0}const Ote=["January","February","March","April","May","June","July","August","September","October","November","December"],Lte=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Pte(e){return e.slice(0,3)}const CLe=Lte.map(Pte),BLe=Ote.map(Pte),yLe={MMMM:Ote,MMM:BLe,WWWW:Lte,WWW:CLe};function UC(e){return(e<10?"0":"")+e}function vLe(e){return(e<10?"00":e<100?"0":"")+e}const bLe={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>UC(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>UC(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>UC(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>UC(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>UC(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>vLe(e.getMilliseconds())};function JT(e,t){t=t||yLe;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,A;for(;A=r.exec(e);)n.push(A[0][0]=="{"?bLe[A[1]]:A[0]);return i=>{let a="";for(let c=0;ce%1==0,c4=[1,2,2.5,5],xLe=LC(10,-32,0,c4),Gte=LC(10,0,32,c4),_Le=Gte.filter(Ute),Ih=xLe.concat(Gte),WT=` -`,Hte="{YYYY}",Yte=WT+Hte,zte="{M}/{D}",GC=WT+zte,u4=GC+"/{YY}",Jte="{aa}",kLe="{h}:{mm}",O1=kLe+Jte,Wte=WT+O1,Zte=":{ss}",_o=null;function Xte(e){let t=e*1e3,n=t*60,r=n*60,A=r*24,i=A*30,a=A*365,c=(e==1?LC(10,0,3,c4).filter(Ute):LC(10,-3,0,c4)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,A,A*2,A*3,A*4,A*5,A*6,A*7,A*8,A*9,A*10,A*15,i,i*2,i*3,i*4,i*6,a,a*2,a*5,a*10,a*25,a*50,a*100]);const f=[[a,Hte,_o,_o,_o,_o,_o,_o,1],[A*28,"{MMM}",Yte,_o,_o,_o,_o,_o,1],[A,zte,Yte,_o,_o,_o,_o,_o,1],[r,"{h}"+Jte,u4,_o,GC,_o,_o,_o,1],[n,O1,u4,_o,GC,_o,_o,_o,1],[t,Zte,u4+" "+O1,_o,GC+" "+O1,_o,Wte,_o,1],[e,Zte+".{fff}",u4+" "+O1,_o,GC+" "+O1,_o,Wte,_o,1]];function h(m){return(I,v,k,D,R,F)=>{let N=[],T=R>=a,P=R>=i&&R=A?A:R,re=$a(k)-$a(Y),V=Z+re+a4(Y-Z,K);N.push(V);let oe=m(V),Be=oe.getHours()+oe.getMinutes()/n+oe.getSeconds()/r,he=R/r,de=I.axes[v]._space,me=F/de;for(;V=Jo(V+R,e==1?0:3),!(V>D);)if(he>1){let Ae=$a(Jo(Be+he,6))%24,Ce=m(V).getHours()-Ae;Ce>1&&(Ce=-1),V-=Ce*r,Be=(Be+he)%24;let ae=N[N.length-1];Jo((V-ae)/R,3)*me>=.7&&N.push(V)}else N.push(V)}return N}}return[c,f,h]}const[SLe,DLe,RLe]=Xte(1),[TLe,MLe,FLe]=Xte(.001);LC(2,-53,53,[1]);function Kte(e,t){return e.map(n=>n.map((r,A)=>A==0||A==8||r==null?r:t(A==1||n[8]==0?r:n[1]+r)))}function Vte(e,t){return(n,r,A,i,a)=>{let c=t.find(D=>a>=D[0])||t[t.length-1],f,h,m,I,v,k;return r.map(D=>{let R=e(D),F=R.getFullYear(),N=R.getMonth(),T=R.getDate(),P=R.getHours(),G=R.getMinutes(),Y=R.getSeconds(),z=F!=f&&c[2]||N!=h&&c[3]||T!=m&&c[4]||P!=I&&c[5]||G!=v&&c[6]||Y!=k&&c[7]||c[1];return f=F,h=N,m=T,I=P,v=G,k=Y,z(R)})}}function NLe(e,t){let n=JT(t);return(r,A,i,a,c)=>A.map(f=>n(e(f)))}function ZT(e,t,n){return new Date(e,t,n)}function qte(e,t){return t(e)}const jLe="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function $te(e,t){return(n,r,A,i)=>i==null?MT:t(e(r))}function OLe(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function LLe(e,t){return e.series[t].fill(e,t)}const PLe={show:!0,live:!0,isolate:!1,mount:iLe,markers:{show:!0,width:2,stroke:OLe,fill:LLe,dash:"solid"},idx:null,idxs:null,values:[]};function ULe(e,t){let n=e.cursor.points,r=Ol(),A=n.size(e,t);di(r,FC,A),di(r,NC,A);let i=A/-2;di(r,"marginLeft",i),di(r,"marginTop",i);let a=n.width(e,t,A);return a&&di(r,"borderWidth",a),r}function GLe(e,t){let n=e.series[t].points;return n._fill||n._stroke}function HLe(e,t){let n=e.series[t].points;return n._stroke||n._fill}function YLe(e,t){return e.series[t].points.size}const XT=[0,0];function zLe(e,t,n){return XT[0]=t,XT[1]=n,XT}function d4(e,t,n,r=!0){return A=>{A.button==0&&(!r||A.target==t)&&n(A)}}function KT(e,t,n,r=!0){return A=>{(!r||A.target==t)&&n(A)}}const JLe={show:!0,x:!0,y:!0,lock:!1,move:zLe,points:{one:!1,show:ULe,size:YLe,width:0,stroke:HLe,fill:GLe},bind:{mousedown:d4,mouseup:d4,click:d4,dblclick:d4,mousemove:KT,mouseleave:KT,mouseenter:KT},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,n,r,A)=>r-A,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},ene={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},VT=dA({},ene,{filter:Ste}),tne=dA({},VT,{size:10}),nne=dA({},ene,{show:!1}),qT='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',rne="bold "+qT,one=1.5,ine={show:!0,scale:"x",stroke:DT,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:rne,side:2,grid:VT,ticks:tne,border:nne,font:qT,lineGap:one,rotate:0},WLe="Value",ZLe="Time",Ane={show:!0,scale:"x",auto:!1,sorted:1,min:zo,max:-zo,idxs:[]};function XLe(e,t,n,r,A){return t.map(i=>i==null?"":GT(i))}function KLe(e,t,n,r,A,i,a){let c=[],f=Pf.get(A)||0;n=a?n:Jo(a4(n,A),f);for(let h=n;h<=r;h=Jo(h+A,f))c.push(Object.is(h,-0)?0:h);return c}function $T(e,t,n,r,A,i,a){const c=[],f=e.scales[e.axes[t].scale].log,h=f==10?J0:wte,m=$a(h(n));A=F1(f,m),f==10&&(A=Ih[Tc(A,Ih)]);let I=n,v=A*f;f==10&&(v=Ih[Tc(v,Ih)]);do c.push(I),I=I+A,f==10&&!Pf.has(I)&&(I=Jo(I,Pf.get(A))),I>=v&&(A=I,v=A*f,f==10&&(v=Ih[Tc(v,Ih)]));while(I<=r);return c}function VLe(e,t,n,r,A,i,a){let c=e.scales[e.axes[t].scale].asinh,f=r>c?$T(e,t,Js(c,n),r,A):[c],h=r>=0&&n<=0?[0]:[];return(n<-c?$T(e,t,Js(c,-r),-n,A):[c]).reverse().map(m=>-m).concat(h,f)}const sne=/./,qLe=/[12357]/,$Le=/[125]/,ane=/1/,eM=(e,t,n,r)=>e.map((A,i)=>t==4&&A==0||i%r==0&&n.test(A.toExponential()[A<0?1:0])?A:null);function ePe(e,t,n,r,A){let i=e.axes[n],a=i.scale,c=e.scales[a],f=e.valToPos,h=i._space,m=f(10,a),I=f(9,a)-m>=h?sne:f(7,a)-m>=h?qLe:f(5,a)-m>=h?$Le:ane;if(I==ane){let v=QA(f(1,a)-m);if(vA,dne={show:!0,auto:!0,sorted:0,gaps:une,alpha:1,facets:[dA({},cne,{scale:"x"}),dA({},cne,{scale:"y"})]},fne={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:une,alpha:1,points:{show:oPe,filter:null},values:null,min:zo,max:-zo,idxs:[],path:null,clip:null};function iPe(e,t,n,r,A){return n/10}const gne={time:SOe,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},APe=dA({},gne,{time:!1,ori:1}),hne={};function pne(e,t){let n=hne[e];return n||(n={key:e,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(A=>A!=r)},pub(r,A,i,a,c,f,h){for(let m=0;m{let N=a.pxRound;const T=h.dir*(h.ori==0?1:-1),P=h.ori==0?P1:U1;let G,Y;T==1?(G=n,Y=r):(G=r,Y=n);let z=N(I(c[G],h,R,k)),Z=N(v(f[G],m,F,D)),K=N(I(c[Y],h,R,k)),re=N(v(i==1?m.max:m.min,m,F,D)),V=new Path2D(A);return P(V,K,re),P(V,z,re),P(V,z,Z),V})}function f4(e,t,n,r,A,i){let a=null;if(e.length>0){a=new Path2D;const c=t==0?p4:oM;let f=n;for(let I=0;Iv[0]){let k=v[0]-f;k>0&&c(a,f,r,k,r+i),f=v[1]}}let h=n+A-f,m=10;h>0&&c(a,f,r-m/2,h,r+i+m)}return a}function aPe(e,t,n){let r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function rM(e,t,n,r,A,i,a){let c=[],f=e.length;for(let h=A==1?n:r;h>=n&&h<=r;h+=A)if(t[h]===null){let m=h,I=h;if(A==1)for(;++h<=r&&t[h]===null;)I=h;else for(;--h>=n&&t[h]===null;)I=h;let v=i(e[m]),k=I==m?v:i(e[I]),D=m-A;v=a<=0&&D>=0&&D=0&&R>=0&&R=v&&c.push([v,k])}return c}function mne(e){return e==0?kte:e==1?wA:t=>Eh(t,e)}function Ene(e){let t=e==0?g4:h4,n=e==0?(A,i,a,c,f,h)=>{A.arcTo(i,a,c,f,h)}:(A,i,a,c,f,h)=>{A.arcTo(a,i,f,c,h)},r=e==0?(A,i,a,c,f)=>{A.rect(i,a,c,f)}:(A,i,a,c,f)=>{A.rect(a,i,f,c)};return(A,i,a,c,f,h=0,m=0)=>{h==0&&m==0?r(A,i,a,c,f):(h=Mc(h,c/2,f/2),m=Mc(m,c/2,f/2),t(A,i+h,a),n(A,i+c,a,i+c,a+f,h),n(A,i+c,a+f,i,a+f,m),n(A,i,a+f,i,a,m),n(A,i,a,i+c,a,h),A.closePath())}}const g4=(e,t,n)=>{e.moveTo(t,n)},h4=(e,t,n)=>{e.moveTo(n,t)},P1=(e,t,n)=>{e.lineTo(t,n)},U1=(e,t,n)=>{e.lineTo(n,t)},p4=Ene(0),oM=Ene(1),Ine=(e,t,n,r,A,i)=>{e.arc(t,n,r,A,i)},Cne=(e,t,n,r,A,i)=>{e.arc(n,t,r,A,i)},Bne=(e,t,n,r,A,i,a)=>{e.bezierCurveTo(t,n,r,A,i,a)},yne=(e,t,n,r,A,i,a)=>{e.bezierCurveTo(n,t,A,r,a,i)};function vne(e){return(t,n,r,A,i)=>Ch(t,n,(a,c,f,h,m,I,v,k,D,R,F)=>{let{pxRound:N,points:T}=a,P,G;h.ori==0?(P=g4,G=Ine):(P=h4,G=Cne);const Y=Jo(T.width*Io,3);let z=(T.size-T.width)/2*Io,Z=Jo(z*2,3),K=new Path2D,re=new Path2D,{left:V,top:oe,width:Be,height:he}=t.bbox;p4(re,V-Z,oe-Z,Be+Z*2,he+Z*2);const de=me=>{if(f[me]!=null){let Ae=N(I(c[me],h,R,k)),Ce=N(v(f[me],m,F,D));P(K,Ae+z,Ce),G(K,Ae,Ce,z,0,s4*2)}};if(i)i.forEach(de);else for(let me=r;me<=A;me++)de(me);return{stroke:Y>0?K:null,fill:K,clip:re,flags:L1|tM}})}function bne(e){return(t,n,r,A,i,a)=>{r!=A&&(i!=r&&a!=r&&e(t,n,r),i!=A&&a!=A&&e(t,n,A),e(t,n,a))}}const lPe=bne(P1),cPe=bne(U1);function Qne(e){const t=ao(e==null?void 0:e.alignGaps,0);return(n,r,A,i)=>Ch(n,r,(a,c,f,h,m,I,v,k,D,R,F)=>{[A,i]=o4(f,A,i);let N=a.pxRound,T=Be=>N(I(Be,h,R,k)),P=Be=>N(v(Be,m,F,D)),G,Y;h.ori==0?(G=P1,Y=lPe):(G=U1,Y=cPe);const z=h.dir*(h.ori==0?1:-1),Z={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:L1},K=Z.stroke;let re=!1;if(i-A>=R*4){let Be=Ie=>n.posToVal(Ie,h.key,!0),he=null,de=null,me,Ae,Ce,ae=T(c[z==1?A:i]),fe=T(c[A]),ye=T(c[i]),Oe=Be(z==1?fe+1:ye-1);for(let Ie=z==1?A:i;Ie>=A&&Ie<=i;Ie+=z){let Fe=c[Ie],qe=(z==1?FeOe)?ae:T(Fe),Ze=f[Ie];qe==ae?Ze!=null?(Ae=Ze,he==null?(G(K,qe,P(Ae)),me=he=de=Ae):Aede&&(de=Ae)):Ze===null&&(re=!0):(he!=null&&Y(K,ae,P(he),P(de),P(me),P(Ae)),Ze!=null?(Ae=Ze,G(K,qe,P(Ae)),he=de=me=Ae):(he=de=null,Ze===null&&(re=!0)),ae=qe,Oe=Be(ae+z))}he!=null&&he!=de&&Ce!=ae&&Y(K,ae,P(he),P(de),P(me),P(Ae))}else for(let Be=z==1?A:i;Be>=A&&Be<=i;Be+=z){let he=f[Be];he===null?re=!0:he!=null&&G(K,T(c[Be]),P(he))}let[V,oe]=nM(n,r);if(a.fill!=null||V!=0){let Be=Z.fill=new Path2D(K),he=a.fillTo(n,r,a.min,a.max,V),de=P(he),me=T(c[A]),Ae=T(c[i]);z==-1&&([Ae,me]=[me,Ae]),G(Be,Ae,de),G(Be,me,de)}if(!a.spanGaps){let Be=[];re&&Be.push(...rM(c,f,A,i,z,T,t)),Z.gaps=Be=a.gaps(n,r,A,i,Be),Z.clip=f4(Be,h.ori,k,D,R,F)}return oe!=0&&(Z.band=oe==2?[W0(n,r,A,i,K,-1),W0(n,r,A,i,K,1)]:W0(n,r,A,i,K,oe)),Z})}function uPe(e){const t=ao(e.align,1),n=ao(e.ascDesc,!1),r=ao(e.alignGaps,0),A=ao(e.extend,!1);return(i,a,c,f)=>Ch(i,a,(h,m,I,v,k,D,R,F,N,T,P)=>{[c,f]=o4(I,c,f);let G=h.pxRound,{left:Y,width:z}=i.bbox,Z=ye=>G(D(ye,v,T,F)),K=ye=>G(R(ye,k,P,N)),re=v.ori==0?P1:U1;const V={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:L1},oe=V.stroke,Be=v.dir*(v.ori==0?1:-1);let he=K(I[Be==1?c:f]),de=Z(m[Be==1?c:f]),me=de,Ae=de;A&&t==-1&&(Ae=Y,re(oe,Ae,he)),re(oe,de,he);for(let ye=Be==1?c:f;ye>=c&&ye<=f;ye+=Be){let Oe=I[ye];if(Oe==null)continue;let Ie=Z(m[ye]),Fe=K(Oe);t==1?re(oe,Ie,he):re(oe,me,Fe),re(oe,Ie,Fe),he=Fe,me=Ie}let Ce=me;A&&t==1&&(Ce=Y+z,re(oe,Ce,he));let[ae,fe]=nM(i,a);if(h.fill!=null||ae!=0){let ye=V.fill=new Path2D(oe),Oe=h.fillTo(i,a,h.min,h.max,ae),Ie=K(Oe);re(ye,Ce,Ie),re(ye,Ae,Ie)}if(!h.spanGaps){let ye=[];ye.push(...rM(m,I,c,f,Be,Z,r));let Oe=h.width*Io/2,Ie=n||t==1?Oe:-Oe,Fe=n||t==-1?-Oe:Oe;ye.forEach(qe=>{qe[0]+=Ie,qe[1]+=Fe}),V.gaps=ye=h.gaps(i,a,c,f,ye),V.clip=f4(ye,v.ori,F,N,T,P)}return fe!=0&&(V.band=fe==2?[W0(i,a,c,f,oe,-1),W0(i,a,c,f,oe,1)]:W0(i,a,c,f,oe,fe)),V})}function wne(e,t,n,r,A,i,a=zo){if(e.length>1){let c=null;for(let f=0,h=1/0;f{}),{fill:I,stroke:v}=h;return(k,D,R,F)=>Ch(k,D,(N,T,P,G,Y,z,Z,K,re,V,oe)=>{let Be=N.pxRound,he=n,de=r*Io,me=c*Io,Ae=f*Io,Ce,ae;G.ori==0?[Ce,ae]=i(k,D):[ae,Ce]=i(k,D);const fe=G.dir*(G.ori==0?1:-1);let ye=G.ori==0?p4:oM,Oe=G.ori==0?m:(It,Cn,wn,jr,Yr,or,$r)=>{m(It,Cn,wn,Yr,jr,$r,or)},Ie=ao(k.bands,zT).find(It=>It.series[0]==D),Fe=Ie!=null?Ie.dir:0,qe=N.fillTo(k,D,N.min,N.max,Fe),Ze=Be(Z(qe,Y,oe,re)),Te,De,Se,Qe=V,Ye=Be(N.width*Io),At=!1,Je=null,Nt=null,jt=null,bt=null;I!=null&&(Ye==0||v!=null)&&(At=!0,Je=I.values(k,D,R,F),Nt=new Map,new Set(Je).forEach(It=>{It!=null&&Nt.set(It,new Path2D)}),Ye>0&&(jt=v.values(k,D,R,F),bt=new Map,new Set(jt).forEach(It=>{It!=null&&bt.set(It,new Path2D)})));let{x0:wt,size:se}=h;if(wt!=null&&se!=null){he=1,T=wt.values(k,D,R,F),wt.unit==2&&(T=T.map(Cn=>k.posToVal(K+Cn*V,G.key,!0)));let It=se.values(k,D,R,F);se.unit==2?De=It[0]*V:De=z(It[0],G,V,K)-z(0,G,V,K),Qe=wne(T,P,z,G,V,K,Qe),Se=Qe-De+de}else Qe=wne(T,P,z,G,V,K,Qe),Se=Qe*a+de,De=Qe-Se;Se<1&&(Se=0),Ye>=De/2&&(Ye=0),Se<5&&(Be=kte);let $t=Se>0,Sn=Qe-Se-($t?Ye:0);De=Be(YT(Sn,Ae,me)),Te=(he==0?De/2:he==fe?0:De)-he*fe*((he==0?de/2:0)+($t?Ye/2:0));const fn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ue=At?null:new Path2D;let ln=null;if(Ie!=null)ln=k.data[Ie.series[1]];else{let{y0:It,y1:Cn}=h;It!=null&&Cn!=null&&(P=Cn.values(k,D,R,F),ln=It.values(k,D,R,F))}let Dt=Ce*De,Gt=ae*De;for(let It=fe==1?R:F;It>=R&&It<=F;It+=fe){let Cn=P[It];if(Cn==null)continue;if(ln!=null){let Co=ln[It]??0;if(Cn-Co==0)continue;Ze=Z(Co,Y,oe,re)}let wn=G.distr!=2||h!=null?T[It]:It,jr=z(wn,G,V,K),Yr=Z(ao(Cn,qe),Y,oe,re),or=Be(jr-Te),$r=Be(Js(Yr,Ze)),xr=Be(Mc(Yr,Ze)),yr=$r-xr;if(Cn!=null){let Co=Cn<0?Gt:Dt,oi=Cn<0?Dt:Gt;At?(Ye>0&&jt[It]!=null&&ye(bt.get(jt[It]),or,xr+$a(Ye/2),De,Js(0,yr-Ye),Co,oi),Je[It]!=null&&ye(Nt.get(Je[It]),or,xr+$a(Ye/2),De,Js(0,yr-Ye),Co,oi)):ye(ue,or,xr+$a(Ye/2),De,Js(0,yr-Ye),Co,oi),Oe(k,D,It,or-Ye/2,xr,De+Ye,yr)}}return Ye>0?fn.stroke=At?bt:ue:At||(fn._fill=N.width==0?N._fill:N._stroke??N._fill,fn.width=0),fn.fill=At?Nt:ue,fn})}function fPe(e,t){const n=ao(t==null?void 0:t.alignGaps,0);return(r,A,i,a)=>Ch(r,A,(c,f,h,m,I,v,k,D,R,F,N)=>{[i,a]=o4(h,i,a);let T=c.pxRound,P=Ce=>T(v(Ce,m,F,D)),G=Ce=>T(k(Ce,I,N,R)),Y,z,Z;m.ori==0?(Y=g4,Z=P1,z=Bne):(Y=h4,Z=U1,z=yne);const K=m.dir*(m.ori==0?1:-1);let re=P(f[K==1?i:a]),V=re,oe=[],Be=[];for(let Ce=K==1?i:a;Ce>=i&&Ce<=a;Ce+=K)if(h[Ce]!=null){let ae=f[Ce],fe=P(ae);oe.push(V=fe),Be.push(G(h[Ce]))}const he={stroke:e(oe,Be,Y,Z,z,T),fill:null,clip:null,band:null,gaps:null,flags:L1},de=he.stroke;let[me,Ae]=nM(r,A);if(c.fill!=null||me!=0){let Ce=he.fill=new Path2D(de),ae=c.fillTo(r,A,c.min,c.max,me),fe=G(ae);Z(Ce,V,fe),Z(Ce,re,fe)}if(!c.spanGaps){let Ce=[];Ce.push(...rM(f,h,i,a,K,P,n)),he.gaps=Ce=c.gaps(r,A,i,a,Ce),he.clip=f4(Ce,m.ori,D,R,F,N)}return Ae!=0&&(he.band=Ae==2?[W0(r,A,i,a,de,-1),W0(r,A,i,a,de,1)]:W0(r,A,i,a,de,Ae)),he})}function gPe(e){return fPe(hPe,e)}function hPe(e,t,n,r,A,i){const a=e.length;if(a<2)return null;const c=new Path2D;if(n(c,e[0],t[0]),a==2)r(c,e[1],t[1]);else{let f=Array(a),h=Array(a-1),m=Array(a-1),I=Array(a-1);for(let v=0;v0!=h[v]>0?f[v]=0:(f[v]=3*(I[v-1]+I[v])/((2*I[v]+I[v-1])/h[v-1]+(I[v]+2*I[v-1])/h[v]),isFinite(f[v])||(f[v]=0));f[a-1]=h[a-2];for(let v=0;v{Vr.pxRatio=Io}));const pPe=Qne(),mPe=vne();function _ne(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((A,i)=>AM(A,i,t,n))}function EPe(e,t){return e.map((n,r)=>r==0?{}:dA({},t,n))}function AM(e,t,n,r){return dA({},t==0?n:r,e)}function kne(e,t,n){return t==null?N1:[t,n]}const IPe=kne;function CPe(e,t,n){return t==null?N1:A4(t,n,UT,!0)}function Sne(e,t,n,r){return t==null?N1:i4(t,n,e.scales[r].log,!1)}const BPe=Sne;function Dne(e,t,n,r){return t==null?N1:PT(t,n,e.scales[r].log,!1)}const yPe=Dne;function vPe(e,t,n,r,A){let i=Js(xte(e),xte(t)),a=t-e,c=Tc(A/r*a,n);do{let f=n[c],h=r*f/a;if(h>=A&&i+(f<5?Pf.get(f):0)<=17)return[f,h]}while(++c(t=wA((n=+A)*Io))+"px"),[e,t,n]}function bPe(e){e.show&&[e.font,e.labelFont].forEach(t=>{let n=Jo(t[2]*Io,1);t[0]=t[0].replace(/[0-9.]+px/,n+"px"),t[1]=n})}function Vr(e,t,n){const r={mode:ao(e.mode,1)},A=r.mode;function i(X,te,ie,ve){let Ge=te.valToPct(X);return ve+ie*(te.dir==-1?1-Ge:Ge)}function a(X,te,ie,ve){let Ge=te.valToPct(X);return ve+ie*(te.dir==-1?Ge:1-Ge)}function c(X,te,ie,ve){return te.ori==0?i(X,te,ie,ve):a(X,te,ie,ve)}r.valToPosH=i,r.valToPosV=a;let f=!1;r.status=0;const h=r.root=Ol(DOe);if(e.id!=null&&(h.id=e.id),Va(h,e.class),e.title){let X=Ol(MOe,h);X.textContent=e.title}const m=Rc("canvas"),I=r.ctx=m.getContext("2d"),v=Ol(FOe,h);ph("click",v,X=>{X.target===D&&(To!=ba||yo!=As)&&vo.click(r,X)},!0);const k=r.under=Ol(NOe,v);v.appendChild(m);const D=r.over=Ol(jOe,v);e=j1(e);const R=+ao(e.pxAlign,1),F=mne(R);(e.plugins||[]).forEach(X=>{X.opts&&(e=X.opts(r,e)||e)});const N=e.ms||.001,T=r.series=A==1?_ne(e.series||[],Ane,fne,!1):EPe(e.series||[null],dne),P=r.axes=_ne(e.axes||[],ine,lne,!0),G=r.scales={},Y=r.bands=e.bands||[];Y.forEach(X=>{X.fill=Hr(X.fill||null),X.dir=ao(X.dir,-1)});const z=A==2?T[1].facets[0].scale:T[0].scale,Z={axes:sr,series:ud},K=(e.drawOrder||["axes","series"]).map(X=>Z[X]);function re(X){const te=X.distr==3?ie=>J0(ie>0?ie:X.clamp(r,ie,X.min,X.max,X.key)):X.distr==4?ie=>HT(ie,X.asinh):X.distr==100?ie=>X.fwd(ie):ie=>ie;return ie=>{let ve=te(ie),{_min:Ge,_max:et}=X,ut=et-Ge;return(ve-Ge)/ut}}function V(X){let te=G[X];if(te==null){let ie=(e.scales||PC)[X]||PC;if(ie.from!=null){V(ie.from);let ve=dA({},G[ie.from],ie,{key:X});ve.valToPct=re(ve),G[X]=ve}else{te=G[X]=dA({},X==z?gne:APe,ie),te.key=X;let ve=te.time,Ge=te.range,et=Uf(Ge);if((X!=z||A==2&&!ve)&&(et&&(Ge[0]==null||Ge[1]==null)&&(Ge={min:Ge[0]==null?vte:{mode:1,hard:Ge[0],soft:Ge[0]},max:Ge[1]==null?vte:{mode:1,hard:Ge[1],soft:Ge[1]}},et=!1),!et&&l4(Ge))){let ut=Ge;Ge=(_t,Rt,Bt)=>Rt==null?N1:A4(Rt,Bt,ut)}te.range=Hr(Ge||(ve?IPe:X==z?te.distr==3?BPe:te.distr==4?yPe:kne:te.distr==3?Sne:te.distr==4?Dne:CPe)),te.auto=Hr(et?!1:te.auto),te.clamp=Hr(te.clamp||iPe),te._min=te._max=null,te.valToPct=re(te)}}}V("x"),V("y"),A==1&&T.forEach(X=>{V(X.scale)}),P.forEach(X=>{V(X.scale)});for(let X in e.scales)V(X);const oe=G[z],Be=oe.distr;let he,de;oe.ori==0?(Va(h,ROe),he=i,de=a):(Va(h,TOe),he=a,de=i);const me={};for(let X in G){let te=G[X];(te.min!=null||te.max!=null)&&(me[X]={min:te.min,max:te.max},te.min=te.max=null)}const Ae=e.tzDate||(X=>new Date(wA(X/N))),Ce=e.fmtDate||JT,ae=N==1?RLe(Ae):FLe(Ae),fe=Vte(Ae,Kte(N==1?DLe:MLe,Ce)),ye=$te(Ae,qte(jLe,Ce)),Oe=[],Ie=r.legend=dA({},PLe,e.legend),Fe=r.cursor=dA({},JLe,{drag:{y:A==2}},e.cursor),qe=Ie.show,Ze=Fe.show,Te=Ie.markers;Ie.idxs=Oe,Te.width=Hr(Te.width),Te.dash=Hr(Te.dash),Te.stroke=Hr(Te.stroke),Te.fill=Hr(Te.fill);let De,Se,Qe,Ye=[],At=[],Je,Nt=!1,jt={};if(Ie.live){const X=T[1]?T[1].values:null;Nt=X!=null,Je=Nt?X(r,1,0):{_:0};for(let te in Je)jt[te]=MT}if(qe)if(De=Rc("table",HOe,h),Qe=Rc("tbody",null,De),Ie.mount(r,De),Nt){Se=Rc("thead",null,De,Qe);let X=Rc("tr",null,Se);Rc("th",null,X);for(var bt in Je)Rc("th",ste,X).textContent=bt}else Va(De,zOe),Ie.live&&Va(De,YOe);const wt={show:!0},se={show:!1};function $t(X,te){if(te==0&&(Nt||!Ie.live||A==2))return N1;let ie=[],ve=Rc("tr",JOe,Qe,Qe.childNodes[te]);Va(ve,X.class),X.show||Va(ve,hh);let Ge=Rc("th",null,ve);if(Te.show){let _t=Ol(WOe,Ge);if(te>0){let Rt=Te.width(r,te);Rt&&(_t.style.border=Rt+"px "+Te.dash(r,te)+" "+Te.stroke(r,te)),_t.style.background=Te.fill(r,te)}}let et=Ol(ste,Ge);X.label instanceof HTMLElement?et.appendChild(X.label):et.textContent=X.label,te>0&&(Te.show||(et.style.color=X.width>0?Te.stroke(r,te):Te.fill(r,te)),fn("click",Ge,_t=>{if(Fe._lock)return;En(_t);let Rt=T.indexOf(X);if((_t.ctrlKey||_t.metaKey)!=Ie.isolate){let Bt=T.some((on,cn)=>cn>0&&cn!=Rt&&on.show);T.forEach((on,cn)=>{cn>0&&IA(cn,Bt?cn==Rt?wt:se:wt,!0,Mr.setSeries)})}else IA(Rt,{show:!X.show},!0,Mr.setSeries)},!1),ot&&fn(ute,Ge,_t=>{Fe._lock||(En(_t),IA(T.indexOf(X),al,!0,Mr.setSeries))},!1));for(var ut in Je){let _t=Rc("td",ZOe,ve);_t.textContent="--",ie.push(_t)}return[ve,ie]}const Sn=new Map;function fn(X,te,ie,ve=!0){const Ge=Sn.get(te)||{},et=Fe.bind[X](r,te,ie,ve);et&&(ph(X,te,Ge[X]=et),Sn.set(te,Ge))}function ue(X,te,ie){const ve=Sn.get(te)||{};for(let Ge in ve)(X==null||Ge==X)&&(LT(Ge,te,ve[Ge]),delete ve[Ge]);X==null&&Sn.delete(te)}let ln=0,Dt=0,Gt=0,It=0,Cn=0,wn=0,jr=Cn,Yr=wn,or=Gt,$r=It,xr=0,yr=0,Co=0,oi=0;r.bbox={};let pA=!1,mA=!1,Do=!1,ii=!1,Ni=!1,oo=!1;function yi(X,te,ie){(ie||X!=r.width||te!=r.height)&&kA(X,te),Ur(!1),Do=!0,mA=!0,_s()}function kA(X,te){r.width=ln=Gt=X,r.height=Dt=It=te,Cn=wn=0,ht(),ct();let ie=r.bbox;xr=ie.left=Eh(Cn*Io,.5),yr=ie.top=Eh(wn*Io,.5),Co=ie.width=Eh(Gt*Io,.5),oi=ie.height=Eh(It*Io,.5)}const EA=3;function Ne(){let X=!1,te=0;for(;!X;){te++;let ie=Qt(te),ve=tn(te);X=te==EA||ie&&ve,X||(kA(r.width,r.height),mA=!0)}}function $e({width:X,height:te}){yi(X,te)}r.setSize=$e;function ht(){let X=!1,te=!1,ie=!1,ve=!1;P.forEach((Ge,et)=>{if(Ge.show&&Ge._show){let{side:ut,_size:_t}=Ge,Rt=ut%2,Bt=Ge.label!=null?Ge.labelSize:0,on=_t+Bt;on>0&&(Rt?(Gt-=on,ut==3?(Cn+=on,ve=!0):ie=!0):(It-=on,ut==0?(wn+=on,X=!0):te=!0))}}),pn[0]=X,pn[1]=ie,pn[2]=te,pn[3]=ve,Gt-=zr[1]+zr[3],Cn+=zr[3],It-=zr[2]+zr[0],wn+=zr[0]}function ct(){let X=Cn+Gt,te=wn+It,ie=Cn,ve=wn;function Ge(et,ut){switch(et){case 1:return X+=ut,X-ut;case 2:return te+=ut,te-ut;case 3:return ie-=ut,ie+ut;case 0:return ve-=ut,ve+ut}}P.forEach((et,ut)=>{if(et.show&&et._show){let _t=et.side;et._pos=Ge(_t,et._size),et.label!=null&&(et._lpos=Ge(_t,et.labelSize))}})}if(Fe.dataIdx==null){let X=Fe.hover,te=X.skip=new Set(X.skip??[]);te.add(void 0);let ie=X.prox=Hr(X.prox),ve=X.bias??(X.bias=0);Fe.dataIdx=(Ge,et,ut,_t)=>{if(et==0)return ut;let Rt=ut,Bt=ie(Ge,et,ut,_t)??zo,on=Bt>=0&&Bt0;)te.has(Vn[Bn])||(ar=Bn);if(ve==0||ve==1)for(Bn=ut;Pn==null&&Bn++Bt&&(Rt=null);return Rt}}const En=X=>{Fe.event=X};Fe.idxs=Oe,Fe._lock=!1;let _e=Fe.points;_e.show=Hr(_e.show),_e.size=Hr(_e.size),_e.stroke=Hr(_e.stroke),_e.width=Hr(_e.width),_e.fill=Hr(_e.fill);const Le=r.focus=dA({},e.focus||{alpha:.3},Fe.focus),ot=Le.prox>=0,nt=ot&&_e.one;let Ct=[],pt=[],Pt=[];function vn(X,te){let ie=_e.show(r,te);if(ie instanceof HTMLElement)return Va(ie,GOe),Va(ie,X.class),Su(ie,-10,-10,Gt,It),D.insertBefore(ie,Ct[te]),ie}function ft(X,te){if(A==1||te>0){let ie=A==1&&G[X.scale].time,ve=X.value;X.value=ie?Nte(ve)?$te(Ae,qte(ve,Ce)):ve||ye:ve||nPe,X.label=X.label||(ie?ZLe:WLe)}if(nt||te>0){X.width=X.width==null?1:X.width,X.paths=X.paths||pPe||ALe,X.fillTo=Hr(X.fillTo||sPe),X.pxAlign=+ao(X.pxAlign,R),X.pxRound=mne(X.pxAlign),X.stroke=Hr(X.stroke||null),X.fill=Hr(X.fill||null),X._stroke=X._fill=X._paths=X._focus=null;let ie=rPe(Js(1,X.width),1),ve=X.points=dA({},{size:ie,width:Js(1,ie*.2),stroke:X.stroke,space:ie*2,paths:mPe,_stroke:null,_fill:null},X.points);ve.show=Hr(ve.show),ve.filter=Hr(ve.filter),ve.fill=Hr(ve.fill),ve.stroke=Hr(ve.stroke),ve.paths=Hr(ve.paths),ve.pxAlign=X.pxAlign}if(qe){let ie=$t(X,te);Ye.splice(te,0,ie[0]),At.splice(te,0,ie[1]),Ie.values.push(null)}if(Ze){Oe.splice(te,0,null);let ie=null;nt?te==0&&(ie=vn(X,te)):te>0&&(ie=vn(X,te)),Ct.splice(te,0,ie),pt.splice(te,0,0),Pt.splice(te,0,0)}bi("addSeries",te)}function Wt(X,te){te=te??T.length,X=A==1?AM(X,te,Ane,fne):AM(X,te,{},dne),T.splice(te,0,X),ft(T[te],te)}r.addSeries=Wt;function rn(X){if(T.splice(X,1),qe){Ie.values.splice(X,1),At.splice(X,1);let te=Ye.splice(X,1)[0];ue(null,te.firstChild),te.remove()}Ze&&(Oe.splice(X,1),Ct.splice(X,1)[0].remove(),pt.splice(X,1),Pt.splice(X,1)),bi("delSeries",X)}r.delSeries=rn;const pn=[!1,!1,!1,!1];function vr(X,te){if(X._show=X.show,X.show){let ie=X.side%2,ve=G[X.scale];ve==null&&(X.scale=ie?T[1].scale:z,ve=G[X.scale]);let Ge=ve.time;X.size=Hr(X.size),X.space=Hr(X.space),X.rotate=Hr(X.rotate),Uf(X.incrs)&&X.incrs.forEach(ut=>{!Pf.has(ut)&&Pf.set(ut,Mte(ut))}),X.incrs=Hr(X.incrs||(ve.distr==2?_Le:Ge?N==1?SLe:TLe:Ih)),X.splits=Hr(X.splits||(Ge&&ve.distr==1?ae:ve.distr==3?$T:ve.distr==4?VLe:KLe)),X.stroke=Hr(X.stroke),X.grid.stroke=Hr(X.grid.stroke),X.ticks.stroke=Hr(X.ticks.stroke),X.border.stroke=Hr(X.border.stroke);let et=X.values;X.values=Uf(et)&&!Uf(et[0])?Hr(et):Ge?Uf(et)?Vte(Ae,Kte(et,Ce)):Nte(et)?NLe(Ae,et):et||fe:et||XLe,X.filter=Hr(X.filter||(ve.distr>=3&&ve.log==10?ePe:ve.distr==3&&ve.log==2?tPe:Ste)),X.font=Rne(X.font),X.labelFont=Rne(X.labelFont),X._size=X.size(r,null,te,0),X._space=X._rotate=X._incrs=X._found=X._splits=X._values=null,X._size>0&&(pn[te]=!0,X._el=Ol(OOe,v))}}function uo(X,te,ie,ve){let[Ge,et,ut,_t]=ie,Rt=te%2,Bt=0;return Rt==0&&(_t||et)&&(Bt=te==0&&!Ge||te==2&&!ut?wA(ine.size/3):0),Rt==1&&(Ge||ut)&&(Bt=te==1&&!et||te==3&&!_t?wA(lne.size/2):0),Bt}const gr=r.padding=(e.padding||[uo,uo,uo,uo]).map(X=>Hr(ao(X,uo))),zr=r._padding=gr.map((X,te)=>X(r,te,pn,0));let Dn,y=null,Ot=null;const o=A==1?T[0].idxs:null;let E=null,qt=!1;function On(X,te){if(t=X??[],r.data=r._data=t,A==2){Dn=0;for(let ie=1;ie=0,oo=!0,_s()}}r.setData=On;function HA(){qt=!0;let X,te;A==1&&(Dn>0?(y=o[0]=0,Ot=o[1]=Dn-1,X=t[0][y],te=t[0][Ot],Be==2?(X=y,te=Ot):X==te&&(Be==3?[X,te]=i4(X,X,oe.log,!1):Be==4?[X,te]=PT(X,X,oe.log,!1):oe.time?te=X+wA(86400/N):[X,te]=A4(X,te,UT,!0))):(y=o[0]=X=null,Ot=o[1]=te=null)),oA(z,X,te)}let Ro,Rn,Ks,Ln,vi,Wc,Zc,Al,H,Xo;function Jt(X,te,ie,ve,Ge,et){X??(X=lte),ie??(ie=zT),ve??(ve="butt"),Ge??(Ge=lte),et??(et="round"),X!=Ro&&(I.strokeStyle=Ro=X),Ge!=Rn&&(I.fillStyle=Rn=Ge),te!=Ks&&(I.lineWidth=Ks=te),et!=vi&&(I.lineJoin=vi=et),ve!=Wc&&(I.lineCap=Wc=ve),ie!=Ln&&I.setLineDash(Ln=ie)}function va(X,te,ie,ve){te!=Rn&&(I.fillStyle=Rn=te),X!=Zc&&(I.font=Zc=X),ie!=Al&&(I.textAlign=Al=ie),ve!=H&&(I.textBaseline=H=ve)}function Fn(X,te,ie,ve,Ge=0){if(ve.length>0&&X.auto(r,qt)&&(te==null||te.min==null)){let et=ao(y,0),ut=ao(Ot,ve.length-1),_t=ie.min==null?eLe(ve,et,ut,Ge,X.distr==3):[ie.min,ie.max];X.min=Mc(X.min,ie.min=_t[0]),X.max=Js(X.max,ie.max=_t[1])}}const nA={min:null,max:null};function Vs(){for(let ve in G){let Ge=G[ve];me[ve]==null&&(Ge.min==null||me[z]!=null&&Ge.auto(r,qt))&&(me[ve]=nA)}for(let ve in G){let Ge=G[ve];me[ve]==null&&Ge.from!=null&&me[Ge.from]!=null&&(me[ve]=nA)}me[z]!=null&&Ur(!0);let X={};for(let ve in me){let Ge=me[ve];if(Ge!=null){let et=X[ve]=j1(G[ve],lLe);if(Ge.min!=null)dA(et,Ge);else if(ve!=z||A==2)if(Dn==0&&et.from==null){let ut=et.range(r,null,null,ve);et.min=ut[0],et.max=ut[1]}else et.min=zo,et.max=-zo}}if(Dn>0){T.forEach((ve,Ge)=>{if(A==1){let et=ve.scale,ut=me[et];if(ut==null)return;let _t=X[et];if(Ge==0){let Rt=_t.range(r,_t.min,_t.max,et);_t.min=Rt[0],_t.max=Rt[1],y=Tc(_t.min,t[0]),Ot=Tc(_t.max,t[0]),Ot-y>1&&(t[0][y]<_t.min&&y++,t[0][Ot]>_t.max&&Ot--),ve.min=E[y],ve.max=E[Ot]}else ve.show&&ve.auto&&Fn(_t,ut,ve,t[Ge],ve.sorted);ve.idxs[0]=y,ve.idxs[1]=Ot}else if(Ge>0&&ve.show&&ve.auto){let[et,ut]=ve.facets,_t=et.scale,Rt=ut.scale,[Bt,on]=t[Ge],cn=X[_t],Zn=X[Rt];cn!=null&&Fn(cn,me[_t],et,Bt,et.sorted),Zn!=null&&Fn(Zn,me[Rt],ut,on,ut.sorted),ve.min=ut.min,ve.max=ut.max}});for(let ve in X){let Ge=X[ve],et=me[ve];if(Ge.from==null&&(et==null||et.min==null)){let ut=Ge.range(r,Ge.min==zo?null:Ge.min,Ge.max==-zo?null:Ge.max,ve);Ge.min=ut[0],Ge.max=ut[1]}}}for(let ve in X){let Ge=X[ve];if(Ge.from!=null){let et=X[Ge.from];if(et.min==null)Ge.min=Ge.max=null;else{let ut=Ge.range(r,et.min,et.max,ve);Ge.min=ut[0],Ge.max=ut[1]}}}let te={},ie=!1;for(let ve in X){let Ge=X[ve],et=G[ve];if(et.min!=Ge.min||et.max!=Ge.max){et.min=Ge.min,et.max=Ge.max;let ut=et.distr;et._min=ut==3?J0(et.min):ut==4?HT(et.min,et.asinh):ut==100?et.fwd(et.min):et.min,et._max=ut==3?J0(et.max):ut==4?HT(et.max,et.asinh):ut==100?et.fwd(et.max):et.max,te[ve]=ie=!0}}if(ie){T.forEach((ve,Ge)=>{A==2?Ge>0&&te.y&&(ve._paths=null):te[ve.scale]&&(ve._paths=null)});for(let ve in te)Do=!0,bi("setScale",ve);Ze&&Fe.left>=0&&(ii=oo=!0)}for(let ve in me)me[ve]=null}function YA(X){let te=YT(y-1,0,Dn-1),ie=YT(Ot+1,0,Dn-1);for(;X[te]==null&&te>0;)te--;for(;X[ie]==null&&ie0){let X=T.some(te=>te._focus)&&Xo!=Le.alpha;X&&(I.globalAlpha=Xo=Le.alpha),T.forEach((te,ie)=>{if(ie>0&&te.show&&(ql(ie,!1),ql(ie,!0),te._paths==null)){let ve=Xo;Xo!=te.alpha&&(I.globalAlpha=Xo=te.alpha);let Ge=A==2?[0,t[ie][0].length-1]:YA(t[ie]);te._paths=te.paths(r,ie,Ge[0],Ge[1]),Xo!=ve&&(I.globalAlpha=Xo=ve)}}),T.forEach((te,ie)=>{if(ie>0&&te.show){let ve=Xo;Xo!=te.alpha&&(I.globalAlpha=Xo=te.alpha),te._paths!=null&&Hn(ie,!1);{let Ge=te._paths!=null?te._paths.gaps:null,et=te.points.show(r,ie,y,Ot,Ge),ut=te.points.filter(r,ie,et,Ge);(et||ut)&&(te.points._paths=te.points.paths(r,ie,y,Ot,ut),Hn(ie,!0))}Xo!=ve&&(I.globalAlpha=Xo=ve),bi("drawSeries",ie)}}),X&&(I.globalAlpha=Xo=1)}}function ql(X,te){let ie=te?T[X].points:T[X];ie._stroke=ie.stroke(r,X),ie._fill=ie.fill(r,X)}function Hn(X,te){let ie=te?T[X].points:T[X],{stroke:ve,fill:Ge,clip:et,flags:ut,_stroke:_t=ie._stroke,_fill:Rt=ie._fill,_width:Bt=ie.width}=ie._paths;Bt=Jo(Bt*Io,3);let on=null,cn=Bt%2/2;te&&Rt==null&&(Rt=Bt>0?"#fff":_t);let Zn=ie.pxAlign==1&&cn>0;if(Zn&&I.translate(cn,cn),!te){let br=xr-Bt/2,Vn=yr-Bt/2,ar=Co+Bt,Pn=oi+Bt;on=new Path2D,on.rect(br,Vn,ar,Pn)}te?ec(_t,Bt,ie.dash,ie.cap,Rt,ve,Ge,ut,et):$l(X,_t,Bt,ie.dash,ie.cap,Rt,ve,Ge,ut,on,et),Zn&&I.translate(-cn,-cn)}function $l(X,te,ie,ve,Ge,et,ut,_t,Rt,Bt,on){let cn=!1;Rt!=0&&Y.forEach((Zn,br)=>{if(Zn.series[0]==X){let Vn=T[Zn.series[1]],ar=t[Zn.series[1]],Pn=(Vn._paths||PC).band;Uf(Pn)&&(Pn=Zn.dir==1?Pn[0]:Pn[1]);let Bn,bo=null;Vn.show&&Pn&&nLe(ar,y,Ot)?(bo=Zn.fill(r,br)||et,Bn=Vn._paths.clip):Pn=null,ec(te,ie,ve,Ge,bo,ut,_t,Rt,Bt,on,Bn,Pn),cn=!0}}),cn||ec(te,ie,ve,Ge,et,ut,_t,Rt,Bt,on)}const Xc=L1|tM;function ec(X,te,ie,ve,Ge,et,ut,_t,Rt,Bt,on,cn){Jt(X,te,ie,ve,Ge),(Rt||Bt||cn)&&(I.save(),Rt&&I.clip(Rt),Bt&&I.clip(Bt)),cn?(_t&Xc)==Xc?(I.clip(cn),on&&I.clip(on),Ee(Ge,ut),ee(X,et,te)):_t&tM?(Ee(Ge,ut),I.clip(cn),ee(X,et,te)):_t&L1&&(I.save(),I.clip(cn),on&&I.clip(on),Ee(Ge,ut),I.restore(),ee(X,et,te)):(Ee(Ge,ut),ee(X,et,te)),(Rt||Bt||cn)&&I.restore()}function ee(X,te,ie){ie>0&&(te instanceof Map?te.forEach((ve,Ge)=>{I.strokeStyle=Ro=Ge,I.stroke(ve)}):te!=null&&X&&I.stroke(te))}function Ee(X,te){te instanceof Map?te.forEach((ie,ve)=>{I.fillStyle=Rn=ve,I.fill(ie)}):te!=null&&X&&I.fill(te)}function Me(X,te,ie,ve){let Ge=P[X],et;if(ve<=0)et=[0,0];else{let ut=Ge._space=Ge.space(r,X,te,ie,ve),_t=Ge._incrs=Ge.incrs(r,X,te,ie,ve,ut);et=vPe(te,ie,_t,ve,ut)}return Ge._found=et}function it(X,te,ie,ve,Ge,et,ut,_t,Rt,Bt){let on=ut%2/2;R==1&&I.translate(on,on),Jt(_t,ut,Rt,Bt,_t),I.beginPath();let cn,Zn,br,Vn,ar=Ge+(ve==0||ve==3?-et:et);ie==0?(Zn=Ge,Vn=ar):(cn=Ge,br=ar);for(let Pn=0;Pn{if(!ie.show)return;let Ge=G[ie.scale];if(Ge.min==null){ie._show&&(te=!1,ie._show=!1,Ur(!1));return}else ie._show||(te=!1,ie._show=!0,Ur(!1));let et=ie.side,ut=et%2,{min:_t,max:Rt}=Ge,[Bt,on]=Me(ve,_t,Rt,ut==0?Gt:It);if(on==0)return;let cn=Ge.distr==2,Zn=ie._splits=ie.splits(r,ve,_t,Rt,Bt,on,cn),br=Ge.distr==2?Zn.map(Bn=>E[Bn]):Zn,Vn=Ge.distr==2?E[Zn[1]]-E[Zn[0]]:Bt,ar=ie._values=ie.values(r,ie.filter(r,br,ve,on,Vn),ve,on,Vn);ie._rotate=et==2?ie.rotate(r,ar,ve,on):0;let Pn=ie._size;ie._size=Ll(ie.size(r,ar,ve,X)),Pn!=null&&ie._size!=Pn&&(te=!1)}),te}function tn(X){let te=!0;return gr.forEach((ie,ve)=>{let Ge=ie(r,ve,pn,X);Ge!=zr[ve]&&(te=!1),zr[ve]=Ge}),te}function sr(){for(let X=0;XE[Ao]):br,ar=on.distr==2?E[br[1]]-E[br[0]]:Rt,Pn=te.ticks,Bn=te.border,bo=Pn.show?Pn.size:0,_r=wA(bo*Io),Pi=wA((te.alignTo==2?te._size-bo-te.gap:te.gap)*Io),qn=te._rotate*-s4/180,He=F(te._pos*Io),lt=(_r+Pi)*_t,rt=He+lt;et=ve==0?rt:0,Ge=ve==1?rt:0;let Kt=te.font[0],xn=te.align==1?R1:te.align==2?ST:qn>0?R1:qn<0?ST:ve==0?"center":ie==3?ST:R1,$n=qn||ve==1?"middle":ie==2?jC:ate;va(Kt,ut,xn,$n);let Jr=te.font[1]*te.lineGap,nn=br.map(Ao=>F(c(Ao,on,cn,Zn))),Po=te._values;for(let Ao=0;Ao{ie>0&&(te._paths=null,X&&(A==1?(te.min=null,te.max=null):te.facets.forEach(ve=>{ve.min=null,ve.max=null})))})}let ji=!1,Oi=!1,Ai=[];function Fm(){Oi=!1;for(let X=0;X0&&queueMicrotask(Fm)}r.batch=Ag;function $u(){if(pA&&(Vs(),pA=!1),Do&&(Ne(),Do=!1),mA){if(di(k,R1,Cn),di(k,jC,wn),di(k,FC,Gt),di(k,NC,It),di(D,R1,Cn),di(D,jC,wn),di(D,FC,Gt),di(D,NC,It),di(v,FC,ln),di(v,NC,Dt),m.width=wA(ln*Io),m.height=wA(Dt*Io),P.forEach(({_el:X,_show:te,_size:ie,_pos:ve,side:Ge})=>{if(X!=null)if(te){let et=Ge===3||Ge===0?ie:0,ut=Ge%2==1;di(X,ut?"left":"top",ve-et),di(X,ut?"width":"height",ie),di(X,ut?"top":"left",ut?wn:Cn),di(X,ut?"height":"width",ut?It:Gt),jT(X,hh)}else Va(X,hh)}),Ro=Rn=Ks=vi=Wc=Zc=Al=H=Ln=null,Xo=1,nc(!0),Cn!=jr||wn!=Yr||Gt!=or||It!=$r){Ur(!1);let X=Gt/or,te=It/$r;if(Ze&&!ii&&Fe.left>=0){Fe.left*=X,Fe.top*=te,eo&&Su(eo,wA(Fe.left),0,Gt,It),Kc&&Su(Kc,0,wA(Fe.top),Gt,It);for(let ie=0;ie=0&&go.width>0){go.left*=X,go.width*=X,go.top*=te,go.height*=te;for(let ie in r0)di(tc,ie,go[ie])}jr=Cn,Yr=wn,or=Gt,$r=It}bi("setSize"),mA=!1}ln>0&&Dt>0&&(I.clearRect(0,0,m.width,m.height),bi("drawClear"),K.forEach(X=>X()),bi("draw")),go.show&&Ni&&(No(go),Ni=!1),Ze&&ii&&(SA(null,!0,!1),ii=!1),Ie.show&&Ie.live&&oo&&(ho(),oo=!1),f||(f=!0,r.status=1,bi("ready")),qt=!1,ji=!1}r.redraw=(X,te)=>{Do=te||!1,X!==!1?oA(z,oe.min,oe.max):_s()};function e0(X,te){let ie=G[X];if(ie.from==null){if(Dn==0){let ve=ie.range(r,te.min,te.max,X);te.min=ve[0],te.max=ve[1]}if(te.min>te.max){let ve=te.min;te.min=te.max,te.max=ve}if(Dn>1&&te.min!=null&&te.max!=null&&te.max-te.min<1e-16)return;X==z&&ie.distr==2&&Dn>0&&(te.min=Tc(te.min,t[0]),te.max=Tc(te.max,t[0]),te.min==te.max&&te.max++),me[X]=te,pA=!0,_s()}}r.setScale=e0;let dd,fd,eo,Kc,gd,_2,ba,As,Bo,fo,To,yo,rA=!1;const vo=Fe.drag;let Ko=vo.x,io=vo.y;Ze&&(Fe.x&&(dd=Ol(POe,D)),Fe.y&&(fd=Ol(UOe,D)),oe.ori==0?(eo=dd,Kc=fd):(eo=fd,Kc=dd),To=Fe.left,yo=Fe.top);const go=r.select=dA({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),tc=go.show?Ol(LOe,go.over?D:k):null;function No(X,te){if(go.show){for(let ie in X)go[ie]=X[ie],ie in r0&&di(tc,ie,X[ie]);te!==!1&&bi("setSelect")}}r.setSelect=No;function hd(X){if(T[X].show)qe&&jT(Ye[X],hh);else if(qe&&Va(Ye[X],hh),Ze){let te=nt?Ct[0]:Ct[X];te!=null&&Su(te,-10,-10,Gt,It)}}function oA(X,te,ie){e0(X,{min:te,max:ie})}function IA(X,te,ie,ve){te.focus!=null&&Gr(X),te.show!=null&&T.forEach((Ge,et)=>{et>0&&(X==et||X==null)&&(Ge.show=te.show,hd(et),A==2?(oA(Ge.facets[0].scale,null,null),oA(Ge.facets[1].scale,null,null)):oA(Ge.scale,null,null),_s())}),ie!==!1&&bi("setSeries",X,te),ve&&tu("setSeries",r,X,te)}r.setSeries=IA;function ks(X,te){dA(Y[X],te)}function zA(X,te){X.fill=Hr(X.fill||null),X.dir=ao(X.dir,-1),te=te??Y.length,Y.splice(te,0,X)}function pd(X){X==null?Y.length=0:Y.splice(X,1)}r.addBand=zA,r.setBand=ks,r.delBand=pd;function md(X,te){T[X].alpha=te,Ze&&Ct[X]!=null&&(Ct[X].style.opacity=te),qe&&Ye[X]&&(Ye[X].style.opacity=te)}let qs,$s,sl;const al={focus:!0};function Gr(X){if(X!=sl){let te=X==null,ie=Le.alpha!=1;T.forEach((ve,Ge)=>{if(A==1||Ge>0){let et=te||Ge==0||Ge==X;ve._focus=te?null:et,ie&&md(Ge,et?1:Le.alpha)}}),sl=X,ie&&_s()}}qe&&ot&&fn(dte,De,X=>{Fe._lock||(En(X),sl!=null&&IA(null,al,!0,Mr.setSeries))});function Ss(X,te,ie){let ve=G[te];ie&&(X=X/Io-(ve.ori==1?wn:Cn));let Ge=Gt;ve.ori==1&&(Ge=It,X=Ge-X),ve.dir==-1&&(X=Ge-X);let et=ve._min,ut=ve._max,_t=X/Ge,Rt=et+(ut-et)*_t,Bt=ve.distr;return Bt==3?F1(10,Rt):Bt==4?oLe(Rt,ve.asinh):Bt==100?ve.bwd(Rt):Rt}function JA(X,te){let ie=Ss(X,z,te);return Tc(ie,t[0],y,Ot)}r.valToIdx=X=>Tc(X,t[0]),r.posToIdx=JA,r.posToVal=Ss,r.valToPos=(X,te,ie)=>G[te].ori==0?i(X,G[te],ie?Co:Gt,ie?xr:0):a(X,G[te],ie?oi:It,ie?yr:0),r.setCursor=(X,te,ie)=>{To=X.left,yo=X.top,SA(null,te,ie)};function sg(X,te){di(tc,R1,go.left=X),di(tc,FC,go.width=te)}function Ed(X,te){di(tc,jC,go.top=X),di(tc,NC,go.height=te)}let ss=oe.ori==0?sg:Ed,ll=oe.ori==1?sg:Ed;function Ji(){if(qe&&Ie.live)for(let X=A==2?1:0;X{Oe[ve]=ie}):aLe(X.idx)||Oe.fill(X.idx),Ie.idx=Oe[0]),qe&&Ie.live){for(let ie=0;ie0||A==1&&!Nt)&&cl(ie,Oe[ie]);Ji()}oo=!1,te!==!1&&bi("setLegend")}r.setLegend=ho;function cl(X,te){let ie=T[X],ve=X==0&&Be==2?E:t[X],Ge;Nt?Ge=ie.values(r,X,te)??jt:(Ge=ie.value(r,te==null?null:ve[te],X,te),Ge=Ge==null?jt:{_:Ge}),Ie.values[X]=Ge}function SA(X,te,ie){Bo=To,fo=yo,[To,yo]=Fe.move(r,To,yo),Fe.left=To,Fe.top=yo,Ze&&(eo&&Su(eo,wA(To),0,Gt,It),Kc&&Su(Kc,0,wA(yo),Gt,It));let ve,Ge=y>Ot;qs=zo,$s=null;let et=oe.ori==0?Gt:It,ut=oe.ori==1?Gt:It;if(To<0||Dn==0||Ge){ve=Fe.idx=null;for(let _t=0;_t0&&bo.show){let lt=qn==null?-10:qn==ve?Bt:he(A==1?t[0][qn]:t[Bn][0][qn],oe,et,0),rt=He==null?-10:de(He,A==1?G[bo.scale]:G[bo.facets[1].scale],ut,0);if(ot&&He!=null){let Kt=oe.ori==1?To:yo,xn=QA(Le.dist(r,Bn,qn,rt,Kt));if(xn=0?1:-1,Po=Jr>=0?1:-1;Po==nn&&(Po==1?$n==1?He>=Jr:He<=Jr:$n==1?He<=Jr:He>=Jr)&&(qs=xn,$s=Bn)}else qs=xn,$s=Bn}}if(oo||nt){let Kt,xn;oe.ori==0?(Kt=lt,xn=rt):(Kt=rt,xn=lt);let $n,Jr,nn,Po,ls,Ao,Wi=!0,ul=_e.bbox;if(ul!=null){Wi=!1;let si=ul(r,Bn);nn=si.left,Po=si.top,$n=si.width,Jr=si.height}else nn=Kt,Po=xn,$n=Jr=_e.size(r,Bn);if(Ao=_e.fill(r,Bn),ls=_e.stroke(r,Bn),nt)Bn==$s&&qs<=Le.prox&&(on=nn,cn=Po,Zn=$n,br=Jr,Vn=Wi,ar=Ao,Pn=ls);else{let si=Ct[Bn];si!=null&&(pt[Bn]=nn,Pt[Bn]=Po,Ite(si,$n,Jr,Wi),mte(si,Ao,ls),Su(si,Ll(nn),Ll(Po),Gt,It))}}}}if(nt){let Bn=Le.prox,bo=sl==null?qs<=Bn:qs>Bn||$s!=sl;if(oo||bo){let _r=Ct[0];_r!=null&&(pt[0]=on,Pt[0]=cn,Ite(_r,Zn,br,Vn),mte(_r,ar,Pn),Su(_r,Ll(on),Ll(cn),Gt,It))}}}if(go.show&&rA)if(X!=null){let[_t,Rt]=Mr.scales,[Bt,on]=Mr.match,[cn,Zn]=X.cursor.sync.scales,br=X.cursor.drag;if(Ko=br._x,io=br._y,Ko||io){let{left:Vn,top:ar,width:Pn,height:Bn}=X.select,bo=X.scales[cn].ori,_r=X.posToVal,Pi,qn,He,lt,rt,Kt=_t!=null&&Bt(_t,cn),xn=Rt!=null&&on(Rt,Zn);Kt&&Ko?(bo==0?(Pi=Vn,qn=Pn):(Pi=ar,qn=Bn),He=G[_t],lt=he(_r(Pi,cn),He,et,0),rt=he(_r(Pi+qn,cn),He,et,0),ss(Mc(lt,rt),QA(rt-lt))):ss(0,et),xn&&io?(bo==1?(Pi=Vn,qn=Pn):(Pi=ar,qn=Bn),He=G[Rt],lt=de(_r(Pi,Zn),He,ut,0),rt=de(_r(Pi+qn,Zn),He,ut,0),ll(Mc(lt,rt),QA(rt-lt))):ll(0,ut)}else Id()}else{let _t=QA(Bo-gd),Rt=QA(fo-_2);if(oe.ori==1){let Zn=_t;_t=Rt,Rt=Zn}Ko=vo.x&&_t>=vo.dist,io=vo.y&&Rt>=vo.dist;let Bt=vo.uni;Bt!=null?Ko&&io&&(Ko=_t>=Bt,io=Rt>=Bt,!Ko&&!io&&(Rt>_t?io=!0:Ko=!0)):vo.x&&vo.y&&(Ko||io)&&(Ko=io=!0);let on,cn;Ko&&(oe.ori==0?(on=ba,cn=To):(on=As,cn=yo),ss(Mc(on,cn),QA(cn-on)),io||ll(0,ut)),io&&(oe.ori==1?(on=ba,cn=To):(on=As,cn=yo),ll(Mc(on,cn),QA(cn-on)),Ko||ss(0,et)),!Ko&&!io&&(ss(0,0),ll(0,0))}if(vo._x=Ko,vo._y=io,X==null){if(ie){if(eu!=null){let[_t,Rt]=Mr.scales;Mr.values[0]=_t!=null?Ss(oe.ori==0?To:yo,_t):null,Mr.values[1]=Rt!=null?Ss(oe.ori==1?To:yo,Rt):null}tu(RT,r,To,yo,Gt,It,ve)}if(ot){let _t=ie&&Mr.setSeries,Rt=Le.prox;sl==null?qs<=Rt&&IA($s,al,!0,_t):qs>Rt?IA(null,al,!0,_t):$s!=sl&&IA($s,al,!0,_t)}}oo&&(Ie.idx=ve,ho()),te!==!1&&bi("setCursor")}let Qa=null;Object.defineProperty(r,"rect",{get(){return Qa==null&&nc(!1),Qa}});function nc(X=!1){X?Qa=null:(Qa=D.getBoundingClientRect(),bi("syncRect",Qa))}function t0(X,te,ie,ve,Ge,et,ut){Fe._lock||rA&&X!=null&&X.movementX==0&&X.movementY==0||(n0(X,te,ie,ve,Ge,et,ut,!1,X!=null),X!=null?SA(null,!0,!0):SA(te,!0,!1))}function n0(X,te,ie,ve,Ge,et,ut,_t,Rt){if(Qa==null&&nc(!1),En(X),X!=null)ie=X.clientX-Qa.left,ve=X.clientY-Qa.top;else{if(ie<0||ve<0){To=-10,yo=-10;return}let[Bt,on]=Mr.scales,cn=te.cursor.sync,[Zn,br]=cn.values,[Vn,ar]=cn.scales,[Pn,Bn]=Mr.match,bo=te.axes[0].side%2==1,_r=oe.ori==0?Gt:It,Pi=oe.ori==1?Gt:It,qn=bo?et:Ge,He=bo?Ge:et,lt=bo?ve:ie,rt=bo?ie:ve;if(Vn!=null?ie=Pn(Bt,Vn)?c(Zn,G[Bt],_r,0):-10:ie=_r*(lt/qn),ar!=null?ve=Bn(on,ar)?c(br,G[on],Pi,0):-10:ve=Pi*(rt/He),oe.ori==1){let Kt=ie;ie=ve,ve=Kt}}Rt&&(te==null||te.cursor.event.type==RT)&&((ie<=1||ie>=Gt-1)&&(ie=Eh(ie,Gt)),(ve<=1||ve>=It-1)&&(ve=Eh(ve,It))),_t?(gd=ie,_2=ve,[ba,As]=Fe.move(r,ie,ve)):(To=ie,yo=ve)}const r0={width:0,height:0,left:0,top:0};function Id(){No(r0,!1)}let rc,as,o0,Cd;function ag(X,te,ie,ve,Ge,et,ut){rA=!0,Ko=io=vo._x=vo._y=!1,n0(X,te,ie,ve,Ge,et,ut,!0,!1),X!=null&&(fn(TT,FT,i0,!1),tu(cte,r,ba,As,Gt,It,null));let{left:_t,top:Rt,width:Bt,height:on}=go;rc=_t,as=Rt,o0=Bt,Cd=on}function i0(X,te,ie,ve,Ge,et,ut){rA=vo._x=vo._y=!1,n0(X,te,ie,ve,Ge,et,ut,!1,!0);let{left:_t,top:Rt,width:Bt,height:on}=go,cn=Bt>0||on>0,Zn=rc!=_t||as!=Rt||o0!=Bt||Cd!=on;if(cn&&Zn&&No(go),vo.setScale&&cn&&Zn){let br=_t,Vn=Bt,ar=Rt,Pn=on;if(oe.ori==1&&(br=Rt,Vn=on,ar=_t,Pn=Bt),Ko&&oA(z,Ss(br,z),Ss(br+Vn,z)),io)for(let Bn in G){let bo=G[Bn];Bn!=z&&bo.from==null&&bo.min!=zo&&oA(Bn,Ss(ar+Pn,Bn),Ss(ar,Bn))}Id()}else Fe.lock&&(Fe._lock=!Fe._lock,SA(te,!0,X!=null));X!=null&&(ue(TT,FT),tu(TT,r,To,yo,Gt,It,null))}function Bd(X,te,ie,ve,Ge,et,ut){if(Fe._lock)return;En(X);let _t=rA;if(rA){let Rt=!0,Bt=!0,on=10,cn,Zn;oe.ori==0?(cn=Ko,Zn=io):(cn=io,Zn=Ko),cn&&Zn&&(Rt=To<=on||To>=Gt-on,Bt=yo<=on||yo>=It-on),cn&&Rt&&(To=To{let Ge=Mr.match[2];ie=Ge(r,te,ie),ie!=-1&&IA(ie,ve,!0,!1)},Ze&&(fn(cte,D,ag),fn(RT,D,t0),fn(ute,D,X=>{En(X),nc(!1)}),fn(dte,D,Bd),fn(fte,D,Li),iM.add(r),r.syncRect=nc);const qc=r.hooks=e.hooks||{};function bi(X,te,ie){Oi?Ai.push([X,te,ie]):X in qc&&qc[X].forEach(ve=>{ve.call(null,r,te,ie)})}(e.plugins||[]).forEach(X=>{for(let te in X.hooks)qc[te]=(qc[te]||[]).concat(X.hooks[te])});const $c=(X,te,ie)=>ie,Mr=dA({key:null,setSeries:!1,filters:{pub:Dte,sub:Dte},scales:[z,T[1]?T[1].scale:null],match:[Rte,Rte,$c],values:[null,null]},Fe.sync);Mr.match.length==2&&Mr.match.push($c),Fe.sync=Mr;const eu=Mr.key,wa=pne(eu);function tu(X,te,ie,ve,Ge,et,ut){Mr.filters.pub(X,te,ie,ve,Ge,et,ut)&&wa.pub(X,te,ie,ve,Ge,et,ut)}wa.sub(r);function lg(X,te,ie,ve,Ge,et,ut){Mr.filters.sub(X,te,ie,ve,Ge,et,ut)&&zt[X](null,te,ie,ve,Ge,et,ut)}r.pub=lg;function k2(){wa.unsub(r),iM.delete(r),Sn.clear(),LT(n4,M1,Vc),h.remove(),De==null||De.remove(),bi("destroy")}r.destroy=k2;function cg(){bi("init",e,t),On(t||e.data,!1),me[z]?e0(z,me[z]):HA(),Ni=go.show&&(go.width>0||go.height>0),ii=oo=!0,yi(e.width,e.height)}return T.forEach(ft),P.forEach(vr),n?n instanceof HTMLElement?(n.appendChild(h),cg()):n(r,cg):cg(),r}Vr.assign=dA,Vr.fmtNum=GT,Vr.rangeNum=A4,Vr.rangeLog=i4,Vr.rangeAsinh=PT,Vr.orient=Ch,Vr.pxRatio=Io,Vr.join=hLe,Vr.fmtDate=JT,Vr.tzDate=wLe,Vr.sync=pne;{Vr.addGap=aPe,Vr.clipGaps=f4;let e=Vr.paths={points:vne};e.linear=Qne,e.stepped=uPe,e.bars=dPe,e.spline=gPe}Object.is||Object.defineProperty(Object,"is",{value:(e,t)=>e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t});const QPe=(e,t)=>{const{width:n,height:r,...A}=e,{width:i,height:a,...c}=t;let f="keep";if((r!==a||n!==i)&&(f="update"),Object.keys(A).length!==Object.keys(c).length)return"create";for(const h of Object.keys(A))if(!Object.is(A[h],c[h])){f="create";break}return f},wPe=(e,t)=>e.length!==t.length?!1:e.every((n,r)=>{const A=t[r];if(n.length!==A.length)return!1;if(Array.isArray(n))return n.every((i,a)=>i===A[a])});function m4(e,t,n,r,A,i){return e>r?(t=A,n=i):ti&&(n=i,t=i-e),[t,n]}const Tne=Ke({}),E4=Ke(null,(e,t,n,r)=>{const{chartId:A,isMatchingChartId:i}=r||{},a=e(Tne);if(A&&a[A])n(a[A],A);else for(const[c,f]of Object.entries(a))i&&!i(c)||n(f,c)}),xPe="_uplot_1swaw_1",_Pe={uplot:xPe};function Bh({id:e,options:t,data:n,target:r,onDelete:A,onCreate:i,resetScales:a=!0,className:c}){var P,G;const f=b.useRef(null),h=b.useRef(null),m=b.useRef(t),I=b.useRef(r),v=b.useRef(n),k=b.useRef(i),D=b.useRef(A),R=dt(Tne);b.useEffect(()=>{k.current=i,D.current=A});const F=b.useCallback(Y=>{var z;Y&&((z=D.current)==null||z.call(D,Y),Y.destroy(),f.current=null,R(Z=>{const K={...Z};return delete K[e],K}))},[e,R]),N=b.useCallback(()=>{var z;const Y=new Vr(m.current,v.current,I.current||h.current);f.current=Y,R(Z=>({...Z,[e]:Y})),(z=k.current)==null||z.call(k,Y)},[e,R]);b.useEffect(()=>(N(),()=>{F(f.current)}),[N,F]),b.useEffect(()=>{if(m.current!==t){const Y=QPe(m.current,t);m.current=t,!f.current||Y==="create"?(F(f.current),N()):Y==="update"&&f.current.setSize({width:t.width,height:t.height})}},[t,N,F]),b.useEffect(()=>{v.current!==n&&(f.current?wPe(v.current,n)||(a?f.current.setData(n,!0):(f.current.setData(n,!1),f.current.redraw())):(v.current=n,N()),v.current=n)},[n,a,N]),b.useEffect(()=>(I.current!==r&&(I.current=r,N()),()=>F(f.current)),[r,N,F]);const T=ha(()=>{requestAnimationFrame(()=>{var Y;return(Y=f.current)==null?void 0:Y.setSize({width:m.current.width,height:m.current.height})})},500,{leading:!0,trailing:!0});return(t.height!==((P=f.current)==null?void 0:P.height)||t.width!==((G=f.current)==null?void 0:G.width))&&T(),r?null:p.jsx("div",{id:e,ref:h,className:xt(_Pe.uplot,c)})}function Mne(e,t,n,r){if(!n)return 0;const A=Math.ceil((e-t+1)/n);return Math.min(A-1,r)}function sM(e,t){return t==null?!1:e<=t}function aM(e,t){return t.has(e)}function lM(e,t){return t.has(e)}function I4(e,t,n){for(let r=t;r>=e;r--)if(n(r))return!0;return!1}function kPe(e,t,n,r,A,i,a){return i?PV:A?LV:I4(e,t,c=>!sM(c,n)&&!aM(c,r)&&!lM(c,a))?UV:I4(e,t,c=>!sM(c,n)&&aM(c,r))?zV:I4(e,t,c=>!sM(c,n)&&lM(c,a))?YV:I4(e,t,c=>!aM(c,r)&&!lM(c,a))?HV:GV}const SPe=ns(),Fne=4,DPe=Fne;function RPe(e,t){return{hooks:{drawSeries:[n=>{const r=e.current.totalSlotsEstimate;if(r==null||!t.current)return;const A=n.ctx;A.save();const i=n.bbox.top,a=n.bbox.height,c=Fne*window.devicePixelRatio,f=DPe*window.devicePixelRatio,h=c/2,m=Math.trunc((n.bbox.width+f)/(c+f)),I=r/m,{startSlot:v,repairSlots:k,latestReplaySlot:D,firstTurbineSlot:R,latestTurbineSlot:F,turbineSlots:N}=t.current,T=Mne(F,v,I,m-1),P=Mne(R,v,I,m-1),G=SPe.get(_R);G==null||G.style.setProperty("--turbine-start-x",`${cM(P,c,f)/window.devicePixelRatio}px`),G==null||G.style.setProperty("--turbine-head-x",`${cM(T,c,f)/window.devicePixelRatio}px`);const Y=new Map;for(let z=0;z<=T;z++){const Z=z*I,K=v+Math.trunc(Z),re=(z+1)*I,V=Math.min(F,v+Math.ceil(re)-1),oe=cM(z,c,f),Be=kPe(K,V,D,k,z===P,z===T,N),he=Y.get(Be)??[];he.push(oe),Y.set(Be,he)}for(const[z,Z]of Y.entries()){A.fillStyle=z,A.beginPath();for(const K of Z)A.roundRect(K,i,c,a,h);A.fill()}A.restore()}]}}}function cM(e,t,n){return e*(t+n)}const TPe=[[0],[null]];function MPe({catchingUpRatesRef:e}){const[t,n]=Ka(),r=we(ch),A=we(d9e),i=we(t$),a=we(n$),c=we(B1),f=we(Jp),h=b.useRef(),m=b.useRef(),I=b.useMemo(()=>({width:0,height:0,scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{points:{show:!1}}],cursor:{x:!1,y:!1},legend:{show:!1},plugins:[RPe(e,h)]}),[h,e]);I.width=n.width,I.height=n.height;const v=b.useCallback(R=>{m.current=R},[]),k=b.useCallback(R=>{var F;h.current=R,(F=m.current)==null||F.redraw()},[]),D=ha(k,100,{trailing:!0});if(b.useEffect(()=>{r==null||!i.size||a==null||c==null||D({startSlot:r,repairSlots:A,turbineSlots:i,firstTurbineSlot:a,latestTurbineSlot:c,latestReplaySlot:f})},[a,f,c,A,r,D,i]),!(r==null||!i.size||a==null||c==null))return p.jsx(rr,{height:"77px",ref:t,children:p.jsx(Bh,{id:"catching-up-slot-bars",options:I,data:TPe,onCreate:v})})}const FPe="_card_1yavk_1",NPe="_secondary-color_1yavk_13",jPe="_bold_1yavk_17",OPe="_ellipsis_1yavk_21",LPe="_labels-row_1yavk_27",PPe="_labels-left_1yavk_39",UPe="_turbine-label_1yavk_46",GPe="_start_1yavk_54",HPe="_head_1yavk_58",YPe="_footer-row_1yavk_64",zPe="_left-footer_1yavk_76",JPe="_footer-title_1yavk_83",WPe="_footer-value_1yavk_88",ZPe="_bars-stats-container_1yavk_95",XPe="_bars-stats-row_1yavk_99",KPe="_replayed_1yavk_104",VPe="_speed_1yavk_111",qPe="_to-replay_1yavk_118",Oo={card:FPe,secondaryColor:NPe,bold:jPe,ellipsis:OPe,labelsRow:LPe,labelsLeft:PPe,turbineLabel:UPe,start:GPe,head:HPe,footerRow:YPe,leftFooter:zPe,footerTitle:JPe,footerValue:WPe,barsStatsContainer:ZPe,barsStatsRow:XPe,replayed:KPe,speed:VPe,toReplay:qPe};function $Pe(){const e=we(ch);if(e)return p.jsxs(xe,{className:Oo.footerRow,children:[p.jsxs(xe,{className:Oo.leftFooter,children:[p.jsxs(be,{className:xt(Oo.footerValue,Oo.ellipsis),children:[p.jsx(be,{className:Oo.secondaryColor,children:"Slot "}),e]}),p.jsx(be,{className:xt(Oo.footerTitle,Oo.ellipsis),children:"Repair"})]}),p.jsx(be,{className:xt(Oo.rightFooter,Oo.footerTitle,Oo.ellipsis),children:"Turbine"})]})}function eUe(){const e=we(ch),t=we(n$),n=we(B1);if(!(e==null||t==null||n==null))return p.jsxs(xe,{className:Oo.labelsRow,children:[p.jsx(xe,{justify:"end",flexShrink:"0",className:Oo.labelsLeft,children:p.jsx(Nne,{slot:t})}),p.jsx(xe,{justify:"end",flexGrow:"1",minWidth:"0",className:Oo.labelsRight,children:p.jsx(Nne,{slot:n,isHead:!0})})]})}function Nne({isHead:e=!1,slot:t}){const n=we(_R),[r,{width:A}]=Ka();return b.useEffect(()=>{n==null||n.style.setProperty(e?"--turbine-head-label-width":"--turbine-start-label-width",`${A}px`)},[n,e,A]),p.jsxs(xe,{ref:r,direction:"column",className:xt(Oo.turbineLabel,e?Oo.head:Oo.start),children:[p.jsx(be,{className:Oo.bold,children:e?"Turbine Head":"Turbine Start"}),p.jsx(be,{children:t})]})}const C4=1e4,jne=50,tUe=[$o.shred_published,$o.shred_replayed,$o.shred_received_repair,$o.shred_received_turbine,$o.shred_repair_request],nUe=[$o.shred_received_repair,$o.shred_published,$o.shred_replayed,$o.shred_received_turbine,$o.shred_repair_request],rUe={"Repair Requested":q5,"Received Turbine":$5,"Received Repair":eR,"Replayed Turbine":tR,"Replayed Repair":nR,"Replayed Nothing":rR,Skipped:oR,Published:iR};function oUe(){const e=Ke(),t=Ke(),n=Ke(),r=Ke(A=>{const i=A(n),a=A(r$);if(!(!i||a==null)&&!(a+1>i.max))return{min:Math.max(a+1,i.min),max:i.max}});return{minCompletedSlot:Ke(A=>A(e)),range:Ke(A=>A(n)),rangeAfterStartup:r,groupLeaderSlots:Ke(A=>{const i=A(r),a=A(r$);if(!i||a==null)return[];const c=Math.max(a+1,i.min),f=[Vi(c)];for(;f[f.length-1]+ro-1A(t)),addShredEvents:Ke(null,(A,i,{reference_slot:a,reference_ts:c,slot_delta:f,shred_idx:h,event:m,event_ts_delta:I})=>{let v=A(n),k=A(e);i(t,D=>{const R=D??{referenceTs:Math.round(Number(c)/l5),slots:new Map};for(let F=0;F{if(a){i(n,void 0),i(e,void 0),i(t,void 0);return}i(t,f=>{const h=A(n),m=A($q)??Date.now();if(!f||!h)return f;if(c)for(let v=h.min;v<=h.max;v++){const k=f.slots.get(v);k&&(k.maxEventTsDelta==null||One(k.maxEventTsDelta,m,f.referenceTs))&&f.slots.delete(v)}else{let v=h.min;if(h.max-h.min>50){for(let D=v;D<=h.max-50;D++)f.slots.get(D)&&f.slots.delete(D);v=h.max-50}let k=!1;for(let D=h.max;D>=v;D--){const R=f.slots.get(D);if((R==null?void 0:R.maxEventTsDelta)!=null){if(!k&&R.completionTsDelta!=null&&One(R.completionTsDelta,m,f.referenceTs)){k=!0;continue}k&&f.slots.delete(D)}}}const I=f.slots.keys();return i(n,v=>{if(!(!v||!f.slots.size))return{min:Math.min(...I),max:v.max}}),f})})}}function One(e,t,n){const r=t-n,A=C4+jne;return r-e>A}const HC=oUe();function iUe(e,t,n){const r=n??new Array;return r[e]=Math.min(t,r[e]??t),r}function AUe(e,t,n,r){const A=r??{shreds:[]};return A.minEventTsDelta=Math.min(n,A.minEventTsDelta??n),A.maxEventTsDelta=Math.max(n,A.maxEventTsDelta??n),t===$o.slot_complete?(A.completionTsDelta=Math.min(n,A.completionTsDelta??n),A):e==null?(console.error("Missing shred ID"),A):(A.shreds[e]=iUe(t,n,A.shreds[e]),A)}function Lne(e){return`slot-group-label-${Vi(e)}`}function Pne(e){return`slot-label-${e}`}const Gf=ns(),Z0="shredsXScaleKey";function sUe(e){const t=[];return{hooks:{draw:[n=>{if(n.ctx.save(),e){n.ctx.strokeStyle=V5,n.ctx.lineWidth=1,n.ctx.beginPath();const oe=n.bbox.left,Be=n.bbox.left+n.bbox.width;for(let he=0;he<3;he++)n.ctx.moveTo(oe,n.bbox.top+n.bbox.height*he/3),n.ctx.lineTo(Be,n.bbox.top+n.bbox.height*he/3);n.ctx.stroke(),n.ctx.restore()}const r=HC,A=Gf.get(r.slotsShreds),i=Gf.get(r.range),a=Gf.get(r.minCompletedSlot),c=Gf.get(vw),f=Gf.get(r.rangeAfterStartup),h=Date.now(),m=Gf.get($q);if(m){const oe=h-m;for(t.push(oe);t.length>20;)t.shift()}const I=t.length?hn.sum(t)/t.length:void 0,v=I==null?m??h:h-I,k=n.scales[Z0].max;if(!A||!i||k==null||!e&&(Gf.get(Ml)||a==null||!f))return;const D=v-jne-A.referenceTs,R=e?i.min:Math.max(i.min,a??i.min),F=i.max;n.ctx.rect(n.bbox.left,n.bbox.top,n.bbox.width,n.bbox.height),n.ctx.clip();const N=oe=>n.valToPos(oe,Z0,!0),{maxShreds:T,orderedSlotNumbers:P}=aUe(R,F,A,n.scales[Z0],D),G=e?Math.trunc(n.bbox.height/3):n.bbox.height,Y=e?oe=>{switch(oe){case $o.shred_received_turbine:case $o.shred_published:return 0;case $o.shred_repair_request:case $o.shred_received_repair:return G;case $o.shred_replayed:return G*2}}:void 0,z=hn.clamp(G/T,1,10),Z=1,K=Math.max(z,3),re=Math.trunc((G+Z)/(z+Z)),V=T/re;for(const oe of P){const Be={},he=(Ae,Ce)=>{Be[Ae]??(Be[Ae]=[]),Be[Ae].push(Ce)},de=A.slots.get(oe);if((de==null?void 0:de.minEventTsDelta)==null)continue;const me=c.has(oe);for(let Ae=0;Ae{const i=[];let a=0;for(let c=e;c<=t;c++){const f=n.slots.get(c);!f||!f.shreds.length||f.minEventTsDelta==null||r.max!=null&&f.minEventTsDelta-A>r.max||r.min!=null&&f.completionTsDelta!=null&&f.completionTsDelta-A=F)continue;const z=(m==null?void 0:m(T))??0;N.set(T,c||f?[Y,h+z]:[Y,h+z,F-Y]),F=Y}for(const[T,P]of N.entries()){if(f){e(oR,P);continue}switch(T){case $o.shred_repair_request:{e(q5,P);break}case $o.shred_received_turbine:{e($5,P);break}case $o.shred_received_repair:{e(eR,P);break}case $o.shred_replayed:{N.has($o.shred_received_repair)?e(nR,P):N.has($o.shred_received_turbine)?e(tR,P):e(rR,P);break}case $o.shred_published:e(iR,P)}}}function cUe(e,t,n){for(const r of nUe){const A=uUe(e,t,n,i=>(i==null?void 0:i[r])!=null);if(A!==-1)return A}return e}function uUe(e,t,n,r){for(let A=e;Ar.valToPos(v,Z0,!1),I=m(A);for(let v=0;vc+r).reduce((a,c)=>(a.length===0&&!(c in e)||c in e&&e[c]===void 0||a.push(c),a),[]);if(A.length===0)continue;const i=A.reduce((a,c)=>{var m,I;const f=(m=e[c])==null?void 0:m[0],h=(I=e[c])==null?void 0:I[1];return f!=null&&(a[0]=Math.min(a[0],f)),a[1]=a[1]===void 0||h===void 0?void 0:Math.max(h,a[1]),a},[1/0,-1/0]);n[r]=i}return n}function Hne(e,t,n){if(!e)return;const r=e[0]-t,A=n(r);if(e[1]==null)return[A,void 0];const i=e[1]-t,a=n(i);return[A,a-A]}function Yne(e,t,n,r){const A=e?"--group-x":"--slot-x";if(!t){r.style.setProperty(A,"-100000px");return}const[i,a]=t;r.style.setProperty(A,`${i-(e?1:0)}px`);const c=a??n-i+1;r.style.width=`${c+(e?1*2:0)}px`;const f=a==null;e&&r.style.setProperty("--group-name-opacity",f?"0":"1")}const pUe="_slot-group-label_mfowj_1",mUe="_you_mfowj_13",EUe="_slot-group-top-container_mfowj_17",IUe="_skipped_mfowj_21",CUe="_slot-group-name-container_mfowj_25",BUe="_name_mfowj_30",yUe="_slot-bars-container_mfowj_41",vUe="_slot-bar_mfowj_41",bUe="_legend-color-box_mfowj_72",QUe="_legend-label_mfowj_78",Fc={slotGroupLabel:pUe,you:mUe,slotGroupTopContainer:EUe,skipped:IUe,slotGroupNameContainer:CUe,name:BUe,slotBarsContainer:yUe,slotBar:vUe,legendColorBox:bUe,legendLabel:QUe};function uM(e){const t=we(Ri);if(!t)return;const n=e-t.start_slot,r=Math.trunc(n/4);return t.staked_pubkeys[t.leader_slots[r]]}function zne(e){var c,f,h,m;const t=(c=e==null?void 0:e.gossip)==null?void 0:c.version,n=(f=e==null?void 0:e.gossip)==null?void 0:f.client_id,r=(n?oDe[n]:void 0)??(t?t[0]==="0"?bu.Frankendancer:bu.Agave:void 0),A=(h=e==null?void 0:e.gossip)==null?void 0:h.country_code,i=vMe(A),a=(m=e==null?void 0:e.gossip)==null?void 0:m.city_name;return b.useMemo(()=>({client:r,version:t,countryCode:A,countryFlag:i,cityName:a}),[a,r,A,i,t])}function pa(e){var I;const t=we(qg),n=uM(e),r=gT(n??""),A=t===n,i=A?"You":((I=r==null?void 0:r.info)==null?void 0:I.name)??"Private",{version:a,client:c,countryCode:f,countryFlag:h,cityName:m}=zne(r);return{pubkey:n,peer:r,isLeader:A,name:i,client:c,version:a,countryCode:f,countryFlag:h,cityName:m}}function wUe(){const e=we(Qw),t=we(HC.groupLeaderSlots);if(!e)return p.jsx(xe,{flexShrink:"0",overflowX:"hidden",position:"relative",height:"15px",children:t.map(n=>p.jsx(xUe,{firstSlot:n},n))})}function xUe({firstSlot:e}){var c;const{peer:t,name:n,isLeader:r}=pa(e),A=b.useMemo(()=>Array.from({length:ro},(f,h)=>e+h),[e]),i=we(vw),a=b.useMemo(()=>{const f=new Set;for(const h of A)i.has(h)&&f.add(h);return f},[A,i]);return p.jsxs(xe,{height:"100%",minHeight:"0",direction:"column",gap:"2px",position:"absolute",id:Lne(e),className:xt(Fc.slotGroupLabel,{[Fc.you]:r}),children:[p.jsx(xe,{justify:"center",flexGrow:"1",minHeight:"0",minWidth:"0",px:"2px",className:xt(Fc.slotGroupTopContainer,{[Fc.skipped]:a.size>0}),children:p.jsxs(xe,{align:"center",gap:"4px",minWidth:"0",className:Fc.slotGroupNameContainer,children:[p.jsx(jl,{url:(c=t==null?void 0:t.info)==null?void 0:c.icon_url,size:10,isYou:r,hideTooltip:!0}),p.jsx(be,{className:Fc.name,children:n})]})}),p.jsx(xe,{height:"2px",position:"relative",className:Fc.slotBarsContainer,children:A.map(f=>p.jsx("div",{className:xt(Fc.slotBar,{[Fc.skipped]:a.has(f)}),id:Pne(f)},f))})]})}const _Ue=40,dM=15,fM={min:200,max:1600},kUe=e=>{const t=e*fM.max,n=[Math.trunc(t/fM.min)*fM.min];for(;n[n.length-1]{h.current=N},[]),[D,R]=b.useMemo(()=>[[[Math.trunc(f*-C4),0],new Array(2)],kUe(f)],[f]);b.useEffect(()=>{h.current&&(h.current.axes[0].incrs=()=>R,h.current.setData(D,!0))},[D,R]);const F=b.useMemo(()=>({padding:[0,dM,0,dM],width:0,height:0,scales:{[Z0]:{time:!1},y:{time:!1,range:[0,1]}},series:[{scale:Z0},{}],cursor:{show:!1,drag:{[Z0]:!1,y:!1}},legend:{show:!1},axes:[{scale:Z0,incrs:R,size:30,ticks:{opacity:.2,stroke:ei,size:5,width:1/devicePixelRatio},values:(N,T)=>T.map(P=>P===0?"now":`${(P/1e3).toFixed(1)}s`),grid:{stroke:V5,width:1/devicePixelRatio},stroke:K5},{size:0,grid:{filter:()=>[0],stroke:K5,width:1}}],plugins:[sUe(t)]}),[t,R]);return F.width=v.width,F.height=v.height,Qee(N=>{var T;h&&(m.current==null||N-m.current>=_Ue)&&(m.current=N,(T=h.current)==null||T.redraw(!0,!1))}),p.jsxs(xe,{direction:"column",gap:"2px",...n,children:[!t&&p.jsx(wUe,{}),p.jsx(rr,{flexGrow:"1",minHeight:"0",mx:`-${dM}px`,ref:I,children:p.jsx(Bh,{id:e,options:F,data:D,onCreate:k})})]})}const SUe="_card_1vnw5_1",DUe="_narrow_1vnw5_7",Wne={card:SUe,narrow:DUe};function Cs({children:e,hideChildren:t,isNarrow:n=!1,...r}){return p.jsx("div",{...r,className:xt(Wne.card,n&&Wne.narrow,r.className),children:!t&&e})}const RUe="_header_10qjn_1",TUe="_full-width_10qjn_5",MUe="_dark_10qjn_9",FUe="_subHeader_10qjn_14",NUe="_tile-container_10qjn_20",jUe="_tile_10qjn_20",yh={header:RUe,fullWidth:TUe,dark:MUe,subHeader:FUe,tileContainer:NUe,tile:jUe},OUe="_stat-container_1hzk8_1",LUe="_label_1hzk8_10",PUe="_value-container_1hzk8_15",UUe="_value_1hzk8_15",B4={statContainer:OUe,label:LUe,valueContainer:PUe,value:UUe};var gM={exports:{}},G1=typeof Reflect=="object"?Reflect:null,Zne=G1&&typeof G1.apply=="function"?G1.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},y4;G1&&typeof G1.ownKeys=="function"?y4=G1.ownKeys:Object.getOwnPropertySymbols?y4=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:y4=function(e){return Object.getOwnPropertyNames(e)};function GUe(e){console&&console.warn&&console.warn(e)}var Xne=Number.isNaN||function(e){return e!==e};function Lo(){Lo.init.call(this)}gM.exports=Lo,gM.exports.once=JUe,Lo.EventEmitter=Lo,Lo.prototype._events=void 0,Lo.prototype._eventsCount=0,Lo.prototype._maxListeners=void 0;var Kne=10;function v4(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Lo,"defaultMaxListeners",{enumerable:!0,get:function(){return Kne},set:function(e){if(typeof e!="number"||e<0||Xne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Kne=e}}),Lo.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Lo.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||Xne(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function Vne(e){return e._maxListeners===void 0?Lo.defaultMaxListeners:e._maxListeners}Lo.prototype.getMaxListeners=function(){return Vne(this)},Lo.prototype.emit=function(e){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=A[e];if(c===void 0)return!1;if(typeof c=="function")Zne(c,this,t);else for(var f=c.length,h=nre(c,f),n=0;n0&&a.length>A&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,GUe(c)}return e}Lo.prototype.addListener=function(e,t){return qne(this,e,t,!1)},Lo.prototype.on=Lo.prototype.addListener,Lo.prototype.prependListener=function(e,t){return qne(this,e,t,!0)};function HUe(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function $ne(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},A=HUe.bind(r);return A.listener=n,r.wrapFn=A,A}Lo.prototype.once=function(e,t){return v4(t),this.on(e,$ne(this,e,t)),this},Lo.prototype.prependOnceListener=function(e,t){return v4(t),this.prependListener(e,$ne(this,e,t)),this},Lo.prototype.removeListener=function(e,t){var n,r,A,i,a;if(v4(t),r=this._events,r===void 0)return this;if(n=r[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(A=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,A=i;break}if(A<0)return this;A===0?n.shift():YUe(n,A),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},Lo.prototype.off=Lo.prototype.removeListener,Lo.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var A=Object.keys(n),i;for(r=0;r=0;r--)this.removeListener(e,t[r]);return this};function ere(e,t,n){var r=e._events;if(r===void 0)return[];var A=r[t];return A===void 0?[]:typeof A=="function"?n?[A.listener||A]:[A]:n?zUe(A):nre(A,A.length)}Lo.prototype.listeners=function(e){return ere(this,e,!0)},Lo.prototype.rawListeners=function(e){return ere(this,e,!1)},Lo.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):tre.call(e,t)},Lo.prototype.listenerCount=tre;function tre(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Lo.prototype.eventNames=function(){return this._eventsCount>0?y4(this._events):[]};function nre(e,t){for(var n=new Array(t),r=0;r{const r=A=>n.current(A);return t.addListener(hM,r),()=>{t.removeListener(hM,r)}},[t])}const KUe=_f((e,t,n)=>hn.throttle(()=>{switch(n){case"publish":{e({topic:"slot",key:"query",id:1,params:{slot:t}});break}case"detailed":{e({topic:"slot",key:"query_detailed",id:2,params:{slot:t}});break}case"transactions":{e({topic:"slot",key:"query_transactions",id:3,params:{slot:t}});break}}},5e3,{trailing:!1}),{maxSize:250});function EM(e,t,n){const r=b4(),A=we(n9e(e)),i=b.useCallback(()=>{!e||A||n||KUe(r,e,t)()},[t,A,e,n,r]);b.useEffect(()=>{const f=setTimeout(()=>i(),250);return()=>{clearTimeout(f)}},[i]);const[a,c]=b.useState(!0);return wC(()=>{setTimeout(()=>c(!1),3e3)}),{hasWaitedForData:!a}}function el(e){const t=we(QR(e)),n=!!t,{hasWaitedForData:r}=EM(e,"publish",n);return{publish:t,hasWaitedForData:r}}function Du(e){const t=we(Hq(e)),n=!!(t!=null&&t.waterfall)&&!!(t!=null&&t.tile_timers)&&!!(t!=null&&t.tile_primary_metric)&&!!t.scheduler_counts&&!!t.scheduler_stats&&!!t.limits,{hasWaitedForData:r}=EM(e,"detailed",n);return{response:t,hasWaitedForData:r}}function Pl(e){const t=we(Hq(e)),n=!!(t!=null&&t.transactions),{hasWaitedForData:r}=EM(e,"transactions",n);return{response:t,hasWaitedForData:r}}function VUe({type:e,label:t}){var f,h,m;const n=we(Kr),r=!n,A=we(EZ),i=Du(r?void 0:n),a=r?(f=A==null?void 0:A.tile_primary_metric)==null?void 0:f[e]:(m=(h=i.response)==null?void 0:h.tile_primary_metric)==null?void 0:m[e],c=e==="net_in"||e==="net_out"?{minWidth:"55px"}:void 0;return p.jsxs("div",{className:B4.statContainer,children:[p.jsx(be,{className:B4.label,children:t}),p.jsx("div",{className:B4.valueContainer,style:c,children:p.jsx(be,{className:B4.value,children:qUe(e,a)})})]})}function qUe(e,t){if(t===void 0||t===-1)return"-";if(e==="net_in"||e==="net_out"){const n=t*8,r=uh(t*8,{precision:n>1e9?2:0}),A=Number(r.value);if(!t)return"0";const i=r.unit.replace("B","b");return`${A} ${i}/s`}if(e==="bundle_rx_delay_millis_p90"||e==="bundle_rtt_smoothed_millis")return`${Math.max(1,Math.round(t))} ms`;if(e==="verify"||e==="dedup"||e==="pack"){if(t<.01&&t>0)return`${(t*100).toFixed(2)}%`;{const n=t*100;return`${Math.trunc(n)}%`}}return t.toLocaleString()}const $Ue="_btn_1lb0v_1",eGe={btn:$Ue};let IM=!1;function tGe({children:e,tileCountArr:t,liveBusyPerTile:n,queryIdlePerTile:r,width:A,header:i,isExpanded:a,setIsExpanded:c}){return t.length>1?p.jsxs(JJ,{open:a,onOpenChange:f=>{IM||(c(f),IM=!0,setTimeout(()=>IM=!1,10))},defaultOpen:!1,children:[p.jsx(WJ,{children:a?p.jsx("div",{}):p.jsx(xl,{className:eGe.btn,children:e})}),p.jsx(ZJ,{width:`${A}px`,size:"1",side:"top",sideOffset:-17,align:"center",children:p.jsxs(xe,{gap:"3",direction:"column",children:[i,n?n.map((f,h)=>p.jsx(nGe,{busy:f},h)):t==null?void 0:t.map((f,h)=>{const m=r==null?void 0:r.map(I=>I[h]!==void 0&&I[h]!==-1?1-I[h]:void 0).filter(ZI);if(m!=null&&m.length)return p.jsxs(xe,{children:[p.jsx(RC,{queryBusy:m}),p.jsx(Vw,{busy:hn.mean(m)})]},h)})]})})]}):p.jsx(xe,{gap:"1",children:e})}function nGe({busy:e}){const t=BT(e);return p.jsxs(xe,{children:[p.jsx(RC,{value:t}),p.jsx(Vw,{busy:t})]})}function ma({header:e,subHeader:t,tileCount:n,statLabel:r,liveIdlePerTile:A,queryIdlePerTile:i,metricType:a,sparklineHeight:c,isExpanded:f=!1,setIsExpanded:h=()=>{},isDark:m=!1,isNarrow:I}){const[v,{width:k}]=Ka(),D=we(Kr)===void 0,{avgBusy:R,aggQueryBusyPerTs:F,tileCountArr:N,liveBusyPerTile:T,busy:P}=Wee({isLive:D,tileCount:n,liveIdlePerTile:A,queryIdlePerTile:i}),G=BT(R);return p.jsx(xe,{ref:v,children:p.jsx(Cs,{className:xt(yh.fullWidth,m&&yh.dark),isNarrow:I,children:p.jsxs(xe,{direction:"column",justify:"between",height:"100%",gap:"1",children:[p.jsx(ire,{header:e,subHeader:t,statLabel:r,metricType:a}),p.jsx(rr,{flexGrow:"1"}),p.jsx(RC,{value:G,queryBusy:F,height:c,background:m?pw:void 0}),p.jsxs(tGe,{tileCountArr:N,liveBusyPerTile:T,queryIdlePerTile:i,width:k,header:p.jsx(ire,{header:e,subHeader:t,statLabel:r,metricType:a}),isExpanded:f,setIsExpanded:h,children:[p.jsx("div",{className:yh.tileContainer,children:N.map((Y,z)=>{const Z=P==null?void 0:P[z];return Z===void 0?p.jsx("div",{className:yh.tile,style:{background:m?"#232A38":"gray"}},z):p.jsx("div",{className:yh.tile,style:{"--busy":`${Z*100}%`}},z)})}),p.jsx(Vw,{busy:G})]})]})})})}function ire({header:e,subHeader:t,metricType:n,statLabel:r}){return p.jsxs(xe,{justify:"between",gap:"1",children:[p.jsxs(xe,{direction:"column",gap:"0",children:[p.jsx(be,{className:yh.header,children:e}),t&&p.jsx(be,{className:yh.subHeader,children:t})]}),n&&p.jsx(VUe,{type:n,label:r})]})}function CM(){var c;const e=we(Kr),t=!e,n=we(zp),r=we(qI),A=we(DMe),i=Du(e),a=b.useMemo(()=>{var f,h;if(!(!((h=(f=i.response)==null?void 0:f.tile_timers)!=null&&h.length)||t||!n))return i.response.tile_timers.reduce((m,I)=>{var k;if(!I.tile_timers.length)return m;const v={};I.tile_timers.length!==n.length&&console.warn("Length mismatch between tiles and time timers",I.tile_timers,n);for(let D=0;Dp.jsx(ma,{header:c,tileCount:r[c],liveIdlePerTile:A==null?void 0:A[c],queryIdlePerTile:i||a==null?void 0:a[c],statLabel:"",sparklineHeight:rGe,isExpanded:n,setIsExpanded:t},c))})}function AGe(){const e=b.useRef({}),t=we(ch),n=we(B1),r=we(Jp),A=r??(t==null?void 0:t-1),i=uA(A),a=uA(n);return e.current.replaySlotsPerSecond=i,e.current.turbineSlotsPerSecond=a,b.useEffect(()=>{if(t==null||n==null||e.current.totalSlotsEstimate!=null)return;const c=Are(400,100,t,r,n);e.current={totalSlotsEstimate:c}},[r,n,t,e]),z0(()=>{const c=e.current.totalSlotsEstimate;if(t==null||n==null||c==null||i==null||a==null)return;const f=Are(i,a,t,r,n),h=r==null||f==null?void 0:f+t-1-r,m=i===0||h==null?void 0:h/i;if(e.current.remainingSeconds=m,!f||f>=c)return;const I=Math.min(.15*c,c-f),v=c-I;e.current.totalSlotsEstimate=v},500),e}function Are(e,t,n,r,A){const i=r??n-1;if(i===A)return A-n;if(e<=t)return;const a=i-n+1,c=e*(A-i)/(e-t);return a+c}function sGe({catchingUpRates:e}){const t=we(ch),n=we(B1),r=we(Jp),A=e.replaySlotsPerSecond,i=e.turbineSlotsPerSecond,a=A==null||i==null?void 0:Math.round(A-i);return p.jsxs(rr,{mt:"3px",className:Oo.barsStatsContainer,children:[p.jsxs(xe,{justify:"between",className:Oo.barsStatsRow,children:[p.jsx(Q4,{className:Oo.replayed,value:r==null||t==null?void 0:r-t+1,label:"Slots Replayed"}),p.jsx(Q4,{className:Oo.toReplay,value:r==null||n==null?void 0:n-r,label:"Slots Remaining"})]}),p.jsxs(xe,{justify:"between",className:Oo.barsStatsColumn,children:[p.jsx(Q4,{className:Oo.speed,value:A,label:"Slots/s Replay Speed"}),p.jsx(Q4,{className:Oo.speed,value:a,label:"Slots/s Catchup Speed"})]})]})}function Q4({value:e,label:t,className:n}){const r=e===void 0?"--":e.toLocaleString(void 0,{maximumFractionDigits:0});return p.jsxs(be,{truncate:!0,className:n,children:[p.jsxs(be,{className:Oo.bold,children:[r," "]}),t]})}function sre(){return p.jsx(xe,{gapX:"15px",gapY:"5px",wrap:"wrap",children:Object.entries(rUe).map(([e,t])=>p.jsxs(xe,{gap:"5px",flexShrink:"0",children:[p.jsx("div",{className:Fc.legendColorBox,style:{backgroundColor:t}}),p.jsx(be,{className:Fc.legendLabel,children:e})]},e))})}function aGe(){const e=dt(_R),t=we(l9e),n=AGe(),r=we(ch),A=we(B1),i=we(Jp),a=b.useMemo(()=>{if(r==null||A==null||i==null)return 0;const c=A-r+1;return c?100*(i-r+1)/c:0},[i,A,r]);return p.jsxs(p.Fragment,{children:[p.jsx(ite,{phase:"catching_up",phaseCompletePct:a,remainingSeconds:n.current.remainingSeconds}),p.jsxs(xe,{direction:"column",height:"100%",mt:"8px",gap:"8px",className:Nf.startupContentIndentation,children:[t&&p.jsxs(xe,{ref:e,direction:"column",gap:"5px",children:[p.jsx(eUe,{}),p.jsx(MPe,{catchingUpRatesRef:n}),p.jsx($Pe,{}),p.jsx(sGe,{catchingUpRates:n.current})]}),p.jsxs(xe,{direction:"column",className:Oo.card,mb:"14px",children:[p.jsxs(xe,{gapX:"15px",gapY:"2",align:"center",wrap:"wrap",children:[p.jsx(be,{className:Oo.title,children:"Shreds"}),p.jsx(sre,{})]}),p.jsx(Jne,{flexGrow:"1",minHeight:"280px",chartId:"catching-up-shreds",isOnStartupScreen:!0})]}),p.jsx(iGe,{})]})]})}const lGe={[Hs.joining_gossip]:Nf.gossip,[Hs.loading_full_snapshot]:Nf.fullSnapshot,[Hs.loading_incremental_snapshot]:Nf.incrSnapshot,[Hs.catching_up]:Nf.catchingUp};function cGe(){const e=dt(Ml),t=we(nC);return b.useEffect(()=>{e(t!=="running")},[e,t]),p.jsxs(p.Fragment,{children:[t&&p.jsx(uGe,{phase:t}),p.jsx(Qje,{})]})}function uGe({phase:e}){const t=dt(Uq),n=we(Ml),r=we(bw),A=e?lGe[e]:"",i=Yo("(max-width: 750px)");return p.jsxs(rr,{ref:a=>t(a),overflowY:"auto",className:xt(Nf.container,A,{[Nf.collapsed]:!n||!r}),children:[p.jsx(zee,{isStartup:!0}),p.jsxs(xe,{direction:"column",width:"100%",maxWidth:LX,mx:"auto",px:i?"20px":"89px",children:[(e===Hs.loading_full_snapshot||e===Hs.loading_incremental_snapshot)&&p.jsx(kOe,{}),e===Hs.catching_up&&p.jsx(aGe,{}),p.jsx(rr,{pb:"20px"})]})]})}function dGe({children:e}){const t=we(Ml),n=we(qi);return n?n===Ci.Firedancer?p.jsxs(p.Fragment,{children:[p.jsx(cGe,{}),p.jsx("div",{children:e})]}):p.jsxs(p.Fragment,{children:[p.jsx($Fe,{}),p.jsx("div",{className:xt(gee.container,{[gee.blur]:t}),children:e})]}):null}const fGe="_container_1i8oq_1",gGe="_toast_1i8oq_10",hGe="_disconnected_1i8oq_19",pGe="_connecting_1i8oq_29",mGe="_text_1i8oq_39",YC={container:fGe,toast:gGe,disconnected:hGe,connecting:pGe,text:mGe},are={opacity:0,top:-100},EGe={opacity:1,top:18};function lre(e,t){if(e)return e===zs.Disconnected?{className:YC.disconnected,text:"validator disconnected."}:e===zs.Connecting?{className:YC.connecting,text:"validator connecting..."}:lre(t)}function IGe(){const e=we(Kw),t=xC(e),[n,r]=b.useState(!0);wC(()=>{setTimeout(()=>r(!1),3e3)});const[A,i]=vC(()=>({from:are}));b.useEffect(()=>{n||(e===zs.Connecting||e===zs.Disconnected?i.start({to:EGe}):i.start({to:are}))},[i,n,e]);const a=lre(e,t);if(a)return p.jsx(Dc.div,{className:YC.container,style:A,children:p.jsx("div",{className:`${YC.toast} ${a.className}`,children:p.jsx(be,{className:YC.text,children:a.text})})})}const CGe="_slots-list_1sk8v_1",BGe="_hidden_1sk8v_3",yGe="_no-slots-text_1sk8v_8",BM={slotsList:CGe,hidden:BGe,noSlotsText:yGe},vGe="_slot-group-container_15um5_1",bGe="_slot-group_15um5_1",QGe="_left-column_15um5_13",wGe="_future_15um5_19",xGe="_you_15um5_27",_Ge="_current_15um5_35",kGe="_slot-name_15um5_42",SGe="_flag_15um5_46",DGe="_skipped_15um5_50",RGe="_current-slot-row_15um5_60",TGe="_past_15um5_66",MGe="_processed_15um5_77",FGe="_selected_15um5_90",NGe="_ellipsis_15um5_108",jGe="_progress-bar_15um5_114",OGe="_slot-item-content_15um5_122",LGe="_placeholder_15um5_130",PGe="_slot-statuses_15um5_134",UGe="_slot-status_15um5_134",GGe="_slot-status-progress_15um5_143",HGe="_tall_15um5_153",YGe="_short_15um5_160",zGe="_scroll-slots-placeholder_15um5_184",JGe="_shimmer_15um5_195",WGe="_absolute-full-size_15um5_187",ZGe="_scroll-placeholder-item_15um5_208",hr={slotGroupContainer:vGe,slotGroup:bGe,leftColumn:QGe,future:wGe,you:xGe,current:_Ge,slotName:kGe,flag:SGe,skipped:DGe,currentSlotRow:RGe,past:TGe,processed:MGe,selected:FGe,ellipsis:NGe,progressBar:jGe,slotItemContent:OGe,placeholder:LGe,slotStatuses:PGe,slotStatus:UGe,slotStatusProgress:GGe,tall:HGe,short:YGe,scrollSlotsPlaceholder:zGe,shimmer:JGe,absoluteFullSize:WGe,scrollPlaceholderItem:ZGe},XGe="data:image/svg+xml,%3csvg%20width='11'%20height='12'%20viewBox='0%200%2011%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='1'%20width='10'%20height='10'%20rx='5'%20fill='black'%20fill-opacity='0.95'/%3e%3crect%20x='0.5'%20y='1'%20width='10'%20height='10'%20rx='5'%20stroke='%23646464'/%3e%3cpath%20d='M5.18018%207.1123L4.45947%208.39453H3.14014L2.73682%206.97754L3.45752%206.11035L5.18018%207.1123ZM7.31885%204.79102L8.28369%208.39453H5.93213L4.03174%205.07129L5.25342%203.60547L7.31885%204.79102Z'%20fill='%23ABABAB'/%3e%3c/svg%3e",KGe="/assets/firedancer_logo_circle-D9jlxCje.svg",VGe="/assets/frankendancer_logo_circle-D5z79vwQ.svg",qGe="_small-icon_5aexa_1",$Ge="_large-icon_5aexa_6",eHe={smallIcon:qGe,largeIcon:$Ge},yM=b.memo(function({slot:e,size:t}){const{client:n}=pa(e),r=xt(eHe[`${t}Icon`]);return n?n===bu.Firedancer?p.jsx("img",{src:KGe,alt:"Firedancer Logo",className:r}):n===bu.Frankendancer?p.jsx("img",{src:VGe,alt:"Frankendancer Logo",className:r}):Nq(n)?p.jsx("img",{src:XGe,alt:"Anza Logo",className:r}):p.jsx("div",{className:r}):p.jsx("div",{className:r})}),tHe=_f(e=>Ke(t=>{var r;const n=Vi(e);for(let A=0;A{m(k=>{if(!a)return k;if(!k)return a;const D=k-a;return D>10?k-Math.trunc(D/2):D>4?k:D<-4?k-Math.trunc(D/2):k+1})},f);const I=b.useMemo(()=>{if(!(i==null||h==null))return Tr.fromMillis(f*(i-h)).rescale()},[h,i,f]),v=b.useMemo(()=>{if(n==null||i==null||h==null)return;const k=i-n,D=(h-n)/k*100;return D<0||D>100?0:D},[h,i,n]);return e&&c?{progressSinceLastLeader:100,nextSlotText:"Now",nextLeaderSlot:a}:{progressSinceLastLeader:v??0,nextSlotText:kf(I,t),nextLeaderSlot:i}}function nHe(e){return we(cre)?p.jsx("div",{className:hr.placeholder}):p.jsx(rHe,{...e})}const ure=Ke(e=>{const t=e(xc),n=e(Df);if(!e(PA)||t===void 0||n===void 0)return;const r=e(tC);return function(A){return{isCurrentSlotGroup:t<=A&&AMath.ceil(t/46),[t]);if(!(np.jsx(cHe,{},i))})]})}const cHe=b.memo(function(){return p.jsx("div",{className:hr.scrollPlaceholderItem})});function w4({slot:e,iconSize:t=15}){var i;const{peer:n,isLeader:r,name:A}=pa(e);return p.jsxs(xe,{gap:"4px",minWidth:"0",children:[p.jsx(jl,{url:(i=n==null?void 0:n.info)==null?void 0:i.icon_url,size:t,isYou:r,hideTooltip:!0}),p.jsx(be,{className:xt(hr.slotName,hr.ellipsis),children:A})]})}function JC({firstSlot:e,isCurrentSlot:t=!1,isPastSlot:n=!1}){return p.jsx(xe,{className:xt(hr.slotStatuses,{[hr.tall]:t,[hr.short]:!t&&!n}),direction:"column",justify:"between",children:Array.from({length:ro}).map((r,A)=>{const i=e+(ro-1)-A;return t?p.jsx(uHe,{slot:i},A):n?p.jsx(dHe,{slot:i},A):p.jsx(bM,{},A)})})}function bM({borderColor:e,backgroundColor:t,slotDuration:n}){return p.jsx(xe,{className:hr.slotStatus,style:{borderColor:e,backgroundColor:t},children:n&&p.jsx("div",{style:{"--slot-duration":`${n}ms`},className:hr.slotStatusProgress})})}function fre(e){if(!e)return{};if(e.skipped)return{backgroundColor:hw};switch(e.level){case"incomplete":return{};case"completed":return{borderColor:gR};case"optimistically_confirmed":return{backgroundColor:gR};case"finalized":case"rooted":return{backgroundColor:vq}}}function uHe({slot:e}){const t=we(LA),n=el(e),r=we(C1),A=b.useMemo(()=>e===t,[e,t]),i=b.useMemo(()=>A?{borderColor:hR}:fre(n.publish),[A,n.publish]);return p.jsx(bM,{borderColor:i.borderColor,backgroundColor:i.backgroundColor,slotDuration:A?r:void 0})}function dHe({slot:e}){const t=el(e),n=we(Kr),r=b.useMemo(()=>{var i,a;const A=fre(t.publish);return((i=t==null?void 0:t.publish)==null?void 0:i.level)==="rooted"&&!((a=t.publish)!=null&&a.skipped)&&(n===void 0||Vi(e)!==Vi(n))&&(A.backgroundColor=bq),A},[t.publish,n,e]);return p.jsx(bM,{borderColor:r.borderColor,backgroundColor:r.backgroundColor})}const x4=0,Hf=1,H1=2,gre=4;function hre(e){return()=>e}function fHe(e){e()}function WC(e,t){return n=>e(t(n))}function pre(e,t){return()=>e(t)}function gHe(e,t){return n=>e(t,n)}function QM(e){return e!==void 0}function hHe(...e){return()=>{e.map(fHe)}}function Y1(){}function _4(e,t){return t(e),e}function pHe(e,t){return t(e)}function fi(...e){return e}function ko(e,t){return e(Hf,t)}function Ir(e,t){e(x4,t)}function wM(e){e(H1)}function $i(e){return e(gre)}function Tn(e,t){return ko(e,gHe(t,x4))}function Nc(e,t){const n=e(Hf,r=>{n(),t(r)});return n}function mre(e){let t,n;return r=>A=>{t=A,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function Ere(e,t){return e===t}function gi(e=Ere){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function tr(e){return t=>n=>{e(n)&&t(n)}}function dn(e){return t=>WC(t,e)}function Ru(e){return t=>()=>{t(e)}}function Ft(e,...t){const n=mHe(...t);return(r,A)=>{switch(r){case H1:wM(e);return;case Hf:return ko(e,n(A))}}}function Tu(e,t){return n=>r=>{n(t=e(t,r))}}function vh(e){return t=>n=>{e>0?e--:t(n)}}function X0(e){let t=null,n;return r=>A=>{t=A,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Rr(...e){const t=new Array(e.length);let n=0,r=null;const A=Math.pow(2,e.length)-1;return e.forEach((i,a)=>{const c=Math.pow(2,a);ko(i,f=>{const h=n;n=n|c,t[a]=f,h!==A&&n===A&&r&&(r(),r=null)})}),i=>a=>{const c=()=>{i([a].concat(t))};n===A?c():r=c}}function mHe(...e){return t=>e.reduceRight(pHe,t)}function EHe(e){let t,n;const r=()=>t==null?void 0:t();return function(A,i){switch(A){case Hf:return i?n===i?void 0:(r(),n=i,t=ko(e,i),t):(r(),Y1);case H1:r(),n=null;return}}}function Zt(e){let t=e;const n=Zr();return(r,A)=>{switch(r){case x4:t=A;break;case Hf:{A(t);break}case gre:return t}return n(r,A)}}function Bs(e,t){return _4(Zt(t),n=>Tn(e,n))}function Zr(){const e=[];return(t,n)=>{switch(t){case x4:e.slice().forEach(r=>{r(n)});return;case H1:e.splice(0,e.length);return;case Hf:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}}}function tl(e){return _4(Zr(),t=>Tn(e,t))}function lo(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:IHe(),singleton:n}}const IHe=()=>Symbol();function CHe(e){const t=new Map,n=({constructor:r,dependencies:A,id:i,singleton:a})=>{if(a&&t.has(i))return t.get(i);const c=r(A.map(f=>n(f)));return a&&t.set(i,c),c};return n(e)}function fA(...e){const t=Zr(),n=new Array(e.length);let r=0;const A=Math.pow(2,e.length)-1;return e.forEach((i,a)=>{const c=Math.pow(2,a);ko(i,f=>{n[a]=f,r=r|c,r===A&&Ir(t,n)})}),function(i,a){switch(i){case H1:{wM(t);return}case Hf:return r===A&&a(n),ko(t,a)}}}function Kn(e,t=Ere){return Ft(e,gi(t))}function xM(...e){return function(t,n){switch(t){case H1:return;case Hf:return hHe(...e.map(r=>ko(r,n)))}}}var Ea=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Ea||{});const BHe={0:"debug",3:"error",1:"log",2:"warn"},yHe=()=>typeof globalThis>"u"?window:globalThis,Yf=lo(()=>{const e=Zt(3);return{log:Zt((t,n,r=1)=>{var A;const i=(A=yHe().VIRTUOSO_LOG_LEVEL)!=null?A:$i(e);r>=i&&console[BHe[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function Mu(e,t,n){return _M(e,t,n).callbackRef}function _M(e,t,n){const r=vt.useRef(null);let A=a=>{};const i=vt.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(a=>{const c=()=>{const f=a[0].target;f.offsetParent!==null&&e(f)};n?c():requestAnimationFrame(c)}):null,[e,n]);return A=a=>{a&&t?(i==null||i.observe(a),r.current=a):(r.current&&(i==null||i.unobserve(r.current)),r.current=null)},{callbackRef:A,ref:r}}function Ire(e,t,n,r,A,i,a,c,f){const h=vt.useCallback(m=>{const I=vHe(m.children,t,c?"offsetWidth":"offsetHeight",A);let v=m.parentElement;for(;!v.dataset.virtuosoScroller;)v=v.parentElement;const k=v.lastElementChild.dataset.viewportType==="window";let D;k&&(D=v.ownerDocument.defaultView);const R=a?c?a.scrollLeft:a.scrollTop:k?c?D.scrollX||D.document.documentElement.scrollLeft:D.scrollY||D.document.documentElement.scrollTop:c?v.scrollLeft:v.scrollTop,F=a?c?a.scrollWidth:a.scrollHeight:k?c?D.document.documentElement.scrollWidth:D.document.documentElement.scrollHeight:c?v.scrollWidth:v.scrollHeight,N=a?c?a.offsetWidth:a.offsetHeight:k?c?D.innerWidth:D.innerHeight:c?v.offsetWidth:v.offsetHeight;r({scrollHeight:F,scrollTop:Math.max(R,0),viewportHeight:N}),i==null||i(c?Cre("column-gap",getComputedStyle(m).columnGap,A):Cre("row-gap",getComputedStyle(m).rowGap,A)),I!==null&&e(I)},[e,t,A,i,a,r,c]);return _M(h,n,f)}function vHe(e,t,n,r){const A=e.length;if(A===0)return null;const i=[];for(let a=0;a{if(!(f!=null&&f.offsetParent))return;const h=f.getBoundingClientRect(),m=h.width;let I,v;if(t){const k=t.getBoundingClientRect(),D=h.top-k.top;v=k.height-Math.max(0,D),I=D+t.scrollTop}else{const k=a.current.ownerDocument.defaultView;v=k.innerHeight-Math.max(0,h.top),I=h.top+k.scrollY}r.current={offsetTop:I,visibleHeight:v,visibleWidth:m},e(r.current)},[e,t]),{callbackRef:i,ref:a}=_M(A,!0,n),c=vt.useCallback(()=>{A(a.current)},[A,a]);return vt.useEffect(()=>{var f;if(t){t.addEventListener("scroll",c);const h=new ResizeObserver(()=>{requestAnimationFrame(c)});return h.observe(t),()=>{t.removeEventListener("scroll",c),h.unobserve(t)}}else{const h=(f=a.current)==null?void 0:f.ownerDocument.defaultView;return h==null||h.addEventListener("scroll",c),h==null||h.addEventListener("resize",c),()=>{h==null||h.removeEventListener("scroll",c),h==null||h.removeEventListener("resize",c)}}},[c,t,a]),i}const Ws=lo(()=>{const e=Zr(),t=Zr(),n=Zt(0),r=Zr(),A=Zt(0),i=Zr(),a=Zr(),c=Zt(0),f=Zt(0),h=Zt(0),m=Zt(0),I=Zr(),v=Zr(),k=Zt(!1),D=Zt(!1),R=Zt(!1);return Tn(Ft(e,dn(({scrollTop:F})=>F)),t),Tn(Ft(e,dn(({scrollHeight:F})=>F)),a),Tn(t,A),{deviation:n,fixedFooterHeight:h,fixedHeaderHeight:f,footerHeight:m,headerHeight:c,horizontalDirection:D,scrollBy:v,scrollContainerState:e,scrollHeight:a,scrollingInProgress:k,scrollTo:I,scrollTop:t,skipAnimationFrameInResizeObserver:R,smoothScrollTargetReached:r,statefulScrollTop:A,viewportHeight:i}},[],{singleton:!0}),ZC={lvl:0};function Bre(e,t){const n=e.length;if(n===0)return[];let{index:r,value:A}=t(e[0]);const i=[];for(let a=1;at&&(c=c.concat(DM(A,t,n))),r>=t&&r<=n&&c.push({k:r,v:a}),r<=n&&(c=c.concat(DM(i,t,n))),c}function S4(e){const{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(RM(t))return wre(xA(e,{lvl:n-1}));if(!Wo(t)&&!Wo(t.r))return xA(t.r,{l:xA(t,{r:t.r.l}),lvl:n,r:xA(e,{l:t.r.r,lvl:n-1})});throw new Error("Unexpected empty nodes")}else{if(RM(e))return TM(xA(e,{lvl:n-1}));if(!Wo(r)&&!Wo(r.l)){const A=r.l,i=RM(A)?r.lvl-1:r.lvl;return xA(A,{l:xA(e,{lvl:n-1,r:A.l}),lvl:A.lvl+1,r:TM(xA(r,{l:A.r,lvl:i}))})}else throw new Error("Unexpected empty nodes")}}function xA(e,t){return bre(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function yre(e){return Wo(e.r)?e.l:S4(xA(e,{r:yre(e.r)}))}function RM(e){return Wo(e)||e.lvl>e.r.lvl}function vre(e){return Wo(e.r)?[e.k,e.v]:vre(e.r)}function bre(e,t,n,r=ZC,A=ZC){return{k:e,l:r,lvl:n,r:A,v:t}}function Qre(e){return TM(wre(e))}function wre(e){const{l:t}=e;return!Wo(t)&&t.lvl===e.lvl?xA(t,{r:xA(e,{l:t.r})}):e}function TM(e){const{lvl:t,r:n}=e;return!Wo(n)&&!Wo(n.r)&&n.lvl===t&&n.r.lvl===t?xA(n,{l:xA(e,{r:n.l}),lvl:t+1}):e}function bHe(e){return Bre(e,({k:t,v:n})=>({index:t,value:n}))}function xre(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function KC(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}const MM=lo(()=>({recalcInProgress:Zt(!1)}),[],{singleton:!0});function _re(e,t,n){return e[D4(e,t,n)]}function D4(e,t,n,r=0){let A=e.length-1;for(;r<=A;){const i=Math.floor((r+A)/2),a=e[i],c=n(a,t);if(c===0)return i;if(c===-1){if(A-r<2)return i-1;A=i-1}else{if(A===r)return i;r=i+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function QHe(e,t,n,r){const A=D4(e,t,r),i=D4(e,n,r,A);return e.slice(A,i+1)}function Oc(e,t){return Math.round(e.getBoundingClientRect()[t])}function R4(e){return!Wo(e.groupOffsetTree)}function FM({index:e},t){return t===e?0:t=I||i===v)&&(e=SM(e,I)):(h=v!==i,f=!0),m>A&&A>=I&&v!==i&&(e=nl(e,A+1,v));h&&(e=nl(e,a,i))}return[e,n]}function _He(e){return typeof e.groupIndex<"u"}function kHe({offset:e},t){return t===e?0:t0?c+n:c}function kre(e,t){if(!R4(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function Sre(e,t,n){if(_He(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let A=kre(r,t);return A=Math.max(0,A,Math.min(n,A)),A}}function SHe(e,t,n,r=0){return r>0&&(t=Math.max(t,_re(e,r,FM).offset)),Bre(QHe(e,t,n,kHe),THe)}function DHe(e,[t,n,r,A]){t.length>0&&r("received item sizes",t,Ea.DEBUG);const i=e.sizeTree;let a=i,c=0;if(n.length>0&&Wo(i)&&t.length===2){const v=t[0].size,k=t[1].size;a=n.reduce((D,R)=>nl(nl(D,R,v),R+1,k),a)}else[a,c]=xHe(a,t);if(a===i)return e;const{lastIndex:f,lastOffset:h,lastSize:m,offsetTree:I}=NM(e.offsetTree,c,a,A);return{groupIndices:n,groupOffsetTree:n.reduce((v,k)=>nl(v,k,VC(k,I,A)),z1()),lastIndex:f,lastOffset:h,lastSize:m,offsetTree:I,sizeTree:a}}function RHe(e){return bh(e).map(({k:t,v:n},r,A)=>{const i=A[r+1];return{endIndex:i?i.k-1:1/0,size:n,startIndex:t}})}function Dre(e,t){let n=0,r=0;for(;nA.start===r&&(A.end===t||A.end===1/0)&&A.value===n}const FHe={offsetHeight:"height",offsetWidth:"width"},Fu=lo(([{log:e},{recalcInProgress:t}])=>{const n=Zr(),r=Zr(),A=Bs(r,0),i=Zr(),a=Zr(),c=Zt(0),f=Zt([]),h=Zt(void 0),m=Zt(void 0),I=Zt((Y,z)=>Oc(Y,FHe[z])),v=Zt(void 0),k=Zt(0),D=wHe(),R=Bs(Ft(n,Rr(f,e,k),Tu(DHe,D),gi()),D),F=Bs(Ft(f,gi(),Tu((Y,z)=>({current:z,prev:Y.current}),{current:[],prev:[]}),dn(({prev:Y})=>Y)),[]);Tn(Ft(f,tr(Y=>Y.length>0),Rr(R,k),dn(([Y,z,Z])=>{const K=Y.reduce((re,V,oe)=>nl(re,V,VC(V,z.offsetTree,Z)||oe),z1());return{...z,groupIndices:Y,groupOffsetTree:K}})),R),Tn(Ft(r,Rr(R),tr(([Y,{lastIndex:z}])=>Y[{endIndex:z,size:Z,startIndex:Y}])),n),Tn(h,m);const N=Bs(Ft(h,dn(Y=>Y===void 0)),!0);Tn(Ft(m,tr(Y=>Y!==void 0&&Wo($i(R).sizeTree)),dn(Y=>[{endIndex:0,size:Y,startIndex:0}])),n);const T=tl(Ft(n,Rr(R),Tu(({sizes:Y},[z,Z])=>({changed:Z!==Y,sizes:Z}),{changed:!1,sizes:D}),dn(Y=>Y.changed)));ko(Ft(c,Tu((Y,z)=>({diff:Y.prev-z,prev:z}),{diff:0,prev:0}),dn(Y=>Y.diff)),Y=>{const{groupIndices:z}=$i(R);if(Y>0)Ir(t,!0),Ir(i,Y+Dre(Y,z));else if(Y<0){const Z=$i(F);Z.length>0&&(Y-=Dre(-Y,Z)),Ir(a,Y)}}),ko(Ft(c,Rr(e)),([Y,z])=>{Y<0&&z("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:c},Ea.ERROR)});const P=tl(i);Tn(Ft(i,Rr(R),dn(([Y,z])=>{const Z=z.groupIndices.length>0,K=[],re=z.lastSize;if(Z){const V=XC(z.sizeTree,0);let oe=0,Be=0;for(;oe{let Ce=de.ranges;return de.prevSize!==0&&(Ce=[...de.ranges,{endIndex:me+Y-1,size:de.prevSize,startIndex:de.prevIndex}]),{prevIndex:me+Y,prevSize:Ae,ranges:Ce}},{prevIndex:Y,prevSize:0,ranges:K}).ranges}return bh(z.sizeTree).reduce((V,{k:oe,v:Be})=>({prevIndex:oe+Y,prevSize:Be,ranges:[...V.ranges,{endIndex:oe+Y-1,size:V.prevSize,startIndex:V.prevIndex}]}),{prevIndex:0,prevSize:re,ranges:[]}).ranges})),n);const G=tl(Ft(a,Rr(R,k),dn(([Y,{offsetTree:z},Z])=>{const K=-Y;return VC(K,z,Z)})));return Tn(Ft(a,Rr(R,k),dn(([Y,z,Z])=>{if(z.groupIndices.length>0){if(Wo(z.sizeTree))return z;let K=z1();const re=$i(F);let V=0,oe=0,Be=0;for(;V<-Y;){Be=re[oe];const he=re[oe+1]-Be-1;oe++,V+=he+1}if(K=bh(z.sizeTree).reduce((he,{k:de,v:me})=>nl(he,Math.max(0,de+Y),me),K),V!==-Y){const he=XC(z.sizeTree,Be);K=nl(K,0,he);const de=jc(z.sizeTree,-Y+1)[1];K=nl(K,1,de)}return{...z,sizeTree:K,...NM(z.offsetTree,0,K,Z)}}else{const K=bh(z.sizeTree).reduce((re,{k:V,v:oe})=>nl(re,Math.max(0,V+Y),oe),z1());return{...z,sizeTree:K,...NM(z.offsetTree,0,K,Z)}}})),R),{beforeUnshiftWith:P,data:v,defaultItemSize:m,firstItemIndex:c,fixedItemSize:h,gap:k,groupIndices:f,itemSize:I,listRefresh:T,shiftWith:a,shiftWithOffset:G,sizeRanges:n,sizes:R,statefulTotalCount:A,totalCount:r,trackItemSizes:N,unshiftWith:i}},fi(Yf,MM),{singleton:!0});function NHe(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{groupIndices:[],totalCount:0})}const Rre=lo(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:A}])=>{const i=Zr(),a=Zr(),c=tl(Ft(i,dn(NHe)));return Tn(Ft(c,dn(f=>f.totalCount)),n),Tn(Ft(c,dn(f=>f.groupIndices)),e),Tn(Ft(fA(A,t,r),tr(([f,h])=>R4(h)),dn(([f,h,m])=>jc(h.groupOffsetTree,Math.max(f-m,0),"v")[0]),gi(),dn(f=>[f])),a),{groupCounts:i,topItemsIndexes:a}},fi(Fu,Ws)),zf=lo(([{log:e}])=>{const t=Zt(!1),n=tl(Ft(t,tr(r=>r),gi()));return ko(t,r=>{r&&$i(e)("props updated",{},Ea.DEBUG)}),{didMount:n,propsReady:t}},fi(Yf),{singleton:!0}),jHe=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Tre(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!jHe)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const qC=lo(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:A,fixedHeaderHeight:i,footerHeight:a,headerHeight:c,scrollingInProgress:f,scrollTo:h,smoothScrollTargetReached:m,viewportHeight:I},{log:v}])=>{const k=Zr(),D=Zr(),R=Zt(0);let F=null,N=null,T=null;function P(){F&&(F(),F=null),T&&(T(),T=null),N&&(clearTimeout(N),N=null),Ir(f,!1)}return Tn(Ft(k,Rr(n,I,r,R,c,a,v),Rr(e,i,A),dn(([[G,Y,z,Z,K,re,V,oe],Be,he,de])=>{const me=Tre(G),{align:Ae,behavior:Ce,offset:ae}=me,fe=Z-1,ye=Sre(me,Y,fe);let Oe=VC(ye,Y.offsetTree,Be)+re;Ae==="end"?(Oe+=he+jc(Y.sizeTree,ye)[1]-z+de,ye===fe&&(Oe+=V)):Ae==="center"?Oe+=(he+jc(Y.sizeTree,ye)[1]-z+de)/2:Oe-=K,ae&&(Oe+=ae);const Ie=Fe=>{P(),Fe?(oe("retrying to scroll to",{location:G},Ea.DEBUG),Ir(k,G)):(Ir(D,!0),oe("list did not change, scroll successful",{},Ea.DEBUG))};if(P(),Ce==="smooth"){let Fe=!1;T=ko(t,qe=>{Fe=Fe||qe}),F=Nc(m,()=>{Ie(Fe)})}else F=Nc(Ft(t,OHe(150)),Ie);return N=setTimeout(()=>{P()},1200),Ir(f,!0),oe("scrolling from index to",{behavior:Ce,index:ye,top:Oe},Ea.DEBUG),{behavior:Ce,top:Oe}})),h),{scrollTargetReached:D,scrollToIndex:k,topListHeight:R}},fi(Fu,Ws,Yf),{singleton:!0});function OHe(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}function jM(e,t){e==0?t():requestAnimationFrame(()=>{jM(e-1,t)})}function OM(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const $C=lo(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:A,scrollToIndex:i},{didMount:a}])=>{const c=Zt(!0),f=Zt(0),h=Zt(!0);return Tn(Ft(a,Rr(f),tr(([m,I])=>!!I),Ru(!1)),c),Tn(Ft(a,Rr(f),tr(([m,I])=>!!I),Ru(!1)),h),ko(Ft(fA(t,a),Rr(c,n,e,h),tr(([[,m],I,{sizeTree:v},k,D])=>m&&(!Wo(v)||QM(k))&&!I&&!D),Rr(f)),([,m])=>{Nc(A,()=>{Ir(h,!0)}),jM(4,()=>{Nc(r,()=>{Ir(c,!0)}),Ir(i,m)})}),{initialItemFinalLocationReached:h,initialTopMostItemIndex:f,scrolledToInitialItem:c}},fi(Fu,Ws,qC,zf),{singleton:!0});function Mre(e,t){return Math.abs(e-t)<1.01}const eB="up",tB="down",LHe="none",PHe={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},UHe=0,nB=lo(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:A,viewportHeight:i}])=>{const a=Zt(!1),c=Zt(!0),f=Zr(),h=Zr(),m=Zt(4),I=Zt(UHe),v=Bs(Ft(xM(Ft(Kn(A),vh(1),Ru(!0)),Ft(Kn(A),vh(1),Ru(!1),mre(100))),gi()),!1),k=Bs(Ft(xM(Ft(n,Ru(!0)),Ft(n,Ru(!1),mre(200))),gi()),!1);Tn(Ft(fA(Kn(A),Kn(I)),dn(([T,P])=>T<=P),gi()),c),Tn(Ft(c,X0(50)),h);const D=tl(Ft(fA(r,Kn(i),Kn(t),Kn(e),Kn(m)),Tu((T,[{scrollHeight:P,scrollTop:G},Y,z,Z,K])=>{const re=G+Y-P>-K,V={scrollHeight:P,scrollTop:G,viewportHeight:Y};if(re){let Be,he;return G>T.state.scrollTop?(Be="SCROLLED_DOWN",he=T.state.scrollTop-G):(Be="SIZE_DECREASED",he=T.state.scrollTop-G||T.scrollTopDelta),{atBottom:!0,atBottomBecause:Be,scrollTopDelta:he,state:V}}let oe;return V.scrollHeight>T.state.scrollHeight?oe="SIZE_INCREASED":YT&&T.atBottom===P.atBottom))),R=Bs(Ft(r,Tu((T,{scrollHeight:P,scrollTop:G,viewportHeight:Y})=>{if(Mre(T.scrollHeight,P))return{changed:!1,jump:0,scrollHeight:P,scrollTop:G};{const z=P-(G+Y)<1;return T.scrollTop!==G&&z?{changed:!0,jump:T.scrollTop-G,scrollHeight:P,scrollTop:G}:{changed:!0,jump:0,scrollHeight:P,scrollTop:G}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),tr(T=>T.changed),dn(T=>T.jump)),0);Tn(Ft(D,dn(T=>T.atBottom)),a),Tn(Ft(a,X0(50)),f);const F=Zt(tB);Tn(Ft(r,dn(({scrollTop:T})=>T),gi(),Tu((T,P)=>$i(k)?{direction:T.direction,prevScrollTop:P}:{direction:PT.direction)),F),Tn(Ft(r,X0(50),Ru(LHe)),F);const N=Zt(0);return Tn(Ft(v,tr(T=>!T),Ru(0)),N),Tn(Ft(A,X0(100),Rr(v),tr(([T,P])=>!!P),Tu(([T,P],[G])=>[P,G],[0,0]),dn(([T,P])=>P-T)),N),{atBottomState:D,atBottomStateChange:f,atBottomThreshold:m,atTopStateChange:h,atTopThreshold:I,isAtBottom:a,isAtTop:c,isScrolling:v,lastJumpDueToItemResize:R,scrollDirection:F,scrollVelocity:N}},fi(Ws)),T4="top",M4="bottom",Fre="none";function Nre(e,t,n){return typeof e=="number"?n===eB&&t===T4||n===tB&&t===M4?e:0:n===eB?t===T4?e.main:e.reverse:t===M4?e.main:e.reverse}function jre(e,t){var n;return typeof e=="number"?e:(n=e[t])!=null?n:0}const LM=lo(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:A}])=>{const i=Zr(),a=Zt(0),c=Zt(0),f=Zt(0),h=Bs(Ft(fA(Kn(r),Kn(A),Kn(n),Kn(i,KC),Kn(f),Kn(a),Kn(t),Kn(e),Kn(c)),dn(([m,I,v,[k,D],R,F,N,T,P])=>{const G=m-T,Y=F+N,z=Math.max(v-G,0);let Z=Fre;const K=jre(P,T4),re=jre(P,M4);return k-=T,k+=v+N,D+=v+N,D-=T,k>m+Y-K&&(Z=eB),Dm!=null),gi(KC)),[0,0]);return{increaseViewportBy:c,listBoundary:i,overscan:f,topListHeight:a,visibleRange:h}},fi(Ws),{singleton:!0});function GHe(e,t,n){if(R4(t)){const r=kre(e,t);return[{index:jc(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n==null?void 0:n[0],index:r,offset:0,size:0}]}return[{data:n==null?void 0:n[0],index:e,offset:0,size:0}]}const PM={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function F4(e,t,n,r,A,i){const{lastIndex:a,lastOffset:c,lastSize:f}=A;let h=0,m=0;if(e.length>0){h=e[0].offset;const R=e[e.length-1];m=R.offset+R.size}const I=n-a,v=c+I*f+(I-1)*r,k=h,D=v-m;return{bottom:m,firstItemIndex:i,items:Lre(e,A,i),offsetBottom:D,offsetTop:h,top:k,topItems:Lre(t,A,i),topListHeight:t.reduce((R,F)=>F.size+R,0),totalCount:n}}function Ore(e,t,n,r,A,i){let a=0;if(n.groupIndices.length>0)for(const m of n.groupIndices){if(m-a>=e)break;a++}const c=e+a,f=OM(t,c),h=Array.from({length:c}).map((m,I)=>({data:i[I+f],index:I+f,offset:0,size:0}));return F4(h,[],c,A,n,r)}function Lre(e,t,n){if(e.length===0)return[];if(!R4(t))return e.map(h=>({...h,index:h.index+n,originalIndex:h.index}));const r=e[0].index,A=e[e.length-1].index,i=[],a=k4(t.groupOffsetTree,r,A);let c,f=0;for(const h of e){(!c||c.end{const R=Zt([]),F=Zt(0),N=Zr();Tn(i.topItemsIndexes,R);const T=Bs(Ft(fA(k,D,Kn(f,KC),Kn(A),Kn(r),Kn(h),m,Kn(R),Kn(t),Kn(n),e),tr(([z,Z,,K,,,,,,,re])=>{const V=re&&re.length!==K;return z&&!Z&&!V}),dn(([,,[z,Z],K,re,V,oe,Be,he,de,me])=>{const Ae=re,{offsetTree:Ce,sizeTree:ae}=Ae,fe=$i(F);if(K===0)return{...PM,totalCount:K};if(z===0&&Z===0)return fe===0?{...PM,totalCount:K}:Ore(fe,V,re,he,de,me||[]);if(Wo(ae))return fe>0?null:F4(GHe(OM(V,K),Ae,me),[],K,de,Ae,he);const ye=[];if(Be.length>0){const Ze=Be[0],Te=Be[Be.length-1];let De=0;for(const Se of k4(ae,Ze,Te)){const Qe=Se.value,Ye=Math.max(Se.start,Ze),At=Math.min(Se.end,Te);for(let Je=Ye;Je<=At;Je++)ye.push({data:me==null?void 0:me[Je],index:Je,offset:De,size:Qe}),De+=Qe}}if(!oe)return F4([],ye,K,de,Ae,he);const Oe=Be.length>0?Be[Be.length-1]+1:0,Ie=SHe(Ce,z,Z,Oe);if(Ie.length===0)return null;const Fe=K-1,qe=_4([],Ze=>{for(const Te of Ie){const De=Te.value;let Se=De.offset,Qe=Te.start;const Ye=De.size;if(De.offset=Z);Je++)Ze.push({data:me==null?void 0:me[Je],index:Je,offset:Se,size:Ye}),Se+=Ye+de}});return F4(qe,ye,K,de,Ae,he)}),tr(z=>z!==null),gi()),PM);Tn(Ft(e,tr(QM),dn(z=>z==null?void 0:z.length)),A),Tn(Ft(T,dn(z=>z.topListHeight)),I),Tn(I,c),Tn(Ft(T,dn(z=>[z.top,z.bottom])),a),Tn(Ft(T,dn(z=>z.items)),N);const P=tl(Ft(T,tr(({items:z})=>z.length>0),Rr(A,e),tr(([{items:z},Z])=>z[z.length-1].originalIndex===Z-1),dn(([,z,Z])=>[z-1,Z]),gi(KC),dn(([z])=>z))),G=tl(Ft(T,X0(200),tr(({items:z,topItems:Z})=>z.length>0&&z[0].originalIndex===Z.length),dn(({items:z})=>z[0].index),gi())),Y=tl(Ft(T,tr(({items:z})=>z.length>0),dn(({items:z})=>{let Z=0,K=z.length-1;for(;z[Z].type==="group"&&ZZ;)K--;return{endIndex:z[K].index,startIndex:z[Z].index}}),gi(xre)));return{endReached:P,initialItemCount:F,itemsRendered:N,listState:T,rangeChanged:Y,startReached:G,topItemsIndexes:R,...v}},fi(Fu,Rre,LM,$C,qC,nB,zf,MM),{singleton:!0}),Pre=lo(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:A}])=>{const i=Zr(),a=Bs(Ft(fA(n,e,r,t,A),dn(([c,f,h,m,I])=>c+f+h+m+I.offsetBottom+I.bottom)),0);return Tn(Kn(a),i),{totalListHeight:a,totalListHeightChanged:i}},fi(Ws,Qh),{singleton:!0}),HHe=lo(([{viewportHeight:e},{totalListHeight:t}])=>{const n=Zt(!1),r=Bs(Ft(fA(n,e,t),tr(([A])=>A),dn(([,A,i])=>Math.max(0,A-i)),X0(0),gi()),0);return{alignToBottom:n,paddingTopAddition:r}},fi(Ws,Pre),{singleton:!0}),Ure=lo(()=>({context:Zt(null)})),YHe=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...A},viewportBottom:i,viewportTop:a})=>ti?{...A,align:n??"end",behavior:r}:null,Gre=lo(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:A,headerHeight:i,scrollingInProgress:a,scrollTop:c,viewportHeight:f},{scrollToIndex:h}])=>{const m=Zr();return Tn(Ft(m,Rr(t,f,n,i,A,r,c),Rr(e),dn(([[I,v,k,D,R,F,N,T],P])=>{const{align:G,behavior:Y,calculateViewLocation:z=YHe,done:Z,...K}=I,re=Sre(I,v,D-1),V=VC(re,v.offsetTree,P)+R+F,oe=V+jc(v.sizeTree,re)[1],Be=T+F,he=T+k-N,de=z({itemBottom:oe,itemTop:V,locationParams:{align:G,behavior:Y,...K},viewportBottom:he,viewportTop:Be});return de?Z&&Nc(Ft(a,tr(me=>!me),vh($i(a)?1:2)),Z):Z&&Z(),de}),tr(I=>I!==null)),h),{scrollIntoView:m}},fi(Fu,Ws,qC,Qh,Yf),{singleton:!0});function Hre(e){return e?e==="smooth"?"smooth":"auto":!1}const zHe=(e,t)=>typeof e=="function"?Hre(e(t)):t&&Hre(e),JHe=lo(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:A,isAtBottom:i},{scrollToIndex:a},{scrolledToInitialItem:c},{didMount:f,propsReady:h},{log:m},{scrollingInProgress:I},{context:v},{scrollIntoView:k}])=>{const D=Zt(!1),R=Zr();let F=null;function N(Y){Ir(a,{align:"end",behavior:Y,index:"LAST"})}ko(Ft(fA(Ft(Kn(t),vh(1)),f),Rr(Kn(D),i,c,I),dn(([[Y,z],Z,K,re,V])=>{let oe=z&&re,Be="auto";return oe&&(Be=zHe(Z,K||V),oe=oe&&!!Be),{followOutputBehavior:Be,shouldFollow:oe,totalCount:Y}}),tr(({shouldFollow:Y})=>Y)),({followOutputBehavior:Y,totalCount:z})=>{F&&(F(),F=null),$i(n)?requestAnimationFrame(()=>{$i(m)("following output to ",{totalCount:z},Ea.DEBUG),N(Y)}):F=Nc(e,()=>{$i(m)("following output to ",{totalCount:z},Ea.DEBUG),N(Y),F=null})});function T(Y){const z=Nc(A,Z=>{Y&&!Z.atBottom&&Z.notAtBottomBecause==="SIZE_INCREASED"&&!F&&($i(m)("scrolling to bottom due to increased size",{},Ea.DEBUG),N("auto"))});setTimeout(z,100)}ko(Ft(fA(Kn(D),t,h),tr(([Y,,z])=>Y&&z),Tu(({value:Y},[,z])=>({refreshed:Y===z,value:z}),{refreshed:!1,value:0}),tr(({refreshed:Y})=>Y),Rr(D,t)),([,Y])=>{$i(c)&&T(Y!==!1)}),ko(R,()=>{T($i(D)!==!1)}),ko(fA(Kn(D),A),([Y,z])=>{Y&&!z.atBottom&&z.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&N("auto")});const P=Zt(null),G=Zr();return Tn(xM(Ft(Kn(r),dn(Y=>{var z;return(z=Y==null?void 0:Y.length)!=null?z:0})),Ft(Kn(t))),G),ko(Ft(fA(Ft(G,vh(1)),f),Rr(Kn(P),c,I,v),dn(([[Y,z],Z,K,re,V])=>z&&K&&(Z==null?void 0:Z({context:V,totalCount:Y,scrollingInProgress:re}))),tr(Y=>!!Y),X0(0)),Y=>{F&&(F(),F=null),$i(n)?requestAnimationFrame(()=>{$i(m)("scrolling into view",{}),Ir(k,Y)}):F=Nc(e,()=>{$i(m)("scrolling into view",{}),Ir(k,Y),F=null})}),{autoscrollToBottom:R,followOutput:D,scrollIntoViewOnChange:P}},fi(Fu,nB,qC,$C,zf,Yf,Ws,Ure,Gre)),WHe=lo(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:A},{initialItemCount:i,listState:a},{didMount:c}])=>(Tn(Ft(c,Rr(i),tr(([,f])=>f!==0),Rr(A,r,t,n,e),dn(([[,f],h,m,I,v,k=[]])=>Ore(f,h,m,I,v,k))),a),{}),fi(Fu,$C,Qh,zf),{singleton:!0}),ZHe=lo(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=Zt(0);return ko(Ft(e,Rr(r),tr(([,A])=>A!==0),dn(([,A])=>({top:A}))),A=>{Nc(Ft(n,vh(1),tr(i=>i.items.length>1)),()=>{requestAnimationFrame(()=>{Ir(t,A)})})}),{initialScrollTop:r}},fi(zf,Ws,Qh),{singleton:!0}),Yre=lo(([{scrollVelocity:e}])=>{const t=Zt(!1),n=Zr(),r=Zt(!1);return Tn(Ft(e,Rr(r,t,n),tr(([A,i])=>!!i),dn(([A,i,a,c])=>{const{enter:f,exit:h}=i;if(a){if(h(A,c))return!1}else if(f(A,c))return!0;return a}),gi()),t),ko(Ft(fA(t,e,n),Rr(r)),([[A,i,a],c])=>{A&&c&&c.change&&c.change(i,a)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},fi(nB),{singleton:!0}),UM=lo(([{scrollContainerState:e,scrollTo:t}])=>{const n=Zr(),r=Zr(),A=Zr(),i=Zt(!1),a=Zt(void 0);return Tn(Ft(fA(n,r),dn(([{scrollHeight:c,scrollTop:f,viewportHeight:h},{offsetTop:m}])=>({scrollHeight:c,scrollTop:Math.max(0,f-m),viewportHeight:h}))),e),Tn(Ft(t,Rr(r),dn(([c,{offsetTop:f}])=>({...c,top:c.top+f}))),A),{customScrollParent:a,useWindowScroll:i,windowScrollContainerState:n,windowScrollTo:A,windowViewportRect:r}},fi(Ws)),XHe=lo(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:A},{didMount:i},{useWindowScroll:a,windowScrollContainerState:c,windowViewportRect:f}])=>{const h=Zr(),m=Zt(void 0),I=Zt(null),v=Zt(null);return Tn(c,I),Tn(f,v),ko(Ft(h,Rr(t,r,a,I,v,n)),([k,D,R,F,N,T,P])=>{const G=RHe(D.sizeTree);F&&N!==null&&T!==null&&(R=N.scrollTop-T.offsetTop),R-=P,k({ranges:G,scrollTop:R})}),Tn(Ft(m,tr(QM),dn(KHe)),A),Tn(Ft(i,Rr(m),tr(([,k])=>k!==void 0),gi(),dn(([,k])=>k.ranges)),e),{getState:h,restoreStateFrom:m}},fi(Fu,Ws,$C,zf,UM));function KHe(e){return{align:"start",index:0,offset:e.scrollTop}}const VHe=lo(([{topItemsIndexes:e}])=>{const t=Zt(0);return Tn(Ft(t,tr(n=>n>=0),dn(n=>Array.from({length:n}).map((r,A)=>A))),e),{topItemCount:t}},fi(Qh));function zre(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const qHe=zre(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),$He=lo(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:A,isScrolling:i,lastJumpDueToItemResize:a,scrollDirection:c},{listState:f},{beforeUnshiftWith:h,gap:m,shiftWithOffset:I,sizes:v},{log:k},{recalcInProgress:D}])=>{const R=tl(Ft(f,Rr(a),Tu(([,N,T,P],[{bottom:G,items:Y,offsetBottom:z,totalCount:Z},K])=>{const re=G+z;let V=0;return T===Z&&N.length>0&&Y.length>0&&(Y[0].originalIndex===0&&N[0].originalIndex===0||(V=re-P,V!==0&&(V+=K))),[V,Y,Z,re]},[0,[],0,0]),tr(([N])=>N!==0),Rr(r,c,n,A,k,D),tr(([,N,T,P,,,G])=>!G&&!P&&N!==0&&T===eB),dn(([[N],,,,,T])=>(T("Upward scrolling compensation",{amount:N},Ea.DEBUG),N))));function F(N){N>0?(Ir(t,{behavior:"auto",top:-N}),Ir(e,0)):(Ir(e,0),Ir(t,{behavior:"auto",top:-N}))}return ko(Ft(R,Rr(e,i)),([N,T,P])=>{P&&qHe()?Ir(e,T-N):F(-N)}),ko(Ft(fA(Bs(i,!1),e,D),tr(([N,T,P])=>!N&&!P&&T!==0),dn(([N,T])=>T),X0(1)),F),Tn(Ft(I,dn(N=>({top:-N}))),t),ko(Ft(h,Rr(v,m),dn(([N,{groupIndices:T,lastSize:P,sizeTree:G},Y])=>{function z(Z){return Z*(P+Y)}if(T.length===0)return z(N);{let Z=0;const K=XC(G,0);let re=0,V=0;for(;reN&&(Z-=K,oe=N-re+1),re+=oe,Z+=z(oe),V++}return Z}})),N=>{Ir(e,N),requestAnimationFrame(()=>{Ir(t,{top:N}),requestAnimationFrame(()=>{Ir(e,0),Ir(D,!1)})})}),{deviation:e}},fi(Ws,nB,Qh,Fu,Yf,MM)),eYe=lo(([e,t,n,r,A,i,a,c,f,h,m])=>({...e,...t,...n,...r,...A,...i,...a,...c,...f,...h,...m}),fi(LM,WHe,zf,Yre,Pre,ZHe,HHe,UM,Gre,Yf,Ure)),Jre=lo(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,gap:A,groupIndices:i,itemSize:a,sizeRanges:c,sizes:f,statefulTotalCount:h,totalCount:m,trackItemSizes:I},{initialItemFinalLocationReached:v,initialTopMostItemIndex:k,scrolledToInitialItem:D},R,F,N,{listState:T,topItemsIndexes:P,...G},{scrollToIndex:Y},z,{topItemCount:Z},{groupCounts:K},re])=>(Tn(G.rangeChanged,re.scrollSeekRangeChanged),Tn(Ft(re.windowViewportRect,dn(V=>V.visibleHeight)),R.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,gap:A,groupCounts:K,initialItemFinalLocationReached:v,initialTopMostItemIndex:k,scrolledToInitialItem:D,sizeRanges:c,topItemCount:Z,topItemsIndexes:P,totalCount:m,...N,groupIndices:i,itemSize:a,listState:T,scrollToIndex:Y,statefulTotalCount:h,trackItemSizes:I,...G,...re,...R,sizes:f,...F}),fi(Fu,$C,Ws,XHe,JHe,Qh,qC,$He,VHe,Rre,eYe));function tYe(e,t){const n={},r={};let A=0;const i=e.length;for(;A(N[T]=P=>{const G=F[t.methods[T]];Ir(G,P)},N),{})}function m(F){return a.reduce((N,T)=>(N[T]=EHe(F[t.events[T]]),N),{})}const I=vt.forwardRef((F,N)=>{const{children:T,...P}=F,[G]=vt.useState(()=>_4(CHe(e),Z=>{f(Z,P)})),[Y]=vt.useState(pre(m,G));N4(()=>{for(const Z of a)Z in P&&ko(Y[Z],P[Z]);return()=>{Object.values(Y).map(wM)}},[P,Y,G]),N4(()=>{f(G,P)}),vt.useImperativeHandle(N,hre(h(G)));const z=n;return p.jsx(c.Provider,{value:G,children:n?p.jsx(z,{...tYe([...r,...A,...a],P),children:T}):T})}),v=F=>{const N=vt.useContext(c);return vt.useCallback(T=>{Ir(N[F],T)},[N,F])},k=F=>{const N=vt.useContext(c)[F],T=vt.useCallback(P=>ko(N,P),[N]);return vt.useSyncExternalStore(T,()=>$i(N),()=>$i(N))},D=F=>{const N=vt.useContext(c)[F],[T,P]=vt.useState(pre($i,N));return N4(()=>ko(N,G=>{G!==T&&P(hre(G))}),[N,T]),T},R=vt.version.startsWith("18")?k:D;return{Component:I,useEmitter:(F,N)=>{const T=vt.useContext(c)[F];N4(()=>ko(T,N),[N,T])},useEmitterValue:R,usePublisher:v}}const j4=vt.createContext(void 0),Wre=vt.createContext(void 0),Zre=typeof document<"u"?vt.useLayoutEffect:vt.useEffect;function HM(e){return"self"in e}function nYe(e){return"body"in e}function Xre(e,t,n,r=Y1,A,i){const a=vt.useRef(null),c=vt.useRef(null),f=vt.useRef(null),h=vt.useCallback(v=>{let k,D,R;const F=v.target;if(nYe(F)||HM(F)){const T=HM(F)?F:F.defaultView;R=i?T.scrollX:T.scrollY,k=i?T.document.documentElement.scrollWidth:T.document.documentElement.scrollHeight,D=i?T.innerWidth:T.innerHeight}else R=i?F.scrollLeft:F.scrollTop,k=i?F.scrollWidth:F.scrollHeight,D=i?F.offsetWidth:F.offsetHeight;const N=()=>{e({scrollHeight:k,scrollTop:Math.max(R,0),viewportHeight:D})};v.suppressFlushSync?N():NU.flushSync(N),c.current!==null&&(R===c.current||R<=0||R===k-D)&&(c.current=null,t(!0),f.current&&(clearTimeout(f.current),f.current=null))},[e,t,i]);vt.useEffect(()=>{const v=A||a.current;return r(A||a.current),h({suppressFlushSync:!0,target:v}),v.addEventListener("scroll",h,{passive:!0}),()=>{r(null),v.removeEventListener("scroll",h)}},[a,h,n,r,A]);function m(v){const k=a.current;if(!k||(i?"offsetWidth"in k&&k.offsetWidth===0:"offsetHeight"in k&&k.offsetHeight===0))return;const D=v.behavior==="smooth";let R,F,N;HM(k)?(F=Math.max(Oc(k.document.documentElement,i?"width":"height"),i?k.document.documentElement.scrollWidth:k.document.documentElement.scrollHeight),R=i?k.innerWidth:k.innerHeight,N=i?window.scrollX:window.scrollY):(F=k[i?"scrollWidth":"scrollHeight"],R=Oc(k,i?"width":"height"),N=k[i?"scrollLeft":"scrollTop"]);const T=F-R;if(v.top=Math.ceil(Math.max(Math.min(T,v.top),0)),Mre(R,F)||v.top===N){e({scrollHeight:F,scrollTop:N,viewportHeight:R}),D&&t(!0);return}D?(c.current=v.top,f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{f.current=null,c.current=null,t(!0)},1e3)):c.current=null,i&&(v={behavior:v.behavior,left:v.top}),k.scrollTo(v)}function I(v){i&&(v={behavior:v.behavior,left:v.top}),a.current.scrollBy(v)}return{scrollByCallback:I,scrollerRef:a,scrollToCallback:m}}const YM="-webkit-sticky",Kre="sticky",zM=zre(()=>{if(typeof document>"u")return Kre;const e=document.createElement("div");return e.style.position=YM,e.style.position===YM?YM:Kre});function JM(e){return e}const rYe=lo(()=>{const e=Zt(c=>`Item ${c}`),t=Zt(c=>`Group ${c}`),n=Zt({}),r=Zt(JM),A=Zt("div"),i=Zt(Y1),a=(c,f=null)=>Bs(Ft(n,dn(h=>h[c]),gi()),f);return{components:n,computeItemKey:r,EmptyPlaceholder:a("EmptyPlaceholder"),FooterComponent:a("Footer"),GroupComponent:a("Group","div"),groupContent:t,HeaderComponent:a("Header"),HeaderFooterTag:A,ItemComponent:a("Item","div"),itemContent:e,ListComponent:a("List","div"),ScrollerComponent:a("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),TopItemListComponent:a("TopItemList")}}),oYe=lo(([e,t])=>({...e,...t}),fi(Jre,rYe)),iYe=({height:e})=>p.jsx("div",{style:{height:e}}),AYe={overflowAnchor:"none",position:zM(),zIndex:1},Vre={overflowAnchor:"none"},sYe={...Vre,display:"inline-block",height:"100%"},qre=vt.memo(function({showTopList:e=!1}){const t=lr("listState"),n=Ul("sizeRanges"),r=lr("useWindowScroll"),A=lr("customScrollParent"),i=Ul("windowScrollContainerState"),a=Ul("scrollContainerState"),c=A||r?i:a,f=lr("itemContent"),h=lr("context"),m=lr("groupContent"),I=lr("trackItemSizes"),v=lr("itemSize"),k=lr("log"),D=Ul("gap"),R=lr("horizontalDirection"),{callbackRef:F}=Ire(n,v,I,e?Y1:c,k,D,A,R,lr("skipAnimationFrameInResizeObserver")),[N,T]=vt.useState(0);XM("deviation",de=>{N!==de&&T(de)});const P=lr("EmptyPlaceholder"),G=lr("ScrollSeekPlaceholder")||iYe,Y=lr("ListComponent"),z=lr("ItemComponent"),Z=lr("GroupComponent"),K=lr("computeItemKey"),re=lr("isSeeking"),V=lr("groupIndices").length>0,oe=lr("alignToBottom"),Be=lr("initialItemFinalLocationReached"),he=e?{}:{boxSizing:"border-box",...R?{display:"inline-block",height:"100%",marginLeft:N!==0?N:oe?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:N!==0?N:oe?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...Be?{}:{visibility:"hidden"}};return!e&&t.totalCount===0&&P?p.jsx(P,{...hi(P,h)}):p.jsx(Y,{...hi(Y,h),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:F,style:he,children:(e?t.topItems:t.items).map(de=>{const me=de.originalIndex,Ae=K(me+t.firstItemIndex,de.data,h);return re?b.createElement(G,{...hi(G,h),height:de.size,index:de.index,key:Ae,type:de.type||"item",...de.type==="group"?{}:{groupIndex:de.groupIndex}}):de.type==="group"?b.createElement(Z,{...hi(Z,h),"data-index":me,"data-item-index":de.index,"data-known-size":de.size,key:Ae,style:AYe},m(de.index,h)):b.createElement(z,{...hi(z,h),...$re(z,de.data),"data-index":me,"data-item-group-index":de.groupIndex,"data-item-index":de.index,"data-known-size":de.size,key:Ae,style:R?sYe:Vre},V?f(de.index,de.groupIndex,de.data,h):f(de.index,de.data,h))})})}),aYe={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},lYe={outline:"none",overflowX:"auto",position:"relative"},J1=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),cYe={position:zM(),top:0,width:"100%",zIndex:1};function hi(e,t){if(typeof e!="string")return{context:t}}function $re(e,t){return{item:typeof e=="string"?void 0:t}}const uYe=vt.memo(function(){const e=lr("HeaderComponent"),t=Ul("headerHeight"),n=lr("HeaderFooterTag"),r=Mu(vt.useMemo(()=>i=>{t(Oc(i,"height"))},[t]),!0,lr("skipAnimationFrameInResizeObserver")),A=lr("context");return e?p.jsx(n,{ref:r,children:p.jsx(e,{...hi(e,A)})}):null}),dYe=vt.memo(function(){const e=lr("FooterComponent"),t=Ul("footerHeight"),n=lr("HeaderFooterTag"),r=Mu(vt.useMemo(()=>i=>{t(Oc(i,"height"))},[t]),!0,lr("skipAnimationFrameInResizeObserver")),A=lr("context");return e?p.jsx(n,{ref:r,children:p.jsx(e,{...hi(e,A)})}):null});function WM({useEmitter:e,useEmitterValue:t,usePublisher:n}){return vt.memo(function({children:r,style:A,context:i,...a}){const c=n("scrollContainerState"),f=t("ScrollerComponent"),h=n("smoothScrollTargetReached"),m=t("scrollerRef"),I=t("horizontalDirection")||!1,{scrollByCallback:v,scrollerRef:k,scrollToCallback:D}=Xre(c,h,f,m,void 0,I);return e("scrollTo",D),e("scrollBy",v),p.jsx(f,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:k,style:{...I?lYe:aYe,...A},tabIndex:0,...a,...hi(f,i),children:r})})}function ZM({useEmitter:e,useEmitterValue:t,usePublisher:n}){return vt.memo(function({children:r,style:A,context:i,...a}){const c=n("windowScrollContainerState"),f=t("ScrollerComponent"),h=n("smoothScrollTargetReached"),m=t("totalListHeight"),I=t("deviation"),v=t("customScrollParent"),k=vt.useRef(null),D=t("scrollerRef"),{scrollByCallback:R,scrollerRef:F,scrollToCallback:N}=Xre(c,h,f,D,v);return Zre(()=>{var T;return F.current=v||((T=k.current)==null?void 0:T.ownerDocument.defaultView),()=>{F.current=null}},[F,v]),e("windowScrollTo",N),e("scrollBy",R),p.jsx(f,{ref:k,"data-virtuoso-scroller":!0,style:{position:"relative",...A,...m!==0?{height:m+I}:{}},...a,...hi(f,i),children:r})})}const fYe=({children:e})=>{const t=vt.useContext(j4),n=Ul("viewportHeight"),r=Ul("fixedItemHeight"),A=lr("alignToBottom"),i=lr("horizontalDirection"),a=vt.useMemo(()=>WC(n,f=>Oc(f,i?"width":"height")),[n,i]),c=Mu(a,!0,lr("skipAnimationFrameInResizeObserver"));return vt.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),p.jsx("div",{"data-viewport-type":"element",ref:c,style:J1(A),children:e})},gYe=({children:e})=>{const t=vt.useContext(j4),n=Ul("windowViewportRect"),r=Ul("fixedItemHeight"),A=lr("customScrollParent"),i=kM(n,A,lr("skipAnimationFrameInResizeObserver")),a=lr("alignToBottom");return vt.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),p.jsx("div",{"data-viewport-type":"window",ref:i,style:J1(a),children:e})},hYe=({children:e})=>{const t=lr("TopItemListComponent")||"div",n=lr("headerHeight"),r={...cYe,marginTop:`${n}px`},A=lr("context");return p.jsx(t,{style:r,...hi(t,A),children:e})},pYe=vt.memo(function(e){const t=lr("useWindowScroll"),n=lr("topItemsIndexes").length>0,r=lr("customScrollParent"),A=lr("context");return p.jsxs(r||t?IYe:EYe,{...e,context:A,children:[n&&p.jsx(hYe,{children:p.jsx(qre,{showTopList:!0})}),p.jsxs(r||t?gYe:fYe,{children:[p.jsx(uYe,{}),p.jsx(qre,{}),p.jsx(dYe,{})]})]})}),{Component:mYe,useEmitter:XM,useEmitterValue:lr,usePublisher:Ul}=GM(oYe,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},pYe),EYe=WM({useEmitter:XM,useEmitterValue:lr,usePublisher:Ul}),IYe=ZM({useEmitter:XM,useEmitterValue:lr,usePublisher:Ul}),CYe=mYe,BYe=lo(()=>{const e=Zt(h=>p.jsxs("td",{children:["Item $",h]})),t=Zt(null),n=Zt(h=>p.jsxs("td",{colSpan:1e3,children:["Group ",h]})),r=Zt(null),A=Zt(null),i=Zt({}),a=Zt(JM),c=Zt(Y1),f=(h,m=null)=>Bs(Ft(i,dn(I=>I[h]),gi()),m);return{components:i,computeItemKey:a,context:t,EmptyPlaceholder:f("EmptyPlaceholder"),FillerRow:f("FillerRow"),fixedFooterContent:A,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:f("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:f("ScrollSeekPlaceholder"),TableBodyComponent:f("TableBody","tbody"),TableComponent:f("Table","table"),TableFooterComponent:f("TableFoot","tfoot"),TableHeadComponent:f("TableHead","thead"),TableRowComponent:f("TableRow","tr"),GroupComponent:f("Group","tr")}}),yYe=lo(([e,t])=>({...e,...t}),fi(Jre,BYe)),vYe=({height:e})=>p.jsx("tr",{children:p.jsx("td",{style:{height:e}})}),bYe=({height:e})=>p.jsx("tr",{children:p.jsx("td",{style:{border:0,height:e,padding:0}})}),QYe={overflowAnchor:"none"},eoe={position:zM(),zIndex:2,overflowAnchor:"none"},toe=vt.memo(function({showTopList:e=!1}){const t=Cr("listState"),n=Cr("computeItemKey"),r=Cr("firstItemIndex"),A=Cr("context"),i=Cr("isSeeking"),a=Cr("fixedHeaderHeight"),c=Cr("groupIndices").length>0,f=Cr("itemContent"),h=Cr("groupContent"),m=Cr("ScrollSeekPlaceholder")||vYe,I=Cr("GroupComponent"),v=Cr("TableRowComponent"),k=(e?t.topItems:[]).reduce((R,F,N)=>(N===0?R.push(F.size):R.push(R[N-1]+F.size),R),[]),D=(e?t.topItems:t.items).map(R=>{const F=R.originalIndex,N=n(F+r,R.data,A),T=e?F===0?0:k[F-1]:0;return i?b.createElement(m,{...hi(m,A),height:R.size,index:R.index,key:N,type:R.type||"item"}):R.type==="group"?b.createElement(I,{...hi(I,A),"data-index":F,"data-item-index":R.index,"data-known-size":R.size,key:N,style:{...eoe,top:a}},h(R.index,A)):b.createElement(v,{...hi(v,A),...$re(v,R.data),"data-index":F,"data-item-index":R.index,"data-known-size":R.size,"data-item-group-index":R.groupIndex,key:N,style:e?{...eoe,top:a+T}:QYe},c?f(R.index,R.groupIndex,R.data,A):f(R.index,R.data,A))});return p.jsx(p.Fragment,{children:D})}),wYe=vt.memo(function(){const e=Cr("listState"),t=Cr("topItemsIndexes").length>0,n=Lc("sizeRanges"),r=Cr("useWindowScroll"),A=Cr("customScrollParent"),i=Lc("windowScrollContainerState"),a=Lc("scrollContainerState"),c=A||r?i:a,f=Cr("trackItemSizes"),h=Cr("itemSize"),m=Cr("log"),{callbackRef:I,ref:v}=Ire(n,h,f,c,m,void 0,A,!1,Cr("skipAnimationFrameInResizeObserver")),[k,D]=vt.useState(0);KM("deviation",V=>{k!==V&&(v.current.style.marginTop=`${V}px`,D(V))});const R=Cr("EmptyPlaceholder"),F=Cr("FillerRow")||bYe,N=Cr("TableBodyComponent"),T=Cr("paddingTopAddition"),P=Cr("statefulTotalCount"),G=Cr("context");if(P===0&&R)return p.jsx(R,{...hi(R,G)});const Y=(t?e.topItems:[]).reduce((V,oe)=>V+oe.size,0),z=e.offsetTop+T+k-Y,Z=e.offsetBottom,K=z>0?p.jsx(F,{context:G,height:z},"padding-top"):null,re=Z>0?p.jsx(F,{context:G,height:Z},"padding-bottom"):null;return p.jsxs(N,{"data-testid":"virtuoso-item-list",ref:I,...hi(N,G),children:[K,t&&p.jsx(toe,{showTopList:!0}),p.jsx(toe,{}),re]})}),xYe=({children:e})=>{const t=vt.useContext(j4),n=Lc("viewportHeight"),r=Lc("fixedItemHeight"),A=Mu(vt.useMemo(()=>WC(n,i=>Oc(i,"height")),[n]),!0,Cr("skipAnimationFrameInResizeObserver"));return vt.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),p.jsx("div",{"data-viewport-type":"element",ref:A,style:J1(!1),children:e})},_Ye=({children:e})=>{const t=vt.useContext(j4),n=Lc("windowViewportRect"),r=Lc("fixedItemHeight"),A=Cr("customScrollParent"),i=kM(n,A,Cr("skipAnimationFrameInResizeObserver"));return vt.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),p.jsx("div",{"data-viewport-type":"window",ref:i,style:J1(!1),children:e})},kYe=vt.memo(function(e){const t=Cr("useWindowScroll"),n=Cr("customScrollParent"),r=Lc("fixedHeaderHeight"),A=Lc("fixedFooterHeight"),i=Cr("fixedHeaderContent"),a=Cr("fixedFooterContent"),c=Cr("context"),f=Mu(vt.useMemo(()=>WC(r,N=>Oc(N,"height")),[r]),!0,Cr("skipAnimationFrameInResizeObserver")),h=Mu(vt.useMemo(()=>WC(A,N=>Oc(N,"height")),[A]),!0,Cr("skipAnimationFrameInResizeObserver")),m=n||t?RYe:DYe,I=n||t?_Ye:xYe,v=Cr("TableComponent"),k=Cr("TableHeadComponent"),D=Cr("TableFooterComponent"),R=i?p.jsx(k,{ref:f,style:{position:"sticky",top:0,zIndex:2},...hi(k,c),children:i()},"TableHead"):null,F=a?p.jsx(D,{ref:h,style:{bottom:0,position:"sticky",zIndex:1},...hi(D,c),children:a()},"TableFoot"):null;return p.jsx(m,{...e,...hi(m,c),children:p.jsx(I,{children:p.jsxs(v,{style:{borderSpacing:0,overflowAnchor:"none"},...hi(v,c),children:[R,p.jsx(wYe,{},"TableBody"),F]})})})}),{Component:SYe,useEmitter:KM,useEmitterValue:Cr,usePublisher:Lc}=GM(yYe,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},kYe),DYe=WM({useEmitter:KM,useEmitterValue:Cr,usePublisher:Lc}),RYe=ZM({useEmitter:KM,useEmitterValue:Cr,usePublisher:Lc}),TYe=SYe,noe={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},MYe={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:roe,floor:O4,max:rB,min:VM,round:ooe}=Math;function ioe(e,t,n){return Array.from({length:t-e+1}).map((r,A)=>({data:n===null?null:n[A+e],index:A+e}))}function FYe(e){return{...MYe,items:e}}function L4(e,t){return e&&e.width===t.width&&e.height===t.height}function NYe(e,t){return e&&e.column===t.column&&e.row===t.row}const jYe=lo(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:A,headerHeight:i,scrollBy:a,scrollContainerState:c,scrollTo:f,scrollTop:h,smoothScrollTargetReached:m,viewportHeight:I},v,k,{didMount:D,propsReady:R},{customScrollParent:F,useWindowScroll:N,windowScrollContainerState:T,windowScrollTo:P,windowViewportRect:G},Y])=>{const z=Zt(0),Z=Zt(0),K=Zt(noe),re=Zt({height:0,width:0}),V=Zt({height:0,width:0}),oe=Zr(),Be=Zr(),he=Zt(0),de=Zt(null),me=Zt({column:0,row:0}),Ae=Zr(),Ce=Zr(),ae=Zt(!1),fe=Zt(0),ye=Zt(!0),Oe=Zt(!1),Ie=Zt(!1);ko(Ft(D,Rr(fe),tr(([Se,Qe])=>!!Qe)),()=>{Ir(ye,!1)}),ko(Ft(fA(D,ye,V,re,fe,Oe),tr(([Se,Qe,Ye,At,,Je])=>Se&&!Qe&&Ye.height!==0&&At.height!==0&&!Je)),([,,,,Se])=>{Ir(Oe,!0),jM(1,()=>{Ir(oe,Se)}),Nc(Ft(h),()=>{Ir(t,[0,0]),Ir(ye,!0)})}),Tn(Ft(Ce,tr(Se=>Se!=null&&Se.scrollTop>0),Ru(0)),Z),ko(Ft(D,Rr(Ce),tr(([,Se])=>Se!=null)),([,Se])=>{Se&&(Ir(re,Se.viewport),Ir(V,Se.item),Ir(me,Se.gap),Se.scrollTop>0&&(Ir(ae,!0),Nc(Ft(h,vh(1)),Qe=>{Ir(ae,!1)}),Ir(f,{top:Se.scrollTop})))}),Tn(Ft(re,dn(({height:Se})=>Se)),I),Tn(Ft(fA(Kn(re,L4),Kn(V,L4),Kn(me,(Se,Qe)=>Se&&Se.column===Qe.column&&Se.row===Qe.row),Kn(h)),dn(([Se,Qe,Ye,At])=>({gap:Ye,item:Qe,scrollTop:At,viewport:Se}))),Ae),Tn(Ft(fA(Kn(z),r,Kn(me,NYe),Kn(V,L4),Kn(re,L4),Kn(de),Kn(Z),Kn(ae),Kn(ye),Kn(fe)),tr(([,,,,,,,Se])=>!Se),dn(([Se,[Qe,Ye],At,Je,Nt,jt,bt,,wt,se])=>{const{column:$t,row:Sn}=At,{height:fn,width:ue}=Je,{width:ln}=Nt;if(bt===0&&(Se===0||ln===0))return noe;if(ue===0){const $r=OM(se,Se),xr=$r+Math.max(bt-1,0);return FYe(ioe($r,xr,jt))}const Dt=Aoe(ln,ue,$t);let Gt,It;wt?Qe===0&&Ye===0&&bt>0?(Gt=0,It=bt-1):(Gt=Dt*O4((Qe+Sn)/(fn+Sn)),It=Dt*roe((Ye+Sn)/(fn+Sn))-1,It=VM(Se-1,rB(It,Dt-1)),Gt=VM(It,rB(0,Gt))):(Gt=0,It=-1);const Cn=ioe(Gt,It,jt),{bottom:wn,top:jr}=soe(Nt,At,Je,Cn),Yr=roe(Se/Dt),or=Yr*fn+(Yr-1)*Sn-wn;return{bottom:wn,itemHeight:fn,items:Cn,itemWidth:ue,offsetBottom:or,offsetTop:jr,top:jr}})),K),Tn(Ft(de,tr(Se=>Se!==null),dn(Se=>Se.length)),z),Tn(Ft(fA(re,V,K,me),tr(([Se,Qe,{items:Ye}])=>Ye.length>0&&Qe.height!==0&&Se.height!==0),dn(([Se,Qe,{items:Ye},At])=>{const{bottom:Je,top:Nt}=soe(Se,At,Qe,Ye);return[Nt,Je]}),gi(KC)),t);const Fe=Zt(!1);Tn(Ft(h,Rr(Fe),dn(([Se,Qe])=>Qe||Se!==0)),Fe);const qe=tl(Ft(fA(K,z),tr(([{items:Se}])=>Se.length>0),Rr(Fe),tr(([[Se,Qe],Ye])=>{const At=Se.items[Se.items.length-1].index===Qe-1;return(Ye||Se.bottom>0&&Se.itemHeight>0&&Se.offsetBottom===0&&Se.items.length===Qe)&&At}),dn(([[,Se]])=>Se-1),gi())),Ze=tl(Ft(Kn(K),tr(({items:Se})=>Se.length>0&&Se[0].index===0),Ru(0),gi())),Te=tl(Ft(Kn(K),Rr(ae),tr(([{items:Se},Qe])=>Se.length>0&&!Qe),dn(([{items:Se}])=>({endIndex:Se[Se.length-1].index,startIndex:Se[0].index})),gi(xre),X0(0)));Tn(Te,k.scrollSeekRangeChanged),Tn(Ft(oe,Rr(re,V,z,me),dn(([Se,Qe,Ye,At,Je])=>{const Nt=Tre(Se),{align:jt,behavior:bt,offset:wt}=Nt;let se=Nt.index;se==="LAST"&&(se=At-1),se=rB(0,se,VM(At-1,se));let $t=qM(Qe,Je,Ye,se);return jt==="end"?$t=ooe($t-Qe.height+Ye.height):jt==="center"&&($t=ooe($t-Qe.height/2+Ye.height/2)),wt&&($t+=wt),{behavior:bt,top:$t}})),f);const De=Bs(Ft(K,dn(Se=>Se.offsetBottom+Se.bottom)),0);return Tn(Ft(G,dn(Se=>({height:Se.visibleHeight,width:Se.visibleWidth}))),re),{customScrollParent:F,data:de,deviation:he,footerHeight:A,gap:me,headerHeight:i,increaseViewportBy:e,initialItemCount:Z,itemDimensions:V,overscan:n,restoreStateFrom:Ce,scrollBy:a,scrollContainerState:c,scrollHeight:Be,scrollTo:f,scrollToIndex:oe,scrollTop:h,smoothScrollTargetReached:m,totalCount:z,useWindowScroll:N,viewportDimensions:re,windowScrollContainerState:T,windowScrollTo:P,windowViewportRect:G,...k,gridState:K,horizontalDirection:Ie,initialTopMostItemIndex:fe,totalListHeight:De,...v,endReached:qe,propsReady:R,rangeChanged:Te,startReached:Ze,stateChanged:Ae,stateRestoreInProgress:ae,...Y}},fi(LM,Ws,nB,Yre,zf,UM,Yf));function Aoe(e,t,n){return rB(1,O4((e+n)/(O4(t)+n)))}function soe(e,t,n,r){const{height:A}=n;if(A===void 0||r.length===0)return{bottom:0,top:0};const i=qM(e,t,n,r[0].index);return{bottom:qM(e,t,n,r[r.length-1].index)+A,top:i}}function qM(e,t,n,r){const A=Aoe(e.width,n.width,t.column),i=O4(r/A),a=i*n.height+rB(0,i-1)*t.row;return a>0?a+t.row:a}const OYe=lo(()=>{const e=Zt(I=>`Item ${I}`),t=Zt({}),n=Zt(null),r=Zt("virtuoso-grid-item"),A=Zt("virtuoso-grid-list"),i=Zt(JM),a=Zt("div"),c=Zt(Y1),f=(I,v=null)=>Bs(Ft(t,dn(k=>k[I]),gi()),v),h=Zt(!1),m=Zt(!1);return Tn(Kn(m),h),{components:t,computeItemKey:i,context:n,FooterComponent:f("Footer"),HeaderComponent:f("Header"),headerFooterTag:a,itemClassName:r,ItemComponent:f("Item","div"),itemContent:e,listClassName:A,ListComponent:f("List","div"),readyStateChanged:h,reportReadyState:m,ScrollerComponent:f("Scroller","div"),scrollerRef:c,ScrollSeekPlaceholder:f("ScrollSeekPlaceholder","div")}}),LYe=lo(([e,t])=>({...e,...t}),fi(jYe,OYe)),PYe=vt.memo(function(){const e=Bi("gridState"),t=Bi("listClassName"),n=Bi("itemClassName"),r=Bi("itemContent"),A=Bi("computeItemKey"),i=Bi("isSeeking"),a=Gl("scrollHeight"),c=Bi("ItemComponent"),f=Bi("ListComponent"),h=Bi("ScrollSeekPlaceholder"),m=Bi("context"),I=Gl("itemDimensions"),v=Gl("gap"),k=Bi("log"),D=Bi("stateRestoreInProgress"),R=Gl("reportReadyState"),F=Mu(vt.useMemo(()=>N=>{const T=N.parentElement.parentElement.scrollHeight;a(T);const P=N.firstChild;if(P){const{height:G,width:Y}=P.getBoundingClientRect();I({height:G,width:Y})}v({column:loe("column-gap",getComputedStyle(N).columnGap,k),row:loe("row-gap",getComputedStyle(N).rowGap,k)})},[a,I,v,k]),!0,!1);return Zre(()=>{e.itemHeight>0&&e.itemWidth>0&&R(!0)},[e]),D?null:p.jsx(f,{className:t,ref:F,...hi(f,m),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(N=>{const T=A(N.index,N.data,m);return i?p.jsx(h,{...hi(h,m),height:e.itemHeight,index:N.index,width:e.itemWidth},T):b.createElement(c,{...hi(c,m),className:n,"data-index":N.index,key:T},r(N.index,N.data,m))})})}),UYe=vt.memo(function(){const e=Bi("HeaderComponent"),t=Gl("headerHeight"),n=Bi("headerFooterTag"),r=Mu(vt.useMemo(()=>i=>{t(Oc(i,"height"))},[t]),!0,!1),A=Bi("context");return e?p.jsx(n,{ref:r,children:p.jsx(e,{...hi(e,A)})}):null}),GYe=vt.memo(function(){const e=Bi("FooterComponent"),t=Gl("footerHeight"),n=Bi("headerFooterTag"),r=Mu(vt.useMemo(()=>i=>{t(Oc(i,"height"))},[t]),!0,!1),A=Bi("context");return e?p.jsx(n,{ref:r,children:p.jsx(e,{...hi(e,A)})}):null}),HYe=({children:e})=>{const t=vt.useContext(Wre),n=Gl("itemDimensions"),r=Gl("viewportDimensions"),A=Mu(vt.useMemo(()=>i=>{r(i.getBoundingClientRect())},[r]),!0,!1);return vt.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),p.jsx("div",{ref:A,style:J1(!1),children:e})},YYe=({children:e})=>{const t=vt.useContext(Wre),n=Gl("windowViewportRect"),r=Gl("itemDimensions"),A=Bi("customScrollParent"),i=kM(n,A,!1);return vt.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),p.jsx("div",{ref:i,style:J1(!1),children:e})},zYe=vt.memo(function({...e}){const t=Bi("useWindowScroll"),n=Bi("customScrollParent"),r=n||t?WYe:JYe,A=n||t?YYe:HYe,i=Bi("context");return p.jsx(r,{...e,...hi(r,i),children:p.jsxs(A,{children:[p.jsx(UYe,{}),p.jsx(PYe,{}),p.jsx(GYe,{})]})})}),{useEmitter:aoe,useEmitterValue:Bi,usePublisher:Gl}=GM(LYe,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},zYe),JYe=WM({useEmitter:aoe,useEmitterValue:Bi,usePublisher:Gl}),WYe=ZM({useEmitter:aoe,useEmitterValue:Bi,usePublisher:Gl});function loe(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ea.WARN),t==="normal"?0:parseInt(t??"0",10)}const ZYe="_container_1l1zm_1",XYe="_button_1l1zm_5",coe={container:ZYe,button:XYe};function KYe(){const e=dt(Eo),t=we(qq);return t==="Live"?null:p.jsx("div",{className:coe.container,children:p.jsxs(xl,{className:coe.button,style:{zIndex:3},onClick:()=>{e(void 0)},children:[p.jsx(be,{children:"Skip to RT"}),t==="Past"?p.jsx(See,{}):p.jsx(kee,{})]})})}function VYe(e){if(!e)return;const t=e.end_slot-e.start_slot+1,n=Math.ceil(t/ro);return{getSlotAtIndex:r=>{if(!(r<0||r>=n))return Vi(e.end_slot-r*ro)},getIndexForSlot:r=>{if(!(re.end_slot))return Math.trunc((e.end_slot-r)/ro)},itemsCount:n}}function qYe(e){if(e==null)return;const t=e.reduce((n,r,A)=>(n[r]=e.length-A-1,n),{});return{getSlotAtIndex:n=>e[e.length-n-1],getIndexForSlot:n=>n>=e[e.length-1]?0:t[Vi(n)]??e.length-hn.sortedIndex(e,n)-1,itemsCount:e.length}}const $Ye=e=>e,eze={top:24,bottom:0};function tze({width:e,height:t}){const n=we(E1),r=we(Ri);return r?n===$I.MySlots?p.jsx(Aze,{width:e,height:t},r.epoch):p.jsx(ize,{width:e,height:t},r.epoch):null}function uoe({width:e,height:t,itemsCount:n,getSlotAtIndex:r,getIndexForSlot:A}){const i=b.useRef(null),a=b.useRef(null),c=b.useRef(null),[f,h]=b.useState(!0),[m,I]=b.useState(0);b.useEffect(()=>{const N=setTimeout(()=>{h(!1)},100);return()=>clearTimeout(N)},[]);const v=dt(Eo),k=k1(()=>{},100),{rangeChanged:D,scrollSeekConfiguration:R}=b.useMemo(()=>{const N=({startIndex:T})=>{c.current=T+1};return{rangeChanged:N,scrollSeekConfiguration:{enter:T=>Math.abs(T)>1500,exit:T=>Math.abs(T)<500,change:(T,P)=>N(P)}}},[c]);b.useEffect(()=>{if(!i.current)return;const N=i.current,T=hn.throttle(()=>{if(c.current===null)return;k();const G=Math.min(c.current+a5,n-1),Y=r(G);v(Y)},50,{leading:!0,trailing:!0}),P=()=>{T()};return N.addEventListener("wheel",P),N.addEventListener("touchmove",P),()=>{N.removeEventListener("wheel",P),N.removeEventListener("touchmove",P)}},[r,k,v,n,c]);const F=b.useCallback(N=>{const T=r(N);return T==null?null:p.jsx(nHe,{leaderSlotForGroup:T})},[r]);return p.jsxs(rr,{ref:i,position:"relative",width:`${e}px`,height:`${t}px`,children:[p.jsx(rze,{listRef:a,getIndexForSlot:A}),p.jsx(oze,{listRef:a,getIndexForSlot:A,debouncedScroll:k}),p.jsx(lHe,{width:e,height:t,totalListHeight:m}),p.jsx(KYe,{}),p.jsx(CYe,{ref:a,className:xt(BM.slotsList,{[BM.hidden]:f}),width:e,height:t,totalCount:n,increaseViewportBy:eze,defaultItemHeight:42,skipAnimationFrameInResizeObserver:!0,computeItemKey:$Ye,itemContent:F,rangeChanged:D,components:{ScrollSeekPlaceholder:nze},scrollSeekConfiguration:R,totalListHeightChanged:N=>I(N)})]})}const nze=b.memo(function(){return null});function rze({listRef:e,getIndexForSlot:t}){const n=we(xc),r=we(UMe);return b.useEffect(()=>{if(!r||n===void 0||!e.current)return;const A=t(n),i=A?Math.max(0,A-a5):0;e.current.scrollToIndex({index:i,align:"start"})},[r,n,t,e]),null}function oze({listRef:e,getIndexForSlot:t,debouncedScroll:n}){const r=b.useRef(null),A=we(Eo);return b.useEffect(()=>{if(A===void 0||!e.current||n.isPending())return;const i=t(A),a=i?Math.max(0,i-a5):0,c=r.current;return r.current=requestAnimationFrame(()=>{var f;c!==null&&cancelAnimationFrame(c),(f=e.current)==null||f.scrollToIndex({index:a,align:"start"})}),()=>{r.current!==null&&(cancelAnimationFrame(r.current),r.current=null)}},[t,A,e,n]),null}function ize({width:e,height:t}){const n=we(Ri),r=b.useMemo(()=>VYe(n),[n]);return r?p.jsx(uoe,{width:e,height:t,...r}):null}function Aze({width:e,height:t}){const n=we(PA),r=b.useMemo(()=>qYe(n),[n]);return r?r.itemsCount===0?p.jsx(xe,{width:`${e}px`,height:`${t}px`,justify:"center",align:"center",children:p.jsxs(be,{className:BM.noSlotsText,children:["No Slots",p.jsx("br",{}),"Available"]})}):p.jsx(uoe,{width:e,height:t,...r}):null}const sze="data:image/svg+xml,%3csvg%20width='13'%20height='11'%20viewBox='0%200%2013%2011'%20fill='%233CB4FF'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.54688%203.17578H7.42188V5.63672L9.47266%206.86719L9.03516%207.57812L6.54688%206.07422V3.17578ZM3.40234%201.78125C4.44141%200.760417%205.68099%200.25%207.12109%200.25C8.5612%200.25%209.79167%200.760417%2010.8125%201.78125C11.8516%202.80208%2012.3711%204.04167%2012.3711%205.5C12.3711%206.95833%2011.8516%208.19792%2010.8125%209.21875C9.79167%2010.2396%208.5612%2010.75%207.12109%2010.75C6.51953%2010.75%205.85417%2010.6042%205.125%2010.3125C4.41406%2010.0026%203.84896%209.63802%203.42969%209.21875L4.25%208.37109C5.05208%209.17318%206.00911%209.57422%207.12109%209.57422C8.2513%209.57422%209.21745%209.18229%2010.0195%208.39844C10.8216%207.59635%2011.2227%206.63021%2011.2227%205.5C11.2227%204.36979%2010.8216%203.41276%2010.0195%202.62891C9.21745%201.82682%208.2513%201.42578%207.12109%201.42578C5.99089%201.42578%205.02474%201.82682%204.22266%202.62891C3.4388%203.41276%203.04688%204.36979%203.04688%205.5H4.79688L2.44531%207.85156L2.39062%207.76953L0.121094%205.5H1.87109C1.87109%204.04167%202.38151%202.80208%203.40234%201.78125Z'/%3e%3c/svg%3e",aze="data:image/svg+xml,%3csvg%20width='11'%20height='11'%20viewBox='0%200%2011%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.84766%203.17578V5.63672L7.87109%206.86719L7.46094%207.57812L4.97266%206.07422V3.17578H5.84766ZM10.7969%204.40625H6.83203L8.44531%202.76562C7.64323%201.96354%206.67708%201.5625%205.54688%201.5625C4.4349%201.54427%203.47786%201.92708%202.67578%202.71094C2.34766%203.03906%202.0651%203.48568%201.82812%204.05078C1.59115%204.59766%201.47266%205.09896%201.47266%205.55469C1.47266%206.01042%201.59115%206.52083%201.82812%207.08594C2.0651%207.63281%202.34766%208.07031%202.67578%208.39844C3.00391%208.72656%203.45052%209.00911%204.01562%209.24609C4.58073%209.48307%205.09115%209.60156%205.54688%209.60156C6.0026%209.60156%206.51302%209.48307%207.07812%209.24609C7.66146%209.00911%208.11719%208.72656%208.44531%208.39844C9.22917%207.61458%209.62109%206.66667%209.62109%205.55469H10.7969C10.7969%206.99479%2010.2865%208.21615%209.26562%209.21875C8.24479%2010.2396%207.00521%2010.75%205.54688%2010.75C4.08854%2010.75%202.84896%2010.2396%201.82812%209.21875C0.807292%208.21615%200.296875%207.00391%200.296875%205.58203C0.296875%204.14193%200.807292%202.91146%201.82812%201.89062C2.2474%201.47135%202.8125%201.11589%203.52344%200.824219C4.2526%200.514323%204.91797%200.359375%205.51953%200.359375C6.12109%200.359375%206.77734%200.514323%207.48828%200.824219C8.21745%201.11589%208.79167%201.47135%209.21094%201.89062L10.7969%200.25V4.40625Z'%20fill='%233CB4FF'/%3e%3c/svg%3e",lze="_status-indicator_e3wc7_1",cze="_status-indicator-live_e3wc7_6",uze="_status-indicator-not-live_e3wc7_10",dze="_dot-icon_e3wc7_22",P4={statusIndicator:lze,statusIndicatorLive:cze,statusIndicatorNotLive:uze,dotIcon:dze},doe={Live:"RT",Past:"PT",Current:"CT",Future:"FT"};function fze(){const e=we(qq),t=b.useMemo(()=>e?e==="Live"?p.jsx(Ei,{content:"Following the current leader slot",disableHoverableContent:!0,children:p.jsx(be,{children:doe[e]})}):p.jsx(Ei,{content:`Focused on ${e.toLowerCase()} slot`,disableHoverableContent:!0,children:p.jsx(be,{children:doe[e]})}):null,[e]),n=b.useMemo(()=>e?p.jsx(Ei,{content:e,disableHoverableContent:!0,children:e==="Live"?p.jsx("div",{className:P4.dotIcon}):p.jsx("img",{style:{marginLeft:"-1px"},width:"6px",src:e==="Past"?sze:aze,alt:e})}):null,[e]);return e?p.jsxs(xe,{justify:"center",align:"center",className:xt(P4.statusIndicator,e==="Live"?P4.statusIndicatorLive:P4.statusIndicatorNotLive),children:[t,n]}):null}let Hl;typeof window<"u"?Hl=window:typeof self<"u"?Hl=self:Hl=global;let $M=null,e9=null;const foe=20,t9=Hl.clearTimeout,goe=Hl.setTimeout,n9=Hl.cancelAnimationFrame||Hl.mozCancelAnimationFrame||Hl.webkitCancelAnimationFrame,hoe=Hl.requestAnimationFrame||Hl.mozRequestAnimationFrame||Hl.webkitRequestAnimationFrame;n9==null||hoe==null?($M=t9,e9=function(e){return goe(e,foe)}):($M=function([e,t]){n9(e),t9(t)},e9=function(e){const t=hoe(function(){t9(n),e()}),n=goe(function(){n9(t),e()},foe);return[t,n]});function gze(e){let t,n,r,A,i,a,c;const f=typeof document<"u"&&document.attachEvent;if(!f){a=function(R){const F=R.__resizeTriggers__,N=F.firstElementChild,T=F.lastElementChild,P=N.firstElementChild;T.scrollLeft=T.scrollWidth,T.scrollTop=T.scrollHeight,P.style.width=N.offsetWidth+1+"px",P.style.height=N.offsetHeight+1+"px",N.scrollLeft=N.scrollWidth,N.scrollTop=N.scrollHeight},i=function(R){return R.offsetWidth!==R.__resizeLast__.width||R.offsetHeight!==R.__resizeLast__.height},c=function(R){if(R.target.className&&typeof R.target.className.indexOf=="function"&&R.target.className.indexOf("contract-trigger")<0&&R.target.className.indexOf("expand-trigger")<0)return;const F=this;a(this),this.__resizeRAF__&&$M(this.__resizeRAF__),this.__resizeRAF__=e9(function(){i(F)&&(F.__resizeLast__.width=F.offsetWidth,F.__resizeLast__.height=F.offsetHeight,F.__resizeListeners__.forEach(function(N){N.call(F,R)}))})};let m=!1,I="";r="animationstart";const v="Webkit Moz O ms".split(" ");let k="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),D="";{const R=document.createElement("fakeelement");if(R.style.animationName!==void 0&&(m=!0),m===!1){for(let F=0;F div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=m.head||m.getElementsByTagName("head")[0],k=m.createElement("style");k.id="detectElementResize",k.type="text/css",e!=null&&k.setAttribute("nonce",e),k.styleSheet?k.styleSheet.cssText=I:k.appendChild(m.createTextNode(I)),v.appendChild(k)}};return{addResizeListener:function(m,I){if(f)m.attachEvent("onresize",I);else{if(!m.__resizeTriggers__){const v=m.ownerDocument,k=Hl.getComputedStyle(m);k&&k.position==="static"&&(m.style.position="relative"),h(v),m.__resizeLast__={},m.__resizeListeners__=[],(m.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const D=v.createElement("div");D.className="expand-trigger",D.appendChild(v.createElement("div"));const R=v.createElement("div");R.className="contract-trigger",m.__resizeTriggers__.appendChild(D),m.__resizeTriggers__.appendChild(R),m.appendChild(m.__resizeTriggers__),a(m),m.addEventListener("scroll",c,!0),r&&(m.__resizeTriggers__.__animationListener__=function(F){F.animationName===n&&a(m)},m.__resizeTriggers__.addEventListener(r,m.__resizeTriggers__.__animationListener__))}m.__resizeListeners__.push(I)}},removeResizeListener:function(m,I){if(f)m.detachEvent("onresize",I);else if(m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(I),1),!m.__resizeListeners__.length){m.removeEventListener("scroll",c,!0),m.__resizeTriggers__.__animationListener__&&(m.__resizeTriggers__.removeEventListener(r,m.__resizeTriggers__.__animationListener__),m.__resizeTriggers__.__animationListener__=null);try{m.__resizeTriggers__=!m.removeChild(m.__resizeTriggers__)}catch{}}}}}class rl extends b.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:A}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},a=parseFloat(i.paddingLeft||"0"),c=parseFloat(i.paddingRight||"0"),f=parseFloat(i.paddingTop||"0"),h=parseFloat(i.paddingBottom||"0"),m=this._parentNode.getBoundingClientRect(),I=m.height-f-h,v=m.width-a-c;if(!n&&this.state.height!==I||!r&&this.state.width!==v){this.setState({height:I,width:v});const k=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof A=="function"&&A({height:I,width:v,get scaledHeight(){return k(),I},get scaledWidth(){return k(),v}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=gze(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:A=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:c,onResize:f,style:h={},tagName:m="div",...I}=this.props,{height:v,width:k}=this.state,D={overflow:"visible"},R={};let F=!1;return A||(v===0&&(F=!0),D.height=0,R.height=v,R.scaledHeight=v),i||(k===0&&(F=!0),D.width=0,R.width=k,R.scaledWidth=k),a&&(F=!1),b.createElement(m,{ref:this._setRef,style:{...D,...h},...I},!F&&t(R))}}function hze(){const[e,t]=Cc(E1),n=b.useCallback(r=>{r&&t(r)},[t]);return p.jsx(xe,{height:`${d5}px`,width:"100%",children:p.jsxs(JS,{type:"single",value:e,"aria-label":"Slots List Toggle",onValueChange:n,className:gh.navFilterToggleGroup,children:[p.jsx(Sp,{value:$I.AllSlots,"aria-label":"All Slots toggle",tabIndex:0,children:p.jsx(be,{children:"All Slots"})}),p.jsx(Sp,{value:$I.MySlots,"aria-label":"My Slots toggle",tabIndex:0,children:p.jsx(be,{children:"My Slots"})})]})})}const pze="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='20px'%20viewBox='0%20-960%20960%20960'%20width='20px'%20fill='%23FF5353'%3e%3cpath%20d='m48-144%20432-720%20432%20720H48Zm431.79-120q15.21%200%2025.71-10.29t10.5-25.5q0-15.21-10.29-25.71t-25.5-10.5q-15.21%200-25.71%2010.29t-10.5%2025.5q0%2015.21%2010.29%2025.71t25.5%2010.5ZM444-384h72v-192h-72v192Z'/%3e%3c/svg%3e",mze="data:image/svg+xml,%3csvg%20width='10'%20height='11'%20viewBox='0%200%2010%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.39453%201.5H9.67578V7.32422H5.57422L5.35547%206.17578H2.07422V10.25H0.925781V0.324219H6.17578L6.39453%201.5Z'%20fill='%231DB247'/%3e%3c/svg%3e",Eze="_epoch-progress_niumw_1",Ize="_clickable_niumw_8",Cze="_leader-slot_niumw_12",Bze="_before-start_niumw_21",yze="_skipped-slot_niumw_26",vze="_skipped-slot-icon_niumw_36",bze="_first-processed-slot_niumw_45",Qze="_first-processed-slot-icon_niumw_56",wze="_slider-root_niumw_65",xze="_slider-track_niumw_76",_ze="_slider-thumb_niumw_82",kze="_collapsed_niumw_92",Sze="_hide_niumw_106",Dze="_show_niumw_115",UA={epochProgress:Eze,clickable:Ize,leaderSlot:Cze,beforeStart:Bze,skippedSlot:yze,skippedSlotIcon:vze,firstProcessedSlot:bze,firstProcessedSlotIcon:Qze,sliderRoot:wze,sliderTrack:xze,sliderThumb:_ze,collapsed:kze,hide:Sze,show:Dze};/*! -* tabbable 6.3.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var Rze=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],r9=Rze.join(","),poe=typeof Element>"u",oB=poe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,U4=!poe&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},iB=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),A=r===""||r==="true",i=A||t&&e&&iB(e.parentNode);return i},Tze=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},Mze=function(e,t,n){if(iB(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(r9));return t&&oB.call(e,r9)&&r.unshift(e),r=r.filter(n),r},o9=function(e,t,n){for(var r=[],A=Array.from(e);A.length;){var i=A.shift();if(!iB(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,f=o9(c,!0,n);n.flatten?r.push.apply(r,f):r.push({scopeParent:i,candidates:f})}else{var h=oB.call(i,r9);h&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var m=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),I=!iB(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(m&&I){var v=o9(m===!0?i.children:m.children,!0,n);n.flatten?r.push.apply(r,v):r.push({scopeParent:i,candidates:v})}else A.unshift.apply(A,i.children)}}return r},moe=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Eoe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Tze(e))&&!moe(e)?0:e.tabIndex},Fze=function(e,t){var n=Eoe(e);return n<0&&t&&!moe(e)?0:n},Nze=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ioe=function(e){return e.tagName==="INPUT"},jze=function(e){return Ioe(e)&&e.type==="hidden"},Oze=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Lze=function(e,t){for(var n=0;nsummary:first-of-type"),a=i?e.parentElement:e;if(oB.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof r=="function"){for(var c=e;e;){var f=e.parentElement,h=U4(e);if(f&&!f.shadowRoot&&r(f)===!0)return Coe(e);e.assignedSlot?e=e.assignedSlot:!f&&h!==e.ownerDocument?e=h.host:e=f}e=c}if(Hze(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Coe(e);return!1},zze=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},yoe=function(e){var t=[],n=[];return e.forEach(function(r,A){var i=!!r.scopeParent,a=i?r.scopeParent:r,c=Fze(a,i),f=i?yoe(r.candidates):a;c===0?i?t.push.apply(t,f):t.push(a):n.push({documentOrder:A,tabIndex:c,item:r,isScope:i,content:f})}),n.sort(Nze).reduce(function(r,A){return A.isScope?r.push.apply(r,A.content):r.push(A.content),r},[]).concat(t)},voe=function(e,t){t=t||{};var n;return t.getShadowRoot?n=o9([e],t.includeContainer,{filter:Boe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Wze}):n=Mze(e,t.includeContainer,Boe.bind(null,t)),yoe(n)};function Zze(){return/apple/i.test(navigator.vendor)}function Xze(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Kze(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tS(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function i9(e){return(e==null?void 0:e.ownerDocument)||document}var Vze=typeof document<"u",qze=function(){},wh=Vze?b.useLayoutEffect:qze;const $ze={...eE},eJe=$ze.useInsertionEffect,tJe=eJe||(e=>e());function nJe(e){const t=b.useRef(()=>{});return tJe(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),A=0;A({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Qoe(e,t){const n=voe(e,boe()),r=n.length;if(r===0)return;const A=Xze(i9(e)),i=n.indexOf(A),a=i===-1?t===1?0:r-1:i+t;return n[a]}function rJe(e){return Qoe(i9(e).body,1)||e}function oJe(e){return Qoe(i9(e).body,-1)||e}function A9(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Kze(n,r)}function iJe(e){voe(e,boe()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function woe(e){e.querySelectorAll("[data-tabindex]").forEach(t=>{const n=t.dataset.tabindex;delete t.dataset.tabindex,n?t.setAttribute("tabindex",n):t.removeAttribute("tabindex")})}const AJe={...eE};let xoe=!1,sJe=0;const _oe=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sJe++;function aJe(){const[e,t]=b.useState(()=>xoe?_oe():void 0);return wh(()=>{e==null&&t(_oe())},[]),b.useEffect(()=>{xoe=!0},[]),e}const lJe=AJe.useId,koe=lJe||aJe;function cJe(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(A=>A(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const uJe=b.createContext(null),dJe=b.createContext(null),fJe=()=>{var e;return((e=b.useContext(uJe))==null?void 0:e.id)||null},gJe=()=>b.useContext(dJe);function Soe(e){return"data-floating-ui-"+e}const Doe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Roe=b.forwardRef(function(e,t){const[n,r]=b.useState();wh(()=>{Zze()&&r("button")},[]);const A={ref:t,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Soe("focus-guard")]:"",style:Doe};return p.jsx("span",{...e,...A})}),Toe=b.createContext(null),Moe=Soe("portal");function hJe(e){e===void 0&&(e={});const{id:t,root:n}=e,r=koe(),A=mJe(),[i,a]=b.useState(null),c=b.useRef(null);return wh(()=>()=>{i==null||i.remove(),queueMicrotask(()=>{c.current=null})},[i]),wh(()=>{if(!r||c.current)return;const f=t?document.getElementById(t):null;if(!f)return;const h=document.createElement("div");h.id=r,h.setAttribute(Moe,""),f.appendChild(h),c.current=h,a(h)},[t,r]),wh(()=>{if(n===null||!r||c.current)return;let f=n||(A==null?void 0:A.portalNode);f&&!eS(f)&&(f=f.current),f=f||document.body;let h=null;t&&(h=document.createElement("div"),h.id=t,f.appendChild(h));const m=document.createElement("div");m.id=r,m.setAttribute(Moe,""),f=h||f,f.appendChild(m),c.current=m,a(m)},[t,n,r,A]),i}function pJe(e){const{children:t,id:n,root:r,preserveTabOrder:A=!0}=e,i=hJe({id:n,root:r}),[a,c]=b.useState(null),f=b.useRef(null),h=b.useRef(null),m=b.useRef(null),I=b.useRef(null),v=a==null?void 0:a.modal,k=a==null?void 0:a.open,D=!!a&&!a.modal&&a.open&&A&&!!(r||i);return b.useEffect(()=>{if(!i||!A||v)return;function R(F){i&&A9(F)&&(F.type==="focusin"?woe:iJe)(i)}return i.addEventListener("focusin",R,!0),i.addEventListener("focusout",R,!0),()=>{i.removeEventListener("focusin",R,!0),i.removeEventListener("focusout",R,!0)}},[i,A,v]),b.useEffect(()=>{i&&(k||woe(i))},[k,i]),p.jsxs(Toe.Provider,{value:b.useMemo(()=>({preserveTabOrder:A,beforeOutsideRef:f,afterOutsideRef:h,beforeInsideRef:m,afterInsideRef:I,portalNode:i,setFocusManagerState:c}),[A,i]),children:[D&&i&&p.jsx(Roe,{"data-type":"outside",ref:f,onFocus:R=>{if(A9(R,i)){var F;(F=m.current)==null||F.focus()}else{const N=a?a.domReference:null,T=oJe(N);T==null||T.focus()}}}),D&&i&&p.jsx("span",{"aria-owns":i.id,style:Doe}),i&&fu.createPortal(t,i),D&&i&&p.jsx(Roe,{"data-type":"outside",ref:h,onFocus:R=>{if(A9(R,i)){var F;(F=I.current)==null||F.focus()}else{const N=a?a.domReference:null,T=rJe(N);T==null||T.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,R.nativeEvent,"focus-out"))}}})]})}const mJe=()=>b.useContext(Toe);function EJe(e){const{open:t=!1,onOpenChange:n,elements:r}=e,A=koe(),i=b.useRef({}),[a]=b.useState(()=>cJe()),c=fJe()!=null,[f,h]=b.useState(r.reference),m=nJe((k,D,R)=>{i.current.openEvent=k?D:void 0,a.emit("openchange",{open:k,event:D,reason:R,nested:c}),n==null||n(k,D,R)}),I=b.useMemo(()=>({setPositionReference:h}),[]),v=b.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return b.useMemo(()=>({dataRef:i,open:t,onOpenChange:m,elements:v,events:a,floatingId:A,refs:I}),[t,m,v,a,A,I])}function IJe(e){e===void 0&&(e={});const{nodeId:t}=e,n=EJe({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,A=r.elements,[i,a]=b.useState(null),[c,f]=b.useState(null),h=(A==null?void 0:A.domReference)||i,m=b.useRef(null),I=gJe();wh(()=>{h&&(m.current=h)},[h]);const v=iH({...e,elements:{...A,...c&&{reference:c}}}),k=b.useCallback(T=>{const P=Ps(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;f(P),v.refs.setReference(P)},[v.refs]),D=b.useCallback(T=>{(Ps(T)||T===null)&&(m.current=T,a(T)),(Ps(v.refs.reference.current)||v.refs.reference.current===null||T!==null&&!Ps(T))&&v.refs.setReference(T)},[v.refs]),R=b.useMemo(()=>({...v.refs,setReference:D,setPositionReference:k,domReference:m}),[v.refs,D,k]),F=b.useMemo(()=>({...v.elements,domReference:h}),[v.elements,h]),N=b.useMemo(()=>({...v,...r,refs:R,elements:F,nodeId:t}),[v,R,F,t,r]);return wh(()=>{r.dataRef.current.floatingContext=N;const T=I==null?void 0:I.nodesRef.current.find(P=>P.id===t);T&&(T.context=N)}),b.useMemo(()=>({...v,context:N,refs:R,elements:F}),[v,R,F,N])}function CJe(e,t,n=window){const r=b.useRef(t);b.useEffect(()=>{r.current=t});const A=CMe(e)?e:[e];b.useEffect(()=>{if(!r.current||!n||!n.addEventListener||A.length===0)return;const i=a=>{var c;return(c=r.current)==null?void 0:c.call(r,a)};return A.forEach(a=>n.addEventListener(a,i,{passive:!1})),()=>{A.forEach(a=>n.removeEventListener(a,i,!1))}},[...A,n])}const s9=10800;function xh({slot:e,epochStartSlot:t,epochEndSlot:n}){if(!e||t===void 0||n===void 0||t===n)return 0;e=Math.min(Math.max(e,t),n);const r=n-t;return(e-t)/r}function BJe(e){return Math.trunc(e*s9)}function yJe(e,t,n){if(e===void 0||t===void 0||n===void 0)return;const r=e/s9,A=n-t;return Math.trunc(A*r)+t}function vJe(e,t){return xh(t)}function bJe(e,t){if(!e||!t)return 3e3;const n=e.end_slot-e.start_slot;return n<1e4?300:n<5e4?1e3:n<1e5?3e3:n<2e5?5e3:n<3e5?1e4:n<4e5?15e3:3e4}function Foe(e,t){return e.length?e.reduce((n,r,A)=>{if(A===0)return n;const i=n[n.length-1];return Math.abs(r.pct-i.pct){if(h){const D=setTimeout(()=>{m(!1)},100);return()=>{clearTimeout(D)}}},[h]);const I=b.useCallback(D=>{t(D),m(!0)},[t]),v=b.useCallback(D=>{const R=yJe(D[0],e==null?void 0:e.start_slot,e==null?void 0:e.end_slot);R!==void 0&&I(R)},[e==null?void 0:e.end_slot,e==null?void 0:e.start_slot,I]),k=ha(v,100,{trailing:!0});return CJe("pointerup",()=>{A.current=!1,i(!1)}),p.jsx(xe,{direction:"column",width:"100%",flexGrow:"1",align:"center",ref:a,children:p.jsxs(Hz,{orientation:"vertical",className:UA.sliderRoot,style:{marginTop:`${f}px`},value:n,onValueChange:D=>{A.current=!0,r(D),k(D),i(!0)},onValueCommit:()=>{A.current=!1,k.flush(),i(!1)},max:s9,children:[p.jsxs(Yz,{className:UA.sliderTrack,children:[p.jsx(_Je,{isSliderChangingValueRef:A,setSliderValue:r},e==null?void 0:e.epoch),p.jsx(MJe,{updateSlot:I,slotHeight:f}),p.jsx(jJe,{updateSlot:I}),p.jsx(PJe,{updateSlot:I})]}),p.jsx(kJe,{isOpen:h})]})})}function xJe({isSliderChangingValueRef:e,setSliderValue:t}){const n=we(Ri),r=we(wR),A=we(xc),i=we(Eo),a=we(E1),[c,f]=b.useReducer(vJe,{slot:A,epochStartSlot:n==null?void 0:n.start_slot,epochEndSlot:n==null?void 0:n.end_slot},xh),h=b.useMemo(()=>bJe(n,c),[n,c]);return z0(()=>{b.startTransition(()=>{f({slot:A,epochStartSlot:n==null?void 0:n.start_slot,epochEndSlot:n==null?void 0:n.end_slot})})},h),b.useEffect(()=>{if(e.current)return;const m=i?xh({slot:i,epochStartSlot:n==null?void 0:n.start_slot,epochEndSlot:n==null?void 0:n.end_slot}):a===$I.MySlots?xh({slot:r,epochStartSlot:n==null?void 0:n.start_slot,epochEndSlot:n==null?void 0:n.end_slot}):c,I=BJe(m);t(v=>v[0]===I?v:[I])},[n==null?void 0:n.end_slot,n==null?void 0:n.start_slot,c,e,t,i,a,r]),p.jsx(rr,{className:UA.epochProgress,height:`${c*100}%`})}const _Je=b.memo(xJe);function kJe({isOpen:e}){const t=we(Eo),{showNav:n}=D1(),{refs:r,elements:A,floatingStyles:i,update:a}=IJe({placement:"right",middleware:[AH(5)]});return b.useEffect(()=>{if(A.reference&&A.floating)return tH(A.reference,A.floating,a,{animationFrame:!0})},[A,a]),p.jsxs(p.Fragment,{children:[p.jsx(zz,{ref:r.setReference,className:xt(UA.sliderThumb,{[UA.collapsed]:!n})}),p.jsx(pJe,{id:"app",children:p.jsx(be,{size:"1",ref:r.setFloating,style:i,className:xt("rt-TooltipContent","rt-TooltipText",e?UA.show:UA.hide),children:t})})]})}const SJe=e=>Ke(t=>{const n=t(xc);return e>(n??0)});function DJe({slot:e,pct:t,height:n,updateSlot:r}){const A=we(Df),i=we(b.useMemo(()=>SJe(e),[e])),a=f=>h=>{h.stopPropagation(),h.preventDefault(),r(f)},c=A?e{if(!n||!(r!=null&&r.length))return;const i=r.map(a=>({slot:a,pct:xh({slot:a,epochStartSlot:n.start_slot,epochEndSlot:n.end_slot})}));return Foe(i,.005)},[n,r]);return p.jsx(p.Fragment,{children:A==null?void 0:A.map(({slot:i,pct:a})=>p.jsx(RJe,{slot:i,pct:a,height:t,updateSlot:e},i))})}const MJe=b.memo(TJe);function FJe({slot:e,pct:t,updateSlot:n}){const r=A=>i=>{i.stopPropagation(),i.preventDefault(),n(A)};return p.jsx(p.Fragment,{children:p.jsx("div",{className:xt(UA.skippedSlot,UA.clickable),style:{bottom:`${t*100}%`},onPointerDown:r(e),children:p.jsx("img",{src:pze,alt:"skipped slot",className:xt(UA.skippedSlotIcon,UA.clickable),style:{bottom:"-3px"},onPointerDown:r(e)})})})}function NJe({updateSlot:e}){const t=we(Ri),n=we(RQ),r=b.useMemo(()=>{if(!t||!(n!=null&&n.length))return;const A=n.map(i=>({slot:i,pct:xh({slot:i,epochStartSlot:t.start_slot,epochEndSlot:t.end_slot})}));return Foe(A,.005)},[t,n]);return p.jsx(p.Fragment,{children:r==null?void 0:r.map(({slot:A,pct:i})=>p.jsx(FJe,{slot:A,pct:i,updateSlot:e},A))})}const jJe=b.memo(NJe);function OJe({slot:e,pct:t,updateSlot:n}){const r=A=>i=>{i.stopPropagation(),i.preventDefault(),n(A)};return p.jsxs(p.Fragment,{children:[p.jsx(rr,{className:xt(UA.firstProcessedSlot,UA.clickable),style:{bottom:`${t*100}%`},onPointerDown:r(e)}),p.jsx("img",{src:mze,alt:"first processed slot",className:xt(UA.firstProcessedSlotIcon,UA.clickable),style:{bottom:`calc(${t*100}%)`},onPointerDown:r(e)})]})}function LJe({updateSlot:e}){const t=we(Ri),n=we(Df),r=b.useMemo(()=>{if(!(!n||!t))return xh({slot:n,epochStartSlot:t.start_slot,epochEndSlot:t.end_slot})},[t,n]);return!r||!n?null:p.jsx(OJe,{slot:n,pct:r,updateSlot:e})}const PJe=b.memo(LJe),Noe=NI+jI;function UJe(){const e=Yo(jX),{showNav:t,occupyRowWidth:n,showOnlyEpochBar:r}=D1(),A=t?g5:0,i=b.useMemo(()=>r?NX:rDe,[r]);return p.jsxs(p.Fragment,{children:[p.jsx(GJe,{}),p.jsx("div",{style:{flexShrink:0,width:n?`${i}px`:"0"},children:p.jsxs(xe,{width:t?`${i+A}px`:"0",overflow:"hidden",className:xt("sticky",gh.slotNavContainer,{[gh.navBackground]:!r}),style:{zIndex:oh-1},top:`${Noe}px`,height:`calc(100vh - ${Noe}px)`,ml:`${-A}px`,pl:`${A}px`,pb:"2",children:[p.jsxs(xe,{flexShrink:"0",direction:"column",width:`${f5}px`,pt:e?"0":`${d5+Cf}px`,children:[e&&p.jsx("div",{style:{marginBottom:`${Cf}px`},children:p.jsx(CT,{})}),p.jsx(fze,{}),p.jsx(QJe,{})]}),!r&&p.jsxs(xe,{ml:`${WQ}px`,direction:"column",width:`${h5}px`,flexShrink:"0",gap:`${Cf}px`,children:[p.jsx(hze,{}),p.jsx(xe,{flexGrow:"1",children:p.jsx(rl,{children:({height:a,width:c})=>p.jsx(tze,{width:c,height:a})})})]})]})})]})}function GJe(){const e=dt(Eo),t=we(Kr);return b.useEffect(()=>{t!==void 0&&e(t)},[t,e]),null}const HJe=ns(),W1=mxe({component:YJe,beforeLoad:()=>HJe.set(G0.slot,void 0)});function YJe(){const e=we(Qw);return p.jsxs(p.Fragment,{children:[p.jsx(IGe,{}),p.jsx(dGe,{children:p.jsxs("div",{id:"scroll-container",style:{position:"relative",height:"100dvh",maxHeight:e?"100vh":"unset",overflowY:e?"hidden":"auto",willChange:"scroll-position",contain:"paint",isolation:"isolate"},children:[p.jsx(zee,{}),p.jsxs(xe,{className:"app-width-container",px:"2",position:"relative",children:[p.jsx(UJe,{}),p.jsx(zJe,{})]})]})})]})}function zJe(){const e=Ww()==="Schedule",{setIsNavCollapsed:t,isNarrowScreen:n,occupyRowWidth:r,blurBackground:A}=D1();return b.useEffect(()=>{t(n)},[n,t]),p.jsxs(rr,{position:"relative",flexGrow:"1",minWidth:"0",pb:"2",pl:e||!r?"0px":`${u5-Cf}px`,children:[p.jsx(RW,{}),A&&p.jsx(Hee,{})]})}const JJe="_text_nk1yn_1",WJe={text:JJe};function Jf({text:e}){return p.jsx(be,{className:WJe.text,children:e})}var ZJe=typeof C0=="object"&&C0&&C0.Object===Object&&C0,joe=ZJe,XJe=joe,KJe=typeof self=="object"&&self&&self.Object===Object&&self,VJe=XJe||KJe||Function("return this")(),Nu=VJe,qJe=Nu,$Je=qJe.Symbol,Z1=$Je,Ooe=Z1,Loe=Object.prototype,eWe=Loe.hasOwnProperty,tWe=Loe.toString,AB=Ooe?Ooe.toStringTag:void 0;function nWe(e){var t=eWe.call(e,AB),n=e[AB];try{e[AB]=void 0;var r=!0}catch{}var A=tWe.call(e);return r&&(t?e[AB]=n:delete e[AB]),A}var rWe=nWe,oWe=Object.prototype,iWe=oWe.toString;function AWe(e){return iWe.call(e)}var sWe=AWe,Poe=Z1,aWe=rWe,lWe=sWe,cWe="[object Null]",uWe="[object Undefined]",Uoe=Poe?Poe.toStringTag:void 0;function dWe(e){return e==null?e===void 0?uWe:cWe:Uoe&&Uoe in Object(e)?aWe(e):lWe(e)}var _h=dWe;function fWe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var K0=fWe,gWe=_h,hWe=K0,pWe="[object AsyncFunction]",mWe="[object Function]",EWe="[object GeneratorFunction]",IWe="[object Proxy]";function CWe(e){if(!hWe(e))return!1;var t=gWe(e);return t==mWe||t==EWe||t==pWe||t==IWe}var G4=CWe;const Goe=MA(G4);var BWe=Nu,yWe=BWe["__core-js_shared__"],vWe=yWe,a9=vWe,Hoe=function(){var e=/[^.]+$/.exec(a9&&a9.keys&&a9.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bWe(e){return!!Hoe&&Hoe in e}var QWe=bWe,wWe=Function.prototype,xWe=wWe.toString;function _We(e){if(e!=null){try{return xWe.call(e)}catch{}try{return e+""}catch{}}return""}var Yoe=_We,kWe=G4,SWe=QWe,DWe=K0,RWe=Yoe,TWe=/[\\^$.*+?()[\]{}|]/g,MWe=/^\[object .+?Constructor\]$/,FWe=Function.prototype,NWe=Object.prototype,jWe=FWe.toString,OWe=NWe.hasOwnProperty,LWe=RegExp("^"+jWe.call(OWe).replace(TWe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PWe(e){if(!DWe(e)||SWe(e))return!1;var t=kWe(e)?LWe:MWe;return t.test(RWe(e))}var UWe=PWe;function GWe(e,t){return e==null?void 0:e[t]}var HWe=GWe,YWe=UWe,zWe=HWe;function JWe(e,t){var n=zWe(e,t);return YWe(n)?n:void 0}var kh=JWe,WWe=kh,ZWe=WWe(Object,"create"),H4=ZWe,zoe=H4;function XWe(){this.__data__=zoe?zoe(null):{},this.size=0}var KWe=XWe;function VWe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qWe=VWe,$We=H4,eZe="__lodash_hash_undefined__",tZe=Object.prototype,nZe=tZe.hasOwnProperty;function rZe(e){var t=this.__data__;if($We){var n=t[e];return n===eZe?void 0:n}return nZe.call(t,e)?t[e]:void 0}var oZe=rZe,iZe=H4,AZe=Object.prototype,sZe=AZe.hasOwnProperty;function aZe(e){var t=this.__data__;return iZe?t[e]!==void 0:sZe.call(t,e)}var lZe=aZe,cZe=H4,uZe="__lodash_hash_undefined__";function dZe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=cZe&&t===void 0?uZe:t,this}var fZe=dZe,gZe=KWe,hZe=qWe,pZe=oZe,mZe=lZe,EZe=fZe;function X1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var FZe=MZe,NZe=Y4;function jZe(e,t){var n=this.__data__,r=NZe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var OZe=jZe,LZe=BZe,PZe=kZe,UZe=RZe,GZe=FZe,HZe=OZe;function K1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var Woe=OXe;function LXe(e,t,n){for(var r=-1,A=e==null?0:e.length;++r=oKe){var h=t?null:nKe(e);if(h)return rKe(h);a=!1,A=tKe,f=new qXe}else f=t?[]:c;e:for(;++r0&&I.height>0,F=Math.round(n[0]),N=Math.round(n[1]);R&&(r==="top"?(F-=I.width/2,N-=I.height+14):r==="right"?(F+=14,N-=I.height/2):r==="bottom"?(F-=I.width/2,N+=14):r==="left"?(F-=I.width+14,N-=I.height/2):r==="center"&&(F-=I.width/2,N-=I.height/2),k={transform:$oe(F,N)},v.current||(D=!0),v.current=[F,N]);var T=vC({to:k,config:f,immediate:!c||D}),P=Sh({},pKe,i.tooltip.wrapper,{transform:(t=T.transform)!=null?t:$oe(F,N),opacity:T.transform?1:0});return p.jsx(Dc.div,{ref:m,style:P,children:A})});eie.displayName="TooltipWrapper";var h9=b.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,A=e.style;return p.jsx("span",{style:Sh({display:"block",width:n,height:n,background:r},A===void 0?{}:A)})}),p9=b.memo(function(e){var t,n=e.id,r=e.value,A=e.format,i=e.enableChip,a=i!==void 0&&i,c=e.color,f=e.renderContent,h=ol(),m=pF(A);if(typeof f=="function")t=f();else{var I=r;m!==void 0&&I!==void 0&&(I=m(I)),t=p.jsxs("div",{style:h.tooltip.basic,children:[a&&p.jsx(h9,{color:c,style:h.tooltip.chip}),I!==void 0?p.jsxs("span",{children:[n,": ",p.jsx("strong",{children:""+I})]}):n]})}return p.jsx("div",{style:h.tooltip.container,children:t})}),mKe={width:"100%",borderCollapse:"collapse"},EKe=b.memo(function(e){var t,n=e.title,r=e.rows,A=r===void 0?[]:r,i=e.renderContent,a=ol();return A.length?(t=typeof i=="function"?i():p.jsxs("div",{children:[n&&n,p.jsx("table",{style:Sh({},mKe,a.tooltip.table),children:p.jsx("tbody",{children:A.map(function(c,f){return p.jsx("tr",{children:c.map(function(h,m){return p.jsx("td",{style:a.tooltip.tableCell,children:h},m)})},f)})})})]}),p.jsx("div",{style:a.tooltip.container,children:t})):null});EKe.displayName="TableTooltip";var m9=b.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,A=e.y1,i=ol(),a=am(),c=a.animate,f=a.config,h=b.useMemo(function(){return Sh({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),m=vC({x1:t,x2:n,y1:r,y2:A,config:f,immediate:!c});return p.jsx(Dc.line,Sh({},m,{fill:"none",style:h}))});m9.displayName="CrosshairLine";var IKe=b.memo(function(e){var t,n,r=e.width,A=e.height,i=e.type,a=e.x,c=e.y;return i==="cross"?(t={x0:a,x1:a,y0:0,y1:A},n={x0:0,x1:r,y0:c,y1:c}):i==="top-left"?(t={x0:a,x1:a,y0:0,y1:c},n={x0:0,x1:a,y0:c,y1:c}):i==="top"?t={x0:a,x1:a,y0:0,y1:c}:i==="top-right"?(t={x0:a,x1:a,y0:0,y1:c},n={x0:a,x1:r,y0:c,y1:c}):i==="right"?n={x0:a,x1:r,y0:c,y1:c}:i==="bottom-right"?(t={x0:a,x1:a,y0:c,y1:A},n={x0:a,x1:r,y0:c,y1:c}):i==="bottom"?t={x0:a,x1:a,y0:c,y1:A}:i==="bottom-left"?(t={x0:a,x1:a,y0:c,y1:A},n={x0:0,x1:a,y0:c,y1:c}):i==="left"?n={x0:0,x1:a,y0:c,y1:c}:i==="x"?t={x0:a,x1:a,y0:0,y1:A}:i==="y"&&(n={x0:0,x1:r,y0:c,y1:c}),p.jsxs(p.Fragment,{children:[t&&p.jsx(m9,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&p.jsx(m9,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});IKe.displayName="Crosshair";var tie=b.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),E9={isVisible:!1,position:[null,null],content:null,anchor:null},nie=b.createContext(E9),CKe=function(e){var t=b.useState(E9),n=t[0],r=t[1],A=b.useCallback(function(c,f,h){var m=f[0],I=f[1];h===void 0&&(h="top"),r({isVisible:!0,position:[m,I],anchor:h,content:c})},[r]),i=b.useCallback(function(c,f,h){h===void 0&&(h="top");var m=e.current.getBoundingClientRect(),I=e.current.offsetWidth,v=I===m.width?1:I/m.width,k="touches"in f?f.touches[0]:f,D=k.clientX,R=k.clientY,F=(D-m.left)*v,N=(R-m.top)*v;h!=="left"&&h!=="right"||(h=F-1&&e%1==0&&e<=TVe}var b9=MVe,FVe=G4,NVe=b9;function jVe(e){return e!=null&&NVe(e.length)&&!FVe(e)}var K4=jVe,OVe=K4,LVe=ju;function PVe(e){return LVe(e)&&OVe(e)}var pie=PVe,V4={exports:{}};function UVe(){return!1}var GVe=UVe;V4.exports,function(e,t){var n=Nu,r=GVe,A=t&&!t.nodeType&&t,i=A&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===A,c=a?n.Buffer:void 0,f=c?c.isBuffer:void 0,h=f||r;e.exports=h}(V4,V4.exports);var q4=V4.exports,HVe=_h,YVe=y9,zVe=ju,JVe="[object Object]",WVe=Function.prototype,ZVe=Object.prototype,mie=WVe.toString,XVe=ZVe.hasOwnProperty,KVe=mie.call(Object);function VVe(e){if(!zVe(e)||HVe(e)!=JVe)return!1;var t=YVe(e);if(t===null)return!0;var n=XVe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mie.call(n)==KVe}var Eie=VVe;const aB=MA(Eie);var qVe=_h,$Ve=b9,eqe=ju,tqe="[object Arguments]",nqe="[object Array]",rqe="[object Boolean]",oqe="[object Date]",iqe="[object Error]",Aqe="[object Function]",sqe="[object Map]",aqe="[object Number]",lqe="[object Object]",cqe="[object RegExp]",uqe="[object Set]",dqe="[object String]",fqe="[object WeakMap]",gqe="[object ArrayBuffer]",hqe="[object DataView]",pqe="[object Float32Array]",mqe="[object Float64Array]",Eqe="[object Int8Array]",Iqe="[object Int16Array]",Cqe="[object Int32Array]",Bqe="[object Uint8Array]",yqe="[object Uint8ClampedArray]",vqe="[object Uint16Array]",bqe="[object Uint32Array]",pi={};pi[pqe]=pi[mqe]=pi[Eqe]=pi[Iqe]=pi[Cqe]=pi[Bqe]=pi[yqe]=pi[vqe]=pi[bqe]=!0,pi[tqe]=pi[nqe]=pi[gqe]=pi[rqe]=pi[hqe]=pi[oqe]=pi[iqe]=pi[Aqe]=pi[sqe]=pi[aqe]=pi[lqe]=pi[cqe]=pi[uqe]=pi[dqe]=pi[fqe]=!1;function Qqe(e){return eqe(e)&&$Ve(e.length)&&!!pi[qVe(e)]}var wqe=Qqe;function xqe(e){return function(t){return e(t)}}var $4=xqe,ex={exports:{}};ex.exports,function(e,t){var n=joe,r=t&&!t.nodeType&&t,A=r&&!0&&e&&!e.nodeType&&e,i=A&&A.exports===r,a=i&&n.process,c=function(){try{var f=A&&A.require&&A.require("util").types;return f||a&&a.binding&&a.binding("util")}catch{}}();e.exports=c}(ex,ex.exports);var Q9=ex.exports,_qe=wqe,kqe=$4,Iie=Q9,Cie=Iie&&Iie.isTypedArray,Sqe=Cie?kqe(Cie):_qe,w9=Sqe;function Dqe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bie=Dqe,Rqe=C9,Tqe=sB,Mqe=Object.prototype,Fqe=Mqe.hasOwnProperty;function Nqe(e,t,n){var r=e[t];(!(Fqe.call(e,t)&&Tqe(r,n))||n===void 0&&!(t in e))&&Rqe(e,t,n)}var x9=Nqe,jqe=x9,Oqe=C9;function Lqe(e,t,n,r){var A=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=X$e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var $$e=q$e,eet=Z$e,tet=$$e,net=tet(eet),Rie=net,ret=_ie,oet=Sie,iet=Rie;function Aet(e,t){return iet(oet(e,t,ret),e+"")}var Tie=Aet,set=sB,aet=K4,cet=tx,uet=K0;function det(e,t,n){if(!uet(n))return!1;var r=typeof t;return(r=="number"?aet(n)&&cet(t,n.length):r=="string"&&t in n)?set(n[t],e):!1}var fet=det,get=Tie,het=fet;function pet(e){return get(function(t,n){var r=-1,A=n.length,i=A>1?n[A-1]:void 0,a=A>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(A--,i):void 0,a&&het(n[0],n[1],a)&&(i=A<3?void 0:i,A=1),t=Object(t);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ox(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ox(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Btt.exec(e))?new ys(t[1],t[2],t[3],1):(t=ytt.exec(e))?new ys(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vtt.exec(e))?ox(t[1],t[2],t[3],t[4]):(t=btt.exec(e))?ox(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Qtt.exec(e))?Kie(t[1],t[2]/100,t[3]/100,1):(t=wtt.exec(e))?Kie(t[1],t[2]/100,t[3]/100,t[4]):Hie.hasOwnProperty(e)?Jie(Hie[e]):e==="transparent"?new ys(NaN,NaN,NaN,0):null}function Jie(e){return new ys(e>>16&255,e>>8&255,e&255,1)}function ox(e,t,n,r){return r<=0&&(e=t=n=NaN),new ys(e,t,n,r)}function Wie(e){return e instanceof $1||(e=R9(e)),e?(e=e.rgb(),new ys(e.r,e.g,e.b,e.opacity)):new ys}function Rh(e,t,n,r){return arguments.length===1?Wie(e):new ys(e,t,n,r??1)}function ys(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}rx(ys,Rh,D9($1,{brighter(e){return e=e==null?em:Math.pow(em,e),new ys(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dh:Math.pow(Dh,e),new ys(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ys(Th(this.r),Th(this.g),Th(this.b),ix(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Zie,formatHex:Zie,formatHex8:ktt,formatRgb:Xie,toString:Xie}));function Zie(){return`#${Mh(this.r)}${Mh(this.g)}${Mh(this.b)}`}function ktt(){return`#${Mh(this.r)}${Mh(this.g)}${Mh(this.b)}${Mh((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xie(){const e=ix(this.opacity);return`${e===1?"rgb(":"rgba("}${Th(this.r)}, ${Th(this.g)}, ${Th(this.b)}${e===1?")":`, ${e})`}`}function ix(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Th(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Mh(e){return e=Th(e),(e<16?"0":"")+e.toString(16)}function Kie(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Uc(e,t,n,r)}function Vie(e){if(e instanceof Uc)return new Uc(e.h,e.s,e.l,e.opacity);if(e instanceof $1||(e=R9(e)),!e)return new Uc;if(e instanceof Uc)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,A=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,c=i-A,f=(i+A)/2;return c?(t===i?a=(n-r)/c+(n0&&f<1?0:a,new Uc(a,c,f,e.opacity)}function Stt(e,t,n,r){return arguments.length===1?Vie(e):new Uc(e,t,n,r??1)}function Uc(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}rx(Uc,Stt,D9($1,{brighter(e){return e=e==null?em:Math.pow(em,e),new Uc(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dh:Math.pow(Dh,e),new Uc(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,A=2*n-r;return new ys(T9(e>=240?e-240:e+120,A,r),T9(e,A,r),T9(e<120?e+240:e-120,A,r),this.opacity)},clamp(){return new Uc(qie(this.h),Ax(this.s),Ax(this.l),ix(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ix(this.opacity);return`${e===1?"hsl(":"hsla("}${qie(this.h)}, ${Ax(this.s)*100}%, ${Ax(this.l)*100}%${e===1?")":`, ${e})`}`}}));function qie(e){return e=(e||0)%360,e<0?e+360:e}function Ax(e){return Math.max(0,Math.min(1,e||0))}function T9(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Dtt=Math.PI/180,Rtt=180/Math.PI;var $ie=-.14861,M9=1.78277,F9=-.29227,sx=-.90649,fB=1.97294,eAe=fB*sx,tAe=fB*M9,nAe=M9*F9-sx*$ie;function Ttt(e){if(e instanceof Fh)return new Fh(e.h,e.s,e.l,e.opacity);e instanceof ys||(e=Wie(e));var t=e.r/255,n=e.g/255,r=e.b/255,A=(nAe*r+eAe*t-tAe*n)/(nAe+eAe-tAe),i=r-A,a=(fB*(n-A)-F9*i)/sx,c=Math.sqrt(a*a+i*i)/(fB*A*(1-A)),f=c?Math.atan2(a,i)*Rtt-120:NaN;return new Fh(f<0?f+360:f,c,A,e.opacity)}function Lu(e,t,n,r){return arguments.length===1?Ttt(e):new Fh(e,t,n,r??1)}function Fh(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}rx(Fh,Lu,D9($1,{brighter(e){return e=e==null?em:Math.pow(em,e),new Fh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dh:Math.pow(Dh,e),new Fh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Dtt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),A=Math.sin(e);return new ys(255*(t+n*($ie*r+M9*A)),255*(t+n*(F9*r+sx*A)),255*(t+n*(fB*r)),this.opacity)}}));function Mtt(e,t,n,r,A){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*A)/6}function Ftt(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),A=e[r],i=e[r+1],a=r>0?e[r-1]:2*A-i,c=r()=>e;function rAe(e,t){return function(n){return e+n*t}}function Ntt(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function jtt(e,t){var n=t-e;return n?rAe(e,n>180||n<-180?n-360*Math.round(n/360):n):N9(isNaN(e)?t:e)}function Ott(e){return(e=+e)==1?nm:function(t,n){return n-t?Ntt(t,n,e):N9(isNaN(t)?n:t)}}function nm(e,t){var n=t-e;return n?rAe(e,n):N9(isNaN(e)?t:e)}(function e(t){var n=Ott(t);function r(A,i){var a=n((A=Rh(A)).r,(i=Rh(i)).r),c=n(A.g,i.g),f=n(A.b,i.b),h=nm(A.opacity,i.opacity);return function(m){return A.r=a(m),A.g=c(m),A.b=f(m),A.opacity=h(m),A+""}}return r.gamma=e,r})(1);function Ltt(e){return function(t){var n=t.length,r=new Array(n),A=new Array(n),i=new Array(n),a,c;for(a=0;a=r)&&(n=r);else{let r=-1;for(let A of e)(A=t(A,++r,e))!=null&&(n=A)&&(n=A)}return n}function aAe(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let A of e)(A=t(A,++r,e))!=null&&(n>A||n===void 0&&A>=A)&&(n=A)}return n}function O9(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let A of e)(A=+t(A,++r,e))&&(n+=A)}return n}function $tt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const lAe=Symbol("implicit");function Pu(){var e=new iAe,t=[],n=[],r=lAe;function A(i){let a=e.get(i);if(a===void 0){if(r!==lAe)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return A.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new iAe;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return A},A.range=function(i){return arguments.length?(n=Array.from(i),A):n.slice()},A.unknown=function(i){return arguments.length?(r=i,A):r},A.copy=function(){return Pu(t,n).unknown(r)},$tt.apply(A,arguments),A}function ent(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ax(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tnt(e){return e=ax(Math.abs(e)),e?e[1]:NaN}function nnt(e,t){return function(n,r){for(var A=n.length,i=[],a=0,c=e[0],f=0;A>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),i.push(n.substring(A-=c,A+c)),!((f+=c+1)>r));)c=e[a=(a+1)%e.length];return i.reverse().join(t)}}function rnt(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ont=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function L9(e){if(!(t=ont.exec(e)))throw new Error("invalid format: "+e);var t;return new P9({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}L9.prototype=P9.prototype;function P9(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}P9.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function int(e){e:for(var t=e.length,n=1,r=-1,A;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(A+1):e}var cAe;function Ant(e,t){var n=ax(e,t);if(!n)return e+"";var r=n[0],A=n[1],i=A-(cAe=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ax(e,Math.max(0,t+i-1))[0]}function uAe(e,t){var n=ax(e,t);if(!n)return e+"";var r=n[0],A=n[1];return A<0?"0."+new Array(-A).join("0")+r:r.length>A+1?r.slice(0,A+1)+"."+r.slice(A+1):r+new Array(A-r.length+2).join("0")}const dAe={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:ent,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return uAe(e*100,t)},r:uAe,s:Ant,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function fAe(e){return e}var gAe=Array.prototype.map,hAe=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function snt(e){var t=e.grouping===void 0||e.thousands===void 0?fAe:nnt(gAe.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",A=e.decimal+"",i=e.numerals===void 0?fAe:rnt(gAe.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",c=e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function h(I){I=L9(I);var v=I.fill,k=I.align,D=I.sign,R=I.symbol,F=I.zero,N=I.width,T=I.comma,P=I.precision,G=I.trim,Y=I.type;Y==="n"?(T=!0,Y="g"):dAe[Y]||(P===void 0&&(P=12),G=!0,Y="g"),(F||v==="0"&&k==="=")&&(F=!0,v="0",k="=");var z=R==="$"?n:R==="#"&&/[boxX]/.test(Y)?"0"+Y.toLowerCase():"",Z=R==="$"?r:/[%p]/.test(Y)?a:"",K=dAe[Y],re=/[defgprs%]/.test(Y);P=P===void 0?6:/[gprs]/.test(Y)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function V(oe){var Be=z,he=Z,de,me,Ae;if(Y==="c")he=K(oe)+he,oe="";else{oe=+oe;var Ce=oe<0||1/oe<0;if(oe=isNaN(oe)?f:K(Math.abs(oe),P),G&&(oe=int(oe)),Ce&&+oe==0&&D!=="+"&&(Ce=!1),Be=(Ce?D==="("?D:c:D==="-"||D==="("?"":D)+Be,he=(Y==="s"?hAe[8+cAe/3]:"")+he+(Ce&&D==="("?")":""),re){for(de=-1,me=oe.length;++deAe||Ae>57){he=(Ae===46?A+oe.slice(de+1):oe.slice(de))+he,oe=oe.slice(0,de);break}}}T&&!F&&(oe=t(oe,1/0));var ae=Be.length+oe.length+he.length,fe=ae>1)+Be+oe+he+fe.slice(ae);break;default:oe=fe+Be+oe+he;break}return i(oe)}return V.toString=function(){return I+""},V}function m(I,v){var k=h((I=L9(I),I.type="f",I)),D=Math.max(-8,Math.min(8,Math.floor(tnt(v)/3)))*3,R=Math.pow(10,-D),F=hAe[8+D/3];return function(N){return k(R*N)+F}}return{format:h,formatPrefix:m}}var lx,pAe;ant({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function ant(e){return lx=snt(e),pAe=lx.format,lx.formatPrefix,lx}var U9=new Date,G9=new Date;function V0(e,t,n,r){function A(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return A.floor=function(i){return e(i=new Date(+i)),i},A.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},A.round=function(i){var a=A(i),c=A.ceil(i);return i-a0))return f;do f.push(h=new Date(+i)),t(i,c),e(i);while(h=a)for(;e(a),!i(a);)a.setTime(a-1)},function(a,c){if(a>=a)if(c<0)for(;++c<=0;)for(;t(a,-1),!i(a););else for(;--c>=0;)for(;t(a,1),!i(a););})},n&&(A.count=function(i,a){return U9.setTime(+i),G9.setTime(+a),e(U9),e(G9),Math.floor(n(U9,G9))},A.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?A.filter(r?function(a){return r(a)%i===0}:function(a){return A.count(0,a)%i===0}):A}),A}const lnt=1e3,H9=lnt*60,cnt=H9*60,Y9=cnt*24,mAe=Y9*7;var z9=V0(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*H9)/Y9,e=>e.getDate()-1);z9.range;function Nh(e){return V0(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*H9)/mAe})}var EAe=Nh(0),cx=Nh(1),unt=Nh(2),dnt=Nh(3),rm=Nh(4),fnt=Nh(5),gnt=Nh(6);EAe.range,cx.range,unt.range,dnt.range,rm.range,fnt.range,gnt.range;var jh=V0(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});jh.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:V0(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},jh.range;var J9=V0(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Y9},function(e){return e.getUTCDate()-1});J9.range;function Oh(e){return V0(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/mAe})}var IAe=Oh(0),ux=Oh(1),hnt=Oh(2),pnt=Oh(3),om=Oh(4),mnt=Oh(5),Ent=Oh(6);IAe.range,ux.range,hnt.range,pnt.range,om.range,mnt.range,Ent.range;var Lh=V0(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Lh.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:V0(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})},Lh.range;function W9(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Z9(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function gB(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Int(e){var t=e.dateTime,n=e.date,r=e.time,A=e.periods,i=e.days,a=e.shortDays,c=e.months,f=e.shortMonths,h=hB(A),m=pB(A),I=hB(i),v=pB(i),k=hB(a),D=pB(a),R=hB(c),F=pB(c),N=hB(f),T=pB(f),P={a:Ce,A:ae,b:fe,B:ye,c:null,d:QAe,e:QAe,f:Gnt,g:qnt,G:ert,H:Lnt,I:Pnt,j:Unt,L:wAe,m:Hnt,M:Ynt,p:Oe,q:Ie,Q:RAe,s:TAe,S:znt,u:Jnt,U:Wnt,V:Znt,w:Xnt,W:Knt,x:null,X:null,y:Vnt,Y:$nt,Z:trt,"%":DAe},G={a:Fe,A:qe,b:Ze,B:Te,c:null,d:_Ae,e:_Ae,f:irt,g:hrt,G:mrt,H:nrt,I:rrt,j:ort,L:kAe,m:Art,M:srt,p:De,q:Se,Q:RAe,s:TAe,S:art,u:lrt,U:crt,V:urt,w:drt,W:frt,x:null,X:null,y:grt,Y:prt,Z:Ert,"%":DAe},Y={a:V,A:oe,b:Be,B:he,c:de,d:vAe,e:vAe,f:Fnt,g:yAe,G:BAe,H:bAe,I:bAe,j:Dnt,L:Mnt,m:Snt,M:Rnt,p:re,q:knt,Q:jnt,s:Ont,S:Tnt,u:bnt,U:Qnt,V:wnt,w:vnt,W:xnt,x:me,X:Ae,y:yAe,Y:BAe,Z:_nt,"%":Nnt};P.x=z(n,P),P.X=z(r,P),P.c=z(t,P),G.x=z(n,G),G.X=z(r,G),G.c=z(t,G);function z(Qe,Ye){return function(At){var Je=[],Nt=-1,jt=0,bt=Qe.length,wt,se,$t;for(At instanceof Date||(At=new Date(+At));++Nt53)return null;"w"in Je||(Je.w=1),"Z"in Je?(jt=Z9(gB(Je.y,0,1)),bt=jt.getUTCDay(),jt=bt>4||bt===0?ux.ceil(jt):ux(jt),jt=J9.offset(jt,(Je.V-1)*7),Je.y=jt.getUTCFullYear(),Je.m=jt.getUTCMonth(),Je.d=jt.getUTCDate()+(Je.w+6)%7):(jt=W9(gB(Je.y,0,1)),bt=jt.getDay(),jt=bt>4||bt===0?cx.ceil(jt):cx(jt),jt=z9.offset(jt,(Je.V-1)*7),Je.y=jt.getFullYear(),Je.m=jt.getMonth(),Je.d=jt.getDate()+(Je.w+6)%7)}else("W"in Je||"U"in Je)&&("w"in Je||(Je.w="u"in Je?Je.u%7:"W"in Je?1:0),bt="Z"in Je?Z9(gB(Je.y,0,1)).getUTCDay():W9(gB(Je.y,0,1)).getDay(),Je.m=0,Je.d="W"in Je?(Je.w+6)%7+Je.W*7-(bt+5)%7:Je.w+Je.U*7-(bt+6)%7);return"Z"in Je?(Je.H+=Je.Z/100|0,Je.M+=Je.Z%100,Z9(Je)):W9(Je)}}function K(Qe,Ye,At,Je){for(var Nt=0,jt=Ye.length,bt=At.length,wt,se;Nt=bt)return-1;if(wt=Ye.charCodeAt(Nt++),wt===37){if(wt=Ye.charAt(Nt++),se=Y[wt in CAe?Ye.charAt(Nt++):wt],!se||(Je=se(Qe,At,Je))<0)return-1}else if(wt!=At.charCodeAt(Je++))return-1}return Je}function re(Qe,Ye,At){var Je=h.exec(Ye.slice(At));return Je?(Qe.p=m.get(Je[0].toLowerCase()),At+Je[0].length):-1}function V(Qe,Ye,At){var Je=k.exec(Ye.slice(At));return Je?(Qe.w=D.get(Je[0].toLowerCase()),At+Je[0].length):-1}function oe(Qe,Ye,At){var Je=I.exec(Ye.slice(At));return Je?(Qe.w=v.get(Je[0].toLowerCase()),At+Je[0].length):-1}function Be(Qe,Ye,At){var Je=N.exec(Ye.slice(At));return Je?(Qe.m=T.get(Je[0].toLowerCase()),At+Je[0].length):-1}function he(Qe,Ye,At){var Je=R.exec(Ye.slice(At));return Je?(Qe.m=F.get(Je[0].toLowerCase()),At+Je[0].length):-1}function de(Qe,Ye,At){return K(Qe,t,Ye,At)}function me(Qe,Ye,At){return K(Qe,n,Ye,At)}function Ae(Qe,Ye,At){return K(Qe,r,Ye,At)}function Ce(Qe){return a[Qe.getDay()]}function ae(Qe){return i[Qe.getDay()]}function fe(Qe){return f[Qe.getMonth()]}function ye(Qe){return c[Qe.getMonth()]}function Oe(Qe){return A[+(Qe.getHours()>=12)]}function Ie(Qe){return 1+~~(Qe.getMonth()/3)}function Fe(Qe){return a[Qe.getUTCDay()]}function qe(Qe){return i[Qe.getUTCDay()]}function Ze(Qe){return f[Qe.getUTCMonth()]}function Te(Qe){return c[Qe.getUTCMonth()]}function De(Qe){return A[+(Qe.getUTCHours()>=12)]}function Se(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var Ye=z(Qe+="",P);return Ye.toString=function(){return Qe},Ye},parse:function(Qe){var Ye=Z(Qe+="",!1);return Ye.toString=function(){return Qe},Ye},utcFormat:function(Qe){var Ye=z(Qe+="",G);return Ye.toString=function(){return Qe},Ye},utcParse:function(Qe){var Ye=Z(Qe+="",!0);return Ye.toString=function(){return Qe},Ye}}}var CAe={"-":"",_:" ",0:"0"},GA=/^\s*\d+/,Cnt=/^%/,Bnt=/[\\^$*+?|[\]().{}]/g;function co(e,t,n){var r=e<0?"-":"",A=(r?-e:e)+"",i=A.length;return r+(i[t.toLowerCase(),n]))}function vnt(e,t,n){var r=GA.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function bnt(e,t,n){var r=GA.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qnt(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wnt(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function xnt(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function BAe(e,t,n){var r=GA.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function yAe(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _nt(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function knt(e,t,n){var r=GA.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Snt(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function vAe(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Dnt(e,t,n){var r=GA.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function bAe(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Rnt(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Tnt(e,t,n){var r=GA.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mnt(e,t,n){var r=GA.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Fnt(e,t,n){var r=GA.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nnt(e,t,n){var r=Cnt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jnt(e,t,n){var r=GA.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ont(e,t,n){var r=GA.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function QAe(e,t){return co(e.getDate(),t,2)}function Lnt(e,t){return co(e.getHours(),t,2)}function Pnt(e,t){return co(e.getHours()%12||12,t,2)}function Unt(e,t){return co(1+z9.count(jh(e),e),t,3)}function wAe(e,t){return co(e.getMilliseconds(),t,3)}function Gnt(e,t){return wAe(e,t)+"000"}function Hnt(e,t){return co(e.getMonth()+1,t,2)}function Ynt(e,t){return co(e.getMinutes(),t,2)}function znt(e,t){return co(e.getSeconds(),t,2)}function Jnt(e){var t=e.getDay();return t===0?7:t}function Wnt(e,t){return co(EAe.count(jh(e)-1,e),t,2)}function xAe(e){var t=e.getDay();return t>=4||t===0?rm(e):rm.ceil(e)}function Znt(e,t){return e=xAe(e),co(rm.count(jh(e),e)+(jh(e).getDay()===4),t,2)}function Xnt(e){return e.getDay()}function Knt(e,t){return co(cx.count(jh(e)-1,e),t,2)}function Vnt(e,t){return co(e.getFullYear()%100,t,2)}function qnt(e,t){return e=xAe(e),co(e.getFullYear()%100,t,2)}function $nt(e,t){return co(e.getFullYear()%1e4,t,4)}function ert(e,t){var n=e.getDay();return e=n>=4||n===0?rm(e):rm.ceil(e),co(e.getFullYear()%1e4,t,4)}function trt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+co(t/60|0,"0",2)+co(t%60,"0",2)}function _Ae(e,t){return co(e.getUTCDate(),t,2)}function nrt(e,t){return co(e.getUTCHours(),t,2)}function rrt(e,t){return co(e.getUTCHours()%12||12,t,2)}function ort(e,t){return co(1+J9.count(Lh(e),e),t,3)}function kAe(e,t){return co(e.getUTCMilliseconds(),t,3)}function irt(e,t){return kAe(e,t)+"000"}function Art(e,t){return co(e.getUTCMonth()+1,t,2)}function srt(e,t){return co(e.getUTCMinutes(),t,2)}function art(e,t){return co(e.getUTCSeconds(),t,2)}function lrt(e){var t=e.getUTCDay();return t===0?7:t}function crt(e,t){return co(IAe.count(Lh(e)-1,e),t,2)}function SAe(e){var t=e.getUTCDay();return t>=4||t===0?om(e):om.ceil(e)}function urt(e,t){return e=SAe(e),co(om.count(Lh(e),e)+(Lh(e).getUTCDay()===4),t,2)}function drt(e){return e.getUTCDay()}function frt(e,t){return co(ux.count(Lh(e)-1,e),t,2)}function grt(e,t){return co(e.getUTCFullYear()%100,t,2)}function hrt(e,t){return e=SAe(e),co(e.getUTCFullYear()%100,t,2)}function prt(e,t){return co(e.getUTCFullYear()%1e4,t,4)}function mrt(e,t){var n=e.getUTCDay();return e=n>=4||n===0?om(e):om.ceil(e),co(e.getUTCFullYear()%1e4,t,4)}function Ert(){return"+0000"}function DAe(){return"%"}function RAe(e){return+e}function TAe(e){return Math.floor(+e/1e3)}var im,MAe;Irt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Irt(e){return im=Int(e),MAe=im.format,im.parse,im.utcFormat,im.utcParse,im}function Br(e){for(var t=e.length/6|0,n=new Array(t),r=0;rPtt(e[e.length-1]);var Ph=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Br);const Bx=Zo(Ph);var Uh=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Br);const yx=Zo(Uh);var Gh=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Br);const vx=Zo(Gh);var Hh=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Br);const bx=Zo(Hh);var Yh=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Br);const Qx=Zo(Yh);var zh=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Br);const wx=Zo(zh);var Jh=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Br);const xx=Zo(Jh);var Wh=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Br);const _x=Zo(Wh);var Zh=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Br);const kx=Zo(Zh);var Xh=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Br);const Sx=Zo(Xh);var Kh=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Br);const Dx=Zo(Kh);var Vh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Br);const Rx=Zo(Vh);var qh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Br);const Tx=Zo(qh);var $h=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Br);const Mx=Zo($h);var e2=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Br);const Fx=Zo(e2);var t2=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Br);const Nx=Zo(t2);var n2=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Br);const jx=Zo(n2);var r2=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Br);const Ox=Zo(r2);var o2=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Br);const Lx=Zo(o2);var i2=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Br);const Px=Zo(i2);var A2=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Br);const Ux=Zo(A2);var s2=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Br);const Gx=Zo(s2);var a2=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Br);const Hx=Zo(a2);var l2=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Br);const Yx=Zo(l2);var c2=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Br);const zx=Zo(c2);var u2=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Br);const Jx=Zo(u2);var d2=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Br);const Wx=Zo(d2);function Zx(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const Xx=j9(Lu(300,.5,0),Lu(-240,.5,1));var Kx=j9(Lu(-100,.75,.35),Lu(80,1.5,.8)),Vx=j9(Lu(260,.75,.35),Lu(80,1.5,.8)),qx=Lu();function $x(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return qx.h=360*e-100,qx.s=1.5-1.5*t,qx.l=.8-.9*t,qx+""}var e_=Rh(),Crt=Math.PI/3,Brt=Math.PI*2/3;function t_(e){var t;return e=(.5-e)*Math.PI,e_.r=255*(t=Math.sin(e))*t,e_.g=255*(t=Math.sin(e+Crt))*t,e_.b=255*(t=Math.sin(e+Brt))*t,e_+""}function n_(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function r_(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const o_=r_(Br("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var i_=r_(Br("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),A_=r_(Br("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),s_=r_(Br("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),yrt=u9,vrt=Woe,brt=Zoe,Qrt=Fie,wrt=$4,xrt=d9,_rt=200;function krt(e,t,n,r){var A=-1,i=vrt,a=!0,c=e.length,f=[],h=t.length;if(!c)return f;n&&(t=Qrt(t,wrt(n))),r?(i=brt,a=!1):t.length>=_rt&&(i=xrt,a=!1,t=new yrt(t));e:for(;++A1?0:e<-1?EB:Math.acos(e)}function jAe(e){return e>=1?a_:e<=-1?-a_:Math.asin(e)}const K9=Math.PI,V9=2*K9,g2=1e-6,Ort=V9-g2;function OAe(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return OAe;const n=10**t;return function(r){this._+=r[0];for(let A=1,i=r.length;Ag2)if(!(Math.abs(m*c-f*h)>g2)||!A)this._append`L${this._x1=e},${this._y1=t}`;else{let v=n-i,k=r-a,D=c*c+f*f,R=v*v+k*k,F=Math.sqrt(D),N=Math.sqrt(I),T=A*Math.tan((K9-Math.acos((D+I-R)/(2*F*N)))/2),P=T/N,G=T/F;Math.abs(P-1)>g2&&this._append`L${e+P*h},${t+P*m}`,this._append`A${A},${A},0,0,${+(m*v>h*k)},${this._x1=e+G*c},${this._y1=t+G*f}`}}arc(e,t,n,r,A,i){if(e=+e,t=+t,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),c=n*Math.sin(r),f=e+a,h=t+c,m=1^i,I=i?r-A:A-r;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>g2||Math.abs(this._y1-h)>g2)&&this._append`L${f},${h}`,n&&(I<0&&(I=I%V9+V9),I>Ort?this._append`A${n},${n},0,1,${m},${e-a},${t-c}A${n},${n},0,1,${m},${this._x1=f},${this._y1=h}`:I>g2&&this._append`A${n},${n},0,${+(I>=K9)},${m},${this._x1=e+n*Math.cos(A)},${this._y1=t+n*Math.sin(A)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function LAe(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Prt(t)}function Urt(e){return e.innerRadius}function Grt(e){return e.outerRadius}function Hrt(e){return e.startAngle}function Yrt(e){return e.endAngle}function zrt(e){return e&&e.padAngle}function Jrt(e,t,n,r,A,i,a,c){var f=n-e,h=r-t,m=a-A,I=c-i,v=I*f-m*h;if(!(v*vde*de+me*me&&(K=V,re=oe),{cx:K,cy:re,x01:-m,y01:-I,x11:K*(A/Y-1),y11:re*(A/Y-1)}}function Wrt(){var e=Urt,t=Grt,n=eA(0),r=null,A=Hrt,i=Yrt,a=zrt,c=null,f=LAe(h);function h(){var m,I,v=+e.apply(this,arguments),k=+t.apply(this,arguments),D=A.apply(this,arguments)-a_,R=i.apply(this,arguments)-a_,F=NAe(R-D),N=R>D;if(c||(c=m=f()),kbs))c.moveTo(0,0);else if(F>l_-bs)c.moveTo(k*f2(D),k*Uu(D)),c.arc(0,0,k,D,R,!N),v>bs&&(c.moveTo(v*f2(R),v*Uu(R)),c.arc(0,0,v,R,D,N));else{var T=D,P=R,G=D,Y=R,z=F,Z=F,K=a.apply(this,arguments)/2,re=K>bs&&(r?+r.apply(this,arguments):Am(v*v+k*k)),V=X9(NAe(k-v)/2,+n.apply(this,arguments)),oe=V,Be=V,he,de;if(re>bs){var me=jAe(re/v*Uu(K)),Ae=jAe(re/k*Uu(K));(z-=me*2)>bs?(me*=N?1:-1,G+=me,Y-=me):(z=0,G=Y=(D+R)/2),(Z-=Ae*2)>bs?(Ae*=N?1:-1,T+=Ae,P-=Ae):(Z=0,T=P=(D+R)/2)}var Ce=k*f2(T),ae=k*Uu(T),fe=v*f2(Y),ye=v*Uu(Y);if(V>bs){var Oe=k*f2(P),Ie=k*Uu(P),Fe=v*f2(G),qe=v*Uu(G),Ze;if(Fbs?Be>bs?(he=c_(Fe,qe,Ce,ae,k,Be,N),de=c_(Oe,Ie,fe,ye,k,Be,N),c.moveTo(he.cx+he.x01,he.cy+he.y01),Bebs)||!(z>bs)?c.lineTo(fe,ye):oe>bs?(he=c_(fe,ye,Oe,Ie,v,-oe,N),de=c_(Ce,ae,Fe,qe,v,-oe,N),c.lineTo(he.cx+he.x01,he.cy+he.y01),oee?1:t>=e?0:NaN}function Vrt(e){return e}function qrt(){var e=Vrt,t=Krt,n=null,r=eA(0),A=eA(l_),i=eA(0);function a(c){var f,h=(c=PAe(c)).length,m,I,v=0,k=new Array(h),D=new Array(h),R=+r.apply(this,arguments),F=Math.min(l_,Math.max(-l_,A.apply(this,arguments)-R)),N,T=Math.min(Math.abs(F)/h,i.apply(this,arguments)),P=T*(F<0?-1:1),G;for(f=0;f0&&(v+=G);for(t!=null?k.sort(function(Y,z){return t(D[Y],D[z])}):n!=null&&k.sort(function(Y,z){return n(c[Y],c[z])}),f=0,I=v?(F-h*P)/v:0;f0?G*I:0)+P,D[m]={data:c[m],index:f,value:G,startAngle:R,endAngle:N,padAngle:T};return D}return a.value=function(c){return arguments.length?(e=typeof c=="function"?c:eA(+c),a):e},a.sortValues=function(c){return arguments.length?(t=c,n=null,a):t},a.sort=function(c){return arguments.length?(n=c,t=null,a):n},a.startAngle=function(c){return arguments.length?(r=typeof c=="function"?c:eA(+c),a):r},a.endAngle=function(c){return arguments.length?(A=typeof c=="function"?c:eA(+c),a):A},a.padAngle=function(c){return arguments.length?(i=typeof c=="function"?c:eA(+c),a):i},a}function Wf(){}function u_(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function d_(e){this._context=e}d_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:u_(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:u_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $rt(e){return new d_(e)}function HAe(e){this._context=e}HAe.prototype={areaStart:Wf,areaEnd:Wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:u_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eot(e){return new HAe(e)}function YAe(e){this._context=e}YAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:u_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tot(e){return new YAe(e)}function zAe(e,t){this._basis=new d_(e),this._beta=t}zAe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],A=t[0],i=e[n]-r,a=t[n]-A,c=-1,f;++c<=n;)f=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(r+f*i),this._beta*t[c]+(1-this._beta)*(A+f*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const not=function e(t){function n(r){return t===1?new d_(r):new zAe(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function f_(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function $9(e,t){this._context=e,this._k=(1-t)/6}$9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:f_(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:f_(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const rot=function e(t){function n(r){return new $9(r,t)}return n.tension=function(r){return e(+r)},n}(0);function eF(e,t){this._context=e,this._k=(1-t)/6}eF.prototype={areaStart:Wf,areaEnd:Wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:f_(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const oot=function e(t){function n(r){return new eF(r,t)}return n.tension=function(r){return e(+r)},n}(0);function tF(e,t){this._context=e,this._k=(1-t)/6}tF.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:f_(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const iot=function e(t){function n(r){return new tF(r,t)}return n.tension=function(r){return e(+r)},n}(0);function nF(e,t,n){var r=e._x1,A=e._y1,i=e._x2,a=e._y2;if(e._l01_a>bs){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,f=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/f,A=(A*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/f}if(e._l23_a>bs){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,m=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*h+e._x1*e._l23_2a-t*e._l12_2a)/m,a=(a*h+e._y1*e._l23_2a-n*e._l12_2a)/m}e._context.bezierCurveTo(r,A,i,a,e._x2,e._y2)}function JAe(e,t){this._context=e,this._alpha=t}JAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:nF(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Aot=function e(t){function n(r){return t?new JAe(r,t):new $9(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function WAe(e,t){this._context=e,this._alpha=t}WAe.prototype={areaStart:Wf,areaEnd:Wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:nF(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const sot=function e(t){function n(r){return t?new WAe(r,t):new eF(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ZAe(e,t){this._context=e,this._alpha=t}ZAe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nF(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const aot=function e(t){function n(r){return t?new ZAe(r,t):new tF(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function XAe(e){this._context=e}XAe.prototype={areaStart:Wf,areaEnd:Wf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function lot(e){return new XAe(e)}function KAe(e){return e<0?-1:1}function VAe(e,t,n){var r=e._x1-e._x0,A=t-e._x1,i=(e._y1-e._y0)/(r||A<0&&-0),a=(n-e._y1)/(A||r<0&&-0),c=(i*A+a*r)/(r+A);return(KAe(i)+KAe(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function qAe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function rF(e,t,n){var r=e._x0,A=e._y0,i=e._x1,a=e._y1,c=(i-r)/3;e._context.bezierCurveTo(r+c,A+c*t,i-c,a-c*n,i,a)}function g_(e){this._context=e}g_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:rF(this,this._t0,qAe(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,rF(this,qAe(this,n=VAe(this,e,t)),n);break;default:rF(this,this._t0,n=VAe(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function $Ae(e){this._context=new ese(e)}($Ae.prototype=Object.create(g_.prototype)).point=function(e,t){g_.prototype.point.call(this,t,e)};function ese(e){this._context=e}ese.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,A,i){this._context.bezierCurveTo(t,e,r,n,i,A)}};function tse(e){return new g_(e)}function nse(e){return new $Ae(e)}function rse(e){this._context=e}rse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=ose(e),A=ose(t),i=0,a=1;a=0;--t)A[t]=(a[t]-A[t+1])/i[t];for(i[n-1]=(e[n]+A[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function uot(e){return new h_(e,.5)}function dot(e){return new h_(e,0)}function fot(e){return new h_(e,1)}var got=Pie,hot=Gie,pot=nx;function mot(e,t,n){for(var r=-1,A=t.length,i={};++r0&&n(c)?t>1?sse(c,t-1,n,r,A):Got(A,c):r||(A[A.length]=c)}return A}var Yot=sse,zot=Yot;function Jot(e){var t=e==null?0:e.length;return t?zot(e,1):[]}var Wot=Jot,Zot=Wot,Xot=Sie,Kot=Rie;function Vot(e){return Kot(Xot(e,void 0,Zot),e+"")}var qot=Vot,$ot=Not,eit=qot,tit=eit(function(e,t){return e==null?{}:$ot(e,t)}),nit=tit;const rit=MA(nit);function oit(e,t){for(var n=-1,r=e==null?0:e.length;++nc))return!1;var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var I=-1,v=!0,k=n&cit?new Ait:void 0;for(i.set(e,t),i.set(t,e);++I=0||(A[n]=e[n]);return A}var zAt=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],JAt=function(e,t){return Gc({},t,e)},WAt=function(e,t){var n=yet({},e,t);return zAt.forEach(function(r){uB(n,r,JAt(Yl(n,r),n.text))}),n},Dse=b.createContext(),Rse=function(e){var t=e.children,n=e.animate,r=n===void 0||n,A=e.config,i=A===void 0?"default":A,a=b.useMemo(function(){var c=Wtt(i)?qR[i]:i;return{animate:r,config:c}},[r,i]);return p.jsx(Dse.Provider,{value:a,children:t})},E_={animate:tt.bool,motionConfig:tt.oneOfType([tt.oneOf(Object.keys(qR)),tt.shape({mass:tt.number,tension:tt.number,friction:tt.number,clamp:tt.bool,precision:tt.number,velocity:tt.number,duration:tt.number,easing:tt.func})])};Rse.propTypes={children:tt.node.isRequired,animate:E_.animate,config:E_.motionConfig};var am=function(){return b.useContext(Dse)},ZAt={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:Un(Ph),PRGn:Un(Uh),PiYG:Un(Gh),PuOr:Un(Hh),RdBu:Un(Yh),RdGy:Un(zh),RdYlBu:Un(Jh),RdYlGn:Un(Wh),spectral:Un(Zh),blues:Un(s2),greens:Un(a2),greys:Un(l2),oranges:Un(d2),purples:Un(c2),reds:Un(u2),BuGn:Un(Xh),BuPu:Un(Kh),GnBu:Un(Vh),OrRd:Un(qh),PuBuGn:Un($h),PuBu:Un(e2),PuRd:Un(t2),RdPu:Un(n2),YlGnBu:Un(r2),YlGn:Un(o2),YlOrBr:Un(i2),YlOrRd:Un(A2)},XAt=Object.keys(ZAt);Un(Ph),Un(Uh),Un(Gh),Un(Hh),Un(Yh),Un(zh),Un(Jh),Un(Wh),Un(Zh),Un(s2),Un(a2),Un(l2),Un(d2),Un(c2),Un(u2),Un(Xh),Un(Kh),Un(Vh),Un(qh),Un($h),Un(e2),Un(t2),Un(n2),Un(r2),Un(o2),Un(i2),Un(A2),tt.oneOfType([tt.oneOf(XAt),tt.func,tt.arrayOf(tt.string)]);var KAt={basis:$rt,basisClosed:eot,basisOpen:tot,bundle:not,cardinal:rot,cardinalClosed:oot,cardinalOpen:iot,catmullRom:Aot,catmullRomClosed:sot,catmullRomOpen:aot,linear:GAe,linearClosed:lot,monotoneX:tse,monotoneY:nse,natural:cot,step:uot,stepAfter:fot,stepBefore:dot},hF=Object.keys(KAt);hF.filter(function(e){return e.endsWith("Closed")}),FAe(hF,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),FAe(hF,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),tt.shape({top:tt.number,right:tt.number,bottom:tt.number,left:tt.number}).isRequired;var VAt=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];tt.oneOf(VAt),Pu(mB);var qAt={top:0,right:0,bottom:0,left:0},Tse=function(e,t,n){return n===void 0&&(n={}),b.useMemo(function(){var r=Gc({},qAt,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},$At=function(){var e=b.useRef(null),t=b.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],A=b.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var a=i[0];return r(a.contentRect)})})[0];return b.useEffect(function(){return e.current&&A!==null&&A.observe(e.current),function(){A!==null&&A.disconnect()}},[]),[e,n]},est=function(e){return b.useMemo(function(){return WAt(YAt,e)},[e])},tst=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?MAe(e.slice("5")):pAe(e):function(t){return""+t}},pF=function(e){return b.useMemo(function(){return tst(e)},[e])},Mse=b.createContext(),nst={},Fse=function(e){var t=e.theme,n=t===void 0?nst:t,r=e.children,A=est(n);return p.jsx(Mse.Provider,{value:A,children:r})};Fse.propTypes={children:tt.node.isRequired,theme:tt.object};var ol=function(){return b.useContext(Mse)},rst=["outlineWidth","outlineColor","outlineOpacity"],Nse=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,gF(e,rst)},jse=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?b.cloneElement(r,{},t):t};jse.propTypes={children:tt.node.isRequired,condition:tt.bool.isRequired,wrapper:tt.element.isRequired};var ost={position:"relative"},mF=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,A=r===void 0||r,i=e.isInteractive,a=i===void 0||i,c=e.animate,f=e.motionConfig,h=b.useRef(null);return p.jsx(Fse,{theme:n,children:p.jsx(Rse,{animate:c,config:f,children:p.jsx(QKe,{container:h,children:p.jsxs(jse,{condition:A,wrapper:p.jsx("div",{style:ost,ref:h}),children:[t,a&&p.jsx(bKe,{})]})})})})};mF.propTypes={children:tt.element.isRequired,isInteractive:tt.bool,renderWrapper:tt.bool,theme:tt.object,animate:tt.bool,motionConfig:tt.oneOfType([tt.string,E_.motionConfig])},tt.func.isRequired,tt.bool,tt.bool,tt.object.isRequired,tt.bool.isRequired,tt.oneOfType([tt.string,E_.motionConfig]),tt.func.isRequired;var ist=["id","colors"],Ose=function(e){var t=e.id,n=e.colors,r=gF(e,ist);return p.jsx("linearGradient",Gc({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(A){var i=A.offset,a=A.color,c=A.opacity;return p.jsx("stop",{offset:i+"%",stopColor:a,stopOpacity:c!==void 0?c:1},i)})}))};Ose.propTypes={id:tt.string.isRequired,colors:tt.arrayOf(tt.shape({offset:tt.number.isRequired,color:tt.string.isRequired,opacity:tt.number})).isRequired,gradientTransform:tt.string};var Lse={linearGradient:Ose},IB={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},EF=b.memo(function(e){var t=e.id,n=e.background,r=n===void 0?IB.background:n,A=e.color,i=A===void 0?IB.color:A,a=e.size,c=a===void 0?IB.size:a,f=e.padding,h=f===void 0?IB.padding:f,m=e.stagger,I=m===void 0?IB.stagger:m,v=c+h,k=c/2,D=h/2;return I===!0&&(v=2*c+2*h),p.jsxs("pattern",{id:t,width:v,height:v,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:v,height:v,fill:r}),p.jsx("circle",{cx:D+k,cy:D+k,r:k,fill:i}),I&&p.jsx("circle",{cx:1.5*h+c+k,cy:1.5*h+c+k,r:k,fill:i})]})});EF.displayName="PatternDots",EF.propTypes={id:tt.string.isRequired,color:tt.string.isRequired,background:tt.string.isRequired,size:tt.number.isRequired,padding:tt.number.isRequired,stagger:tt.bool.isRequired};var q0=function(e){return e*Math.PI/180},IF=function(e){return 180*e/Math.PI},Ast=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},lm=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},CB={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},CF=b.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?CB.spacing:n,A=e.rotation,i=A===void 0?CB.rotation:A,a=e.background,c=a===void 0?CB.background:a,f=e.color,h=f===void 0?CB.color:f,m=e.lineWidth,I=m===void 0?CB.lineWidth:m,v=Math.round(i)%360,k=Math.abs(r);v>180?v-=360:v>90?v-=180:v<-180?v+=360:v<-90&&(v+=180);var D,R=k,F=k;return v===0?D=` - M 0 0 L `+R+` 0 - M 0 `+F+" L "+R+" "+F+` - `:v===90?D=` - M 0 0 L 0 `+F+` - M `+R+" 0 L "+R+" "+F+` - `:(R=Math.abs(k/Math.sin(q0(v))),F=k/Math.sin(q0(90-v)),D=v>0?` - M 0 `+-F+" L "+2*R+" "+F+` - M `+-R+" "+-F+" L "+R+" "+F+` - M `+-R+" 0 L "+R+" "+2*F+` - `:` - M `+-R+" "+F+" L "+R+" "+-F+` - M `+-R+" "+2*F+" L "+2*R+" "+-F+` - M 0 `+2*F+" L "+2*R+` 0 - `),p.jsxs("pattern",{id:t,width:R,height:F,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:R,height:F,fill:c,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),p.jsx("path",{d:D,strokeWidth:I,stroke:h,strokeLinecap:"square"})]})});CF.displayName="PatternLines",CF.propTypes={id:tt.string.isRequired,spacing:tt.number.isRequired,rotation:tt.number.isRequired,background:tt.string.isRequired,color:tt.string.isRequired,lineWidth:tt.number.isRequired};var BB={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},BF=b.memo(function(e){var t=e.id,n=e.color,r=n===void 0?BB.color:n,A=e.background,i=A===void 0?BB.background:A,a=e.size,c=a===void 0?BB.size:a,f=e.padding,h=f===void 0?BB.padding:f,m=e.stagger,I=m===void 0?BB.stagger:m,v=c+h,k=h/2;return I===!0&&(v=2*c+2*h),p.jsxs("pattern",{id:t,width:v,height:v,patternUnits:"userSpaceOnUse",children:[p.jsx("rect",{width:v,height:v,fill:i}),p.jsx("rect",{x:k,y:k,width:c,height:c,fill:r}),I&&p.jsx("rect",{x:1.5*h+c,y:1.5*h+c,width:c,height:c,fill:r})]})});BF.displayName="PatternSquares",BF.propTypes={id:tt.string.isRequired,color:tt.string.isRequired,background:tt.string.isRequired,size:tt.number.isRequired,padding:tt.number.isRequired,stagger:tt.bool.isRequired};var Pse={patternDots:EF,patternLines:CF,patternSquares:BF},sst=["type"],yF=Gc({},Lse,Pse),Use=function(e){var t=e.defs;return!t||t.length<1?null:p.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,A=gF(n,sst);return yF[r]?b.createElement(yF[r],Gc({key:A.id},A)):null})})};Use.propTypes={defs:tt.arrayOf(tt.shape({type:tt.oneOf(Object.keys(yF)).isRequired,id:tt.string.isRequired}))};var ast=b.memo(Use),vF=function(e){var t=e.width,n=e.height,r=e.margin,A=e.defs,i=e.children,a=e.role,c=e.ariaLabel,f=e.ariaLabelledBy,h=e.ariaDescribedBy,m=e.isFocusable,I=ol();return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":c,"aria-labelledby":f,"aria-describedby":h,focusable:m,tabIndex:m?0:void 0,children:[p.jsx(ast,{defs:A}),p.jsx("rect",{width:t,height:n,fill:I.background}),p.jsx("g",{transform:"translate("+r.left+","+r.top+")",children:i})]})};vF.propTypes={width:tt.number.isRequired,height:tt.number.isRequired,margin:tt.shape({top:tt.number.isRequired,left:tt.number.isRequired}).isRequired,defs:tt.array,children:tt.oneOfType([tt.arrayOf(tt.node),tt.node]).isRequired,role:tt.string,isFocusable:tt.bool,ariaLabel:tt.string,ariaLabelledBy:tt.string,ariaDescribedBy:tt.string};var Gse=function(e){var t=e.size,n=e.color,r=e.borderWidth,A=e.borderColor;return p.jsx("circle",{r:t/2,fill:n,stroke:A,strokeWidth:r,style:{pointerEvents:"none"}})};Gse.propTypes={size:tt.number.isRequired,color:tt.string.isRequired,borderWidth:tt.number.isRequired,borderColor:tt.string.isRequired};var lst=b.memo(Gse),Hse=function(e){var t=e.x,n=e.y,r=e.symbol,A=r===void 0?lst:r,i=e.size,a=e.datum,c=e.color,f=e.borderWidth,h=e.borderColor,m=e.label,I=e.labelTextAnchor,v=I===void 0?"middle":I,k=e.labelYOffset,D=k===void 0?-12:k,R=ol(),F=am(),N=F.animate,T=F.config,P=vC({transform:"translate("+t+", "+n+")",config:T,immediate:!N});return p.jsxs(Dc.g,{transform:P.transform,style:{pointerEvents:"none"},children:[b.createElement(A,{size:i,color:c,datum:a,borderWidth:f,borderColor:h}),m&&p.jsx("text",{textAnchor:v,y:D,style:Nse(R.dots.text),children:m})]})};Hse.propTypes={x:tt.number.isRequired,y:tt.number.isRequired,datum:tt.object.isRequired,size:tt.number.isRequired,color:tt.string.isRequired,borderWidth:tt.number.isRequired,borderColor:tt.string.isRequired,symbol:tt.oneOfType([tt.func,tt.object]),label:tt.oneOfType([tt.string,tt.number]),labelTextAnchor:tt.oneOf(["start","middle","end"]),labelYOffset:tt.number},b.memo(Hse);var Yse=function(e){var t=e.width,n=e.height,r=e.axis,A=e.scale,i=e.value,a=e.lineStyle,c=e.textStyle,f=e.legend,h=e.legendNode,m=e.legendPosition,I=m===void 0?"top-right":m,v=e.legendOffsetX,k=v===void 0?14:v,D=e.legendOffsetY,R=D===void 0?14:D,F=e.legendOrientation,N=F===void 0?"horizontal":F,T=ol(),P=0,G=0,Y=0,z=0;if(r==="y"?(Y=A(i),G=t):(P=A(i),z=n),f&&!h){var Z=function(K){var re=K.axis,V=K.width,oe=K.height,Be=K.position,he=K.offsetX,de=K.offsetY,me=K.orientation,Ae=0,Ce=0,ae=me==="vertical"?-90:0,fe="start";if(re==="x")switch(Be){case"top-left":Ae=-he,Ce=de,fe="end";break;case"top":Ce=-de,fe=me==="horizontal"?"middle":"start";break;case"top-right":Ae=he,Ce=de,fe=me==="horizontal"?"start":"end";break;case"right":Ae=he,Ce=oe/2,fe=me==="horizontal"?"start":"middle";break;case"bottom-right":Ae=he,Ce=oe-de,fe="start";break;case"bottom":Ce=oe+de,fe=me==="horizontal"?"middle":"end";break;case"bottom-left":Ce=oe-de,Ae=-he,fe=me==="horizontal"?"end":"start";break;case"left":Ae=-he,Ce=oe/2,fe=me==="horizontal"?"end":"middle"}else switch(Be){case"top-left":Ae=he,Ce=-de,fe="start";break;case"top":Ae=V/2,Ce=-de,fe=me==="horizontal"?"middle":"start";break;case"top-right":Ae=V-he,Ce=-de,fe=me==="horizontal"?"end":"start";break;case"right":Ae=V+he,fe=me==="horizontal"?"start":"middle";break;case"bottom-right":Ae=V-he,Ce=de,fe="end";break;case"bottom":Ae=V/2,Ce=de,fe=me==="horizontal"?"middle":"end";break;case"bottom-left":Ae=he,Ce=de,fe=me==="horizontal"?"start":"end";break;case"left":Ae=-he,fe=me==="horizontal"?"end":"middle"}return{x:Ae,y:Ce,rotation:ae,textAnchor:fe}}({axis:r,width:t,height:n,position:I,offsetX:k,offsetY:R,orientation:N});h=p.jsx("text",{transform:"translate("+Z.x+", "+Z.y+") rotate("+Z.rotation+")",textAnchor:Z.textAnchor,dominantBaseline:"central",style:c,children:f})}return p.jsxs("g",{transform:"translate("+P+", "+Y+")",children:[p.jsx("line",{x1:0,x2:G,y1:0,y2:z,stroke:T.markers.lineColor,strokeWidth:T.markers.lineStrokeWidth,style:a}),h]})};Yse.propTypes={width:tt.number.isRequired,height:tt.number.isRequired,axis:tt.oneOf(["x","y"]).isRequired,scale:tt.func.isRequired,value:tt.oneOfType([tt.number,tt.string,tt.instanceOf(Date)]).isRequired,lineStyle:tt.object,textStyle:tt.object,legend:tt.string,legendPosition:tt.oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:tt.number.isRequired,legendOffsetY:tt.number.isRequired,legendOrientation:tt.oneOf(["horizontal","vertical"]).isRequired};var cst=b.memo(Yse),zse=function(e){var t=e.markers,n=e.width,r=e.height,A=e.xScale,i=e.yScale;return t&&t.length!==0?t.map(function(a,c){return p.jsx(cst,Gc({},a,{width:n,height:r,scale:a.axis==="y"?i:A}),c)}):null};zse.propTypes={width:tt.number.isRequired,height:tt.number.isRequired,xScale:tt.func.isRequired,yScale:tt.func.isRequired,markers:tt.arrayOf(tt.shape({axis:tt.oneOf(["x","y"]).isRequired,value:tt.oneOfType([tt.number,tt.string,tt.instanceOf(Date)]).isRequired,lineStyle:tt.object,textStyle:tt.object}))},b.memo(zse);var ust=function(e){return Goe(e)?e:function(t){return Yl(t,e)}},yB=function(e){return b.useMemo(function(){return ust(e)},[e])},dst=Object.keys(Lse),fst=Object.keys(Pse),gst=function(e,t,n){if(e==="*")return!0;if(Goe(e))return e(t);if(aB(e)){var r=n?Yl(t,n):t;return HAt(rit(r,Object.keys(e)),e)}return!1},hst=function(e,t,n,r){var A={},i=A.dataKey,a=A.colorKey,c=a===void 0?"color":a,f=A.targetKey,h=f===void 0?"fill":f,m=[],I={};return e.length&&t.length&&(m=[].concat(e),t.forEach(function(v){for(var k=function(){var R=n[D],F=R.id,N=R.match;if(gst(N,v,i)){var T=e.find(function(V){return V.id===F});if(T){if(fst.includes(T.type))if(T.background==="inherit"||T.color==="inherit"){var P=Yl(v,c),G=T.background,Y=T.color,z=F;T.background==="inherit"&&(z=z+".bg."+P,G=P),T.color==="inherit"&&(z=z+".fg."+P,Y=P),uB(v,h,"url(#"+z+")"),I[z]||(m.push(Gc({},T,{id:z,background:G,color:Y})),I[z]=1)}else uB(v,h,"url(#"+F+")");else if(dst.includes(T.type))if(T.colors.map(function(V){return V.color}).includes("inherit")){var Z=Yl(v,c),K=F,re=Gc({},T,{colors:T.colors.map(function(V,oe){return V.color!=="inherit"?V:(K=K+"."+oe+"."+Z,Gc({},V,{color:V.color==="inherit"?Z:V.color}))})});re.id=K,uB(v,h,"url(#"+K+")"),I[K]||(m.push(re),I[K]=1)}else uB(v,h,"url(#"+F+")")}return"break"}},D=0;Dp.jsx(p9,{id:e.label,enableChip:!0,color:e.color}),bF={container:{display:"flex",alignItems:"center"},sourceChip:{marginRight:7},targetChip:{marginLeft:7,marginRight:7}},Tst=({link:e})=>p.jsx(p9,{id:p.jsxs("span",{style:bF.container,children:[p.jsx(h9,{color:e.source.color,style:bF.sourceChip}),p.jsx("strong",{children:e.source.label})," > ",p.jsx("strong",{children:e.target.label}),p.jsx(h9,{color:e.target.color,style:bF.targetChip}),p.jsx("strong",{children:e.formattedValue})]})});function Mst(e){return e.target.depth}function Fst(e){return e.depth}function Nst(e,t){return t-1-e.height}function Zse(e,t){return e.sourceLinks.length?e.depth:t-1}function jst(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?aAe(e.sourceLinks,Mst)-1:0}function C_(e){return function(){return e}}var Lt=(e=>(e.IncPackCranked="Crank:inc",e.IncPackRetained="Buffered:inc",e.IncResolvRetained="Unresolved:inc",e.IncQuic="QUIC",e.IncUdp="UDP",e.IncGossip="Gossip",e.IncBlockEngine="Jito",e.SlotStart="Received",e.SlotEnd="Packed",e.End="End",e.Networking="networking:tile",e.QUIC="QUIC:tile",e.Verification="verify:tile",e.Dedup="dedup:tile",e.Resolv="resolv:tile",e.Pack="pack:tile",e.Execle="execle:tile",e.NetOverrun="Too slow:net",e.QUICOverrun="Too slow:quic",e.QUICInvalid="Malformed:quic",e.QUICTooManyFrags="Out of buffers:quic",e.QUICAbandoned="Abandoned:quic",e.VerifyOverrun="Too slow:verify",e.VerifyParse="Unparseable",e.VerifyFailed="Bad signature",e.VerifyDuplicate="Duplicate:verify",e.DedupDeuplicate="Duplicate:dedup",e.ResolvFailed="Bad LUT",e.ResolvExpired="Expired:resolv",e.ResolvNoLedger="No ledger",e.ResolvRetained="Unresolved:resolv",e.PackInvalid="Unpackable",e.PackInvalidBundle="Bad Bundle",e.PackExpired="Expired:pack",e.PackAlreadyExecuted="AlreadyExecuted:pack",e.PackRetained="Buffered:pack",e.PackLeaderSlow="Buffer full",e.PackWaitFull="Storage full",e.BankInvalid="Unexecutable",e.BankNonceAlreadyAdvanced="NonceAlreadyAdvanced",e.BankNonceAdvanceFailed="NonceAdvanceFailed",e.BankNonceWrongBlockhash="NonceWrongBlockhash",e.BlockSuccess="Success",e.BlockFailure="Failure",e.Votes="Votes",e.NonVoteSuccess="Non-vote Success",e.NonVoteFailure="Non-vote Failure",e))(Lt||{});const Ost=["Received","Packed"],Xse=["networking:tile","QUIC:tile","verify:tile","dedup:tile","resolv:tile","pack:tile","execle:tile"],Kse=["Too slow:net","Too slow:quic","Malformed:quic","Out of buffers:quic","Abandoned:quic","Too slow:verify","Unparseable","Bad signature","Duplicate:verify","Duplicate:dedup","Bad LUT","Expired:resolv","No ledger","Unresolved:resolv","Unpackable","Bad Bundle","Expired:pack","AlreadyExecuted:pack","Buffered:pack","Buffer full","Storage full","Unexecutable","NonceAlreadyAdvanced","NonceAdvanceFailed","NonceWrongBlockhash"],Vse=["QUIC","UDP"],QF=["Buffered:inc","Buffered:pack","Unresolved:inc","Unresolved:resolv"],qse=["Success","Non-vote Success"],$se=["Failure","Non-vote Failure"],Lst=[{id:"QUIC"},{id:"UDP"},{id:"Buffered:pack",labelPositionOverride:"right"},{id:"Unresolved:resolv",labelPositionOverride:"right"},{id:"Too slow:net",labelPositionOverride:"right"},{id:"Too slow:quic",labelPositionOverride:"right"},{id:"Malformed:quic",labelPositionOverride:"right"},{id:"Out of buffers:quic",labelPositionOverride:"right"},{id:"Abandoned:quic",labelPositionOverride:"right"},{id:"Too slow:verify",labelPositionOverride:"right"},{id:"Unparseable",labelPositionOverride:"right"},{id:"Bad signature",labelPositionOverride:"right"},{id:"Duplicate:verify",labelPositionOverride:"right"},{id:"Duplicate:dedup",labelPositionOverride:"right"},{id:"Bad LUT",labelPositionOverride:"right"},{id:"Expired:resolv",labelPositionOverride:"right"},{id:"No ledger",labelPositionOverride:"right"},{id:"Unpackable",labelPositionOverride:"right"},{id:"Bad Bundle",labelPositionOverride:"right"},{id:"Expired:pack",labelPositionOverride:"right"},{id:"AlreadyExecuted:pack",labelPositionOverride:"right"},{id:"Buffer full",labelPositionOverride:"right"},{id:"Storage full",labelPositionOverride:"right"},{id:"Unexecutable",labelPositionOverride:"right"},{id:"NonceAlreadyAdvanced",labelPositionOverride:"right"},{id:"NonceAdvanceFailed",labelPositionOverride:"right"},{id:"NonceWrongBlockhash",labelPositionOverride:"right"},{id:"Received",alignLabelBottom:!0,labelPositionOverride:"right"},{id:"QUIC:tile",alignLabelBottom:!0},{id:"verify:tile",alignLabelBottom:!0},{id:"dedup:tile",alignLabelBottom:!0},{id:"resolv:tile",alignLabelBottom:!0},{id:"Gossip"},{id:"Jito"},{id:"Unresolved:inc",labelPositionOverride:"left"},{id:"Crank:inc",labelPositionOverride:"left"},{id:"Buffered:inc",labelPositionOverride:"left"},{id:"pack:tile",alignLabelBottom:!0},{id:"execle:tile",alignLabelBottom:!0},{id:"End",hideLabel:!0},{id:"Packed",alignLabelBottom:!0,labelPositionOverride:"left"},{id:"Failure"},{id:"Success"},{id:"Votes"},{id:"Non-vote Failure"},{id:"Non-vote Success"}],Pst=ns(),Ust=1,eae=-1e3,tae=12,Gst=30,Hst=3e3,Yst=2;function nae(e,t){return B_(e.source,t.source)||e.index-t.index}function rae(e,t){return B_(e.target,t.target)||e.index-t.index}function B_(e,t){return e.y0-t.y0}function oae(e){return e.value}function zst(e){return e.index}function Jst(e){return e.nodes}function Wst(e){return e.links}function iae(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Aae({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const A of t.sourceLinks)A.y0=n+A.width/2,n+=A.width;for(const A of t.targetLinks)A.y1=r+A.width/2,r+=A.width}}function Zst(){let e=0,t=0,n=1,r=1,A=24,i=8,a,c=zst,f=Zse,h,m,I=Jst,v=Wst,k=6;function D(){const Ae={nodes:I.apply(null,arguments),links:v.apply(null,arguments)};return R(Ae),F(Ae),N(Ae),T(Ae),Y(Ae),Aae(Ae),me(Ae),Ae}D.update=function(Ae){return Aae(Ae),Ae},D.nodeId=function(Ae){return arguments.length?(c=typeof Ae=="function"?Ae:C_(Ae),D):c},D.nodeAlign=function(Ae){return arguments.length?(f=typeof Ae=="function"?Ae:C_(Ae),D):f},D.nodeSort=function(Ae){return arguments.length?(h=Ae,D):h},D.nodeWidth=function(Ae){return arguments.length?(A=+Ae,D):A},D.nodePadding=function(Ae){return arguments.length?(i=a=+Ae,D):i},D.nodes=function(Ae){return arguments.length?(I=typeof Ae=="function"?Ae:C_(Ae),D):I},D.links=function(Ae){return arguments.length?(v=typeof Ae=="function"?Ae:C_(Ae),D):v},D.linkSort=function(Ae){return arguments.length?(m=Ae,D):m},D.size=function(Ae){return arguments.length?(e=t=0,n=+Ae[0],r=+Ae[1],D):[n-e,r-t]},D.extent=function(Ae){return arguments.length?(e=+Ae[0][0],n=+Ae[1][0],t=+Ae[0][1],r=+Ae[1][1],D):[[e,t],[n,r]]},D.iterations=function(Ae){return arguments.length?(k=+Ae,D):k};function R({nodes:Ae,links:Ce}){for(const[fe,ye]of Ae.entries())ye.index=fe,ye.sourceLinks=[],ye.targetLinks=[];const ae=new Map(Ae.map((fe,ye)=>[c(fe,ye,Ae),fe]));for(const[fe,ye]of Ce.entries()){ye.index=fe;let{source:Oe,target:Ie}=ye;typeof Oe!="object"&&(Oe=ye.source=iae(ae,Oe)),typeof Ie!="object"&&(Ie=ye.target=iae(ae,Ie)),Oe.sourceLinks.push(ye),Ie.targetLinks.push(ye)}if(m!=null)for(const{sourceLinks:fe,targetLinks:ye}of Ae)fe.sort(m),ye.sort(m)}function F({nodes:Ae}){for(const Ce of Ae)if(Ce.fixedValue===void 0){let ae=-1/0;Ce.sourceLinks.length&&(ae=Math.max(O9(Ce.sourceLinks,oae))),Ce.targetLinks.length&&(ae=Math.max(O9(Ce.targetLinks,oae))),ae===-1/0&&(ae=0),Ce.value=ae}else Ce.value=Ce.fixedValue}function N({nodes:Ae}){const Ce=Ae.length;let ae=new Set(Ae),fe=new Set,ye=0;for(;ae.size;){for(const Oe of ae){Oe.depth=ye;for(const{target:Ie}of Oe.sourceLinks)fe.add(Ie)}if(++ye>Ce)throw new Error("circular link");ae=fe,fe=new Set}}function T({nodes:Ae}){const Ce=Ae.length;let ae=new Set(Ae),fe=new Set,ye=0;for(;ae.size;){for(const Oe of ae){Oe.height=ye;for(const{source:Ie}of Oe.targetLinks)fe.add(Ie)}if(++ye>Ce)throw new Error("circular link");ae=fe,fe=new Set}}function P({nodes:Ae}){const Ce=sAe(Ae,Fe=>Fe.depth)+1;let ae=(n-e-A)/(Ce-1);const fe=ae/Yst,ye=new Array(Ce),Oe=e+fe,Ie=n-fe;ae=(Ie-Oe-A)/(Ce-1-2);for(const Fe of Ae){let qe=f.call(null,Fe,Ce);const Ze=Math.max(0,Math.min(Ce-1,Math.floor(qe)));Fe.layer=Ze,Ze===1?Fe.x0=e+fe:Ze<1?Fe.x0=e+Ze*fe:Ze===Ce-1?Fe.x0=Ie+fe:Fe.x0=Oe+(Ze-1)*ae,Fe.x1=Fe.x0+Ust,ye[Ze]?ye[Ze].push(Fe):ye[Ze]=[Fe]}if(h)for(const Fe of ye)Fe.sort(h);return ye}function G(Ae){const Ce=Pst.get(p1)===rs.Pct,ae=aAe(Ae,fe=>(r-t-(fe.length-1)*a)/O9(fe,ye=>Math.max(ye.value,Ce?1:Hst)));for(let fe=0;feae.length)-1)),G(Ce);for(let ae=0;ae0))continue;let Ze=(Fe/qe-Ie.y0)*Ce+tae;Ie.y0+=Ze,Ie.y1+=Ze,Ie.id===Lt.SlotStart&&(Ie.y0=t+(r-t)/6,Ie.y1=Ie.y0+Ie.height),Ie.id===Lt.SlotEnd&&(Ie.y1=r-(r-t)/6,Ie.y0=Ie.y1-Ie.height),oe(Ie)}h===void 0&&Oe.sort(B_),K(Oe,ae)}}function Z(Ae,Ce,ae){for(let fe=Ae.length,ye=fe-2;ye>=0;--ye){const Oe=Ae[ye];for(const Ie of Oe){let Fe=0,qe=0;for(const{target:Te,value:De}of Ie.sourceLinks){let Se=(De?Math.abs(De):1)*(Te.layer-Ie.layer);Fe+=de(Ie,Te)*Se,qe+=Se}if(!(qe>0))continue;let Ze=(Fe/qe-Ie.y0)*Ce-tae;Ie.y0+=Ze,Ie.y1+=Ze,Ie.id===Lt.SlotStart&&(Ie.y0=t+(r-t)/6,Ie.y1=Ie.y0+Ie.height),Ie.id===Lt.SlotEnd&&(Ie.y1=r-(r-t)/6,Ie.y0=Ie.y1-Ie.height),oe(Ie)}h===void 0&&Oe.sort(B_),K(Oe,ae)}}function K(Ae,Ce){const ae=Ae.length>>1,fe=Ae[ae];V(Ae,fe.y0-a,ae-1,Ce),re(Ae,fe.y1+a,ae+1,Ce),V(Ae,r,Ae.length-1,Ce),re(Ae,t,0,Ce)}function re(Ae,Ce,ae,fe){for(;ae1e-6&&(ye.y0+=Oe,ye.y1+=Oe),Ce=ye.y1+a}}function V(Ae,Ce,ae,fe){for(;ae>=0;--ae){const ye=Ae[ae],Oe=(ye.y1-Ce)*fe;Oe>1e-6&&(ye.y0-=Oe,ye.y1-=Oe),Ce=ye.y0-a}}function oe({sourceLinks:Ae,targetLinks:Ce}){if(m===void 0){for(const{source:{sourceLinks:ae}}of Ce)ae.sort(rae);for(const{target:{targetLinks:ae}}of Ae)ae.sort(nae)}}function Be(Ae){if(m===void 0)for(const{sourceLinks:Ce,targetLinks:ae}of Ae)Ce.sort(rae),ae.sort(nae)}function he(Ae,Ce){let ae=Ae.y0-(Ae.sourceLinks.length-1)*a/2;for(const{target:fe,width:ye}of Ae.sourceLinks){if(fe===Ce)break;ae+=ye+a}for(const{source:fe,width:ye,target:{id:Oe}}of Ce.targetLinks){if(Oe.includes("Dropped")&&(ae-=Gst),fe===Ae)break;ae-=ye}return ae}function de(Ae,Ce){let ae=Ce.y0-(Ce.targetLinks.length-1)*a/2;for(const{source:fe,width:ye}of Ce.targetLinks){if(fe===Ae)break;ae+=ye+a}for(const{target:fe,width:ye}of Ae.sourceLinks){if(fe===Ce)break;ae-=ye}return ae}function me(Ae){const Ce=Ae.nodes.reduce((ae,fe)=>Math.max(ae,fe.y1),0);Ae.nodes.forEach(ae=>{Ost.includes(ae.id)&&(ae.y0=0,ae.y1=Ce,ae.height=Ce)})}return D}const Xst={center:jst,justify:Zse,start:Fst,end:Nst},Kst=e=>Xst[e],qr={layout:"horizontal",align:"center",sort:"auto",colors:{scheme:"nivo"},nodeOpacity:.75,nodeHoverOpacity:1,nodeHoverOthersOpacity:.15,nodeThickness:12,nodeInnerPadding:0,nodeBorderWidth:1,nodeBorderColor:{from:"color",modifiers:[["darker",.5]]},nodeBorderRadius:0,linkOpacity:.25,linkHoverOpacity:.6,linkHoverOthersOpacity:.15,linkContract:0,linkBlendMode:"multiply",enableLinkGradient:!1,enableLabels:!0,label:"id",labelPosition:"inside",labelPadding:9,labelOrientation:"horizontal",labelTextColor:{from:"color",modifiers:[["darker",.8]]},isInteractive:!1,nodeTooltip:Rst,linkTooltip:Tst,legends:[],layers:["links","nodes","labels"],role:"img",animate:!1,motionConfig:"gentle"};function Vst(e,t){for(var n=-1,r=e==null?0:e.length;++ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v_(){return v_=Object.assign?Object.assign.bind():function(e){for(var t=1;t11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var c=Pu(wF[e.scheme][e.size||11]),f=function(I){return c(n(I))};return f.scale=c,f}if(jct(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var h=Pu(wF[e.scheme][e.size||9]),m=function(I){return h(n(I))};return m.scale=h,m}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Hct=function(e,t){return b.useMemo(function(){return Gct(e,t)},[e,t])};const Yct=e=>e.id,zct=({data:e,formatValue:t,layout:n,alignFunction:r,sortFunction:A,linkSortMode:i,nodeThickness:a,nodeSpacing:c,nodeInnerPadding:f,width:h,height:m,getColor:I,getLabel:v})=>{const k=Zst().nodeAlign(r).nodeSort(A).linkSort(i).nodeWidth(a).nodePadding(c).size(n==="horizontal"?[h,m]:[m,h]).nodeId(Yct),D=_ct(e);return k(D),D.nodes.forEach(R=>{if(R.color=I(R),R.label=v(R),R.formattedValue=t(R.value),n==="horizontal")R.x=R.x0+f,R.y=R.y0,R.width=Math.max(R.x1-R.x0-f*2,0),R.height=Math.max(R.y1-R.y0,0);else{R.x=R.y0,R.y=R.x0+f,R.width=Math.max(R.y1-R.y0,0),R.height=Math.max(R.x1-R.x0-f*2,0);const F=R.x0,N=R.x1;R.x0=R.y0,R.x1=R.y1,R.y0=F,R.y1=N}}),D.links.forEach(R=>{R.formattedValue=t(R.value),R.color=R.source.color,R.pos0=R.y0,R.pos1=R.y1,R.thickness=R.width,delete R.y0,delete R.y1,delete R.width}),D},Jct=({data:e,valueFormat:t,layout:n,width:r,height:A,sort:i,align:a,colors:c,nodeThickness:f,nodeSpacing:h,nodeInnerPadding:m,nodeBorderColor:I,label:v,labelTextColor:k})=>{const[D,R]=b.useState(null),[F,N]=b.useState(null),T=b.useMemo(()=>{if(i!=="auto")return i==="input"?null:i==="ascending"?(he,de)=>he.value-de.value:i==="descending"?(he,de)=>de.value-he.value:i},[i]),P=i==="input"?null:void 0,G=b.useMemo(()=>typeof a=="function"?a:Kst(a),[a]),Y=Hct(c,"id"),z=yae(I),Z=yB(v),K=yae(k),re=pF(t),{nodes:V,links:oe}=b.useMemo(()=>zct({data:e,formatValue:re,layout:n,alignFunction:G,sortFunction:T,linkSortMode:P,nodeThickness:f,nodeSpacing:h,nodeInnerPadding:m,width:r,height:A,getColor:Y,getLabel:Z}),[e,re,n,G,T,P,f,h,m,r,A,Y,Z]),Be=b.useMemo(()=>V.map(he=>({id:he.id,label:he.label,color:he.color})),[V]);return{nodes:V,links:oe,legendData:Be,getNodeBorderColor:z,currentNode:D,setCurrentNode:R,currentLink:F,setCurrentLink:N,getLabelTextColor:K}},Wct=({node:e,x:t,y:n,width:r,height:A,color:i,opacity:a,borderWidth:c,borderRadius:f,setCurrent:h,isInteractive:m,onClick:I,tooltip:v})=>p.jsx("rect",{x:t,y:n,width:r,height:A,fill:sq}),Zct=({nodes:e,nodeOpacity:t,nodeHoverOpacity:n,nodeHoverOthersOpacity:r,borderWidth:A,getBorderColor:i,borderRadius:a,setCurrentNode:c,currentNode:f,currentLink:h,isCurrentNode:m,isInteractive:I,onClick:v,tooltip:k})=>p.jsx(p.Fragment,{children:e.map(D=>p.jsx(Wct,{node:D,x:D.x,y:D.y,width:D.width,height:D.height,color:D.color,opacity:1,borderWidth:A,borderColor:i(D),borderRadius:a,setCurrent:c,isInteractive:I,onClick:v,tooltip:k},D.id))}),Xct=()=>{const e=q9().curve(tse);return(t,n)=>{const r=Math.max(1,t.thickness-n*2),A=Math.max(1,r/2),i=(t.target.x0-t.source.x1)*.12,a=[[t.source.x1,t.pos0-A],[t.source.x1+i,t.pos0-A],[t.target.x0-i,t.pos1-A],[t.target.x0,t.pos1-A],[t.target.x0,t.pos1+A],[t.target.x0-i,t.pos1+A],[t.source.x1+i,t.pos0+A],[t.source.x1,t.pos0+A],[t.source.x1,t.pos0-A]];return e(a)+"Z"}},Kct=()=>{const e=q9().curve(nse);return(t,n)=>{const r=Math.max(1,t.thickness-n*2)/2,A=(t.target.y0-t.source.y1)*.12,i=[[t.pos0+r,t.source.y1],[t.pos0+r,t.source.y1+A],[t.pos1+r,t.target.y0-A],[t.pos1+r,t.target.y0],[t.pos1-r,t.target.y0],[t.pos1-r,t.target.y0-A],[t.pos0-r,t.source.y1+A],[t.pos0-r,t.source.y1],[t.pos0+r,t.source.y1]];return e(i)+"Z"}},Vct=({id:e,layout:t})=>{let n;return t==="horizontal"?n={x1:"0%",x2:"100%",y1:"0%",y2:"0%"}:n={x1:"0%",x2:"0%",y1:"0%",y2:"100%"},p.jsxs("linearGradient",{id:e,spreadMethod:"pad",...n,children:[p.jsx("stop",{stopColor:AR}),p.jsx("stop",{offset:"0.24",stopColor:uq}),p.jsx("stop",{offset:"1",stopColor:AR})]})};function vae(e,t){const[n,r]=b.useState(!1),A=b.useRef();return b.useEffect(()=>{[...Vse,Lt.SlotStart].includes(e)||(t?(A.current&&(clearTimeout(A.current),A.current=void 0),r(!0)):A.current||(A.current=setTimeout(()=>{r(!1),A.current=void 0},3e3)))},[e,r,t]),!!t||n}const qct=({link:e,layout:t,path:n,color:r,opacity:A,enableGradient:i,setCurrent:a,tooltip:c,isInteractive:f,onClick:h})=>{const m=`${e.source.id}.${e.target.id}.${e.index}`;let I;return Vse.includes(e.source.id)?I=aq:QF.includes(e.source.id)||QF.includes(e.target.id)?I=cq:qse.includes(e.target.id)?I=Qf:$se.includes(e.target.id)?I=Qu:e.target.id===Lt.Votes?I=L0:Kse.includes(e.target.id)&&(I=lq),vae(e.target.id,e.value)?p.jsxs(p.Fragment,{children:[i&&p.jsx(Vct,{id:m,layout:t,startColor:e.startColor||e.source.color,endColor:e.endColor||e.target.color}),p.jsx("path",{fill:I??(i?`url("#${encodeURI(m)}")`:r),d:n})]}):null},$ct=({links:e,layout:t,linkOpacity:n,linkHoverOpacity:r,linkHoverOthersOpacity:A,linkContract:i,linkBlendMode:a,enableLinkGradient:c,setCurrentLink:f,currentLink:h,currentNode:m,isCurrentLink:I,isInteractive:v,onClick:k,tooltip:D})=>{const R=b.useMemo(()=>t==="horizontal"?Xct():Kct(),[t]);return p.jsx(p.Fragment,{children:e.map(F=>p.jsx(qct,{link:F,layout:t,path:R(F,i),color:F.color,opacity:1,blendMode:a,enableGradient:c,setCurrent:f,isInteractive:v,onClick:k,tooltip:D},`${F.source.id}.${F.target.id}.${F.index}`))})};function eut({children:e,node:t,value:n}){return vae(t,n)?e:null}const tut=ns();function nut(){switch(tut.get(p1)){case rs.Pct:return"%";case rs.Rate:return"/s";case rs.Count:return""}}const rut=({nodes:e,layout:t,width:n,height:r,labelPosition:A,labelPadding:i,labelOrientation:a})=>{const c=a==="vertical"?-90:0,f=e.filter(h=>!h.hideLabel).map(h=>{let m,I,v;return t==="horizontal"?(I=h.y+h.height/2-5,h.alignLabelBottom&&(I=h.y1),Xse.includes(h.id)?(m=h.x0+(h.x1-h.x0)/2,I=I+10,v="middle"):h.labelPositionOverride==="right"?(m=h.x1+i,v=a==="vertical"?"middle":"start"):h.labelPositionOverride==="left"?(m=h.x-i,v=a==="vertical"?"middle":"end"):h.x{var k,D;const[m,I]=out(h.label,h.value),v=(k=h.label.split(":")[0])==null?void 0:k.trim();return p.jsx(eut,{node:h.label,value:h.value,children:p.jsxs("text",{dominantBaseline:"central",textAnchor:h.textAnchor,transform:`translate(${h.x}, ${h.y}) rotate(${c})`,className:"sankey-label",children:[iut(v).map((R,F)=>p.jsx("tspan",{x:"0",dy:F===0?"0em":"1em",style:{fill:m},children:R},R)),p.jsxs("tspan",{x:"0",dy:"1em",style:{fill:I},children:[(D=h.value)==null?void 0:D.toLocaleString(),nut()]})]},h.id)},h.id)})})};function out(e,t){return t?QF.includes(e)?[wf,wf]:qse.includes(e)?[wf,Qf]:Xse.includes(e)?[d1,d1]:Kse.includes(e)||$se.includes(e)?[wf,Qu]:e===Lt.Votes?[wf,L0]:[wf,wf]:[d1,d1]}function iut(e){if(e.length<17||!e.includes(" "))return[e];const t=Math.trunc(e.length/2),n=e.lastIndexOf(" ",t),r=e.indexOf(" ",t+1),A=t-n{const{margin:qe,innerWidth:Ze,innerHeight:Te,outerWidth:De,outerHeight:Se}=Tse(i,a,c),{nodes:Qe,links:Ye,legendData:At,getNodeBorderColor:Je,currentNode:Nt,setCurrentNode:jt,currentLink:bt,setCurrentLink:wt,getLabelTextColor:se}=Jct({data:e,valueFormat:t,layout:n,width:Ze,height:Te,sort:r,align:A,colors:f,nodeThickness:h,nodeSpacing:m,nodeInnerPadding:I,nodeBorderColor:v,label:Be,labelTextColor:he});let $t=()=>!1,Sn=()=>!1;if(bt&&($t=({id:ln})=>ln===bt.source.id||ln===bt.target.id,Sn=({source:ln,target:Dt})=>ln.id===bt.source.id&&Dt.id===bt.target.id),Nt){let ln=[Nt.id];Ye.filter(({source:Dt,target:Gt})=>Dt.id===Nt.id||Gt.id===Nt.id).forEach(({source:Dt,target:Gt})=>{ln.push(Dt.id),ln.push(Gt.id)}),ln=cKe(ln),$t=({id:Dt})=>ln.includes(Dt),Sn=({source:Dt,target:Gt})=>Dt.id===Nt.id||Gt.id===Nt.id}const fn={links:Ye,nodes:Qe,margin:qe,width:i,height:a,outerWidth:De,outerHeight:Se},ue={links:null,nodes:null,labels:null,legends:null};return fe.includes("links")&&(ue.links=p.jsx($ct,{links:Ye,layout:n,linkContract:Y,linkOpacity:T,linkHoverOpacity:P,linkHoverOthersOpacity:G,linkBlendMode:z,enableLinkGradient:Z,setCurrentLink:wt,currentNode:Nt,currentLink:bt,isCurrentLink:Sn,isInteractive:Ae,onClick:Ce,tooltip:me},"links")),fe.includes("nodes")&&(ue.nodes=p.jsx(Zct,{nodes:Qe,nodeOpacity:k,nodeHoverOpacity:D,nodeHoverOthersOpacity:R,borderWidth:F,borderRadius:N,getBorderColor:Je,setCurrentNode:jt,currentNode:Nt,currentLink:bt,isCurrentNode:$t,isInteractive:Ae,onClick:Ce,tooltip:de},"nodes")),fe.includes("labels")&&K&&(ue.labels=p.jsx(rut,{nodes:Qe,layout:n,width:Ze,height:Te,labelPosition:re,labelPadding:V,labelOrientation:oe,getLabelTextColor:se},"labels")),fe.includes("legends")&&(ue.legends=p.jsx(b.Fragment,{children:ae.map((ln,Dt)=>p.jsx(Wse,{...ln,containerWidth:Ze,containerHeight:Te,data:At},`legend${Dt}`))},"legends")),p.jsx(vF,{width:De,height:Se,margin:qe,role:ye,ariaLabel:Oe,ariaLabelledBy:Ie,ariaDescribedBy:Fe,children:fe.map((ln,Dt)=>typeof ln=="function"?p.jsx(b.Fragment,{children:b.createElement(ln,fn)},Dt):(ue==null?void 0:ue[ln])??null)})},sut=({isInteractive:e=qr.isInteractive,animate:t=qr.animate,motionConfig:n=qr.motionConfig,theme:r,renderWrapper:A,...i})=>p.jsx(mF,{animate:t,isInteractive:e,motionConfig:n,renderWrapper:A,theme:r,children:p.jsx(Aut,{isInteractive:e,...i})});function bae({displayType:e,durationNanos:t,totalIncoming:n}){return function(r){switch(e){case rs.Count:return r;case rs.Pct:{let A=Math.max(0,Math.round(r/n*1e4)/100);return!A&&r&&(A=.01),A}case rs.Rate:{if(!t)return r;const A=t/1e9;return Math.trunc(r/A)}}}}function aut(e){return e.net_overrun}function lut(e){return e.quic_overrun+e.quic_frag_drop+e.quic_abandoned+e.tpu_quic_invalid+e.tpu_udp_invalid}function cut(e){return e.verify_overrun+e.verify_parse+e.verify_failed+e.verify_duplicate}function uut(e){return e.dedup_duplicate}function dut(e,t){return e.resolv_expired+e.resolv_lut_failed+e.resolv_no_ledger+e.resolv_ancient+t}function fut(e){return e.pack_invalid+e.pack_already_executed+e.pack_invalid_bundle+e.pack_expired+e.pack_leader_slow+e.pack_retained+e.pack_wait_full}function Qae(e,t){const n=Math.min(e.in.resolv_retained,e.out.resolv_retained),r=e.in.resolv_retained-n,A=e.out.resolv_retained-n,i=e.in.quic+e.in.udp-aut(e.out),a=i-lut(e.out),c=e.in.block_engine+e.in.gossip+a-cut(e.out),f=c-uut(e.out),h=r+f-dut(e.out,A),m=e.in.pack_retained+e.in.pack_cranked+h-fut(e.out),I=m-e.out.bank_invalid-e.out.bank_nonce_already_advanced-e.out.bank_nonce_advance_failed-e.out.bank_nonce_wrong_blockhash;return[{source:Lt.IncQuic,target:Lt.SlotStart,value:t(e.in.quic)},{source:Lt.IncUdp,target:Lt.SlotStart,value:t(e.in.udp)},{source:Lt.SlotStart,target:Lt.NetOverrun,value:t(e.out.net_overrun)},{source:Lt.SlotStart,target:Lt.QUIC,value:t(i)},{source:Lt.QUIC,target:Lt.QUICOverrun,value:t(e.out.quic_overrun)},{source:Lt.QUIC,target:Lt.QUICInvalid,value:t(e.out.tpu_quic_invalid+e.out.tpu_udp_invalid)},{source:Lt.QUIC,target:Lt.QUICTooManyFrags,value:t(e.out.quic_frag_drop)},{source:Lt.QUIC,target:Lt.QUICAbandoned,value:t(e.out.quic_abandoned)},{source:Lt.QUIC,target:Lt.Verification,value:t(a)},{source:Lt.IncGossip,target:Lt.Verification,value:t(e.in.gossip)},{source:Lt.IncBlockEngine,target:Lt.Verification,value:t(e.in.block_engine)},{source:Lt.Verification,target:Lt.VerifyOverrun,value:t(e.out.verify_overrun)},{source:Lt.Verification,target:Lt.VerifyParse,value:t(e.out.verify_parse)},{source:Lt.Verification,target:Lt.VerifyFailed,value:t(e.out.verify_failed)},{source:Lt.Verification,target:Lt.VerifyDuplicate,value:t(e.out.verify_duplicate)},{source:Lt.Verification,target:Lt.Dedup,value:t(c)},{source:Lt.Dedup,target:Lt.DedupDeuplicate,value:t(e.out.dedup_duplicate)},{source:Lt.Dedup,target:Lt.Resolv,value:t(f)},{source:Lt.IncResolvRetained,target:Lt.Resolv,value:t(r)},{source:Lt.Resolv,target:Lt.ResolvRetained,value:t(A)},{source:Lt.Resolv,target:Lt.ResolvFailed,value:t(e.out.resolv_lut_failed)},{source:Lt.Resolv,target:Lt.ResolvExpired,value:t(e.out.resolv_expired+e.out.resolv_ancient)},{source:Lt.Resolv,target:Lt.ResolvNoLedger,value:t(e.out.resolv_no_ledger)},{source:Lt.Resolv,target:Lt.Pack,value:t(h)},{source:Lt.IncPackCranked,target:Lt.Pack,value:t(e.in.pack_cranked)},{source:Lt.IncPackRetained,target:Lt.Pack,value:t(e.in.pack_retained)},{source:Lt.Pack,target:Lt.PackRetained,value:t(e.out.pack_retained)},{source:Lt.Pack,target:Lt.PackInvalid,value:t(e.out.pack_invalid)},{source:Lt.Pack,target:Lt.PackInvalidBundle,value:t(e.out.pack_invalid_bundle)},{source:Lt.Pack,target:Lt.PackExpired,value:t(e.out.pack_expired)},{source:Lt.Pack,target:Lt.PackAlreadyExecuted,value:t(e.out.pack_already_executed)},{source:Lt.Pack,target:Lt.PackLeaderSlow,value:t(e.out.pack_leader_slow)},{source:Lt.Pack,target:Lt.PackWaitFull,value:t(e.out.pack_wait_full)},{source:Lt.Pack,target:Lt.Execle,value:t(m)},{source:Lt.Execle,target:Lt.BankInvalid,value:t(e.out.bank_invalid)},{source:Lt.Execle,target:Lt.BankNonceAlreadyAdvanced,value:t(e.out.bank_nonce_already_advanced)},{source:Lt.Execle,target:Lt.BankNonceAdvanceFailed,value:t(e.out.bank_nonce_advance_failed)},{source:Lt.Execle,target:Lt.BankNonceWrongBlockhash,value:t(e.out.bank_nonce_wrong_blockhash)},{source:Lt.Execle,target:Lt.End,value:t(I)},{source:Lt.End,target:Lt.SlotEnd,value:t(I)}]}function gut(e,t){const n=hn.sum(Object.values(e.in)),r=bae({displayType:t,durationNanos:void 0,totalIncoming:n});return[...Qae(e,r),{source:Lt.SlotEnd,target:Lt.BlockFailure,value:r(e.out.block_fail)},{source:Lt.SlotEnd,target:Lt.BlockSuccess,value:r(e.out.block_success)}]}function hut(e,t,n,r,A,i,a){const c=hn.sum(Object.values(e.in)),f=bae({displayType:t,durationNanos:n,totalIncoming:c}),h=(r??0)+(A??0);return[...Qae(e,f),{source:Lt.SlotEnd,target:Lt.Votes,value:f(h)},{source:Lt.SlotEnd,target:Lt.NonVoteFailure,value:f(a??0)},{source:Lt.SlotEnd,target:Lt.NonVoteSuccess,value:f(i??0)}]}function put(){const e=we(Kr);return p.jsx(mut,{slot:e},e)}function mut({slot:e}){var i,a,c,f,h,m;const t=we(p1),n=we(MMe),r=Du(e),A=b.useMemo(()=>{var D,R,F,N,T,P;const I=n??((D=r.response)==null?void 0:D.waterfall);if(!I)return;const v=n?gut(I,t):hut(I,t,(R=r.response)==null?void 0:R.publish.duration_nanos,(F=r.response)==null?void 0:F.publish.success_vote_transaction_cnt,(N=r.response)==null?void 0:N.publish.failed_vote_transaction_cnt,(T=r.response)==null?void 0:T.publish.success_nonvote_transaction_cnt,(P=r.response)==null?void 0:P.publish.failed_nonvote_transaction_cnt),k=v.flatMap(G=>[G.source,G.target]);return{nodes:Lst.filter(G=>k.includes(G.id)),links:v}},[t,n,(i=r.response)==null?void 0:i.publish.duration_nanos,(a=r.response)==null?void 0:a.publish.failed_nonvote_transaction_cnt,(c=r.response)==null?void 0:c.publish.failed_vote_transaction_cnt,(f=r.response)==null?void 0:f.publish.success_nonvote_transaction_cnt,(h=r.response)==null?void 0:h.publish.success_vote_transaction_cnt,(m=r.response)==null?void 0:m.waterfall]);return!A||!A.links.length?r.hasWaitedForData?p.jsx(xe,{justify:"center",align:"center",height:"100%",children:p.jsx(be,{children:"No waterfall avaliable for this slot"})}):p.jsx(xe,{justify:"center",align:"center",height:"100%",children:p.jsx(Vb,{style:{height:50,width:50}})}):p.jsx(rl,{children:({height:I,width:v})=>{const k=v<600;if(k){const D=I;I=v,v=D}return p.jsx(sut,{height:I,width:v,data:A,margin:{top:10,right:n?100:k?145:130,bottom:35,left:85},align:"center",isInteractive:!1,nodeThickness:0,nodeSpacing:Eut(I),nodeBorderWidth:0,sort:"input",nodeBorderRadius:0,linkOpacity:1,enableLinkGradient:!0,labelPosition:"outside",labelPadding:16,animate:!1,nodeTooltip:wae,linkTooltip:wae})}})}function wae(){return null}function Eut(e){return e<275?32:e<300?36:e<325?40:e<350?48:52}const Iut="_container_k3j09_1",Cut={container:Iut};function But(){const[e,t]=b.useState(!1),n=we(Qw),r=e&&!n,{tileCounts:A,groupedLiveIdlePerTile:i,showLive:a,queryIdleData:c}=CM(),f=A.net?"net":"sock";return p.jsxs("div",{className:Cut.container,children:[p.jsx(ma,{header:f,subHeader:"(in)",tileCount:A[f],liveIdlePerTile:i==null?void 0:i[f],queryIdlePerTile:a||c==null?void 0:c[f],statLabel:"Ingress",metricType:"net_in",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"QUIC",tileCount:A.quic,liveIdlePerTile:i==null?void 0:i.quic,queryIdlePerTile:a||c==null?void 0:c.quic,statLabel:"Conns",metricType:"quic",isExpanded:r,setIsExpanded:t}),"bundle"in A&&p.jsx(ma,{header:"bundle",tileCount:A.bundle,liveIdlePerTile:i==null?void 0:i.bundle,queryIdlePerTile:a||c==null?void 0:c.bundle,...a?{statLabel:"RTT",metricType:"bundle_rtt_smoothed_millis"}:{statLabel:"Lat p90",metricType:"bundle_rx_delay_millis_p90"},isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"verify",tileCount:A.verify,liveIdlePerTile:i==null?void 0:i.verify,queryIdlePerTile:a||c==null?void 0:c.verify,statLabel:"Failed",metricType:"verify",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"dedup",tileCount:A.dedup,liveIdlePerTile:i==null?void 0:i.dedup,queryIdlePerTile:a||c==null?void 0:c.dedup,statLabel:"Dupes",metricType:"dedup",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"resolv",tileCount:A.resolv,liveIdlePerTile:i==null?void 0:i.resolv,queryIdlePerTile:a||c==null?void 0:c.resolv,statLabel:"Resolv",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"pack",tileCount:A.pack,liveIdlePerTile:i==null?void 0:i.pack,queryIdlePerTile:a||c==null?void 0:c.pack,statLabel:"Full",metricType:"pack",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"execle",tileCount:A.execle,liveIdlePerTile:i==null?void 0:i.execle,queryIdlePerTile:a||c==null?void 0:c.execle,statLabel:"TPS",metricType:"bank",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"poh",tileCount:A.poh,liveIdlePerTile:i==null?void 0:i.poh,queryIdlePerTile:a||c==null?void 0:c.poh,statLabel:"Hash",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:"shred",tileCount:A.shred,liveIdlePerTile:i==null?void 0:i.shred,queryIdlePerTile:a||c==null?void 0:c.shred,statLabel:"Shreds",isExpanded:r,setIsExpanded:t}),p.jsx(ma,{header:f,subHeader:"(out)",tileCount:A[f],liveIdlePerTile:i==null?void 0:i[f],queryIdlePerTile:a||c==null?void 0:c[f],statLabel:"Egress",metricType:"net_out",isExpanded:r,setIsExpanded:t})]})}const yut="_container_k6h1w_1",vut="_toggle-group_k6h1w_46",but="_toggle-group-item_k6h1w_53",vB={container:yut,toggleGroup:vut,toggleGroupItem:but};function Qut(){const[e,t]=Cc(p1);return p.jsx("div",{className:vB.container,children:p.jsxs(JS,{className:vB.toggleGroup,type:"single","aria-label":"Dropped Type",value:e,children:[p.jsx(Sp,{className:vB.toggleGroupItem,value:rs.Count,"aria-label":rs.Count,onClick:()=>t(rs.Count),children:"Count"}),p.jsx(Sp,{className:vB.toggleGroupItem,value:rs.Pct,"aria-label":rs.Pct,onClick:()=>t(rs.Pct),children:"Pct %"}),p.jsx(Sp,{className:vB.toggleGroupItem,value:rs.Rate,"aria-label":rs.Rate,onClick:()=>t(rs.Rate),children:"Rate"})]})})}const wut="_slot-performance-container_6u4bp_1",xut="_sankey-container_6u4bp_5",_ut="_slot-sankey-container_6u4bp_11",xF={slotPerformanceContainer:wut,sankeyContainer:xut,slotSankeyContainer:_ut};function xae(){return p.jsx(Cs,{children:p.jsxs(xe,{direction:"column",gap:"1",className:xF.slotPerformanceContainer,children:[p.jsx(xe,{gap:"3",children:p.jsx(Jf,{text:"TPU Waterfall"})}),p.jsx(kut,{}),p.jsx(But,{})]})})}function kut(){return p.jsxs("div",{className:xF.sankeyContainer,children:[p.jsx(Qut,{}),p.jsx("div",{className:xF.slotSankeyContainer,children:p.jsx(put,{})})]})}const Sut="_chart_102uq_43",Dut={chart:Sut},Rut="_chart_1kfdz_1",_ae={chart:Rut};function _F(){return{hooks:{init:[e=>{const t=e.root.querySelectorAll(".u-axis")[0];t&&t.addEventListener("mousedown",n=>{const r=n.clientX,A=e.axes[0].scale;if(A===void 0)return;const i=e.scales[A],{min:a,max:c}=i,f=((c??0)-(a??0))/(e.bbox.width/Vr.pxRatio),h=I=>{const v=(I.clientX-r)*f;if(!e.data[0].length)return;const k=e.data[0][0]??0,D=e.data[0][e.data[0].length-1]??0;e.setScale(A,{min:Math.max(k,I.shiftKey?(a??0)-v:(a??0)+v),max:Math.min(D,(c??0)+v)})},m=()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mousemove",m)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",m)})}]}}}const kae="banks",Zf="lamports",Xf="computeUnits",fr="banksXScale",Sae=Ke(),Dae=Ke(0),Rae=Ke(0),Tae=Ke(!0),Mae=Ke(void 0),Fae=Ke(e=>{const t=e(Mae);return t===void 0?e(SQ)===j0.balanced:t},(e,t,n)=>{t(Mae,n)}),Tut=ns(),kF=1/9,SF=[{color:"42 126 223"},{color:"30 156 80"},{color:"30 156 80",opacity:.05},{color:"174 85 17",opacity:.05},{color:"244 5 5",opacity:.05},{color:"244 5 5",opacity:.1}],DF=e=>SF[e]??SF[SF.length-1];function Nae({computeUnits:e,bankCount:t,tEnd:n,maxComputeUnits:r}){return Math.round((e-r)/t/kF+n)}function Mut(e,t,n){const r=[];function A(i,a,c,f){const h=(i.x-a.x)*(c.y-f.y)-(i.y-a.y)*(c.x-f.x);if(h===0)return;const m=((i.x-c.x)*(c.y-f.y)-(i.y-c.y)*(c.x-f.x))/h,I=((i.x-c.x)*(i.y-a.y)-(i.y-c.y)*(i.x-a.x))/h;if(!(m<0||m>1||I<0||I>1))return{x:i.x+m*(a.x-i.x),y:i.y+m*(a.y-i.y)}}for(const i of e){const a=A(t,n,i[0],i[1]);a&&r.push(a)}if(r.length)return r.length!==2&&console.debug(r),r.sort((i,a)=>i.x-a.x)}function Fut(e,t,n,r,A){const i=Number(n.target_end_timestamp_nanos-n.start_timestamp_nanos),a=e.min??0,c=e.max??i,f=t.max??r,h=t.min??0,m=[[{x:a,y:f},{x:c,y:f}],[{x:a,y:f},{x:a,y:h}],[{x:a,y:h},{x:c,y:h}],[{x:c,y:f},{x:c,y:h}]],I=[];for(let v=1;v<=A;v++){const k=Nae({computeUnits:0,tEnd:i,maxComputeUnits:r,bankCount:v}),D=Nae({computeUnits:r,tEnd:i,maxComputeUnits:r,bankCount:v}),R=Mut(m,{x:k,y:0},{x:D,y:r});R&&I.push({line:R,bankCount:v})}return I}function jae(e){return[{x:e.left,y:e.top+e.height},{x:e.left+e.width,y:e.top+e.height},{x:e.left+e.width,y:e.top},{x:e.left,y:e.top}]}function zl(e,t){return Math.abs(e-t)<2}function Nut(e,t,n){const r=jae(e),A=[...t,...n];for(const a of r)((a.x>=t[0].x||zl(a.x,t[0].x))&&(a.x<=n[0].x||zl(a.x,n[0].x))&&(a.y>=t[0].y||zl(a.y,t[0].y))&&(a.y<=n[0].y||zl(a.y,n[0].y))||(a.x>=t[1].x||zl(a.x,t[1].x))&&(a.x<=n[1].x||zl(a.x,n[1].x))&&(a.y>=t[1].y||zl(a.y,t[1].y))&&(a.y<=n[1].y||zl(a.y,n[1].y)))&&A.push(a);const i={x:A.reduce((a,c)=>a+c.x,0)/A.length,y:A.reduce((a,c)=>a+c.y,0)/A.length};return A.sort((a,c)=>{const f=Math.atan2(a.y-i.y,a.x-i.x),h=Math.atan2(c.y-i.y,c.x-i.x);return f-h}),A}function jut(e,t,n,r,A){if(!A.opacity)return;const i=Nut(t,n,r);if(i.length>1){e.beginPath(),e.moveTo(i[0].x,i[0].y);for(let a=1;a{window.addEventListener("dppxchange",RF)},destroy:()=>{window.removeEventListener("dppxchange",RF)},drawSeries:[(r,A)=>{if(r.series[A].label!=="Active Bank")return;const i=e.current,a=t.current,c=n.current;if(i===null||a===null||c===null)return;const f=r.ctx;f.save();const h=!Tut.get(Fae),m=Number(i.target_end_timestamp_nanos-i.start_timestamp_nanos),I=Math.trunc(a+.05*m*kF),v=h?[]:Fut(r.scales[fr],r.scales[Xf],i,I,c);v.unshift({line:[{x:r.scales[fr].min??0,y:a},{x:r.scales[fr].max??45e7,y:a}],bankCount:0});const k=[];RF(),f.font=Oae;const D={x:-100,y:30};for(let R=0;RVr.pxRatio*50||zl(T,r.bbox.left)&&Math.abs(P-D.y)>Vr.pxRatio*20){f.save();const Z=Math.atan2(Y-P,G-T);f.translate(T,P),f.rotate(Z),f.fillStyle=f.strokeStyle;const K=`${N-1} Bank${N===2?"":"s"} Active`;f.measureText(K).width<=r.bbox.left+r.bbox.width-T&&f.fillText(K,4*Vr.pxRatio,-8*Vr.pxRatio),f.restore()}D.x=T,D.y=P}}if(k.length>0){k.unshift({line:[{x:r.bbox.left,y:zl(k[0].line[0].x,r.bbox.left)?k[0].line[0].y:r.bbox.top+r.bbox.height},{x:r.bbox.left,y:r.bbox.top}],bankCount:k[0].bankCount-1}),k.push({line:[{x:r.bbox.left+r.bbox.width,y:r.bbox.top+r.bbox.height},{x:r.bbox.left+r.bbox.width,y:zl(k[k.length-1].line[1].x,r.bbox.left+r.bbox.width)?k[k.length-1].line[1].y:r.bbox.top}],bankCount:k[k.length-1].bankCount+1});for(let R=1;RP||A===m.after&&n[m.offsetSize]>G)&&(A=P>G?m.before:m.after);var Y=A===m.before?P:G,z=parseInt(h[m.maxSize]);(!z||Y{const n=document.getElementById(Lae);n&&(bB=n)},drawSeries:[(t,n)=>{if(t.series[n].label!=="Active Bank"||(bB.style.display="none",e!==j0.revenue))return;const r=t.scales[fr],A=Math.round(t.valToPos(b_,fr,!0));if(r.min!==void 0&&b_r.max)return;const i=t.ctx;if(i.save(),i.beginPath(),i.strokeStyle=dq,i.lineWidth=3,i.setLineDash([5,5]),i.moveTo(A,t.bbox.top),i.lineTo(A,t.bbox.top+t.bbox.height),i.stroke(),i.restore(),bB){const a={left:Math.round(t.valToPos(b_,fr,!1))+t.over.offsetLeft-TF/2,top:t.over.offsetTop-TF};Pae(bB,a,"center","bottom"),bB.style.display="block"}}]}}}let QB=!1;function Uae(){return document.getElementById("scroll-container")??document.body}function MF({elId:e,showOnCursor:t,showPointer:n,closeTooltipElId:r}){let A,i,a,c,f=!1;function h(){const N=A.getBoundingClientRect();a=N.left,c=N.top}function m(){QB=!0,F.style.pointerEvents="auto",D(),setTimeout(()=>{var N;document.addEventListener("click",R),r&&((N=document.getElementById(r))==null||N.addEventListener("click",I))},0)}function I(){var N;QB=!1,F.style.pointerEvents="none",F.style.display="none",document.removeEventListener("click",R),r&&((N=document.getElementById(r))==null||N.removeEventListener("click",I))}const v=hn.throttle(I,100,{leading:!0,trailing:!0});function k(){n&&(document.body.style.cursor="pointer",document.body.addEventListener("click",m))}function D(){n&&(document.body.style.cursor="unset",document.body.removeEventListener("click",m))}function R(N){const T=document.getElementById(e);N.target&&(T!=null&&T.contains(N.target))||(I(),D())}let F;return{hooks:{init:N=>{const T=document.getElementById(e);T?F=T:(F=document.createElement("div"),F.id=e,document.body.appendChild(F)),F&&(F.style.display="none",F.style.pointerEvents="none",A=N.over,i=document.body,A.onmouseenter=()=>{f=!0},A.onmouseleave=()=>{f=!1,!QB&&(F.style.display="none",D(),QB=!1)},Uae().addEventListener("scroll",v))},destroy:()=>{A.onmouseenter=null,A.onmouseleave=null,D(),I(),Uae().removeEventListener("scroll",v)},setSize:()=>{h()},syncRect:()=>{h()},setCursor:N=>{if(!f||QB)return;const{idx:T,left:P,top:G}=N.cursor;if(P===void 0||G===void 0||T==null)return;const Y=N.posToVal(P??0,N.series[0].scale??"x"),z={left:P+a+5,top:G+c};t(N,Y,T)?(F.style.display="block",F.style.pointerEvents="none",k(),Pae(F,z,"right","start",{bound:i})):(F.style.display="none",D())},setScale:()=>{D(),I()}}}}function zut(e){function t(n,r,A){const i=r>=n.data[0][A]?A:A-1;return e({elapsedTime:r,activeBanks:n.data[1][i],computeUnits:n.data[2][i],fees:n.data[3][i],tips:n.data[4][i]}),!0}return MF({elId:"cu-chart-tooltip",showOnCursor:t})}function FF(e){const t=e.factor||.75,n=.1;let r,A,i,a,c,f,h;return{hooks:{ready(m){var R;const I=m.series[0].scale??"x",v=((R=m.series.find((F,N)=>N>0&&F.show!==!1))==null?void 0:R.scale)??"y";r=m.scales[I].min??0,A=m.scales[I].max??0,i=m.scales[v].min??0,a=m.scales[v].max??0,c=A-r,f=a-i;const k=m.over;let D=k.getBoundingClientRect();h=new ResizeObserver(()=>{D=k.getBoundingClientRect()}),h.observe(k),k.addEventListener("wheel",F=>{if(F.ctrlKey||F.metaKey||F.shiftKey){if(F.preventDefault(),F.ctrlKey||F.metaKey){let{left:N,top:T}=m.cursor;N??(N=0),T??(T=0);const P=N/D.width,G=1-T/D.height,Y=m.posToVal(N,fr),z=m.posToVal(T,"y"),Z=(m.scales[I].max??0)-(m.scales[I].min??0),K=(m.scales[v].max??0)-(m.scales[v].min??0),re=F.deltaY<0?Z*t:Z/t;let V=Y-P*re,oe=V+re;[V,oe]=m4(re,V,oe,c,r??0,A??0);const Be=F.deltaY<0?K*t:K/t;let he=z-G*Be,de=he+Be;[he,de]=m4(Be,he,de,f,i??0,a??0),requestAnimationFrame(()=>m.batch(()=>{m.setScale(fr,{min:V,max:oe})}))}else if(F.shiftKey){const N=(m.scales[I].max??0)-(m.scales[I].min??0);let T=N*n;F.deltaY>=0&&(T*=-1);const[P,G]=m4(N,(m.scales[I].min??0)+T,(m.scales[I].max??0)+T,N,r??0,A??0);requestAnimationFrame(()=>m.setScale(fr,{min:P,max:G}))}}})},destroy(m){h==null||h.disconnect()}}}}const Jut=ns();let NF=!1;function Gae(){return{hooks:{setScale:(e,t)=>{const n=e.series[0].scale??"x";if(NF||t!==n)return;const r=e.scales[n];NF=!0;let A=r.min??0,i=r.max??0;if(i-A<100){const a=Math.trunc((i+A)/2);A=a-50,i=a+50}Jut.set(E4,a=>{n===(a.series[0].scale??"x")&&a.setScale(n,{min:A,max:i})}),NF=!1}}}}var ni=(e=>(e.DEFAULT="All",e.PRELOADING="Pre-Loading",e.VALIDATE="Validate",e.LOADING="Loading",e.EXECUTE="Execute",e.POST_EXECUTE="Post-Execute",e))(ni||{});const Wut={All:cR,"Pre-Loading":hq,Validate:uR,Loading:mq,Execute:Iq,"Post-Execute":Bq},Hc={All:cR,"Pre-Loading":pq,Validate:uR,Loading:Eq,Execute:Cq,"Post-Execute":yq};var tA=(e=>(e[e.ERROR=0]="ERROR",e[e.MICROBLOCK=1]="MICROBLOCK",e[e.BUNDLE=2]="BUNDLE",e[e.LANDED=3]="LANDED",e[e.SIMPLE=4]="SIMPLE",e[e.FEES=5]="FEES",e[e.TIPS=6]="TIPS",e[e.CUS_CONSUMED=7]="CUS_CONSUMED",e[e.CUS_REQUESTED=8]="CUS_REQUESTED",e[e.INCOME_CUS=9]="INCOME_CUS",e))(tA||{});const Hae="bank-",wB=2e6;function Q_(e){if(!e)return 0;const t=e.txn_mb_end_timestamps_nanos.map(n=>Number(n-e.start_timestamp_nanos));return t.push(Number(e.target_end_timestamp_nanos-e.start_timestamp_nanos)),(hn.max(t)??0)+wB}function jF(e,t,n,r){if(t<0)return{preLoading:0n,validating:0n,loading:0n,execute:0n,postExecute:0n};let A=e.txn_mb_start_timestamps_nanos[t],i=e.txn_mb_end_timestamps_nanos[t];if(e.txn_from_bundle[t]&&(n!=null&&n.length)){const I=n.indexOf(t)??-1;n[I-1]>0&&(A=e.txn_preload_end_timestamps_nanos[t]);const v=I!==-1?n[I+1]:-1;v>0&&(i=e.txn_preload_end_timestamps_nanos[v])}const a=e.txn_preload_end_timestamps_nanos[t]-A,c=e.txn_start_timestamps_nanos[t]-e.txn_preload_end_timestamps_nanos[t],f=e.txn_load_end_timestamps_nanos[t]-e.txn_start_timestamps_nanos[t];let h,m;if(r===Ci.Frankendancer||!e.txn_from_bundle[t]||!(n!=null&&n.length))h=e.txn_end_timestamps_nanos[t]-e.txn_load_end_timestamps_nanos[t],m=i-e.txn_end_timestamps_nanos[t];else{const I=n.indexOf(t)??-1,v=I!==-1?n[I+1]:-1;v>0?(h=e.txn_preload_end_timestamps_nanos[v]-e.txn_load_end_timestamps_nanos[t],m=e.txn_end_timestamps_nanos[v]-e.txn_end_timestamps_nanos[t]):(h=e.txn_end_timestamps_nanos[t]-e.txn_load_end_timestamps_nanos[t],m=i-e.txn_end_timestamps_nanos[t])}return{preLoading:a,validating:c,loading:f,execute:h,postExecute:m}}function w_(e,t){const n=e.txn_microblock_id[t],r=[];for(let A=0;ANumber(a-t.start_timestamp_nanos);if(e0){if(e{const m=h.series[0].scale??"x";r=h.scales[m].min??0,A=h.scales[m].max??0,n=A-r;function I(){const k=a.dx/c.dx,D=c.x/e.width,R=t*k;let F=i-D*R,N=F+R;[F,N]=m4(R,F,N,n,r,A),h.batch(()=>{h.setScale(m,{min:F,max:N})}),f=!1}function v(k){zae(k,c,e),f||(f=!0,requestAnimationFrame(I))}h.over.addEventListener("touchstart",function(k){h.scales[m].max===void 0||h.scales[m].min===void 0||(e=h.over.getBoundingClientRect(),t=h.scales[m].max-h.scales[m].min,i=h.posToVal(a.x,m),zae(k,a,e),document.addEventListener("touchmove",v,{passive:!0}))}),h.over.addEventListener("touchend",function(k){document.removeEventListener("touchmove",v)})}}}}function Kut(e){const t=[...e.txn_mb_start_timestamps_nanos.map((f,h)=>({timestampNanos:Number(f-e.start_timestamp_nanos),txn_idx:h,isTxnStart:!0})),...e.txn_mb_end_timestamps_nanos.map((f,h)=>({timestampNanos:Number(f-e.start_timestamp_nanos),txn_idx:h,isTxnStart:!1}))].sort((f,h)=>f.timestampNanos-h.timestampNanos),n=[];let r=0,A=0,i=0;const a=t.reduce((f,h,m)=>{const I=h.txn_idx,v=e.txn_landed[I]?h.isTxnStart?e.txn_compute_units_requested[I]:-e.txn_compute_units_requested[I]+e.txn_compute_units_consumed[I]:0,k=h.isTxnStart?0:Number(CR(e,I)),D=h.isTxnStart?0:Number(BR(e,I));n[e.txn_bank_idx[I]]=h.isTxnStart;const R=n.filter(G=>G).length,F=f[0].length-1,N=(f[2][F]||0)+v,T=(f[3][F]||0)+k,P=(f[4][F]||0)+D;return R>i&&(i=R),N>A&&(A=N),T>r&&(r=T),P>r&&(r=P),m>0&&t[m-1].timestampNanos===h.timestampNanos?(f[1][F]=R,f[2][F]=N,f[3][F]=T,f[4][F]=P):(f[0].push(h.timestampNanos),f[1].push(R),f[2].push(N),f[3].push(T),f[4].push(P)),f},[[-wB],[0],[0],[0],[0]]),c=Q_(e);return a.forEach(f=>{f.push(null)}),a[0][a[0].length-1]=c,{chartData:a,maxBankCount:i,maxComputeUnits:A,maxLamports:r}}const{stepped:LF}=Vr.paths,PF=LF==null?void 0:LF({align:1}),x_=(e,t,n,r)=>(PF==null?void 0:PF(e,t,n,r))??null,Vut="cu-chart";function qut({slotTransactions:e,maxComputeUnits:t,bankTileCount:n,onCreate:r}){const A=dt(Sae),i=dt(Dae),a=dt(Rae),c=b.useRef(e);c.current=e;const f=b.useRef(t);f.current=t;const h=b.useRef(n);h.current=n;const{chartData:m,maxBankCount:I,maxComputeUnits:v,maxLamports:k}=b.useMemo(()=>Kut(e),[e]),D=b.useCallback((F,N)=>!(F>0||N({width:0,height:0,class:_ae.chart,drawOrder:["axes","series"],cursor:{sync:{key:fr},points:{show:!1}},scales:{[fr]:{time:!1},[Xf]:{range:(F,N,T)=>{if(D(N,T))return[0,t+1e6];const P=Math.max(T-N,5e4);return[Math.max(N-P,0),Math.min(T+P,t+1e6)]}},[kae]:{range:[0,I+1]},[Zf]:{range:[0,k*1.1]}},axes:[{border:{show:!0,width:1/devicePixelRatio,stroke:ei},stroke:ei,grid:{width:1/devicePixelRatio,stroke:sR},ticks:{width:1/devicePixelRatio,stroke:ei,size:5},size:30,values:(F,N)=>N.map(T=>T/1e6+"ms"),space:100,scale:fr},{scale:Xf,border:{show:!0,width:1/devicePixelRatio,stroke:ei},stroke:ei,grid:{width:1/devicePixelRatio,stroke:sR},ticks:{width:1/devicePixelRatio,stroke:ei,size:5},values:(F,N)=>N.map(T=>T/1e6+"M"),space:50,size(F,N,T,P){var K,re;const G=F.axes[T];if(P>1)return G._size;let Y=((K=G.ticks)==null?void 0:K.size)??0+(G.gap??0);Y+=5;const z=(N??[]).reduce((V,oe)=>oe.length>V.length?oe:V,"");z!==""&&(F.ctx.font=((re=G.font)==null?void 0:re[0])??"Inter Tight",Y+=F.ctx.measureText(z).width/devicePixelRatio);const Z=Math.ceil(Y);return i(Z),Z}},{scale:Zf,stroke:ei,border:{show:!0,width:1/devicePixelRatio,stroke:ei},ticks:{width:1/devicePixelRatio,stroke:ei,size:5},values:(F,N)=>N.map(T=>T/If+" SOL"),side:1,space:50,size(F,N,T,P){var K,re;const G=F.axes[T];if(P>1)return G._size;let Y=((K=G.ticks)==null?void 0:K.size)??0+(G.gap??0);Y+=5;const z=(N??[]).reduce((V,oe)=>oe.length>V.length?oe:V,"");z!==""&&(F.ctx.font=((re=G.font)==null?void 0:re[0])??"Inter Tight",Y+=F.ctx.measureText(z).width/devicePixelRatio);const Z=Math.ceil(Y);return a(Z),Z}}],series:[{scale:fr},{label:"Active Bank",stroke:"rgba(117, 77, 18, 1)",paths:x_,points:{show:!1},width:2/devicePixelRatio,scale:kae},{label:"Compute Units",stroke:lh,paths:x_,points:{show:!1},width:2/devicePixelRatio,scale:Xf},{label:"Fees",stroke:f1,paths:x_,points:{show:!1},width:2/devicePixelRatio,scale:Zf},{label:"Tips",stroke:xf,paths:x_,points:{show:!1},width:2/devicePixelRatio,scale:Zf}],legend:{show:!1},plugins:[Yut(),Lut({slotTransactionsRef:c,maxComputeUnitsRef:f,bankTileCountRef:h}),_F(),FF({factor:.75}),zut(A),Gae(),Xut(),OF()]}),[I,k,A,D,t,i,a]);return p.jsx("div",{style:{height:"100%"},children:p.jsx(rl,{children:({height:F,width:N})=>(R.width=N,R.height=F,p.jsx(p.Fragment,{children:p.jsx(Bh,{id:Vut,options:R,data:m,onCreate:r})}))})})}const $ut="_tooltip_h8khk_1",e0t={tooltip:$ut};function UF({elId:e,children:t}){const n=we(m1);return p.jsx(tG,{container:n,id:e,className:e0t.tooltip,children:t})}const t0t="_tooltip_11ays_1",n0t="_active-banks_11ays_14",r0t="_compute-units_11ays_18",o0t="_elapsed-time_11ays_22",i0t="_fees_11ays_26",A0t="_tips_11ays_30",s0t="_label_11ays_34",Qs={tooltip:t0t,activeBanks:n0t,computeUnits:r0t,elapsedTime:o0t,fees:i0t,tips:A0t,label:s0t};function a0t(){var t;const e=we(Sae);return p.jsx(UF,{elId:"cu-chart-tooltip",children:e&&p.jsxs("div",{className:Qs.tooltip,children:[p.jsx(be,{className:xt(Qs.activeBanks,Qs.label),children:"Active\xA0banks"}),p.jsx(be,{className:Qs.activeBanks,children:e.activeBanks??"-"}),p.jsx(be,{className:xt(Qs.computeUnits,Qs.label),children:"Compute\xA0units"}),p.jsxs(be,{className:Qs.computeUnits,children:[((t=e.computeUnits)==null?void 0:t.toLocaleString())??"-","\xA0CUs"]}),p.jsx(be,{className:xt(Qs.elapsedTime,Qs.label),children:"Time\xA0elapsed"}),p.jsx(be,{className:Qs.elapsedTime,children:e.elapsedTime!=null?`${(e.elapsedTime/1e6).toLocaleString(void 0,{maximumFractionDigits:6})} ms`:"-"}),p.jsx(be,{className:xt(Qs.tips,Qs.label),children:"Tips"}),p.jsx(be,{className:Qs.tips,children:ER(BigInt(e.tips||0),Es)}),p.jsx(be,{className:xt(Qs.fees,Qs.label),children:"Fees"}),p.jsx(be,{className:Qs.fees,children:ER(BigInt(e.fees||0),Es)})]})})}const l0t="_button_1b3a4_1",GF={button:l0t};function c0t({onUplot:e}){const t=we(Tae);return p.jsxs(xe,{gap:"3",align:"center",children:[p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsxs(xe,{gap:"1px",children:[p.jsx(_l,{variant:"soft",onClick:()=>e(n=>{const r=n.scales[fr].min??0,A=n.scales[fr].max??0,i=A-r;if(i<=0)return;const a=i*.2;n.setScale(fr,{min:r+a,max:A-a})}),className:GF.button,children:p.jsx(CNe,{width:"18",height:"18"})}),p.jsx(_l,{variant:"soft",onClick:()=>e(n=>{const r=n.data[0][0],A=n.data[0].at(-1)??r,i=n.scales[fr].min??0,a=n.scales[fr].max??0,c=a-i;if(c<=0)return;const f=c*.2;n.setScale(fr,{min:Math.max(i-f,r),max:Math.min(a+f,A)})}),disabled:t,className:GF.button,children:p.jsx(yNe,{width:"18",height:"18"})}),p.jsx(xl,{variant:"soft",onClick:()=>e(n=>n.setScale(fr,{min:n.data[0][0],max:n.data[0].at(-1)??0})),disabled:t,className:GF.button,children:p.jsx(hNe,{width:"18",height:"18"})})]})]})}const u0t="_label_1q3ew_1",d0t={label:u0t};function f0t({checked:e,onCheckedChange:t,label:n,color:r}){return p.jsx(xe,{align:"center",gap:"2",children:p.jsx(be,{as:"label",className:d0t.label,style:{color:r},children:p.jsxs(xe,{gap:"2",children:[p.jsx(cD,{checked:e,onCheckedChange:t,size:"1"}),n]})})})}function g0t({onUplot:e}){const[t,n]=Cc(Fae),r=A=>{n(A),e(i=>{i.redraw(!1,!1)})};return p.jsx(f0t,{label:"Show Projections",checked:t,onCheckedChange:r,color:z5})}const Jae="500px";function h0t(){var a;const e=we(Kr),t=Pl(e),n=b.useRef(),r=we(qI).execle,A=b.useCallback(c=>{n.current=c},[]),i=b.useCallback(c=>n.current&&c(n.current),[]);return!e||!((a=t.response)!=null&&a.transactions)?p.jsx(p0t,{}):p.jsxs(p.Fragment,{children:[p.jsx(Cs,{children:p.jsxs(xe,{direction:"column",height:Jae,gap:"2",children:[p.jsxs(xe,{gap:"3",children:[p.jsx(Jf,{text:"Slot Progression"}),p.jsx(c0t,{onUplot:i}),p.jsx(g0t,{onUplot:i})]}),p.jsxs("div",{className:Dut.chart,children:[p.jsx(qut,{slotTransactions:t.response.transactions,maxComputeUnits:t.response.publish.max_compute_units??MX,bankTileCount:r,onCreate:A}),p.jsx(Gut,{})]})]})}),p.jsx(a0t,{})]})}function p0t(){return p.jsx(Cs,{style:{display:"flex",flexGrow:"1",height:Jae,justifyContent:"center",alignItems:"center"},children:p.jsx(be,{children:"Loading Slot Progress..."})})}function Wae(e,t){return Math.round(e*(t=10**t))/t}const m0t=1,Zae=(e,t,n,r,A)=>Wae(t+e*(n+A),6);function E0t(e,t,n,r,A){let i=(1-t)/(e-1);(isNaN(i)||i===1/0)&&(i=0);const a=0,c=t/e,f=Wae(c,6),h=f,m=f;if(r==null)for(let I=0;I=n&&e<=A&&t>=r&&t<=i}const qu=class qu{constructor(t,n,r,A,i=0){su(this,"x");su(this,"y");su(this,"w");su(this,"h");su(this,"l");su(this,"o");su(this,"q");this.x=t,this.y=n,this.w=r,this.h=A,this.l=i,this.o=[],this.q=null}split(){const t=this.w/2,n=this.h/2,r=this.l+1;this.q=[new qu(this.x+t,this.y,t,n,r),new qu(this.x,this.y,t,n,r),new qu(this.x,this.y+n,t,n,r),new qu(this.x+t,this.y+n,t,n,r)]}quads(t,n,r,A,i){if(!this.q)return;const a=this.x+this.w/2,c=this.y+this.h/2,f=na,I=n+A>c;f&&m&&i(this.q[0]),h&&f&&i(this.q[1]),h&&I&&i(this.q[2]),m&&I&&i(this.q[3])}add(t){if(this.q)this.quads(t.x,t.y,t.w,t.h,n=>n.add(t));else if(this.o.push(t),this.o.length>qu.MAX_OBJECTS&&this.lr.add(n));this.o.length=0}}get(t,n,r,A,i){for(const a of this.o)i(a);this.q&&this.quads(t,n,r,A,a=>a.get(t,n,r,A,i))}clear(){this.o.length=0,this.q=null}};su(qu,"MAX_OBJECTS",10),su(qu,"MAX_LEVELS",4);let HF=qu;function Xae(e,t,n=Math.E){return e===0||t===0?0:((e<=0||t<=0)&&(console.error(e,t),console.error("Logarithms are only defined for positive numbers.")),n===Math.E?Math.log(e)-Math.log(t):Math.log(e)/Math.log(n)-Math.log(t)/Math.log(n))}function C0t(e,t){if(Math.trunc(e)!==e){let n=0;for(;Math.trunc(e)!==e;)e*=10,n++;return e/(Math.pow(10,n)*t)}else return e/t}function YF(e){return`${Hae}${e}`}function B0t(e,t){if(t<0||e.txn_mb_start_timestamps_nanos[t]===void 0)return;const n=e.start_timestamp_nanos,r=Number(e.txn_mb_start_timestamps_nanos[t]-n),A=Number(e.txn_preload_end_timestamps_nanos[t]-n),i=Number(e.txn_start_timestamps_nanos[t]-n),a=Number(e.txn_load_end_timestamps_nanos[t]-n),c=Number(e.txn_end_timestamps_nanos[t]-n),f=Number(e.txn_mb_end_timestamps_nanos[t]-n);return{mbStartTs:r,preloadTs:A,txnStartTs:i,loadEndTs:a,txnEndTs:c,mbEndTs:f}}function __(e,t,n,r){const A={};for(let c=0;c+c).sort((c,f)=>c-f),a=[[-wB],[null],[null]];for(let c=0;c!m(e,h)))a[1].push(null),a[2].push(null);else if(a[1].push(h),h===null)a[2].push(null);else{const m=e.txn_microblock_id[h];a[2][a[2].length-1]===m||a[2][a[2].length-1]===void 0?a[2].push(void 0):a[2].push(m)}}a[0].push(n);for(let c=1;c{function r(i){return i.startsWith("bank-")}function A(i,a){const c=Number(a.replace(Hae,""));isNaN(c)||n(i,c)}t(E4,A,{isMatchingChartId:r})}),y0t="landed";function v0t(e,t){return e.txn_landed[t]}const Kae=Ke([]),Vae={},[xB,zF]=function(){const e=Ke({...Vae}),t=Ke();return[Ke(n=>n(e),(n,r,A)=>{if(r(e,A),Object.keys(A).length){const i=new Set;r(Jl,a=>{var c;if((c=a.data[1])!=null&&c.length)for(let f=0;fn(t))]}();function b0t({baseChartData:e,transactions:t,value:n,filterEnum:r,filterFunc:A,mergeMatchingPoints:i}){const a=[null];let c=null;for(let f=1;f{const h={...n(xB)};f===void 0?delete h[e]:h[e]=(I,v)=>t(I,v,f);const m=__(i,a,c,Object.values(h));r(xB,h),A.data.splice(1,1,m[1]),A.data.splice(2,1,m[2]),A.setData(A.data,!1),A.redraw(!0,!0)})}function k_(e,t){function n(r,A,i){switch(i){case"All":return!0;case"Yes":return t(r,A);case"No":return!t(r,A)}}return qae(e,n)}const Q0t=k_("error",(e,t)=>e.txn_error_code[t]!==0),w0t=k_("bundle",(e,t)=>e.txn_from_bundle[t]),x0t=k_(y0t,v0t),_0t=k_("simple",(e,t)=>e.txn_is_simple_vote[t]),k0t=qae("arrival",(e,t,{min:n,max:r})=>{const A=Number(e.txn_arrival_timestamps_nanos[t]-e.start_timestamp_nanos);return(n===void 0||A>=n)&&A<=r});let S_={};function S0t(e,t){Object.values(S_).forEach(n=>n(e,t))}function D0t(){S_={}}function _B(e,t,n){return Ke(null,(r,A,i,a,c,f)=>{function h(m,I){const v=m.data.length,k=r(Kae),D=b0t({filterEnum:e,filterFunc:t,transactions:a,baseChartData:k[I],value:f,mergeMatchingPoints:n});m.data.splice(v,0,D),m.addSeries({...m.series[1],label:`${e}`},v),ale(m.series.filter(R=>R.show).length-1),m.setData(m.data,!1),r(D_)===void 0&&m.redraw(!0,!0)}S_[e]=h,h(i,c)})}const R0t=_B(tA.FEES,(e,t)=>!!Number(e.txn_priority_fee[t]+e.txn_transaction_fee[t])),T0t=_B(tA.TIPS,(e,t)=>!!Number(e.txn_tips[t])),M0t=_B(tA.CUS_CONSUMED,(e,t)=>!!e.txn_compute_units_consumed[t]),F0t=_B(tA.CUS_REQUESTED,(e,t,n)=>!!e.txn_compute_units_requested[t]),N0t=_B(tA.INCOME_CUS,(e,t)=>e.txn_compute_units_consumed[t]>0&&Number(U0(e,t))/e.txn_compute_units_consumed[t]>0),kB=Ke(null,(e,t,n,r)=>{const A=n.series.findIndex(i=>i.label===`${r}`);A!==-1&&(n.delSeries(A),n.data.splice(A,1),ale(n.data.length-1),n.setData(n.data,!1),e(D_)===void 0&&n.redraw(!0,!0),delete S_[r])}),JF=Ke(1),D_=Ke(),j0t=0,$0=1,$ae=2;function SB(e){return e===j0t}function R_(e){return e===$0}function T_(e){return e===$ae}function ele(e){return e>$ae}function tle(e,t,n=2){const r=10n**BigInt(n),A=e*r/t;return Number(A)/Number(r)}function M_(e,t){return function(n){return n.current?e(n.current).reduce((r,A,i)=>A>r?A:r,t):t}}const O0t=M_(e=>e.txn_priority_fee.map((t,n)=>t+e.txn_transaction_fee[n]),0n),L0t=M_(e=>e.txn_tips,0n),P0t=M_(e=>e.txn_compute_units_consumed,0),U0t=M_(e=>e.txn_compute_units_requested,0);function nle(e,t){if(!e.txn_landed[t])return 0;const n=e.txn_compute_units_consumed[t];return n?Number(U0(e,t))/n:0}function rle(e){const t=e.txn_priority_fee.reduce((r,A,i)=>{if(!e)return r;const a=nle(e,i);return r[a]??(r[a]=[]),r[a].push(i),r},{}),n=Object.keys(t).sort((r,A)=>Number(A)-Number(r));return{rankings:n.reduce((r,A,i)=>{const a=t[A];for(const c of a)r.set(c,i+1);return r},new Map),totalRanks:n.length}}function G0t(e){if(!e.current)return new Map;const{rankings:t,totalRanks:n}=rle(e.current);for(const[r,A]of t)t.set(r,(n-A+1)/n);return t}const H0t=1,Y0t=m0t;let ole=0;const ile=.5,z0t=1.3;let cm;function WF(e){cm=e}let um="";function Ale(e){um=e}let ZF;function sle(e){ZF=e}let ed=0;const ale=e=>{ed=e-1,ns().set(JF,ed)};function J0t(e,t,n){let r=0n,A=0n,i=0,a=0,c=new Map;function f(){r=O0t(e)}function h(){A=L0t(e)}function m(){i=P0t(e)}function I(){a=U0t(e)}function v(){c=G0t(e)}ed=1;const k={mode:1,fill:(me,Ae,Ce,ae)=>{var fe,ye,Oe,Ie;if(!e.current)return{fill:""};if(SB(Ae))return{fill:""};if(R_(Ae))return{fill:Wut[!me||!e.current?ni.DEFAULT:Yae(me[0][Ce],e.current,ae,(fe=t[ae])==null?void 0:fe.bundleTxnIdx,n)],brightness:ZF===me[$0][Ce]?z0t:void 0};if(T_(Ae))return{fill:""};if(ae===tA.FEES){const Fe=me[$0][Ce]??-1,qe=e.current.txn_priority_fee[Fe]+e.current.txn_transaction_fee[Fe];if(!qe)return{fill:""};const Ze=tle(qe,r,4);return{fill:`rgba(76, 204, 230, ${Math.max(Math.min(.8,Ze*4),.3)})`}}if(ae===tA.TIPS){const Fe=me[$0][Ce]??-1,qe=(ye=e.current)==null?void 0:ye.txn_tips[Fe];if(!qe)return{fill:""};const Ze=tle(qe,A,4);return{fill:`rgba(31, 216, 164, ${Math.max(Math.min(.8,Ze*4),.3)})`}}if(ae===tA.CUS_REQUESTED){const Fe=me[$0][Ce]??-1,qe=(Oe=e.current)==null?void 0:Oe.txn_compute_units_requested[Fe];if(!qe)return{fill:""};const Ze=qe/a;return{fill:`rgba(255, 141, 204, ${Math.max(Math.min(.85,Ze),.2)})`}}if(ae===tA.CUS_CONSUMED){const Fe=me[$0][Ce]??-1,qe=(Ie=e.current)==null?void 0:Ie.txn_compute_units_consumed[Fe];if(!qe)return{fill:""};const Ze=qe/i;return{fill:`rgba(209, 157, 255, ${Math.max(Math.min(.85,Ze),.2)})`}}if(ae===tA.INCOME_CUS){const Fe=me[$0][Ce]??-1,qe=c.get(Fe)??0;return{fill:`rgba(158, 177, 255, ${Math.max(Math.min(.8,qe),.3)})`}}return{fill:""}},stroke:(me,Ae,Ce,ae)=>{var fe,ye,Oe;if(SB(Ae)||R_(Ae))return"";if(T_(Ae)){const Ie=me[$0][Ce]??-1,Fe=(fe=e.current)==null?void 0:fe.txn_error_code[Ie];return cm?Fe===cm&&(!um||((ye=e.current)==null?void 0:ye.txn_source_tpu[Ie])===um)?"rgba(162,5,8, .8)":Fe?"rgba(162,5,8, .1)":"rgba(19,173,79, .1)":um?((Oe=e.current)==null?void 0:Oe.txn_source_tpu[Ie])===um&&(!cm||Fe===cm)?Fe?"rgba(162,5,8, .8)":"rgba(19,173,79, .8)":Fe?"rgba(162,5,8, .1)":"rgba(19,173,79, .1)":Fe?"rgba(162,5,8, .5)":"rgba(19,173,79, .5)"}return""}},{mode:D,fill:R,stroke:F}=k;function N(me,Ae,Ce,ae){E0t(Ae,H0t,Y0t,me,(fe,ye,Oe)=>{const Ie=Ce*ye,Fe=Ce*Oe;ae(fe,Ie,Fe)})}const T=[.6,1/0];1-T[0];function P(){(T[1]??1/0)*Vr.pxRatio}P();const G=new Map,Y=new Map;function z(me){let Ae;const Ce=ZF!==void 0;Ce&&(me.filter=`brightness(${ile})`),G.forEach(({path:ae,brightness:fe,fill:ye})=>{ye&&(Ce&&fe!==Ae&&(me.filter=`brightness(${fe??ile})`,Ae=fe),me.fillStyle=ye,me.fill(ae))}),me.filter="",Y.forEach((ae,fe)=>{fe&&(me.strokeStyle=fe,me.stroke(ae))}),G.clear(),Y.clear()}function Z(me,Ae,Ce,ae,fe,ye,Oe,Ie,Fe,qe,Ze,Te,De){var Je,Nt,jt;if(!e.current)return;const Se=Ze+1,Qe=R(me,Se,Te,De);let Ye=G.get(Qe.fill+Qe.brightness);const At=me[$0][Te];if(At!=null){if(ele(Se)){if(De===tA.FEES){const bt=e.current.txn_priority_fee[At]+e.current.txn_transaction_fee[At];if(bt!==void 0){let wt=1/Xae(Number(r),Number(bt),1.7);wt>.9&&(wt=.9),wt<.1&&(wt=.1);const se=Fe*wt,$t=Fe-se;Fe-=$t,Oe+=$t}}if(De===tA.TIPS){const bt=(Je=e.current)==null?void 0:Je.txn_tips[At];if(bt!==void 0){let wt=1/Xae(Number(A),Number(bt),1.7);wt>.9&&(wt=.9),wt<.1&&(wt=.1);const se=Fe*wt,$t=Fe-se;Fe-=$t,Oe+=$t}}if(De===tA.CUS_CONSUMED){const bt=(Nt=e.current)==null?void 0:Nt.txn_compute_units_consumed[At];if(bt!==void 0){let wt=bt/i;wt>.9&&(wt=.9),wt<.1&&(wt=.1);const se=Fe*wt,$t=Fe-se;Fe-=$t,Oe+=$t}}if(De===tA.CUS_REQUESTED){const bt=(jt=e.current)==null?void 0:jt.txn_compute_units_requested[At];if(bt!==void 0){let wt=bt/a;wt>.9&&(wt=.9),wt<.1&&(wt=.1);const se=Fe*wt,$t=Fe-se;Fe-=$t,Oe+=$t}}if(De===tA.INCOME_CUS){let bt=c.get(At)??0;bt>.9&&(bt=.95),bt<.1&&(bt=.1);const wt=Fe*bt,se=Fe-wt;Fe-=se,Oe+=se}}if(Ye==null&&G.set(Qe.fill+Qe.brightness,Ye={path:new Path2D,fill:Qe.fill,brightness:Qe.brightness}),Ce(Ye.path,ye,Oe,Ie,Fe),qe){const bt=F(me,Se,Te,De);let wt=Y.get(bt);wt==null&&Y.set(bt,wt=new Path2D),Ce(wt,ye+qe/2,Oe+qe/2,Ie-qe,Fe-qe)}T_(Se)||re.add({x:hn.round(ye-ae),y:hn.round(Oe-fe),w:Ie,h:Fe,sidx:Ze+(Ze>1?2:1),didx:Te})}}function K(me,Ae,Ce,ae){return Vr.orient(me,Ae,(fe,ye,Oe,Ie,Fe,qe,Ze,Te,De,Se,Qe,Ye,At,Je)=>{const Nt=hn.round((fe.width||0)*Vr.pxRatio);me.ctx.save(),Je(me.ctx,me.bbox.left,me.bbox.top,me.bbox.width,me.bbox.height),me.ctx.clip(),N(Ae-1,ed,Qe,(jt,bt,wt)=>{(SB(Ae)||R_(Ae))&&wt&&(ole=wt),SB(Ae)||R_(Ae)||(bt-=ole);for(let se=0;se=me.bbox.left&&$t<=me.bbox.left+me.bbox.width){const ue=me.scales[fr].min!=null&&me.scales[fr].max!=null?4e8/(me.scales[fr].max-me.scales[fr].min):void 0;Z(me.data,me.ctx,Je,Te,De,$t,hn.round(De+bt)+10,ele(Ae)?Math.max(3,Math.min(fn-$t,ue??1)):fn-$t,hn.round(wt)-20,Nt,jt,se,Oe[se]??0)}se=Sn-1}}),me.ctx.lineWidth=Nt,z(me.ctx),me.ctx.restore()}),null}let re;const V=Array(ed).fill(null),oe=Array(ed).fill(0),Be=Array(ed).fill(0),he=Vr.fmtDate("{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}");let de=null;return{hooks:{init:me=>{de=me.root.querySelector(".u-series:first-child .u-value"),window.addEventListener("dppxchange",P),f(),h(),m(),I(),v()},destroy:me=>{window.removeEventListener("dppxchange",P)},drawClear:me=>{re=re||new HF(0,0,me.bbox.width,me.bbox.height),re.clear(),me.series.forEach(Ae=>{Ae._paths=null})},setCursor:me=>{{const Ae=me.posToVal(me.cursor.left??0,fr);de&&(de.textContent=me.scales[fr].time?he(new Date(Ae*1e3)):Ae.toFixed(2))}}},opts:(me,Ae)=>{Vr.assign(Ae,{cursor:{sync:{key:fr},y:!1,dataIdx:(Ce,ae,fe,ye)=>{var Ie;if(SB(ae)||T_(ae))return fe;const Oe=hn.round(Ce.cursor.left*Vr.pxRatio);if(Oe>=0){const Fe=oe[ae-1];V[ae-1]=null,re.get(Oe,Fe,1,1,qe=>{I0t(Oe,Fe,qe.x,qe.y,qe.x+qe.w,qe.y+qe.h)&&(V[ae-1]=qe)})}return(Ie=V[ae-1])==null?void 0:Ie.didx},points:{fill:"rgba(255,255,255,0.2)",bbox:(Ce,ae)=>{const fe=V[ae-1],ye={left:fe?hn.round(fe.x/devicePixelRatio):-10,top:fe?hn.round(fe.y/devicePixelRatio):-10,width:fe?hn.round(fe.w/devicePixelRatio):0,height:fe?hn.round(fe.h/devicePixelRatio):0},Oe=hn.round((Ce.bbox.left+Ce.bbox.width)/devicePixelRatio)-ye.left-10;return ye.width>Oe&&(ye.width=Oe),ye}}},scales:{[fr]:{range(Ce,ae,fe){return[ae,fe]}},y:{range:[0,1]}}}),Ae.axes&&Vr.assign(Ae.axes[0],{splits:null,grid:{show:D!==2}}),Ae.axes&&Vr.assign(Ae.axes[1],{splits:(Ce,ae)=>(N(null,ed,Ce.bbox.height,(fe,ye,Oe)=>{oe[fe]=hn.round(ye+Oe/2),Be[fe]=Ce.posToVal(oe[fe]/Vr.pxRatio,"y")}),Be),values:()=>Array(ed).fill(null).map((Ce,ae)=>me.series[ae+1].label),gap:5,size:0,grid:{show:!1},ticks:{show:!1},side:3}),Ae.series.forEach((Ce,ae)=>{ae>0&&Vr.assign(Ce,{paths:K,points:{show:!1}})})}}}const W0t="_group-label_1cg9k_1",Z0t="_min-text-width_1cg9k_4",X0t="_group_1cg9k_1",K0t="_tooltip-open_1cg9k_15",V0t="_item_1cg9k_18",q0t="_item-color_1cg9k_65",dm={groupLabel:W0t,minTextWidth:Z0t,group:X0t,tooltipOpen:K0t,item:V0t,itemColor:q0t},$0t="_slider_zs58s_1",edt="_arrival-label_zs58s_68",tdt="_minimize-button_zs58s_77",ndt="_chart-control-tooltip_zs58s_83",F_={slider:$0t,arrivalLabel:edt,minimizeButton:tdt,chartControlTooltip:ndt},N_=b.forwardRef(rdt);function rdt({label:e,options:t,value:n,onChange:r,isTooltipOpen:A,closeTooltip:i,optionColors:a,hasMinTextWidth:c},f){const h=b.useRef(new Map);return b.useImperativeHandle(f,()=>({focus:m=>{var I;(I=h.current.get(m))==null||I.focus()}}),[]),p.jsxs(xe,{align:"center",children:[e&&p.jsx(be,{className:xt(dm.groupLabel,{[dm.minTextWidth]:c}),children:e}),p.jsx(Ei,{className:F_.chartControlTooltip,content:`Applied "${n}"`,open:!!A,side:"bottom",children:p.jsx(JS,{className:xt(dm.group,A&&dm.tooltipOpen),type:"single",value:n,"aria-label":e,onValueChange:m=>m&&r(m),children:t.map(m=>p.jsxs(Sp,{ref:I=>{I?h.current.set(m,I):h.current.delete(m)},className:dm.item,value:m,"aria-label":m,onBlur:i,children:[(a==null?void 0:a[m])&&p.jsx("div",{className:dm.itemColor,style:{background:a[m]}}),m]},m))})})]})}const odt="_label_1q3ew_1",XF={label:odt};function DB({checked:e,onCheckedChange:t,label:n,color:r}){return p.jsx(xe,{align:"center",gap:"2",children:p.jsx(be,{as:"label",className:XF.label,style:{color:r},children:p.jsxs(xe,{gap:"2",children:[p.jsx(cD,{checked:e,onCheckedChange:t,size:"1"}),n]})})})}const KF=Ke(-1),VF=Ke(ni.DEFAULT);var lle=1,idt=.9,Adt=.8,sdt=.17,qF=.1,$F=.999,adt=.9999,ldt=.99,cdt=/[\\\/_+.#"@\[\(\{&]/,udt=/[\\\/_+.#"@\[\(\{&]/g,ddt=/[\s-]/,cle=/[\s-]/g;function e7(e,t,n,r,A,i,a){if(i===t.length)return A===e.length?lle:ldt;var c=`${A},${i}`;if(a[c]!==void 0)return a[c];for(var f=r.charAt(i),h=n.indexOf(f,A),m=0,I,v,k,D;h>=0;)I=e7(e,t,n,r,h+1,i+1,a),I>m&&(h===A?I*=lle:cdt.test(e.charAt(h-1))?(I*=Adt,k=e.slice(A,h-1).match(udt),k&&A>0&&(I*=Math.pow($F,k.length))):ddt.test(e.charAt(h-1))?(I*=idt,D=e.slice(A,h-1).match(cle),D&&A>0&&(I*=Math.pow($F,D.length))):(I*=sdt,A>0&&(I*=Math.pow($F,h-A))),e.charAt(h)!==t.charAt(i)&&(I*=adt)),(II&&(I=v*qF)),I>m&&(m=I),h=n.indexOf(f,h+1);return a[c]=m,m}function ule(e){return e.toLowerCase().replace(cle," ")}function fdt(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,e7(e,t,ule(e),ule(t),0,0,{})}var gdt=Symbol.for("react.lazy"),j_=eE[" use ".trim().toString()];function hdt(e){return typeof e=="object"&&e!==null&&"then"in e}function dle(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===gdt&&"_payload"in e&&hdt(e._payload)}function pdt(e){const t=mdt(e),n=b.forwardRef((r,A)=>{let{children:i,...a}=r;dle(i)&&typeof j_=="function"&&(i=j_(i._payload));const c=b.Children.toArray(i),f=c.find(Idt);if(f){const h=f.props.children,m=c.map(I=>I===f?b.Children.count(h)>1?b.Children.only(null):b.isValidElement(h)?h.props.children:null:I);return p.jsx(t,{...a,ref:A,children:b.isValidElement(h)?b.cloneElement(h,void 0,m):null})}return p.jsx(t,{...a,ref:A,children:i})});return n.displayName=`${e}.Slot`,n}function mdt(e){const t=b.forwardRef((n,r)=>{let{children:A,...i}=n;if(dle(A)&&typeof j_=="function"&&(A=j_(A._payload)),b.isValidElement(A)){const a=Bdt(A),c=Cdt(i,A.props);return A.type!==b.Fragment&&(c.ref=r?gc(r,a):a),b.cloneElement(A,c)}return b.Children.count(A)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Edt=Symbol("radix.slottable");function Idt(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Edt}function Cdt(e,t){const n={...t};for(const r in t){const A=e[r],i=t[r];/^on[A-Z]/.test(r)?A&&i?n[r]=(...a)=>{const c=i(...a);return A(...a),c}:A&&(n[r]=A):r==="style"?n[r]={...A,...i}:r==="className"&&(n[r]=[A,i].filter(Boolean).join(" "))}return{...e,...n}}function Bdt(e){var r,A;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(A=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:A.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ydt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kf=ydt.reduce((e,t)=>{const n=pdt(`Primitive.${t}`),r=b.forwardRef((A,i)=>{const{asChild:a,...c}=A,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),RB='[cmdk-group=""]',t7='[cmdk-group-items=""]',vdt='[cmdk-group-heading=""]',fle='[cmdk-item=""]',gle=`${fle}:not([aria-disabled="true"])`,n7="cmdk-item-select",fm="data-value",bdt=(e,t,n)=>fdt(e,t,n),hle=b.createContext(void 0),TB=()=>b.useContext(hle),ple=b.createContext(void 0),r7=()=>b.useContext(ple),mle=b.createContext(void 0),Ele=b.forwardRef((e,t)=>{let n=gm(()=>{var Ie,Fe;return{search:"",value:(Fe=(Ie=e.value)!=null?Ie:e.defaultValue)!=null?Fe:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=gm(()=>new Set),A=gm(()=>new Map),i=gm(()=>new Map),a=gm(()=>new Set),c=Ile(e),{label:f,children:h,value:m,onValueChange:I,filter:v,shouldFilter:k,loop:D,disablePointerSelection:R=!1,vimBindings:F=!0,...N}=e,T=$A(),P=$A(),G=$A(),Y=b.useRef(null),z=Fdt();m2(()=>{if(m!==void 0){let Ie=m.trim();n.current.value=Ie,Z.emit()}},[m]),m2(()=>{z(6,he)},[]);let Z=b.useMemo(()=>({subscribe:Ie=>(a.current.add(Ie),()=>a.current.delete(Ie)),snapshot:()=>n.current,setState:(Ie,Fe,qe)=>{var Ze,Te,De,Se;if(!Object.is(n.current[Ie],Fe)){if(n.current[Ie]=Fe,Ie==="search")Be(),V(),z(1,oe);else if(Ie==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Qe=document.getElementById(G);Qe?Qe.focus():(Ze=document.getElementById(T))==null||Ze.focus()}if(z(7,()=>{var Qe;n.current.selectedItemId=(Qe=de())==null?void 0:Qe.id,Z.emit()}),qe||z(5,he),((Te=c.current)==null?void 0:Te.value)!==void 0){let Qe=Fe??"";(Se=(De=c.current).onValueChange)==null||Se.call(De,Qe);return}}Z.emit()}},emit:()=>{a.current.forEach(Ie=>Ie())}}),[]),K=b.useMemo(()=>({value:(Ie,Fe,qe)=>{var Ze;Fe!==((Ze=i.current.get(Ie))==null?void 0:Ze.value)&&(i.current.set(Ie,{value:Fe,keywords:qe}),n.current.filtered.items.set(Ie,re(Fe,qe)),z(2,()=>{V(),Z.emit()}))},item:(Ie,Fe)=>(r.current.add(Ie),Fe&&(A.current.has(Fe)?A.current.get(Fe).add(Ie):A.current.set(Fe,new Set([Ie]))),z(3,()=>{Be(),V(),n.current.value||oe(),Z.emit()}),()=>{i.current.delete(Ie),r.current.delete(Ie),n.current.filtered.items.delete(Ie);let qe=de();z(4,()=>{Be(),(qe==null?void 0:qe.getAttribute("id"))===Ie&&oe(),Z.emit()})}),group:Ie=>(A.current.has(Ie)||A.current.set(Ie,new Set),()=>{i.current.delete(Ie),A.current.delete(Ie)}),filter:()=>c.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:T,inputId:G,labelId:P,listInnerRef:Y}),[]);function re(Ie,Fe){var qe,Ze;let Te=(Ze=(qe=c.current)==null?void 0:qe.filter)!=null?Ze:bdt;return Ie?Te(Ie,n.current.search,Fe):0}function V(){if(!n.current.search||c.current.shouldFilter===!1)return;let Ie=n.current.filtered.items,Fe=[];n.current.filtered.groups.forEach(Ze=>{let Te=A.current.get(Ze),De=0;Te.forEach(Se=>{let Qe=Ie.get(Se);De=Math.max(Qe,De)}),Fe.push([Ze,De])});let qe=Y.current;me().sort((Ze,Te)=>{var De,Se;let Qe=Ze.getAttribute("id"),Ye=Te.getAttribute("id");return((De=Ie.get(Ye))!=null?De:0)-((Se=Ie.get(Qe))!=null?Se:0)}).forEach(Ze=>{let Te=Ze.closest(t7);Te?Te.appendChild(Ze.parentElement===Te?Ze:Ze.closest(`${t7} > *`)):qe.appendChild(Ze.parentElement===qe?Ze:Ze.closest(`${t7} > *`))}),Fe.sort((Ze,Te)=>Te[1]-Ze[1]).forEach(Ze=>{var Te;let De=(Te=Y.current)==null?void 0:Te.querySelector(`${RB}[${fm}="${encodeURIComponent(Ze[0])}"]`);De==null||De.parentElement.appendChild(De)})}function oe(){let Ie=me().find(qe=>qe.getAttribute("aria-disabled")!=="true"),Fe=Ie==null?void 0:Ie.getAttribute(fm);Z.setState("value",Fe||void 0)}function Be(){var Ie,Fe,qe,Ze;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Te=0;for(let De of r.current){let Se=(Fe=(Ie=i.current.get(De))==null?void 0:Ie.value)!=null?Fe:"",Qe=(Ze=(qe=i.current.get(De))==null?void 0:qe.keywords)!=null?Ze:[],Ye=re(Se,Qe);n.current.filtered.items.set(De,Ye),Ye>0&&Te++}for(let[De,Se]of A.current)for(let Qe of Se)if(n.current.filtered.items.get(Qe)>0){n.current.filtered.groups.add(De);break}n.current.filtered.count=Te}function he(){var Ie,Fe,qe;let Ze=de();Ze&&(((Ie=Ze.parentElement)==null?void 0:Ie.firstChild)===Ze&&((qe=(Fe=Ze.closest(RB))==null?void 0:Fe.querySelector(vdt))==null||qe.scrollIntoView({block:"nearest"})),Ze.scrollIntoView({block:"nearest"}))}function de(){var Ie;return(Ie=Y.current)==null?void 0:Ie.querySelector(`${fle}[aria-selected="true"]`)}function me(){var Ie;return Array.from(((Ie=Y.current)==null?void 0:Ie.querySelectorAll(gle))||[])}function Ae(Ie){let Fe=me()[Ie];Fe&&Z.setState("value",Fe.getAttribute(fm))}function Ce(Ie){var Fe;let qe=de(),Ze=me(),Te=Ze.findIndex(Se=>Se===qe),De=Ze[Te+Ie];(Fe=c.current)!=null&&Fe.loop&&(De=Te+Ie<0?Ze[Ze.length-1]:Te+Ie===Ze.length?Ze[0]:Ze[Te+Ie]),De&&Z.setState("value",De.getAttribute(fm))}function ae(Ie){let Fe=de(),qe=Fe==null?void 0:Fe.closest(RB),Ze;for(;qe&&!Ze;)qe=Ie>0?Tdt(qe,RB):Mdt(qe,RB),Ze=qe==null?void 0:qe.querySelector(gle);Ze?Z.setState("value",Ze.getAttribute(fm)):Ce(Ie)}let fe=()=>Ae(me().length-1),ye=Ie=>{Ie.preventDefault(),Ie.metaKey?fe():Ie.altKey?ae(1):Ce(1)},Oe=Ie=>{Ie.preventDefault(),Ie.metaKey?Ae(0):Ie.altKey?ae(-1):Ce(-1)};return b.createElement(Kf.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:Ie=>{var Fe;(Fe=N.onKeyDown)==null||Fe.call(N,Ie);let qe=Ie.nativeEvent.isComposing||Ie.keyCode===229;if(!(Ie.defaultPrevented||qe))switch(Ie.key){case"n":case"j":{F&&Ie.ctrlKey&&ye(Ie);break}case"ArrowDown":{ye(Ie);break}case"p":case"k":{F&&Ie.ctrlKey&&Oe(Ie);break}case"ArrowUp":{Oe(Ie);break}case"Home":{Ie.preventDefault(),Ae(0);break}case"End":{Ie.preventDefault(),fe();break}case"Enter":{Ie.preventDefault();let Ze=de();if(Ze){let Te=new Event(n7);Ze.dispatchEvent(Te)}}}}},b.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:jdt},f),O_(e,Ie=>b.createElement(ple.Provider,{value:Z},b.createElement(hle.Provider,{value:K},Ie))))}),Qdt=b.forwardRef((e,t)=>{var n,r;let A=$A(),i=b.useRef(null),a=b.useContext(mle),c=TB(),f=Ile(e),h=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;m2(()=>{if(!h)return c.item(A,a==null?void 0:a.id)},[h]);let m=Cle(A,i,[e.value,e.children,i],e.keywords),I=r7(),v=Vf(z=>z.value&&z.value===m.current),k=Vf(z=>h||c.filter()===!1?!0:z.search?z.filtered.items.get(A)>0:!0);b.useEffect(()=>{let z=i.current;if(!(!z||e.disabled))return z.addEventListener(n7,D),()=>z.removeEventListener(n7,D)},[k,e.onSelect,e.disabled]);function D(){var z,Z;R(),(Z=(z=f.current).onSelect)==null||Z.call(z,m.current)}function R(){I.setState("value",m.current,!0)}if(!k)return null;let{disabled:F,value:N,onSelect:T,forceMount:P,keywords:G,...Y}=e;return b.createElement(Kf.div,{ref:gc(i,t),...Y,id:A,"cmdk-item":"",role:"option","aria-disabled":!!F,"aria-selected":!!v,"data-disabled":!!F,"data-selected":!!v,onPointerMove:F||c.getDisablePointerSelection()?void 0:R,onClick:F?void 0:D},e.children)}),wdt=b.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:A,...i}=e,a=$A(),c=b.useRef(null),f=b.useRef(null),h=$A(),m=TB(),I=Vf(k=>A||m.filter()===!1?!0:k.search?k.filtered.groups.has(a):!0);m2(()=>m.group(a),[]),Cle(a,c,[e.value,e.heading,f]);let v=b.useMemo(()=>({id:a,forceMount:A}),[A]);return b.createElement(Kf.div,{ref:gc(c,t),...i,"cmdk-group":"",role:"presentation",hidden:I?void 0:!0},n&&b.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),O_(e,k=>b.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},b.createElement(mle.Provider,{value:v},k))))}),xdt=b.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,A=b.useRef(null),i=Vf(a=>!a.search);return!n&&!i?null:b.createElement(Kf.div,{ref:gc(A,t),...r,"cmdk-separator":"",role:"separator"})}),_dt=b.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,A=e.value!=null,i=r7(),a=Vf(h=>h.search),c=Vf(h=>h.selectedItemId),f=TB();return b.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),b.createElement(Kf.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":c,id:f.inputId,type:"text",value:A?e.value:a,onChange:h=>{A||i.setState("search",h.target.value),n==null||n(h.target.value)}})}),kdt=b.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...A}=e,i=b.useRef(null),a=b.useRef(null),c=Vf(h=>h.selectedItemId),f=TB();return b.useEffect(()=>{if(a.current&&i.current){let h=a.current,m=i.current,I,v=new ResizeObserver(()=>{I=requestAnimationFrame(()=>{let k=h.offsetHeight;m.style.setProperty("--cmdk-list-height",k.toFixed(1)+"px")})});return v.observe(h),()=>{cancelAnimationFrame(I),v.unobserve(h)}}},[]),b.createElement(Kf.div,{ref:gc(i,t),...A,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:f.listId},O_(e,h=>b.createElement("div",{ref:gc(a,f.listInnerRef),"cmdk-list-sizer":""},h)))}),Sdt=b.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:A,contentClassName:i,container:a,...c}=e;return b.createElement(RG,{open:n,onOpenChange:r},b.createElement(TG,{container:a},b.createElement(MG,{"cmdk-overlay":"",className:A}),b.createElement(FG,{"aria-label":e.label,"cmdk-dialog":"",className:i},b.createElement(Ele,{ref:t,...c}))))}),Ddt=b.forwardRef((e,t)=>Vf(n=>n.filtered.count===0)?b.createElement(Kf.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Rdt=b.forwardRef((e,t)=>{let{progress:n,children:r,label:A="Loading...",...i}=e;return b.createElement(Kf.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":A},O_(e,a=>b.createElement("div",{"aria-hidden":!0},a)))}),Yc=Object.assign(Ele,{List:kdt,Item:Qdt,Input:_dt,Group:wdt,Separator:xdt,Dialog:Sdt,Empty:Ddt,Loading:Rdt});function Tdt(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Mdt(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Ile(e){let t=b.useRef(e);return m2(()=>{t.current=e}),t}var m2=typeof window>"u"?b.useEffect:b.useLayoutEffect;function gm(e){let t=b.useRef();return t.current===void 0&&(t.current=e()),t}function Vf(e){let t=r7(),n=()=>e(t.snapshot());return b.useSyncExternalStore(t.subscribe,n,n)}function Cle(e,t,n,r=[]){let A=b.useRef(),i=TB();return m2(()=>{var a;let c=(()=>{var h;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(h=m.current.textContent)==null?void 0:h.trim():A.current}})(),f=r.map(h=>h.trim());i.value(e,c,f),(a=t.current)==null||a.setAttribute(fm,c),A.current=c}),A}var Fdt=()=>{let[e,t]=b.useState(),n=gm(()=>new Map);return m2(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,A)=>{n.current.set(r,A),t({})}};function Ndt(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function O_({asChild:e,children:t},n){return e&&b.isValidElement(t)?b.cloneElement(Ndt(t),{ref:t.ref},n(t.props.children)):n(t)}var jdt={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Odt="_dropdownButton_v1p8v_1",Ldt="_input-container_v1p8v_6",Pdt="_sm_v1p8v_20",Udt="_content_v1p8v_68",MB={dropdownButton:Odt,inputContainer:Ldt,sm:Pdt,content:Udt},Gdt="_text_1k6sv_1",Hdt="_faded_1k6sv_7",Ydt="_ellipsis_1k6sv_11",o7={text:Gdt,faded:Hdt,ellipsis:Ydt};function Ble({textSegments:e,truncateLastSegment:t}){return p.jsx(xe,{flexGrow:"1",minWidth:"0",maxWidth:"100%",wrap:"nowrap",className:o7.text,"aria-label":e.map(({text:n})=>n).join(""),children:e.map(({text:n,faded:r},A)=>n?p.jsx(be,{className:xt({[o7.faded]:r,[o7.ellipsis]:A===e.length-1&&t}),children:n},A):null)})}const FB=8,zdt=2,yle=2;function Jdt(e,{signature:t,optionValue:n,txnIdxCount:r}){const A=r>1,i=e.trim().toLowerCase(),a=n.toLowerCase(),c=k=>{A&&k.push({text:`${JQ}(${r})`,faded:!0})};if(i.length===a.length||i.length>FB){const k=[{text:`${t.substring(0,FB)}...${t.substring(t.length-FB)}`}];return c(k),k}const f=a.indexOf(i),h=f+i.length,m=[{start:0,end:Math.min(FB,t.length)},{start:Math.max(0,Math.min(f-yle,t.length)),end:Math.min(t.length,Math.min(h+yle,t.length))},{start:Math.max(0,t.length-FB),end:t.length}].filter(k=>k.end>k.start).sort((k,D)=>k.start-D.start),I=[];for(const k of m){if(!I.length){I.push({...k});continue}const D=I[I.length-1],R=k.start-D.end;R<=0||R<=zdt?D.end=Math.max(D.end,k.end):I.push({...k})}const v=[];for(let k=0;k0&&v.push({text:"...",faded:!0});const R=Math.max(D.start,Math.min(f,D.end)),F=Math.max(D.start,Math.min(h,D.end));F>R?(D.startk)}function Wdt(e){return function(t){return p.jsx(Ble,{textSegments:Jdt(t,e)})}}function vle(e,t){if(t=t.trim(),!t)return;if(t.includes(".")){const c=e.indexOf(t);return c<0?void 0:{startIdx:c,endIdx:c+t.length}}const n=[];let r="";for(let c=0;c="0"&&f<="9"&&(r+=f,n.push(c))}const A=r.indexOf(t);if(A<0)return;const i=n[A],a=n[A+t.length-1]+1;return{startIdx:i,endIdx:a}}function Zdt(e,t,n){return function(r){const A=vle(e,r),i=t>1,a=(A==null?void 0:A.startIdx)??-1,c=(A==null?void 0:A.endIdx)??-1,f=[{text:e.substring(0,a),faded:!0},{text:e.substring(a,c)},{text:e.substring(c),faded:!0},{text:i?`${JQ}(${t})`:"",faded:!0},{text:n?`${JQ}${n}`:""}];return p.jsx(Ble,{textSegments:f,truncateLastSegment:!0})}}const Xdt=30,Kdt=20,ble=["Txn Sig","IPv4"],Qle=["Income"],wle=["Txn Sig","Error","Income","IPv4","TPU"],Vdt={"Txn Sig":"2ZwHLf3Qw7ZE8s3PWW81ELCmGiVhaDS9LWMK4McGL9ySmqvTZSZf3S9EWks4TFbyJt7U6i5RPuLk7PgWVBdy9HY5",Error:"",Income:"Rank #",IPv4:"192.0.2.1",TPU:"udp"};function xle({transactions:e,size:t="lg"}){const[n,r]=b.useState(!1),[A,i]=b.useState(!1),[a,c]=b.useState(""),[f,h]=_ee(a,500),[m,I]=b.useState(),[v,k]=b.useState("Txn Sig"),D=we(zF),R=we(xR),F=we(m1),N=dt(Jl),T=b.useRef(null),P=b.useRef(null),G=b.useRef(),Y=b.useCallback(()=>{G.current&&(G.current.style.border="",G.current=void 0),sle(void 0),I(void 0),i(!1)},[]),z=b.useCallback(()=>{Y(),c(""),h(""),N((Te,De)=>{Te.setScale(fr,{min:Te.data[0][0],max:Te.data[0][Te.data[0].length-1]})})},[Y,h,N]);b.useEffect(()=>{D&&(m!=null&&m.txnIdxs.some(Te=>!D.has(Te)))&&z()},[D,z,m==null?void 0:m.txnIdxs]),b.useEffect(()=>{m===void 0&&Qle.includes(v)&&k(wle[0])},[m,v]);const Z=b.useCallback((Te,De,Se)=>Te.reduce((Qe,Ye,At)=>{var jt;if(D&&!D.has(At)||Se!=null&&Se(Ye))return Qe;const Je=((jt=Qe[Ye])==null?void 0:jt.txnIdxs)??[];Je.push(At);const Nt=De(Ye,Je);return Qe[Ye]=Nt,Qe},{}),[D]),K=b.useMemo(()=>Z(e.txn_signature,(Te,De)=>{const Se=Te.toLowerCase();return{getLabelEl:Wdt({signature:Te,optionValue:Se,txnIdxCount:De.length}),txnIdxs:De,signatureLower:Se,signature:Te}}),[Z,e.txn_signature]),re=b.useMemo(()=>Z(e.txn_error_code,(Te,De)=>({txnIdxs:De,label:c5[Te]}),Te=>Te===0),[Z,e.txn_error_code]),V=b.useMemo(()=>{const Te=R.reduce((De,Se)=>{var Ye,At;if(!Se.gossip||!((Ye=Se.info)!=null&&Ye.name))return De;const Qe=Object.values(Se.gossip.sockets);for(const Je of Qe)De.set(yR(Je),(At=Se.info)==null?void 0:At.name);return De},new Map);return Z(e.txn_source_ipv4,(De,Se)=>{var Qe;return{getLabelEl:Zdt(De,Se.length,Te.get(De)),txnIdxs:Se,label:`${De} ${Te.get(De)??""}`,queryValue:`${De}${(Qe=Te.get(De)??"")==null?void 0:Qe.toLowerCase()}`}})},[Z,R,e.txn_source_ipv4]),oe=b.useMemo(()=>Z(e.txn_source_tpu,(Te,De)=>({txnIdxs:De,label:Te})),[Z,e.txn_source_tpu]),Be=b.useMemo(()=>e.txn_transaction_fee.reduce((Te,De,Se)=>(D&&!D.has(Se)||Te.push({txnIdx:Se,income:Number(U0(e,Se))}),Te),[]).sort(({income:Te},{income:De})=>De-Te),[D,e]),he=b.useCallback(Te=>{var At,Je,Nt,jt;const De=e.txn_bank_idx[Te],Se=document.getElementById(YF(De)),Qe=(At=Se==null?void 0:Se.getElementsByClassName("u-over"))==null?void 0:At[0],Ye=(Je=Se==null?void 0:Se.getElementsByTagName("canvas"))==null?void 0:Je[0];if(Se&&Qe&&Ye){if(!BMe(Ye)){Ye.scrollIntoView({block:"nearest"});const bt=Ye.getBoundingClientRect(),wt=(Nt=document.getElementById("transaction-bars-controls"))==null?void 0:Nt.getBoundingClientRect();wt&&wt.top-Ple<=0&&bt.top{if(De!==wt){bt.redraw();return}const se=bt.scales[fr],$t=se.min??-1/0,Sn=se.max??1/0,fn=Sn-$t,ue=e.txn_from_bundle[Te]&&e.txn_microblock_id[Te-1]!==e.txn_microblock_id[Te],ln=e.txn_from_bundle[Te]&&e.txn_microblock_id[Te+1]!==e.txn_microblock_id[Te],Dt=Number((ue||!e.txn_from_bundle[Te]?e.txn_mb_start_timestamps_nanos[Te]:e.txn_preload_end_timestamps_nanos[Te])-e.start_timestamp_nanos),Gt=Number((ln||!e.txn_from_bundle[Te]?e.txn_mb_end_timestamps_nanos[Te]:e.txn_end_timestamps_nanos[Te])-e.start_timestamp_nanos),It=(Gt-Dt)*Xdt,Cn=(Gt-Dt)*Kdt,wn=Gt<$t||Dt>Sn,jr=fn>It,Yr=fn{if(wn||jr||Yr){let or=Math.max(bt.data[0][0],Dt-It/2);const $r=or+It;$r>bt.data[0][bt.data[0].length-1]&&(or=$r-It),bt.setScale(fr,{min:or,max:$r})}sle(Te)})})},[e,N]),de=b.useCallback((Te,De)=>{c(Te),h(Te),r(!1),i(!0);const Se=Qe=>{const Ye={current:0,total:Qe.length-1,txnIdxs:Qe};I(Ye);const At=Qe[Ye.current];he(At)};switch(v){case"Txn Sig":{const Qe=K[Te].txnIdxs;Se(Qe);break}case"Error":{if(De!==void 0){const Qe=re[Number(De)].txnIdxs;Se(Qe)}break}case"IPv4":{const Qe=V[De??Te];if(Qe){const Ye=Qe.txnIdxs;Se(Ye)}break}case"TPU":{if(De!==void 0){const Qe=oe[De].txnIdxs;Se(Qe)}break}}},[h,v,K,he,re,V,oe]),me=Te=>()=>{I(De=>{if(!De)return;let{current:Se,total:Qe,txnIdxs:Ye}=De;Te==="prev"?Se--:Te==="next"&&Se++,Se>Qe&&(Se=0),Se<0&&(Se=Qe);const At=Ye[Se];return he(At),{current:Se,total:Qe,txnIdxs:Ye}})},Ae=Te=>()=>{switch(k(Te),z(),Te){case"Txn Sig":case"IPv4":case"Error":case"TPU":{Ze.current=!0,r(!0),setTimeout(()=>{var De;(De=qe.current)==null||De.focus()},250);break}case"Income":{const De=Be.map(({txnIdx:Qe})=>Qe);I({current:0,total:De.length,txnIdxs:De});const Se=De[0];he(Se);break}}},Ce=ble.includes(v),ae=Ce&&a!==f,fe=n&&!Ce||!ae,ye=m&&m.total>0,Oe=a||Qle.includes(v),Ie=!ble.includes(v),Fe=b.useRef(Ie);Fe.current=Ie;const qe=b.useRef(null),Ze=b.useRef(!1);return p.jsxs(xe,{children:[p.jsxs(UJ,{children:[p.jsx(GJ,{children:p.jsxs(xl,{variant:"surface",className:MB.dropdownButton,onFocusCapture:Te=>Te.preventDefault(),onFocus:Te=>{Te.preventDefault()},children:[v,p.jsx(rD,{})]})}),p.jsx(YJ,{onCloseAutoFocus:Te=>Te.preventDefault(),children:wle.map(Te=>p.jsx(zJ,{onSelect:Ae(Te),children:Te},Te))})]}),p.jsx(Yc,{loop:!0,className:MB.root,shouldFilter:!1,ref:T,children:p.jsxs(yS,{open:n,onOpenChange:Te=>{r(Te)},children:[p.jsx(vS,{asChild:!0,children:p.jsxs(xe,{align:"center",className:xt(MB.inputContainer,"rt-TextFieldRoot","rt-variant-surface",{[MB.sm]:t==="sm"}),children:[p.jsx(Yc.Input,{placeholder:Vdt[v],onFocus:Te=>{r(!0)},value:a,onValueChange:Te=>{c(Te),Y(),r(!0)},readOnly:Ie,ref:qe}),(ye||Oe)&&p.jsxs(xe,{align:"center",children:[ye&&p.jsxs(p.Fragment,{children:[p.jsxs(be,{style:{paddingRight:"var(--space-2)",cursor:"default"},children:[m.current+1,"\xA0of\xA0",m.total+1]}),p.jsx(_l,{onClick:me("prev"),variant:"ghost",onKeyDown:Te=>{Te.key==="Enter"&&me("prev")()},children:p.jsx(Z7e,{})}),p.jsx(_l,{onClick:me("next"),variant:"ghost",onKeyDown:Te=>{Te.key==="Enter"&&me("next")()},children:p.jsx(J7e,{})})]}),Oe&&p.jsx(_l,{onClick:z,variant:"ghost",onKeyDown:Te=>{Te.key==="Enter"&&z()},children:p.jsx(ET,{})})]})]})}),p.jsx(bS,{container:F,children:p.jsx(QS,{className:MB.content,onOpenAutoFocus:Te=>{Ze.current?setTimeout(()=>{Ze.current=!1},250):Te.preventDefault()},onInteractOutside:Te=>{(Te.target===qe.current||Ze.current)&&Te.preventDefault()},style:{outline:"unset"},children:p.jsxs(Yc.List,{ref:P,style:{maxHeight:"min(300px, var(--radix-popover-content-available-height))"},children:[a.length>1&&ae&&p.jsx(Yc.Loading,{children:p.jsx(be,{children:"Loading..."})}),fe&&p.jsxs(p.Fragment,{children:[v==="Txn Sig"&&p.jsx(qdt,{optionMap:K,inputValue:f,onSelect:de,showAllOptions:A}),v==="Error"&&p.jsx(_le,{onSelect:de,optionMap:re}),v==="IPv4"&&p.jsx($dt,{onSelect:de,optionMap:V,inputValue:f,showAllOptions:A}),v==="TPU"&&p.jsx(_le,{onSelect:de,optionMap:oe})]})]})})})]})})]})}const qdt=b.memo(function({optionMap:e,inputValue:t,onSelect:n,showAllOptions:r}){const A=b.useMemo(()=>Object.entries(e),[e]),i=t.toLowerCase();function a([,{signatureLower:h}]){return r||h.includes(i)}function c([,{signatureLower:h}]){return h===i?3:h.startsWith(i)||h.endsWith(i)?2:h.includes(i)?1:0}function f(h,m){return c(m)-c(h)}return p.jsxs(p.Fragment,{children:[!!A.length&&p.jsx(Yc.Group,{heading:"Results",children:A.filter(a).sort(f).map(([,{getLabelEl:h,signatureLower:m,signature:I}],v)=>{if(!(v>100))return p.jsx(Yc.Item,{value:m,onSelect:()=>{n(I)},children:h(r?"":t)},I)})}),p.jsx(Yc.Empty,{children:"No results found."})]})}),$dt=b.memo(function({optionMap:e,inputValue:t,onSelect:n,showAllOptions:r}){const A=b.useMemo(()=>Object.entries(e),[e]),i=t.trim().toLowerCase();function a([,{label:h,queryValue:m}]){return r||!!vle(h,i)||m.includes(i)}function c([,{label:h,txnIdxs:m}]){return h===i?1/0:m.length>1?3+m.length:h.startsWith(i)||h.endsWith(i)?2:h.includes(i)?1:0}function f(h,m){return c(m)-c(h)}return p.jsxs(p.Fragment,{children:[!!A.length&&p.jsx(Yc.Group,{heading:"Results",children:A.filter(a).sort(f).map(([h,{getLabelEl:m,label:I}],v)=>{if(!(v>100))return p.jsx(Yc.Item,{value:I,onSelect:()=>{n(I,h)},children:m(r?"":t)},I)})}),p.jsx(Yc.Empty,{children:"No results found."})]})}),_le=b.memo(function({onSelect:e,optionMap:t}){return b.useMemo(()=>Object.entries(t),[t]).map(([n,{label:r,txnIdxs:A}],i)=>p.jsx(Yc.Item,{onSelect:()=>{e(r,n)},children:p.jsxs(be,{children:[r," (",A.length,")"]})},n))}),i7=["All","Yes","No"],kle="bundle",eft={triggerControl:()=>{},registerControl:()=>()=>{}},A7=b.createContext(eft);function tft(e,t){const{registerControl:n}=b.useContext(A7),r=b.useRef(t);r.current=t;const[A,i]=b.useState(!1),a=b.useCallback(()=>i(!1),[]);return b.useEffect(()=>n(e,c=>{r.current(c),i(!0)}),[e,n]),{isTooltipOpen:A,closeTooltip:a}}function nft(e){const[t,n]=b.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:F_.minimizeButton,children:p.jsx(_l,{variant:"ghost",onClick:()=>n(r=>!r),children:t?p.jsx(pT,{}):p.jsx(mT,{})})}),!t&&p.jsx(rft,{...e})]})}function rft(e){const{transactions:t,maxTs:n}=e,r=dt(xB),A=dt(JF),i=dt(D_),a=dt(KF),c=dt(VF);return Hw(()=>{r(Vae),D0t(),A(1),i(void 0),WF(0),a(-1),c(ni.DEFAULT)}),Yo("(max-width: 500px)")?p.jsx(oft,{...e}):p.jsxs(xe,{gap:"2",align:"center",wrap:"wrap",children:[p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Sle,{transactions:t,maxTs:n}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Rle,{transactions:t,maxTs:n}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Tle,{transactions:t,maxTs:n}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Mle,{transactions:t,maxTs:n}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Fle,{transactions:t}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Nle,{transactions:t}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Ole,{transactions:t}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(Dle,{transactions:t,maxTs:n}),p.jsx(Ya,{orientation:"vertical",size:"2"}),p.jsx(xle,{transactions:t})]})}function oft({transactions:e,maxTs:t}){return p.jsxs(xe,{direction:"column",gap:"3",children:[p.jsx(Sle,{transactions:e,maxTs:t}),p.jsx(Rle,{transactions:e,maxTs:t,isMobileView:!0}),p.jsx(Tle,{transactions:e,maxTs:t,isMobileView:!0}),p.jsx(Mle,{transactions:e,maxTs:t,isMobileView:!0}),p.jsx(Fle,{transactions:e}),p.jsx(Nle,{transactions:e}),p.jsx("div",{style:{marginBottom:"8px"},children:p.jsx(Ole,{transactions:e})}),p.jsx(Dle,{transactions:e,maxTs:t}),p.jsx(xle,{transactions:e,size:"sm"})]})}function Sle({transactions:e,maxTs:t}){const n=dt(Jl),r=dt(Q0t),[A,i]=b.useState("All");return p.jsxs(xe,{gap:"2",children:[p.jsx(N_,{options:["All","Success","Errors"],optionColors:{Success:aR,Errors:lR},value:A,onChange:a=>{if(!a)return;i(a);const c=a==="Success"?"No":a==="Errors"?"Yes":"All";n((f,h)=>r(f,e,h,t,c))}}),p.jsx(ift,{transactions:e,isDisabled:A==="Success"})]})}function ift({transactions:e,isDisabled:t}){const n=dt(E4),r=we(zF),[A,i]=b.useState("0"),a=b.useMemo(()=>{if(r!=null&&r.size){const c=e.txn_error_code.filter((f,h)=>r.has(h));return hn.groupBy(c)}return hn.groupBy(e.txn_error_code)},[r,e.txn_error_code]);return b.useEffect(()=>{a[cm]||(i("0"),WF(0))},[a]),p.jsxs(AD,{onValueChange:c=>{i(c),WF(Number(c)),n(f=>f.redraw())},size:"1",value:A,disabled:t,children:[p.jsx(sD,{placeholder:"Txn State",style:{height:"22px",width:"90px"}}),p.jsx(aD,{children:p.jsxs(lD,{children:[p.jsx(EI,{value:"0",children:"None"}),Object.keys(a).map(c=>c==="0"?null:p.jsxs(EI,{value:`${c}`,children:[c5[c]," (",a[c].length,")"]},c))]})})]})}const s7="none";function Dle({transactions:e,maxTs:t}){const n=dt(E4),r=we(zF),[A,i]=b.useState(s7),a=b.useMemo(()=>{if(r!=null&&r.size){const c=e.txn_source_tpu.filter((f,h)=>r.has(h));return hn.groupBy(c)}return hn.groupBy(e.txn_source_tpu)},[r,e.txn_source_tpu]);return b.useEffect(()=>{a[um]||(i(""),Ale(""))},[a]),p.jsxs(xe,{gap:"2",align:"center",children:[p.jsx(be,{className:XF.label,children:"TPU"}),p.jsxs(AD,{onValueChange:c=>{i(c),Ale(c===s7?"":c),n(f=>f.redraw())},size:"1",value:A,children:[p.jsx(sD,{placeholder:"TPU",style:{height:"22px",width:"90px"}}),p.jsx(aD,{children:p.jsxs(lD,{children:[p.jsx(EI,{value:s7,children:"None"}),Object.keys(a).map(c=>p.jsxs(EI,{value:c,children:[c," (",a[c].length,")"]},c))]})})]})]})}function Rle({transactions:e,maxTs:t,isMobileView:n}){const[r,A]=b.useState("All"),i=dt(Jl),a=dt(w0t),c=b.useRef(null),f=b.useCallback(v=>{e&&(A(v),i((k,D)=>{a(k,e,D,t,v)}))},[a,t,e,i]),h=b.useCallback(v=>{var k,D;f(v),(k=c.current)==null||k.focus(v),(D=document.getElementById(YF(0)))==null||D.scrollIntoView({behavior:"smooth",block:"nearest"})},[f]),{isTooltipOpen:m,closeTooltip:I}=tft(kle,h);return p.jsx(N_,{ref:c,label:"Bundle",options:i7,value:r,onChange:v=>v&&f(v),isTooltipOpen:m,closeTooltip:I,hasMinTextWidth:n})}function Tle({transactions:e,maxTs:t,isMobileView:n}){const r=dt(Jl),A=dt(x0t),[i,a]=b.useState("All");return p.jsx(N_,{label:"Landed",options:i7,value:i,onChange:c=>{c&&(a(c),r((f,h)=>A(f,e,h,t,c)))},hasMinTextWidth:n})}function Mle({transactions:e,maxTs:t,isMobileView:n}){const r=dt(Jl),A=dt(_0t),[i,a]=b.useState("All");return p.jsx(N_,{label:"Vote",options:i7,value:i,onChange:c=>{c&&(a(c),r((f,h)=>A(f,e,h,t,c)))},hasMinTextWidth:n})}function Fle({transactions:e}){return p.jsxs(xe,{gap:"2",children:[p.jsx(Aft,{transactions:e}),p.jsx(sft,{transactions:e}),p.jsx(cft,{transactions:e})]})}function Aft({transactions:e}){const[t,n]=b.useState(!1),r=dt(Jl),A=dt(R0t),i=dt(kB),a=c=>{n(c),r((f,h)=>{c?A(f,e,h):i(f,tA.FEES)})};return p.jsx(DB,{label:"Fees",checked:t,onCheckedChange:a,color:f1})}function sft({transactions:e}){const[t,n]=b.useState(!1),r=dt(Jl),A=dt(T0t),i=dt(kB),a=c=>{n(c),r((f,h)=>{c?A(f,e,h):i(f,tA.TIPS)})};return p.jsx(DB,{label:"Tips",checked:t,onCheckedChange:a,color:xf})}function Nle({transactions:e}){return p.jsxs(xe,{gap:"2",children:[p.jsx(be,{className:XF.label,children:"CU"}),p.jsx(aft,{transactions:e}),p.jsx(lft,{transactions:e})]})}function aft({transactions:e}){const[t,n]=b.useState(!1),r=dt(Jl),A=dt(M0t),i=dt(kB),a=c=>{n(c),r((f,h)=>{c?A(f,e,h):i(f,tA.CUS_CONSUMED)})};return p.jsx(DB,{label:"Consumed",checked:t,onCheckedChange:a,color:lh})}function lft({transactions:e}){const[t,n]=b.useState(!1),r=dt(Jl),A=dt(F0t),i=dt(kB),a=c=>{n(c),r((f,h)=>{c?A(f,e,h):i(f,tA.CUS_REQUESTED)})};return p.jsx(DB,{label:"Requested",checked:t,onCheckedChange:a,color:gw})}function cft({transactions:e}){const[t,n]=b.useState(!1),r=dt(Jl),A=dt(N0t),i=dt(kB),a=c=>{n(c),r((f,h)=>{c?A(f,e,h):i(f,tA.INCOME_CUS)})};return p.jsx(DB,{label:"Income per CU",checked:t,onCheckedChange:a,color:g1})}const E2=12,jle=100;function uft({transactions:e,sliderMin:t,sliderMax:n,beforeZeroMulti:r,bboxWidth:A}){const i=b.useMemo(()=>{if(t>=n||!e.txn_arrival_timestamps_nanos.length)return;const a=n-t;function c(I){return I>=0?I:I/r}const f=e.txn_arrival_timestamps_nanos.reduce((I,v)=>{const k=(c(Number(v-e.start_timestamp_nanos))-t)/a,D=Math.trunc(k*jle);return I[D]+=1,I},new Array(jle).fill(0)),h=hn.max(f)??1,m=f.reduce((I,v,k)=>{const D=A*((k+1)/f.length),R=E2-E2*(v/h);return I+`${D},${R} `},"");return`0,${E2}, ${m}, ${A},${E2}`},[A,r,n,t,e.start_timestamp_nanos,e.txn_arrival_timestamps_nanos]);return p.jsx("svg",{height:`${E2}px`,width:"100%",viewBox:`0 0 ${A} ${E2}`,xmlns:"http://www.w3.org/2000/svg",style:{marginBottom:"-5px",borderRadius:"4px"},children:p.jsx("polyline",{points:i,fill:"rgba(186, 167, 255, 0.5)",stroke:"rgb(186, 167, 255)",strokeWidth:".5"})})}const L_=.3,dft=.025;function Ole({transactions:e}){const t=b.useMemo(()=>Q_(e)-wB,[e]),[n,r]=b.useState(()=>{const G=Q_(e),Y=-Math.ceil(G*L_),z=G-wB;return[Y,z]}),A=dt(Jl),i=dt(k0t),[a,{width:c}]=Ka();function f(G){return G<0?D*G:G}function h(G){if(!(G.length<2))return{min:f(G[0]),max:f(G[1])}}const m=`${Math.ceil(L_/(1+L_)*100)}%`,I=b.useMemo(()=>{if(!e.txn_arrival_timestamps_nanos.length)return 0;const G=e.txn_arrival_timestamps_nanos.reduce((Y,z)=>z{requestAnimationFrame(()=>A((Y,z)=>i(Y,e,z,t,h(G))))},100,{leading:!1,trailing:!0});return p.jsxs(xe,{align:"center",gap:"2",children:[p.jsx(be,{className:F_.arrivalLabel,children:"Arrival"}),p.jsxs("div",{className:F_.slider,ref:a,style:{"--slot-start-pct":m,marginTop:`-${E2+6}px`,"--min-value-label":`"${N}"`,"--max-value-label":`"${T}"`},children:[p.jsx(uft,{transactions:e,sliderMin:R,sliderMax:t,beforeZeroMulti:D,bboxWidth:c}),p.jsx(XJ,{style:{"--slider-track-size":"4px"},value:n,min:R,max:t,onValueChange:G=>{const Y=G[0]!==n[0]?0:1;Math.abs(G[Y]){const Z=z.valToPos(G[Y],fr);z.setCursor({left:Z,top:0})}),P(G)}})]})]})}function fft({transactionsRef:e,setTxnIdx:t,setTxnState:n,transactionsBundleStats:r,client:A}){function i(a,c,f){var I,v;let h=a.data[1][f];a.data[0][f]>c&&(h=a.data[1][f-1]),h==null&&a.data[1][f-1]!=null&&(h=a.data[1][f-1]);const m=((I=a.cursor.idxs)==null?void 0:I.length)&&a.cursor.idxs[1]===void 0;if(h==null||!e.current||m)return!1;{const k=Yae(c,e.current,h,(v=r[h])==null?void 0:v.bundleTxnIdx,A);return n(k),t(h),!0}}return MF({elId:"txn-bars-tooltip",closeTooltipElId:"txn-bars-tooltip-close",showOnCursor:i,showPointer:!0})}const P_=20;function gft({bankIdx:e,transactions:t,maxTs:n,isFirstChart:r,isLastChart:A,hide:i,isSelected:a}){const c=r||A,f=we(Dae)-P_,h=we(Rae)-P_,m=we(qi),I=dt(KF),v=dt(VF),k=b.useRef(null),D=b.useRef(t);D.current=t;const R=b.useMemo(()=>__(t,e,n,Object.values(ns().get(xB))),[e,n,t]),F=b.useCallback(G=>{G.setData(__(t,e,n,Object.values(ns().get(xB))),!1)},[e,n,t]),N=b.useMemo(()=>t.txn_from_bundle.map((G,Y)=>{if(G)return w_(t,Y)}),[t]),T=b.useMemo(()=>{if(R!=null&&R.length)return{width:0,height:0,class:_ae.chart,drawOrder:["series","axes"],scales:{[fr]:{time:!1}},axes:[{scale:fr,stroke:ei,values:(G,Y)=>c?Y.map(z=>C0t(z,1e6)+"ms"):[],size:c?40:0,space:100,grid:{stroke:fq},border:{show:!0,width:1/devicePixelRatio,stroke:ei},ticks:{width:1/devicePixelRatio,stroke:ei,size:5},side:r?0:2},{border:{show:!0,width:1/devicePixelRatio,stroke:ei},stroke:"rgba(0,0,0,0)"}],legend:{markers:{width:0},show:!1},padding:[0,P_,0,P_],series:[{scale:fr},{label:`Bank ${e}`},{}],plugins:[J0t(D,N,m),fft({transactionsRef:D,setTxnIdx:I,setTxnState:v,transactionsBundleStats:N,client:m}),_F(),FF({factor:.75}),Gae(),OF()],hooks:{ready:[G=>{requestAnimationFrame(()=>{S0t(G,e)})}]}}},[e,R==null?void 0:R.length,r,c,I,v,N,m]),P=we(JF);return!R||!T||i?null:p.jsx("div",{style:{flex:1,marginLeft:`${f}px`,marginRight:`${h}px`,display:i?"none":"block",height:a?`${Math.max(2,P)*90+40}px`:c?"170px":"130px"},ref:k,children:p.jsx(rl,{children:({height:G,width:Y})=>(T.width=Y,T.height=G,p.jsx(p.Fragment,{children:p.jsx(Bh,{id:YF(e),options:T,data:R,onCreate:F})}))})})}const hft="_container_14qh6_1",pft="_label_14qh6_10",Lle={container:hft,label:pft};function mft({setSelected:e,bankIdx:t,isSelected:n}){return p.jsxs("div",{className:Lle.container,children:[p.jsxs(be,{className:Lle.label,children:["Bank ",t]}),p.jsx(xl,{variant:"ghost",size:"1",onClick:()=>e(),children:n?p.jsx(sNe,{color:"grey"}):p.jsx(iNe,{color:"grey"})})]})}const Eft=NI+jI,Ple=Eft+FX;function Ift(){var f,h,m,I,v;const e=we(Kr),t=Pl(e),n=b.useRef((f=t.response)==null?void 0:f.transactions);n.current=(h=t.response)==null?void 0:h.transactions;const r=we(qI).execle,A=dt(Kae),i=b.useMemo(()=>{var k;return(k=t.response)!=null&&k.transactions?Q_(t.response.transactions):0},[(m=t.response)==null?void 0:m.transactions]);b.useMemo(()=>{var D;if(!((D=t.response)!=null&&D.transactions))return;const k=[];for(let R=0;R{var R;if((R=t.response)!=null&&R.transactions&&!(a!==void 0&&a!==D))return p.jsxs("div",{style:{position:"relative"},children:[(a===void 0||a===D)&&p.jsx(mft,{bankIdx:D,setSelected:()=>c(F=>F===void 0?D:void 0),isSelected:a===D}),p.jsx(gft,{bankIdx:D,transactions:t.response.transactions,maxTs:i,isFirstChart:D===0&&r>1,isLastChart:D===r-1||a!==void 0,isSelected:a===D,hide:a!==void 0&&a!==D},`${D}`)]},D)})]},e):null}const Cft="_state_1css2_11",Bft="_cu-bars_1css2_24",yft="_duration-container_1css2_30",vft="_unit_1css2_38",U_={state:Cft,cuBars:Bft,durationContainer:yft,unit:vft},bft="_separator_1pgc5_1",Qft={separator:bft};function I2({my:e,mb:t}){return p.jsx(Ya,{size:"4",my:e??"1",mb:t,className:Qft.separator})}function wft(){var c,f,h;const e=we(Kr),t=Pl(e),n=we(KF),r=we(VF),A=(c=t.response)==null?void 0:c.transactions,i=b.useMemo(()=>{if(A&&!(n<0)&&A.txn_from_bundle[n])return w_(A,n)},[A,n]),a=A!=null&&A.txn_arrival_timestamps_nanos[n]?jq(A.txn_arrival_timestamps_nanos[n]):void 0;return p.jsx(UF,{elId:"txn-bars-tooltip",children:(A==null?void 0:A.txn_bank_idx[n])!=null&&p.jsxs(xe,{direction:"column",children:[p.jsxs(xe,{justify:"between",children:[p.jsx(be,{className:U_.state,style:{color:Hc[r]},children:r}),p.jsx(xl,{variant:"ghost",size:"1",id:"txn-bars-tooltip-close",children:p.jsx(tNe,{color:ei})})]}),p.jsx(I2,{}),p.jsxs(xe,{direction:"column",children:[p.jsx(Dft,{txnIdx:n,transactions:A}),p.jsx(a7,{label:"Bundle",value:A.txn_from_bundle[n],append:i?`(${i.order} of ${i.totalCount})`:void 0}),p.jsx(a7,{label:"Vote",value:A.txn_is_simple_vote[n]}),p.jsx(a7,{label:"Landed",value:A.txn_landed[n]}),p.jsx(I2,{}),p.jsx(Mi,{label:"Fees",value:`${(A.txn_priority_fee[n]+A.txn_transaction_fee[n]).toLocaleString()}`,color:f1}),p.jsx(Mi,{label:"Tips",value:`${(f=A.txn_tips[n])==null?void 0:f.toLocaleString()}`,color:xf}),p.jsx(I2,{}),p.jsx(kft,{transactions:A,txnIdx:n}),p.jsx(I2,{}),p.jsx(Mi,{label:"Txn Index",value:`${n}`}),p.jsx(Mi,{label:"Microblock ID",value:`${A.txn_microblock_id[n]}`}),p.jsx(Mi,{label:"Bank ID",value:`${A.txn_bank_idx[n]}`}),p.jsx(Mi,{label:"Age since slot start",value:`${(Number(A.txn_arrival_timestamps_nanos[n]-A.start_timestamp_nanos)/1e6).toLocaleString()}ms`}),a&&p.jsxs(p.Fragment,{children:[p.jsx(Mi,{label:"Arrival Time (ms)",value:a.inMillis}),p.jsx(Mi,{label:"Arrival Time (nano)",value:a.inNanos})]}),p.jsx(xft,{transactions:A,txnIdx:n}),p.jsx(Sft,{transactions:A,txnIdx:n,bundleTxnIdx:i==null?void 0:i.bundleTxnIdx}),p.jsx(I2,{}),p.jsx(Mi,{label:"Txn Sig",value:`${(h=A.txn_signature[n])==null?void 0:h.substring(0,8)}...`,copyValue:A.txn_signature[n]})]})]})})}function xft({transactions:e,txnIdx:t}){const n=we(xR),r=e.txn_source_ipv4[t],A=b.useMemo(()=>{var a;const i=n.find(c=>c.gossip?Object.values(c.gossip.sockets).some(f=>yR(f)===r):!1);if(i)return(a=i.info)!=null&&a.name?i.info.name.length>20?`${i.info.name.substring(0,20)}...`:i.info.name:`${i.identity_pubkey.substring(0,8)}...`},[r,n]);return p.jsxs(p.Fragment,{children:[p.jsx(Mi,{label:"IPv4 (tpu)",value:`${r} (${e.txn_source_tpu[t]})`}),A&&p.jsx(Mi,{label:"Validator",value:A})]})}function _ft({transactions:e,txnIdx:t}){var i;const{rankings:n,totalRanks:r}=b.useMemo(()=>rle(e),[e]),A=n.has(t)?` (${n.get(t)} of ${r})`:"";return p.jsx(Mi,{label:"CU Income",value:`${(i=nle(e,t))==null?void 0:i.toLocaleString(void 0,{maximumFractionDigits:Es})}${A}`,color:g1})}function kft({transactions:e,txnIdx:t}){var r,A;const n=e.txn_compute_units_requested[t]?Math.trunc(e.txn_compute_units_consumed[t]/e.txn_compute_units_requested[t]*100):100;return p.jsxs(p.Fragment,{children:[p.jsx(Mi,{label:"CU Consumed",value:`${(r=e.txn_compute_units_consumed[t])==null?void 0:r.toLocaleString()}`,color:lh}),p.jsx(Mi,{label:"CU Requested",value:`${(A=e.txn_compute_units_requested[t])==null?void 0:A.toLocaleString()}`,color:gw}),p.jsx(_ft,{transactions:e,txnIdx:t}),p.jsx(xe,{children:p.jsxs("svg",{height:"8",fill:"none",className:U_.cuBars,xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("rect",{height:"8",width:`${n}%`,opacity:.6,fill:lh}),p.jsx("rect",{height:"8",width:`${100-n}%`,x:`${n}%`,opacity:.2,fill:gw})]})})]})}function Sft({transactions:e,txnIdx:t,bundleTxnIdx:n}){const r=we(qi),A=b.useMemo(()=>jF(e,t,n,r),[n,e,t,r]),i=b.useMemo(()=>{if(!A)return;const c=hn.sum(hn.values(A).map(k=>Number(k))),f=Math.max(0,Number(A.preLoading)/c*100),h=Math.max(0,Number(A.validating)/c*100),m=Math.max(0,Number(A.loading)/c*100),I=Math.max(0,Number(A.execute)/c*100),v=Math.max(0,Number(A.postExecute)/c*100);return{preLoading:f,validating:h,loading:m,execute:I,postExecute:v}},[A]),a=b.useMemo(()=>{if(!A)return;const c=hn.sum(hn.values(A).map(N=>Number(N))),f=Ia(A.preLoading),h=Ia(A.validating),m=Ia(A.loading),I=Ia(A.execute),v=Ia(A.postExecute),k=Ia(c),D=e.txn_mb_start_timestamps_nanos[t],R=e.txn_mb_end_timestamps_nanos[t],F=n!=null&&n.length&&e.txn_from_bundle[t]?Ia(R-D):null;return{preLoading:f,validating:h,loading:m,execute:I,postExecute:v,total:k,bundleTotal:F}},[e,A,t,n]);if(!(!A||!i||!a))return p.jsxs(p.Fragment,{children:[p.jsx(I2,{}),p.jsx(xe,{children:p.jsxs("svg",{height:"36",className:U_.durationContainer,xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("rect",{height:"8",width:`${i.preLoading}%`,fill:Hc[ni.PRELOADING]}),p.jsx("rect",{height:"8",width:`${i.validating}%`,fill:Hc[ni.VALIDATE],x:`${i.preLoading}%`,y:"20%"}),p.jsx("rect",{height:"8",width:`${i.loading}%`,fill:Hc[ni.LOADING],x:`${i.preLoading+i.validating}%`,y:"40%"}),p.jsx("rect",{height:"8",width:`${i.execute}%`,fill:Hc[ni.EXECUTE],x:`${i.preLoading+i.validating+i.loading}%`,y:"60%"}),p.jsx("rect",{height:"8",width:`${i.postExecute}%`,fill:Hc[ni.POST_EXECUTE],x:`${i.preLoading+i.validating+i.loading+i.execute}%`,y:"80%"})]})}),p.jsx(Mi,{label:ni.PRELOADING,color:Hc[ni.PRELOADING],value:a.preLoading.value,unit:a.preLoading.unit}),p.jsx(Mi,{label:ni.VALIDATE,color:Hc[ni.VALIDATE],value:a.validating.value,unit:a.validating.unit}),p.jsx(Mi,{label:ni.LOADING,color:Hc[ni.LOADING],value:a.loading.value,unit:a.loading.unit}),p.jsx(Mi,{label:ni.EXECUTE,color:Hc[ni.EXECUTE],value:a.execute.value,unit:a.execute.unit}),p.jsx(Mi,{label:ni.POST_EXECUTE,color:Hc[ni.POST_EXECUTE],value:a.postExecute.value,unit:a.postExecute.unit}),p.jsx(Mi,{label:"Total",value:a.total.value,unit:a.total.unit}),a.bundleTotal&&p.jsx(Mi,{label:"Total (Bundle)",value:a.bundleTotal.value,unit:a.bundleTotal.unit})]})}function Dft({txnIdx:e,transactions:t}){const n=t.txn_error_code[e],r=n!==0;return p.jsx(Mi,{label:r?"Error":"Success",value:r?`${c5[n]}`:"Yes",color:r?lR:aR})}function Mi({label:e,value:t,color:n,unit:r,copyValue:A}){const i=typeof t=="number"?t.toLocaleString():t;return p.jsxs(xe,{justify:"between",gap:"4",style:{"--color-override":n},children:[p.jsx(be,{children:e}),p.jsx(xe,{gap:"2",align:"center",children:p.jsx(zw,{value:A,color:CV,size:"14px",children:p.jsxs("span",{children:[p.jsx(be,{children:i}),r&&p.jsx(be,{className:U_.unit,children:r})]})})})]})}function a7({value:e,append:t,...n}){let r=e?"Yes":"No";return t&&(r+=` ${t}`),p.jsx(Mi,{...n,value:r})}function Rft(){var n;const e=we(Kr),t=Pl(e);return!e||!((n=t.response)!=null&&n.transactions)?p.jsx(Tft,{}):p.jsxs(p.Fragment,{children:[p.jsx(Cs,{id:"txn-bars-card",children:p.jsx(Ift,{})}),p.jsx(wft,{})]})}function Tft(){return p.jsx(Cs,{style:{display:"flex",flexGrow:"1",height:"400px",justifyContent:"center",alignItems:"center"},children:p.jsx(be,{children:"Loading Banks..."})})}const Mft="_search-grid_gudx6_1",Fft="_search-label_gudx6_5",Nft="_search-field_gudx6_11",jft="_error-text_gudx6_15",Oft="_quick-search-card_gudx6_19",Lft="_quick-search-header_gudx6_26",Pft="_quick-search-slot_gudx6_37",Uft="_clickable_gudx6_40",Gft="_quick-search-metric_gudx6_51",Gu={searchGrid:Mft,searchLabel:Fft,searchField:Nft,errorText:jft,quickSearchCard:Oft,quickSearchHeader:Lft,quickSearchSlot:Pft,clickable:Uft,quickSearchMetric:Gft},Hft=e=>b.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"#D86363",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.01469 6.00051C5.58562 6.03619 3 7.94365 3 12C3 12.5523 2.55228 13 2 13C1.44772 13 1 12.5523 1 12C1 6.90007 4.41438 4.05318 7.98531 4.00073C9.74494 3.97489 11.5153 4.63461 12.8432 6.00502C13.8812 7.07635 14.6101 8.5405 14.8821 10.3602L15.8896 8.9389C16.209 8.48833 16.8331 8.38198 17.2837 8.70137C17.7343 9.02075 17.8406 9.64492 17.5213 10.0955L15.0678 13.5568C14.7484 14.0073 14.1242 14.1137 13.6737 13.7943L10.2124 11.3408C9.76181 11.0214 9.65546 10.3973 9.97484 9.9467C10.2942 9.49613 10.9184 9.38978 11.369 9.70916L12.9263 10.8131C12.7275 9.27771 12.1449 8.15845 11.4068 7.39676C10.4847 6.44507 9.25506 5.9823 8.01469 6.00051ZM6.5 13C7.32843 13 8 12.3284 8 11.5C8 10.6716 7.32843 10 6.5 10C5.67157 10 5 10.6716 5 11.5C5 12.3284 5.67157 13 6.5 13Z"}));function Yft(e=!1){const t=b4(),n=b.useCallback(()=>t({topic:"slot",key:"query_rankings",id:32,params:{mine:e}}),[e,t]);b.useEffect(()=>{n();const r=setInterval(n,5e3);return()=>clearInterval(r)},[n])}function Ule(e,t){const n=el(e),r=Cee();_1(r,1e3);const[A,i]=b.useState();b.useEffect(()=>{var c,f;(c=n.publish)!=null&&c.completed_time_nanos&&i(Gn.fromMillis(Math.trunc(Number((f=n.publish)==null?void 0:f.completed_time_nanos)/1e6)))},[n.publish]);const a=(()=>{if(A)return WI.diff(A).rescale()})();return{slotDateTime:A,timeAgoText:a?`${kf(a,t)} ago`:void 0}}function Gle(){const e=Up({from:uce.fullPath});return b.useCallback(t=>{e({search:{slot:t},replace:!0})},[e])}const Hle=3,Yle=226,zle=40,Jle=20,zft=2*Jle+Hle*Yle+(Hle-1)*zle;function Jft(){const e=we(G0.slot),t=Gle(),[n,r]=b.useState(e===void 0?"":String(e)),A=we(Ri),i=we(G0.isValid),a=b.useCallback(()=>{t(n===""?void 0:Number(n))},[n,t]);return p.jsxs(lA,{height:"100%",maxWidth:`${zft}px`,justify:"center",m:"auto",gap:`${zle}px`,p:`${Jle}px`,columns:`repeat(auto-fit, ${Yle}px)`,className:Gu.searchGrid,children:[p.jsx(xe,{direction:"column",gap:"8px",gridColumn:"1 / -1",asChild:!0,children:p.jsxs("form",{onSubmit:c=>{c.preventDefault(),a()},children:[p.jsx(mye,{htmlFor:"searchSlotId",className:Gu.searchLabel,children:"Search Slot ID"}),p.jsx(fD,{id:"searchSlotId",className:Gu.searchField,placeholder:`e.g. ${(A==null?void 0:A.start_slot)??0}`,type:"number",step:"1",value:n,onChange:c=>r(c.target.value),size:"3",color:i?"teal":"red",autoFocus:!0,children:p.jsx(tQ,{side:"right",children:p.jsx(_l,{variant:"ghost",color:"gray",onClick:a,children:p.jsx(Ree,{height:"16",width:"16"})})})}),!i&&p.jsx(qft,{})]})}),p.jsx(Wft,{})]})}function l7(e){return`${KI(e,4)} SOL`}function Wft(){Yft(!0);const e=we(xZ),t=we(PA),n=we(Yq),r=we(eC),{earliestQuickSlots:A,mostRecentQuickSlots:i}=b.useMemo(()=>{if(t===void 0||n===void 0)return{};const a=t.slice(n,r);return{earliestQuickSlots:a,mostRecentQuickSlots:a.toReversed()}},[n,t,r]);return p.jsxs(p.Fragment,{children:[p.jsx(hm,{icon:p.jsx(q7e,{}),label:"Earliest Slots",color:xq,slots:A}),p.jsx(hm,{icon:p.jsx(Tee,{}),label:"Most Recent Slots",color:_q,slots:i}),p.jsx(hm,{icon:p.jsx(Hft,{}),label:"Last Skipped Slots",color:kq,slots:e==null?void 0:e.slots_largest_skipped}),p.jsx(hm,{icon:p.jsx(rNe,{}),label:"Highest Fees",color:Sq,slots:e==null?void 0:e.slots_largest_fees,metricOptions:{metrics:e==null?void 0:e.vals_largest_fees,metricsFmt:l7}}),p.jsx(hm,{icon:p.jsx(fNe,{}),label:"Highest Tips",color:Dq,slots:e==null?void 0:e.slots_largest_tips,metricOptions:{metrics:e==null?void 0:e.vals_largest_tips,metricsFmt:l7}}),p.jsx(hm,{icon:p.jsx(mNe,{}),label:"Highest Rewards",color:Rq,slots:e==null?void 0:e.slots_largest_rewards,metricOptions:{metrics:e==null?void 0:e.vals_largest_rewards,metricsFmt:l7}})]})}function hm({icon:e,label:t,color:n,slots:r,metricOptions:A}){return p.jsxs(xe,{direction:"column",className:Gu.quickSearchCard,p:"20px",gap:"20px",children:[p.jsxs(xe,{direction:"column",gap:"10px",className:Gu.quickSearchHeader,style:{"--quick-search-color":n},children:[e,p.jsx(be,{align:"left",children:t})]}),p.jsx(Xft,{slots:r,metricOptions:A})]})}const Zft=3;function Xft({slots:e,metricOptions:t}){const n=Gle();return p.jsx(xe,{direction:"column",gap:"5px",children:Array.from({length:Zft}).map((r,A)=>{var a;const i=e==null?void 0:e[A];return p.jsxs(xe,{justify:"between",children:[i===void 0?p.jsx(be,{className:Gu.quickSearchSlot,children:"--"}):p.jsx(be,{className:xt(Gu.quickSearchSlot,Gu.clickable),onClick:()=>n(i),children:i}),p.jsx(be,{className:Gu.quickSearchMetric,children:p.jsx(Kft,{slot:i,metric:(a=t==null?void 0:t.metrics)==null?void 0:a[A],metricsFmt:t==null?void 0:t.metricsFmt})})]},A)})})}function Kft({slot:e,metric:t,metricsFmt:n}){return e===void 0?"--":n?t===void 0?"--":n(t)??"--":p.jsx(Vft,{slot:e})}function Vft({slot:e}){const{timeAgoText:t}=Ule(e,{showOnlyTwoSignificantUnits:!0});return t}function qft(){const e=we(G0.slot),t=we(G0.state),n=we(Ri),r=b.useMemo(()=>{switch(t){case Sf.NotReady:return`Slot ${e} validity cannot be determined because epoch and leader slot data is not available yet.`;case Sf.OutsideEpoch:return`Slot ${e} is outside this epoch. Please try again with a different ID between ${n==null?void 0:n.start_slot} - ${n==null?void 0:n.end_slot}.`;case Sf.NotYou:return`Slot ${e} belongs to another validator. Please try again with a slot number processed by you.`;case Sf.BeforeFirstProcessed:return`Slot ${e} is in this epoch but its details are unavailable because it was processed before the restart.`;case Sf.Future:return`Slot ${e} is valid but in the future. To view details, check again after it has been processed.`;case Sf.Valid:return""}},[n==null?void 0:n.end_slot,n==null?void 0:n.start_slot,e,t]);return p.jsx(be,{size:"3",className:Gu.errorText,children:r})}const $ft="_slot-item-group_p1cnp_1",egt="_disabled_p1cnp_8",tgt="_is-selected_p1cnp_13",ngt="_slot-item_p1cnp_1",rgt="_selected-slot_p1cnp_35",ogt="_skipped-slot_p1cnp_41",igt="_fade_p1cnp_50",Agt="_fade-left_p1cnp_57",sgt="_fade-right_p1cnp_62",Hu={slotItemGroup:$ft,disabled:egt,isSelected:tgt,slotItem:ngt,selectedSlot:rgt,skippedSlot:ogt,fade:igt,fadeLeft:Agt,fadeRight:sgt};function Wle({onMeasured:e,children:t}){const n=we(m1),[r,A]=Ka();return b.useEffect(()=>e(A),[A,e]),p.jsx(tG,{container:n,style:{position:"fixed",left:"-100000px",top:"-100000px",visibility:"hidden"},ref:r,"aria-hidden":"true",children:t})}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */var c7=function(e,t){return c7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var A in r)r.hasOwnProperty(A)&&(n[A]=r[A])},c7(e,t)};function agt(e,t){c7(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var lgt=100,cgt=100,Zle=50,u7=50,d7=50;function Xle(e){var t=e.className,n=e.counterClockwise,r=e.dashRatio,A=e.pathRadius,i=e.strokeWidth,a=e.style;return b.createElement("path",{className:t,style:Object.assign({},a,dgt({pathRadius:A,dashRatio:r,counterClockwise:n})),d:ugt({pathRadius:A,counterClockwise:n}),strokeWidth:i,fillOpacity:0})}function ugt(e){var t=e.pathRadius,n=e.counterClockwise,r=t,A=n?1:0;return` - M `+u7+","+d7+` - m 0,-`+r+` - a `+r+","+r+" "+A+" 1 1 0,"+2*r+` - a `+r+","+r+" "+A+" 1 1 0,-"+2*r+` - `}function dgt(e){var t=e.counterClockwise,n=e.dashRatio,r=e.pathRadius,A=Math.PI*2*r,i=(1-n)*A;return{strokeDasharray:A+"px "+A+"px",strokeDashoffset:(t?-i:i)+"px"}}var fgt=function(e){agt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},t.prototype.getPathRadius=function(){return Zle-this.props.strokeWidth/2-this.getBackgroundPadding()},t.prototype.getPathRatio=function(){var n=this.props,r=n.value,A=n.minValue,i=n.maxValue,a=Math.min(Math.max(r,A),i);return(a-A)/(i-A)},t.prototype.render=function(){var n=this.props,r=n.circleRatio,A=n.className,i=n.classes,a=n.counterClockwise,c=n.styles,f=n.strokeWidth,h=n.text,m=this.getPathRadius(),I=this.getPathRatio();return b.createElement("svg",{className:i.root+" "+A,style:c.root,viewBox:"0 0 "+lgt+" "+cgt,"data-test-id":"CircularProgressbar"},this.props.background?b.createElement("circle",{className:i.background,style:c.background,cx:u7,cy:d7,r:Zle}):null,b.createElement(Xle,{className:i.trail,counterClockwise:a,dashRatio:r,pathRadius:m,strokeWidth:f,style:c.trail}),b.createElement(Xle,{className:i.path,counterClockwise:a,dashRatio:I*r,pathRadius:m,strokeWidth:f,style:c.path}),h?b.createElement("text",{className:i.text,style:c.text,x:u7,y:d7},h):null)},t.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},t}(b.Component);function ggt(e){var t=e.rotation,n=e.strokeLinecap,r=e.textColor,A=e.textSize,i=e.pathColor,a=e.pathTransition,c=e.pathTransitionDuration,f=e.trailColor,h=e.backgroundColor,m=t==null?void 0:"rotate("+t+"turn)",I=t==null?void 0:"center center";return{root:{},path:G_({stroke:i,strokeLinecap:n,transform:m,transformOrigin:I,transition:a,transitionDuration:c==null?void 0:c+"s"}),trail:G_({stroke:f,strokeLinecap:n,transform:m,transformOrigin:I}),text:G_({fill:r,fontSize:A}),background:G_({fill:h})}}function G_(e){return Object.keys(e).forEach(function(t){e[t]==null&&delete e[t]}),e}const hgt="data:image/svg+xml,%3csvg%20width='12'%20height='13'%20viewBox='0%200%2012%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%200.675781C9.22656%200.675781%2011.8242%203.27344%2011.8242%206.5C11.8242%209.72656%209.22656%2012.3242%206%2012.3242C2.77344%2012.3242%200.175781%209.72656%200.175781%206.5C0.175781%203.27344%202.77344%200.675781%206%200.675781ZM6%2011.1758C8.57031%2011.1758%2010.6758%209.07031%2010.6758%206.5C10.6758%203.92969%208.57031%201.82422%206%201.82422C3.42969%201.82422%201.32422%203.92969%201.32422%206.5C1.32422%209.07031%203.42969%2011.1758%206%2011.1758ZM8.67969%203.92969L9.5%204.75L4.82422%209.42578L2.5%207.07422L3.32031%206.25391L4.82422%207.75781L8.67969%203.92969Z'%20fill='%231D863B'/%3e%3c/svg%3e",pgt="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='%231D863B'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.82422%208.92578L10.0742%203.67578L9.25391%202.82812L4.82422%207.25781L2.74609%205.17969L1.92578%206L4.82422%208.92578ZM1.87109%201.89844C3.01953%200.75%204.39583%200.175781%206%200.175781C7.60417%200.175781%208.97135%200.75%2010.1016%201.89844C11.25%203.02865%2011.8242%204.39583%2011.8242%206C11.8242%207.60417%2011.25%208.98047%2010.1016%2010.1289C8.97135%2011.2591%207.60417%2011.8242%206%2011.8242C4.39583%2011.8242%203.01953%2011.2591%201.87109%2010.1289C0.740885%208.98047%200.175781%207.60417%200.175781%206C0.175781%204.39583%200.740885%203.02865%201.87109%201.89844Z'/%3e%3c/svg%3e",mgt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='8.5'%20cy='2.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='4.5'%20cy='6.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='2.5'%20cy='11.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='6.5'%20cy='11.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='10.5'%20cy='11.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='14.5'%20cy='11.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='2.5'%20cy='15.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='6.5'%20cy='15.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='10.5'%20cy='15.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='14.5'%20cy='15.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3ccircle%20cx='12.5'%20cy='6.5'%20r='1.5'%20fill='%231CE7C2'/%3e%3cline%20x1='8.35355'%20y1='1.64645'%20x2='13.3536'%20y2='6.64645'%20stroke='%231CE7C2'/%3e%3cline%20x1='3.64645'%20y1='6.64645'%20x2='8.64645'%20y2='1.64645'%20stroke='%231CE7C2'/%3e%3cline%20x1='12.4642'%20y1='6.8143'%20x2='14.4642'%20y2='11.8143'%20stroke='%231CE7C2'/%3e%3cline%20x1='10.5358'%20y1='11.8143'%20x2='12.5356'%20y2='6.81427'%20stroke='%231CE7C2'/%3e%3cline%20x1='2.53576'%20y1='11.8143'%20x2='4.53576'%20y2='6.8143'%20stroke='%231CE7C2'/%3e%3cline%20x1='4.46424'%20y1='6.81432'%20x2='6.46412'%20y2='11.8144'%20stroke='%231CE7C2'/%3e%3cline%20x1='2.5'%20y1='11'%20x2='2.5'%20y2='16'%20stroke='%231CE7C2'/%3e%3cline%20x1='6.5'%20y1='11'%20x2='6.5'%20y2='16'%20stroke='%231CE7C2'/%3e%3cline%20x1='10.5'%20y1='11'%20x2='10.5'%20y2='16'%20stroke='%231CE7C2'/%3e%3cline%20x1='14.5'%20y1='11'%20x2='14.5'%20y2='16'%20stroke='%231CE7C2'/%3e%3c/svg%3e",Egt="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='%23D86363'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.01469%206.00051C5.58562%206.03619%203%207.94365%203%2012C3%2012.5523%202.55228%2013%202%2013C1.44772%2013%201%2012.5523%201%2012C1%206.90007%204.41438%204.05318%207.98531%204.00073C9.74494%203.97489%2011.5153%204.63461%2012.8432%206.00502C13.8812%207.07635%2014.6101%208.5405%2014.8821%2010.3602L15.8896%208.9389C16.209%208.48833%2016.8331%208.38198%2017.2837%208.70137C17.7343%209.02075%2017.8406%209.64492%2017.5213%2010.0955L15.0678%2013.5568C14.7484%2014.0073%2014.1242%2014.1137%2013.6737%2013.7943L10.2124%2011.3408C9.76181%2011.0214%209.65546%2010.3973%209.97484%209.9467C10.2942%209.49613%2010.9184%209.38978%2011.369%209.70916L12.9263%2010.8131C12.7275%209.27771%2012.1449%208.15845%2011.4068%207.39676C10.4847%206.44507%209.25506%205.9823%208.01469%206.00051ZM6.5%2013C7.32843%2013%208%2012.3284%208%2011.5C8%2010.6716%207.32843%2010%206.5%2010C5.67157%2010%205%2010.6716%205%2011.5C5%2012.3284%205.67157%2013%206.5%2013Z'/%3e%3c/svg%3e",Igt="_small-icon_1vpxu_1",Cgt="_large-icon_1vpxu_6",H_={smallIcon:Igt,largeIcon:Cgt};function Kle({slot:e,isCurrent:t,size:n}){const r=we(GMe(e)),A=xt(H_[`${n}Icon`]);return t?p.jsx(Bgt,{size:n}):r==="incomplete"?p.jsx(Vle,{size:n}):r==="optimistically_confirmed"?p.jsx(Ei,{content:"Slot was optimistically confirmed",children:p.jsx("img",{src:pgt,alt:"optimistically_confirmed",className:A})}):r==="rooted"||r==="finalized"?p.jsx(Ei,{content:"Slot was rooted",children:p.jsx("img",{src:mgt,alt:"rooted",className:A})}):p.jsx(Ei,{content:"Slot was processed",children:p.jsx("img",{src:hgt,alt:"processed",className:A})})}function Vle({size:e}){return p.jsx("div",{className:xt(H_[`${e}Icon`])})}function Bgt({size:e}){const t=b.useRef(performance.now()),n=we(C1),[r,A]=b.useState(0);return Qee(()=>{if(r>=100)return;const i=performance.now()-t.current,a=Math.min(Math.floor(i/n*100),100);A(a)}),p.jsx(xe,{className:xt(H_[`${e}Icon`]),children:p.jsx(fgt,{value:r,styles:ggt({trailColor:Qq,pathColor:wq,pathTransition:"none"}),strokeWidth:25,maxValue:100})})}function qle({size:e}){return p.jsx(Ei,{content:"Slot was skipped",children:p.jsx("img",{src:Egt,alt:"skipped",className:xt(H_[`${e}Icon`])})})}const ygt=NI+jI,$le=4;function ece(e,t){return e*t+Math.max(0,e-1)*$le}function vgt(){const e=we(Kr),t=we(PA),[n,r]=b.useState(0),[A,i]=b.useState(0),[a,{width:c}]=Ka(),f=b.useRef(null),[h,m]=b.useState(0),I=b.useCallback(N=>{N&&requestAnimationFrame(()=>{var P;const T=c/2-(N.offsetLeft+N.offsetWidth/2);(P=f.current)==null||P.style.setProperty("--offset",`${T}px`),m(T)})},[c]),v=b.useMemo(()=>e===void 0||!t?-1:t.indexOf(Vi(e)),[t,e]),k=b.useMemo(()=>{if(v<0||!t)return;const N=Math.max(1,Math.ceil(c/2/A)),T=hn.clamp(N,1,10),P=N+T,G=t.length,Y=Math.max(0,v-P),z=Math.min(G-1,v+P),Z=G-1-z;return{leftSpacerWidth:ece(Y,A),rightSpacerWidth:ece(Z,A),startItemGroupIdx:Y,endItemGroupIdx:z}},[c,A,t,v]),{showFadeLeft:D,showFadeRight:R}=b.useMemo(()=>{var P;const N=h<0,T=(((P=f.current)==null?void 0:P.offsetWidth)??0)-c+h>0;return{showFadeLeft:N,showFadeRight:T}},[c,h]);if(!t||!k||e===void 0)return;const F=[];if(A&&n)for(let N=k.startItemGroupIdx;N<=k.endItemGroupIdx;N++){const T=[],P=t[N];for(let Y=0;Yt(A.width),children:p.jsx(f7,{slot:e[e.length-1],isSelected:!0})}),p.jsx(Wle,{onMeasured:A=>n(A.width),children:p.jsx(tce,{slot:r,children:new Array(ro).fill(0).map((A,i)=>p.jsx(f7,{slot:r-i,isSelected:!0},i))})})]})}function tce({slot:e,isSelected:t,children:n}){const r=e<(we(Df)??-1),A=e>(we(wR)??1/0),i=r||A;return p.jsx(xe,{className:xt(Hu.slotItemGroup,{[Hu.disabled]:i,[Hu.isSelected]:t}),children:n})}function f7({slot:e,isSelected:t,onSelectedSlotRef:n}){var c;el(e);const r=(c=we(RQ))==null?void 0:c.includes(e),A=e<(we(Df)??-1),i=e>=(we(wR)??1/0)+ro,a=A||i;return p.jsxs(Xg,{to:"/slotDetails",search:{slot:e},className:xt(Hu.slotItem,{[Hu.selectedSlot]:t,[Hu.skippedSlot]:r}),ref:n,disabled:a,children:[p.jsx(be,{children:e}),r?p.jsx(qle,{size:"large"}):p.jsx(Kle,{isCurrent:!1,slot:e,size:"large"})]},e)}const Qgt="_header_1tc1m_1",wgt="_subheader_1tc1m_7",xgt="_label_1tc1m_12",_gt="_value_1tc1m_18",kgt="_table-header_1tc1m_24",Sgt="_table-row-label_1tc1m_30",Dgt="_total_1tc1m_35",Rgt="_table-cell-value_1tc1m_40",Tgt="_grid_1tc1m_50",Mgt="_name_1tc1m_65",Fgt="_lg_1tc1m_68",Ngt="_copy-button_1tc1m_74",un={header:Qgt,subheader:wgt,label:xgt,value:_gt,tableHeader:kgt,tableRowLabel:Sgt,total:Dgt,tableCellValue:Rgt,grid:Tgt,name:Mgt,lg:Fgt,copyButton:Ngt},nce="20px",Y_="15px",jgt="15px",Wl="5px",td="1";function g7({title:e,children:t,...n}){return p.jsxs(xe,{direction:"column",flexBasis:"0",flexGrow:"1",gap:Y_,...n,children:[p.jsxs(rr,{children:[p.jsx(be,{className:un.header,children:e}),p.jsx(I2,{my:"0"})]}),t]})}function gA({title:e,children:t,...n}){return p.jsxs(xe,{direction:"column",...n,children:[p.jsx(be,{className:un.subheader,mb:"5px",children:e}),t]})}const Ogt=P0;function Lgt(){const e=we(Kr),t=Pl(e),n=b.useMemo(()=>{var i;if((i=t==null?void 0:t.response)!=null&&i.transactions)return t.response.transactions.txn_compute_units_consumed.reduce((a,c,f)=>{var I,v,k,D;const h=!!((v=(I=t.response)==null?void 0:I.transactions)!=null&&v.txn_is_simple_vote[f]),m=(D=(k=t.response)==null?void 0:k.transactions)==null?void 0:D.txn_from_bundle[f];return h?a.vote+=c:m?a.bundle+=c:a.other+=c,a},{vote:0,bundle:0,other:0})},[t]);if(!n)return;const r=n.vote+n.bundle+n.other,A=Math.max(n.vote,n.bundle,n.other);return p.jsx(gA,{title:"Consumed Compute Units",children:p.jsxs(lA,{columns:"repeat(5, auto) minmax(80px, 100%)",gapX:Wl,gapY:td,children:[p.jsx(h7,{label:"Vote",cus:n.vote,totalCus:r,maxCus:A,pctColor:L0}),p.jsx(h7,{label:"Bundle",cus:n.bundle,totalCus:r,maxCus:A,pctColor:Ogt}),p.jsx(h7,{label:"Other",cus:n.other,totalCus:r,maxCus:A,pctColor:Qf})]})})}function h7({label:e,cus:t,totalCus:n,maxCus:r,pctColor:A}){const i=Math.round(n?t/n*100:0),a=Math.round(r?t/r*100:0);return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:un.label,children:e}),p.jsx(be,{className:un.value,style:{color:A},align:"right",children:t.toLocaleString()}),p.jsx(be,{className:un.value,children:"/"}),p.jsx(be,{className:un.value,style:{color:lh},align:"right",children:n.toLocaleString()}),p.jsxs(be,{className:un.value,align:"right",children:[i,"%"]}),p.jsx("svg",{height:"8",width:"100%",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{alignSelf:"center"},children:p.jsx("rect",{height:"8",width:`${a}%`,opacity:.6,fill:A})})]})}function z_({value:e,total:t,valueColor:n,showBackground:r}){const A=Math.round(t?e/t*100:0);return p.jsx(p.Fragment,{children:p.jsxs("svg",{height:"8",width:"100%",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{alignSelf:"center"},children:[p.jsx("rect",{height:"8",width:`${A}%`,opacity:.6,fill:n}),r&&p.jsx("rect",{height:"8",width:`${100-A}%`,x:`${A}%`,opacity:.2,fill:n})]})})}function NB({label:e,value:t,total:n,valueColor:r,labelWidth:A,numeratorColor:i=!0,pctColor:a=!1}){const c=Math.round(n?t/n*100:0);return p.jsxs(p.Fragment,{children:[p.jsx(IT,{content:A?e:void 0,children:p.jsx(be,{className:un.label,truncate:!0,style:{width:A},children:e})}),p.jsx(be,{className:un.value,style:{color:i?r:void 0},align:"right",children:t.toLocaleString()}),p.jsx(be,{className:un.value,children:"/"}),p.jsx(be,{className:un.value,align:"right",children:n.toLocaleString()}),p.jsxs(be,{className:un.value,style:{color:a?r:void 0},align:"right",children:[c,"%"]}),p.jsx(z_,{value:t,total:n,valueColor:r,showBackground:!0})]})}function Pgt(){const e=we(Kr),t=Du(e).response;if(!t)return;const{limits:n}=t;if(n)return p.jsx(gA,{title:"Protocol Limit Utilization",children:p.jsxs(lA,{columns:"repeat(5, auto) minmax(80px, 100%)",gapX:Wl,gapY:td,children:[p.jsx(NB,{label:"Block cost",value:n.used_total_block_cost??0,total:n.max_total_block_cost??0,valueColor:lh}),p.jsx(NB,{label:"Vote cost",value:n.used_total_vote_cost??0,total:n.max_total_vote_cost??0,valueColor:L0}),p.jsx(NB,{label:"Bytes",value:n.used_total_bytes??0,total:n.max_total_bytes??0,valueColor:"#A35829"}),p.jsx(NB,{label:"Microblocks",value:n.used_total_microblocks??0,total:n.max_total_microblocks??0,valueColor:"#9EB1FF"})]})})}function Ugt(){const e=we(Kr),t=Du(e).response;if(!t)return;const{limits:n}=t;if(n)return p.jsx(gA,{title:"Top 5 Busy Accounts",children:p.jsx(lA,{columns:"repeat(5, auto) minmax(80px, 100%)",gapX:Wl,gapY:td,children:n.used_account_write_costs.map(({account:r,cost:A})=>p.jsx(NB,{label:r,labelWidth:"80px",value:A,total:n.max_account_write_cost,valueColor:"#30A46C",numeratorColor:!1,pctColor:!0},r))})})}const Ggt="_text_mwquj_1",Hgt={text:Ggt};function Yu({children:e,...t}){return p.jsx(be,{...t,className:xt(Hgt.text,t.className),children:e})}const p7={preLoading:0,validating:0,loading:0,execute:0,postExecute:0,total:0};function m7(e){return Object.values(e).reduce((t,n)=>t+n,0)}function Ygt(){var f;const e=we(qi),t=we(Kr),n=(f=Pl(t).response)==null?void 0:f.transactions,r=b.useMemo(()=>{if(!n)return;const h={...p7},m={...p7},I={...p7};for(let v=0;v{F.preLoading+=Number(N.preLoading),F.validating+=Number(N.validating),F.loading+=Number(N.loading),F.execute+=Number(N.execute),F.postExecute+=Number(N.postExecute)};n.txn_landed[v]?n.txn_error_code[v]===0?R(m,D):R(I,D):R(h,D)}return h.total=m7(h),m.total=m7(m),I.total=m7(I),{unlanded:h,landedSuccess:m,landedFailed:I,max:Math.max(h.total,m.total,I.total)}},[n,e]);if(!r)return;const{unlanded:A,landedSuccess:i,landedFailed:a,max:c}=r;return p.jsx(gA,{title:"Cumulative Execution Time",children:p.jsxs(lA,{columns:"repeat(7, auto)",gapX:Wl,gapY:td,children:[p.jsx("div",{}),p.jsx(be,{className:un.tableHeader,style:{gridColumn:"span 2"},children:"Success+Landed"}),p.jsx(be,{className:un.tableHeader,style:{gridColumn:"span 2"},children:"Failed+Landed"}),p.jsx(be,{className:un.tableHeader,style:{gridColumn:"span 2"},children:"Unlanded"}),p.jsx(pm,{label:"Preloading",landedSuccess:i.preLoading,landedFailed:a.preLoading,unlanded:A.preLoading,max:c}),p.jsx(pm,{label:"Validating",landedSuccess:i.validating,landedFailed:a.validating,unlanded:A.validating,max:c}),p.jsx(pm,{label:"Loading",landedSuccess:i.loading,landedFailed:a.loading,unlanded:A.loading,max:c}),p.jsx(pm,{label:"Execute",landedSuccess:i.execute,landedFailed:a.execute,unlanded:A.execute,max:c}),p.jsx(pm,{label:"Post-Execute",landedSuccess:i.postExecute,landedFailed:a.postExecute,unlanded:A.postExecute,max:c}),p.jsx(pm,{label:"Total",landedSuccess:i.total,landedFailed:a.total,unlanded:A.total,max:c,isTotal:!0})]})})}function pm({label:e,landedSuccess:t,landedFailed:n,unlanded:r,max:A,isTotal:i}){const a=i?"#28684A":"#174933",c=i?"#8C333A":"#611623",f=i?"#12677E":"#004558",h=Ia(t),m=Ia(n),I=Ia(r);return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:xt(un.tableRowLabel,i&&un.total),children:e}),p.jsxs(be,{className:xt(un.tableCellValue,i&&un.total),align:"right",children:[h.value,p.jsx(Yu,{children:h.unit})]}),p.jsx(z_,{value:t,total:A,valueColor:a}),p.jsxs(be,{className:xt(un.tableCellValue,i&&un.total),align:"right",children:[m.value,p.jsx(Yu,{children:m.unit})]}),p.jsx(z_,{value:n,total:A,valueColor:c}),p.jsxs(be,{className:xt(un.tableCellValue,i&&un.total),align:"right",children:[I.value,p.jsx(Yu,{children:I.unit})]}),p.jsx(z_,{value:r,total:A,valueColor:f})]})}function zgt(){var i;const e=we(qi),t=we(Kr),n=(i=Pl(t).response)==null?void 0:i.transactions,r=b.useMemo(()=>{if(!n)return;const{vote:a,nonVote:c,bundle:f}={vote:{count:0,total:0,min:1/0,max:-1/0},nonVote:{count:0,total:0,min:1/0,max:-1/0},bundle:{count:0,total:0,min:1/0,max:-1/0}};for(let h=0;hNumber(k)));n.txn_is_simple_vote[h]?(a.total+=v,a.count++,a.min=Math.min(a.min,v),a.max=Math.max(a.max,v)):(c.total+=v,c.count++,c.min=Math.min(c.min,v),c.max=Math.max(c.max,v)),n.txn_from_bundle[h]&&(f.total+=v,f.count++,f.min=Math.min(f.min,v),f.max=Math.max(f.max,v))}return{vote:a.total/a.count,nonVote:c.total/c.count,bundle:f.total/f.count,voteMin:a.min,voteMax:a.max,nonVoteMin:c.min,nonVoteMax:c.max,bundleMin:f.min,bundleMax:f.max}},[n,e]);if(!r)return;const A=Math.max(r.voteMax,r.nonVoteMax,r.bundleMax);return p.jsx(gA,{title:"Execution Time (min / avg / max)",children:p.jsxs(lA,{columns:"repeat(7, auto)",gapX:Wl,gapY:td,children:[p.jsx(I7,{label:"Vote",value:r.vote,color:L0,max:A,minValue:r.voteMin,maxValue:r.voteMax}),p.jsx(I7,{label:"Non-vote",value:r.nonVote,color:Qf,max:A,minValue:r.nonVoteMin,maxValue:r.nonVoteMax}),p.jsx(I7,{label:"Bundle",value:r.bundle,color:"var(--purple-9)",max:A,minValue:r.bundleMin,maxValue:r.bundleMax})]})})}const rce=4,J_=`${rce}px`;function E7(e){return`clamp(0px, calc(${e}% - ${rce/2}px), calc(100% - ${J_}))`}function I7({label:e,value:t,max:n,minValue:r,maxValue:A}){const i=t/n*100,a=r/n*100,c=A/n*100,f=Ia(t),h=Ia(r),m=Ia(A);return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:un.label,children:e}),p.jsxs(be,{className:un.value,style:{color:"#6E56CF"},align:"right",children:[h.value,p.jsx(Yu,{children:h.unit})]}),p.jsx(be,{className:un.value,children:"/"}),p.jsxs(be,{className:un.value,style:{color:"#BAA7FF"},align:"right",children:[f.value,p.jsx(Yu,{children:f.unit})]}),p.jsx(be,{className:un.value,children:"/"}),p.jsxs(be,{className:un.value,style:{color:"#6E56CF"},align:"right",children:[m.value,p.jsx(Yu,{children:m.unit})]}),p.jsxs("svg",{height:"13",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{alignSelf:"center",width:"100%"},children:[p.jsx("rect",{height:"10%",y:"45%",width:"100%",opacity:.6,fill:"#313131"}),p.jsx("rect",{height:"80%",y:"10%",x:E7(a),width:J_,fill:"#56468B"}),p.jsx("rect",{height:"80%",y:"10%",x:E7(c),width:J_,fill:"#56468B"}),p.jsx("rect",{height:"80%",y:"10%",x:E7(i),width:J_,fill:"#BAA7FF"})]})]})}function Jgt(){return p.jsxs(g7,{title:"Compute",flexGrow:"2",children:[p.jsx(Pgt,{}),p.jsx(Lgt,{}),p.jsx(Ugt,{}),p.jsx(Ygt,{}),p.jsx(zgt,{})]})}function Zl(e,t=Es,n){if(!e)return"0";const r=Number(e)/If;return r<1?r.toFixed(t):dT(r,n??{useSuffix:!0,significantDigits:4,trailingZeroes:!1,decimalsOnZero:!1})}const C7=1e8;function Wgt(){const e=we(Kr),t=Pl(e),n=b.useMemo(()=>{var I;const a=(I=t==null?void 0:t.response)==null?void 0:I.transactions;if(!a)return;const{tips:c,fees:f}=a.txn_transaction_fee.reduce((v,k,D)=>(v.fees+=Number(CR(a,D)),v.tips+=Number(BR(a,D)),v),{tips:0,fees:0}),h=c+f,m=c*.06;return{tips:c,fees:f,maxValue:h>C7?h+m:C7}},[t]);if(!n)return;const{tips:r,fees:A,maxValue:i}=n;return p.jsx(gA,{title:"Fee Breakdown",children:p.jsxs(lA,{columns:"repeat(3, auto)",gapX:Wl,gapY:td,children:[p.jsx(Zgt,{label:"Tips",value:r,total:i,color:xf}),p.jsx(Xgt,{label:"Fees",value:A,total:i,color:f1}),p.jsx(Kgt,{tips:r,fees:A})]})})}function Zgt({label:e,value:t,total:n,color:r}){const A=n>0?t/n*100:0,i=t*.06,a=n>0?i/n*100:0;return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:un.label,children:e}),p.jsx(be,{className:un.value,style:{color:r},align:"right",children:`${Zl(t??0n,Es,{decimals:Es,trailingZeroes:!0})} SOL`}),p.jsxs(xe,{children:[p.jsxs("svg",{height:"8",width:`${A+a}%`,fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{alignSelf:"center"},children:[p.jsx("rect",{height:"8",width:`${100/106*100}%`,opacity:.6,fill:r}),p.jsx("rect",{height:"8",x:`${100/106*100}%`,width:`${6/106*100}%`,opacity:.6,fill:"#FFC53D"})]}),p.jsx(be,{className:un.label,style:{marginLeft:Wl},children:"Commission\xA0"}),p.jsxs(be,{className:un.value,style:{color:"#FFC53D"},children:["-",`${Zl(i??0n,Es,{decimals:Es,trailingZeroes:!0})} SOL`]})]})]})}function Xgt({label:e,value:t,total:n,color:r}){const A=n>0?t/n*100:0;return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:un.label,children:e}),p.jsx(be,{className:un.value,style:{color:r},align:"right",children:`${Zl(t??0n,Es,{decimals:Es,trailingZeroes:!0})} SOL`}),p.jsx("svg",{height:"8",width:"100%",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{alignSelf:"center"},children:p.jsx("rect",{height:"8",width:`${A}%`,opacity:.6,fill:r})})]})}function Kgt({tips:e,fees:t}){const n=e+t,r=Math.max(C7,n),A=n/r*100,i=e/r*100,a=t/r*100;return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:un.label,children:"Income"}),p.jsx(be,{className:un.value,style:{color:g1},align:"right",children:`${Zl(n,Es,{decimals:Es,trailingZeroes:!0})} SOL`}),p.jsxs("svg",{height:"10",width:"100%",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{alignSelf:"center"},children:[p.jsx("rect",{height:"100%",width:`${i}%`,opacity:.6,fill:xf}),p.jsx("rect",{height:"100%",x:`${i}%`,width:`${a}%`,opacity:.6,fill:f1}),p.jsx("rect",{height:"100%",x:`${i}%`,width:1,opacity:.6,fill:"black"}),p.jsx("rect",{height:"9",width:`${A}%`,x:.5,y:.5,opacity:1,stroke:g1,strokeWidth:1})]})]})}const Vgt="_container_1ckli_1",qgt="_label_1ckli_5",$gt="_clickable_1ckli_12",B7={container:Vgt,label:qgt,clickable:$gt},oce=["#003362","#113B29","#3F2700","#202248","#33255B"],y7=5e3;function W_({data:e,showPct:t,sort:n,onItemClick:r}){const A=e.reduce((c,{value:f})=>c+f,0);let i=n?e.toSorted((c,f)=>f.value-c.value):e,a=0;if(i.length>y7){for(let c=y7;cp.jsx(xe,{width:`${f}px`,height:`${c}px`,children:i.map(({value:h,label:m},I)=>{const v=oce[I%oce.length],k=h/A,D=k*100,R=D>1?`${Math.round(D)}%`:`${D.toFixed(2)}%`,F=k*f>30;return p.jsx(Ei,{content:p.jsxs(p.Fragment,{children:[p.jsx(be,{weight:"bold",children:m}),p.jsx("br",{}),p.jsx(be,{children:`Income: ${Zl(h,tDe)} SOL (${R})`})]}),side:"bottom",disableHoverableContent:!0,children:r?p.jsx(xe,{asChild:!0,className:B7.clickable,minWidth:"0",align:"center",justify:"center",flexBasis:"0",style:{background:v,flexGrow:h},children:p.jsx("button",{"aria-label":`Filter by ${m} (${R})`,onClick:()=>r({label:m,value:h}),children:F&&p.jsx(ice,{label:m,showPct:t,formattedPct:R})})}):p.jsx(xe,{minWidth:"0",align:"center",justify:"center",flexBasis:"0",style:{background:v,flexGrow:h},children:F&&p.jsx(ice,{label:m,showPct:t,formattedPct:R})})},m)})})})})}function ice({label:e,showPct:t,formattedPct:n}){return p.jsxs(be,{mx:"2",className:B7.label,truncate:!0,children:[e,t&&` ${n}`]})}function eht({transactions:e}){const t=b.useMemo(()=>{const n=e.txn_signature.map((r,A)=>({value:Number(U0(e,A)),label:r}));return Object.values(hn.groupBy(n,({label:r})=>r)).map(r=>({label:r[0].label,value:hn.sum(r.map(({value:A})=>A))}))},[e]);return p.jsx(gA,{title:"Income Distribution by Txn",children:p.jsx(W_,{data:t,sort:!0})})}function tht({transactions:e}){const t=b.useMemo(()=>{const n=e.txn_source_ipv4.map((r,A)=>({value:Number(U0(e,A)),label:r}));return Object.values(hn.groupBy(n,({label:r})=>r)).map(r=>({label:r[0].label,value:hn.sum(r.map(({value:A})=>A))}))},[e]);return p.jsx(gA,{title:"Income Distribution by IP Address",children:p.jsx(W_,{data:t,sort:!0})})}const v7="Bundle";function nht({transactions:e}){const{triggerControl:t}=b.useContext(A7),n=b.useMemo(()=>{const A=e.txn_from_bundle.map((i,a)=>({value:Number(U0(e,a)),label:i?v7:"Other"}));return Object.values(hn.groupBy(A,({label:i})=>i)).map(i=>({label:i[0].label,value:hn.sum(i.map(({value:a})=>a))})).sort((i,a)=>i.label===v7?-1:1)},[e]),r=b.useCallback(({label:A})=>t(kle,A===v7?"Yes":"No"),[t]);return p.jsx(gA,{title:"Income Distribution by Bundle",children:p.jsx(W_,{data:n,showPct:!0,onItemClick:r})})}function rht(e,t=[1,10]){const n=e.length;if(n===0)return;e=e.toSorted((h,m)=>m-h);const r=new Array(n+1);r[0]=0;for(let h=0;hhn.clamp(h,0,100)))).sort((h,m)=>h-m),a=h=>h<=0?0:h>=100?n:hn.clamp(Math.ceil(h/100*n),0,n),c={},f=[0,...i,100];for(let h=1;hNumber(U0(e,A)),[]),n=rht(t);if(n!==void 0)return Object.entries(n).map(([r,A])=>({value:A,label:r}))}function iht({transactions:e}){const t=b.useMemo(()=>oht(e),[e]);if(t)return p.jsx(gA,{title:"Income Distribution by Percent Txns",children:p.jsx(W_,{data:t})})}function Aht(){var n;const e=we(Kr),t=(n=Pl(e).response)==null?void 0:n.transactions;if(t)return p.jsxs(p.Fragment,{children:[p.jsx(iht,{transactions:t}),p.jsx(nht,{transactions:t}),p.jsx(eht,{transactions:t}),p.jsx(tht,{transactions:t})]})}function sht(e,t){const n=parseInt(e.substring(1,3),16),r=parseInt(e.substring(3,5),16),A=parseInt(e.substring(5,7),16);return`rgba(${n}, ${r}, ${A}, ${t})`}const b7="cuX";function Ace({data:e,id:t,xLogScale:n=!1,xScaleOptions:r}){const A=b.useMemo(()=>({width:0,height:0,padding:[10,15,0,15],scales:{[b7]:{time:!1,distr:n?3:void 0},[Zf]:{time:!1,distr:3}},axes:[{scale:b7,border:{show:!0,width:1/devicePixelRatio,stroke:ei},stroke:ei,grid:{show:!1},values:(i,a)=>a.map(c=>{if(r){const{scaledToX:f,negMin:h,posMax:m}=r;return Math.round(f(c,h,m)).toLocaleString()}return c&&C7e.format(c)}),size:20,gap:0,font:"8px Inter Tight"},{scale:Zf,stroke:ei,grid:{show:!1},border:{show:!0,width:1/devicePixelRatio,stroke:ei},show:!1}],series:[{scale:b7},{scale:Zf,stroke:void 0,points:{show:!0,size:5,fill:sht(g1,.3),space:0}}],legend:{show:!1},hooks:{draw:[i=>{var a;i.ctx.save(),i.ctx.fillStyle=ei,i.ctx.font="18px Inter Tight",i.ctx.textAlign="left",i.ctx.fillText(`${(((a=i.scales[Zf])==null?void 0:a.max)??0)/If} SOL`,0,0),i.ctx.restore()}]}}),[n,r]);return p.jsx(rr,{flexGrow:"1",children:p.jsx(rl,{children:({height:i,width:a})=>(A.width=a,A.height=i,p.jsx(Bh,{id:t,options:A,data:e}))})})}function aht(e){return e==null?void 0:e.txn_compute_units_consumed.map((t,n)=>({cu:t,i:n})).sort((t,n)=>t.cu-n.cu).reduce((t,{cu:n,i:r})=>{const A=Number(U0(e,r));return!A||!n||(t[0].push(n),t[1].push(A)),t},[[],[]])}function lht(e,t,n){return e<=0?.5*(e-t)/-t:.5+.5*(e/n)}function cht(e,t,n){return e<=.5?t+e/.5*-t:(e-.5)/.5*n}function uht(e){if(!e)return;const t=e.txn_arrival_timestamps_nanos.map((A,i)=>({tsNanos:A,i})).sort((A,i)=>Number(A.tsNanos-i.tsNanos)).reduce((A,{tsNanos:i,i:a})=>{const c=Number(i-e.start_timestamp_nanos)/1e6,f=Number(U0(e,a));return f&&(A[0].push(c),A[1].push(f??0)),A},[[],[]]),n=t[0][0],r=t[0][t[0].length-1];return t[0]=t[0].map(A=>lht(A,n,r)),{min:n,max:r,chartData:t}}function dht(){var a,c;const e=we(Kr),t=(a=Pl(e).response)==null?void 0:a.transactions,n=Pl(e),r=b.useMemo(()=>aht(t),[t]),A=b.useMemo(()=>uht(t),[t]),i=b.useMemo(()=>{if(A)return{scaledToX:cht,negMin:A.min,posMax:A.max}},[A]);if(!(!((c=n.response)!=null&&c.transactions)||!r||!A))return p.jsxs(xe,{flexGrow:"1",minWidth:"300px",minHeight:"150px",gap:jgt,children:[p.jsx(gA,{title:"Compute Units vs Income",flexGrow:"1",children:p.jsx(Ace,{id:"cuIncomeScatterChart",data:r,xLogScale:!0})}),p.jsx(gA,{title:"Arrival Time vs Income",flexGrow:"1",children:p.jsx(Ace,{id:"arrivalIncomeScatterChart",data:A.chartData,xScaleOptions:i})})]})}function fht(){return p.jsxs(g7,{title:"Fees",flexGrow:"2",children:[p.jsx(Wgt,{}),p.jsx(Aht,{}),p.jsx(dht,{})]})}function ght(){var n;const e=we(Kr),t=(n=Pl(e).response)==null?void 0:n.transactions;if(t)return p.jsxs(p.Fragment,{children:[p.jsx(gA,{title:"CUs vs Txn Execution Duration",minWidth:"200px",minHeight:"100px",flexGrow:"1",children:p.jsx(Eht,{transactions:t})}),p.jsx(gA,{title:"Transaction Count vs Txn Execution Duration",minWidth:"200px",minHeight:"100px",flexGrow:"1",children:p.jsx(mht,{transactions:t})})]})}const jB=20;let Q7=0;const hht=(e,t,n)=>t.map((r,A)=>{const i=r/jB*Q7,a=Ia(i);return`${a.value} ${a.unit}`}),pht=((P0e=(T6=Vr.paths)==null?void 0:T6.bars)==null?void 0:P0e.call(T6,{size:[.8]}))??(()=>({stroke:new Path2D,fill:new Path2D}));function sce({data:e,log:t,id:n}){const r=b.useMemo(()=>({width:0,height:0,scales:{duration:{time:!1},y:{auto:!0}},series:[{scale:"duration"},{label:"Count",points:{show:!1},fill:"#3C2E69",paths:pht}],axes:[{scale:"duration",splits:[0,e[0].length-1],values:hht,label:"Txn Execution Duration",stroke:"#B4B4B4",grid:{show:!1},size:10,gap:0,font:"8px Inter Tight",labelFont:"8px Inter Tight",labelGap:0,labelSize:10},{stroke:"#B4B4B4",values:(A,i)=>t?i.map(a=>Math.trunc(Math.exp(a))):i,gap:0,font:"8px Inter Tight",size(A,i,a,c){var I,v;const f=A.axes[a];if(c>1)return f._size;let h=((I=f.ticks)==null?void 0:I.size)??0+(f.gap??0);h+=5;const m=(i??[]).reduce((k,D)=>`${D}`.length>k.length?`${D}`:k,"");return m!==""&&(A.ctx.font=((v=f.font)==null?void 0:v[0])??"8px Inter Tight",h+=A.ctx.measureText(m).width/devicePixelRatio),Math.ceil(h)}}],legend:{show:!1}}),[e,t]);return p.jsx(rr,{flexGrow:"1",children:p.jsx(rl,{children:({height:A,width:i})=>(r.width=i,r.height=A,p.jsx(Bh,{id:n,options:r,data:e}))})})}function mht({transactions:e}){const t=b.useMemo(()=>{const n=e.txn_landed.map((i,a)=>Number(e.txn_mb_end_timestamps_nanos[a]-e.txn_mb_start_timestamps_nanos[a])).filter(i=>i),r=h1(n)+1;Q7=r;let A=new Array(jB).fill(0);for(const i of n){const a=Math.trunc(i/r*jB);A[a]++}return A=A.map(i=>Math.log(i+1)),[A.map((i,a)=>a),A]},[e]);return p.jsx(sce,{data:t,id:"txnExecutionDurationCount",log:!0})}function Eht({transactions:e}){const t=b.useMemo(()=>{const n=e.txn_landed.map((a,c)=>({duration:Number(e.txn_mb_end_timestamps_nanos[c]-e.txn_mb_start_timestamps_nanos[c]),cu:e.txn_compute_units_consumed[c]})).filter(ZI),r=h1(n.map(({duration:a})=>a))+1;Q7=r;const A=new Array(jB).fill(0).map(a=>({count:0,cus:0}));for(const{duration:a,cu:c}of n){const f=Math.trunc(a/r*jB);A[f].count++,A[f].cus+=c}const i=A.map(({count:a,cus:c})=>a?c/a:0);return[i.map((a,c)=>c),i]},[e]);return p.jsx(sce,{data:t,id:"txnExecutionDurationCu"})}function Iht(){var c;const e=we(qi),t=we(C1),n=we(Kr),r=we(PA),A=(c=Du(n).response)==null?void 0:c.scheduler_stats,i=b.useMemo(()=>{if(n===void 0||!r)return;const f=Vi(n),h=r.indexOf(f)-1;if(!(h<0))return r[h]+ro-1},[r,n]);if(n===void 0)return;const a=i?Tr.fromMillis(t*(n-i)).rescale():void 0;return p.jsx(gA,{title:"Scheduler",children:p.jsxs(xe,{direction:"column",gap:td,children:[p.jsxs(xe,{gap:Wl,children:[p.jsx(be,{className:un.label,children:"Time Since Last Leader Group"}),p.jsx(be,{className:un.value,children:kf(a)})]}),e!==Ci.Frankendancer&&p.jsxs(xe,{gap:Wl,children:[p.jsx(be,{className:un.label,children:"End slot reason"}),p.jsx(be,{className:un.value,children:A==null?void 0:A.end_slot_reason})]})]})})}function Cht(){const e=we(qI),{queryIdleData:t}=CM();return p.jsx(gA,{title:"CPU Utilization",children:p.jsxs(xe,{direction:"column",gap:"5px",children:[p.jsx(ma,{header:"pack",tileCount:e.pack,queryIdlePerTile:t==null?void 0:t.pack,statLabel:"Full",metricType:"pack",isDark:!0,isNarrow:!0}),p.jsx(ma,{header:"execle",tileCount:e.execle,queryIdlePerTile:t==null?void 0:t.execle,statLabel:"TPS",metricType:"bank",isDark:!0,isNarrow:!0})]})})}function Bht(e){function t(n,r,A){return e(A),!0}return MF({elId:"pack-buffer-chart-tooltip",showOnCursor:t})}function yht({data:e}){return p.jsx(UF,{elId:"pack-buffer-chart-tooltip",children:e&&p.jsxs(lA,{columns:"auto auto",gapX:"2",children:[p.jsx(Z_,{label:"Regular",value:e.regular,color:Qf}),p.jsx(Z_,{label:"Votes",value:e.votes,color:L0}),p.jsx(Z_,{label:"Conflicting",value:e.conflicting,color:hw}),p.jsx(Z_,{label:"Bundles",value:e.bundles,color:xf})]})})}function Z_({label:e,value:t,color:n}){return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:un.label,children:e}),p.jsx(be,{className:un.value,style:{color:n},children:t.toLocaleString()})]})}const w7="packX",mm="packTxnsY";function vht(){var f;const e=we(Kr),t=Du(e).response,[n,r]=b.useState(),A=t==null?void 0:t.scheduler_counts,i=b.useMemo(()=>{var I;const h=(I=t==null?void 0:t.transactions)==null?void 0:I.start_timestamp_nanos;if(!A||!h)return;const m=[[],[],[],[],[]];for(let v=0;v({width:0,height:0,padding:[0,0,0,0],drawOrder:["axes","series"],cursor:{},scales:{[w7]:{time:!1},[mm]:{}},axes:[{scale:w7,border:{show:!0,width:1/devicePixelRatio},stroke:ei,grid:{width:1/devicePixelRatio},ticks:{width:1/devicePixelRatio,stroke:ei,size:5},values:(h,m)=>m.map(I=>I/1e6+"ms"),space:100,size:20,font:"8px Inter Tight"},{scale:mm,border:{show:!0,width:1/devicePixelRatio,stroke:ei},stroke:ei,grid:{width:1/devicePixelRatio},ticks:{width:1/devicePixelRatio,stroke:ei,size:5},space:50,font:"8px Inter Tight",size(h,m,I,v){var F,N;const k=h.axes[I];if(v>1)return k._size;let D=((F=k.ticks)==null?void 0:F.size)??0+(k.gap??0);D+=5;const R=(m??[]).reduce((T,P)=>P.length>T.length?P:T,"");return R!==""&&(h.ctx.font=((N=k.font)==null?void 0:N[0])??"Inter Tight",D+=h.ctx.measureText(R).width/devicePixelRatio),Math.ceil(D)}}],series:[{scale:w7},{label:"Regular",stroke:Qf,points:{show:!1},width:2/devicePixelRatio,scale:mm},{label:"Votes",stroke:L0,points:{show:!1},width:2/devicePixelRatio,scale:mm},{label:"Conflicting",stroke:hw,points:{show:!1},width:2/devicePixelRatio,scale:mm},{label:"Bundles",stroke:xf,points:{show:!1},width:2/devicePixelRatio,scale:mm}],legend:{show:!1},plugins:[_F(),FF({factor:.75}),Bht(r),OF()]}),[]);if(!i)return;const c=n!==void 0?A==null?void 0:A[n]:void 0;return p.jsxs(gA,{title:"Pack Txns Buffer Utilization",flexGrow:"1",minWidth:"150px",minHeight:"150px",children:[p.jsx(rr,{height:"100%",children:p.jsx(rl,{children:({height:h,width:m})=>(a.width=m,a.height=h,p.jsx(p.Fragment,{children:p.jsx(Bh,{id:"packBufferChart",options:a,data:i})}))})}),p.jsx(yht,{data:c})]})}function bht(){var n;const e=we(Kr),t=(n=el(e).publish)==null?void 0:n.duration_nanos;return p.jsx(gA,{title:"Slot Duration",children:p.jsxs(xe,{gap:Wl,children:[p.jsx(be,{className:un.label,children:"Actual"}),t!=null&&p.jsx(be,{className:un.value,children:`${(t/1e6).toFixed(2)}ms`})]})})}const Qht=["success","fail_taken","fail_fast_path","fail_byte_limit","fail_write_cost","fail_slow_path","fail_defer_skip"];function wht(){var f,h,m;const e=we(Kr),t=(f=Du(e).response)==null?void 0:f.scheduler_stats;if(!t)return;const{slot_schedule_counts:n,end_slot_schedule_counts:r,pending_smallest_bytes:A,pending_smallest_cost:i,pending_vote_smallest_bytes:a,pending_vote_smallest_cost:c}=t;return p.jsxs(p.Fragment,{children:[p.jsx(gA,{title:"Txn Schedule Outcomes",children:p.jsxs(lA,{columns:"repeat(3, 1fr)",gapX:Wl,gapY:td,children:[p.jsx(be,{className:un.label,children:"Outcome"}),p.jsx(be,{className:un.tableHeader,align:"right",children:"Txn Count"}),p.jsx(be,{className:un.tableHeader,align:"right",children:"Txn Count (End)"}),n.map((I,v)=>{const k=Qht[v];return p.jsxs(p.Fragment,{children:[p.jsx(be,{className:un.label,children:k}),p.jsx(be,{className:un.value,align:"right",children:I.toLocaleString()}),p.jsx(be,{className:un.value,align:"right",children:r[v].toLocaleString()})]},k)})]})}),p.jsx(gA,{title:"Smallest Pending Txn",children:p.jsxs(lA,{columns:"repeat(3, 1fr)",gapX:Wl,gapY:td,children:[p.jsx("div",{}),p.jsx(be,{className:un.tableHeader,align:"right",children:"CU Cost"}),p.jsx(be,{className:un.tableHeader,align:"right",children:"Size"}),p.jsx(be,{className:un.label,children:"Non-vote"}),p.jsx(be,{className:un.value,align:"right",children:(i==null?void 0:i.toLocaleString())??0}),p.jsx(be,{className:un.value,align:"right",children:A!=null?(h=uh(A))==null?void 0:h.toString():0}),p.jsx(be,{className:un.label,children:"Vote"}),p.jsx(be,{className:un.value,align:"right",children:(c==null?void 0:c.toLocaleString())??0}),p.jsx(be,{className:un.value,align:"right",children:a!=null?(m=uh(a))==null?void 0:m.toString():0})]})})]})}function xht(){return p.jsx(g7,{title:"Performance",flexGrow:"3",children:p.jsxs(xe,{direction:{xs:"row",initial:"column"},gapX:nce,gapY:Y_,flexGrow:"1",children:[p.jsxs(xe,{direction:"column",gap:Y_,flexBasis:"0",flexGrow:"1",children:[p.jsx(Iht,{}),p.jsx(wht,{}),p.jsx(vht,{})]}),p.jsxs(xe,{direction:"column",gap:Y_,flexBasis:"0",flexGrow:"1",children:[p.jsx(bht,{}),p.jsx(ght,{}),p.jsx(Cht,{})]})]})})}const qf="5px";function _ht(){var h,m,I,v;const e=we(Kr),{countryCode:t,countryFlag:n,cityName:r}=pa(e??0),A=we(Ri),i=el(e).publish,a=Yo("(min-width: 1420px)"),c=Yo("(min-width: 600px)"),f=b.useMemo(()=>a?"minmax(300px, max-content) minmax(228px, max-content) minmax(200px, max-content) minmax(150px, max-content) minmax(160px, max-content)":c?"2":"1",[a,c]);return e===void 0?null:p.jsxs(lA,{className:un.grid,align:a?"center":"start",justify:"between",columns:f,gapX:"12px",gapY:qf,children:[p.jsx(kht,{slot:e,isLgScreen:a}),p.jsxs(xe,{direction:"column",gap:qf,children:[p.jsx($f,{label:"City",value:r&&t?`${r}, ${t}`:"Unknown",icon:n,vertical:!a}),p.jsx($f,{label:"Epoch",value:A==null?void 0:A.epoch,vertical:!a})]}),a?p.jsxs(xe,{direction:"column",gapX:qf,gapY:qf,children:[p.jsx(lce,{slotCompletedTimeNanos:i==null?void 0:i.completed_time_nanos}),p.jsx(cce,{slot:e})]}):p.jsxs(p.Fragment,{children:[p.jsx(lce,{slotCompletedTimeNanos:i==null?void 0:i.completed_time_nanos,vertical:!0}),p.jsx(cce,{slot:e,vertical:!0})]}),p.jsxs(xe,{direction:"column",gap:qf,children:[p.jsx($f,{label:"Votes",value:(h=i==null?void 0:i.success_vote_transaction_cnt)==null?void 0:h.toLocaleString()}),p.jsx($f,{label:"Vote Failures",value:(m=i==null?void 0:i.failed_vote_transaction_cnt)==null?void 0:m.toLocaleString()})]}),p.jsxs(xe,{direction:"column",gap:qf,children:[p.jsx($f,{label:"Non-votes",value:(I=i==null?void 0:i.success_nonvote_transaction_cnt)==null?void 0:I.toLocaleString()}),p.jsx($f,{label:"Non-vote Failures",value:(v=i==null?void 0:i.failed_nonvote_transaction_cnt)==null?void 0:v.toLocaleString()})]})]})}function $f({label:e,value:t,valueTooltip:n,icon:r,vertical:A=!1,allowCopy:i=!1}){return p.jsxs(xe,{gapX:"2",direction:A?"column":"row",children:[p.jsx(Yu,{className:un.label,children:e}),p.jsx(IT,{content:n,children:p.jsx(zw,{className:un.copyButton,size:14,value:i?t==null?void 0:t.toString():void 0,hideIconUntilHover:!0,children:p.jsxs(Yu,{truncate:!0,className:un.value,children:[t,r&&` ${r}`]})})})]})}function kht({slot:e,isLgScreen:t}){var a,c;const{peer:n,isLeader:r,name:A,pubkey:i}=pa(e??0);return t?p.jsxs(xe,{gapX:"10px",align:"center",children:[p.jsx(jl,{url:(a=n==null?void 0:n.info)==null?void 0:a.icon_url,size:42,isYou:r}),p.jsxs(xe,{direction:"column",gapY:"1px",minWidth:"0",children:[p.jsx(be,{className:xt(un.name,un.lg),children:A}),p.jsx(ace,{slot:e,pubkey:i})]})]}):p.jsxs(xe,{direction:"column",children:[p.jsxs(xe,{gapX:qf,align:"center",children:[p.jsx(jl,{url:(c=n==null?void 0:n.info)==null?void 0:c.icon_url,size:15,isYou:r}),p.jsx(be,{className:un.name,children:A})]}),p.jsx(ace,{slot:e,pubkey:i})]})}function ace({slot:e,pubkey:t}){return p.jsxs(xe,{gapX:qf,align:"center",children:[p.jsx(zw,{className:un.copyButton,size:14,value:t,hideIconUntilHover:!0,children:p.jsx(Yu,{truncate:!0,className:un.value,children:t})}),p.jsx(yM,{slot:e,size:"large"})]})}function lce({vertical:e=!1,slotCompletedTimeNanos:t}){const n=b.useMemo(()=>{if(t!=null)return jq(t)},[t]);return p.jsx($f,{label:"Slot Time",value:n==null?void 0:n.inMillis,valueTooltip:n==null?void 0:n.inNanos,vertical:e})}function cce({slot:e,vertical:t=!1}){var A;const n=we(qi),r=(A=Du(e).response)==null?void 0:A.scheduler_stats;return p.jsx($f,{label:"Block Hash",value:n===Ci.Frankendancer?"Not available for Frankendancer":r==null?void 0:r.block_hash,vertical:t,allowCopy:n!==Ci.Frankendancer&&(r==null?void 0:r.block_hash)!=null})}function Sht(){var t;const e=we(Kr);return(t=Du(e).response)!=null&&t.limits?p.jsxs(p.Fragment,{children:[p.jsx(_ht,{}),p.jsx(Cs,{children:p.jsxs(xe,{gap:nce,wrap:"wrap",flexBasis:"0",children:[p.jsx(Jgt,{}),p.jsx(fht,{}),p.jsx(xht,{})]})})]}):p.jsx(Dht,{})}function Dht(){return p.jsx(Cs,{style:{display:"flex",flexGrow:"1",height:"550px",justifyContent:"center",alignItems:"center"},children:p.jsx(be,{children:"Loading Slot Statistics..."})})}function Rht({children:e}){const t=b.useRef(new Map),n=b.useMemo(()=>({registerControl:(r,A)=>(t.current.set(r,A),()=>t.current.delete(r)),triggerControl:(r,A)=>{var i;(i=t.current.get(r))==null||i(A)}}),[]);return p.jsx(A7.Provider,{value:n,children:e})}function Tht(){const e=we(Kr),[t,n]=b.useState(!1),r=we(G0.state)===Sf.NotReady;return b.useEffect(()=>{if(r&&!t){const A=setTimeout(()=>n(!0),2500);return()=>clearTimeout(A)}},[r,n,t]),r&&!t?null:e===void 0?p.jsx(Jft,{}):p.jsx(Mht,{})}function Mht(){if(we(Kr)!==void 0)return p.jsxs(xe,{direction:"column",gap:"2",flexGrow:"1",children:[p.jsx(vgt,{}),p.jsxs(Rht,{children:[p.jsx(Sht,{}),p.jsx(xae,{}),p.jsx(h0t,{}),p.jsx(Rft,{})]})]})}const Fht=ns(),Nht=Xn({slot:Pe().optional().catch(void 0)}),uce=Kg("/slotDetails")({validateSearch:Nht,component:Tht,beforeLoad:({search:{slot:e}})=>Fht.set(G0.slot,e)}),jht="_card_ybszl_1",Oht="_name-text_ybszl_8",Lht="_pubkey-text_ybszl_14",Pht="_narrow-screen_ybszl_21",Uht="_two-away_ybszl_27",Ght="_one-away_ybszl_33",Hht="_time-till_ybszl_38",zu={card:jht,nameText:Oht,pubkeyText:Lht,narrowScreen:Pht,twoAway:Uht,oneAway:Ght,timeTill:Hht},Yht="_my-slots_1cv8h_1",zht="_scroll_1cv8h_9",X_={mySlots:Yht,scroll:zht};function Jht({slot:e}){var h,m;const t=we(xc),{pubkey:n,peer:r,isLeader:A,name:i}=pa(e),a=t!==void 0&&e===t+ro,c=t!==void 0&&e===t+ro*2,f=Yo("(min-width: 1250px)");return p.jsx("div",{className:xt(zu.card,{[zu.oneAway]:a,[zu.twoAway]:c,[X_.mySlots]:A}),children:f?p.jsx(Wht,{iconUrl:(h=r==null?void 0:r.info)==null?void 0:h.icon_url,isLeader:A,name:i,pubkey:n,slot:e}):p.jsx(Zht,{iconUrl:(m=r==null?void 0:r.info)==null?void 0:m.icon_url,isLeader:A,name:i,pubkey:n,slot:e})})}function Wht({iconUrl:e,isLeader:t,name:n,pubkey:r,slot:A}){return p.jsxs(xe,{gap:"2",align:"center",children:[p.jsxs(xe,{gap:"2",minWidth:"300px",width:"505px",align:"center",pr:"20px",children:[p.jsx(jl,{url:e,size:24,isYou:t}),p.jsx(be,{className:zu.nameText,children:n})]}),p.jsx(be,{className:zu.pubkeyText,children:r}),p.jsx(xe,{justify:"center",minWidth:"190px",children:p.jsx(be,{children:A})}),p.jsx(dce,{slot:A})]})}function Zht({iconUrl:e,isLeader:t,name:n,pubkey:r,slot:A}){return p.jsxs(xe,{direction:"column",children:[p.jsxs(xe,{gap:"2",align:"center",children:[p.jsx(jl,{url:e,size:16,isYou:t}),p.jsx(be,{className:zu.nameText,children:n}),p.jsx(rr,{flexGrow:"1"}),p.jsx(be,{className:xt(zu.pubkeyText,zu.narrowScreen),children:r})]}),p.jsxs(xe,{justify:"between",children:[p.jsx(be,{children:A}),p.jsx(dce,{slot:A,isNarrowScreen:!0})]})]})}function dce({slot:e,isNarrowScreen:t}){const n=we(LA),r=we(C1),A=n?Tr.fromMillis(r*(e-n)).rescale():void 0,[i,a]=b.useReducer(Xht,fce(A)),[c,f]=b.useReducer(Kht,kf(A));return _1(()=>{f(A),a(A)},1e3),p.jsxs(be,{className:xt(zu.timeTill,{[zu.narrowScreen]:t}),children:[i," (",c,")"]})}function Xht(e,t){return fce(t)}function Kht(e,t){return kf(t)}function fce(e){var t;return e?(t=WI.plus(e))==null?void 0:t.toLocaleString(Gn.DATETIME_MED_WITH_SECONDS):""}const Vht="_card_l9i19_1",qht="_late-vote_l9i19_7",$ht="_skipped_l9i19_12",x7={card:Vht,lateVote:qht,skipped:$ht},e2t="_grid_a8sps_1",t2t="_firedancer-grid_a8sps_17",n2t="_header-text_a8sps_25",r2t="_vote-latency-header_a8sps_31",o2t="_votes-header_a8sps_34",i2t="_non-votes-header_a8sps_37",A2t="_fees-header_a8sps_40",s2t="_tips-header_a8sps_43",a2t="_compute-units-header_a8sps_46",l2t="_compute-units-pct_a8sps_51",c2t="_row-text_a8sps_56",u2t="_active_a8sps_62",Fi={grid:e2t,firedancerGrid:t2t,headerText:n2t,voteLatencyHeader:r2t,votesHeader:o2t,nonVotesHeader:i2t,feesHeader:A2t,tipsHeader:s2t,computeUnitsHeader:a2t,computeUnitsPct:l2t,rowText:c2t,active:u2t},[d2t,f2t,g2t,h2t]=function(){const e=Za({}),t=Ke(0);return[Ke(null,(n,r,A,i)=>{const a=n(t);a&&i(a),r(e,c=>{c[A]=i})}),Ke(null,(n,r,A)=>{r(e,i=>{delete i[A]})}),Ke(null,(n,r,A,i)=>{for(const[a,c]of Object.entries(n(e)))Number(a)!==A&&c(i);r(t,i)}),Ke(null,(n,r)=>{r(e,{}),r(t,0)})]}(),p2t="_slot-text_j49it_1",m2t={slotText:p2t};function gce({slot:e,isLeader:t,className:n}){const r=xt(n,m2t.slotText);return t?p.jsx(be,{className:r,children:p.jsx(Xg,{to:"/slotDetails",search:{slot:e},children:e})}):p.jsx(be,{className:r,children:e})}function K_({slot:e,currentSlot:t}){const n=we(qi),r=b.useRef(null),A=dt(d2t),i=dt(f2t),a=dt(g2t);return b.useEffect(()=>(A(e,c=>{var f;(f=r.current)==null||f.scrollTo(c,0)}),()=>i(e)),[i,A,e]),p.jsxs(xe,{minWidth:"0",flexGrow:"1",children:[p.jsx(E2t,{slot:e,currentSlot:t}),p.jsxs("div",{className:xt(Fi.grid,n===Ci.Firedancer&&Fi.firedancerGrid),ref:r,onScroll:c=>{a(e,c.currentTarget.scrollLeft)},children:[n===Ci.Firedancer&&p.jsx(be,{className:xt(Fi.headerText,Fi.voteLatencyHeader),align:"right",children:"Vote\xA0Latency"}),p.jsx(be,{className:xt(Fi.headerText,Fi.votesHeader),align:"right",children:"Votes"}),p.jsx(be,{className:xt(Fi.headerText,Fi.nonVotesHeader),align:"right",children:"Non-votes"}),p.jsx(be,{className:xt(Fi.headerText,Fi.feesHeader),align:"right",children:"Fees"}),p.jsx(be,{className:xt(Fi.headerText,Fi.tipsHeader),align:"right",children:"Tips"}),p.jsx(be,{className:xt(Fi.headerText,Fi.durationHeader),align:"right",children:"Duration"}),p.jsx(be,{className:xt(Fi.headerText,Fi.computeUnitsHeader),align:"right",children:"Compute\xA0Units"}),new Array(4).fill(0).map((c,f)=>{const h=e+3-f;return p.jsx(C2t,{slot:h,active:h===t},h)})]})]})}function E2t({slot:e,currentSlot:t}){const n=Yo("(min-width: 700px)");return p.jsxs(xe,{direction:"column",gap:"1px",children:[p.jsx(be,{className:xt(Fi.headerText,Fi.slotHeaderText),children:n?"Slot":"\xA0"}),new Array(4).fill(0).map((r,A)=>{const i=e+3-A,a=i===t;return p.jsx(I2t,{slot:i,isCurrent:a,isWideScreen:n},i)})]})}function I2t({slot:e,isCurrent:t,isWideScreen:n}){var a;const r=el(e),A=uM(e),i=we(qg)===A;return p.jsxs(xe,{className:xt(Fi.rowText,t&&Fi.active),align:"center",gap:n?"2":"0",children:[n?p.jsx(gce,{slot:e,isLeader:i}):p.jsx(be,{children:"\xA0"}),p.jsx(Kle,{slot:e,isCurrent:t,size:"small"}),(a=r.publish)!=null&&a.skipped?p.jsx(qle,{size:"small"}):p.jsx(Vle,{size:"small"})]})}function hce(e,t){const n=XI(e.success_vote_transaction_cnt??0),r=XI(e.success_nonvote_transaction_cnt??0),A=XI(e.failed_vote_transaction_cnt??0),i=XI(e.failed_nonvote_transaction_cnt??0),a=Zl((e.transaction_fee??0n)+(e.priority_fee??0n),Es,{decimals:Es,trailingZeroes:!0}),c=e.transaction_fee!=null?(Number(e.transaction_fee)/If).toString():"0",f=e.priority_fee!=null?(Number(e.priority_fee)/If).toString():"0",h=Zl(e.tips??0n,Es,{decimals:Es,trailingZeroes:!0}),m=e.tips!=null?(Number(e.tips)/If).toString():"0",I=e.duration_nanos!==null?`${Math.trunc(e.duration_nanos/1e6)} ms`:"-",v=XI((e==null?void 0:e.compute_units)??0),k=e.compute_units!=null?e.compute_units/(e.max_compute_units??MX)*100:0,D=e.vote_latency!=null?{text:Oq(e.slot,e.vote_latency,t).toLocaleString()}:e.skipped?{text:""}:e.level==="rooted"?{text:"\u2715",color:"#FF3C3C"}:{text:"-"};return{voteTxns:(n+A).toLocaleString(),nonVoteTxns:(r+i).toLocaleString(),totalFees:a,transactionFeeFull:c,priorityFeeFull:f,tips:h,tipsFull:m,durationText:I,computeUnits:v,computeUnitsPct:k,voteLatency:D}}function C2t({slot:e,active:t}){var N;const n=we(qi),r=we(Df),A=we(LA),i=we(vw),a=el(e),[c,f]=b.useState(()=>{if(a.publish)return hce(a.publish,i)});b.useEffect(()=>{a.publish&&f(hce(a.publish,i))},[a.publish,i,e]);const h=e>(A??1/0),m=e===A,I=b.useRef(),[v,k]=b.useState(!1);xC(m)&&!m&&!v&&(clearTimeout(I.current),I.current=setTimeout(()=>{k(!1)},50),k(!0)),Hw(()=>{clearTimeout(I.current)});const D=e<(r??0),R=(T,P)=>h||m||D?"-":!c&&!a.hasWaitedForData&&!v?"Loading...":c?(typeof T=="number"&&(T=Math.round(T)),`${T}`):"-",F=xt(Fi.rowText,{[Fi.active]:t});return p.jsxs(p.Fragment,{children:[n===Ci.Firedancer&&p.jsx(be,{className:F,align:"right",style:{color:(N=c==null?void 0:c.voteLatency)==null?void 0:N.color},children:R(c==null?void 0:c.voteLatency.text)}),p.jsx(be,{className:F,align:"right",children:R(c==null?void 0:c.voteTxns)}),p.jsx(be,{className:F,align:"right",children:R(c==null?void 0:c.nonVoteTxns)}),p.jsx(Ei,{content:p.jsxs(lA,{columns:"auto auto",rows:"2",gapX:"3",children:[p.jsx(be,{children:"Transaction"}),p.jsx(be,{children:"Priority"}),p.jsxs(be,{children:[c==null?void 0:c.transactionFeeFull," SOL"]}),p.jsxs(be,{children:[c==null?void 0:c.priorityFeeFull," SOL"]})]}),children:p.jsx(be,{className:F,align:"right",children:R(c==null?void 0:c.totalFees)})}),p.jsx(Ei,{content:`${c==null?void 0:c.tipsFull} SOL`,children:p.jsx(be,{className:F,align:"right",children:R(c==null?void 0:c.tips)})}),p.jsx(be,{className:F,align:"right",children:R(c==null?void 0:c.durationText)}),(c==null?void 0:c.computeUnits)!==void 0?p.jsx(be,{className:F,align:"right",style:{padding:0},children:p.jsxs(p.Fragment,{children:[R(c==null?void 0:c.computeUnits.toLocaleString()),p.jsx("span",{className:Fi.computeUnitsPct,children:(c==null?void 0:c.computeUnitsPct)!==void 0?`${JQ}(${R(c==null?void 0:c.computeUnitsPct)}%)`:null})]})}):p.jsx(be,{className:F,align:"right",children:R()})]})}const B2t="_my-slots_1tftz_1",y2t="_summary-container_1tftz_8",v2t="_name_1tftz_13",b2t="_mobile_1tftz_23",Q2t="_text_1tftz_28",w2t="_primary-text_1tftz_33",x2t="_secondary-text_1tftz_43",_2t="_divider_1tftz_52",k2t="_firedancer_1tftz_56",S2t="_frankendancer_1tftz_60",D2t="_agave_1tftz_64",R2t="_jito_1tftz_68",T2t="_paladin_1tftz_72",M2t="_bam_1tftz_76",F2t="_sig_1tftz_80",N2t="_rakurai_1tftz_84",j2t="_container-mobile_1tftz_90",_A={mySlots:B2t,summaryContainer:y2t,name:v2t,mobile:b2t,text:Q2t,primaryText:w2t,secondaryText:x2t,divider:_2t,firedancer:k2t,frankendancer:S2t,agave:D2t,jito:R2t,paladin:T2t,bam:M2t,sig:F2t,rakurai:N2t,containerMobile:j2t};function O2t({children:e}){const[t,n]=b.useState(!1);return p.jsx(hT,{content:e,isOpen:t,onOpenChange:n,children:p.jsx(xl,{variant:"ghost",size:"1",children:t?p.jsx(mT,{}):p.jsx(pT,{})})})}function pce({slot:e,showTime:t}){var a;const{pubkey:n,peer:r,isLeader:A,name:i}=pa(e);return p.jsxs(xe,{gap:"1",className:_A.summaryContainer,children:[p.jsx(jl,{url:(a=r==null?void 0:r.info)==null?void 0:a.icon_url,size:40,isYou:A}),p.jsxs(xe,{direction:"column",gap:"1",align:"start",minWidth:"0",style:{marginLeft:"6px"},children:[p.jsx(be,{className:_A.name,children:i}),p.jsx(be,{className:_A.primaryText,children:n}),p.jsx(_7,{peer:r}),t&&p.jsx(k7,{slot:e})]})]})}function mce({slot:e,showTime:t}){var f,h;const{pubkey:n,peer:r,isLeader:A,name:i}=pa(e),a=Yo("(min-width: 700px)"),c=b.useMemo(()=>i!=="Private"||a?i:n?`${n.substring(0,8)}...`:"Private",[i,a,n]);return p.jsxs(xe,{direction:"column",className:_A.containerMobile,gap:"1",children:[p.jsx(xe,{gap:"1",children:a?p.jsxs(p.Fragment,{children:[p.jsx(jl,{url:(f=r==null?void 0:r.info)==null?void 0:f.icon_url,size:16,isYou:A}),p.jsx(be,{className:xt(_A.name,_A.mobile),children:c}),p.jsx(rr,{flexGrow:"1"}),p.jsx(be,{className:_A.primaryText,children:n})]}):p.jsxs(p.Fragment,{children:[p.jsx(gce,{className:_A.text,slot:e,isLeader:A}),p.jsx(rr,{flexGrow:"1"}),p.jsx(jl,{url:(h=r==null?void 0:r.info)==null?void 0:h.icon_url,size:16,isYou:A}),p.jsx(be,{className:_A.text,children:c}),p.jsx(O2t,{children:p.jsxs(xe,{gap:"1",direction:"column",children:[p.jsx(be,{className:_A.secondaryText,children:n}),p.jsx(_7,{peer:r}),t&&p.jsx(k7,{slot:e})]})})]})}),a&&p.jsxs(xe,{gap:"1",children:[p.jsx(_7,{peer:r}),p.jsx(rr,{flexGrow:"1"}),t&&p.jsx(k7,{slot:e})]})]})}function L2t(e,t,n){if(!e)return;const r=Fq(e),A=t!==void 0||n!==void 0?Number(r)/Number((t??0n)+(n??0n))*100:void 0;return`${ER(r)} ${A!==void 0?`(${dT(A,{significantDigits:4,trailingZeroes:!1})}%)`:""}`}function _7({peer:e}){var R;const t=we(I1),{client:n,version:r,countryCode:A,countryFlag:i,cityName:a}=zne(e),c=L2t(e,t==null?void 0:t.activeStake,t==null?void 0:t.delinquentStake),f=yR(((R=e==null?void 0:e.gossip)==null?void 0:R.sockets.tvu)??"");if(![n,c,f].filter(ZI).join(" - "))return null;const h=r==null?"":` v${r}`,m=n?`${n}${h}`:`Unknown${h}`,I=a&&A?`${a}, ${A}`:"",v=c??"",k=f||"Offline",D=(m+I+(i?2:0)+v+k).length>58?{style:{flexBasis:0}}:{wrap:"nowrap"};return p.jsxs(xe,{gap:"1",className:_A.secondaryText,children:[p.jsx(P2t,{...D,client:n,versionText:h}),I&&p.jsxs(p.Fragment,{children:[p.jsx(be,{className:_A.divider,children:"\u2022"}),p.jsx(be,{children:I}),p.jsx(be,{children:i})]}),p.jsx(be,{className:_A.divider,children:"\u2022"}),p.jsx(be,{...D,children:v}),p.jsx(be,{className:_A.divider,children:"\u2022"}),p.jsx(be,{children:k})]})}function P2t({client:e,versionText:t,...n}){var r;if(!e)return p.jsxs(be,{...n,children:[p.jsx(be,{children:"Unknown"}),t&&p.jsx(be,{children:t})]});if(Nq(e)){const A=(r=e.split(" "))==null?void 0:r[1];if(A)return p.jsxs(be,{...n,children:[p.jsxs(be,{wrap:"nowrap",children:[p.jsx(be,{className:_A.agave,children:"Agave "}),p.jsx(be,{className:_A[A.toLowerCase()],children:A})]}),t&&p.jsx(be,{className:_A.agave,children:t})]})}return p.jsxs(be,{...n,className:_A[e.toLowerCase()],children:[p.jsx(be,{wrap:"nowrap",children:e}),t&&p.jsx(be,{children:t})]})}function k7({slot:e}){const{slotDateTime:t,timeAgoText:n}=Ule(e);return p.jsxs(be,{className:_A.secondaryText,children:[t==null?void 0:t.toLocaleString(Gn.DATETIME_MED_WITH_SECONDS),n&&` (${n})`]})}function U2t({slot:e}){var m,I,v,k;const{isLeader:t}=pa(e),n=we(e$),r=el(e),A=el(e+1),i=el(e+2),a=el(e+3),c=[0,1,2,3].some(D=>n.has(e+D)),f=((m=r.publish)==null?void 0:m.skipped)||((I=A.publish)==null?void 0:I.skipped)||((v=i.publish)==null?void 0:v.skipped)||((k=a.publish)==null?void 0:k.skipped),h=Yo("(min-width: 900px)");return p.jsx("div",{className:xt(x7.card,{[X_.mySlots]:t,[x7.lateVote]:c,[x7.skipped]:f}),children:h?p.jsxs(xe,{gap:"1",align:"start",justify:"between",children:[p.jsx(pce,{slot:e,showTime:!0}),p.jsx(K_,{slot:e})]}):p.jsxs(xe,{direction:"column",gap:"1",children:[p.jsx(mce,{slot:e,showTime:!0}),p.jsx(K_,{slot:e})]})})}const G2t="_card_wweyx_1",H2t={card:G2t};function Y2t({slot:e}){const t=we(LA),{isLeader:n}=pa(e),r=Yo("(min-width: 900px)");return p.jsx("div",{className:xt(H2t.card,{[X_.mySlots]:n}),children:r?p.jsxs(xe,{gap:"1",align:"start",justify:"between",children:[p.jsx(pce,{slot:e}),p.jsx(K_,{slot:e,currentSlot:t})]}):p.jsxs(xe,{direction:"column",gap:"1",children:[p.jsx(mce,{slot:e}),p.jsx(K_,{slot:e,currentSlot:t})]})})}var z2t=Object.defineProperty,J2t=(e,t,n)=>t in e?z2t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V_=(e,t,n)=>J2t(e,typeof t!="symbol"?t+"":t,n),S7=new Map,D7=new WeakMap,Ece=0,W2t=void 0;function Z2t(e){return e?(D7.has(e)||(Ece+=1,D7.set(e,Ece.toString())),D7.get(e)):"0"}function X2t(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Z2t(e.root):e[t]}`).toString()}function K2t(e){const t=X2t(e);let n=S7.get(t);if(!n){const r=new Map;let A;const i=new IntersectionObserver(a=>{a.forEach(c=>{var f;const h=c.isIntersecting&&A.some(m=>c.intersectionRatio>=m);e.trackVisibility&&typeof c.isVisible>"u"&&(c.isVisible=h),(f=r.get(c.target))==null||f.forEach(m=>{m(h,c)})})},e);A=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},S7.set(t,n)}return n}function V2t(e,t,n={},r=W2t){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const f=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:f,intersectionRect:f,rootBounds:f}),()=>{}}const{id:A,observer:i,elements:a}=K2t(n),c=a.get(e)||[];return a.has(e)||a.set(e,c),c.push(t),i.observe(e),function(){c.splice(c.indexOf(t),1),c.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),S7.delete(A))}}function q2t(e){return typeof e.children!="function"}var Ice=class extends b.Component{constructor(e){super(e),V_(this,"node",null),V_(this,"_unobserveCb",null),V_(this,"handleNode",t=>{this.node&&(this.unobserve(),!t&&!this.props.triggerOnce&&!this.props.skip&&this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=t||null,this.observeNode()}),V_(this,"handleChange",(t,n)=>{t&&this.props.triggerOnce&&this.unobserve(),q2t(this.props)||this.setState({inView:t,entry:n}),this.props.onChange&&this.props.onChange(t,n)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:A,fallbackInView:i}=this.props;this._unobserveCb=V2t(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:A},i)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:e}=this.props;if(typeof e=="function"){const{inView:k,entry:D}=this.state;return e({inView:k,entry:D,ref:this.handleNode})}const{as:t,triggerOnce:n,threshold:r,root:A,rootMargin:i,onChange:a,skip:c,trackVisibility:f,delay:h,initialInView:m,fallbackInView:I,...v}=this.props;return b.createElement(t||"div",{ref:this.handleNode,...v},e)}};function R7({slot:e,lastCardSlot:t,setCardCount:n,children:r}){return e!==t?r:p.jsxs(p.Fragment,{children:[p.jsx(Ice,{onChange:A=>{A||n("decrease")},children:r}),p.jsx(Ice,{onChange:A=>{A&&n("increase")}})]})}const $2t="_preload_1uziq_1",ept={preload:$2t};function tpt({slot:e}){var a,c;el(e);const t=uM(e),n=gT(t),[r,A]=Cc(mee((a=n==null?void 0:n.info)==null?void 0:a.icon_url)),i=!r&&((c=n==null?void 0:n.info)!=null&&c.icon_url)?n.info.icon_url:void 0;return p.jsx("div",{className:ept.preload,children:p.jsx("img",{src:i,onError:()=>A()})})}const q_=ro*5;function npt({topCardSlotLeader:e,bottomCardSlotLeader:t,searchLeaderSlots:n}){if(n){const r=[],A=n.indexOf(t),i=n.indexOf(e);if(A>0)for(let a=1;a<=q_&&A-a>=0;a++){const c=n[A-a];for(let f=0;f0)for(let a=1;a<=q_&&i+a0)for(let a=r;a>r-q_;a--)i.push(a);if(A>0)for(let a=A;ap.jsx(tpt,{slot:A},A))})}var C2=(e=>(e.Past="Past",e.Now="Now",e.Upcoming="Upcoming",e))(C2||{});function opt(e,t){return et?C2.Upcoming:C2.Now}function ipt({currentLeaderSlot:e,searchLeaderSlots:t,slotOverride:n,curCardCount:r=0,cardCount:A=1}){const i=t.toReversed();if(n===void 0){if(i.length<=A)return i[r];{const a=i.findIndex(f=>fMath.abs(h-n)),c=Math.min(...a),f=Math.max(a.indexOf(c)-3,0);return i[r+f]}}function Apt({cardCount:e,currentLeaderSlot:t,epoch:n,searchLeaderSlots:r,slotOverride:A,topSlot:i}){const a=[],c=[],f=[];if(t===void 0)return{upcoming:a,now:c,past:f};for(let h=0;hn.end_slot))continue;const I=opt(m,t);I===C2.Upcoming&&a.push(m),I===C2.Now&&c.push(m),I===C2.Past&&f.push(m)}return{upcoming:a,now:c,past:f}}const spt=10,apt=2,lpt=1;function cpt(e,t){switch(t){case"increase":return e+apt;case"decrease":return Math.max(1,e-lpt)}}function upt(){const e=we(xc),t=we(Eo),n=we(da),r=we(Ri),[A,i]=b.useReducer(cpt,spt),a=t??(e??0)+TX*ro,{upcoming:c,now:f,past:h}=b.useMemo(()=>Apt({cardCount:A,currentLeaderSlot:e,epoch:r,searchLeaderSlots:n,slotOverride:t,topSlot:a}),[A,e,r,n,t,a]);if(e===void 0)return;if((n==null?void 0:n.length)===0)return p.jsx(xe,{justify:"center",align:"center",style:{color:z5,fontSize:"24px",letterSpacing:"-0.96px",minHeight:"300px"},children:p.jsx(be,{children:"No slots found."})});const m=c[0]??f[0]??h[0]??-1,I=h[h.length-1]??f[f.length-1]??c[c.length-1]??-1;return p.jsxs(p.Fragment,{children:[!!c.length&&p.jsx(T7,{sectionName:"Upcoming",children:c.map(v=>p.jsx(R7,{slot:v,lastCardSlot:I,setCardCount:i,children:p.jsx(Jht,{slot:v},v)},v))}),!!f.length&&p.jsx(T7,{sectionName:"Now",children:f.map(v=>p.jsx(R7,{slot:v,lastCardSlot:I,setCardCount:i,children:p.jsx(Y2t,{slot:v},v)},v))}),!!h.length&&p.jsx(T7,{sectionName:"Past",children:h.map(v=>p.jsx(R7,{slot:v,lastCardSlot:I,setCardCount:i,children:p.jsx(U2t,{slot:v})},v))}),p.jsx(rpt,{topCardSlotLeader:m,bottomCardSlotLeader:I})]})}function T7({children:e,sectionName:t}){const n=Yo("(min-width: 700px)");return p.jsxs(xe,{gap:"2",align:"stretch",children:[n&&p.jsxs(xe,{direction:"column",gap:"2",align:"center",children:[p.jsx("div",{style:{width:"1px",flex:1,background:fR,height:"10px"}}),p.jsx(be,{style:{transform:"rotate(180deg)",writingMode:"vertical-rl",color:IV},size:"2",children:t}),p.jsx("div",{style:{width:"1px",flex:1,background:fR,height:"10px"}})]}),p.jsx(xe,{direction:"column",flexGrow:"1",gap:"2",minWidth:"0",children:e})]})}const dpt="_container_1hof6_1",fpt="_button_1hof6_5",Cce={container:dpt,button:fpt};function gpt(){const[e,t]=Cc(Eo),n=we(xc);if(e===void 0||n===void 0)return null;const r=e<=n+TX*ro;return p.jsx("div",{className:Cce.container,children:p.jsxs(xl,{className:Cce.button,style:{bottom:r?void 0:"8px"},onClick:()=>t(void 0),children:[p.jsx(be,{children:"Skip to Realtime"}),r?p.jsx(See,{}):p.jsx(kee,{})]})})}const hpt="_label_q3mhf_1",ppt="_progress_q3mhf_5",mpt="_value_q3mhf_15",M7={label:hpt,progress:ppt,value:mpt};function Ept(){const{progressSinceLastLeader:e,nextSlotText:t,nextLeaderSlot:n}=zC({showNowIfCurrent:!0}),r=n!==void 0?` (${n})`:"";return p.jsxs(xe,{align:"center",gap:"2",children:[p.jsxs(be,{className:M7.label,children:["Next leader slot",r]}),p.jsx(af,{value:e,className:M7.progress}),p.jsx(be,{className:M7.value,children:t})]})}const Ipt="_container_bc437_1",Cpt="_search-box_bc437_18",Bpt="_label_bc437_29",ypt="_search-button_bc437_33",vpt="_disabled_bc437_56",bpt="_my-slots_bc437_64",Qpt="_late-vote-slots_bc437_84",wpt="_skipped-slots_bc437_102",xpt="_skip-rate-label_bc437_130",_pt="_skip-rate-value_bc437_135",os={container:Ipt,searchBox:Cpt,label:Bpt,searchButton:ypt,disabled:vpt,mySlots:bpt,lateVoteSlots:Qpt,skippedSlots:wpt,skipRateLabel:xpt,skipRateValue:_pt};function $_(){const{searchType:e}=OB.useSearch(),t=Up({from:OB.fullPath}),n=b.useCallback(r=>{t({search:{searchType:r},replace:!0})},[t]);return{searchType:e,setSearchType:n}}function kpt(){const{searchText:e}=OB.useSearch(),t=Up({from:OB.fullPath}),n=b.useCallback(r=>{t({search:{searchText:r,searchType:hA.text},replace:!0})},[t]);return{searchText:e,setSearchText:n}}const Spt=Ke(e=>!!e(xc));function Dpt(){const e=we(qi),t=we(Spt),n=dt(wMe),r=dt(Eo),{searchType:A}=$_(),{searchText:i,setSearchText:a}=kpt(),[c,f]=b.useState(i),h=k1(I=>{n(I),a(I)},1e3);b.useEffect(()=>{!h.isPending()&&c!==i&&f(i)},[h,c,i]);const m=()=>{a(""),r(void 0),n("")};if(wC(()=>{A===hA.text&&n(i)}),!!t)return p.jsxs(xe,{className:os.container,gap:"2",wrap:"wrap",children:[p.jsx(rr,{className:os.searchBox,children:p.jsxs(fD,{placeholder:"Name, pubkey, or slot (separate with , or ; for multiple values)",variant:"soft",color:"gray",onChange:I=>{f(I.currentTarget.value),h(I.currentTarget.value)},value:c,children:[p.jsx(tQ,{children:p.jsx(Ree,{height:"16",width:"16",style:{color:dR}})}),c&&p.jsx(tQ,{children:p.jsx(_l,{size:"1",variant:"ghost",children:p.jsx(ET,{height:"14",width:"14",style:{color:dR},onClick:m})})})]})}),p.jsx(Tpt,{resetSearchText:m}),e===Ci.Firedancer&&p.jsx(Fpt,{resetSearchText:m}),p.jsx(Mpt,{resetSearchText:m}),p.jsx(Rpt,{}),p.jsx(rr,{flexGrow:"1"}),p.jsx(Ept,{})]})}function Rpt(){const e=we(Vq),t=b.useMemo(()=>e?`${(e.skip_rate*100).toLocaleString(void 0,{minimumFractionDigits:0,maximumFractionDigits:2})}%`:"-",[e]);return p.jsxs(xe,{justify:"center",align:"center",gap:"1",children:[p.jsx(be,{className:os.skipRateLabel,children:"Skip Rate"}),p.jsx(be,{className:e!=null&&e.skip_rate?os.skipRateValue:os.skipRateLabel,children:t})]})}function Tpt({resetSearchText:e}){const t=we(PA),n=dt(da),r=dt(Eo),{searchType:A,setSearchType:i}=$_(),a=((t==null?void 0:t.length)??0)*4,c=b.useCallback(()=>{n(t)},[n,t]);b.useEffect(()=>{A===hA.mySlots&&n(t)},[t,n]);const f=()=>{e(),r(void 0),A===hA.mySlots?i(hA.text):(i(hA.mySlots),c())},h=A===hA.mySlots,m=!(t!=null&&t.length);return p.jsx(Ei,{content:"Number of slots this validator is leader in the current epoch. Toggle to filter",children:p.jsx("div",{children:p.jsx(Mp,{children:p.jsxs(YS,{className:xt(os.searchButton,os.mySlots,m&&os.disabled),onClick:f,"aria-label":"Toggle my slots",pressed:h,disabled:m,children:[p.jsx(be,{className:os.label,children:"My Slots"}),p.jsx(be,{children:a})]})})})})}function Mpt({resetSearchText:e}){const t=we(RQ),n=dt(da),r=dt(Eo),{searchType:A,setSearchType:i}=$_(),a=(t==null?void 0:t.length)??0,c=b.useCallback(()=>{const I=t==null?void 0:t.map(v=>v-v%4);n([...new Set(I)])},[n,t]);b.useEffect(()=>{A===hA.skippedSlots&&c()},[c]);const f=()=>{e(),r(void 0),A===hA.skippedSlots?i(hA.text):t!=null&&t.length&&(i(hA.skippedSlots),c())},h=A===hA.skippedSlots,m=!(t!=null&&t.length);return p.jsx(Ei,{content:"Number of slots this validator has skipped in the current epoch since it was last restarted. Toggle to filter",children:p.jsx("div",{children:p.jsx(Mp,{children:p.jsxs(YS,{className:xt(os.searchButton,os.skippedSlots,m&&os.disabled),onClick:f,"aria-label":"Toggle skipped slots",pressed:h,disabled:!h&&m,children:[p.jsx(be,{className:os.label,children:"My Skipped Slots"}),p.jsx(be,{children:a})]})})})})}function Fpt({resetSearchText:e}){const t=we(e$),n=dt(da),r=dt(Eo),{searchType:A,setSearchType:i}=$_(),a=t.size,c=b.useMemo(()=>Array.from(new Set([...t].map(v=>Vi(v)))),[t]),f=b.useCallback(()=>{n(c)},[n,c]);b.useEffect(()=>{A===hA.lateVoteSlots&&n(c)},[c,n]);const h=()=>{e(),r(void 0),A===hA.lateVoteSlots?i(hA.text):(i(hA.lateVoteSlots),f())},m=A===hA.lateVoteSlots,I=!t.size;return p.jsx(Ei,{content:"Number of slots this validator has voted late in the current epoch. Toggle to filter",children:p.jsx("div",{children:p.jsx(Mp,{children:p.jsxs(YS,{className:xt(os.searchButton,os.lateVoteSlots,I&&os.disabled),onClick:h,"aria-label":"Toggle late vote slots",pressed:m,disabled:I,children:[p.jsx(be,{className:os.label,children:"My Late Votes"}),p.jsx(be,{children:a})]})})})})}var Bce={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 -* http://hammerjs.github.io/ -* -* Copyright (c) 2016 Jorik Tangelder; -* Licensed under the MIT license */(function(e){(function(t,n,r,A){var i=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),c="function",f=Math.round,h=Math.abs,m=Date.now;function I(ee,Ee,Me){return setTimeout(P(ee,Me),Ee)}function v(ee,Ee,Me){return Array.isArray(ee)?(k(ee,Me[Ee],Me),!0):!1}function k(ee,Ee,Me){var it;if(ee)if(ee.forEach)ee.forEach(Ee,Me);else if(ee.length!==A)for(it=0;it\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",sr=t.console&&(t.console.warn||t.console.log);return sr&&sr.call(t.console,it,tn),ee.apply(this,arguments)}}var R;typeof Object.assign!="function"?R=function(ee){if(ee===A||ee===null)throw new TypeError("Cannot convert undefined or null to object");for(var Ee=Object(ee),Me=1;Me-1}function V(ee){return ee.trim().split(/\s+/g)}function oe(ee,Ee,Me){if(ee.indexOf&&!Me)return ee.indexOf(Ee);for(var it=0;itji[Ee]}),it}function de(ee,Ee){for(var Me,it,Qt=Ee[0].toUpperCase()+Ee.slice(1),tn=0;tn1&&!Me.firstMultiple?Me.firstMultiple=wn(Ee):Qt===1&&(Me.firstMultiple=!1);var tn=Me.firstInput,sr=Me.firstMultiple,Ur=sr?sr.center:tn.center,ji=Ee.center=jr(it);Ee.timeStamp=m(),Ee.deltaTime=Ee.timeStamp-tn.timeStamp,Ee.angle=xr(Ur,ji),Ee.distance=$r(Ur,ji),It(Me,Ee),Ee.offsetDirection=or(Ee.deltaX,Ee.deltaY);var Oi=Yr(Ee.deltaTime,Ee.deltaX,Ee.deltaY);Ee.overallVelocityX=Oi.x,Ee.overallVelocityY=Oi.y,Ee.overallVelocity=h(Oi.x)>h(Oi.y)?Oi.x:Oi.y,Ee.scale=sr?Co(sr.pointers,it):1,Ee.rotation=sr?yr(sr.pointers,it):0,Ee.maxPointers=Me.prevInput?Ee.pointers.length>Me.prevInput.maxPointers?Ee.pointers.length:Me.prevInput.maxPointers:Ee.pointers.length,Cn(Me,Ee);var Ai=ee.element;K(Ee.srcEvent.target,Ai)&&(Ai=Ee.srcEvent.target),Ee.target=Ai}function It(ee,Ee){var Me=Ee.center,it=ee.offsetDelta||{},Qt=ee.prevDelta||{},tn=ee.prevInput||{};(Ee.eventType===De||tn.eventType===Qe)&&(Qt=ee.prevDelta={x:tn.deltaX||0,y:tn.deltaY||0},it=ee.offsetDelta={x:Me.x,y:Me.y}),Ee.deltaX=Qt.x+(Me.x-it.x),Ee.deltaY=Qt.y+(Me.y-it.y)}function Cn(ee,Ee){var Me=ee.lastInterval||Ee,it=Ee.timeStamp-Me.timeStamp,Qt,tn,sr,Ur;if(Ee.eventType!=Ye&&(it>Te||Me.velocity===A)){var ji=Ee.deltaX-Me.deltaX,Oi=Ee.deltaY-Me.deltaY,Ai=Yr(it,ji,Oi);tn=Ai.x,sr=Ai.y,Qt=h(Ai.x)>h(Ai.y)?Ai.x:Ai.y,Ur=or(ji,Oi),ee.lastInterval=Ee}else Qt=Me.velocity,tn=Me.velocityX,sr=Me.velocityY,Ur=Me.direction;Ee.velocity=Qt,Ee.velocityX=tn,Ee.velocityY=sr,Ee.direction=Ur}function wn(ee){for(var Ee=[],Me=0;Me=h(Ee)?ee<0?Je:Nt:Ee<0?jt:bt}function $r(ee,Ee,Me){Me||(Me=Sn);var it=Ee[Me[0]]-ee[Me[0]],Qt=Ee[Me[1]]-ee[Me[1]];return Math.sqrt(it*it+Qt*Qt)}function xr(ee,Ee,Me){Me||(Me=Sn);var it=Ee[Me[0]]-ee[Me[0]],Qt=Ee[Me[1]]-ee[Me[1]];return Math.atan2(Qt,it)*180/Math.PI}function yr(ee,Ee){return xr(Ee[1],Ee[0],fn)+xr(ee[1],ee[0],fn)}function Co(ee,Ee){return $r(Ee[0],Ee[1],fn)/$r(ee[0],ee[1],fn)}var oi={mousedown:De,mousemove:Se,mouseup:Qe},pA="mousedown",mA="mousemove mouseup";function Do(){this.evEl=pA,this.evWin=mA,this.pressed=!1,ue.apply(this,arguments)}T(Do,ue,{handler:function(ee){var Ee=oi[ee.type];Ee&De&&ee.button===0&&(this.pressed=!0),Ee&Se&&ee.which!==1&&(Ee=Qe),this.pressed&&(Ee&Qe&&(this.pressed=!1),this.callback(this.manager,Ee,{pointers:[ee],changedPointers:[ee],pointerType:qe,srcEvent:ee}))}});var ii={pointerdown:De,pointermove:Se,pointerup:Qe,pointercancel:Ye,pointerout:Ye},Ni={2:Ie,3:Fe,4:qe,5:Ze},oo="pointerdown",yi="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(oo="MSPointerDown",yi="MSPointerMove MSPointerUp MSPointerCancel");function kA(){this.evEl=oo,this.evWin=yi,ue.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}T(kA,ue,{handler:function(ee){var Ee=this.store,Me=!1,it=ee.type.toLowerCase().replace("ms",""),Qt=ii[it],tn=Ni[ee.pointerType]||ee.pointerType,sr=tn==Ie,Ur=oe(Ee,ee.pointerId,"pointerId");Qt&De&&(ee.button===0||sr)?Ur<0&&(Ee.push(ee),Ur=Ee.length-1):Qt&(Qe|Ye)&&(Me=!0),!(Ur<0)&&(Ee[Ur]=ee,this.callback(this.manager,Qt,{pointers:Ee,changedPointers:[ee],pointerType:tn,srcEvent:ee}),Me&&Ee.splice(Ur,1))}});var EA={touchstart:De,touchmove:Se,touchend:Qe,touchcancel:Ye},Ne="touchstart",$e="touchstart touchmove touchend touchcancel";function ht(){this.evTarget=Ne,this.evWin=$e,this.started=!1,ue.apply(this,arguments)}T(ht,ue,{handler:function(ee){var Ee=EA[ee.type];if(Ee===De&&(this.started=!0),!!this.started){var Me=ct.call(this,ee,Ee);Ee&(Qe|Ye)&&Me[0].length-Me[1].length===0&&(this.started=!1),this.callback(this.manager,Ee,{pointers:Me[0],changedPointers:Me[1],pointerType:Ie,srcEvent:ee})}}});function ct(ee,Ee){var Me=Be(ee.touches),it=Be(ee.changedTouches);return Ee&(Qe|Ye)&&(Me=he(Me.concat(it),"identifier")),[Me,it]}var En={touchstart:De,touchmove:Se,touchend:Qe,touchcancel:Ye},_e="touchstart touchmove touchend touchcancel";function Le(){this.evTarget=_e,this.targetIds={},ue.apply(this,arguments)}T(Le,ue,{handler:function(ee){var Ee=En[ee.type],Me=ot.call(this,ee,Ee);Me&&this.callback(this.manager,Ee,{pointers:Me[0],changedPointers:Me[1],pointerType:Ie,srcEvent:ee})}});function ot(ee,Ee){var Me=Be(ee.touches),it=this.targetIds;if(Ee&(De|Se)&&Me.length===1)return it[Me[0].identifier]=!0,[Me,Me];var Qt,tn,sr=Be(ee.changedTouches),Ur=[],ji=this.target;if(tn=Me.filter(function(Oi){return K(Oi.target,ji)}),Ee===De)for(Qt=0;Qt-1&&it.splice(tn,1)};setTimeout(Qt,nt)}}function ft(ee){for(var Ee=ee.srcEvent.clientX,Me=ee.srcEvent.clientY,it=0;it-1&&this.requireFail.splice(Ee,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(ee){return!!this.simultaneous[ee.id]},emit:function(ee){var Ee=this,Me=this.state;function it(Qt){Ee.manager.emit(Qt,ee)}Me=Ro&&it(Ee.options.event+Wc(Me))},tryEmit:function(ee){if(this.canEmit())return this.emit(ee);this.state=Ln},canEmit:function(){for(var ee=0;eeEe.threshold&&Qt&Ee.direction},attrTest:function(ee){return H.prototype.attrTest.call(this,ee)&&(this.state&On||!(this.state&On)&&this.directionTest(ee))},emit:function(ee){this.pX=ee.deltaX,this.pY=ee.deltaY;var Ee=Zc(ee.direction);Ee&&(ee.additionalEvent=this.options.event+Ee),this._super.emit.call(this,ee)}});function Jt(){H.apply(this,arguments)}T(Jt,H,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[gr]},attrTest:function(ee){return this._super.attrTest.call(this,ee)&&(Math.abs(ee.scale-1)>this.options.threshold||this.state&On)},emit:function(ee){if(ee.scale!==1){var Ee=ee.scale<1?"in":"out";ee.additionalEvent=this.options.event+Ee}this._super.emit.call(this,ee)}});function va(){vi.apply(this,arguments),this._timer=null,this._input=null}T(va,vi,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[vr]},process:function(ee){var Ee=this.options,Me=ee.pointers.length===Ee.pointers,it=ee.distanceEe.time;if(this._input=ee,!it||!Me||ee.eventType&(Qe|Ye)&&!Qt)this.reset();else if(ee.eventType&De)this.reset(),this._timer=I(function(){this.state=Rn,this.tryEmit()},Ee.time,this);else if(ee.eventType&Qe)return Rn;return Ln},reset:function(){clearTimeout(this._timer)},emit:function(ee){this.state===Rn&&(ee&&ee.eventType&Qe?this.manager.emit(this.options.event+"up",ee):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}});function Fn(){H.apply(this,arguments)}T(Fn,H,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[gr]},attrTest:function(ee){return this._super.attrTest.call(this,ee)&&(Math.abs(ee.rotation)>this.options.threshold||this.state&On)}});function nA(){H.apply(this,arguments)}T(nA,H,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:wt|se,pointers:1},getTouchAction:function(){return Xo.prototype.getTouchAction.call(this)},attrTest:function(ee){var Ee=this.options.direction,Me;return Ee&(wt|se)?Me=ee.overallVelocity:Ee&wt?Me=ee.overallVelocityX:Ee&se&&(Me=ee.overallVelocityY),this._super.attrTest.call(this,ee)&&Ee&ee.offsetDirection&&ee.distance>this.options.threshold&&ee.maxPointers==this.options.pointers&&h(Me)>this.options.velocity&&ee.eventType&Qe},emit:function(ee){var Ee=Zc(ee.offsetDirection);Ee&&this.manager.emit(this.options.event+Ee,ee),this.manager.emit(this.options.event,ee)}});function Vs(){vi.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}T(Vs,vi,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[uo]},process:function(ee){var Ee=this.options,Me=ee.pointers.length===Ee.pointers,it=ee.distance0?-1:1)}const Opt=function(){let e=0,t=null;return Ke(null,(n,r,A)=>{t&&clearTimeout(t),A*e<0&&(e=0);const i=n(LA);if(i===void 0)return;const a=n(Eo),c=a&&a=c){const f=e%100;r(_Me,jpt(e/c)),e=f}t=setTimeout(()=>e=0,100)})}();function Lpt(){const e=dt(Opt),t=dt(h2t),n=b.useRef(null),r=A=>{A.altKey||A.ctrlKey||A.metaKey||A.shiftKey||!A.deltaY||e(A.deltaY)};return Hw(()=>t()),b.useEffect(()=>{if(!n.current)return;const A=new yce(n.current);return A.get("pan").set({direction:yce.DIRECTION_VERTICAL}),A.on("panup pandown",i=>{var a;i.pointerType.includes("touch")&&e(-(((a=i.changedPointers[0])==null?void 0:a.movementY)??0)*5)}),()=>{A.destroy()}},[e]),p.jsxs(FJ,{overflow:"hidden",flexShrink:"1",onWheel:r,maxWidth:"100%",className:X_.scroll,ref:n,children:[p.jsx(Dpt,{}),p.jsx(gpt,{}),p.jsx(xe,{direction:"column",gap:"4",children:p.jsx(upt,{})})]})}function Ppt(){const e=we(Ri),t=dt(Eo),n=dt(E1);wC(()=>{t(void 0),n(void 0)});const r=A=>{A.button===1&&t(void 0)};if(e)return p.jsx(xe,{direction:"column",gap:"4",width:"100%",maxHeight:`calc(100vh - ${NI+jI+12}px)`,onMouseDown:r,children:p.jsx(Lpt,{})})}const vce=Bc(["mySlots","skippedSlots","lateVoteSlots","text"]),hA=vce.enum,Upt={searchType:hA.text,searchText:""},Gpt=Xn({searchType:vce.default(hA.text).catch(hA.text),searchText:ur().default("").catch("")}),OB=Kg("/leaderSchedule")({component:Ppt,validateSearch:Gpt,search:{middlewares:[G4e(Upt),U4e(["searchType","searchText"])]}});function Em({inBytes:e,value:t}){const n=uA(t)??0;let r="-";if(n!==void 0)if(e){const{value:A,unit:i}=VI(n);r=`${A.toLocaleString()} ${i}`}else r=Math.trunc(n).toLocaleString();return p.jsx(Si,{align:"right",children:r})}const e6=["ContactInfoV1","Vote","LowestSlot","SnapshotHashes","AccountsHashes","EpochSlots","VersionV1","VersionV2","NodeInstance","DuplicateShred","IncrementalSnapshotHashes","ContactInfoV2","RestartLastVotedForkSlots","RestartHeaviestFork"],Hpt=["pull_request","pull_response","push","ping","pong","prune"],F7="30px",Ju="10px",N7="160px",bce="10px",Qce=`repeat(auto-fill, minmax(${N7}, 1fr)`,wce="44px",t6="200px",n6="320px",Ypt="_header-text_n52ov_1",zpt="_storage-stats-container_n52ov_6",Jpt="_root_n52ov_11",nd={headerText:Ypt,storageStatsContainer:zpt,root:Jpt};function Wpt({storage:e}){const t=b.useMemo(()=>{if(e!=null&&e.count)return e.count.map((n,r)=>{var A,i,a;return{type:e6[r],activeEntries:(A=e.count)==null?void 0:A[r],egressCount:(i=e.count_tx)==null?void 0:i[r],egressBytes:(a=e.bytes_tx)==null?void 0:a[r]}}).sort((n,r)=>r.activeEntries-n.activeEntries)},[e]);if(t)return p.jsxs(xe,{className:nd.storageStatsContainer,direction:"column",gap:Ju,minWidth:n6,height:"100%",minHeight:"250px",children:[p.jsx(be,{className:nd.headerText,children:"Storage Stats"}),p.jsxs(Fp,{variant:"surface",className:nd.root,size:"1",children:[p.jsx(zg,{children:p.jsxs(za,{children:[p.jsx(jA,{children:"Entry Type"}),p.jsx(jA,{align:"right",children:"Total Entries"}),p.jsx(jA,{align:"right",children:"Egress /s"}),p.jsx(jA,{align:"right",children:"Egress Throughput /s"})]})}),p.jsx(Np,{children:t==null?void 0:t.map(n=>p.jsxs(za,{children:[p.jsx(eQ,{children:n.type}),p.jsx(Si,{align:"right",children:n.activeEntries.toLocaleString()}),p.jsx(Em,{value:n.egressCount??0}),p.jsx(Em,{value:n.egressBytes??0,inBytes:!0})]},n.type))})]})]})}function r6(){return r6=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Xpt={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:dx,accent:fx,dark2:gx,paired:hx,pastel1:px,pastel2:mx,set1:Ex,set2:Ix,set3:mB,tableau10:Cx},Kpt={brown_blueGreen:Ph,purpleRed_green:Uh,pink_yellowGreen:Gh,purple_orange:Hh,red_blue:Yh,red_grey:zh,red_yellow_blue:Jh,red_yellow_green:Wh,spectral:Zh},Vpt={brown_blueGreen:Bx,purpleRed_green:yx,pink_yellowGreen:vx,purple_orange:bx,red_blue:Qx,red_grey:wx,red_yellow_blue:xx,red_yellow_green:_x,spectral:kx},qpt={blues:s2,greens:a2,greys:l2,oranges:d2,purples:c2,reds:u2,blue_green:Xh,blue_purple:Kh,green_blue:Vh,orange_red:qh,purple_blue_green:$h,purple_blue:e2,purple_red:t2,red_purple:n2,yellow_green_blue:r2,yellow_green:o2,yellow_orange_brown:i2,yellow_orange_red:A2},$pt={blues:Gx,greens:Hx,greys:Yx,oranges:Wx,purples:zx,reds:Jx,turbo:n_,viridis:o_,inferno:A_,magma:i_,plasma:s_,cividis:Zx,warm:Kx,cool:Vx,cubehelixDefault:Xx,blue_green:Sx,blue_purple:Dx,green_blue:Rx,orange_red:Tx,purple_blue_green:Mx,purple_blue:Fx,purple_red:Nx,red_purple:jx,yellow_green_blue:Ox,yellow_green:Lx,yellow_orange_brown:Px,yellow_orange_red:Ux};r6({},Xpt,Kpt,qpt);var e1t={rainbow:$x,sinebow:t_};r6({},Vpt,$pt,e1t);var t1t=function(e,t){if(typeof e=="function")return e;if(aB(e)){if(function(f){return f.theme!==void 0}(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Yl(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(function(f){return f.from!==void 0}(e)){var r=function(f){return Yl(f,e.from)};if(Array.isArray(e.modifiers)){for(var A,i=[],a=function(){var f=A.value,h=f[0],m=f[1];if(h==="brighter")i.push(function(I){return I.brighter(m)});else if(h==="darker")i.push(function(I){return I.darker(m)});else{if(h!=="opacity")throw new Error("Invalid color modifier: '"+h+"', must be one of: 'brighter', 'darker', 'opacity'");i.push(function(I){return I.opacity=m,I})}},c=Zpt(e.modifiers);!(A=c()).done;)a();return i.length===0?r:function(f){return i.reduce(function(h,m){return m(h)},Rh(r(f))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},o6=function(e,t){return b.useMemo(function(){return t1t(e,t)},[e,t])};tt.oneOfType([tt.string,tt.func,tt.shape({theme:tt.string.isRequired}),tt.shape({from:tt.string.isRequired,modifiers:tt.arrayOf(tt.array)})]);function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t})},i1t={startAngle:{enter:function(e){return ri({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return ri({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return ri({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return ri({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return ri({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return ri({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return ri({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return ri({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return ri({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return ri({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return ri({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return ri({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return ri({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return ri({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return ri({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return ri({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},kce=function(e,t){return b.useMemo(function(){var n=i1t[e];return{enter:function(r){return ri({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return ri({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return ri({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},A1t=function(e,t){var n=Ast(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return lm(n,r)},s1t=function(e){return function(t,n,r,A){return bC([t,n,r,A],function(i,a,c,f){var h=A1t({startAngle:i,endAngle:a,innerRadius:c,outerRadius:f},e);return"translate("+h.x+","+h.y+")"})}},a1t=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var A=am(),i=A.animate,a=A.config,c=kce(n,r);return{transition:aT(e,{keys:function(f){return f.id},initial:c.update,from:c.enter,enter:c.update,update:c.update,leave:c.leave,config:a,immediate:!i}),interpolate:s1t(t)}},l1t=function(e){var t=e.center,n=e.data,r=e.transitionMode,A=e.label,i=e.radiusOffset,a=e.skipAngle,c=e.textColor,f=e.component,h=f===void 0?r1t:f,m=yB(A),I=ol(),v=o6(c,I),k=b.useMemo(function(){return n.filter(function(T){return Math.abs(IF(T.arc.endAngle-T.arc.startAngle))>=a})},[n,a]),D=a1t(k,i,r),R=D.transition,F=D.interpolate,N=h;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:R(function(T,P){return b.createElement(N,{key:P.id,datum:P,label:m(P),style:ri({},T,{transform:F(T.startAngle,T.endAngle,T.innerRadius,T.outerRadius),textColor:v(P)})})})})},c1t=function(e){var t=e.label,n=e.style,r=ol();return p.jsxs(Dc.g,{opacity:n.opacity,children:[p.jsx(Dc.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),p.jsx(Dc.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:ri({},r.labels.text,{fill:n.textColor}),children:t})]})},u1t=function(e){var t=_ce(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t1.5*Math.PI?"start":"end"},Sce=function(e,t,n,r){var A,i,a=_ce(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),c=lm(a,e.outerRadius+t),f=lm(a,e.outerRadius+t+n);return a1.5*Math.PI?(A="after",i={x:f.x+r,y:f.y}):(A="before",i={x:f.x-r,y:f.y}),{side:A,points:[c,f,i]}},d1t=q9().x(function(e){return e.x}).y(function(e){return e.y}),f1t=function(e,t,n,r,A,i,a){return bC([e,t,n,r,A,i,a],function(c,f,h,m,I,v,k){var D=Sce({startAngle:c,endAngle:f,outerRadius:m},I,v,k).points;return d1t(D)})},g1t=function(e,t,n,r){return bC([e,t,n,r],function(A,i,a,c){return u1t({startAngle:A,endAngle:i})})},h1t=function(e,t,n,r,A,i,a,c){return bC([e,t,n,r,A,i,a,c],function(f,h,m,I,v,k,D,R){var F=Sce({startAngle:f,endAngle:h,outerRadius:I},v,k,D),N=F.points,T=F.side,P=N[2];return T==="before"?P.x-=R:P.x+=R,"translate("+P.x+","+P.y+")"})},p1t=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,A=e.diagonalLength,i=e.straightLength,a=e.skipAngle,c=a===void 0?0:a,f=e.textOffset,h=e.linkColor,m=e.textColor,I=am(),v=I.animate,k=I.config,D=ol(),R=o6(h,D),F=o6(m,D),N=function(P,G){return b.useMemo(function(){return o1t(P,G)},[P,G])}(t,c),T=function(P){var G=P.offset,Y=P.diagonalLength,z=P.straightLength,Z=P.textOffset,K=P.getLinkColor,re=P.getTextColor;return b.useMemo(function(){return{enter:function(V){return{startAngle:V.arc.startAngle,endAngle:V.arc.endAngle,innerRadius:V.arc.innerRadius,outerRadius:V.arc.outerRadius,offset:G,diagonalLength:0,straightLength:0,textOffset:Z,linkColor:K(V),textColor:re(V),opacity:0}},update:function(V){return{startAngle:V.arc.startAngle,endAngle:V.arc.endAngle,innerRadius:V.arc.innerRadius,outerRadius:V.arc.outerRadius,offset:G,diagonalLength:Y,straightLength:z,textOffset:Z,linkColor:K(V),textColor:re(V),opacity:1}},leave:function(V){return{startAngle:V.arc.startAngle,endAngle:V.arc.endAngle,innerRadius:V.arc.innerRadius,outerRadius:V.arc.outerRadius,offset:G,diagonalLength:0,straightLength:0,textOffset:Z,linkColor:K(V),textColor:re(V),opacity:0}}}},[Y,z,Z,K,re,G])}({offset:r,diagonalLength:A,straightLength:i,textOffset:f,getLinkColor:R,getTextColor:F});return{transition:aT(N,{keys:function(P){return P.id},initial:T.update,from:T.enter,enter:T.update,update:T.update,leave:T.leave,config:k,immediate:!v}),interpolateLink:f1t,interpolateTextAnchor:g1t,interpolateTextPosition:h1t}},m1t=function(e){var t=e.center,n=e.data,r=e.label,A=e.skipAngle,i=e.offset,a=e.diagonalLength,c=e.straightLength,f=e.strokeWidth,h=e.textOffset,m=e.textColor,I=e.linkColor,v=e.component,k=v===void 0?c1t:v,D=yB(r),R=p1t({data:n,skipAngle:A,offset:i,diagonalLength:a,straightLength:c,textOffset:h,linkColor:I,textColor:m}),F=R.transition,N=R.interpolateLink,T=R.interpolateTextAnchor,P=R.interpolateTextPosition,G=k;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:F(function(Y,z){return b.createElement(G,{key:z.id,datum:z,label:D(z),style:ri({},Y,{thickness:f,path:N(Y.startAngle,Y.endAngle,Y.innerRadius,Y.outerRadius,Y.offset,Y.diagonalLength,Y.straightLength),textAnchor:T(Y.startAngle,Y.endAngle,Y.innerRadius,Y.outerRadius),textPosition:P(Y.startAngle,Y.endAngle,Y.innerRadius,Y.outerRadius,Y.offset,Y.diagonalLength,Y.straightLength,Y.textOffset)})})})})},E1t=function(e){var t=e.datum,n=e.style,r=e.onClick,A=e.onMouseEnter,i=e.onMouseMove,a=e.onMouseLeave,c=b.useCallback(function(I){return r==null?void 0:r(t,I)},[r,t]),f=b.useCallback(function(I){return A==null?void 0:A(t,I)},[A,t]),h=b.useCallback(function(I){return i==null?void 0:i(t,I)},[i,t]),m=b.useCallback(function(I){return a==null?void 0:a(t,I)},[a,t]);return p.jsx(Dc.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?c:void 0,onMouseEnter:A?f:void 0,onMouseMove:i?h:void 0,onMouseLeave:a?m:void 0})},I1t=function(e,t,n,r,A){return bC([e,t,n,r],function(i,a,c,f){return A({startAngle:i,endAngle:a,innerRadius:Math.max(0,c),outerRadius:Math.max(0,f)})})},C1t=function(e,t,n){t===void 0&&(t="innerRadius");var r=am(),A=r.animate,i=r.config,a=kce(t,n);return{transition:aT(e,{keys:function(c){return c.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:i,immediate:!A}),interpolate:I1t}},B1t=function(e){var t=e.center,n=e.data,r=e.arcGenerator,A=e.borderWidth,i=e.borderColor,a=e.onClick,c=e.onMouseEnter,f=e.onMouseMove,h=e.onMouseLeave,m=e.transitionMode,I=e.component,v=I===void 0?E1t:I,k=ol(),D=o6(i,k),R=C1t(n,m,{enter:function(P){return{opacity:0,color:P.color,borderColor:D(P)}},update:function(P){return{opacity:1,color:P.color,borderColor:D(P)}},leave:function(P){return{opacity:0,color:P.color,borderColor:D(P)}}}),F=R.transition,N=R.interpolate,T=v;return p.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:F(function(P,G){return b.createElement(T,{key:G.id,datum:G,style:ri({},P,{borderWidth:A,path:N(P.startAngle,P.endAngle,P.innerRadius,P.outerRadius,r)}),onClick:a,onMouseEnter:c,onMouseMove:f,onMouseLeave:h})})})},y1t=function(e,t,n,r,A,i){i===void 0&&(i=!0);var a=[],c=lm(q0(r),n);a.push([c.x,c.y]);var f=lm(q0(A),n);a.push([f.x,f.y]);for(var h=Math.round(Math.min(r,A));h<=Math.round(Math.max(r,A));h++)if(h%90==0){var m=lm(q0(h),n);a.push([m.x,m.y])}a=a.map(function(F){var N=F[0],T=F[1];return[e+N,t+T]}),i&&a.push([e,t]);var I=a.map(function(F){return F[0]}),v=a.map(function(F){return F[1]}),k=Math.min.apply(Math,I),D=Math.max.apply(Math,I),R=Math.min.apply(Math,v);return{points:a,x:k,y:R,width:D-k,height:Math.max.apply(Math,v)-R}},v1t=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,A=t.padAngle,i=A===void 0?0:A;return b.useMemo(function(){return Wrt().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(i)},[r,i])};function i6(){return i6=Object.assign?Object.assign.bind():function(e){for(var t=1;t11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var c=Pu(j7[e.scheme][e.size||11]),f=function(I){return c(n(I))};return f.scale=c,f}if(D1t(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var h=Pu(j7[e.scheme][e.size||9]),m=function(I){return h(n(I))};return m.scale=h,m}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},M1t=function(e,t){return b.useMemo(function(){return T1t(e,t)},[e,t])};function B2(){return B2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(A[n]=e[n]);return A}var F1t=function(e){var t=e.width,n=e.height,r=e.legends,A=e.data,i=e.toggleSerie;return p.jsx(p.Fragment,{children:r.map(function(a,c){var f;return p.jsx(Wse,B2({},a,{containerWidth:t,containerHeight:n,data:(f=a.data)!=null?f:A,toggleSerie:a.toggleSerie?i:void 0}),c)})})},Yn={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return p.jsx(p9,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img"},N1t=["points"],j1t=function(e){var t=e.data,n=e.id,r=n===void 0?Yn.id:n,A=e.value,i=A===void 0?Yn.value:A,a=e.valueFormat,c=e.colors,f=c===void 0?Yn.colors:c,h=yB(r),m=yB(i),I=pF(a),v=M1t(f,"id");return b.useMemo(function(){return t.map(function(k){var D,R=h(k),F=m(k),N={id:R,label:(D=k.label)!=null?D:R,hidden:!1,value:F,formattedValue:I(F),data:k};return B2({},N,{color:v(N)})})},[t,h,m,I,v])},O1t=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,A=e.innerRadius,i=e.outerRadius,a=e.padAngle,c=e.sortByValue,f=e.activeId,h=e.activeInnerRadiusOffset,m=e.activeOuterRadiusOffset,I=e.hiddenIds,v=e.forwardLegendData,k=b.useMemo(function(){var N=qrt().value(function(T){return T.value}).startAngle(q0(n)).endAngle(q0(r)).padAngle(q0(a));return c||N.sortValues(null),N},[n,r,a,c]),D=b.useMemo(function(){var N=t.filter(function(T){return!I.includes(T.id)});return{dataWithArc:k(N).map(function(T){var P=Math.abs(T.endAngle-T.startAngle);return B2({},T.data,{arc:{index:T.index,startAngle:T.startAngle,endAngle:T.endAngle,innerRadius:f===T.data.id?A-h:A,outerRadius:f===T.data.id?i+m:i,thickness:i-A,padAngle:T.padAngle,angle:P,angleDeg:IF(P)}})}),legendData:t.map(function(T){return{id:T.id,label:T.label,color:T.color,hidden:I.includes(T.id),data:T}})}},[k,t,I,f,A,h,i,m]),R=D.legendData,F=b.useRef(v);return b.useEffect(function(){typeof F.current=="function"&&F.current(R)},[F,R]),D},L1t=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,A=t!==void 0,i=b.useState(A||r===void 0?null:r),a=i[0],c=i[1];return{activeId:A?t:a,setActiveId:b.useCallback(function(f){n&&n(f),A||c(f)},[A,n,c])}},P1t=function(e){var t=e.data,n=e.width,r=e.height,A=e.innerRadius,i=A===void 0?Yn.innerRadius:A,a=e.startAngle,c=a===void 0?Yn.startAngle:a,f=e.endAngle,h=f===void 0?Yn.endAngle:f,m=e.padAngle,I=m===void 0?Yn.padAngle:m,v=e.sortByValue,k=v===void 0?Yn.sortByValue:v,D=e.cornerRadius,R=D===void 0?Yn.cornerRadius:D,F=e.fit,N=F===void 0?Yn.fit:F,T=e.activeInnerRadiusOffset,P=T===void 0?Yn.activeInnerRadiusOffset:T,G=e.activeOuterRadiusOffset,Y=G===void 0?Yn.activeOuterRadiusOffset:G,z=e.activeId,Z=e.onActiveIdChange,K=e.defaultActiveId,re=e.forwardLegendData,V=L1t({activeId:z,onActiveIdChange:Z,defaultActiveId:K}),oe=V.activeId,Be=V.setActiveId,he=b.useState([]),de=he[0],me=he[1],Ae=b.useMemo(function(){var fe,ye=Math.min(n,r)/2,Oe=ye*Math.min(i,1),Ie=n/2,Fe=r/2;if(N){var qe=y1t(Ie,Fe,ye,c-90,h-90),Ze=qe.points,Te=Mce(qe,N1t),De=Math.min(n/Te.width,r/Te.height),Se={width:Te.width*De,height:Te.height*De};Se.x=(n-Se.width)/2,Se.y=(r-Se.height)/2,Ie=(Ie-Te.x)/Te.width*Te.width*De+Se.x,Fe=(Fe-Te.y)/Te.height*Te.height*De+Se.y,fe={box:Te,ratio:De,points:Ze},ye*=De,Oe*=De}return{centerX:Ie,centerY:Fe,radius:ye,innerRadius:Oe,debug:fe}},[n,r,i,c,h,N]),Ce=O1t({data:t,startAngle:c,endAngle:h,innerRadius:Ae.innerRadius,outerRadius:Ae.radius,padAngle:I,sortByValue:k,activeId:oe,activeInnerRadiusOffset:P,activeOuterRadiusOffset:Y,hiddenIds:de,forwardLegendData:re}),ae=b.useCallback(function(fe){me(function(ye){return ye.indexOf(fe)>-1?ye.filter(function(Oe){return Oe!==fe}):[].concat(ye,[fe])})},[]);return B2({arcGenerator:v1t({cornerRadius:R,padAngle:q0(I)}),activeId:oe,setActiveId:Be,toggleSerie:ae},Ce,Ae)},U1t=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,A=e.centerY,i=e.radius,a=e.innerRadius;return b.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:A,radius:i,innerRadius:a}},[t,n,r,A,i,a])},G1t=function(e){var t=e.center,n=e.data,r=e.arcGenerator,A=e.borderWidth,i=e.borderColor,a=e.isInteractive,c=e.onClick,f=e.onMouseEnter,h=e.onMouseMove,m=e.onMouseLeave,I=e.setActiveId,v=e.tooltip,k=e.transitionMode,D=BKe(),R=D.showTooltipFromEvent,F=D.hideTooltip,N=b.useMemo(function(){if(a)return function(Y,z){c==null||c(Y,z)}},[a,c]),T=b.useMemo(function(){if(a)return function(Y,z){R(b.createElement(v,{datum:Y}),z),I(Y.id),f==null||f(Y,z)}},[a,R,I,f,v]),P=b.useMemo(function(){if(a)return function(Y,z){R(b.createElement(v,{datum:Y}),z),h==null||h(Y,z)}},[a,R,h,v]),G=b.useMemo(function(){if(a)return function(Y,z){F(),I(null),m==null||m(Y,z)}},[a,F,I,m]);return p.jsx(B1t,{center:t,data:n,arcGenerator:r,borderWidth:A,borderColor:i,transitionMode:k,onClick:N,onMouseEnter:T,onMouseMove:P,onMouseLeave:G})},H1t=["isInteractive","animate","motionConfig","theme","renderWrapper"],Y1t=function(e){var t=e.data,n=e.id,r=n===void 0?Yn.id:n,A=e.value,i=A===void 0?Yn.value:A,a=e.valueFormat,c=e.sortByValue,f=c===void 0?Yn.sortByValue:c,h=e.layers,m=h===void 0?Yn.layers:h,I=e.startAngle,v=I===void 0?Yn.startAngle:I,k=e.endAngle,D=k===void 0?Yn.endAngle:k,R=e.padAngle,F=R===void 0?Yn.padAngle:R,N=e.fit,T=N===void 0?Yn.fit:N,P=e.innerRadius,G=P===void 0?Yn.innerRadius:P,Y=e.cornerRadius,z=Y===void 0?Yn.cornerRadius:Y,Z=e.activeInnerRadiusOffset,K=Z===void 0?Yn.activeInnerRadiusOffset:Z,re=e.activeOuterRadiusOffset,V=re===void 0?Yn.activeOuterRadiusOffset:re,oe=e.width,Be=e.height,he=e.margin,de=e.colors,me=de===void 0?Yn.colors:de,Ae=e.borderWidth,Ce=Ae===void 0?Yn.borderWidth:Ae,ae=e.borderColor,fe=ae===void 0?Yn.borderColor:ae,ye=e.enableArcLabels,Oe=ye===void 0?Yn.enableArcLabels:ye,Ie=e.arcLabel,Fe=Ie===void 0?Yn.arcLabel:Ie,qe=e.arcLabelsSkipAngle,Ze=qe===void 0?Yn.arcLabelsSkipAngle:qe,Te=e.arcLabelsTextColor,De=Te===void 0?Yn.arcLabelsTextColor:Te,Se=e.arcLabelsRadiusOffset,Qe=Se===void 0?Yn.arcLabelsRadiusOffset:Se,Ye=e.arcLabelsComponent,At=e.enableArcLinkLabels,Je=At===void 0?Yn.enableArcLinkLabels:At,Nt=e.arcLinkLabel,jt=Nt===void 0?Yn.arcLinkLabel:Nt,bt=e.arcLinkLabelsSkipAngle,wt=bt===void 0?Yn.arcLinkLabelsSkipAngle:bt,se=e.arcLinkLabelsOffset,$t=se===void 0?Yn.arcLinkLabelsOffset:se,Sn=e.arcLinkLabelsDiagonalLength,fn=Sn===void 0?Yn.arcLinkLabelsDiagonalLength:Sn,ue=e.arcLinkLabelsStraightLength,ln=ue===void 0?Yn.arcLinkLabelsStraightLength:ue,Dt=e.arcLinkLabelsThickness,Gt=Dt===void 0?Yn.arcLinkLabelsThickness:Dt,It=e.arcLinkLabelsTextOffset,Cn=It===void 0?Yn.arcLinkLabelsTextOffset:It,wn=e.arcLinkLabelsTextColor,jr=wn===void 0?Yn.arcLinkLabelsTextColor:wn,Yr=e.arcLinkLabelsColor,or=Yr===void 0?Yn.arcLinkLabelsColor:Yr,$r=e.arcLinkLabelComponent,xr=e.defs,yr=xr===void 0?Yn.defs:xr,Co=e.fill,oi=Co===void 0?Yn.fill:Co,pA=e.isInteractive,mA=pA===void 0?Yn.isInteractive:pA,Do=e.onClick,ii=e.onMouseEnter,Ni=e.onMouseMove,oo=e.onMouseLeave,yi=e.tooltip,kA=yi===void 0?Yn.tooltip:yi,EA=e.activeId,Ne=e.onActiveIdChange,$e=e.defaultActiveId,ht=e.transitionMode,ct=ht===void 0?Yn.transitionMode:ht,En=e.legends,_e=En===void 0?Yn.legends:En,Le=e.forwardLegendData,ot=e.role,nt=ot===void 0?Yn.role:ot,Ct=Tse(oe,Be,he),pt=Ct.outerWidth,Pt=Ct.outerHeight,vn=Ct.margin,ft=Ct.innerWidth,Wt=Ct.innerHeight,rn=j1t({data:t,id:r,value:i,valueFormat:a,colors:me}),pn=P1t({data:rn,width:ft,height:Wt,fit:T,innerRadius:G,startAngle:v,endAngle:D,padAngle:F,sortByValue:f,cornerRadius:z,activeInnerRadiusOffset:K,activeOuterRadiusOffset:V,activeId:EA,onActiveIdChange:Ne,defaultActiveId:$e,forwardLegendData:Le}),vr=pn.dataWithArc,uo=pn.legendData,gr=pn.arcGenerator,zr=pn.centerX,Dn=pn.centerY,y=pn.radius,Ot=pn.innerRadius,o=pn.setActiveId,E=pn.toggleSerie,qt=hst(yr,vr,oi),On={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};m.includes("arcs")&&(On.arcs=p.jsx(G1t,{center:[zr,Dn],data:vr,arcGenerator:gr,borderWidth:Ce,borderColor:fe,isInteractive:mA,onClick:Do,onMouseEnter:ii,onMouseMove:Ni,onMouseLeave:oo,setActiveId:o,tooltip:kA,transitionMode:ct},"arcs")),Je&&m.includes("arcLinkLabels")&&(On.arcLinkLabels=p.jsx(m1t,{center:[zr,Dn],data:vr,label:jt,skipAngle:wt,offset:$t,diagonalLength:fn,straightLength:ln,strokeWidth:Gt,textOffset:Cn,textColor:jr,linkColor:or,component:$r},"arcLinkLabels")),Oe&&m.includes("arcLabels")&&(On.arcLabels=p.jsx(l1t,{center:[zr,Dn],data:vr,label:Fe,radiusOffset:Qe,skipAngle:Ze,textColor:De,transitionMode:ct,component:Ye},"arcLabels")),_e.length>0&&m.includes("legends")&&(On.legends=p.jsx(F1t,{width:ft,height:Wt,data:uo,legends:_e,toggleSerie:E},"legends"));var HA=U1t({dataWithArc:vr,arcGenerator:gr,centerX:zr,centerY:Dn,radius:y,innerRadius:Ot});return p.jsx(vF,{width:pt,height:Pt,margin:vn,defs:qt,role:nt,children:m.map(function(Ro,Rn){return On[Ro]!==void 0?On[Ro]:typeof Ro=="function"?p.jsx(b.Fragment,{children:b.createElement(Ro,HA)},Rn):null})})},Fce=function(e){var t=e.isInteractive,n=t===void 0?Yn.isInteractive:t,r=e.animate,A=r===void 0?Yn.animate:r,i=e.motionConfig,a=i===void 0?Yn.motionConfig:i,c=e.theme,f=e.renderWrapper,h=Mce(e,H1t);return p.jsx(mF,{animate:A,isInteractive:n,motionConfig:a,renderWrapper:f,theme:c,children:p.jsx(Y1t,B2({isInteractive:n},h))})};const z1t="_label_1nl74_1",J1t="_value_1nl74_6",Nce={label:z1t,value:J1t};function eg(e){return p.jsx(hI,{children:p.jsx(W1t,{...e})})}function W1t({value:e,label:t,valueColor:n}){const r=typeof e=="string"?e:e.toLocaleString();return p.jsxs(xe,{direction:"column",minWidth:"0",gap:"10px",children:[p.jsx(be,{className:Nce.label,children:t}),p.jsx(be,{className:Nce.value,style:n?{color:n}:void 0,children:r})]})}const Z1t="_header-text_uidb2_1",X1t="_tooltip_uidb2_8",A6={headerText:Z1t,tooltip:X1t};function K1t({storage:e}){var a;const t=b.useMemo(()=>{if(e!=null&&e.count)return e.count.map((c,f)=>{var h,m,I;return{type:e6[f],activeEntries:(h=e.count)==null?void 0:h[f],egressCount:(m=e.count_tx)==null?void 0:m[f],egressBytes:(I=e.bytes_tx)==null?void 0:I[f]}})},[e]),n=b.useMemo(()=>{const c=hn.sum(e.count),f=e.capacity-c;return`${Math.round(c/f*100)}%`},[e.capacity,e.count]),r=rte(e.expired_count,1e4),A=b.useRef([]);b.useMemo(()=>{A.current.push({ts:performance.now(),value:e.expired_count})},[e.expired_count]),_1(()=>{const c=performance.now();for(;A.current.length>1&&c-A.current[0].ts>6e4;)A.current.shift()},1e3);const i=e.expired_count-(((a=A.current[0])==null?void 0:a.value)??0);if(t)return p.jsxs(xe,{direction:"column",gap:Ju,children:[p.jsx(be,{className:A6.headerText,children:"Storage Stats"}),p.jsxs(xe,{gap:wce,wrap:"wrap",children:[p.jsxs(lA,{columns:Qce,minWidth:N7,gap:bce,flexGrow:"1",flexBasis:"0",children:[p.jsx(eg,{label:"Expired (/s)",value:`${Math.trunc(r.valuePerSecond??0)}`}),p.jsx(eg,{label:"Expired (Last Min)",value:`${i.toLocaleString()}`}),p.jsx(eg,{label:"Total Evicted",value:e.evicted_count}),p.jsx(eg,{label:"Capacity Used",value:n})]}),p.jsx(rr,{minWidth:t6,minHeight:t6,flexGrow:"1",flexBasis:"0",children:p.jsx(q1t,{storage:e,usedCapacity:n})})]})]})}const jce=["#48295C","#562800","#132D21"],V1t=e=>jce[e%jce.length];function q1t({storage:e,usedCapacity:t}){const n=b.useMemo(()=>{const r=hn.sum(e.count);return[{id:"unused",label:"Unused",value:e.capacity-r,color:"#222"},...e.count.map((A,i)=>({id:e6[i]+i,label:e6[i],value:A})).sort((A,i)=>i.value-A.value).map((A,i)=>({...A,color:V1t(i)}))]},[e]);return p.jsx(rl,{children:({height:r,width:A})=>p.jsx(Fce,{height:r,width:A,data:n,colors:i=>i.data.color,arcLabelsSkipAngle:10,arcLinkLabelsSkipAngle:10,arcLabelsTextColor:"#9F9F9F",enableArcLinkLabels:!1,layers:["arcs","arcLabels",$1t(t)],tooltip:emt,animate:!1,innerRadius:.7,arcLabel:i=>i.data.label})})}function $1t(e){return function({dataWithArc:t,centerX:n,centerY:r}){return p.jsx("text",{y:r-6,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"28px",fill:"#9F9F9F"},children:p.jsx("tspan",{x:n,dy:5,children:e})})}}function emt(e){const t=e.datum.value;return p.jsx("div",{className:A6.tooltip,children:p.jsxs(be,{style:{whiteSpace:"nowrap"},children:[e.datum.label,":\xA0",t]})})}function tmt({messages:e}){const t=b.useMemo(()=>e.num_bytes_rx.map((n,r)=>{var A,i,a,c;return{type:Hpt[r],ingressBytes:(A=e.num_bytes_rx)==null?void 0:A[r],egressBytes:(i=e.num_bytes_tx)==null?void 0:i[r],ingressMessages:(a=e.num_messages_rx)==null?void 0:a[r],egressMessages:(c=e.num_messages_tx)==null?void 0:c[r]}}),[e]);if(t)return p.jsxs(xe,{direction:"column",gap:Ju,minWidth:n6,children:[p.jsx(be,{className:nd.headerText,children:"Message Stats"}),p.jsxs(Fp,{variant:"surface",className:nd.root,size:"1",children:[p.jsx(zg,{children:p.jsxs(za,{children:[p.jsx(jA,{children:"Message Type"}),p.jsx(jA,{align:"right",children:"Ingress /s"}),p.jsx(jA,{align:"right",children:"Egress /s"}),p.jsx(jA,{align:"right",children:"Ingress Throughput /s"}),p.jsx(jA,{align:"right",children:"Egress Throughput /s"})]})}),p.jsx(Np,{children:t==null?void 0:t.map((n,r)=>p.jsxs(za,{children:[p.jsx(eQ,{children:n.type}),p.jsx(Em,{value:n.ingressMessages??0}),p.jsx(Em,{value:n.egressMessages??0}),p.jsx(Em,{value:n.ingressBytes??0,inBytes:!0}),p.jsx(Em,{value:n.egressBytes??0,inBytes:!0})]},n.type))})]})]})}const Oce={id:"Stake",direction:-1};function nmt(){const e=b4(),t=we(yZ),n=we(vZ),r=b.useRef(new Map),[A,i]=b.useState([]),[a,c]=b.useState(Oce);b.useEffect(()=>{var I;if(!t)return;const m=Object.entries(t);if(!A.length&&((I=m[0])!=null&&I[1])){const v=Object.keys(m[0][1]);i(v),c(Oce)}for(const[v,k]of m)r.current.set(v,k)},[A,t]),b.useEffect(()=>{if(n)for(const m of n.changes){const I=r.current.get(m.row_index.toString());I&&(I[m.column_name]=m.new_value)}},[n]);const f=b.useCallback((m,I)=>{if(I{(A==null?void 0:A.indexOf(m))!==void 0&&c(I=>{let v=-1;I.id===m&&(v=-I.direction);const k=A.filter(F=>F!==m),D=new Array(k.length).fill(0),R={col:[m,...k],dir:[v,...D]};return e({topic:"gossip",key:"query_sort",id:32,params:R}),{id:m,direction:v}})},[A,e]);return{query:f,sort:h,colIds:A,rowsCacheRef:r,colSorting:a}}const rmt="_header-text_1ozln_1",omt="_peer-table_1ozln_6",imt="_header-cell_1ozln_22",Amt="_header-separator_1ozln_26",s6={headerText:rmt,peerTable:omt,headerCell:imt,headerSeparator:Amt},smt=1e3,O7=0,a6=e=>{if(typeof e=="number"){const t=VI(e);return`${t.value} ${t.unit}`}return e},amt={Stake:{width:80,align:"right",format:e=>typeof e=="number"?Math.abs(Math.trunc(e/If)).toLocaleString():e},Pubkey:{width:200},Name:{width:160},Country:{width:80},"IP Addr":{width:80},"Ingress Pull":{width:80,align:"right",format:a6},"Ingress Push":{width:80,align:"right",format:a6},"Egress Pull":{width:80,align:"right",format:a6},"Egress Push":{width:80,align:"right",format:a6}},l6={width:150};function LB(e){return amt[e]??l6}function lmt(){const e=we(BZ)??smt,{query:t,sort:n,colIds:r,rowsCacheRef:A,colSorting:i}=nmt(),[a,c]=b.useState(()=>({row:-1,colId:""})),[f,h]=b.useState(!1),[m,I]=b.useState(Object.fromEntries(r.map(F=>[F,LB(F).width??l6.width])));b.useEffect(()=>{I(Object.fromEntries(r.map(F=>[F,LB(F).width??l6.width])))},[r]);const v=b.useCallback(({startIndex:F,endIndex:N})=>{const T=Math.max(0,F-O7),P=Math.min(N+O7,e>0?e-1:N+O7);t(T,P)},[t,e]),k=b.useMemo(()=>cmt(r,m),[r,m]),D=b.useRef(a);D.current=a,R7e("c",F=>{var N,T;if(F.ctrlKey){const P=(T=(N=A.current)==null?void 0:N.get(D.current.row.toString()))==null?void 0:T[D.current.colId];P&&(IR(P.toString()),h(!0),setTimeout(()=>{h(!1)},500))}});const R=b.useCallback((F,N)=>{I(T=>({...T,[F]:Math.max(N,LB(F).width??l6.width)}))},[]);return p.jsxs(xe,{direction:"column",gap:Ju,flexGrow:"1",children:[p.jsx(be,{className:s6.headerText,children:"Peers"}),p.jsx(rr,{flexGrow:"1",minHeight:"300px",asChild:!0,children:p.jsx(TYe,{className:xt("rt-TableRoot","rt-r-size-1","rt-variant-surface",s6.peerTable),totalCount:e,increaseViewportBy:200,rangeChanged:v,components:k,itemContent:F=>{var T;const N=(T=A.current)==null?void 0:T.get(F.toString());return N?r.map(P=>{const G=LB(P),Y=G.align,z=G.format,Z=N==null?void 0:N[P],K=a.row===F&&a.colId===P;return p.jsx(Si,{align:Y,onClick:()=>c({row:F,colId:P}),style:{outline:K?`1px dashed var(--gray-${f?11:10})`:"none",outlineOffset:-2},children:p.jsx(be,{truncate:!0,as:"div",children:z?z(Z):Z})},P)}):r!=null&&r.length?p.jsx(p.Fragment,{children:r.map(P=>p.jsx(Si,{children:"\xA0"},P))}):p.jsx(p.Fragment,{children:p.jsx(Si,{children:"&nsbsp;"})})},fixedHeaderContent:()=>p.jsx(za,{children:r.map(F=>{const{align:N}=LB(F),T=i.id===F?i.direction:void 0,P=G=>{G.preventDefault();const Y=G.clientX,z=m[F],Z=re=>R(F,z+(re.clientX-Y)),K=()=>{window.removeEventListener("pointermove",Z),window.removeEventListener("pointerup",K)};window.addEventListener("pointermove",Z),window.addEventListener("pointerup",K)};return p.jsx(jA,{align:N,p:"0",children:p.jsxs(xe,{align:"center",height:"100%",children:[p.jsx(Mp,{children:p.jsx(rr,{flexGrow:"1",className:s6.headerCell,asChild:!0,children:p.jsx("button",{onClick:()=>n(F),children:p.jsxs(xe,{align:"center",gap:"1",justify:N==="right"?"end":"start",children:[N==="right"&&p.jsx(Lce,{direction:T}),p.jsx(be,{truncate:!0,title:F,as:"div",children:F}),N!=="right"&&p.jsx(Lce,{direction:T})]})})})}),p.jsx("div",{style:{paddingLeft:"8px",paddingRight:"2px",cursor:"col-resize"},onPointerDown:P,children:p.jsx(Ya,{orientation:"vertical",size:"2",className:s6.headerSeparator})})]})},F)})})})})]})}function Lce({direction:e}){return p.jsxs(p.Fragment,{children:[e===-1&&p.jsx(pT,{height:12,width:12}),e===1&&p.jsx(mT,{height:12,width:12})]})}function cmt(e,t){return{Table:n=>p.jsxs("table",{...n,className:"rt-TableRootTable",style:{...n.style,overflow:"inherit",tableLayout:"fixed"},children:[p.jsx("colgroup",{children:e.map(r=>p.jsx("col",{style:{width:t[r]}},r))}),n.children]}),TableHead:n=>p.jsx(zg,{...n,style:{...n.style,background:"#0e131c"}}),TableRow:n=>p.jsx(za,{...n})}}function Pce({activeStake:e,delinquentStake:t}){const n=b.useMemo(()=>[{id:"non-delinquent",label:"Non-delinquent",value:Number(e),color:nq,textColor:fw},{id:"delinquent",label:"Delinquent",value:Number(t),color:Qu,textColor:Qu}],[e,t]);return p.jsx(rl,{children:({height:r,width:A})=>p.jsx(Fce,{height:r,width:A,data:n,colors:{datum:"data.color"},enableArcLabels:!1,enableArcLinkLabels:!1,layers:["arcs",umt],tooltip:dmt,animate:!1,innerRadius:.7})})}const umt=({dataWithArc:e,centerX:t,centerY:n})=>{const r=hn.sum(e.map(({value:A})=>A));return p.jsx("text",{y:n-6,textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"12px",fill:"red"},children:e.map(({value:A,data:i,id:a},c)=>p.jsxs("tspan",{x:t,dy:`${c}em`,style:{fill:i.textColor},children:[(A/r*100).toFixed(2),"%"]},a))})};function dmt(e){const t=e.datum.value,n=Zl(BigInt(t));return p.jsx("div",{className:A6.tooltip,children:p.jsxs(be,{children:[e.datum.label,":\xA0",n]})})}function fmt(){{const e=we(I1);if(!e)return null;const t=Zl(e.activeStake),n=Zl(e.delinquentStake);return p.jsxs(xe,{direction:"column",gap:Ju,children:[p.jsx(be,{className:A6.headerText,children:"Validator Stats"}),p.jsxs(xe,{gap:wce,wrap:"wrap",children:[p.jsxs(lA,{columns:Qce,minWidth:N7,gap:bce,flexGrow:"1",flexBasis:"0",children:[p.jsx(eg,{label:"Total Validators",value:e.validatorCount.toLocaleString(),valueColor:W5}),p.jsx(eg,{label:"Non-delinquent Stake",value:t,valueColor:fw}),p.jsx(eg,{label:"RPC Nodes",value:e.rpcCount.toLocaleString(),valueColor:P0}),p.jsx(eg,{label:"Delinquent Stake",value:n,valueColor:Qu})]}),p.jsx(rr,{minWidth:t6,minHeight:t6,flexGrow:"1",flexBasis:"0",children:p.jsx(Pce,{activeStake:e.activeStake,delinquentStake:e.delinquentStake})})]})]})}}const Uce=150,gmt=3e4,L7=Math.trunc(gmt/Uce),P7=2;function Gce({values:e,colors:t,maxValue:n}){const r=b.useRef(),[A,i]=b.useState([]),a=e.length,c=b.useRef(n);c.current=n;const f=b.useRef(!1);b.useEffect(()=>{i(Array.from({length:L7}).map((m,I)=>Array.from({length:a})))},[a]),_1(()=>{!f.current&&e.every(m=>!m)||(f.current=!0,i(m=>{let I=[...m];return m.length>L7&&(I=I.slice(I.length-L7)),I.push(e),I}))},Uce);const h=b.useMemo(()=>{var N;if(!r.current||!A.length)return;const{height:m,width:I}=r.current;if(m<0||I<0)return;const v=A.length,k=I/v,D=Math.max(c.current,Math.max(...A.flatMap(T=>T.filter(ZI)))),R=A[0].length,F=Array.from({length:R}).map(()=>new Array);for(let T=0;TT.map(({x:P,y:G})=>`${P},${G}`).join(" "))},[A]);return p.jsx(rr,{flexGrow:"1",minHeight:"80px",children:p.jsx(rl,{children:({height:m,width:I})=>{if(r.current={height:m,width:I},!!h&&(h==null?void 0:h.length)===t.length)return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:I,height:m,style:{background:"#222222"},children:h.map((v,k)=>p.jsx("polyline",{points:v,stroke:t[k],strokeWidth:P7,fill:"none",strokeLinecap:"round",strokeOpacity:.8},t[k]))})}})})}const U7="#197CAE",G7="var(--amber-8)",Hce="#CBD4D6",Yce=[U7,G7];function hmt({health:e}){return p.jsxs(lA,{columns:{initial:"1",sm:"2",lg:"4"},gapY:"3",gapX:"7",children:[p.jsx(mmt,{health:e}),p.jsx(pmt,{health:e}),p.jsx(Emt,{health:e}),p.jsx(Imt,{health:e})]})}function zce({title:e,children:t}){return p.jsxs(xe,{direction:"column",gap:Ju,children:[p.jsx(be,{style:{color:"var(--primary-text-color)",fontSize:"18px"},children:e}),p.jsx(hI,{style:{flex:1},children:t})]})}function Jce({value:e,label:t,valueColor:n,pct:r}){return p.jsxs(xe,{direction:"column",children:[p.jsxs(xe,{gap:"2",children:[p.jsx(be,{style:{color:"var(--gray-11)"},children:t}),p.jsxs(be,{style:{color:"var(--gray-10)"},children:[fT.format(r*100),"%"]})]}),p.jsx(be,{style:{color:n},size:"8",children:Math.round(e).toLocaleString()})]})}function H7({value:e,label:t,valueColor:n,pct:r,size:A}){return p.jsxs(xe,{direction:"column",children:[p.jsx(be,{style:{color:"var(--gray-11)"},children:t}),p.jsx(be,{style:{color:n},size:A==="lg"?"8":"6",children:Math.round(e).toLocaleString()}),r!==void 0&&p.jsxs(be,{style:{color:"var(--gray-10)"},size:"2",children:[fT.format(r*100),"%"]})]})}function pmt({health:e}){const t=uA(e.num_push_entries_rx_success+e.num_push_entries_rx_failure),n=uA(e.num_pull_response_entries_rx_success+e.num_pull_response_entries_rx_failure),r=uA(e.num_push_entries_rx_success),A=uA(e.num_pull_response_entries_rx_success),i=r+A,a=Math.max(t,n,i),c=hn.clamp(r/t,0,1),f=hn.clamp(A/n,0,1),h=[Hce,...Yce];return p.jsx(zce,{title:"Entries Success /s",children:p.jsxs(xe,{gap:"6",children:[p.jsxs(xe,{direction:"column",gap:"3",children:[p.jsx(H7,{label:"Total",value:i,valueColor:Hce,size:"lg"}),p.jsxs(xe,{gap:"3",children:[p.jsx(H7,{label:"Push",value:r,valueColor:U7,pct:c}),p.jsx(H7,{label:"Pull",value:A,valueColor:G7,pct:f})]})]}),p.jsx(Gce,{values:[i,r,A],colors:h,maxValue:a})]})})}function Y7({title:e,valueA:t,valueB:n,totalA:r,totalB:A,labelA:i,labelB:a}){const c=t/r,f=n/A,h=Math.max(r,A);return p.jsx(zce,{title:e,children:p.jsxs(xe,{gap:"6",height:"100%",children:[p.jsxs(xe,{direction:"column",gap:"3",minWidth:"120px",children:[p.jsx(Jce,{label:i,value:t,valueColor:U7,pct:hn.clamp(c,0,1)}),p.jsx(Jce,{label:a,value:n,valueColor:G7,pct:hn.clamp(f,0,1)})]}),p.jsx(Gce,{values:[t,n],colors:Yce,maxValue:h})]})})}function mmt({health:e}){const t=uA(e.num_push_messages_rx_success+e.num_push_messages_rx_failure),n=uA(e.num_pull_response_messages_rx_success+e.num_pull_response_messages_rx_failure),r=uA(e.num_push_messages_rx_failure),A=uA(e.num_pull_response_messages_rx_failure);return p.jsx(Y7,{title:"Message Failures /s",valueA:r,valueB:A,totalA:t,totalB:n,labelA:"Push",labelB:"Pull"})}function Emt({health:e}){const t=uA(e.num_push_entries_rx_success+e.num_push_entries_rx_failure),n=uA(e.num_pull_response_entries_rx_success+e.num_pull_response_entries_rx_failure),r=uA(e.num_push_entries_rx_duplicate),A=uA(e.num_pull_response_entries_rx_duplicate);return p.jsx(Y7,{title:"Entry Duplicates /s",valueA:r,valueB:A,totalA:t,totalB:n,labelA:"Push",labelB:"Pull"})}function Imt({health:e}){const t=uA(e.num_push_entries_rx_success+e.num_push_entries_rx_failure),n=uA(e.num_pull_response_entries_rx_success+e.num_pull_response_entries_rx_failure),r=uA(e.num_push_entries_rx_failure-e.num_push_entries_rx_duplicate),A=uA(e.num_pull_response_entries_rx_failure-e.num_pull_response_entries_rx_duplicate);return p.jsx(Y7,{title:"Entry Failures /s",valueA:r,valueB:A,totalA:t,totalB:n,labelA:"Push",labelB:"Pull"})}function Cmt(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Bmt(){return this.eachAfter(Cmt)}function ymt(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function vmt(e,t){for(var n=this,r=[n],A,i,a=-1;n=r.pop();)if(e.call(t,n,++a,this),A=n.children)for(i=A.length-1;i>=0;--i)r.push(A[i]);return this}function bmt(e,t){for(var n=this,r=[n],A=[],i,a,c,f=-1;n=r.pop();)if(A.push(n),i=n.children)for(a=0,c=i.length;a=0;)n+=r[A].value;t.value=n})}function xmt(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function _mt(e){for(var t=this,n=kmt(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var A=r.length;e!==n;)r.splice(A,0,e),e=e.parent;return r}function kmt(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),A=null;for(e=n.pop(),t=r.pop();e===t;)A=e,e=n.pop(),t=r.pop();return A}function Smt(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Dmt(){return Array.from(this)}function Rmt(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Tmt(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Mmt(){var e=this,t,n=[e],r,A,i;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(A=0,i=r.length;A=0;--c)A.push(i=a[c]=new c6(a[c])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(Lmt)}function Fmt(){return z7(this).eachBefore(Omt)}function Nmt(e){return e.children}function jmt(e){return Array.isArray(e)?e[1]:null}function Omt(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Lmt(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function c6(e){this.data=e,this.depth=this.height=0,this.parent=null}c6.prototype=z7.prototype={constructor:c6,count:Bmt,each:ymt,eachAfter:bmt,eachBefore:vmt,find:Qmt,sum:wmt,sort:xmt,path:_mt,ancestors:Smt,descendants:Dmt,leaves:Rmt,links:Tmt,copy:Fmt,[Symbol.iterator]:Mmt};function Pmt(e){if(typeof e!="function")throw new Error;return e}function PB(){return 0}function UB(e){return function(){return e}}function Umt(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Gmt(e,t,n,r,A){for(var i=e.children,a,c=-1,f=i.length,h=e.value&&(r-t)/e.value;++cT&&(T=h),z=F*F*Y,P=Math.max(T/z,z/N),P>G){F-=h;break}G=P}a.push(f={value:F,dice:k1?r:1)},n}(Ymt);function Jmt(){var e=Wce,t=!1,n=1,r=1,A=[0],i=PB,a=PB,c=PB,f=PB,h=PB;function m(v){return v.x0=v.y0=0,v.x1=n,v.y1=r,v.eachBefore(I),A=[0],t&&v.eachBefore(Umt),v}function I(v){var k=A[v.depth],D=v.x0+k,R=v.y0+k,F=v.x1-k,N=v.y1-k;F{let c=0,f=0;const h=[];for(;f{var v,k,D;const f=n[c];if(!f)return;const h=hn.sum(f.vote.map(R=>R.delinquent?0:Number(R.activated_stake))),m=((v=f.info)==null?void 0:v.icon_url)||((k=f.info)!=null&&k.keybase_username?`https://keybase.io/${f.info.keybase_username}/picture`:void 0)||void 0,I=((D=f.info)==null?void 0:D.name)??void 0;return{stake:h,iconUrl:m,name:I}},[n]),i=we(Zq);if(!r)return;const a=VI(e.total_throughput);return p.jsxs(xe,{direction:"column",gap:Ju,minHeight:"300px",minWidth:"300px",flexGrow:"1",children:[p.jsxs(xe,{justify:"between",children:[p.jsx(be,{className:rd.headerText,children:t}),p.jsxs("span",{children:[p.jsx(be,{className:rd.totalText,children:"Total"}),p.jsxs(be,{className:rd.throughputText,children:["\xA0",`${a.value} ${a.unit}`,"/s"]})]})]}),p.jsx(rr,{flexGrow:"1",children:p.jsx(rl,{children:({height:c,width:f})=>p.jsx(rEt,{sortedData:r,width:f,height:c,getPeerValues:A,totalActivePeersStake:i})})})]})}function rEt({sortedData:e,width:t,height:n,totalActivePeersStake:r,getPeerValues:A}){const[i,a]=b.useState(),[c,f]=b.useState(!1),h=b.useRef(),m=b.useCallback(R=>{a(F=>(R!==F&&f(!1),R))},[]),I=b.useCallback(R=>{IR(R),f(!0),clearTimeout(h.current),h.current=setTimeout(()=>f(!1),1e3)},[f]);Hw(()=>{clearTimeout(h.current)});const v=b.useMemo(()=>ADe||c?"ID copied to clipboard":"Click to copy ID",[c]),k=b.useMemo(()=>{const R=z7(e).sum(N=>N.value??0),F=Jmt();return F.tile(nEt),F.size([t,n]),F.round(!0),F.paddingInner(2),F(R).leaves()},[t,n,e]),D=b.useMemo(()=>{let R=[];const F=Math.ceil(e.children.length/Zce.length);for(let N=0;Nm(void 0),children:k.map((R,F)=>{const N=`${R.data.id}-${R.x0}-${R.x1}-${R.y0}-${R.y1}`,T=i===N;return p.jsx(oEt,{leaf:R,color:D[F],totalActivePeersStake:r,getPeerValues:A,tooltipText:T?v:void 0,openTooltip:()=>m(N),copyId:()=>I(R.data.id)},R.data.id)})})}function oEt({leaf:e,color:t,totalActivePeersStake:n,getPeerValues:r,tooltipText:A,openTooltip:i,copyId:a}){const c=e.x1-e.x0,f=e.y1-e.y0;return p.jsx(Ei,{open:!!A,className:rd.tooltip,content:A,disableHoverableContent:!0,side:"bottom",onOpenChange:h=>{h&&i()},children:p.jsx(rr,{onClick:a,onMouseEnter:()=>{i()},className:rd.leaf,position:"absolute",width:`${c}px`,height:`${f}px`,style:{transform:`translate(${e.x0}px, ${e.y0}px)`,"--leaf-color":t},children:p.jsx(iEt,{width:c,height:f,leaf:e,totalActivePeersStake:n,getPeerValues:r})})})}function iEt({width:e,height:t,leaf:n,totalActivePeersStake:r,getPeerValues:A}){const i=n.data.id,a=A(i),c=(a==null?void 0:a.name)||"Private",f=e>=20&&t>=20,h=e>=100&&t>=100?14:e>=55&&t>=55?12:e>=32&&t>=32?8:4,m=e>=30&&t>=38,I=t>=150,v=t>=60,k=e>=82;return p.jsxs(xe,{className:rd.leafContent,height:"100%",direction:"column",align:"center",justify:"center",overflow:"hidden",p:f?"8px":"0",gap:"4px",children:[f&&p.jsx(jl,{url:a==null?void 0:a.iconUrl,size:h}),m&&p.jsx(be,{className:xt(rd.name,{[rd.large]:I}),truncate:!0,align:"center",children:c}),v&&p.jsxs(xe,{className:rd.stats,align:"center",justify:"center",gap:"5px",children:[p.jsx(AEt,{value:n.value}),k&&(a==null?void 0:a.stake)!==void 0&&p.jsx(sEt,{stake:a.stake,totalActivePeersStake:r})]})]})}function AEt({value:e}){const t=VI(e??0);return p.jsxs(be,{truncate:!0,children:[t.value," ",t.unit]})}function sEt({stake:e,totalActivePeersStake:t}){const n=b.useMemo(()=>{if(e===0)return"0";const r=100*e/Number(t);return r<.01?"<.01":r.toFixed(2)},[e,t]);return p.jsxs(xe,{align:"center",justify:"center",gap:"3px",children:[p.jsx(uNe,{width:8,height:8}),p.jsxs(be,{truncate:!0,children:[n,"%"]})]})}function aEt(){const e=we(qi),t=we(CZ),[n]=_ee(t,5e3,{leading:!0,maxWait:5e3}),r=t==null?void 0:t.health,A=t==null?void 0:t.storage;if(e!==Ci.Frankendancer&&!(!r||!A||!n))return p.jsxs(xe,{gap:"30px",direction:"column",align:"stretch",justify:"center",height:"100%",children:[p.jsxs(xe,{gapX:"30px",gapY:F7,wrap:"wrap",children:[p.jsx(Xce,{networkTraffic:n.ingress,label:"Ingress"}),p.jsx(Xce,{networkTraffic:n.egress,label:"Egress"})]}),p.jsxs(xe,{gap:"30px",wrap:"wrap",children:[p.jsxs(xe,{direction:"column",flexGrow:"1",flexBasis:"0",gap:F7,minWidth:n6,children:[p.jsx(K1t,{storage:A}),p.jsx(Wpt,{storage:A})]}),p.jsxs(xe,{direction:"column",flexGrow:"1",flexBasis:"0",gap:F7,minWidth:n6,children:[p.jsx(fmt,{}),p.jsx(tmt,{messages:t.messages})]})]}),p.jsx(hmt,{health:r}),p.jsx(lmt,{})]})}const lEt=ns(),cEt=Kg("/gossip")({component:aEt,beforeLoad:({context:e,location:t})=>{if(lEt.get(qi)===Ci.Frankendancer)throw lW({to:"/"})}}),uEt=Kg("/about")({component:dEt});function dEt(){return p.jsx("div",{className:"p-2",children:p.jsx("h3",{children:"About"})})}const u6=600,Kce=Za(new Array(u6).fill(void 0)),J7=(e,t)=>e.length?"M"+e.map(({x:n,y:r})=>`L ${n} ${t-r}`).join(" ").slice(1)+`L ${e[e.length-1].x} ${t} L ${e[0].x} ${t}, L ${e[0].x} ${e[0].y}`:"";function fEt(){const e=we(Kce),t=b.useRef(),n=Math.max(...e.map(A=>(A==null?void 0:A.total)??0)),r=b.useMemo(()=>{if(!t.current||!e.length)return;const{height:A,width:i}=t.current,a=e.length,c=(i+2)/a,f=(A-10)/(n||1),h=e.map((I,v)=>{if(I!==void 0)return{x:v*c,voteY:I.vote*f,nonvoteFailedY:(I.nonvote_failed+I.vote)*f,nonvoteY:(I.nonvote_success+I.nonvote_failed+I.vote)*f}}).filter(ZI),m=A-n*f;return{votePath:J7(h.map(I=>({x:I.x,y:I.voteY})),A),failedPath:J7(h.map(I=>({x:I.x,y:I.nonvoteFailedY})),A),nonvotePath:J7(h.map(I=>({x:I.x,y:I.nonvoteY})),A),totalTpsY:isNaN(m)?void 0:m}},[n,e]);return p.jsx(p.Fragment,{children:p.jsx(rl,{children:({height:A,width:i})=>(t.current={height:A,width:i},r?p.jsx(p.Fragment,{children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:A,fill:"none",children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:r.nonvotePath,fill:rq}),p.jsx("path",{d:r.failedPath,fill:iq}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:oq,d:r.votePath}),r.totalTpsY&&p.jsxs(p.Fragment,{children:[p.jsx("line",{x1:"0",y1:r.totalTpsY,x2:i,y2:r.totalTpsY,strokeDasharray:"4",stroke:"rgba(255, 255, 255, 0.30)"}),p.jsx("text",{x:"0",y:r.totalTpsY-3,fill:J5,fontSize:"8",fontFamily:"Inter Tight",children:n.toLocaleString()})]})]})}):null)})})}const gEt="_axis-text_juf3d_1",Vce={axisText:gEt},hEt="_label_lgd2h_1",pEt="_value_lgd2h_8",mEt="_append-value_lgd2h_12",W7={label:hEt,value:pEt,appendValue:mEt};function Ca({label:e,value:t,valueColor:n,appendValue:r,large:A,style:i,valueStyle:a,children:c}){const f=a??(A?{fontSize:"28px",letterSpacing:"-1.12px"}:{fontSize:"18px",fontWeight:500});return p.jsxs(xe,{direction:"column",align:"start",style:{...i},children:[p.jsx(be,{className:W7.label,children:e}),p.jsxs(xe,{align:"baseline",gap:"1",children:[p.jsx(be,{className:W7.value,style:{color:n,...f},children:t}),r&&p.jsx(be,{className:W7.appendValue,children:r}),c]})]})}function EEt(){const e=we(WD);return p.jsxs(xe,{direction:"column",gap:"2",minWidth:"100px",children:[p.jsx(Ca,{label:"Total TPS",value:(e==null?void 0:e.total.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}))??"-",valueColor:P0,large:!0}),p.jsxs(xe,{gap:"4",wrap:"wrap",children:[p.jsx(Ca,{label:"Non-vote TPS Success",value:(e==null?void 0:e.nonvote_success.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}))??"-",valueColor:Qf}),p.jsx(Ca,{label:"Non-vote TPS Fail",value:(e==null?void 0:e.nonvote_failed.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}))??"-",valueColor:Qu}),p.jsx(Ca,{label:"Vote TPS",value:(e==null?void 0:e.vote.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}))??"-",valueColor:L0,style:{minWidth:"90px"}})]})]})}function IEt(){return p.jsx(Cs,{style:{flex:100},children:p.jsxs(xe,{direction:"column",height:"100%",gap:"2",children:[p.jsx(Jf,{text:"Transactions"}),p.jsxs(xe,{gap:"4",flexGrow:"1",children:[p.jsx(EEt,{}),p.jsxs(xe,{direction:"column",flexGrow:"1",children:[p.jsx(rr,{flexGrow:"1",minWidth:"180px",overflow:"hidden",children:p.jsx(fEt,{})}),p.jsxs(xe,{justify:"between",children:[p.jsx(be,{className:Vce.axisText,children:"~ 1min ago"}),p.jsx(be,{className:Vce.axisText,children:"Now"})]})]})]})]})})}const CEt="_stat-row_394e1_1",qce={statRow:CEt};function BEt(){const e=we(I1);if(!e)return null;const t=Zl(e.activeStake),n=Zl(e.delinquentStake);return p.jsxs(xe,{gap:"2",flexGrow:"1",children:[p.jsxs(xe,{direction:"column",gap:"2",children:[p.jsxs("div",{className:qce.statRow,children:[p.jsx(Ca,{label:"Total Validators",value:e.validatorCount.toString(),valueColor:W5,large:!0}),p.jsx(Ca,{label:"Non-delinquent Stake",value:t,valueColor:fw,appendValue:"SOL",large:!0})]}),p.jsxs("div",{className:qce.statRow,children:[p.jsx(Ca,{label:"RPC Nodes",value:e.rpcCount.toString(),valueColor:P0}),p.jsx(Ca,{label:"Delinquent Stake",value:n,valueColor:Qu,appendValue:"SOL"})]})]}),p.jsx(rr,{style:{minWidth:"200px"},children:p.jsx(Pce,{activeStake:e.activeStake,delinquentStake:e.delinquentStake})})]})}function yEt(){return we(I1)?p.jsx(Cs,{style:{flexGrow:1},children:p.jsxs(xe,{direction:"column",height:"100%",gap:"2",children:[p.jsx(Jf,{text:"Validators"}),p.jsx(BEt,{})]})}):null}const vEt="_progress_zsw8r_1",bEt="_stat-row_zsw8r_11",QEt="_vote-distance_zsw8r_23",d6={progress:vEt,statRow:bEt,voteDistance:QEt};function wEt(){return p.jsx(Cs,{style:{flexGrow:1},children:p.jsxs(xe,{direction:"column",height:"100%",gap:"2",align:"start",children:[p.jsx(Jf,{text:"Status"}),p.jsxs("div",{className:d6.statRow,children:[p.jsx(xEt,{}),p.jsx(kEt,{})]}),p.jsxs("div",{className:d6.statRow,children:[p.jsx(SEt,{}),p.jsx(_Et,{})]})]})})}function xEt(){const e=we(LA);return p.jsx(rr,{children:p.jsx(Ca,{label:"Slot",value:(e==null?void 0:e.toString())??"",valueColor:P0,large:!0})})}function _Et(){const{nextLeaderSlot:e}=zC({showNowIfCurrent:!0});return p.jsx(Ca,{label:"Next leader slot",value:(e==null?void 0:e.toString())??"\u221E",valueColor:mV,valueStyle:e===void 0?{fontSize:"32px",lineHeight:"16px"}:void 0})}function kEt(){const{progressSinceLastLeader:e,nextSlotText:t}=zC({showNowIfCurrent:!0});return p.jsxs(xe,{direction:"column",children:[p.jsx(Ca,{label:"Time until leader",value:t,valueColor:P0,large:!0}),p.jsx(af,{value:e,size:"1",className:d6.progress})]})}function SEt(){const e=we(ZD);let t=J5;return e==="voting"?t=Y5:e==="non-voting"?t=EV:e==="delinquent"&&(t=Qu),p.jsx(Ca,{label:"Vote Status",value:e??"Unknown",valueColor:t,children:p.jsx(DEt,{})})}function DEt(){const e=we(QZ),t=we(ZD);if(e==null||t==="delinquent")return null;const n=e>150?"> 150":e;return p.jsxs(be,{className:d6.voteDistance,children:[n," behind"]})}const REt="_progress_10fd6_1",TEt="_stat-row_10fd6_11",Z7={progress:REt,statRow:TEt};function MEt(){return p.jsx(Cs,{style:{flexGrow:1},children:p.jsxs(xe,{direction:"column",height:"100%",gap:"2",align:"start",children:[p.jsx(Jf,{text:"Epoch"}),p.jsx("div",{className:Z7.statRow,children:p.jsx(FEt,{})}),p.jsx("div",{className:Z7.statRow,children:p.jsx(NEt,{})})]})})}function FEt(){var t;const e=we(Ri);return p.jsx(rr,{children:p.jsx(Ca,{label:"Current Epoch",value:((t=e==null?void 0:e.epoch)==null?void 0:t.toString())??"",valueColor:P0,large:!0})})}function NEt(){const e=we(LA),t=we(Ri),n=we(C1),r=b.useMemo(()=>{if(t===void 0||e===void 0)return"";const i=(t.end_slot-e)*n,a=Tr.fromMillis(i).rescale();return kf(a)},[t,e,n]),A=b.useMemo(()=>{if(t===void 0||e===void 0)return 0;const i=e-t.start_slot,a=t.end_slot-t.start_slot,c=i/a*100;return c<0||c>100?0:c},[t,e]);return p.jsxs(xe,{direction:"column",children:[p.jsx(Ca,{label:"Time to Next Epoch",value:r,valueColor:P0,large:!0}),p.jsx(af,{value:A,size:"1",className:Z7.progress})]})}function jEt(){if(we(qi)===Ci.Firedancer)return p.jsx(Cs,{style:{padding:"10px 13px 10px 10px"},children:p.jsxs(xe,{direction:"column",gap:"4",children:[p.jsxs(xe,{gapX:"15px",gapY:"2",align:"center",wrap:"wrap",children:[p.jsx(Jf,{text:"Shreds"}),p.jsx(sre,{})]}),p.jsx(Jne,{height:"400px",chartId:"overview-shreds-chart",isOnStartupScreen:!1})]})})}const $ce=["turbine","gossip","tpu","repair","metrics"],OEt={Ingress:{turbine:64e6/8,gossip:1e9/8,tpu:1e8/8,repair:1e6/8,metrics:1e4/8,Total:118901e4/8},Egress:{turbine:1e9/8,gossip:1e9/8,tpu:1e6/8,repair:1e6/8,metrics:1e4/8,Total:205001e4/8}},LEt="_chart_1kw6z_1",PEt="_total-row_1kw6z_7",X7={chart:LEt,totalRow:PEt},eue=18;function UEt(){const e=we(pZ);if(e)return p.jsxs(xe,{wrap:"wrap",gap:"4",children:[p.jsx(tue,{metrics:e.ingress,type:"Ingress"}),p.jsx(tue,{metrics:e.egress,type:"Egress"})]})}function tue({metrics:e,type:t}){const n=we(qi);return p.jsx(Cs,{style:{flexGrow:1},children:p.jsxs(xe,{direction:"column",height:"100%",gap:Ju,children:[p.jsxs(be,{className:nd.headerText,children:["Network ",t]}),p.jsxs(Fp,{variant:"ghost",className:nd.root,size:"1",style:{"--bar-height":`${eue}px`},children:[p.jsx(zg,{children:p.jsxs(za,{children:[p.jsx(jA,{width:"60px",children:"Protocol"}),p.jsx(jA,{align:"right",width:"80px",children:"Current"}),p.jsx(jA,{minWidth:{xl:"250px",lg:"160px",md:"100px",initial:"60px"},children:"Utilization"}),p.jsx(jA,{align:"right",width:{xl:"240px",lg:"200px",md:"100px",initial:"200px"},children:"History (1m)"})]})}),p.jsxs(Np,{children:[e.map((r,A)=>{const i=$ce[A];if(!(n===Ci.Frankendancer&&(i==="gossip"||i==="repair")))return p.jsx(nue,{type:t,value:r,idx:A},A)}),p.jsx(nue,{type:t,value:hn.sum(e),label:"Total",className:X7.totalRow})]})]})]})})}const GEt={halfLifeMs:1e3};function nue({type:e,value:t,idx:n,label:r,...A}){const i=uA(t,GEt),a=VI(i),c=r??$ce[n??-1],f=OEt[e][c]??1e8;return p.jsxs(za,{...A,children:[p.jsx(eQ,{children:c}),p.jsxs(Si,{align:"right",children:[a.value," ",a.unit]}),p.jsx(Si,{className:X7.chart,children:p.jsx(xe,{align:"center",children:p.jsx(bT,{value:i,max:f,barWidth:2})})}),p.jsx(Si,{className:X7.chart,children:p.jsx(RC,{value:Math.min(1,i/f),background:pw,windowMs:6e4,height:eue,updateIntervalMs:500,tickMs:1e3})})]})}const HEt="_row_1dsvn_1",YEt="_green_1dsvn_2",zEt="_red_1dsvn_6",JEt="_pct-gradient_1dsvn_17",WEt="_no-padding_1dsvn_25",ZEt="_increment-text_1dsvn_30",XEt="_low-increment_1dsvn_35",KEt="_mid-increment_1dsvn_38",VEt="_high-increment_1dsvn_41",qEt="_header_1dsvn_48",$Et="_table_1dsvn_54",is={row:HEt,green:YEt,red:zEt,pctGradient:JEt,noPadding:WEt,incrementText:ZEt,lowIncrement:XEt,midIncrement:KEt,highIncrement:VEt,header:qEt,table:$Et},eIt="_table-description-dialog_1shm8_1",tIt="_table_1shm8_1",nIt="_th_1shm8_8",rIt="_tr_1shm8_14",oIt="_name_1shm8_22",iIt="_close-button_1shm8_28",tg={tableDescriptionDialog:eIt,table:tIt,th:nIt,tr:rIt,name:oIt,closeButton:iIt},K7=[{name:"Name",description:"The name and index of each tile. A tile represents a sandboxed process or individual thread that communicates with other tiles using message passing queues.",headerColWidth:70},{name:"CPU",description:"The CPU index on which the tile was last recorded executing.",headerColWidth:70,headerColAlign:"right"},{name:"Heartbeat",description:"Liveness indicator based on a periodic heartbeat timestamp written by tiles to a chunk of shared memory.",headerColWidth:70,headerColAlign:"right"},{name:"Minflt",description:"The number of cumulative minor page faults. Minor page faults occur for pages in RAM not indexed by the page table.",headerColWidth:80,headerColAlign:"right"},{name:"Majflt",description:"The number of cumulative major page faults. Major page faults occur for pages that are neither in RAM nor the page table.",headerColWidth:80,headerColAlign:"right"},{name:"Nivcsw",description:"The number of cumulative | immediate (10ms) involuntary context switches.",headerColWidth:160,headerColAlign:"right"},{name:"Nvcsw",description:"The number of cumulative | immediate (10ms) voluntary context switches.",headerColWidth:160,headerColAlign:"right"},{name:"Backp",description:"If a tile is backpressured, at least one outgoing message queue is at-capacity which can prevent the tile from moving forward with useful work.",headerColWidth:70},{name:"Backp Count",description:"The number of cumulative | immediate (10ms) times a CPU transitioned into a backpressured state.",headerColWidth:160,headerColAlign:"right"},{name:"Utilization",description:"Visualized the percentage of the tile's CPU time spent doing useful work. Time spent in a context switch is not included.",headerColWidth:200},{name:"History (1m)",description:"A historical, low-pass-filtered view of CPU utilization.",headerColWidth:200},{name:"% Hkeep",description:"The percentage of cpu time spent on housekeeping tasks, which are meant to be infrequent and generally more expensive than tasks on the critical path.",headerColWidth:80,headerColAlign:"right"},{name:"% Wait",description:"The percentage of CPU time spent waiting for useful work to do.",headerColWidth:80,headerColAlign:"right"},{name:"% Backp",description:"The percentage of CPU time during which the tile was backpressured, excluding housekeeping time.",headerColWidth:80,headerColAlign:"right"},{name:"% Work",description:"The percentage of CPU time spent performing useful work, excluding housekeeping and backpressured time.",headerColWidth:80,headerColAlign:"right"}];function AIt(){return p.jsxs(NJ,{children:[p.jsx(jJ,{children:p.jsx(xe,{children:p.jsx(Ei,{content:"Click to view column definitions.",children:p.jsx(Dee,{color:"var(--gray-11)",cursor:"pointer"})})})}),p.jsxs(OJ,{maxHeight:"85dvh",maxWidth:`min(80dvw, calc(0.8 * ${LX}))`,size:"1",className:tg.tableDescriptionDialog,children:[p.jsx(LJ,{size:"2",className:tg.title,mb:"0px",children:"Column Definitions"}),p.jsxs(Fp,{size:"1",className:tg.table,children:[p.jsx("colgroup",{children:p.jsx("col",{style:{width:"110px"}})}),p.jsx(zg,{children:p.jsxs(za,{children:[p.jsx(jA,{className:tg.th,children:"Column"}),p.jsx(jA,{className:tg.th,children:"Definition"})]})}),p.jsx(Np,{children:K7.map(e=>p.jsxs(za,{className:tg.tr,children:[p.jsx(Si,{className:tg.name,children:e.name}),p.jsx(Si,{children:e.description})]},e.name))})]}),p.jsx(xe,{justify:"end",children:p.jsx(PJ,{children:p.jsx(xl,{className:tg.closeButton,children:"Close"})})})]})]})}const rue=18;function sIt(){return p.jsx(Cs,{children:p.jsxs(xe,{direction:"column",gap:Ju,width:"100%",children:[p.jsxs(xe,{align:"center",gap:"2",children:[p.jsx(be,{className:nd.headerText,children:"Tiles"}),p.jsx(AIt,{})]}),p.jsx(aIt,{})]})})}const aIt=b.memo(function(){const e=we(zp),t=we(IZ);if(!(!e||!t))return p.jsxs(Fp,{variant:"ghost",className:xt(nd.root,is.table),size:"1",style:{"--bar-height":`${rue}px`},children:[p.jsx("colgroup",{children:K7.map(n=>p.jsx("col",{style:{width:n.headerColWidth}},n.name))}),p.jsx(zg,{className:is.header,children:p.jsx(za,{children:K7.map(n=>p.jsx(jA,{align:n.headerColAlign,children:n.name},n.name))})}),p.jsx(Np,{children:e.map((n,r)=>p.jsx(lIt,{tile:n,liveTileMetrics:t,idx:r},`${n.kind}${n.kind_id}`))})]})});function lIt({tile:e,liveTileMetrics:t,idx:n}){const r=bee(t,(G,Y)=>G?Y?Object.keys(Y).every(z=>{var Z,K;return hn.isEqual((Z=G[z])==null?void 0:Z[n],(K=Y[z])==null?void 0:K[n])}):!0:!1),A=t.alive[n]??(r==null?void 0:r.alive[n]),i=t.nivcsw[n]??(r==null?void 0:r.nivcsw[n]),a=t.nvcsw[n]??(r==null?void 0:r.nvcsw[n]),c=t.in_backp[n]??(r==null?void 0:r.in_backp[n]),f=t.backp_msgs[n]??(r==null?void 0:r.backp_msgs[n]),h=t.last_cpu[n]??(r==null?void 0:r.last_cpu[n]),m=t.minflt[n]??(r==null?void 0:r.minflt[n]),I=t.majflt[n]??(r==null?void 0:r.majflt[n]),v=xC(i),k=xC(a),D=xC(f);if(A===2)return;const R=t.timers[n]||(r==null?void 0:r.timers[n]);if(!R)return;for(let G=0;G1})}),p.jsx(f6,{pct:N}),p.jsx(f6,{pct:T,className:xt({[is.red]:T>0})}),p.jsx(f6,{pct:P,className:is.pctGradient,style:{"--pct":`${P}%`}})]})}function oue({value:e}){const t=e.toLocaleString();return p.jsxs(be,{className:xt(is.incrementText,{[is.lowIncrement]:1<=e&&e<=10,[is.midIncrement]:11<=e&&e<=100,[is.highIncrement]:e>=101}),children:["+",t]})}function f6({pct:e,...t}){return p.jsxs(Si,{align:"right",...t,children:[e.toFixed(2),"%"]})}const iue=300,cIt=b.memo(function({idx:e}){const t=we(DQ),n=t!=null&&t[e]&&t[e]>=0?1-Math.max(0,t[e]):-1,r=bee(n,(c,f)=>!(f!=null&&c!=null&&f>=0&&c>=0&&f!==c)),A=b.useRef({count:0,sum:0}),[i,a]=b.useState(n);return b.useEffect(()=>{n>=0&&(A.current.count++,A.current.sum+=n)},[n]),_1(()=>{A.current.count!==0&&(a(A.current.sum/A.current.count),A.current={count:0,sum:0})},iue),p.jsxs(p.Fragment,{children:[p.jsx(Si,{className:is.noPadding,children:p.jsx(xe,{align:"center",children:p.jsx(bT,{value:n>=0?n:r??0,max:1,barWidth:2})})}),p.jsx(Si,{className:is.noPadding,children:p.jsx(RC,{value:i,background:pw,windowMs:6e4,height:rue,updateIntervalMs:iue,tickMs:1e3})})]})}),uIt="_slot-label-card_ley65_1",dIt="_slot-label-name_ley65_12",fIt="_slot-label-dt_ley65_15",gIt="_dt-sign_ley65_18",hIt="_slot-bar_ley65_23",pIt="_dim_ley65_28",mIt="_slot-bar-track_ley65_33",EIt="_progress_ley65_37",IIt="_next-leader-container_ley65_46",CIt="_next-leader-timer-label_ley65_52",BIt="_next-leader-timer-container_ley65_58",il={slotLabelCard:uIt,slotLabelName:dIt,slotLabelDt:fIt,dtSign:gIt,slotBar:hIt,dim:pIt,slotBarTrack:mIt,progress:EIt,nextLeaderContainer:IIt,nextLeaderTimerLabel:CIt,nextLeaderTimerContainer:BIt};function Aue(e){return b.useMemo(()=>{const t=new Map,n=r=>{var A;r.slot!=null&&(t.has(r.slot)?(A=t.get(r.slot))==null||A.push(r):t.set(r.slot,[r]))};for(const r of e)n(r);return t},[e])}const yIt="_flash_fhx9s_10",vIt="_flash-text_fhx9s_14",sue={flash:yIt,flashText:vIt};function bIt({value:e,...t}){const[n,r]=b.useState(!1);return b.useEffect(()=>{let A;r(!1);const i=requestAnimationFrame(()=>{r(!0),A=setTimeout(()=>r(!1),200)});return()=>{clearTimeout(A),cancelAnimationFrame(i)}},[e]),p.jsx(be,{...t,className:xt(sue.flashText,{[sue.flash]:n}),children:e})}const V7=2,Im=`${V7}px`,y2="5px",aue=2,lue=34,GB=lue-lue%2,QIt="#A09000",wIt="#0ABF9E",xIt="#4AA7C1",_It="#08A24D",kIt="#AC4902",SIt="#3F7BF4",DIt="#AF49F2",RIt="#2497EE",TIt="#A09000",MIt="#0ABF9E",FIt="#4AA7C1",NIt="#08A24D",jIt="#AC4902",OIt="#3F7BF4",LIt="#AF49F2",PIt="#2497EE";function UIt(){if(!we(Ml))return p.jsx(Cs,{children:p.jsxs(xe,{direction:"column",height:"100%",gap:Ju,children:[p.jsx(be,{style:{color:"var(--primary-text-color)",fontSize:"18px"},children:"Slots"}),p.jsx(HIt,{})]})})}function GIt(e,t){if(!(t==null||e==null))return e-t}function ng(e,t,n,r,A){return{label:e,slot:t,slotDt:GIt(t,n),labelColor:r,barColor:A}}const cue=14,HB=b.createContext({barWidth:cue,shrinkSlotsLabel:!1,useLabelGrid:!1});function HIt(){const[e,t]=b.useState(cue),n=we(uZ),r=we(aZ),A=we(dZ),i=we(fZ),a=we(gZ),c=we(Jp),f=we(lZ),h=we(tC),m=Yo("(max-width: 1300px)"),I=Yo("(max-width: 1000px)"),{storageSlotBar:v,rootSlotBar:k,voteSlotBar:D,repairSlotBar:R,turbineSlotBar:F,replaySlotBar:N,optimisticallyConfirmedBar:T,nextLeaderSlotBar:P}=b.useMemo(()=>{const K=ng("Storage",n,c,QIt,TIt),re=ng("Root",r,c,wIt,MIt),V=ng("Voted",A,c,xIt,FIt),oe=ng("Repair",i,c,kIt,jIt),Be=ng("Turbine",a,c,SIt,OIt),he=ng("Processed",c,c,_It,NIt),de=ng("Confirmed",f,c,DIt,LIt),me=ng("Next Leader",h,c,RIt,PIt);return{storageSlotBar:K,rootSlotBar:re,voteSlotBar:V,repairSlotBar:oe,turbineSlotBar:Be,replaySlotBar:he,optimisticallyConfirmedBar:de,nextLeaderSlotBar:me}},[h,f,i,c,r,n,a,A]),G=b.useMemo(()=>({barWidth:e,shrinkSlotsLabel:m,useLabelGrid:I}),[e,m,I]);if(!c)return;const Y=h1([D.slot,R.slot,F.slot,N.slot,T.slot]),z=r!=null||n!=null?Math.max(GB,h1([c,a])-h1([r,n])):GB,Z=Math.max(z/8,GB/2+(GB-z));return p.jsxs(HB.Provider,{value:G,children:[I&&p.jsx(WIt,{storageSlotBar:v,rootSlotBar:k,voteSlotBar:D,repairSlotBar:R,turbineSlotBar:F,confirmedSlotBar:T,replaySlotBar:N,nextLeaderSlotBar:P}),p.jsxs(xe,{gap:Im,children:[p.jsx(YIt,{storageSlotBar:v,rootSlotBar:k,repairSlotBar:R}),p.jsxs(lA,{columns:`${z}fr ${Z}fr`,gapX:Im,flexGrow:"1",children:[p.jsx(zIt,{voteSlotBar:D,repairSlotBar:R,turbineSlotBar:F,replaySlotBar:N,confirmedSlotBar:T,minSlot:r??c-32,maxSlot:Y,setBarWidth:t}),p.jsx(JIt,{nextLeaderSlotBar:P,minSlot:Y})]})]})]})}const uue=20;function YIt({storageSlotBar:e,rootSlotBar:t,repairSlotBar:n}){const{barWidth:r,useLabelGrid:A}=b.useContext(HB),[i,a]=Ka(),c=b.useMemo(()=>[e,t],[t,e]),f=b.useMemo(()=>[...c,n],[n,c]),h=Aue(f),m=b.useMemo(()=>{if(!r)return 0;const T=a.width-(r*3-V7*2),P=Math.max(aue,r/2);return Math.min(20,Math.trunc(T/P))},[r,a.width]),I=h1([e.slot,t.slot]),v=yMe([e.slot,t.slot,n.slot])-1,k=I-v,D=k<7?r:void 0,R=k>uue,F=R?uue:k,N=I-F;return p.jsxs(xe,{direction:"column",gap:y2,minWidth:A?"30px":void 0,children:[!A&&p.jsx(xe,{gap:y2,justify:"end",children:c.map(T=>p.jsx(zc,{slotBarInfo:T},T.label))}),p.jsxs(xe,{style:{opacity:.6},className:il.slotBarTrack,align:"stretch",justify:"end",gap:Im,ref:i,children:[p.jsx(fue,{count:m}),Array.from({length:F}).map((T,P)=>{const G=N+P+1,Y=R&&P===0?h.get(n.slot??0):h.get(G);return Y?p.jsx(q7,{colors:Y.map(({barColor:z})=>z),barWidth:D},G):p.jsx(g6,{barWidth:D},G)})]})]})}function zIt({voteSlotBar:e,repairSlotBar:t,turbineSlotBar:n,replaySlotBar:r,confirmedSlotBar:A,maxSlot:i,minSlot:a,setBarWidth:c}){const[f,{width:h}]=Ka(),{useLabelGrid:m}=b.useContext(HB),I=b.useMemo(()=>[e,A,r,t,n],[A,t,r,n,e]),v=Aue(I),k=hn.clamp(i-a,GB,100),D=b.useRef(k);return D.current=k,b.useEffect(()=>{if(h){const R=Math.trunc((h-V7*(k-1))/k);c(R)}},[k,c,h]),p.jsxs(xe,{direction:"column",gap:y2,ref:f,minWidth:"100px",children:[!m&&p.jsx(xe,{gap:y2,justify:"end",children:I.map(R=>p.jsx(zc,{slotBarInfo:R},R.label))}),p.jsx(xe,{style:{opacity:.6},className:il.slotBarTrack,align:"stretch",justify:"end",gap:Im,children:Array.from({length:k}).map((R,F)=>{const N=a+F+1,T=v.get(N);return T?p.jsx(q7,{colors:T.map(({barColor:P})=>P)},N):p.jsx(g6,{},N)})})]})}function JIt({nextLeaderSlotBar:e,minSlot:t}){const{barWidth:n,useLabelGrid:r}=b.useContext(HB),[A,i]=Ka(),a=b.useMemo(()=>{if(!n)return 0;const f=i.width-n,h=Math.max(aue,n/2);return Math.trunc(f/h)},[n,i.width]),c=e.slot!=null?Math.min(a,e.slot-t):a;return p.jsxs(xe,{direction:"column",gap:y2,minWidth:"0",className:il.nextLeaderContainer,justify:"between",children:[!r&&p.jsxs(xe,{justify:"end",gap:y2,children:[p.jsx(due,{}),p.jsx(zc,{slotBarInfo:e},e.label)]}),p.jsxs(xe,{style:{opacity:.6},className:il.slotBarTrack,align:"stretch",justify:"end",gap:Im,ref:A,children:[p.jsx(fue,{count:c}),e.slot&&p.jsx(q7,{colors:[e.barColor],barWidth:n/2})]})]})}function due(){const{progressSinceLastLeader:e,nextSlotText:t}=zC({showNowIfCurrent:!1});return p.jsxs(xe,{direction:"column",flexGrow:"1",p:"5px",align:"stretch",justify:"between",minWidth:"70px",className:il.nextLeaderTimerContainer,children:[p.jsxs(be,{align:"center",wrap:"nowrap",children:[p.jsx(be,{style:{color:"#919191"},className:il.nextLeaderTimerLabel,children:"Time Until Leader"}),p.jsxs(be,{style:{color:"#BCBCBC"},children:["\xA0",t]})]}),p.jsx("div",{children:p.jsx(af,{value:e,className:il.progress,duration:"500ms"})})]})}const zc=b.memo(function({slotBarInfo:e}){const{shrinkSlotsLabel:t}=b.useContext(HB),{slot:n,slotDt:r,labelColor:A,label:i}=e;if(n==null||r==null)return;const a=`${i}${t?"":" Slot"}`,c=`${Math.abs(r)}`;return p.jsxs(xe,{direction:"column",align:"stretch",className:il.slotLabelCard,style:{color:A},minWidth:"50px",children:[p.jsxs(xe,{gap:"5px",justify:"between",align:"stretch",children:[p.jsx(be,{className:il.slotLabelName,weight:"bold",wrap:"nowrap",truncate:!0,dir:"rtl",children:a}),e.label==="Processed"?p.jsx(be,{style:{fontSize:"10px",lineHeight:"14px"},children:"\u{1F4CD}"}):p.jsxs(be,{truncate:!0,className:il.slotLabelDt,weight:"bold",children:[e.label!=="Next Leader"&&p.jsx(Yu,{className:il.dtSign,children:r===0?" ":r>0?"+":"-"}),p.jsx(be,{truncate:!0,children:c})]})]}),p.jsx(bIt,{align:"center",truncate:!0,dir:"rtl",value:n})]})});function q7({colors:e,barWidth:t}){const n=t?void 0:"1";return p.jsx(lA,{rows:"repeat(auto-fill, 1fr)",gap:Im,flexGrow:n,children:e.map(r=>p.jsx(g6,{barWidth:t,color:r},r))})}const g6=b.memo(function({isDim:e,color:t,barWidth:n}){const r=n?void 0:"1";return p.jsx(rr,{width:`${n}px`,flexGrow:r,className:xt(il.slotBar,{[il.dim]:e}),style:{"--bar-color":t}})}),fue=function({count:e}){return Array.from({length:e}).map((t,n)=>p.jsx(g6,{isDim:!0},n))};function WIt({storageSlotBar:e,rootSlotBar:t,voteSlotBar:n,repairSlotBar:r,turbineSlotBar:A,replaySlotBar:i,confirmedSlotBar:a,nextLeaderSlotBar:c}){return p.jsxs(lA,{columns:{xs:"4",initial:"2"},gap:y2,children:[p.jsx(zc,{slotBarInfo:e}),p.jsx(zc,{slotBarInfo:t}),p.jsx(zc,{slotBarInfo:n}),p.jsx(zc,{slotBarInfo:a}),p.jsx(zc,{slotBarInfo:i}),p.jsx(zc,{slotBarInfo:r}),p.jsx(zc,{slotBarInfo:A}),p.jsx(zc,{slotBarInfo:c}),p.jsx(rr,{gridColumn:{xs:"span 4",initial:"span 2"},children:p.jsx(due,{})})]})}function ZIt(){return p.jsxs(xe,{direction:"column",gap:"4",flexGrow:"1",children:[p.jsx(UIt,{}),p.jsxs(xe,{gap:"16px",align:"stretch",wrap:"wrap",children:[p.jsx(MEt,{}),p.jsx(wEt,{}),p.jsx(yEt,{}),p.jsx(IEt,{})]}),p.jsx(jEt,{}),p.jsx(xae,{}),p.jsx(UEt,{}),p.jsx(sIt,{})]})}const XIt=Kg("/")({component:ZIt}),KIt=uce.update({id:"/slotDetails",path:"/slotDetails",getParentRoute:()=>W1}),VIt=OB.update({id:"/leaderSchedule",path:"/leaderSchedule",getParentRoute:()=>W1}),qIt=cEt.update({id:"/gossip",path:"/gossip",getParentRoute:()=>W1}),$It=uEt.update({id:"/about",path:"/about",getParentRoute:()=>W1}),eCt=XIt.update({id:"/",path:"/",getParentRoute:()=>W1}),tCt={IndexRoute:eCt,AboutRoute:$It,GossipRoute:qIt,LeaderScheduleRoute:VIt,SlotDetailsRoute:KIt},nCt=W1._addFileChildren(tCt)._addFileTypes();function gue(e){return(t,...n)=>{console[e](`(${Gn.now().toISO({includeOffset:!1})??""}) [${t}]`,...n)}}const Cm=gue("debug"),rCt=gue("warn"),hue=3e3;let pue;function oCt(e,t,n,r){let A,i=!1;function a(){Cm("WS",`Connecting to API WebSocket ${e.toString()}`),n({socketState:zs.Connecting}),A=new WebSocket(e,["compress-zstd"]),A.binaryType="arraybuffer",A.onopen=function(){this!==A||i||(Cm("WS","Connected to API WebSocket"),n({socketState:zs.Connected}))},A.onclose=function(){this!==A||i||(Cm("WS",`Disconnected API WebSocket, reconnecting in ${hue}ms`),n({socketState:zs.Disconnected}),clearTimeout(pue),pue=setTimeout(a,hue))};const h=new TextDecoder;A.onmessage=function(m){if(!(this!==A||i||!r))try{const I=m.data;let v;typeof I=="string"?v=JSON.parse(I):I instanceof ArrayBuffer&&(v=JSON.parse(h.decode(r.ZstdStream.decompress(new Uint8Array(I))))),t(v)}catch(I){console.error(I)}}}a();function c(h){if(i){Cm("WS","Attempting to send after disposing",h);return}A&&A.readyState===WebSocket.OPEN?A.send(JSON.stringify(h)):rCt("WS","Attempting to send on closed WebSocket",h)}function f(){if(i){Cm("WS","Dispose called after disposing");return}i=!0,Cm("WS","Closing API WebSocket"),n({socketState:zs.Disconnected}),A.onopen=null,A.onclose=null,A.onerror=null,A.onmessage=null,A.close()}return[c,f]}var mue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function h6(e){var t={exports:{}};return e(t,t.exports),t.exports}var p6=function(e){return e&&e.Math==Math&&e},Mn=p6(typeof globalThis=="object"&&globalThis)||p6(typeof window=="object"&&window)||p6(typeof self=="object"&&self)||p6(typeof mue=="object"&&mue)||function(){return this}()||Function("return this")(),Wu=function(e){try{return!!e()}catch{return!0}},Zu=!Wu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Eue={}.propertyIsEnumerable,Iue=Object.getOwnPropertyDescriptor,Cue={f:Iue&&!Eue.call({1:2},1)?function(e){var t=Iue(this,e);return!!t&&t.enumerable}:Eue},Bm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},iCt={}.toString,ym=function(e){return iCt.call(e).slice(8,-1)},ACt="".split,Bue=Wu(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ym(e)=="String"?ACt.call(e,""):Object(e)}:Object,$7=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},m6=function(e){return Bue($7(e))},Xl=function(e){return typeof e=="object"?e!==null:typeof e=="function"},yue=function(e,t){if(!Xl(e))return e;var n,r;if(typeof(n=e.toString)=="function"&&!Xl(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!Xl(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},sCt={}.hasOwnProperty,ws=function(e,t){return sCt.call(e,t)},eN=Mn.document,aCt=Xl(eN)&&Xl(eN.createElement),E6=function(e){return aCt?eN.createElement(e):{}},vue=!Zu&&!Wu(function(){return Object.defineProperty(E6("div"),"a",{get:function(){return 7}}).a!=7}),bue=Object.getOwnPropertyDescriptor,tN={f:Zu?bue:function(e,t){if(e=m6(e),t=yue(t),vue)try{return bue(e,t)}catch{}if(ws(e,t))return Bm(!Cue.f.call(e,t),e[t])}},Jc=function(e){if(!Xl(e))throw TypeError(String(e)+" is not an object");return e},Que=Object.defineProperty,v2={f:Zu?Que:function(e,t,n){if(Jc(e),t=yue(t),Jc(n),vue)try{return Que(e,t,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ba=Zu?function(e,t,n){return v2.f(e,t,Bm(1,n))}:function(e,t,n){return e[t]=n,e},nN=function(e,t){try{Ba(Mn,e,t)}catch{Mn[e]=t}return t},b2=Mn["__core-js_shared__"]||nN("__core-js_shared__",{}),lCt=Function.toString;typeof b2.inspectSource!="function"&&(b2.inspectSource=function(e){return lCt.call(e)});var I6,YB,C6,rN=b2.inspectSource,wue=Mn.WeakMap,cCt=typeof wue=="function"&&/native code/.test(rN(wue)),xue=h6(function(e){(e.exports=function(t,n){return b2[t]||(b2[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.9.0",mode:"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})}),uCt=0,dCt=Math.random(),oN=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++uCt+dCt).toString(36)},_ue=xue("keys"),iN=function(e){return _ue[e]||(_ue[e]=oN(e))},AN={},fCt=Mn.WeakMap;if(cCt){var vm=b2.state||(b2.state=new fCt),gCt=vm.get,hCt=vm.has,pCt=vm.set;I6=function(e,t){return t.facade=e,pCt.call(vm,e,t),t},YB=function(e){return gCt.call(vm,e)||{}},C6=function(e){return hCt.call(vm,e)}}else{var zB=iN("state");AN[zB]=!0,I6=function(e,t){return t.facade=e,Ba(e,zB,t),t},YB=function(e){return ws(e,zB)?e[zB]:{}},C6=function(e){return ws(e,zB)}}var od={set:I6,get:YB,has:C6,enforce:function(e){return C6(e)?YB(e):I6(e,{})},getterFor:function(e){return function(t){var n;if(!Xl(t)||(n=YB(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},bm=h6(function(e){var t=od.get,n=od.enforce,r=String(String).split("String");(e.exports=function(A,i,a,c){var f,h=!!c&&!!c.unsafe,m=!!c&&!!c.enumerable,I=!!c&&!!c.noTargetGet;typeof a=="function"&&(typeof i!="string"||ws(a,"name")||Ba(a,"name",i),(f=n(a)).source||(f.source=r.join(typeof i=="string"?i:""))),A!==Mn?(h?!I&&A[i]&&(m=!0):delete A[i],m?A[i]=a:Ba(A,i,a)):m?A[i]=a:nN(i,a)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||rN(this)})}),rg=Mn,kue=function(e){return typeof e=="function"?e:void 0},Xu=function(e,t){return arguments.length<2?kue(rg[e])||kue(Mn[e]):rg[e]&&rg[e][t]||Mn[e]&&Mn[e][t]},mCt=Math.ceil,ECt=Math.floor,sN=function(e){return isNaN(e=+e)?0:(e>0?ECt:mCt)(e)},ICt=Math.min,aN=function(e){return e>0?ICt(sN(e),9007199254740991):0},CCt=Math.max,BCt=Math.min,B6=function(e,t){var n=sN(e);return n<0?CCt(n+t,0):BCt(n,t)},yCt=function(e){return function(t,n,r){var A,i=m6(t),a=aN(i.length),c=B6(r,a);if(e&&n!=n){for(;a>c;)if((A=i[c++])!=A)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},vCt={indexOf:yCt(!1)}.indexOf,Sue=function(e,t){var n,r=m6(e),A=0,i=[];for(n in r)!ws(AN,n)&&ws(r,n)&&i.push(n);for(;t.length>A;)ws(r,n=t[A++])&&(~vCt(i,n)||i.push(n));return i},y6=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bCt=y6.concat("length","prototype"),QCt={f:Object.getOwnPropertyNames||function(e){return Sue(e,bCt)}},Due={f:Object.getOwnPropertySymbols},wCt=Xu("Reflect","ownKeys")||function(e){var t=QCt.f(Jc(e)),n=Due.f;return n?t.concat(n(e)):t},xCt=function(e,t){for(var n=wCt(t),r=v2.f,A=tN.f,i=0;iA;)for(var c,f=Bue(arguments[A++]),h=i?v6(f).concat(i(f)):v6(f),m=h.length,I=0;m>I;)c=h[I++],Zu&&!a.call(f,c)||(n[c]=f[c]);return n}:Qm;Kl({target:"Object",stat:!0,forced:Object.assign!==Mue},{assign:Mue}),rg.Object.assign;var MCt=typeof ArrayBuffer<"u"&&typeof DataView<"u",Fue=!!Object.getOwnPropertySymbols&&!Wu(function(){return!String(Symbol())}),FCt=Fue&&!Symbol.sham&&typeof Symbol.iterator=="symbol",b6=xue("wks"),WB=Mn.Symbol,NCt=FCt?WB:WB&&WB.withoutSetter||oN,Zs=function(e){return ws(b6,e)||(Fue&&ws(WB,e)?b6[e]=WB[e]:b6[e]=NCt("Symbol."+e)),b6[e]},Nue={};Nue[Zs("toStringTag")]="z";var Vl,cN=String(Nue)==="[object z]",jCt=Zs("toStringTag"),OCt=ym(function(){return arguments}())=="Arguments",Q6=cN?ym:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(A,i){try{return A[i]}catch{}}(t=Object(e),jCt))=="string"?n:OCt?ym(t):(r=ym(t))=="Object"&&typeof t.callee=="function"?"Arguments":r},LCt=!Wu(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jue=iN("IE_PROTO"),PCt=Object.prototype,og=LCt?Object.getPrototypeOf:function(e){return e=lN(e),ws(e,jue)?e[jue]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?PCt:null},ig=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch{}return function(r,A){return Jc(r),function(i){if(!Xl(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype")}(A),t?e.call(r,A):r.__proto__=A,r}}():void 0),UCt=v2.f,w6=Mn.Int8Array,uN=w6&&w6.prototype,Oue=Mn.Uint8ClampedArray,Lue=Oue&&Oue.prototype,ZB=w6&&og(w6),Ku=uN&&og(uN),GCt=Object.prototype,Pue=Zs("toStringTag"),Uue=oN("TYPED_ARRAY_TAG"),Q2=MCt&&!!ig&&Q6(Mn.opera)!=="Opera",XB={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},HCt={BigInt64Array:8,BigUint64Array:8},YCt=function(e){if(!Xl(e))return!1;var t=Q6(e);return ws(XB,t)||ws(HCt,t)};for(Vl in XB)Mn[Vl]||(Q2=!1);if((!Q2||typeof ZB!="function"||ZB===Function.prototype)&&(ZB=function(){throw TypeError("Incorrect invocation")},Q2))for(Vl in XB)Mn[Vl]&&ig(Mn[Vl],ZB);if((!Q2||!Ku||Ku===GCt)&&(Ku=ZB.prototype,Q2))for(Vl in XB)Mn[Vl]&&ig(Mn[Vl].prototype,Ku);if(Q2&&og(Lue)!==Ku&&ig(Lue,Ku),Zu&&!ws(Ku,Pue))for(Vl in UCt(Ku,Pue,{get:function(){return Xl(this)?this[Uue]:void 0}}),XB)Mn[Vl]&&Ba(Mn[Vl],Uue,Vl);var zCt=function(e){if(YCt(e))return e;throw TypeError("Target is not a typed array")},JCt=function(e,t,n){Zu&&(Ku[e]||bm(Ku,e,Q2&&uN[e]||t))},WCt=Math.min,ZCt=[].copyWithin||function(e,t){var n=lN(this),r=aN(n.length),A=B6(e,r),i=B6(t,r),a=arguments.length>2?arguments[2]:void 0,c=WCt((a===void 0?r:B6(a,r))-i,r-A),f=1;for(i0;)i in n?n[A]=n[i]:delete n[A],A+=f,i+=f;return n},XCt=zCt;JCt("copyWithin",function(e,t){return ZCt.call(XCt(this),e,t,arguments.length>2?arguments[2]:void 0)});var dN,KCt=Zu?Object.defineProperties:function(e,t){Jc(e);for(var n,r=v6(t),A=r.length,i=0;A>i;)v2.f(e,n=r[i++],t[n]);return e},fN=Xu("document","documentElement"),Gue=iN("IE_PROTO"),gN=function(){},Hue=function(e){return" - + + diff --git a/src/disco/gui/dist_dev/version b/src/disco/gui/dist_dev/version index a83eb15c3c2..00cf6c032f1 100644 --- a/src/disco/gui/dist_dev/version +++ b/src/disco/gui/dist_dev/version @@ -1 +1 @@ -ac4e5afce8316d0fb134bbe19f6535c7107e3de1 +ae86b7af81bb4ee725d684eacba3cd046df455a4 diff --git a/src/disco/gui/generated/http_import_dist.c b/src/disco/gui/generated/http_import_dist.c index 37b9bcf6f9f..10ac3eb3eeb 100644 --- a/src/disco/gui/generated/http_import_dist.c +++ b/src/disco/gui/generated/http_import_dist.c @@ -1,161 +1,161 @@ /* THIS FILE WAS GENERATED BY make frontend. DO NOT EDIT BY HAND! */ #include "http_import_dist.h" -FD_IMPORT_BINARY( file_stable0, "src/disco/gui/dist_stable/assets/firedancer_circle_logo-D9jlxCje.svg" ); -FD_IMPORT_BINARY( file_stable0_zstd, "src/disco/gui/dist_stable_cmp/assets/firedancer_circle_logo-D9jlxCje.svg.zst" ); -FD_IMPORT_BINARY( file_stable0_gzip, "src/disco/gui/dist_stable_cmp/assets/firedancer_circle_logo-D9jlxCje.svg.gz" ); -FD_IMPORT_BINARY( file_stable1, "src/disco/gui/dist_stable/assets/firedancer-D_J0EzUc.svg" ); -FD_IMPORT_BINARY( file_stable1_zstd, "src/disco/gui/dist_stable_cmp/assets/firedancer-D_J0EzUc.svg.zst" ); -FD_IMPORT_BINARY( file_stable1_gzip, "src/disco/gui/dist_stable_cmp/assets/firedancer-D_J0EzUc.svg.gz" ); -FD_IMPORT_BINARY( file_stable2, "src/disco/gui/dist_stable/assets/firedancer_logo-CrgwxzPk.svg" ); -FD_IMPORT_BINARY( file_stable2_zstd, "src/disco/gui/dist_stable_cmp/assets/firedancer_logo-CrgwxzPk.svg.zst" ); -FD_IMPORT_BINARY( file_stable2_gzip, "src/disco/gui/dist_stable_cmp/assets/firedancer_logo-CrgwxzPk.svg.gz" ); -FD_IMPORT_BINARY( file_stable3, "src/disco/gui/dist_stable/assets/frankendancer-0Top5G94.svg" ); -FD_IMPORT_BINARY( file_stable3_zstd, "src/disco/gui/dist_stable_cmp/assets/frankendancer-0Top5G94.svg.zst" ); -FD_IMPORT_BINARY( file_stable3_gzip, "src/disco/gui/dist_stable_cmp/assets/frankendancer-0Top5G94.svg.gz" ); -FD_IMPORT_BINARY( file_stable4, "src/disco/gui/dist_stable/assets/frankendancer_circle_logo-D5z79vwQ.svg" ); -FD_IMPORT_BINARY( file_stable4_zstd, "src/disco/gui/dist_stable_cmp/assets/frankendancer_circle_logo-D5z79vwQ.svg.zst" ); -FD_IMPORT_BINARY( file_stable4_gzip, "src/disco/gui/dist_stable_cmp/assets/frankendancer_circle_logo-D5z79vwQ.svg.gz" ); -FD_IMPORT_BINARY( file_stable5, "src/disco/gui/dist_stable/assets/frankendancer_logo-CHyfJ772.svg" ); -FD_IMPORT_BINARY( file_stable5_zstd, "src/disco/gui/dist_stable_cmp/assets/frankendancer_logo-CHyfJ772.svg.zst" ); -FD_IMPORT_BINARY( file_stable5_gzip, "src/disco/gui/dist_stable_cmp/assets/frankendancer_logo-CHyfJ772.svg.gz" ); -FD_IMPORT_BINARY( file_stable6, "src/disco/gui/dist_stable/assets/index-CJmHmCl9.js" ); -FD_IMPORT_BINARY( file_stable6_zstd, "src/disco/gui/dist_stable_cmp/assets/index-CJmHmCl9.js.zst" ); -FD_IMPORT_BINARY( file_stable6_gzip, "src/disco/gui/dist_stable_cmp/assets/index-CJmHmCl9.js.gz" ); -FD_IMPORT_BINARY( file_stable7, "src/disco/gui/dist_stable/assets/index-GP8-BVKz.css" ); -FD_IMPORT_BINARY( file_stable7_zstd, "src/disco/gui/dist_stable_cmp/assets/index-GP8-BVKz.css.zst" ); -FD_IMPORT_BINARY( file_stable7_gzip, "src/disco/gui/dist_stable_cmp/assets/index-GP8-BVKz.css.gz" ); -FD_IMPORT_BINARY( file_stable8, "src/disco/gui/dist_stable/assets/inter-tight-latin-400-normal-BLrFJfvD.woff" ); -FD_IMPORT_BINARY( file_stable8_zstd, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.zst" ); -FD_IMPORT_BINARY( file_stable8_gzip, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.gz" ); -FD_IMPORT_BINARY( file_stable9, "src/disco/gui/dist_stable/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2" ); -FD_IMPORT_BINARY( file_stable9_zstd, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.zst" ); -FD_IMPORT_BINARY( file_stable9_gzip, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.gz" ); -FD_IMPORT_BINARY( file_stable10, "src/disco/gui/dist_stable/assets/NotoFlagsOnly.woff2" ); -FD_IMPORT_BINARY( file_stable10_zstd, "src/disco/gui/dist_stable_cmp/assets/NotoFlagsOnly.woff2.zst" ); -FD_IMPORT_BINARY( file_stable10_gzip, "src/disco/gui/dist_stable_cmp/assets/NotoFlagsOnly.woff2.gz" ); -FD_IMPORT_BINARY( file_stable11, "src/disco/gui/dist_stable/assets/privateYou-DnAsYVZD.svg" ); -FD_IMPORT_BINARY( file_stable11_zstd, "src/disco/gui/dist_stable_cmp/assets/privateYou-DnAsYVZD.svg.zst" ); -FD_IMPORT_BINARY( file_stable11_gzip, "src/disco/gui/dist_stable_cmp/assets/privateYou-DnAsYVZD.svg.gz" ); -FD_IMPORT_BINARY( file_stable12, "src/disco/gui/dist_stable/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff" ); -FD_IMPORT_BINARY( file_stable12_zstd, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.zst" ); -FD_IMPORT_BINARY( file_stable12_gzip, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.gz" ); -FD_IMPORT_BINARY( file_stable13, "src/disco/gui/dist_stable/assets/roboto-mono-latin-400-normal-GekRknry.woff2" ); -FD_IMPORT_BINARY( file_stable13_zstd, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.zst" ); -FD_IMPORT_BINARY( file_stable13_gzip, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.gz" ); -FD_IMPORT_BINARY( file_stable14, "src/disco/gui/dist_stable/index.html" ); -FD_IMPORT_BINARY( file_stable14_zstd, "src/disco/gui/dist_stable_cmp/index.html.zst" ); -FD_IMPORT_BINARY( file_stable14_gzip, "src/disco/gui/dist_stable_cmp/index.html.gz" ); -FD_IMPORT_BINARY( file_stable15, "src/disco/gui/dist_stable/LICENSE_DEPENDENCIES" ); -FD_IMPORT_BINARY( file_stable15_zstd, "src/disco/gui/dist_stable_cmp/LICENSE_DEPENDENCIES.zst" ); -FD_IMPORT_BINARY( file_stable15_gzip, "src/disco/gui/dist_stable_cmp/LICENSE_DEPENDENCIES.gz" ); +FD_IMPORT_BINARY( file_stable0, "src/disco/gui/dist_stable/LICENSE_DEPENDENCIES" ); +FD_IMPORT_BINARY( file_stable0_zstd, "src/disco/gui/dist_stable_cmp/LICENSE_DEPENDENCIES.zst" ); +FD_IMPORT_BINARY( file_stable0_gzip, "src/disco/gui/dist_stable_cmp/LICENSE_DEPENDENCIES.gz" ); +FD_IMPORT_BINARY( file_stable1, "src/disco/gui/dist_stable/assets/NotoFlagsOnly.woff2" ); +FD_IMPORT_BINARY( file_stable1_zstd, "src/disco/gui/dist_stable_cmp/assets/NotoFlagsOnly.woff2.zst" ); +FD_IMPORT_BINARY( file_stable1_gzip, "src/disco/gui/dist_stable_cmp/assets/NotoFlagsOnly.woff2.gz" ); +FD_IMPORT_BINARY( file_stable2, "src/disco/gui/dist_stable/assets/firedancer-D_J0EzUc.svg" ); +FD_IMPORT_BINARY( file_stable2_zstd, "src/disco/gui/dist_stable_cmp/assets/firedancer-D_J0EzUc.svg.zst" ); +FD_IMPORT_BINARY( file_stable2_gzip, "src/disco/gui/dist_stable_cmp/assets/firedancer-D_J0EzUc.svg.gz" ); +FD_IMPORT_BINARY( file_stable3, "src/disco/gui/dist_stable/assets/firedancer_circle_logo-D9jlxCje.svg" ); +FD_IMPORT_BINARY( file_stable3_zstd, "src/disco/gui/dist_stable_cmp/assets/firedancer_circle_logo-D9jlxCje.svg.zst" ); +FD_IMPORT_BINARY( file_stable3_gzip, "src/disco/gui/dist_stable_cmp/assets/firedancer_circle_logo-D9jlxCje.svg.gz" ); +FD_IMPORT_BINARY( file_stable4, "src/disco/gui/dist_stable/assets/firedancer_logo-CrgwxzPk.svg" ); +FD_IMPORT_BINARY( file_stable4_zstd, "src/disco/gui/dist_stable_cmp/assets/firedancer_logo-CrgwxzPk.svg.zst" ); +FD_IMPORT_BINARY( file_stable4_gzip, "src/disco/gui/dist_stable_cmp/assets/firedancer_logo-CrgwxzPk.svg.gz" ); +FD_IMPORT_BINARY( file_stable5, "src/disco/gui/dist_stable/assets/frankendancer-0Top5G94.svg" ); +FD_IMPORT_BINARY( file_stable5_zstd, "src/disco/gui/dist_stable_cmp/assets/frankendancer-0Top5G94.svg.zst" ); +FD_IMPORT_BINARY( file_stable5_gzip, "src/disco/gui/dist_stable_cmp/assets/frankendancer-0Top5G94.svg.gz" ); +FD_IMPORT_BINARY( file_stable6, "src/disco/gui/dist_stable/assets/frankendancer_circle_logo-D5z79vwQ.svg" ); +FD_IMPORT_BINARY( file_stable6_zstd, "src/disco/gui/dist_stable_cmp/assets/frankendancer_circle_logo-D5z79vwQ.svg.zst" ); +FD_IMPORT_BINARY( file_stable6_gzip, "src/disco/gui/dist_stable_cmp/assets/frankendancer_circle_logo-D5z79vwQ.svg.gz" ); +FD_IMPORT_BINARY( file_stable7, "src/disco/gui/dist_stable/assets/frankendancer_logo-CHyfJ772.svg" ); +FD_IMPORT_BINARY( file_stable7_zstd, "src/disco/gui/dist_stable_cmp/assets/frankendancer_logo-CHyfJ772.svg.zst" ); +FD_IMPORT_BINARY( file_stable7_gzip, "src/disco/gui/dist_stable_cmp/assets/frankendancer_logo-CHyfJ772.svg.gz" ); +FD_IMPORT_BINARY( file_stable8, "src/disco/gui/dist_stable/assets/index-CJmHmCl9.js" ); +FD_IMPORT_BINARY( file_stable8_zstd, "src/disco/gui/dist_stable_cmp/assets/index-CJmHmCl9.js.zst" ); +FD_IMPORT_BINARY( file_stable8_gzip, "src/disco/gui/dist_stable_cmp/assets/index-CJmHmCl9.js.gz" ); +FD_IMPORT_BINARY( file_stable9, "src/disco/gui/dist_stable/assets/index-GP8-BVKz.css" ); +FD_IMPORT_BINARY( file_stable9_zstd, "src/disco/gui/dist_stable_cmp/assets/index-GP8-BVKz.css.zst" ); +FD_IMPORT_BINARY( file_stable9_gzip, "src/disco/gui/dist_stable_cmp/assets/index-GP8-BVKz.css.gz" ); +FD_IMPORT_BINARY( file_stable10, "src/disco/gui/dist_stable/assets/inter-tight-latin-400-normal-BLrFJfvD.woff" ); +FD_IMPORT_BINARY( file_stable10_zstd, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.zst" ); +FD_IMPORT_BINARY( file_stable10_gzip, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.gz" ); +FD_IMPORT_BINARY( file_stable11, "src/disco/gui/dist_stable/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2" ); +FD_IMPORT_BINARY( file_stable11_zstd, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.zst" ); +FD_IMPORT_BINARY( file_stable11_gzip, "src/disco/gui/dist_stable_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.gz" ); +FD_IMPORT_BINARY( file_stable12, "src/disco/gui/dist_stable/assets/privateYou-DnAsYVZD.svg" ); +FD_IMPORT_BINARY( file_stable12_zstd, "src/disco/gui/dist_stable_cmp/assets/privateYou-DnAsYVZD.svg.zst" ); +FD_IMPORT_BINARY( file_stable12_gzip, "src/disco/gui/dist_stable_cmp/assets/privateYou-DnAsYVZD.svg.gz" ); +FD_IMPORT_BINARY( file_stable13, "src/disco/gui/dist_stable/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff" ); +FD_IMPORT_BINARY( file_stable13_zstd, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.zst" ); +FD_IMPORT_BINARY( file_stable13_gzip, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.gz" ); +FD_IMPORT_BINARY( file_stable14, "src/disco/gui/dist_stable/assets/roboto-mono-latin-400-normal-GekRknry.woff2" ); +FD_IMPORT_BINARY( file_stable14_zstd, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.zst" ); +FD_IMPORT_BINARY( file_stable14_gzip, "src/disco/gui/dist_stable_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.gz" ); +FD_IMPORT_BINARY( file_stable15, "src/disco/gui/dist_stable/index.html" ); +FD_IMPORT_BINARY( file_stable15_zstd, "src/disco/gui/dist_stable_cmp/index.html.zst" ); +FD_IMPORT_BINARY( file_stable15_gzip, "src/disco/gui/dist_stable_cmp/index.html.gz" ); FD_IMPORT_BINARY( file_stable16, "src/disco/gui/dist_stable/version" ); FD_IMPORT_BINARY( file_stable16_zstd, "src/disco/gui/dist_stable_cmp/version.zst" ); FD_IMPORT_BINARY( file_stable16_gzip, "src/disco/gui/dist_stable_cmp/version.gz" ); -FD_IMPORT_BINARY( file_alpha0, "src/disco/gui/dist_alpha/assets/firedancer-D_J0EzUc.svg" ); -FD_IMPORT_BINARY( file_alpha0_zstd, "src/disco/gui/dist_alpha_cmp/assets/firedancer-D_J0EzUc.svg.zst" ); -FD_IMPORT_BINARY( file_alpha0_gzip, "src/disco/gui/dist_alpha_cmp/assets/firedancer-D_J0EzUc.svg.gz" ); -FD_IMPORT_BINARY( file_alpha1, "src/disco/gui/dist_alpha/assets/firedancer_logo_circle-D9jlxCje.svg" ); -FD_IMPORT_BINARY( file_alpha1_zstd, "src/disco/gui/dist_alpha_cmp/assets/firedancer_logo_circle-D9jlxCje.svg.zst" ); -FD_IMPORT_BINARY( file_alpha1_gzip, "src/disco/gui/dist_alpha_cmp/assets/firedancer_logo_circle-D9jlxCje.svg.gz" ); +FD_IMPORT_BINARY( file_alpha0, "src/disco/gui/dist_alpha/LICENSE_DEPENDENCIES" ); +FD_IMPORT_BINARY( file_alpha0_zstd, "src/disco/gui/dist_alpha_cmp/LICENSE_DEPENDENCIES.zst" ); +FD_IMPORT_BINARY( file_alpha0_gzip, "src/disco/gui/dist_alpha_cmp/LICENSE_DEPENDENCIES.gz" ); +FD_IMPORT_BINARY( file_alpha1, "src/disco/gui/dist_alpha/assets/firedancer-D_J0EzUc.svg" ); +FD_IMPORT_BINARY( file_alpha1_zstd, "src/disco/gui/dist_alpha_cmp/assets/firedancer-D_J0EzUc.svg.zst" ); +FD_IMPORT_BINARY( file_alpha1_gzip, "src/disco/gui/dist_alpha_cmp/assets/firedancer-D_J0EzUc.svg.gz" ); FD_IMPORT_BINARY( file_alpha2, "src/disco/gui/dist_alpha/assets/firedancer_logo-CrgwxzPk.svg" ); FD_IMPORT_BINARY( file_alpha2_zstd, "src/disco/gui/dist_alpha_cmp/assets/firedancer_logo-CrgwxzPk.svg.zst" ); FD_IMPORT_BINARY( file_alpha2_gzip, "src/disco/gui/dist_alpha_cmp/assets/firedancer_logo-CrgwxzPk.svg.gz" ); -FD_IMPORT_BINARY( file_alpha3, "src/disco/gui/dist_alpha/assets/frankendancer-0Top5G94.svg" ); -FD_IMPORT_BINARY( file_alpha3_zstd, "src/disco/gui/dist_alpha_cmp/assets/frankendancer-0Top5G94.svg.zst" ); -FD_IMPORT_BINARY( file_alpha3_gzip, "src/disco/gui/dist_alpha_cmp/assets/frankendancer-0Top5G94.svg.gz" ); -FD_IMPORT_BINARY( file_alpha4, "src/disco/gui/dist_alpha/assets/frankendancer_logo-CHyfJ772.svg" ); -FD_IMPORT_BINARY( file_alpha4_zstd, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo-CHyfJ772.svg.zst" ); -FD_IMPORT_BINARY( file_alpha4_gzip, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo-CHyfJ772.svg.gz" ); -FD_IMPORT_BINARY( file_alpha5, "src/disco/gui/dist_alpha/assets/frankendancer_logo_circle-D5z79vwQ.svg" ); -FD_IMPORT_BINARY( file_alpha5_zstd, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo_circle-D5z79vwQ.svg.zst" ); -FD_IMPORT_BINARY( file_alpha5_gzip, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo_circle-D5z79vwQ.svg.gz" ); -FD_IMPORT_BINARY( file_alpha6, "src/disco/gui/dist_alpha/assets/index-B79NUQX2.js" ); -FD_IMPORT_BINARY( file_alpha6_zstd, "src/disco/gui/dist_alpha_cmp/assets/index-B79NUQX2.js.zst" ); -FD_IMPORT_BINARY( file_alpha6_gzip, "src/disco/gui/dist_alpha_cmp/assets/index-B79NUQX2.js.gz" ); -FD_IMPORT_BINARY( file_alpha7, "src/disco/gui/dist_alpha/assets/index-BJ9rbYrC.js" ); -FD_IMPORT_BINARY( file_alpha7_zstd, "src/disco/gui/dist_alpha_cmp/assets/index-BJ9rbYrC.js.zst" ); -FD_IMPORT_BINARY( file_alpha7_gzip, "src/disco/gui/dist_alpha_cmp/assets/index-BJ9rbYrC.js.gz" ); -FD_IMPORT_BINARY( file_alpha8, "src/disco/gui/dist_alpha/assets/index-cxKTti9M.css" ); -FD_IMPORT_BINARY( file_alpha8_zstd, "src/disco/gui/dist_alpha_cmp/assets/index-cxKTti9M.css.zst" ); -FD_IMPORT_BINARY( file_alpha8_gzip, "src/disco/gui/dist_alpha_cmp/assets/index-cxKTti9M.css.gz" ); +FD_IMPORT_BINARY( file_alpha3, "src/disco/gui/dist_alpha/assets/firedancer_logo_circle-D9jlxCje.svg" ); +FD_IMPORT_BINARY( file_alpha3_zstd, "src/disco/gui/dist_alpha_cmp/assets/firedancer_logo_circle-D9jlxCje.svg.zst" ); +FD_IMPORT_BINARY( file_alpha3_gzip, "src/disco/gui/dist_alpha_cmp/assets/firedancer_logo_circle-D9jlxCje.svg.gz" ); +FD_IMPORT_BINARY( file_alpha4, "src/disco/gui/dist_alpha/assets/frankendancer-0Top5G94.svg" ); +FD_IMPORT_BINARY( file_alpha4_zstd, "src/disco/gui/dist_alpha_cmp/assets/frankendancer-0Top5G94.svg.zst" ); +FD_IMPORT_BINARY( file_alpha4_gzip, "src/disco/gui/dist_alpha_cmp/assets/frankendancer-0Top5G94.svg.gz" ); +FD_IMPORT_BINARY( file_alpha5, "src/disco/gui/dist_alpha/assets/frankendancer_logo-CHyfJ772.svg" ); +FD_IMPORT_BINARY( file_alpha5_zstd, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo-CHyfJ772.svg.zst" ); +FD_IMPORT_BINARY( file_alpha5_gzip, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo-CHyfJ772.svg.gz" ); +FD_IMPORT_BINARY( file_alpha6, "src/disco/gui/dist_alpha/assets/frankendancer_logo_circle-D5z79vwQ.svg" ); +FD_IMPORT_BINARY( file_alpha6_zstd, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo_circle-D5z79vwQ.svg.zst" ); +FD_IMPORT_BINARY( file_alpha6_gzip, "src/disco/gui/dist_alpha_cmp/assets/frankendancer_logo_circle-D5z79vwQ.svg.gz" ); +FD_IMPORT_BINARY( file_alpha7, "src/disco/gui/dist_alpha/assets/index-B79NUQX2.js" ); +FD_IMPORT_BINARY( file_alpha7_zstd, "src/disco/gui/dist_alpha_cmp/assets/index-B79NUQX2.js.zst" ); +FD_IMPORT_BINARY( file_alpha7_gzip, "src/disco/gui/dist_alpha_cmp/assets/index-B79NUQX2.js.gz" ); +FD_IMPORT_BINARY( file_alpha8, "src/disco/gui/dist_alpha/assets/index-BJ9rbYrC.js" ); +FD_IMPORT_BINARY( file_alpha8_zstd, "src/disco/gui/dist_alpha_cmp/assets/index-BJ9rbYrC.js.zst" ); +FD_IMPORT_BINARY( file_alpha8_gzip, "src/disco/gui/dist_alpha_cmp/assets/index-BJ9rbYrC.js.gz" ); FD_IMPORT_BINARY( file_alpha9, "src/disco/gui/dist_alpha/assets/index-DzLX98NL.css" ); FD_IMPORT_BINARY( file_alpha9_zstd, "src/disco/gui/dist_alpha_cmp/assets/index-DzLX98NL.css.zst" ); FD_IMPORT_BINARY( file_alpha9_gzip, "src/disco/gui/dist_alpha_cmp/assets/index-DzLX98NL.css.gz" ); -FD_IMPORT_BINARY( file_alpha10, "src/disco/gui/dist_alpha/assets/inter-tight-latin-400-normal-BLrFJfvD.woff" ); -FD_IMPORT_BINARY( file_alpha10_zstd, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.zst" ); -FD_IMPORT_BINARY( file_alpha10_gzip, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.gz" ); -FD_IMPORT_BINARY( file_alpha11, "src/disco/gui/dist_alpha/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2" ); -FD_IMPORT_BINARY( file_alpha11_zstd, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.zst" ); -FD_IMPORT_BINARY( file_alpha11_gzip, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.gz" ); -FD_IMPORT_BINARY( file_alpha12, "src/disco/gui/dist_alpha/assets/privateYou-DnAsYVZD.svg" ); -FD_IMPORT_BINARY( file_alpha12_zstd, "src/disco/gui/dist_alpha_cmp/assets/privateYou-DnAsYVZD.svg.zst" ); -FD_IMPORT_BINARY( file_alpha12_gzip, "src/disco/gui/dist_alpha_cmp/assets/privateYou-DnAsYVZD.svg.gz" ); -FD_IMPORT_BINARY( file_alpha13, "src/disco/gui/dist_alpha/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff" ); -FD_IMPORT_BINARY( file_alpha13_zstd, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.zst" ); -FD_IMPORT_BINARY( file_alpha13_gzip, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.gz" ); -FD_IMPORT_BINARY( file_alpha14, "src/disco/gui/dist_alpha/assets/roboto-mono-latin-400-normal-GekRknry.woff2" ); -FD_IMPORT_BINARY( file_alpha14_zstd, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.zst" ); -FD_IMPORT_BINARY( file_alpha14_gzip, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.gz" ); -FD_IMPORT_BINARY( file_alpha15, "src/disco/gui/dist_alpha/index.html" ); -FD_IMPORT_BINARY( file_alpha15_zstd, "src/disco/gui/dist_alpha_cmp/index.html.zst" ); -FD_IMPORT_BINARY( file_alpha15_gzip, "src/disco/gui/dist_alpha_cmp/index.html.gz" ); -FD_IMPORT_BINARY( file_alpha16, "src/disco/gui/dist_alpha/LICENSE_DEPENDENCIES" ); -FD_IMPORT_BINARY( file_alpha16_zstd, "src/disco/gui/dist_alpha_cmp/LICENSE_DEPENDENCIES.zst" ); -FD_IMPORT_BINARY( file_alpha16_gzip, "src/disco/gui/dist_alpha_cmp/LICENSE_DEPENDENCIES.gz" ); +FD_IMPORT_BINARY( file_alpha10, "src/disco/gui/dist_alpha/assets/index-cxKTti9M.css" ); +FD_IMPORT_BINARY( file_alpha10_zstd, "src/disco/gui/dist_alpha_cmp/assets/index-cxKTti9M.css.zst" ); +FD_IMPORT_BINARY( file_alpha10_gzip, "src/disco/gui/dist_alpha_cmp/assets/index-cxKTti9M.css.gz" ); +FD_IMPORT_BINARY( file_alpha11, "src/disco/gui/dist_alpha/assets/inter-tight-latin-400-normal-BLrFJfvD.woff" ); +FD_IMPORT_BINARY( file_alpha11_zstd, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.zst" ); +FD_IMPORT_BINARY( file_alpha11_gzip, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.gz" ); +FD_IMPORT_BINARY( file_alpha12, "src/disco/gui/dist_alpha/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2" ); +FD_IMPORT_BINARY( file_alpha12_zstd, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.zst" ); +FD_IMPORT_BINARY( file_alpha12_gzip, "src/disco/gui/dist_alpha_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.gz" ); +FD_IMPORT_BINARY( file_alpha13, "src/disco/gui/dist_alpha/assets/privateYou-DnAsYVZD.svg" ); +FD_IMPORT_BINARY( file_alpha13_zstd, "src/disco/gui/dist_alpha_cmp/assets/privateYou-DnAsYVZD.svg.zst" ); +FD_IMPORT_BINARY( file_alpha13_gzip, "src/disco/gui/dist_alpha_cmp/assets/privateYou-DnAsYVZD.svg.gz" ); +FD_IMPORT_BINARY( file_alpha14, "src/disco/gui/dist_alpha/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff" ); +FD_IMPORT_BINARY( file_alpha14_zstd, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.zst" ); +FD_IMPORT_BINARY( file_alpha14_gzip, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.gz" ); +FD_IMPORT_BINARY( file_alpha15, "src/disco/gui/dist_alpha/assets/roboto-mono-latin-400-normal-GekRknry.woff2" ); +FD_IMPORT_BINARY( file_alpha15_zstd, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.zst" ); +FD_IMPORT_BINARY( file_alpha15_gzip, "src/disco/gui/dist_alpha_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.gz" ); +FD_IMPORT_BINARY( file_alpha16, "src/disco/gui/dist_alpha/index.html" ); +FD_IMPORT_BINARY( file_alpha16_zstd, "src/disco/gui/dist_alpha_cmp/index.html.zst" ); +FD_IMPORT_BINARY( file_alpha16_gzip, "src/disco/gui/dist_alpha_cmp/index.html.gz" ); FD_IMPORT_BINARY( file_alpha17, "src/disco/gui/dist_alpha/version" ); FD_IMPORT_BINARY( file_alpha17_zstd, "src/disco/gui/dist_alpha_cmp/version.zst" ); FD_IMPORT_BINARY( file_alpha17_gzip, "src/disco/gui/dist_alpha_cmp/version.gz" ); -FD_IMPORT_BINARY( file_dev0, "src/disco/gui/dist_dev/assets/firedancer-D_J0EzUc.svg" ); -FD_IMPORT_BINARY( file_dev0_zstd, "src/disco/gui/dist_dev_cmp/assets/firedancer-D_J0EzUc.svg.zst" ); -FD_IMPORT_BINARY( file_dev0_gzip, "src/disco/gui/dist_dev_cmp/assets/firedancer-D_J0EzUc.svg.gz" ); -FD_IMPORT_BINARY( file_dev1, "src/disco/gui/dist_dev/assets/firedancer_logo_circle-D9jlxCje.svg" ); -FD_IMPORT_BINARY( file_dev1_zstd, "src/disco/gui/dist_dev_cmp/assets/firedancer_logo_circle-D9jlxCje.svg.zst" ); -FD_IMPORT_BINARY( file_dev1_gzip, "src/disco/gui/dist_dev_cmp/assets/firedancer_logo_circle-D9jlxCje.svg.gz" ); -FD_IMPORT_BINARY( file_dev2, "src/disco/gui/dist_dev/assets/firedancer_logo-CrgwxzPk.svg" ); -FD_IMPORT_BINARY( file_dev2_zstd, "src/disco/gui/dist_dev_cmp/assets/firedancer_logo-CrgwxzPk.svg.zst" ); -FD_IMPORT_BINARY( file_dev2_gzip, "src/disco/gui/dist_dev_cmp/assets/firedancer_logo-CrgwxzPk.svg.gz" ); -FD_IMPORT_BINARY( file_dev3, "src/disco/gui/dist_dev/assets/frankendancer-0Top5G94.svg" ); -FD_IMPORT_BINARY( file_dev3_zstd, "src/disco/gui/dist_dev_cmp/assets/frankendancer-0Top5G94.svg.zst" ); -FD_IMPORT_BINARY( file_dev3_gzip, "src/disco/gui/dist_dev_cmp/assets/frankendancer-0Top5G94.svg.gz" ); -FD_IMPORT_BINARY( file_dev4, "src/disco/gui/dist_dev/assets/frankendancer_logo-CHyfJ772.svg" ); -FD_IMPORT_BINARY( file_dev4_zstd, "src/disco/gui/dist_dev_cmp/assets/frankendancer_logo-CHyfJ772.svg.zst" ); -FD_IMPORT_BINARY( file_dev4_gzip, "src/disco/gui/dist_dev_cmp/assets/frankendancer_logo-CHyfJ772.svg.gz" ); -FD_IMPORT_BINARY( file_dev5, "src/disco/gui/dist_dev/assets/frankendancer_logo_circle-D5z79vwQ.svg" ); -FD_IMPORT_BINARY( file_dev5_zstd, "src/disco/gui/dist_dev_cmp/assets/frankendancer_logo_circle-D5z79vwQ.svg.zst" ); -FD_IMPORT_BINARY( file_dev5_gzip, "src/disco/gui/dist_dev_cmp/assets/frankendancer_logo_circle-D5z79vwQ.svg.gz" ); -FD_IMPORT_BINARY( file_dev6, "src/disco/gui/dist_dev/assets/index-BbD9dJLZ.css" ); -FD_IMPORT_BINARY( file_dev6_zstd, "src/disco/gui/dist_dev_cmp/assets/index-BbD9dJLZ.css.zst" ); -FD_IMPORT_BINARY( file_dev6_gzip, "src/disco/gui/dist_dev_cmp/assets/index-BbD9dJLZ.css.gz" ); -FD_IMPORT_BINARY( file_dev7, "src/disco/gui/dist_dev/assets/index-BDBtonqO.js" ); -FD_IMPORT_BINARY( file_dev7_zstd, "src/disco/gui/dist_dev_cmp/assets/index-BDBtonqO.js.zst" ); -FD_IMPORT_BINARY( file_dev7_gzip, "src/disco/gui/dist_dev_cmp/assets/index-BDBtonqO.js.gz" ); -FD_IMPORT_BINARY( file_dev8, "src/disco/gui/dist_dev/assets/inter-tight-latin-400-normal-BLrFJfvD.woff" ); -FD_IMPORT_BINARY( file_dev8_zstd, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.zst" ); -FD_IMPORT_BINARY( file_dev8_gzip, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.gz" ); -FD_IMPORT_BINARY( file_dev9, "src/disco/gui/dist_dev/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2" ); -FD_IMPORT_BINARY( file_dev9_zstd, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.zst" ); -FD_IMPORT_BINARY( file_dev9_gzip, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.gz" ); -FD_IMPORT_BINARY( file_dev10, "src/disco/gui/dist_dev/assets/NotoFlagsOnly.woff2" ); -FD_IMPORT_BINARY( file_dev10_zstd, "src/disco/gui/dist_dev_cmp/assets/NotoFlagsOnly.woff2.zst" ); -FD_IMPORT_BINARY( file_dev10_gzip, "src/disco/gui/dist_dev_cmp/assets/NotoFlagsOnly.woff2.gz" ); -FD_IMPORT_BINARY( file_dev11, "src/disco/gui/dist_dev/assets/privateYou-DnAsYVZD.svg" ); -FD_IMPORT_BINARY( file_dev11_zstd, "src/disco/gui/dist_dev_cmp/assets/privateYou-DnAsYVZD.svg.zst" ); -FD_IMPORT_BINARY( file_dev11_gzip, "src/disco/gui/dist_dev_cmp/assets/privateYou-DnAsYVZD.svg.gz" ); -FD_IMPORT_BINARY( file_dev12, "src/disco/gui/dist_dev/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff" ); -FD_IMPORT_BINARY( file_dev12_zstd, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.zst" ); -FD_IMPORT_BINARY( file_dev12_gzip, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.gz" ); -FD_IMPORT_BINARY( file_dev13, "src/disco/gui/dist_dev/assets/roboto-mono-latin-400-normal-GekRknry.woff2" ); -FD_IMPORT_BINARY( file_dev13_zstd, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.zst" ); -FD_IMPORT_BINARY( file_dev13_gzip, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.gz" ); -FD_IMPORT_BINARY( file_dev14, "src/disco/gui/dist_dev/index.html" ); -FD_IMPORT_BINARY( file_dev14_zstd, "src/disco/gui/dist_dev_cmp/index.html.zst" ); -FD_IMPORT_BINARY( file_dev14_gzip, "src/disco/gui/dist_dev_cmp/index.html.gz" ); -FD_IMPORT_BINARY( file_dev15, "src/disco/gui/dist_dev/LICENSE_DEPENDENCIES" ); -FD_IMPORT_BINARY( file_dev15_zstd, "src/disco/gui/dist_dev_cmp/LICENSE_DEPENDENCIES.zst" ); -FD_IMPORT_BINARY( file_dev15_gzip, "src/disco/gui/dist_dev_cmp/LICENSE_DEPENDENCIES.gz" ); +FD_IMPORT_BINARY( file_dev0, "src/disco/gui/dist_dev/LICENSE_DEPENDENCIES" ); +FD_IMPORT_BINARY( file_dev0_zstd, "src/disco/gui/dist_dev_cmp/LICENSE_DEPENDENCIES.zst" ); +FD_IMPORT_BINARY( file_dev0_gzip, "src/disco/gui/dist_dev_cmp/LICENSE_DEPENDENCIES.gz" ); +FD_IMPORT_BINARY( file_dev1, "src/disco/gui/dist_dev/assets/NotoFlagsOnly.woff2" ); +FD_IMPORT_BINARY( file_dev1_zstd, "src/disco/gui/dist_dev_cmp/assets/NotoFlagsOnly.woff2.zst" ); +FD_IMPORT_BINARY( file_dev1_gzip, "src/disco/gui/dist_dev_cmp/assets/NotoFlagsOnly.woff2.gz" ); +FD_IMPORT_BINARY( file_dev2, "src/disco/gui/dist_dev/assets/firedancer-D_J0EzUc.svg" ); +FD_IMPORT_BINARY( file_dev2_zstd, "src/disco/gui/dist_dev_cmp/assets/firedancer-D_J0EzUc.svg.zst" ); +FD_IMPORT_BINARY( file_dev2_gzip, "src/disco/gui/dist_dev_cmp/assets/firedancer-D_J0EzUc.svg.gz" ); +FD_IMPORT_BINARY( file_dev3, "src/disco/gui/dist_dev/assets/firedancer_circle_logo-D9jlxCje.svg" ); +FD_IMPORT_BINARY( file_dev3_zstd, "src/disco/gui/dist_dev_cmp/assets/firedancer_circle_logo-D9jlxCje.svg.zst" ); +FD_IMPORT_BINARY( file_dev3_gzip, "src/disco/gui/dist_dev_cmp/assets/firedancer_circle_logo-D9jlxCje.svg.gz" ); +FD_IMPORT_BINARY( file_dev4, "src/disco/gui/dist_dev/assets/firedancer_logo-CrgwxzPk.svg" ); +FD_IMPORT_BINARY( file_dev4_zstd, "src/disco/gui/dist_dev_cmp/assets/firedancer_logo-CrgwxzPk.svg.zst" ); +FD_IMPORT_BINARY( file_dev4_gzip, "src/disco/gui/dist_dev_cmp/assets/firedancer_logo-CrgwxzPk.svg.gz" ); +FD_IMPORT_BINARY( file_dev5, "src/disco/gui/dist_dev/assets/frankendancer-0Top5G94.svg" ); +FD_IMPORT_BINARY( file_dev5_zstd, "src/disco/gui/dist_dev_cmp/assets/frankendancer-0Top5G94.svg.zst" ); +FD_IMPORT_BINARY( file_dev5_gzip, "src/disco/gui/dist_dev_cmp/assets/frankendancer-0Top5G94.svg.gz" ); +FD_IMPORT_BINARY( file_dev6, "src/disco/gui/dist_dev/assets/frankendancer_circle_logo-D5z79vwQ.svg" ); +FD_IMPORT_BINARY( file_dev6_zstd, "src/disco/gui/dist_dev_cmp/assets/frankendancer_circle_logo-D5z79vwQ.svg.zst" ); +FD_IMPORT_BINARY( file_dev6_gzip, "src/disco/gui/dist_dev_cmp/assets/frankendancer_circle_logo-D5z79vwQ.svg.gz" ); +FD_IMPORT_BINARY( file_dev7, "src/disco/gui/dist_dev/assets/frankendancer_logo-CHyfJ772.svg" ); +FD_IMPORT_BINARY( file_dev7_zstd, "src/disco/gui/dist_dev_cmp/assets/frankendancer_logo-CHyfJ772.svg.zst" ); +FD_IMPORT_BINARY( file_dev7_gzip, "src/disco/gui/dist_dev_cmp/assets/frankendancer_logo-CHyfJ772.svg.gz" ); +FD_IMPORT_BINARY( file_dev8, "src/disco/gui/dist_dev/assets/index-CpvkkjHq.js" ); +FD_IMPORT_BINARY( file_dev8_zstd, "src/disco/gui/dist_dev_cmp/assets/index-CpvkkjHq.js.zst" ); +FD_IMPORT_BINARY( file_dev8_gzip, "src/disco/gui/dist_dev_cmp/assets/index-CpvkkjHq.js.gz" ); +FD_IMPORT_BINARY( file_dev9, "src/disco/gui/dist_dev/assets/index-g3quWq70.css" ); +FD_IMPORT_BINARY( file_dev9_zstd, "src/disco/gui/dist_dev_cmp/assets/index-g3quWq70.css.zst" ); +FD_IMPORT_BINARY( file_dev9_gzip, "src/disco/gui/dist_dev_cmp/assets/index-g3quWq70.css.gz" ); +FD_IMPORT_BINARY( file_dev10, "src/disco/gui/dist_dev/assets/inter-tight-latin-400-normal-BLrFJfvD.woff" ); +FD_IMPORT_BINARY( file_dev10_zstd, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.zst" ); +FD_IMPORT_BINARY( file_dev10_gzip, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-BLrFJfvD.woff.gz" ); +FD_IMPORT_BINARY( file_dev11, "src/disco/gui/dist_dev/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2" ); +FD_IMPORT_BINARY( file_dev11_zstd, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.zst" ); +FD_IMPORT_BINARY( file_dev11_gzip, "src/disco/gui/dist_dev_cmp/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2.gz" ); +FD_IMPORT_BINARY( file_dev12, "src/disco/gui/dist_dev/assets/privateYou-DnAsYVZD.svg" ); +FD_IMPORT_BINARY( file_dev12_zstd, "src/disco/gui/dist_dev_cmp/assets/privateYou-DnAsYVZD.svg.zst" ); +FD_IMPORT_BINARY( file_dev12_gzip, "src/disco/gui/dist_dev_cmp/assets/privateYou-DnAsYVZD.svg.gz" ); +FD_IMPORT_BINARY( file_dev13, "src/disco/gui/dist_dev/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff" ); +FD_IMPORT_BINARY( file_dev13_zstd, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.zst" ); +FD_IMPORT_BINARY( file_dev13_gzip, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff.gz" ); +FD_IMPORT_BINARY( file_dev14, "src/disco/gui/dist_dev/assets/roboto-mono-latin-400-normal-GekRknry.woff2" ); +FD_IMPORT_BINARY( file_dev14_zstd, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.zst" ); +FD_IMPORT_BINARY( file_dev14_gzip, "src/disco/gui/dist_dev_cmp/assets/roboto-mono-latin-400-normal-GekRknry.woff2.gz" ); +FD_IMPORT_BINARY( file_dev15, "src/disco/gui/dist_dev/index.html" ); +FD_IMPORT_BINARY( file_dev15_zstd, "src/disco/gui/dist_dev_cmp/index.html.zst" ); +FD_IMPORT_BINARY( file_dev15_gzip, "src/disco/gui/dist_dev_cmp/index.html.gz" ); FD_IMPORT_BINARY( file_dev16, "src/disco/gui/dist_dev/version" ); FD_IMPORT_BINARY( file_dev16_zstd, "src/disco/gui/dist_dev_cmp/version.zst" ); FD_IMPORT_BINARY( file_dev16_gzip, "src/disco/gui/dist_dev_cmp/version.gz" ); @@ -163,7 +163,7 @@ FD_IMPORT_BINARY( file_dev16_gzip, "src/disco/gui/dist_dev_cmp/version.gz" ); fd_http_static_file_t STATIC_FILES_STABLE[] = { { - .name = "/assets/firedancer_circle_logo-D9jlxCje.svg", + .name = "/LICENSE_DEPENDENCIES", .data = file_stable0, .data_len = &file_stable0_sz, .zstd_data = file_stable0_zstd, @@ -172,7 +172,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable0_gzip_sz, }, { - .name = "/assets/firedancer-D_J0EzUc.svg", + .name = "/assets/NotoFlagsOnly.woff2", .data = file_stable1, .data_len = &file_stable1_sz, .zstd_data = file_stable1_zstd, @@ -181,7 +181,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable1_gzip_sz, }, { - .name = "/assets/firedancer_logo-CrgwxzPk.svg", + .name = "/assets/firedancer-D_J0EzUc.svg", .data = file_stable2, .data_len = &file_stable2_sz, .zstd_data = file_stable2_zstd, @@ -190,7 +190,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable2_gzip_sz, }, { - .name = "/assets/frankendancer-0Top5G94.svg", + .name = "/assets/firedancer_circle_logo-D9jlxCje.svg", .data = file_stable3, .data_len = &file_stable3_sz, .zstd_data = file_stable3_zstd, @@ -199,7 +199,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable3_gzip_sz, }, { - .name = "/assets/frankendancer_circle_logo-D5z79vwQ.svg", + .name = "/assets/firedancer_logo-CrgwxzPk.svg", .data = file_stable4, .data_len = &file_stable4_sz, .zstd_data = file_stable4_zstd, @@ -208,7 +208,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable4_gzip_sz, }, { - .name = "/assets/frankendancer_logo-CHyfJ772.svg", + .name = "/assets/frankendancer-0Top5G94.svg", .data = file_stable5, .data_len = &file_stable5_sz, .zstd_data = file_stable5_zstd, @@ -217,7 +217,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable5_gzip_sz, }, { - .name = "/assets/index-CJmHmCl9.js", + .name = "/assets/frankendancer_circle_logo-D5z79vwQ.svg", .data = file_stable6, .data_len = &file_stable6_sz, .zstd_data = file_stable6_zstd, @@ -226,7 +226,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable6_gzip_sz, }, { - .name = "/assets/index-GP8-BVKz.css", + .name = "/assets/frankendancer_logo-CHyfJ772.svg", .data = file_stable7, .data_len = &file_stable7_sz, .zstd_data = file_stable7_zstd, @@ -235,7 +235,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable7_gzip_sz, }, { - .name = "/assets/inter-tight-latin-400-normal-BLrFJfvD.woff", + .name = "/assets/index-CJmHmCl9.js", .data = file_stable8, .data_len = &file_stable8_sz, .zstd_data = file_stable8_zstd, @@ -244,7 +244,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable8_gzip_sz, }, { - .name = "/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2", + .name = "/assets/index-GP8-BVKz.css", .data = file_stable9, .data_len = &file_stable9_sz, .zstd_data = file_stable9_zstd, @@ -253,7 +253,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable9_gzip_sz, }, { - .name = "/assets/NotoFlagsOnly.woff2", + .name = "/assets/inter-tight-latin-400-normal-BLrFJfvD.woff", .data = file_stable10, .data_len = &file_stable10_sz, .zstd_data = file_stable10_zstd, @@ -262,7 +262,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable10_gzip_sz, }, { - .name = "/assets/privateYou-DnAsYVZD.svg", + .name = "/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2", .data = file_stable11, .data_len = &file_stable11_sz, .zstd_data = file_stable11_zstd, @@ -271,7 +271,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable11_gzip_sz, }, { - .name = "/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff", + .name = "/assets/privateYou-DnAsYVZD.svg", .data = file_stable12, .data_len = &file_stable12_sz, .zstd_data = file_stable12_zstd, @@ -280,7 +280,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable12_gzip_sz, }, { - .name = "/assets/roboto-mono-latin-400-normal-GekRknry.woff2", + .name = "/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff", .data = file_stable13, .data_len = &file_stable13_sz, .zstd_data = file_stable13_zstd, @@ -289,7 +289,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable13_gzip_sz, }, { - .name = "/index.html", + .name = "/assets/roboto-mono-latin-400-normal-GekRknry.woff2", .data = file_stable14, .data_len = &file_stable14_sz, .zstd_data = file_stable14_zstd, @@ -298,7 +298,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { .gzip_data_len = &file_stable14_gzip_sz, }, { - .name = "/LICENSE_DEPENDENCIES", + .name = "/index.html", .data = file_stable15, .data_len = &file_stable15_sz, .zstd_data = file_stable15_zstd, @@ -320,7 +320,7 @@ fd_http_static_file_t STATIC_FILES_STABLE[] = { fd_http_static_file_t STATIC_FILES_ALPHA[] = { { - .name = "/assets/firedancer-D_J0EzUc.svg", + .name = "/LICENSE_DEPENDENCIES", .data = file_alpha0, .data_len = &file_alpha0_sz, .zstd_data = file_alpha0_zstd, @@ -329,7 +329,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha0_gzip_sz, }, { - .name = "/assets/firedancer_logo_circle-D9jlxCje.svg", + .name = "/assets/firedancer-D_J0EzUc.svg", .data = file_alpha1, .data_len = &file_alpha1_sz, .zstd_data = file_alpha1_zstd, @@ -347,7 +347,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha2_gzip_sz, }, { - .name = "/assets/frankendancer-0Top5G94.svg", + .name = "/assets/firedancer_logo_circle-D9jlxCje.svg", .data = file_alpha3, .data_len = &file_alpha3_sz, .zstd_data = file_alpha3_zstd, @@ -356,7 +356,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha3_gzip_sz, }, { - .name = "/assets/frankendancer_logo-CHyfJ772.svg", + .name = "/assets/frankendancer-0Top5G94.svg", .data = file_alpha4, .data_len = &file_alpha4_sz, .zstd_data = file_alpha4_zstd, @@ -365,7 +365,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha4_gzip_sz, }, { - .name = "/assets/frankendancer_logo_circle-D5z79vwQ.svg", + .name = "/assets/frankendancer_logo-CHyfJ772.svg", .data = file_alpha5, .data_len = &file_alpha5_sz, .zstd_data = file_alpha5_zstd, @@ -374,7 +374,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha5_gzip_sz, }, { - .name = "/assets/index-B79NUQX2.js", + .name = "/assets/frankendancer_logo_circle-D5z79vwQ.svg", .data = file_alpha6, .data_len = &file_alpha6_sz, .zstd_data = file_alpha6_zstd, @@ -383,7 +383,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha6_gzip_sz, }, { - .name = "/assets/index-BJ9rbYrC.js", + .name = "/assets/index-B79NUQX2.js", .data = file_alpha7, .data_len = &file_alpha7_sz, .zstd_data = file_alpha7_zstd, @@ -392,7 +392,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha7_gzip_sz, }, { - .name = "/assets/index-cxKTti9M.css", + .name = "/assets/index-BJ9rbYrC.js", .data = file_alpha8, .data_len = &file_alpha8_sz, .zstd_data = file_alpha8_zstd, @@ -410,7 +410,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha9_gzip_sz, }, { - .name = "/assets/inter-tight-latin-400-normal-BLrFJfvD.woff", + .name = "/assets/index-cxKTti9M.css", .data = file_alpha10, .data_len = &file_alpha10_sz, .zstd_data = file_alpha10_zstd, @@ -419,7 +419,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha10_gzip_sz, }, { - .name = "/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2", + .name = "/assets/inter-tight-latin-400-normal-BLrFJfvD.woff", .data = file_alpha11, .data_len = &file_alpha11_sz, .zstd_data = file_alpha11_zstd, @@ -428,7 +428,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha11_gzip_sz, }, { - .name = "/assets/privateYou-DnAsYVZD.svg", + .name = "/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2", .data = file_alpha12, .data_len = &file_alpha12_sz, .zstd_data = file_alpha12_zstd, @@ -437,7 +437,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha12_gzip_sz, }, { - .name = "/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff", + .name = "/assets/privateYou-DnAsYVZD.svg", .data = file_alpha13, .data_len = &file_alpha13_sz, .zstd_data = file_alpha13_zstd, @@ -446,7 +446,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha13_gzip_sz, }, { - .name = "/assets/roboto-mono-latin-400-normal-GekRknry.woff2", + .name = "/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff", .data = file_alpha14, .data_len = &file_alpha14_sz, .zstd_data = file_alpha14_zstd, @@ -455,7 +455,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha14_gzip_sz, }, { - .name = "/index.html", + .name = "/assets/roboto-mono-latin-400-normal-GekRknry.woff2", .data = file_alpha15, .data_len = &file_alpha15_sz, .zstd_data = file_alpha15_zstd, @@ -464,7 +464,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { .gzip_data_len = &file_alpha15_gzip_sz, }, { - .name = "/LICENSE_DEPENDENCIES", + .name = "/index.html", .data = file_alpha16, .data_len = &file_alpha16_sz, .zstd_data = file_alpha16_zstd, @@ -486,7 +486,7 @@ fd_http_static_file_t STATIC_FILES_ALPHA[] = { fd_http_static_file_t STATIC_FILES_DEV[] = { { - .name = "/assets/firedancer-D_J0EzUc.svg", + .name = "/LICENSE_DEPENDENCIES", .data = file_dev0, .data_len = &file_dev0_sz, .zstd_data = file_dev0_zstd, @@ -495,7 +495,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev0_gzip_sz, }, { - .name = "/assets/firedancer_logo_circle-D9jlxCje.svg", + .name = "/assets/NotoFlagsOnly.woff2", .data = file_dev1, .data_len = &file_dev1_sz, .zstd_data = file_dev1_zstd, @@ -504,7 +504,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev1_gzip_sz, }, { - .name = "/assets/firedancer_logo-CrgwxzPk.svg", + .name = "/assets/firedancer-D_J0EzUc.svg", .data = file_dev2, .data_len = &file_dev2_sz, .zstd_data = file_dev2_zstd, @@ -513,7 +513,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev2_gzip_sz, }, { - .name = "/assets/frankendancer-0Top5G94.svg", + .name = "/assets/firedancer_circle_logo-D9jlxCje.svg", .data = file_dev3, .data_len = &file_dev3_sz, .zstd_data = file_dev3_zstd, @@ -522,7 +522,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev3_gzip_sz, }, { - .name = "/assets/frankendancer_logo-CHyfJ772.svg", + .name = "/assets/firedancer_logo-CrgwxzPk.svg", .data = file_dev4, .data_len = &file_dev4_sz, .zstd_data = file_dev4_zstd, @@ -531,7 +531,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev4_gzip_sz, }, { - .name = "/assets/frankendancer_logo_circle-D5z79vwQ.svg", + .name = "/assets/frankendancer-0Top5G94.svg", .data = file_dev5, .data_len = &file_dev5_sz, .zstd_data = file_dev5_zstd, @@ -540,7 +540,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev5_gzip_sz, }, { - .name = "/assets/index-BbD9dJLZ.css", + .name = "/assets/frankendancer_circle_logo-D5z79vwQ.svg", .data = file_dev6, .data_len = &file_dev6_sz, .zstd_data = file_dev6_zstd, @@ -549,7 +549,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev6_gzip_sz, }, { - .name = "/assets/index-BDBtonqO.js", + .name = "/assets/frankendancer_logo-CHyfJ772.svg", .data = file_dev7, .data_len = &file_dev7_sz, .zstd_data = file_dev7_zstd, @@ -558,7 +558,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev7_gzip_sz, }, { - .name = "/assets/inter-tight-latin-400-normal-BLrFJfvD.woff", + .name = "/assets/index-CpvkkjHq.js", .data = file_dev8, .data_len = &file_dev8_sz, .zstd_data = file_dev8_zstd, @@ -567,7 +567,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev8_gzip_sz, }, { - .name = "/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2", + .name = "/assets/index-g3quWq70.css", .data = file_dev9, .data_len = &file_dev9_sz, .zstd_data = file_dev9_zstd, @@ -576,7 +576,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev9_gzip_sz, }, { - .name = "/assets/NotoFlagsOnly.woff2", + .name = "/assets/inter-tight-latin-400-normal-BLrFJfvD.woff", .data = file_dev10, .data_len = &file_dev10_sz, .zstd_data = file_dev10_zstd, @@ -585,7 +585,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev10_gzip_sz, }, { - .name = "/assets/privateYou-DnAsYVZD.svg", + .name = "/assets/inter-tight-latin-400-normal-iW8qmuJY.woff2", .data = file_dev11, .data_len = &file_dev11_sz, .zstd_data = file_dev11_zstd, @@ -594,7 +594,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev11_gzip_sz, }, { - .name = "/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff", + .name = "/assets/privateYou-DnAsYVZD.svg", .data = file_dev12, .data_len = &file_dev12_sz, .zstd_data = file_dev12_zstd, @@ -603,7 +603,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev12_gzip_sz, }, { - .name = "/assets/roboto-mono-latin-400-normal-GekRknry.woff2", + .name = "/assets/roboto-mono-latin-400-normal-DBZPkcnn.woff", .data = file_dev13, .data_len = &file_dev13_sz, .zstd_data = file_dev13_zstd, @@ -612,7 +612,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev13_gzip_sz, }, { - .name = "/index.html", + .name = "/assets/roboto-mono-latin-400-normal-GekRknry.woff2", .data = file_dev14, .data_len = &file_dev14_sz, .zstd_data = file_dev14_zstd, @@ -621,7 +621,7 @@ fd_http_static_file_t STATIC_FILES_DEV[] = { .gzip_data_len = &file_dev14_gzip_sz, }, { - .name = "/LICENSE_DEPENDENCIES", + .name = "/index.html", .data = file_dev15, .data_len = &file_dev15_sz, .zstd_data = file_dev15_zstd,