function Vm(r,l){for(var i=0;iu[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function ed(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Bs={exports:{}},no={},$s={exports:{}},fe={};var Sf;function Wm(){if(Sf)return fe;Sf=1;var r=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),P=Symbol.iterator;function j(k){return k===null||typeof k!="object"?null:(k=P&&k[P]||k["@@iterator"],typeof k=="function"?k:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function E(k,O,oe){this.props=k,this.context=O,this.refs=C,this.updater=oe||b}E.prototype.isReactComponent={},E.prototype.setState=function(k,O){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,O,"setState")},E.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function B(){}B.prototype=E.prototype;function Y(k,O,oe){this.props=k,this.context=O,this.refs=C,this.updater=oe||b}var z=Y.prototype=new B;z.constructor=Y,x(z,E.prototype),z.isPureReactComponent=!0;var V=Array.isArray,ne=Object.prototype.hasOwnProperty,G={current:null},te={key:!0,ref:!0,__self:!0,__source:!0};function se(k,O,oe){var J,me={},he=null,Ee=null;if(O!=null)for(J in O.ref!==void 0&&(Ee=O.ref),O.key!==void 0&&(he=""+O.key),O)ne.call(O,J)&&!te.hasOwnProperty(J)&&(me[J]=O[J]);var Se=arguments.length-2;if(Se===1)me.children=oe;else if(1>>1,O=I[k];if(0>>1;kc(me,$))hec(Ee,me)?(I[k]=Ee,I[he]=$,k=he):(I[k]=me,I[J]=$,k=J);else if(hec(Ee,$))I[k]=Ee,I[he]=$,k=he;else break e}}return X}function c(I,X){var $=I.sortIndex-X.sortIndex;return $!==0?$:I.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var p=Date,m=p.now();r.unstable_now=function(){return p.now()-m}}var g=[],S=[],v=1,P=null,j=3,b=!1,x=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(I){for(var X=i(S);X!==null;){if(X.callback===null)u(S);else if(X.startTime<=I)u(S),X.sortIndex=X.expirationTime,l(g,X);else break;X=i(S)}}function V(I){if(C=!1,z(I),!x)if(i(g)!==null)x=!0,de(ne);else{var X=i(S);X!==null&&ie(V,X.startTime-I)}}function ne(I,X){x=!1,C&&(C=!1,B(se),se=-1),b=!0;var $=j;try{for(z(X),P=i(g);P!==null&&(!(P.expirationTime>X)||I&&!Ne());){var k=P.callback;if(typeof k=="function"){P.callback=null,j=P.priorityLevel;var O=k(P.expirationTime<=X);X=r.unstable_now(),typeof O=="function"?P.callback=O:P===i(g)&&u(g),z(X)}else u(g);P=i(g)}if(P!==null)var oe=!0;else{var J=i(S);J!==null&&ie(V,J.startTime-X),oe=!1}return oe}finally{P=null,j=$,b=!1}}var G=!1,te=null,se=-1,ce=5,we=-1;function Ne(){return!(r.unstable_now()-weI||125k?(I.sortIndex=$,l(S,I),i(g)===null&&I===i(S)&&(C?(B(se),se=-1):C=!0,ie(V,$-k))):(I.sortIndex=O,l(g,I),x||b||(x=!0,de(ne))),I},r.unstable_shouldYield=Ne,r.unstable_wrapCallback=function(I){var X=j;return function(){var $=j;j=X;try{return I.apply(this,arguments)}finally{j=$}}}})(Ws)),Ws}var Tf;function Gm(){return Tf||(Tf=1,Vs.exports=Km()),Vs.exports}var Rf;function Xm(){if(Rf)return st;Rf=1;var r=mu(),l=Gm();function i(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"),g=Object.prototype.hasOwnProperty,S=/^[: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]*$/,v={},P={};function j(e){return g.call(P,e)?!0:g.call(v,e)?!1:S.test(e)?P[e]=!0:(v[e]=!0,!1)}function b(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x(e,t,n,o){if(t===null||typeof t>"u"||b(e,t,n,o))return!0;if(o)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 C(e,t,n,o,s,a,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=d}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){E[e]=new C(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];E[t]=new C(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){E[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){E[e]=new C(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){E[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){E[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){E[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){E[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){E[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function Y(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(B,Y);E[t]=new C(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(B,Y);E[t]=new C(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(B,Y);E[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){E[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),E.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){E[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function z(e,t,n,o){var s=E.hasOwnProperty(t)?E[t]:null;(s!==null?s.type!==0:o||!(2h||s[d]!==a[h]){var y=` `+s[d].replace(" at new "," at ");return e.displayName&&y.includes("")&&(y=y.replace("",e.displayName)),y}while(1<=d&&0<=h);break}}}finally{oe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O(e):""}function me(e){switch(e.tag){case 5:return O(e.type);case 16:return O("Lazy");case 13:return O("Suspense");case 19:return O("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1),e;case 11:return e=J(e.type.render,!1),e;case 1:return e=J(e.type,!0),e;default:return""}}function he(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 te:return"Fragment";case G:return"Portal";case ce:return"Profiler";case se:return"StrictMode";case le:return"Suspense";case ye:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case we:return(e._context.displayName||"Context")+".Provider";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case de:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}function Ee(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 he(t);case 8:return t===se?"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 Se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=Ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){o=""+d,a.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Te(e){e._valueTracker||(e._valueTracker=Ze(e))}function gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Ce(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Ve(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 Yt(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ru(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Se(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Nu(e,t){t=t.checked,t!=null&&z(e,"checked",t,!1)}function Gl(e,t){Nu(e,t);var n=Se(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xl(e,t.type,Se(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 Xl(e,t,n){(t!=="number"||Ve(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function Bn(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={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},Kd=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){Kd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Fu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function Au(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,s=Fu(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,s):e[n]=s}}var Gd=$({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 Zl(e,t){if(t){if(Gd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function ei(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 ti=null;function ni(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ri=null,$n=null,Hn=null;function Du(e){if(e=Br(e)){if(typeof ri!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Io(t),ri(e.stateNode,e.type,t))}}function bu(e){$n?Hn?Hn.push(e):Hn=[e]:$n=e}function Mu(){if($n){var e=$n,t=Hn;if(Hn=$n=null,Du(e),t)for(e=0;e>>=0,e===0?32:31-(ip(e)/sp|0)|0}var ko=64,xo=4194304;function Er(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 Eo(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,s=e.suspendedLanes,a=e.pingedLanes,d=n&268435455;if(d!==0){var h=d&~s;h!==0?o=Er(h):(a&=d,a!==0&&(o=Er(a)))}else d=n&~s,d!==0?o=Er(d):a!==0&&(o=Er(a));if(o===0)return 0;if(t!==0&&t!==o&&(t&s)===0&&(s=o&-o,a=t&-t,s>=a||s===16&&(a&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function Cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function fp(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 o=e.eventTimes;for(e=e.expirationTimes;0=Or),da=" ",pa=!1;function ma(e,t){switch(e){case"keyup":return Ip.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ha(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function Bp(e,t){switch(e){case"compositionend":return ha(t);case"keypress":return t.which!==32?null:(pa=!0,da);case"textInput":return e=t.data,e===da&&pa?null:e;default:return null}}function $p(e,t){if(qn)return e==="compositionend"||!ki&&ma(e,t)?(e=ia(),Lo=hi=nn=null,qn=!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=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xa(n)}}function Ca(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ca(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ta(){for(var e=window,t=Ve();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ve(e.document)}return t}function Ci(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 Yp(e){var t=Ta(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ca(n.ownerDocument.documentElement,n)){if(o!==null&&Ci(n)){if(t=o.start,e=o.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 s=n.textContent.length,a=Math.min(o.start,s);o=o.end===void 0?a:Math.min(o.end,s),!e.extend&&a>o&&(s=o,o=a,a=s),s=Ea(n,a);var d=Ea(n,o);s&&d&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.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,Qn=null,Ti=null,Dr=null,Ri=!1;function Ra(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ri||Qn==null||Qn!==Ve(o)||(o=Qn,"selectionStart"in o&&Ci(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Dr&&Ar(Dr,o)||(Dr=o,o=Do(Ti,"onSelect"),0Jn||(e.current=Mi[Jn],Mi[Jn]=null,Jn--)}function Re(e,t){Jn++,Mi[Jn]=e.current,e.current=t}var sn={},Qe=ln(sn),nt=ln(!1),En=sn;function Zn(e,t){var n=e.type.contextTypes;if(!n)return sn;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},a;for(a in n)s[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function rt(e){return e=e.childContextTypes,e!=null}function zo(){Pe(nt),Pe(Qe)}function Ba(e,t,n){if(Qe.current!==sn)throw Error(i(168));Re(Qe,t),Re(nt,n)}function $a(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var s in o)if(!(s in t))throw Error(i(108,Ee(e)||"Unknown",s));return $({},n,o)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,En=Qe.current,Re(Qe,e),Re(nt,nt.current),!0}function Ha(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=$a(e,t,En),o.__reactInternalMemoizedMergedChildContext=e,Pe(nt),Pe(Qe),Re(Qe,e)):Pe(nt),Re(nt,n)}var Bt=null,$o=!1,Ii=!1;function Va(e){Bt===null?Bt=[e]:Bt.push(e)}function am(e){$o=!0,Va(e)}function un(){if(!Ii&&Bt!==null){Ii=!0;var e=0,t=xe;try{var n=Bt;for(xe=1;e>=d,s-=d,$t=1<<32-Tt(t)+s|n<re?(He=ee,ee=null):He=ee.sibling;var ve=F(T,ee,N[re],M);if(ve===null){ee===null&&(ee=He);break}e&&ee&&ve.alternate===null&&t(T,ee),w=a(ve,w,re),Z===null?K=ve:Z.sibling=ve,Z=ve,ee=He}if(re===N.length)return n(T,ee),_e&&Tn(T,re),K;if(ee===null){for(;rere?(He=ee,ee=null):He=ee.sibling;var yn=F(T,ee,ve.value,M);if(yn===null){ee===null&&(ee=He);break}e&&ee&&yn.alternate===null&&t(T,ee),w=a(yn,w,re),Z===null?K=yn:Z.sibling=yn,Z=yn,ee=He}if(ve.done)return n(T,ee),_e&&Tn(T,re),K;if(ee===null){for(;!ve.done;re++,ve=N.next())ve=D(T,ve.value,M),ve!==null&&(w=a(ve,w,re),Z===null?K=ve:Z.sibling=ve,Z=ve);return _e&&Tn(T,re),K}for(ee=o(T,ee);!ve.done;re++,ve=N.next())ve=H(ee,T,re,ve.value,M),ve!==null&&(e&&ve.alternate!==null&&ee.delete(ve.key===null?re:ve.key),w=a(ve,w,re),Z===null?K=ve:Z.sibling=ve,Z=ve);return e&&ee.forEach(function(Hm){return t(T,Hm)}),_e&&Tn(T,re),K}function De(T,w,N,M){if(typeof N=="object"&&N!==null&&N.type===te&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case ne:e:{for(var K=N.key,Z=w;Z!==null;){if(Z.key===K){if(K=N.type,K===te){if(Z.tag===7){n(T,Z.sibling),w=s(Z,N.props.children),w.return=T,T=w;break e}}else if(Z.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===de&&Xa(K)===Z.type){n(T,Z.sibling),w=s(Z,N.props),w.ref=$r(T,Z,N),w.return=T,T=w;break e}n(T,Z);break}else t(T,Z);Z=Z.sibling}N.type===te?(w=jn(N.props.children,T.mode,M,N.key),w.return=T,T=w):(M=gl(N.type,N.key,N.props,null,T.mode,M),M.ref=$r(T,w,N),M.return=T,T=M)}return d(T);case G:e:{for(Z=N.key;w!==null;){if(w.key===Z)if(w.tag===4&&w.stateNode.containerInfo===N.containerInfo&&w.stateNode.implementation===N.implementation){n(T,w.sibling),w=s(w,N.children||[]),w.return=T,T=w;break e}else{n(T,w);break}else t(T,w);w=w.sibling}w=Ds(N,T.mode,M),w.return=T,T=w}return d(T);case de:return Z=N._init,De(T,w,Z(N._payload),M)}if(yr(N))return q(T,w,N,M);if(X(N))return Q(T,w,N,M);qo(T,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,w!==null&&w.tag===6?(n(T,w.sibling),w=s(w,N),w.return=T,T=w):(n(T,w),w=As(N,T.mode,M),w.return=T,T=w),d(T)):n(T,w)}return De}var rr=Ya(!0),Ja=Ya(!1),Qo=ln(null),Ko=null,or=null,Wi=null;function qi(){Wi=or=Ko=null}function Qi(e){var t=Qo.current;Pe(Qo),e._currentValue=t}function Ki(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function lr(e,t){Ko=e,Wi=or=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ot=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Wi!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Ko===null)throw Error(i(308));or=e,Ko.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Rn=null;function Gi(e){Rn===null?Rn=[e]:Rn.push(e)}function Za(e,t,n,o){var s=t.interleaved;return s===null?(n.next=n,Gi(t)):(n.next=s.next,s.next=n),t.interleaved=n,Vt(e,o)}function Vt(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 an=!1;function Xi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ec(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 Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cn(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ge&2)!==0){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,Vt(e,n)}return s=o.interleaved,s===null?(t.next=t,Gi(o)):(t.next=s.next,s.next=t),o.interleaved=t,Vt(e,n)}function Go(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,ci(e,n)}}function tc(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var s=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?s=a=d:a=a.next=d,n=n.next}while(n!==null);a===null?s=a=t:a=a.next=t}else s=a=t;n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xo(e,t,n,o){var s=e.updateQueue;an=!1;var a=s.firstBaseUpdate,d=s.lastBaseUpdate,h=s.shared.pending;if(h!==null){s.shared.pending=null;var y=h,_=y.next;y.next=null,d===null?a=_:d.next=_,d=y;var A=e.alternate;A!==null&&(A=A.updateQueue,h=A.lastBaseUpdate,h!==d&&(h===null?A.firstBaseUpdate=_:h.next=_,A.lastBaseUpdate=y))}if(a!==null){var D=s.baseState;d=0,A=_=y=null,h=a;do{var F=h.lane,H=h.eventTime;if((o&F)===F){A!==null&&(A=A.next={eventTime:H,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var q=e,Q=h;switch(F=t,H=n,Q.tag){case 1:if(q=Q.payload,typeof q=="function"){D=q.call(H,D,F);break e}D=q;break e;case 3:q.flags=q.flags&-65537|128;case 0:if(q=Q.payload,F=typeof q=="function"?q.call(H,D,F):q,F==null)break e;D=$({},D,F);break e;case 2:an=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,F=s.effects,F===null?s.effects=[h]:F.push(h))}else H={eventTime:H,lane:F,tag:h.tag,payload:h.payload,callback:h.callback,next:null},A===null?(_=A=H,y=D):A=A.next=H,d|=F;if(h=h.next,h===null){if(h=s.shared.pending,h===null)break;F=h,h=F.next,F.next=null,s.lastBaseUpdate=F,s.shared.pending=null}}while(!0);if(A===null&&(y=D),s.baseState=y,s.firstBaseUpdate=_,s.lastBaseUpdate=A,t=s.shared.interleaved,t!==null){s=t;do d|=s.lane,s=s.next;while(s!==t)}else a===null&&(s.shared.lanes=0);Pn|=d,e.lanes=d,e.memoizedState=D}}function nc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var o=ts.transition;ts.transition={};try{e(!1),t()}finally{xe=n,ts.transition=o}}function kc(){return St().memoizedState}function pm(e,t,n){var o=mn(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},xc(e))Ec(t,n);else if(n=Za(e,t,n,o),n!==null){var s=tt();Ut(n,e,o,s),Cc(n,t,o)}}function mm(e,t,n){var o=mn(e),s={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(xc(e))Ec(t,s);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var d=t.lastRenderedState,h=a(d,n);if(s.hasEagerState=!0,s.eagerState=h,Rt(h,d)){var y=t.interleaved;y===null?(s.next=s,Gi(t)):(s.next=y.next,y.next=s),t.interleaved=s;return}}catch{}n=Za(e,t,s,o),n!==null&&(s=tt(),Ut(n,e,o,s),Cc(n,t,o))}}function xc(e){var t=e.alternate;return e===je||t!==null&&t===je}function Ec(e,t){qr=Zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cc(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,ci(e,n)}}var nl={readContext:wt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},hm={readContext:wt,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:pc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,el(4194308,4,gc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return el(4194308,4,e,t)},useInsertionEffect:function(e,t){return el(4,2,e,t)},useMemo:function(e,t){var n=bt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=bt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=pm.bind(null,je,e),[o.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:fc,useDebugValue:us,useDeferredValue:function(e){return bt().memoizedState=e},useTransition:function(){var e=fc(!1),t=e[0];return e=dm.bind(null,e[1]),bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=je,s=bt();if(_e){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),$e===null)throw Error(i(349));(Ln&30)!==0||ic(o,t,n)}s.memoizedState=n;var a={value:n,getSnapshot:t};return s.queue=a,pc(uc.bind(null,o,a,e),[e]),o.flags|=2048,Gr(9,sc.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=bt(),t=$e.identifierPrefix;if(_e){var n=Ht,o=$t;n=(o&~(1<<32-Tt(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(n,{is:o.is}):(e=d.createElement(n),n==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,n),e[At]=t,e[zr]=o,Vc(e,t,!1,!1),t.stateNode=e;e:{switch(d=ei(n,o),n){case"dialog":Le("cancel",e),Le("close",e),s=o;break;case"iframe":case"object":case"embed":Le("load",e),s=o;break;case"video":case"audio":for(s=0;scr&&(t.flags|=128,o=!0,Xr(a,!1),t.lanes=4194304)}else{if(!o)if(e=Yo(d),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!d.alternate&&!_e)return Ge(t),null}else 2*Ae()-a.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,o=!0,Xr(a,!1),t.lanes=4194304);a.isBackwards?(d.sibling=t.child,t.child=d):(n=a.last,n!==null?n.sibling=d:t.child=d,a.last=d)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ae(),t.sibling=null,n=Oe.current,Re(Oe,o?n&1|2:n&1),t):(Ge(t),null);case 22:case 23:return Os(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(pt&1073741824)!==0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Em(e,t){switch(Bi(t),t.tag){case 1:return rt(t.type)&&zo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ir(),Pe(nt),Pe(Qe),es(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ji(t),null;case 13:if(Pe(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Oe),null;case 4:return ir(),null;case 10:return Qi(t.type._context),null;case 22:case 23:return Os(),null;case 24:return null;default:return null}}var il=!1,Xe=!1,Cm=typeof WeakSet=="function"?WeakSet:Set,W=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){Fe(e,t,o)}else n.current=null}function Ss(e,t,n){try{n()}catch(o){Fe(e,t,o)}}var Qc=!1;function Tm(e,t){if(Oi=Ro,e=Ta(),Ci(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var s=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var d=0,h=-1,y=-1,_=0,A=0,D=e,F=null;t:for(;;){for(var H;D!==n||s!==0&&D.nodeType!==3||(h=d+s),D!==a||o!==0&&D.nodeType!==3||(y=d+o),D.nodeType===3&&(d+=D.nodeValue.length),(H=D.firstChild)!==null;)F=D,D=H;for(;;){if(D===e)break t;if(F===n&&++_===s&&(h=d),F===a&&++A===o&&(y=d),(H=D.nextSibling)!==null)break;D=F,F=D.parentNode}D=H}n=h===-1||y===-1?null:{start:h,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(ji={focusedElem:e,selectionRange:n},Ro=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var q=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(q!==null){var Q=q.memoizedProps,De=q.memoizedState,T=t.stateNode,w=T.getSnapshotBeforeUpdate(t.elementType===t.type?Q:Lt(t.type,Q),De);T.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var N=t.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(M){Fe(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return q=Qc,Qc=!1,q}function Yr(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&e)===e){var a=s.destroy;s.destroy=void 0,a!==void 0&&Ss(t,n,a)}s=s.next}while(s!==o)}}function sl(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function ks(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,typeof t=="function"?t(e):t.current=e}}function Kc(e){var t=e.alternate;t!==null&&(e.alternate=null,Kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[At],delete t[zr],delete t[bi],delete t[sm],delete t[um])),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 Gc(e){return e.tag===5||e.tag===3||e.tag===4}function Xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(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 xs(e,t,n){var o=e.tag;if(o===5||o===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=Mo));else if(o!==4&&(e=e.child,e!==null))for(xs(e,t,n),e=e.sibling;e!==null;)xs(e,t,n),e=e.sibling}function Es(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}var We=null,Pt=!1;function fn(e,t,n){for(n=n.child;n!==null;)Yc(e,t,n),n=n.sibling}function Yc(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(So,n)}catch{}switch(n.tag){case 5:Xe||ur(n,t);case 6:var o=We,s=Pt;We=null,fn(e,t,n),We=o,Pt=s,We!==null&&(Pt?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Pt?(e=We,n=n.stateNode,e.nodeType===8?Di(e.parentNode,n):e.nodeType===1&&Di(e,n),Pr(e)):Di(We,n.stateNode));break;case 4:o=We,s=Pt,We=n.stateNode.containerInfo,Pt=!0,fn(e,t,n),We=o,Pt=s;break;case 0:case 11:case 14:case 15:if(!Xe&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){s=o=o.next;do{var a=s,d=a.destroy;a=a.tag,d!==void 0&&((a&2)!==0||(a&4)!==0)&&Ss(n,t,d),s=s.next}while(s!==o)}fn(e,t,n);break;case 1:if(!Xe&&(ur(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(h){Fe(n,t,h)}fn(e,t,n);break;case 21:fn(e,t,n);break;case 22:n.mode&1?(Xe=(o=Xe)||n.memoizedState!==null,fn(e,t,n),Xe=o):fn(e,t,n);break;default:fn(e,t,n)}}function Jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cm),t.forEach(function(o){var s=Fm.bind(null,e,o);n.has(o)||(n.add(o),o.then(s,s))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var o=0;os&&(s=d),o&=~a}if(o=s,o=Ae()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Nm(o/1960))-o,10e?16:e,pn===null)var o=!1;else{if(e=pn,pn=null,dl=0,(ge&6)!==0)throw Error(i(331));var s=ge;for(ge|=4,W=e.current;W!==null;){var a=W,d=a.child;if((W.flags&16)!==0){var h=a.deletions;if(h!==null){for(var y=0;yAe()-Rs?Un(e,0):Ts|=n),it(e,t)}function df(e,t){t===0&&((e.mode&1)===0?t=1:(t=xo,xo<<=1,(xo&130023424)===0&&(xo=4194304)));var n=tt();e=Vt(e,t),e!==null&&(Cr(e,t,n),it(e,n))}function jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),df(e,n)}function Fm(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}o!==null&&o.delete(t),df(e,n)}var pf;pf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)ot=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ot=!1,km(e,t,n);ot=(e.flags&131072)!==0}else ot=!1,_e&&(t.flags&1048576)!==0&&Wa(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ll(e,t),e=t.pendingProps;var s=Zn(t,Qe.current);lr(t,n),s=rs(null,t,o,e,s,n);var a=os();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(o)?(a=!0,Bo(t)):a=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Xi(t),s.updater=rl,t.stateNode=s,s._reactInternals=t,cs(t,o,e,n),t=ms(null,t,o,!0,a,n)):(t.tag=0,_e&&a&&zi(t),et(null,t,s,n),t=t.child),t;case 16:o=t.elementType;e:{switch(ll(e,t),e=t.pendingProps,s=o._init,o=s(o._payload),t.type=o,s=t.tag=Dm(o),e=Lt(o,e),s){case 0:t=ps(null,t,o,e,n);break e;case 1:t=Mc(null,t,o,e,n);break e;case 11:t=jc(null,t,o,e,n);break e;case 14:t=Fc(null,t,o,Lt(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Lt(o,s),ps(e,t,o,s,n);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Lt(o,s),Mc(e,t,o,s,n);case 3:e:{if(Ic(t),e===null)throw Error(i(387));o=t.pendingProps,a=t.memoizedState,s=a.element,ec(e,t),Xo(t,o,null,n);var d=t.memoizedState;if(o=d.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){s=sr(Error(i(423)),t),t=zc(e,t,o,n,s);break e}else if(o!==s){s=sr(Error(i(424)),t),t=zc(e,t,o,n,s);break e}else for(dt=on(t.stateNode.containerInfo.firstChild),ft=t,_e=!0,Nt=null,n=Ja(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nr(),o===s){t=qt(e,t,n);break e}et(e,t,o,n)}t=t.child}return t;case 5:return rc(t),e===null&&Hi(t),o=t.type,s=t.pendingProps,a=e!==null?e.memoizedProps:null,d=s.children,Fi(o,s)?d=null:a!==null&&Fi(o,a)&&(t.flags|=32),bc(e,t),et(e,t,d,n),t.child;case 6:return e===null&&Hi(t),null;case 13:return Bc(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=rr(t,null,o,n):et(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Lt(o,s),jc(e,t,o,s,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,a=t.memoizedProps,d=s.value,Re(Qo,o._currentValue),o._currentValue=d,a!==null)if(Rt(a.value,d)){if(a.children===s.children&&!nt.current){t=qt(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var h=a.dependencies;if(h!==null){d=a.child;for(var y=h.firstContext;y!==null;){if(y.context===o){if(a.tag===1){y=Wt(-1,n&-n),y.tag=2;var _=a.updateQueue;if(_!==null){_=_.shared;var A=_.pending;A===null?y.next=y:(y.next=A.next,A.next=y),_.pending=y}}a.lanes|=n,y=a.alternate,y!==null&&(y.lanes|=n),Ki(a.return,n,t),h.lanes|=n;break}y=y.next}}else if(a.tag===10)d=a.type===t.type?null:a.child;else if(a.tag===18){if(d=a.return,d===null)throw Error(i(341));d.lanes|=n,h=d.alternate,h!==null&&(h.lanes|=n),Ki(d,n,t),d=a.sibling}else d=a.child;if(d!==null)d.return=a;else for(d=a;d!==null;){if(d===t){d=null;break}if(a=d.sibling,a!==null){a.return=d.return,d=a;break}d=d.return}a=d}et(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=t.pendingProps.children,lr(t,n),s=wt(s),o=o(s),t.flags|=1,et(e,t,o,n),t.child;case 14:return o=t.type,s=Lt(o,t.pendingProps),s=Lt(o.type,s),Fc(e,t,o,s,n);case 15:return Ac(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Lt(o,s),ll(e,t),t.tag=1,rt(o)?(e=!0,Bo(t)):e=!1,lr(t,n),Rc(t,o,s),cs(t,o,s,n),ms(null,t,o,!0,e,n);case 19:return Hc(e,t,n);case 22:return Dc(e,t,n)}throw Error(i(156,t.tag))};function mf(e,t){return qu(e,t)}function Am(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,n,o){return new Am(e,t,n,o)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dm(e){if(typeof e=="function")return Fs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ae)return 11;if(e===ke)return 14}return 2}function gn(e,t){var n=e.alternate;return n===null?(n=xt(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 gl(e,t,n,o,s,a){var d=2;if(o=e,typeof e=="function")Fs(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case te:return jn(n.children,s,a,t);case se:d=8,s|=8;break;case ce:return e=xt(12,n,t,s|2),e.elementType=ce,e.lanes=a,e;case le:return e=xt(13,n,t,s),e.elementType=le,e.lanes=a,e;case ye:return e=xt(19,n,t,s),e.elementType=ye,e.lanes=a,e;case ie:return yl(n,s,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case we:d=10;break e;case Ne:d=9;break e;case ae:d=11;break e;case ke:d=14;break e;case de:d=16,o=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=xt(d,n,t,s),t.elementType=e,t.type=o,t.lanes=a,t}function jn(e,t,n,o){return e=xt(7,e,o,t),e.lanes=n,e}function yl(e,t,n,o){return e=xt(22,e,o,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function As(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function Ds(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function bm(e,t,n,o,s){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=ai(0),this.expirationTimes=ai(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ai(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function bs(e,t,n,o,s,a,d,h,y){return e=new bm(e,t,n,h,y),t===1?(t=1,a===!0&&(t|=8)):t=0,a=xt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xi(a),e}function Mm(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),Hs.exports=Xm(),Hs.exports}var Lf;function Ym(){if(Lf)return Cl;Lf=1;var r=td();return Cl.createRoot=r.createRoot,Cl.hydrateRoot=r.hydrateRoot,Cl}var Jm=Ym();const Zm=ed(Jm);function nd(r,l){return function(){return r.apply(l,arguments)}}const{toString:eh}=Object.prototype,{getPrototypeOf:hu}=Object,{iterator:Il,toStringTag:rd}=Symbol,zl=(r=>l=>{const i=eh.call(l);return r[i]||(r[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Ot=r=>(r=r.toLowerCase(),l=>zl(l)===r),Bl=r=>l=>typeof l===r,{isArray:pr}=Array,dr=Bl("undefined");function uo(r){return r!==null&&!dr(r)&&r.constructor!==null&&!dr(r.constructor)&&ut(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const od=Ot("ArrayBuffer");function th(r){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(r):l=r&&r.buffer&&od(r.buffer),l}const nh=Bl("string"),ut=Bl("function"),ld=Bl("number"),ao=r=>r!==null&&typeof r=="object",rh=r=>r===!0||r===!1,Pl=r=>{if(zl(r)!=="object")return!1;const l=hu(r);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(rd in r)&&!(Il in r)},oh=r=>{if(!ao(r)||uo(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},lh=Ot("Date"),ih=Ot("File"),sh=Ot("Blob"),uh=Ot("FileList"),ah=r=>ao(r)&&ut(r.pipe),ch=r=>{let l;return r&&(typeof FormData=="function"&&r instanceof FormData||ut(r.append)&&((l=zl(r))==="formdata"||l==="object"&&ut(r.toString)&&r.toString()==="[object FormData]"))},fh=Ot("URLSearchParams"),[dh,ph,mh,hh]=["ReadableStream","Request","Response","Headers"].map(Ot),gh=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function co(r,l,{allOwnKeys:i=!1}={}){if(r===null||typeof r>"u")return;let u,c;if(typeof r!="object"&&(r=[r]),pr(r))for(u=0,c=r.length;u0;)if(c=i[u],l===c.toLowerCase())return c;return null}const An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sd=r=>!dr(r)&&r!==An;function ru(){const{caseless:r,skipUndefined:l}=sd(this)&&this||{},i={},u=(c,f)=>{const p=r&&id(i,f)||f;Pl(i[p])&&Pl(c)?i[p]=ru(i[p],c):Pl(c)?i[p]=ru({},c):pr(c)?i[p]=c.slice():(!l||!dr(c))&&(i[p]=c)};for(let c=0,f=arguments.length;c(co(l,(c,f)=>{i&&ut(c)?r[f]=nd(c,i):r[f]=c},{allOwnKeys:u}),r),vh=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),wh=(r,l,i,u)=>{r.prototype=Object.create(l.prototype,u),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:l.prototype}),i&&Object.assign(r.prototype,i)},Sh=(r,l,i,u)=>{let c,f,p;const m={};if(l=l||{},r==null)return l;do{for(c=Object.getOwnPropertyNames(r),f=c.length;f-- >0;)p=c[f],(!u||u(p,r,l))&&!m[p]&&(l[p]=r[p],m[p]=!0);r=i!==!1&&hu(r)}while(r&&(!i||i(r,l))&&r!==Object.prototype);return l},kh=(r,l,i)=>{r=String(r),(i===void 0||i>r.length)&&(i=r.length),i-=l.length;const u=r.indexOf(l,i);return u!==-1&&u===i},xh=r=>{if(!r)return null;if(pr(r))return r;let l=r.length;if(!ld(l))return null;const i=new Array(l);for(;l-- >0;)i[l]=r[l];return i},Eh=(r=>l=>r&&l instanceof r)(typeof Uint8Array<"u"&&hu(Uint8Array)),Ch=(r,l)=>{const u=(r&&r[Il]).call(r);let c;for(;(c=u.next())&&!c.done;){const f=c.value;l.call(r,f[0],f[1])}},Th=(r,l)=>{let i;const u=[];for(;(i=r.exec(l))!==null;)u.push(i);return u},Rh=Ot("HTMLFormElement"),Nh=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,u,c){return u.toUpperCase()+c}),Pf=(({hasOwnProperty:r})=>(l,i)=>r.call(l,i))(Object.prototype),Lh=Ot("RegExp"),ud=(r,l)=>{const i=Object.getOwnPropertyDescriptors(r),u={};co(i,(c,f)=>{let p;(p=l(c,f,r))!==!1&&(u[f]=p||c)}),Object.defineProperties(r,u)},Ph=r=>{ud(r,(l,i)=>{if(ut(r)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const u=r[i];if(ut(u)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},_h=(r,l)=>{const i={},u=c=>{c.forEach(f=>{i[f]=!0})};return pr(r)?u(r):u(String(r).split(l)),i},Uh=()=>{},Oh=(r,l)=>r!=null&&Number.isFinite(r=+r)?r:l;function jh(r){return!!(r&&ut(r.append)&&r[rd]==="FormData"&&r[Il])}const Fh=r=>{const l=new Array(10),i=(u,c)=>{if(ao(u)){if(l.indexOf(u)>=0)return;if(uo(u))return u;if(!("toJSON"in u)){l[c]=u;const f=pr(u)?[]:{};return co(u,(p,m)=>{const g=i(p,c+1);!dr(g)&&(f[m]=g)}),l[c]=void 0,f}}return u};return i(r,0)},Ah=Ot("AsyncFunction"),Dh=r=>r&&(ao(r)||ut(r))&&ut(r.then)&&ut(r.catch),ad=((r,l)=>r?setImmediate:l?((i,u)=>(An.addEventListener("message",({source:c,data:f})=>{c===An&&f===i&&u.length&&u.shift()()},!1),c=>{u.push(c),An.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",ut(An.postMessage)),bh=typeof queueMicrotask<"u"?queueMicrotask.bind(An):typeof process<"u"&&process.nextTick||ad,Mh=r=>r!=null&&ut(r[Il]),U={isArray:pr,isArrayBuffer:od,isBuffer:uo,isFormData:ch,isArrayBufferView:th,isString:nh,isNumber:ld,isBoolean:rh,isObject:ao,isPlainObject:Pl,isEmptyObject:oh,isReadableStream:dh,isRequest:ph,isResponse:mh,isHeaders:hh,isUndefined:dr,isDate:lh,isFile:ih,isBlob:sh,isRegExp:Lh,isFunction:ut,isStream:ah,isURLSearchParams:fh,isTypedArray:Eh,isFileList:uh,forEach:co,merge:ru,extend:yh,trim:gh,stripBOM:vh,inherits:wh,toFlatObject:Sh,kindOf:zl,kindOfTest:Ot,endsWith:kh,toArray:xh,forEachEntry:Ch,matchAll:Th,isHTMLForm:Rh,hasOwnProperty:Pf,hasOwnProp:Pf,reduceDescriptors:ud,freezeMethods:Ph,toObjectSet:_h,toCamelCase:Nh,noop:Uh,toFiniteNumber:Oh,findKey:id,global:An,isContextDefined:sd,isSpecCompliantForm:jh,toJSONObject:Fh,isAsyncFn:Ah,isThenable:Dh,setImmediate:ad,asap:bh,isIterable:Mh};function ue(r,l,i,u,c){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",l&&(this.code=l),i&&(this.config=i),u&&(this.request=u),c&&(this.response=c,this.status=c.status?c.status:null)}U.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.status}}});const cd=ue.prototype,fd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{fd[r]={value:r}});Object.defineProperties(ue,fd);Object.defineProperty(cd,"isAxiosError",{value:!0});ue.from=(r,l,i,u,c,f)=>{const p=Object.create(cd);U.toFlatObject(r,p,function(v){return v!==Error.prototype},S=>S!=="isAxiosError");const m=r&&r.message?r.message:"Error",g=l==null&&r?r.code:l;return ue.call(p,m,g,i,u,c),r&&p.cause==null&&Object.defineProperty(p,"cause",{value:r,configurable:!0}),p.name=r&&r.name||"Error",f&&Object.assign(p,f),p};const Ih=null;function ou(r){return U.isPlainObject(r)||U.isArray(r)}function dd(r){return U.endsWith(r,"[]")?r.slice(0,-2):r}function _f(r,l,i){return r?r.concat(l).map(function(c,f){return c=dd(c),!i&&f?"["+c+"]":c}).join(i?".":""):l}function zh(r){return U.isArray(r)&&!r.some(ou)}const Bh=U.toFlatObject(U,{},null,function(l){return/^is[A-Z]/.test(l)});function $l(r,l,i){if(!U.isObject(r))throw new TypeError("target must be an object");l=l||new FormData,i=U.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,E){return!U.isUndefined(E[C])});const u=i.metaTokens,c=i.visitor||v,f=i.dots,p=i.indexes,g=(i.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(l);if(!U.isFunction(c))throw new TypeError("visitor must be a function");function S(x){if(x===null)return"";if(U.isDate(x))return x.toISOString();if(U.isBoolean(x))return x.toString();if(!g&&U.isBlob(x))throw new ue("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(x)||U.isTypedArray(x)?g&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function v(x,C,E){let B=x;if(x&&!E&&typeof x=="object"){if(U.endsWith(C,"{}"))C=u?C:C.slice(0,-2),x=JSON.stringify(x);else if(U.isArray(x)&&zh(x)||(U.isFileList(x)||U.endsWith(C,"[]"))&&(B=U.toArray(x)))return C=dd(C),B.forEach(function(z,V){!(U.isUndefined(z)||z===null)&&l.append(p===!0?_f([C],V,f):p===null?C:C+"[]",S(z))}),!1}return ou(x)?!0:(l.append(_f(E,C,f),S(x)),!1)}const P=[],j=Object.assign(Bh,{defaultVisitor:v,convertValue:S,isVisitable:ou});function b(x,C){if(!U.isUndefined(x)){if(P.indexOf(x)!==-1)throw Error("Circular reference detected in "+C.join("."));P.push(x),U.forEach(x,function(B,Y){(!(U.isUndefined(B)||B===null)&&c.call(l,B,U.isString(Y)?Y.trim():Y,C,j))===!0&&b(B,C?C.concat(Y):[Y])}),P.pop()}}if(!U.isObject(r))throw new TypeError("data must be an object");return b(r),l}function Uf(r){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(u){return l[u]})}function gu(r,l){this._pairs=[],r&&$l(r,this,l)}const pd=gu.prototype;pd.append=function(l,i){this._pairs.push([l,i])};pd.toString=function(l){const i=l?function(u){return l.call(this,u,Uf)}:Uf;return this._pairs.map(function(c){return i(c[0])+"="+i(c[1])},"").join("&")};function $h(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function md(r,l,i){if(!l)return r;const u=i&&i.encode||$h;U.isFunction(i)&&(i={serialize:i});const c=i&&i.serialize;let f;if(c?f=c(l,i):f=U.isURLSearchParams(l)?l.toString():new gu(l,i).toString(u),f){const p=r.indexOf("#");p!==-1&&(r=r.slice(0,p)),r+=(r.indexOf("?")===-1?"?":"&")+f}return r}class Of{constructor(){this.handlers=[]}use(l,i,u){return this.handlers.push({fulfilled:l,rejected:i,synchronous:u?u.synchronous:!1,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){U.forEach(this.handlers,function(u){u!==null&&l(u)})}}const hd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hh=typeof URLSearchParams<"u"?URLSearchParams:gu,Vh=typeof FormData<"u"?FormData:null,Wh=typeof Blob<"u"?Blob:null,qh={isBrowser:!0,classes:{URLSearchParams:Hh,FormData:Vh,Blob:Wh},protocols:["http","https","file","blob","url","data"]},yu=typeof window<"u"&&typeof document<"u",lu=typeof navigator=="object"&&navigator||void 0,Qh=yu&&(!lu||["ReactNative","NativeScript","NS"].indexOf(lu.product)<0),Kh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gh=yu&&window.location.href||"http://localhost",Xh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yu,hasStandardBrowserEnv:Qh,hasStandardBrowserWebWorkerEnv:Kh,navigator:lu,origin:Gh},Symbol.toStringTag,{value:"Module"})),Ye={...Xh,...qh};function Yh(r,l){return $l(r,new Ye.classes.URLSearchParams,{visitor:function(i,u,c,f){return Ye.isNode&&U.isBuffer(i)?(this.append(u,i.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...l})}function Jh(r){return U.matchAll(/\w+|\[(\w*)]/g,r).map(l=>l[0]==="[]"?"":l[1]||l[0])}function Zh(r){const l={},i=Object.keys(r);let u;const c=i.length;let f;for(u=0;u=i.length;return p=!p&&U.isArray(c)?c.length:p,g?(U.hasOwnProp(c,p)?c[p]=[c[p],u]:c[p]=u,!m):((!c[p]||!U.isObject(c[p]))&&(c[p]=[]),l(i,u,c[p],f)&&U.isArray(c[p])&&(c[p]=Zh(c[p])),!m)}if(U.isFormData(r)&&U.isFunction(r.entries)){const i={};return U.forEachEntry(r,(u,c)=>{l(Jh(u),c,i,0)}),i}return null}function eg(r,l,i){if(U.isString(r))try{return(l||JSON.parse)(r),U.trim(r)}catch(u){if(u.name!=="SyntaxError")throw u}return(i||JSON.stringify)(r)}const fo={transitional:hd,adapter:["xhr","http","fetch"],transformRequest:[function(l,i){const u=i.getContentType()||"",c=u.indexOf("application/json")>-1,f=U.isObject(l);if(f&&U.isHTMLForm(l)&&(l=new FormData(l)),U.isFormData(l))return c?JSON.stringify(gd(l)):l;if(U.isArrayBuffer(l)||U.isBuffer(l)||U.isStream(l)||U.isFile(l)||U.isBlob(l)||U.isReadableStream(l))return l;if(U.isArrayBufferView(l))return l.buffer;if(U.isURLSearchParams(l))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let m;if(f){if(u.indexOf("application/x-www-form-urlencoded")>-1)return Yh(l,this.formSerializer).toString();if((m=U.isFileList(l))||u.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return $l(m?{"files[]":l}:l,g&&new g,this.formSerializer)}}return f||c?(i.setContentType("application/json",!1),eg(l)):l}],transformResponse:[function(l){const i=this.transitional||fo.transitional,u=i&&i.forcedJSONParsing,c=this.responseType==="json";if(U.isResponse(l)||U.isReadableStream(l))return l;if(l&&U.isString(l)&&(u&&!this.responseType||c)){const p=!(i&&i.silentJSONParsing)&&c;try{return JSON.parse(l,this.parseReviver)}catch(m){if(p)throw m.name==="SyntaxError"?ue.from(m,ue.ERR_BAD_RESPONSE,this,null,this.response):m}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ye.classes.FormData,Blob:Ye.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],r=>{fo.headers[r]={}});const tg=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ng=r=>{const l={};let i,u,c;return r&&r.split(` `).forEach(function(p){c=p.indexOf(":"),i=p.substring(0,c).trim().toLowerCase(),u=p.substring(c+1).trim(),!(!i||l[i]&&tg[i])&&(i==="set-cookie"?l[i]?l[i].push(u):l[i]=[u]:l[i]=l[i]?l[i]+", "+u:u)}),l},jf=Symbol("internals");function ro(r){return r&&String(r).trim().toLowerCase()}function _l(r){return r===!1||r==null?r:U.isArray(r)?r.map(_l):String(r)}function rg(r){const l=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let u;for(;u=i.exec(r);)l[u[1]]=u[2];return l}const og=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function qs(r,l,i,u,c){if(U.isFunction(u))return u.call(this,l,i);if(c&&(l=i),!!U.isString(l)){if(U.isString(u))return l.indexOf(u)!==-1;if(U.isRegExp(u))return u.test(l)}}function lg(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,i,u)=>i.toUpperCase()+u)}function ig(r,l){const i=U.toCamelCase(" "+l);["get","set","has"].forEach(u=>{Object.defineProperty(r,u+i,{value:function(c,f,p){return this[u].call(this,l,c,f,p)},configurable:!0})})}let at=class{constructor(l){l&&this.set(l)}set(l,i,u){const c=this;function f(m,g,S){const v=ro(g);if(!v)throw new Error("header name must be a non-empty string");const P=U.findKey(c,v);(!P||c[P]===void 0||S===!0||S===void 0&&c[P]!==!1)&&(c[P||g]=_l(m))}const p=(m,g)=>U.forEach(m,(S,v)=>f(S,v,g));if(U.isPlainObject(l)||l instanceof this.constructor)p(l,i);else if(U.isString(l)&&(l=l.trim())&&!og(l))p(ng(l),i);else if(U.isObject(l)&&U.isIterable(l)){let m={},g,S;for(const v of l){if(!U.isArray(v))throw TypeError("Object iterator must return a key-value pair");m[S=v[0]]=(g=m[S])?U.isArray(g)?[...g,v[1]]:[g,v[1]]:v[1]}p(m,i)}else l!=null&&f(i,l,u);return this}get(l,i){if(l=ro(l),l){const u=U.findKey(this,l);if(u){const c=this[u];if(!i)return c;if(i===!0)return rg(c);if(U.isFunction(i))return i.call(this,c,u);if(U.isRegExp(i))return i.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,i){if(l=ro(l),l){const u=U.findKey(this,l);return!!(u&&this[u]!==void 0&&(!i||qs(this,this[u],u,i)))}return!1}delete(l,i){const u=this;let c=!1;function f(p){if(p=ro(p),p){const m=U.findKey(u,p);m&&(!i||qs(u,u[m],m,i))&&(delete u[m],c=!0)}}return U.isArray(l)?l.forEach(f):f(l),c}clear(l){const i=Object.keys(this);let u=i.length,c=!1;for(;u--;){const f=i[u];(!l||qs(this,this[f],f,l,!0))&&(delete this[f],c=!0)}return c}normalize(l){const i=this,u={};return U.forEach(this,(c,f)=>{const p=U.findKey(u,f);if(p){i[p]=_l(c),delete i[f];return}const m=l?lg(f):String(f).trim();m!==f&&delete i[f],i[m]=_l(c),u[m]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const i=Object.create(null);return U.forEach(this,(u,c)=>{u!=null&&u!==!1&&(i[c]=l&&U.isArray(u)?u.join(", "):u)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,i])=>l+": "+i).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...i){const u=new this(l);return i.forEach(c=>u.set(c)),u}static accessor(l){const u=(this[jf]=this[jf]={accessors:{}}).accessors,c=this.prototype;function f(p){const m=ro(p);u[m]||(ig(c,p),u[m]=!0)}return U.isArray(l)?l.forEach(f):f(l),this}};at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(at.prototype,({value:r},l)=>{let i=l[0].toUpperCase()+l.slice(1);return{get:()=>r,set(u){this[i]=u}}});U.freezeMethods(at);function Qs(r,l){const i=this||fo,u=l||i,c=at.from(u.headers);let f=u.data;return U.forEach(r,function(m){f=m.call(i,f,c.normalize(),l?l.status:void 0)}),c.normalize(),f}function yd(r){return!!(r&&r.__CANCEL__)}function mr(r,l,i){ue.call(this,r??"canceled",ue.ERR_CANCELED,l,i),this.name="CanceledError"}U.inherits(mr,ue,{__CANCEL__:!0});function vd(r,l,i){const u=i.config.validateStatus;!i.status||!u||u(i.status)?r(i):l(new ue("Request failed with status code "+i.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function sg(r){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return l&&l[1]||""}function ug(r,l){r=r||10;const i=new Array(r),u=new Array(r);let c=0,f=0,p;return l=l!==void 0?l:1e3,function(g){const S=Date.now(),v=u[f];p||(p=S),i[c]=g,u[c]=S;let P=f,j=0;for(;P!==c;)j+=i[P++],P=P%r;if(c=(c+1)%r,c===f&&(f=(f+1)%r),S-p{i=v,c=null,f&&(clearTimeout(f),f=null),r(...S)};return[(...S)=>{const v=Date.now(),P=v-i;P>=u?p(S,v):(c=S,f||(f=setTimeout(()=>{f=null,p(c)},u-P)))},()=>c&&p(c)]}const jl=(r,l,i=3)=>{let u=0;const c=ug(50,250);return ag(f=>{const p=f.loaded,m=f.lengthComputable?f.total:void 0,g=p-u,S=c(g),v=p<=m;u=p;const P={loaded:p,total:m,progress:m?p/m:void 0,bytes:g,rate:S||void 0,estimated:S&&m&&v?(m-p)/S:void 0,event:f,lengthComputable:m!=null,[l?"download":"upload"]:!0};r(P)},i)},Ff=(r,l)=>{const i=r!=null;return[u=>l[0]({lengthComputable:i,total:r,loaded:u}),l[1]]},Af=r=>(...l)=>U.asap(()=>r(...l)),cg=Ye.hasStandardBrowserEnv?((r,l)=>i=>(i=new URL(i,Ye.origin),r.protocol===i.protocol&&r.host===i.host&&(l||r.port===i.port)))(new URL(Ye.origin),Ye.navigator&&/(msie|trident)/i.test(Ye.navigator.userAgent)):()=>!0,fg=Ye.hasStandardBrowserEnv?{write(r,l,i,u,c,f,p){if(typeof document>"u")return;const m=[`${r}=${encodeURIComponent(l)}`];U.isNumber(i)&&m.push(`expires=${new Date(i).toUTCString()}`),U.isString(u)&&m.push(`path=${u}`),U.isString(c)&&m.push(`domain=${c}`),f===!0&&m.push("secure"),U.isString(p)&&m.push(`SameSite=${p}`),document.cookie=m.join("; ")},read(r){if(typeof document>"u")return null;const l=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return l?decodeURIComponent(l[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dg(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function pg(r,l){return l?r.replace(/\/?\/$/,"")+"/"+l.replace(/^\/+/,""):r}function wd(r,l,i){let u=!dg(l);return r&&(u||i==!1)?pg(r,l):l}const Df=r=>r instanceof at?{...r}:r;function In(r,l){l=l||{};const i={};function u(S,v,P,j){return U.isPlainObject(S)&&U.isPlainObject(v)?U.merge.call({caseless:j},S,v):U.isPlainObject(v)?U.merge({},v):U.isArray(v)?v.slice():v}function c(S,v,P,j){if(U.isUndefined(v)){if(!U.isUndefined(S))return u(void 0,S,P,j)}else return u(S,v,P,j)}function f(S,v){if(!U.isUndefined(v))return u(void 0,v)}function p(S,v){if(U.isUndefined(v)){if(!U.isUndefined(S))return u(void 0,S)}else return u(void 0,v)}function m(S,v,P){if(P in l)return u(S,v);if(P in r)return u(void 0,S)}const g={url:f,method:f,data:f,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:m,headers:(S,v,P)=>c(Df(S),Df(v),P,!0)};return U.forEach(Object.keys({...r,...l}),function(v){const P=g[v]||c,j=P(r[v],l[v],v);U.isUndefined(j)&&P!==m||(i[v]=j)}),i}const Sd=r=>{const l=In({},r);let{data:i,withXSRFToken:u,xsrfHeaderName:c,xsrfCookieName:f,headers:p,auth:m}=l;if(l.headers=p=at.from(p),l.url=md(wd(l.baseURL,l.url,l.allowAbsoluteUrls),r.params,r.paramsSerializer),m&&p.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):""))),U.isFormData(i)){if(Ye.hasStandardBrowserEnv||Ye.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(U.isFunction(i.getHeaders)){const g=i.getHeaders(),S=["content-type","content-length"];Object.entries(g).forEach(([v,P])=>{S.includes(v.toLowerCase())&&p.set(v,P)})}}if(Ye.hasStandardBrowserEnv&&(u&&U.isFunction(u)&&(u=u(l)),u||u!==!1&&cg(l.url))){const g=c&&f&&fg.read(f);g&&p.set(c,g)}return l},mg=typeof XMLHttpRequest<"u",hg=mg&&function(r){return new Promise(function(i,u){const c=Sd(r);let f=c.data;const p=at.from(c.headers).normalize();let{responseType:m,onUploadProgress:g,onDownloadProgress:S}=c,v,P,j,b,x;function C(){b&&b(),x&&x(),c.cancelToken&&c.cancelToken.unsubscribe(v),c.signal&&c.signal.removeEventListener("abort",v)}let E=new XMLHttpRequest;E.open(c.method.toUpperCase(),c.url,!0),E.timeout=c.timeout;function B(){if(!E)return;const z=at.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),ne={data:!m||m==="text"||m==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:z,config:r,request:E};vd(function(te){i(te),C()},function(te){u(te),C()},ne),E=null}"onloadend"in E?E.onloadend=B:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(B)},E.onabort=function(){E&&(u(new ue("Request aborted",ue.ECONNABORTED,r,E)),E=null)},E.onerror=function(V){const ne=V&&V.message?V.message:"Network Error",G=new ue(ne,ue.ERR_NETWORK,r,E);G.event=V||null,u(G),E=null},E.ontimeout=function(){let V=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const ne=c.transitional||hd;c.timeoutErrorMessage&&(V=c.timeoutErrorMessage),u(new ue(V,ne.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,r,E)),E=null},f===void 0&&p.setContentType(null),"setRequestHeader"in E&&U.forEach(p.toJSON(),function(V,ne){E.setRequestHeader(ne,V)}),U.isUndefined(c.withCredentials)||(E.withCredentials=!!c.withCredentials),m&&m!=="json"&&(E.responseType=c.responseType),S&&([j,x]=jl(S,!0),E.addEventListener("progress",j)),g&&E.upload&&([P,b]=jl(g),E.upload.addEventListener("progress",P),E.upload.addEventListener("loadend",b)),(c.cancelToken||c.signal)&&(v=z=>{E&&(u(!z||z.type?new mr(null,r,E):z),E.abort(),E=null)},c.cancelToken&&c.cancelToken.subscribe(v),c.signal&&(c.signal.aborted?v():c.signal.addEventListener("abort",v)));const Y=sg(c.url);if(Y&&Ye.protocols.indexOf(Y)===-1){u(new ue("Unsupported protocol "+Y+":",ue.ERR_BAD_REQUEST,r));return}E.send(f||null)})},gg=(r,l)=>{const{length:i}=r=r?r.filter(Boolean):[];if(l||i){let u=new AbortController,c;const f=function(S){if(!c){c=!0,m();const v=S instanceof Error?S:this.reason;u.abort(v instanceof ue?v:new mr(v instanceof Error?v.message:v))}};let p=l&&setTimeout(()=>{p=null,f(new ue(`timeout ${l} of ms exceeded`,ue.ETIMEDOUT))},l);const m=()=>{r&&(p&&clearTimeout(p),p=null,r.forEach(S=>{S.unsubscribe?S.unsubscribe(f):S.removeEventListener("abort",f)}),r=null)};r.forEach(S=>S.addEventListener("abort",f));const{signal:g}=u;return g.unsubscribe=()=>U.asap(m),g}},yg=function*(r,l){let i=r.byteLength;if(i{const c=vg(r,l);let f=0,p,m=g=>{p||(p=!0,u&&u(g))};return new ReadableStream({async pull(g){try{const{done:S,value:v}=await c.next();if(S){m(),g.close();return}let P=v.byteLength;if(i){let j=f+=P;i(j)}g.enqueue(new Uint8Array(v))}catch(S){throw m(S),S}},cancel(g){return m(g),c.return()}},{highWaterMark:2})},Mf=64*1024,{isFunction:Tl}=U,Sg=(({Request:r,Response:l})=>({Request:r,Response:l}))(U.global),{ReadableStream:If,TextEncoder:zf}=U.global,Bf=(r,...l)=>{try{return!!r(...l)}catch{return!1}},kg=r=>{r=U.merge.call({skipUndefined:!0},Sg,r);const{fetch:l,Request:i,Response:u}=r,c=l?Tl(l):typeof fetch=="function",f=Tl(i),p=Tl(u);if(!c)return!1;const m=c&&Tl(If),g=c&&(typeof zf=="function"?(x=>C=>x.encode(C))(new zf):async x=>new Uint8Array(await new i(x).arrayBuffer())),S=f&&m&&Bf(()=>{let x=!1;const C=new i(Ye.origin,{body:new If,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!C}),v=p&&m&&Bf(()=>U.isReadableStream(new u("").body)),P={stream:v&&(x=>x.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!P[x]&&(P[x]=(C,E)=>{let B=C&&C[x];if(B)return B.call(C);throw new ue(`Response type '${x}' is not supported`,ue.ERR_NOT_SUPPORT,E)})});const j=async x=>{if(x==null)return 0;if(U.isBlob(x))return x.size;if(U.isSpecCompliantForm(x))return(await new i(Ye.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(U.isArrayBufferView(x)||U.isArrayBuffer(x))return x.byteLength;if(U.isURLSearchParams(x)&&(x=x+""),U.isString(x))return(await g(x)).byteLength},b=async(x,C)=>{const E=U.toFiniteNumber(x.getContentLength());return E??j(C)};return async x=>{let{url:C,method:E,data:B,signal:Y,cancelToken:z,timeout:V,onDownloadProgress:ne,onUploadProgress:G,responseType:te,headers:se,withCredentials:ce="same-origin",fetchOptions:we}=Sd(x),Ne=l||fetch;te=te?(te+"").toLowerCase():"text";let ae=gg([Y,z&&z.toAbortSignal()],V),le=null;const ye=ae&&ae.unsubscribe&&(()=>{ae.unsubscribe()});let ke;try{if(G&&S&&E!=="get"&&E!=="head"&&(ke=await b(se,B))!==0){let k=new i(C,{method:"POST",body:B,duplex:"half"}),O;if(U.isFormData(B)&&(O=k.headers.get("content-type"))&&se.setContentType(O),k.body){const[oe,J]=Ff(ke,jl(Af(G)));B=bf(k.body,Mf,oe,J)}}U.isString(ce)||(ce=ce?"include":"omit");const de=f&&"credentials"in i.prototype,ie={...we,signal:ae,method:E.toUpperCase(),headers:se.normalize().toJSON(),body:B,duplex:"half",credentials:de?ce:void 0};le=f&&new i(C,ie);let I=await(f?Ne(le,we):Ne(C,ie));const X=v&&(te==="stream"||te==="response");if(v&&(ne||X&&ye)){const k={};["status","statusText","headers"].forEach(me=>{k[me]=I[me]});const O=U.toFiniteNumber(I.headers.get("content-length")),[oe,J]=ne&&Ff(O,jl(Af(ne),!0))||[];I=new u(bf(I.body,Mf,oe,()=>{J&&J(),ye&&ye()}),k)}te=te||"text";let $=await P[U.findKey(P,te)||"text"](I,x);return!X&&ye&&ye(),await new Promise((k,O)=>{vd(k,O,{data:$,headers:at.from(I.headers),status:I.status,statusText:I.statusText,config:x,request:le})})}catch(de){throw ye&&ye(),de&&de.name==="TypeError"&&/Load failed|fetch/i.test(de.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,x,le),{cause:de.cause||de}):ue.from(de,de&&de.code,x,le)}}},xg=new Map,kd=r=>{let l=r&&r.env||{};const{fetch:i,Request:u,Response:c}=l,f=[u,c,i];let p=f.length,m=p,g,S,v=xg;for(;m--;)g=f[m],S=v.get(g),S===void 0&&v.set(g,S=m?new Map:kg(l)),v=S;return S};kd();const vu={http:Ih,xhr:hg,fetch:{get:kd}};U.forEach(vu,(r,l)=>{if(r){try{Object.defineProperty(r,"name",{value:l})}catch{}Object.defineProperty(r,"adapterName",{value:l})}});const $f=r=>`- ${r}`,Eg=r=>U.isFunction(r)||r===null||r===!1;function Cg(r,l){r=U.isArray(r)?r:[r];const{length:i}=r;let u,c;const f={};for(let p=0;p`adapter ${g} `+(S===!1?"is not supported by the environment":"is not available in the build"));let m=i?p.length>1?`since : `+p.map($f).join(` `):" "+$f(p[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+m,"ERR_NOT_SUPPORT")}return c}const xd={getAdapter:Cg,adapters:vu};function Ks(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new mr(null,r)}function Hf(r){return Ks(r),r.headers=at.from(r.headers),r.data=Qs.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),xd.getAdapter(r.adapter||fo.adapter,r)(r).then(function(u){return Ks(r),u.data=Qs.call(r,r.transformResponse,u),u.headers=at.from(u.headers),u},function(u){return yd(u)||(Ks(r),u&&u.response&&(u.response.data=Qs.call(r,r.transformResponse,u.response),u.response.headers=at.from(u.response.headers))),Promise.reject(u)})}const Ed="1.13.2",Hl={};["object","boolean","number","function","string","symbol"].forEach((r,l)=>{Hl[r]=function(u){return typeof u===r||"a"+(l<1?"n ":" ")+r}});const Vf={};Hl.transitional=function(l,i,u){function c(f,p){return"[Axios v"+Ed+"] Transitional option '"+f+"'"+p+(u?". "+u:"")}return(f,p,m)=>{if(l===!1)throw new ue(c(p," has been removed"+(i?" in "+i:"")),ue.ERR_DEPRECATED);return i&&!Vf[p]&&(Vf[p]=!0,console.warn(c(p," has been deprecated since v"+i+" and will be removed in the near future"))),l?l(f,p,m):!0}};Hl.spelling=function(l){return(i,u)=>(console.warn(`${u} is likely a misspelling of ${l}`),!0)};function Tg(r,l,i){if(typeof r!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const u=Object.keys(r);let c=u.length;for(;c-- >0;){const f=u[c],p=l[f];if(p){const m=r[f],g=m===void 0||p(m,f,r);if(g!==!0)throw new ue("option "+f+" must be "+g,ue.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new ue("Unknown option "+f,ue.ERR_BAD_OPTION)}}const Ul={assertOptions:Tg,validators:Hl},It=Ul.validators;let bn=class{constructor(l){this.defaults=l||{},this.interceptors={request:new Of,response:new Of}}async request(l,i){try{return await this._request(l,i)}catch(u){if(u instanceof Error){let c={};Error.captureStackTrace?Error.captureStackTrace(c):c=new Error;const f=c.stack?c.stack.replace(/^.+\n/,""):"";try{u.stack?f&&!String(u.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(u.stack+=` `+f):u.stack=f}catch{}}throw u}}_request(l,i){typeof l=="string"?(i=i||{},i.url=l):i=l||{},i=In(this.defaults,i);const{transitional:u,paramsSerializer:c,headers:f}=i;u!==void 0&&Ul.assertOptions(u,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean)},!1),c!=null&&(U.isFunction(c)?i.paramsSerializer={serialize:c}:Ul.assertOptions(c,{encode:It.function,serialize:It.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Ul.assertOptions(i,{baseUrl:It.spelling("baseURL"),withXsrfToken:It.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let p=f&&U.merge(f.common,f[i.method]);f&&U.forEach(["delete","get","head","post","put","patch","common"],x=>{delete f[x]}),i.headers=at.concat(p,f);const m=[];let g=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(i)===!1||(g=g&&C.synchronous,m.unshift(C.fulfilled,C.rejected))});const S=[];this.interceptors.response.forEach(function(C){S.push(C.fulfilled,C.rejected)});let v,P=0,j;if(!g){const x=[Hf.bind(this),void 0];for(x.unshift(...m),x.push(...S),j=x.length,v=Promise.resolve(i);P{if(!u._listeners)return;let f=u._listeners.length;for(;f-- >0;)u._listeners[f](c);u._listeners=null}),this.promise.then=c=>{let f;const p=new Promise(m=>{u.subscribe(m),f=m}).then(c);return p.cancel=function(){u.unsubscribe(f)},p},l(function(f,p,m){u.reason||(u.reason=new mr(f,p,m),i(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const i=this._listeners.indexOf(l);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const l=new AbortController,i=u=>{l.abort(u)};return this.subscribe(i),l.signal.unsubscribe=()=>this.unsubscribe(i),l.signal}static source(){let l;return{token:new Cd(function(c){l=c}),cancel:l}}};function Ng(r){return function(i){return r.apply(null,i)}}function Lg(r){return U.isObject(r)&&r.isAxiosError===!0}const iu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iu).forEach(([r,l])=>{iu[l]=r});function Td(r){const l=new bn(r),i=nd(bn.prototype.request,l);return U.extend(i,bn.prototype,l,{allOwnKeys:!0}),U.extend(i,l,null,{allOwnKeys:!0}),i.create=function(c){return Td(In(r,c))},i}const be=Td(fo);be.Axios=bn;be.CanceledError=mr;be.CancelToken=Rg;be.isCancel=yd;be.VERSION=Ed;be.toFormData=$l;be.AxiosError=ue;be.Cancel=be.CanceledError;be.all=function(l){return Promise.all(l)};be.spread=Ng;be.isAxiosError=Lg;be.mergeConfig=In;be.AxiosHeaders=at;be.formToJSON=r=>gd(U.isHTMLForm(r)?new FormData(r):r);be.getAdapter=xd.getAdapter;be.HttpStatusCode=iu;be.default=be;const{Axios:nv,AxiosError:rv,CanceledError:ov,isCancel:lv,CancelToken:iv,VERSION:sv,all:uv,Cancel:av,isAxiosError:cv,spread:fv,toFormData:dv,AxiosHeaders:pv,HttpStatusCode:mv,formToJSON:hv,getAdapter:gv,mergeConfig:yv}=be;var Pg=td(),_g=Object.defineProperty,Ug=(r,l,i)=>l in r?_g(r,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[l]=i,Gs=(r,l,i)=>(Ug(r,typeof l!="symbol"?l+"":l,i),i);let Og=class{constructor(){Gs(this,"current",this.detect()),Gs(this,"handoffState","pending"),Gs(this,"currentId",0)}set(l){this.current!==l&&(this.handoffState="pending",this.currentId=0,this.current=l)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Gt=new Og,Et=(r,l)=>{Gt.isServer?R.useEffect(r,l):R.useLayoutEffect(r,l)};function Xt(r){let l=R.useRef(r);return Et(()=>{l.current=r},[r]),l}let Ue=function(r){let l=Xt(r);return pe.useCallback((...i)=>l.current(...i),[l])};function Vl(r){typeof queueMicrotask=="function"?queueMicrotask(r):Promise.resolve().then(r).catch(l=>setTimeout(()=>{throw l}))}function zn(){let r=[],l={addEventListener(i,u,c,f){return i.addEventListener(u,c,f),l.add(()=>i.removeEventListener(u,c,f))},requestAnimationFrame(...i){let u=requestAnimationFrame(...i);return l.add(()=>cancelAnimationFrame(u))},nextFrame(...i){return l.requestAnimationFrame(()=>l.requestAnimationFrame(...i))},setTimeout(...i){let u=setTimeout(...i);return l.add(()=>clearTimeout(u))},microTask(...i){let u={current:!0};return Vl(()=>{u.current&&i[0]()}),l.add(()=>{u.current=!1})},style(i,u,c){let f=i.style.getPropertyValue(u);return Object.assign(i.style,{[u]:c}),this.add(()=>{Object.assign(i.style,{[u]:f})})},group(i){let u=zn();return i(u),this.add(()=>u.dispose())},add(i){return r.push(i),()=>{let u=r.indexOf(i);if(u>=0)for(let c of r.splice(u,1))c()}},dispose(){for(let i of r.splice(0))i()}};return l}function wu(){let[r]=R.useState(zn);return R.useEffect(()=>()=>r.dispose(),[r]),r}function jg(){let r=typeof document>"u";return"useSyncExternalStore"in so?(l=>l.useSyncExternalStore)(so)(()=>()=>{},()=>!1,()=>!r):!1}function hr(){let r=jg(),[l,i]=R.useState(Gt.isHandoffComplete);return l&&Gt.isHandoffComplete===!1&&i(!1),R.useEffect(()=>{l!==!0&&i(!0)},[l]),R.useEffect(()=>Gt.handoff(),[]),r?!1:l}var Wf;let gr=(Wf=pe.useId)!=null?Wf:function(){let r=hr(),[l,i]=pe.useState(r?()=>Gt.nextId():null);return Et(()=>{l===null&&i(Gt.nextId())},[l]),l!=null?""+l:void 0};function Je(r,l,...i){if(r in l){let c=l[r];return typeof c=="function"?c(...i):c}let u=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(l).map(c=>`"${c}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,Je),u}function Rd(r){return Gt.isServer?null:r instanceof Node?r.ownerDocument:r!=null&&r.hasOwnProperty("current")&&r.current instanceof Node?r.current.ownerDocument:document}let su=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(r=>`${r}:not([tabindex='-1'])`).join(",");var Fn=(r=>(r[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r))(Fn||{}),Nd=(r=>(r[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r))(Nd||{}),Fg=(r=>(r[r.Previous=-1]="Previous",r[r.Next=1]="Next",r))(Fg||{});function Ag(r=document.body){return r==null?[]:Array.from(r.querySelectorAll(su)).sort((l,i)=>Math.sign((l.tabIndex||Number.MAX_SAFE_INTEGER)-(i.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ld=(r=>(r[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r))(Ld||{});function Dg(r,l=0){var i;return r===((i=Rd(r))==null?void 0:i.body)?!1:Je(l,{0(){return r.matches(su)},1(){let u=r;for(;u!==null;){if(u.matches(su))return!0;u=u.parentElement}return!1}})}var bg=(r=>(r[r.Keyboard=0]="Keyboard",r[r.Mouse=1]="Mouse",r))(bg||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",r=>{r.metaKey||r.altKey||r.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",r=>{r.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:r.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Mn(r){r?.focus({preventScroll:!0})}let Mg=["textarea","input"].join(",");function Ig(r){var l,i;return(i=(l=r?.matches)==null?void 0:l.call(r,Mg))!=null?i:!1}function zg(r,l=i=>i){return r.slice().sort((i,u)=>{let c=l(i),f=l(u);if(c===null||f===null)return 0;let p=c.compareDocumentPosition(f);return p&Node.DOCUMENT_POSITION_FOLLOWING?-1:p&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ol(r,l,{sorted:i=!0,relativeTo:u=null,skipElements:c=[]}={}){let f=Array.isArray(r)?r.length>0?r[0].ownerDocument:document:r.ownerDocument,p=Array.isArray(r)?i?zg(r):r:Ag(r);c.length>0&&p.length>1&&(p=p.filter(b=>!c.includes(b))),u=u??f.activeElement;let m=(()=>{if(l&5)return 1;if(l&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),g=(()=>{if(l&1)return 0;if(l&2)return Math.max(0,p.indexOf(u))-1;if(l&4)return Math.max(0,p.indexOf(u))+1;if(l&8)return p.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),S=l&32?{preventScroll:!0}:{},v=0,P=p.length,j;do{if(v>=P||v+P<=0)return 0;let b=g+v;if(l&16)b=(b+P)%P;else{if(b<0)return 3;if(b>=P)return 1}j=p[b],j?.focus(S),v+=m}while(j!==f.activeElement);return l&6&&Ig(j)&&j.select(),2}function Pd(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Bg(){return/Android/gi.test(window.navigator.userAgent)}function $g(){return Pd()||Bg()}function Rl(r,l,i){let u=Xt(l);R.useEffect(()=>{function c(f){u.current(f)}return document.addEventListener(r,c,i),()=>document.removeEventListener(r,c,i)},[r,i])}function _d(r,l,i){let u=Xt(l);R.useEffect(()=>{function c(f){u.current(f)}return window.addEventListener(r,c,i),()=>window.removeEventListener(r,c,i)},[r,i])}function Hg(r,l,i=!0){let u=R.useRef(!1);R.useEffect(()=>{requestAnimationFrame(()=>{u.current=i})},[i]);function c(p,m){if(!u.current||p.defaultPrevented)return;let g=m(p);if(g===null||!g.getRootNode().contains(g)||!g.isConnected)return;let S=(function v(P){return typeof P=="function"?v(P()):Array.isArray(P)||P instanceof Set?P:[P]})(r);for(let v of S){if(v===null)continue;let P=v instanceof HTMLElement?v:v.current;if(P!=null&&P.contains(g)||p.composed&&p.composedPath().includes(P))return}return!Dg(g,Ld.Loose)&&g.tabIndex!==-1&&p.preventDefault(),l(p,g)}let f=R.useRef(null);Rl("pointerdown",p=>{var m,g;u.current&&(f.current=((g=(m=p.composedPath)==null?void 0:m.call(p))==null?void 0:g[0])||p.target)},!0),Rl("mousedown",p=>{var m,g;u.current&&(f.current=((g=(m=p.composedPath)==null?void 0:m.call(p))==null?void 0:g[0])||p.target)},!0),Rl("click",p=>{$g()||f.current&&(c(p,()=>f.current),f.current=null)},!0),Rl("touchend",p=>c(p,()=>p.target instanceof HTMLElement?p.target:null),!0),_d("blur",p=>c(p,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function po(...r){return R.useMemo(()=>Rd(...r),[...r])}let Ud=Symbol();function Vg(r,l=!0){return Object.assign(r,{[Ud]:l})}function jt(...r){let l=R.useRef(r);R.useEffect(()=>{l.current=r},[r]);let i=Ue(u=>{for(let c of l.current)c!=null&&(typeof c=="function"?c(u):c.current=u)});return r.every(u=>u==null||u?.[Ud])?void 0:i}function Su(r,l){let i=R.useRef([]),u=Ue(r);R.useEffect(()=>{let c=[...i.current];for(let[f,p]of l.entries())if(i.current[f]!==p){let m=u(l,c);return i.current=l,m}},[u,...l])}function Fl(...r){return Array.from(new Set(r.flatMap(l=>typeof l=="string"?l.split(" "):[]))).filter(Boolean).join(" ")}var Al=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Al||{}),Sn=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(Sn||{});function Ct({ourProps:r,theirProps:l,slot:i,defaultTag:u,features:c,visible:f=!0,name:p,mergeRefs:m}){m=m??Wg;let g=Od(l,r);if(f)return Nl(g,i,u,p,m);let S=c??0;if(S&2){let{static:v=!1,...P}=g;if(v)return Nl(P,i,u,p,m)}if(S&1){let{unmount:v=!0,...P}=g;return Je(v?0:1,{0(){return null},1(){return Nl({...P,hidden:!0,style:{display:"none"}},i,u,p,m)}})}return Nl(g,i,u,p,m)}function Nl(r,l={},i,u,c){let{as:f=i,children:p,refName:m="ref",...g}=Xs(r,["unmount","static"]),S=r.ref!==void 0?{[m]:r.ref}:{},v=typeof p=="function"?p(l):p;"className"in g&&g.className&&typeof g.className=="function"&&(g.className=g.className(l));let P={};if(l){let j=!1,b=[];for(let[x,C]of Object.entries(l))typeof C=="boolean"&&(j=!0),C===!0&&b.push(x);j&&(P["data-headlessui-state"]=b.join(" "))}if(f===R.Fragment&&Object.keys(qf(g)).length>0){if(!R.isValidElement(v)||Array.isArray(v)&&v.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${u} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(g).map(C=>` - ${C}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(C=>` - ${C}`).join(` `)].join(` `));let j=v.props,b=typeof j?.className=="function"?(...C)=>Fl(j?.className(...C),g.className):Fl(j?.className,g.className),x=b?{className:b}:{};return R.cloneElement(v,Object.assign({},Od(v.props,qf(Xs(g,["ref"]))),P,S,{ref:c(v.ref,S.ref)},x))}return R.createElement(f,Object.assign({},Xs(g,["ref"]),f!==R.Fragment&&S,f!==R.Fragment&&P),v)}function Wg(...r){return r.every(l=>l==null)?void 0:l=>{for(let i of r)i!=null&&(typeof i=="function"?i(l):i.current=l)}}function Od(...r){if(r.length===0)return{};if(r.length===1)return r[0];let l={},i={};for(let u of r)for(let c in u)c.startsWith("on")&&typeof u[c]=="function"?(i[c]!=null||(i[c]=[]),i[c].push(u[c])):l[c]=u[c];if(l.disabled||l["aria-disabled"])return Object.assign(l,Object.fromEntries(Object.keys(i).map(u=>[u,void 0])));for(let u in i)Object.assign(l,{[u](c,...f){let p=i[u];for(let m of p){if((c instanceof Event||c?.nativeEvent instanceof Event)&&c.defaultPrevented)return;m(c,...f)}}});return l}function ht(r){var l;return Object.assign(R.forwardRef(r),{displayName:(l=r.displayName)!=null?l:r.name})}function qf(r){let l=Object.assign({},r);for(let i in l)l[i]===void 0&&delete l[i];return l}function Xs(r,l=[]){let i=Object.assign({},r);for(let u of l)u in i&&delete i[u];return i}let qg="div";var Dl=(r=>(r[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r))(Dl||{});function Qg(r,l){var i;let{features:u=1,...c}=r,f={ref:l,"aria-hidden":(u&2)===2?!0:(i=c["aria-hidden"])!=null?i:void 0,hidden:(u&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(u&4)===4&&(u&2)!==2&&{display:"none"}}};return Ct({ourProps:f,theirProps:c,slot:{},defaultTag:qg,name:"Hidden"})}let uu=ht(Qg),ku=R.createContext(null);ku.displayName="OpenClosedContext";var mt=(r=>(r[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r))(mt||{});function xu(){return R.useContext(ku)}function Kg({value:r,children:l}){return pe.createElement(ku.Provider,{value:r},l)}function Gg(r){function l(){document.readyState!=="loading"&&(r(),document.removeEventListener("DOMContentLoaded",l))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",l),l())}let wn=[];Gg(()=>{function r(l){l.target instanceof HTMLElement&&l.target!==document.body&&wn[0]!==l.target&&(wn.unshift(l.target),wn=wn.filter(i=>i!=null&&i.isConnected),wn.splice(10))}window.addEventListener("click",r,{capture:!0}),window.addEventListener("mousedown",r,{capture:!0}),window.addEventListener("focus",r,{capture:!0}),document.body.addEventListener("click",r,{capture:!0}),document.body.addEventListener("mousedown",r,{capture:!0}),document.body.addEventListener("focus",r,{capture:!0})});function Xg(r){let l=r.parentElement,i=null;for(;l&&!(l instanceof HTMLFieldSetElement);)l instanceof HTMLLegendElement&&(i=l),l=l.parentElement;let u=l?.getAttribute("disabled")==="";return u&&Yg(i)?!1:u}function Yg(r){if(!r)return!1;let l=r.previousElementSibling;for(;l!==null;){if(l instanceof HTMLLegendElement)return!1;l=l.previousElementSibling}return!0}var jd=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(jd||{});function Fd(r,l,i,u){let c=Xt(i);R.useEffect(()=>{r=r??window;function f(p){c.current(p)}return r.addEventListener(l,f,u),()=>r.removeEventListener(l,f,u)},[r,l,u])}function mo(){let r=R.useRef(!1);return Et(()=>(r.current=!0,()=>{r.current=!1}),[]),r}function Ad(r){let l=Ue(r),i=R.useRef(!1);R.useEffect(()=>(i.current=!1,()=>{i.current=!0,Vl(()=>{i.current&&l()})}),[l])}var io=(r=>(r[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r))(io||{});function Jg(){let r=R.useRef(0);return _d("keydown",l=>{l.key==="Tab"&&(r.current=l.shiftKey?1:0)},!0),r}function Dd(r){if(!r)return new Set;if(typeof r=="function")return new Set(r());let l=new Set;for(let i of r.current)i.current instanceof HTMLElement&&l.add(i.current);return l}let Zg="div";var bd=(r=>(r[r.None=1]="None",r[r.InitialFocus=2]="InitialFocus",r[r.TabLock=4]="TabLock",r[r.FocusLock=8]="FocusLock",r[r.RestoreFocus=16]="RestoreFocus",r[r.All=30]="All",r))(bd||{});function e0(r,l){let i=R.useRef(null),u=jt(i,l),{initialFocus:c,containers:f,features:p=30,...m}=r;hr()||(p=1);let g=po(i);r0({ownerDocument:g},!!(p&16));let S=o0({ownerDocument:g,container:i,initialFocus:c},!!(p&2));l0({ownerDocument:g,container:i,containers:f,previousActiveElement:S},!!(p&8));let v=Jg(),P=Ue(C=>{let E=i.current;E&&(B=>B())(()=>{Je(v.current,{[io.Forwards]:()=>{Ol(E,Fn.First,{skipElements:[C.relatedTarget]})},[io.Backwards]:()=>{Ol(E,Fn.Last,{skipElements:[C.relatedTarget]})}})})}),j=wu(),b=R.useRef(!1),x={ref:u,onKeyDown(C){C.key=="Tab"&&(b.current=!0,j.requestAnimationFrame(()=>{b.current=!1}))},onBlur(C){let E=Dd(f);i.current instanceof HTMLElement&&E.add(i.current);let B=C.relatedTarget;B instanceof HTMLElement&&B.dataset.headlessuiFocusGuard!=="true"&&(Md(E,B)||(b.current?Ol(i.current,Je(v.current,{[io.Forwards]:()=>Fn.Next,[io.Backwards]:()=>Fn.Previous})|Fn.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&Mn(C.target)))}};return pe.createElement(pe.Fragment,null,!!(p&4)&&pe.createElement(uu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:P,features:Dl.Focusable}),Ct({ourProps:x,theirProps:m,defaultTag:Zg,name:"FocusTrap"}),!!(p&4)&&pe.createElement(uu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:P,features:Dl.Focusable}))}let t0=ht(e0),oo=Object.assign(t0,{features:bd});function n0(r=!0){let l=R.useRef(wn.slice());return Su(([i],[u])=>{u===!0&&i===!1&&Vl(()=>{l.current.splice(0)}),u===!1&&i===!0&&(l.current=wn.slice())},[r,wn,l]),Ue(()=>{var i;return(i=l.current.find(u=>u!=null&&u.isConnected))!=null?i:null})}function r0({ownerDocument:r},l){let i=n0(l);Su(()=>{l||r?.activeElement===r?.body&&Mn(i())},[l]),Ad(()=>{l&&Mn(i())})}function o0({ownerDocument:r,container:l,initialFocus:i},u){let c=R.useRef(null),f=mo();return Su(()=>{if(!u)return;let p=l.current;p&&Vl(()=>{if(!f.current)return;let m=r?.activeElement;if(i!=null&&i.current){if(i?.current===m){c.current=m;return}}else if(p.contains(m)){c.current=m;return}i!=null&&i.current?Mn(i.current):Ol(p,Fn.First)===Nd.Error&&console.warn("There are no focusable elements inside the "),c.current=r?.activeElement})},[u]),c}function l0({ownerDocument:r,container:l,containers:i,previousActiveElement:u},c){let f=mo();Fd(r?.defaultView,"focus",p=>{if(!c||!f.current)return;let m=Dd(i);l.current instanceof HTMLElement&&m.add(l.current);let g=u.current;if(!g)return;let S=p.target;S&&S instanceof HTMLElement?Md(m,S)?(u.current=S,Mn(S)):(p.preventDefault(),p.stopPropagation(),Mn(g)):Mn(u.current)},!0)}function Md(r,l){for(let i of r)if(i.contains(l))return!0;return!1}let Id=R.createContext(!1);function i0(){return R.useContext(Id)}function au(r){return pe.createElement(Id.Provider,{value:r.force},r.children)}function s0(r){let l=i0(),i=R.useContext(zd),u=po(r),[c,f]=R.useState(()=>{if(!l&&i!==null||Gt.isServer)return null;let p=u?.getElementById("headlessui-portal-root");if(p)return p;if(u===null)return null;let m=u.createElement("div");return m.setAttribute("id","headlessui-portal-root"),u.body.appendChild(m)});return R.useEffect(()=>{c!==null&&(u!=null&&u.body.contains(c)||u==null||u.body.appendChild(c))},[c,u]),R.useEffect(()=>{l||i!==null&&f(i.current)},[i,f,l]),c}let u0=R.Fragment;function a0(r,l){let i=r,u=R.useRef(null),c=jt(Vg(v=>{u.current=v}),l),f=po(u),p=s0(u),[m]=R.useState(()=>{var v;return Gt.isServer?null:(v=f?.createElement("div"))!=null?v:null}),g=R.useContext(cu),S=hr();return Et(()=>{!p||!m||p.contains(m)||(m.setAttribute("data-headlessui-portal",""),p.appendChild(m))},[p,m]),Et(()=>{if(m&&g)return g.register(m)},[g,m]),Ad(()=>{var v;!p||!m||(m instanceof Node&&p.contains(m)&&p.removeChild(m),p.childNodes.length<=0&&((v=p.parentElement)==null||v.removeChild(p)))}),S?!p||!m?null:Pg.createPortal(Ct({ourProps:{ref:c},theirProps:i,defaultTag:u0,name:"Portal"}),m):null}let c0=R.Fragment,zd=R.createContext(null);function f0(r,l){let{target:i,...u}=r,c={ref:jt(l)};return pe.createElement(zd.Provider,{value:i},Ct({ourProps:c,theirProps:u,defaultTag:c0,name:"Popover.Group"}))}let cu=R.createContext(null);function d0(){let r=R.useContext(cu),l=R.useRef([]),i=Ue(f=>(l.current.push(f),r&&r.register(f),()=>u(f))),u=Ue(f=>{let p=l.current.indexOf(f);p!==-1&&l.current.splice(p,1),r&&r.unregister(f)}),c=R.useMemo(()=>({register:i,unregister:u,portals:l}),[i,u,l]);return[l,R.useMemo(()=>function({children:f}){return pe.createElement(cu.Provider,{value:c},f)},[c])]}let p0=ht(a0),m0=ht(f0),fu=Object.assign(p0,{Group:m0});function h0(r,l){return r===l&&(r!==0||1/r===1/l)||r!==r&&l!==l}const g0=typeof Object.is=="function"?Object.is:h0,{useState:y0,useEffect:v0,useLayoutEffect:w0,useDebugValue:S0}=so;function k0(r,l,i){const u=l(),[{inst:c},f]=y0({inst:{value:u,getSnapshot:l}});return w0(()=>{c.value=u,c.getSnapshot=l,Ys(c)&&f({inst:c})},[r,u,l]),v0(()=>(Ys(c)&&f({inst:c}),r(()=>{Ys(c)&&f({inst:c})})),[r]),S0(u),u}function Ys(r){const l=r.getSnapshot,i=r.value;try{const u=l();return!g0(i,u)}catch{return!0}}function x0(r,l,i){return l()}const E0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",C0=!E0,T0=C0?x0:k0,R0="useSyncExternalStore"in so?(r=>r.useSyncExternalStore)(so):T0;function N0(r){return R0(r.subscribe,r.getSnapshot,r.getSnapshot)}function L0(r,l){let i=r(),u=new Set;return{getSnapshot(){return i},subscribe(c){return u.add(c),()=>u.delete(c)},dispatch(c,...f){let p=l[c].call(i,...f);p&&(i=p,u.forEach(m=>m()))}}}function P0(){let r;return{before({doc:l}){var i;let u=l.documentElement;r=((i=l.defaultView)!=null?i:window).innerWidth-u.clientWidth},after({doc:l,d:i}){let u=l.documentElement,c=u.clientWidth-u.offsetWidth,f=r-c;i.style(u,"paddingRight",`${f}px`)}}}function _0(){return Pd()?{before({doc:r,d:l,meta:i}){function u(c){return i.containers.flatMap(f=>f()).some(f=>f.contains(c))}l.microTask(()=>{var c;if(window.getComputedStyle(r.documentElement).scrollBehavior!=="auto"){let m=zn();m.style(r.documentElement,"scrollBehavior","auto"),l.add(()=>l.microTask(()=>m.dispose()))}let f=(c=window.scrollY)!=null?c:window.pageYOffset,p=null;l.addEventListener(r,"click",m=>{if(m.target instanceof HTMLElement)try{let g=m.target.closest("a");if(!g)return;let{hash:S}=new URL(g.href),v=r.querySelector(S);v&&!u(v)&&(p=v)}catch{}},!0),l.addEventListener(r,"touchstart",m=>{if(m.target instanceof HTMLElement)if(u(m.target)){let g=m.target;for(;g.parentElement&&u(g.parentElement);)g=g.parentElement;l.style(g,"overscrollBehavior","contain")}else l.style(m.target,"touchAction","none")}),l.addEventListener(r,"touchmove",m=>{if(m.target instanceof HTMLElement)if(u(m.target)){let g=m.target;for(;g.parentElement&&g.dataset.headlessuiPortal!==""&&!(g.scrollHeight>g.clientHeight||g.scrollWidth>g.clientWidth);)g=g.parentElement;g.dataset.headlessuiPortal===""&&m.preventDefault()}else m.preventDefault()},{passive:!1}),l.add(()=>{var m;let g=(m=window.scrollY)!=null?m:window.pageYOffset;f!==g&&window.scrollTo(0,f),p&&p.isConnected&&(p.scrollIntoView({block:"nearest"}),p=null)})})}}:{}}function U0(){return{before({doc:r,d:l}){l.style(r.documentElement,"overflow","hidden")}}}function O0(r){let l={};for(let i of r)Object.assign(l,i(l));return l}let Dn=L0(()=>new Map,{PUSH(r,l){var i;let u=(i=this.get(r))!=null?i:{doc:r,count:0,d:zn(),meta:new Set};return u.count++,u.meta.add(l),this.set(r,u),this},POP(r,l){let i=this.get(r);return i&&(i.count--,i.meta.delete(l)),this},SCROLL_PREVENT({doc:r,d:l,meta:i}){let u={doc:r,d:l,meta:O0(i)},c=[_0(),P0(),U0()];c.forEach(({before:f})=>f?.(u)),c.forEach(({after:f})=>f?.(u))},SCROLL_ALLOW({d:r}){r.dispose()},TEARDOWN({doc:r}){this.delete(r)}});Dn.subscribe(()=>{let r=Dn.getSnapshot(),l=new Map;for(let[i]of r)l.set(i,i.documentElement.style.overflow);for(let i of r.values()){let u=l.get(i.doc)==="hidden",c=i.count!==0;(c&&!u||!c&&u)&&Dn.dispatch(i.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",i),i.count===0&&Dn.dispatch("TEARDOWN",i)}});function j0(r,l,i){let u=N0(Dn),c=r?u.get(r):void 0,f=c?c.count>0:!1;return Et(()=>{if(!(!r||!l))return Dn.dispatch("PUSH",r,i),()=>Dn.dispatch("POP",r,i)},[l,r]),f}let Js=new Map,lo=new Map;function Qf(r,l=!0){Et(()=>{var i;if(!l)return;let u=typeof r=="function"?r():r.current;if(!u)return;function c(){var p;if(!u)return;let m=(p=lo.get(u))!=null?p:1;if(m===1?lo.delete(u):lo.set(u,m-1),m!==1)return;let g=Js.get(u);g&&(g["aria-hidden"]===null?u.removeAttribute("aria-hidden"):u.setAttribute("aria-hidden",g["aria-hidden"]),u.inert=g.inert,Js.delete(u))}let f=(i=lo.get(u))!=null?i:0;return lo.set(u,f+1),f!==0||(Js.set(u,{"aria-hidden":u.getAttribute("aria-hidden"),inert:u.inert}),u.setAttribute("aria-hidden","true"),u.inert=!0),c},[r,l])}function F0({defaultContainers:r=[],portals:l,mainTreeNodeRef:i}={}){var u;let c=R.useRef((u=i?.current)!=null?u:null),f=po(c),p=Ue(()=>{var m,g,S;let v=[];for(let P of r)P!==null&&(P instanceof HTMLElement?v.push(P):"current"in P&&P.current instanceof HTMLElement&&v.push(P.current));if(l!=null&&l.current)for(let P of l.current)v.push(P);for(let P of(m=f?.querySelectorAll("html > *, body > *"))!=null?m:[])P!==document.body&&P!==document.head&&P instanceof HTMLElement&&P.id!=="headlessui-portal-root"&&(P.contains(c.current)||P.contains((S=(g=c.current)==null?void 0:g.getRootNode())==null?void 0:S.host)||v.some(j=>P.contains(j))||v.push(P));return v});return{resolveContainers:p,contains:Ue(m=>p().some(g=>g.contains(m))),mainTreeNodeRef:c,MainTreeNode:R.useMemo(()=>function(){return i!=null?null:pe.createElement(uu,{features:Dl.Hidden,ref:c})},[c,i])}}let Eu=R.createContext(()=>{});Eu.displayName="StackContext";var du=(r=>(r[r.Add=0]="Add",r[r.Remove=1]="Remove",r))(du||{});function A0(){return R.useContext(Eu)}function D0({children:r,onUpdate:l,type:i,element:u,enabled:c}){let f=A0(),p=Ue((...m)=>{l?.(...m),f(...m)});return Et(()=>{let m=c===void 0||c===!0;return m&&p(0,i,u),()=>{m&&p(1,i,u)}},[p,i,u,c]),pe.createElement(Eu.Provider,{value:p},r)}let Bd=R.createContext(null);function $d(){let r=R.useContext(Bd);if(r===null){let l=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(l,$d),l}return r}function b0(){let[r,l]=R.useState([]);return[r.length>0?r.join(" "):void 0,R.useMemo(()=>function(i){let u=Ue(f=>(l(p=>[...p,f]),()=>l(p=>{let m=p.slice(),g=m.indexOf(f);return g!==-1&&m.splice(g,1),m}))),c=R.useMemo(()=>({register:u,slot:i.slot,name:i.name,props:i.props}),[u,i.slot,i.name,i.props]);return pe.createElement(Bd.Provider,{value:c},i.children)},[l])]}let M0="p";function I0(r,l){let i=gr(),{id:u=`headlessui-description-${i}`,...c}=r,f=$d(),p=jt(l);Et(()=>f.register(u),[u,f.register]);let m={ref:p,...f.props,id:u};return Ct({ourProps:m,theirProps:c,slot:f.slot||{},defaultTag:M0,name:f.name||"Description"})}let z0=ht(I0),B0=Object.assign(z0,{});var $0=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))($0||{}),H0=(r=>(r[r.SetTitleId=0]="SetTitleId",r))(H0||{});let V0={0(r,l){return r.titleId===l.id?r:{...r,titleId:l.id}}},bl=R.createContext(null);bl.displayName="DialogContext";function ho(r){let l=R.useContext(bl);if(l===null){let i=new Error(`<${r} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,ho),i}return l}function W0(r,l,i=()=>[document.body]){j0(r,l,u=>{var c;return{containers:[...(c=u.containers)!=null?c:[],i]}})}function q0(r,l){return Je(l.type,V0,r,l)}let Q0="div",K0=Al.RenderStrategy|Al.Static;function G0(r,l){let i=gr(),{id:u=`headlessui-dialog-${i}`,open:c,onClose:f,initialFocus:p,role:m="dialog",__demoMode:g=!1,...S}=r,[v,P]=R.useState(0),j=R.useRef(!1);m=(function(){return m==="dialog"||m==="alertdialog"?m:(j.current||(j.current=!0,console.warn(`Invalid role [${m}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let b=xu();c===void 0&&b!==null&&(c=(b&mt.Open)===mt.Open);let x=R.useRef(null),C=jt(x,l),E=po(x),B=r.hasOwnProperty("open")||b!==null,Y=r.hasOwnProperty("onClose");if(!B&&!Y)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!B)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!Y)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof c!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${c}`);if(typeof f!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${f}`);let z=c?0:1,[V,ne]=R.useReducer(q0,{titleId:null,descriptionId:null,panelRef:R.createRef()}),G=Ue(()=>f(!1)),te=Ue(Te=>ne({type:0,id:Te})),se=hr()?g?!1:z===0:!1,ce=v>1,we=R.useContext(bl)!==null,[Ne,ae]=d0(),le={get current(){var Te;return(Te=V.panelRef.current)!=null?Te:x.current}},{resolveContainers:ye,mainTreeNodeRef:ke,MainTreeNode:de}=F0({portals:Ne,defaultContainers:[le]}),ie=ce?"parent":"leaf",I=b!==null?(b&mt.Closing)===mt.Closing:!1,X=we||I?!1:se,$=R.useCallback(()=>{var Te,gt;return(gt=Array.from((Te=E?.querySelectorAll("body > *"))!=null?Te:[]).find(Ve=>Ve.id==="headlessui-portal-root"?!1:Ve.contains(ke.current)&&Ve instanceof HTMLElement))!=null?gt:null},[ke]);Qf($,X);let k=ce?!0:se,O=R.useCallback(()=>{var Te,gt;return(gt=Array.from((Te=E?.querySelectorAll("[data-headlessui-portal]"))!=null?Te:[]).find(Ve=>Ve.contains(ke.current)&&Ve instanceof HTMLElement))!=null?gt:null},[ke]);Qf(O,k),Hg(ye,Te=>{Te.preventDefault(),G()},!(!se||ce));let J=!(ce||z!==0);Fd(E?.defaultView,"keydown",Te=>{J&&(Te.defaultPrevented||Te.key===jd.Escape&&(Te.preventDefault(),Te.stopPropagation(),G()))}),W0(E,!(I||z!==0||we),ye),R.useEffect(()=>{if(z!==0||!x.current)return;let Te=new ResizeObserver(gt=>{for(let Ve of gt){let Yt=Ve.target.getBoundingClientRect();Yt.x===0&&Yt.y===0&&Yt.width===0&&Yt.height===0&&G()}});return Te.observe(x.current),()=>Te.disconnect()},[z,x,G]);let[he,Ee]=b0(),Se=R.useMemo(()=>[{dialogState:z,close:G,setTitleId:te},V],[z,V,G,te]),Ce=R.useMemo(()=>({open:z===0}),[z]),Ze={ref:C,id:u,role:m,"aria-modal":z===0?!0:void 0,"aria-labelledby":V.titleId,"aria-describedby":he};return pe.createElement(D0,{type:"Dialog",enabled:z===0,element:x,onUpdate:Ue((Te,gt)=>{gt==="Dialog"&&Je(Te,{[du.Add]:()=>P(Ve=>Ve+1),[du.Remove]:()=>P(Ve=>Ve-1)})})},pe.createElement(au,{force:!0},pe.createElement(fu,null,pe.createElement(bl.Provider,{value:Se},pe.createElement(fu.Group,{target:x},pe.createElement(au,{force:!1},pe.createElement(Ee,{slot:Ce,name:"Dialog.Description"},pe.createElement(oo,{initialFocus:p,containers:ye,features:se?Je(ie,{parent:oo.features.RestoreFocus,leaf:oo.features.All&~oo.features.FocusLock}):oo.features.None},pe.createElement(ae,null,Ct({ourProps:Ze,theirProps:S,slot:Ce,defaultTag:Q0,features:K0,visible:z===0,name:"Dialog"}))))))))),pe.createElement(de,null))}let X0="div";function Y0(r,l){let i=gr(),{id:u=`headlessui-dialog-overlay-${i}`,...c}=r,[{dialogState:f,close:p}]=ho("Dialog.Overlay"),m=jt(l),g=Ue(v=>{if(v.target===v.currentTarget){if(Xg(v.currentTarget))return v.preventDefault();v.preventDefault(),v.stopPropagation(),p()}}),S=R.useMemo(()=>({open:f===0}),[f]);return Ct({ourProps:{ref:m,id:u,"aria-hidden":!0,onClick:g},theirProps:c,slot:S,defaultTag:X0,name:"Dialog.Overlay"})}let J0="div";function Z0(r,l){let i=gr(),{id:u=`headlessui-dialog-backdrop-${i}`,...c}=r,[{dialogState:f},p]=ho("Dialog.Backdrop"),m=jt(l);R.useEffect(()=>{if(p.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[p.panelRef]);let g=R.useMemo(()=>({open:f===0}),[f]);return pe.createElement(au,{force:!0},pe.createElement(fu,null,Ct({ourProps:{ref:m,id:u,"aria-hidden":!0},theirProps:c,slot:g,defaultTag:J0,name:"Dialog.Backdrop"})))}let ey="div";function ty(r,l){let i=gr(),{id:u=`headlessui-dialog-panel-${i}`,...c}=r,[{dialogState:f},p]=ho("Dialog.Panel"),m=jt(l,p.panelRef),g=R.useMemo(()=>({open:f===0}),[f]),S=Ue(v=>{v.stopPropagation()});return Ct({ourProps:{ref:m,id:u,onClick:S},theirProps:c,slot:g,defaultTag:ey,name:"Dialog.Panel"})}let ny="h2";function ry(r,l){let i=gr(),{id:u=`headlessui-dialog-title-${i}`,...c}=r,[{dialogState:f,setTitleId:p}]=ho("Dialog.Title"),m=jt(l);R.useEffect(()=>(p(u),()=>p(null)),[u,p]);let g=R.useMemo(()=>({open:f===0}),[f]);return Ct({ourProps:{ref:m,id:u},theirProps:c,slot:g,defaultTag:ny,name:"Dialog.Title"})}let oy=ht(G0),ly=ht(Z0),iy=ht(ty),sy=ht(Y0),uy=ht(ry),Zs=Object.assign(oy,{Backdrop:ly,Panel:iy,Overlay:sy,Title:uy,Description:B0});function ay(r=0){let[l,i]=R.useState(r),u=mo(),c=R.useCallback(g=>{u.current&&i(S=>S|g)},[l,u]),f=R.useCallback(g=>!!(l&g),[l]),p=R.useCallback(g=>{u.current&&i(S=>S&~g)},[i,u]),m=R.useCallback(g=>{u.current&&i(S=>S^g)},[i]);return{flags:l,addFlag:c,hasFlag:f,removeFlag:p,toggleFlag:m}}function cy(r){let l={called:!1};return(...i)=>{if(!l.called)return l.called=!0,r(...i)}}function eu(r,...l){r&&l.length>0&&r.classList.add(...l)}function tu(r,...l){r&&l.length>0&&r.classList.remove(...l)}function fy(r,l){let i=zn();if(!r)return i.dispose;let{transitionDuration:u,transitionDelay:c}=getComputedStyle(r),[f,p]=[u,c].map(g=>{let[S=0]=g.split(",").filter(Boolean).map(v=>v.includes("ms")?parseFloat(v):parseFloat(v)*1e3).sort((v,P)=>P-v);return S}),m=f+p;if(m!==0){i.group(S=>{S.setTimeout(()=>{l(),S.dispose()},m),S.addEventListener(r,"transitionrun",v=>{v.target===v.currentTarget&&S.dispose()})});let g=i.addEventListener(r,"transitionend",S=>{S.target===S.currentTarget&&(l(),g())})}else l();return i.add(()=>l()),i.dispose}function dy(r,l,i,u){let c=i?"enter":"leave",f=zn(),p=u!==void 0?cy(u):()=>{};c==="enter"&&(r.removeAttribute("hidden"),r.style.display="");let m=Je(c,{enter:()=>l.enter,leave:()=>l.leave}),g=Je(c,{enter:()=>l.enterTo,leave:()=>l.leaveTo}),S=Je(c,{enter:()=>l.enterFrom,leave:()=>l.leaveFrom});return tu(r,...l.base,...l.enter,...l.enterTo,...l.enterFrom,...l.leave,...l.leaveFrom,...l.leaveTo,...l.entered),eu(r,...l.base,...m,...S),f.nextFrame(()=>{tu(r,...l.base,...m,...S),eu(r,...l.base,...m,...g),fy(r,()=>(tu(r,...l.base,...m),eu(r,...l.base,...l.entered),p()))}),f.dispose}function py({immediate:r,container:l,direction:i,classes:u,onStart:c,onStop:f}){let p=mo(),m=wu(),g=Xt(i);Et(()=>{r&&(g.current="enter")},[r]),Et(()=>{let S=zn();m.add(S.dispose);let v=l.current;if(v&&g.current!=="idle"&&p.current)return S.dispose(),c.current(g.current),S.add(dy(v,u.current,g.current==="enter",()=>{S.dispose(),f.current(g.current)})),S.dispose},[i])}function vn(r=""){return r.split(/\s+/).filter(l=>l.length>1)}let Wl=R.createContext(null);Wl.displayName="TransitionContext";var my=(r=>(r.Visible="visible",r.Hidden="hidden",r))(my||{});function hy(){let r=R.useContext(Wl);if(r===null)throw new Error("A is used but it is missing a parent or .");return r}function gy(){let r=R.useContext(ql);if(r===null)throw new Error("A is used but it is missing a parent or .");return r}let ql=R.createContext(null);ql.displayName="NestingContext";function Ql(r){return"children"in r?Ql(r.children):r.current.filter(({el:l})=>l.current!==null).filter(({state:l})=>l==="visible").length>0}function Hd(r,l){let i=Xt(r),u=R.useRef([]),c=mo(),f=wu(),p=Ue((b,x=Sn.Hidden)=>{let C=u.current.findIndex(({el:E})=>E===b);C!==-1&&(Je(x,{[Sn.Unmount](){u.current.splice(C,1)},[Sn.Hidden](){u.current[C].state="hidden"}}),f.microTask(()=>{var E;!Ql(u)&&c.current&&((E=i.current)==null||E.call(i))}))}),m=Ue(b=>{let x=u.current.find(({el:C})=>C===b);return x?x.state!=="visible"&&(x.state="visible"):u.current.push({el:b,state:"visible"}),()=>p(b,Sn.Unmount)}),g=R.useRef([]),S=R.useRef(Promise.resolve()),v=R.useRef({enter:[],leave:[],idle:[]}),P=Ue((b,x,C)=>{g.current.splice(0),l&&(l.chains.current[x]=l.chains.current[x].filter(([E])=>E!==b)),l?.chains.current[x].push([b,new Promise(E=>{g.current.push(E)})]),l?.chains.current[x].push([b,new Promise(E=>{Promise.all(v.current[x].map(([B,Y])=>Y)).then(()=>E())})]),x==="enter"?S.current=S.current.then(()=>l?.wait.current).then(()=>C(x)):C(x)}),j=Ue((b,x,C)=>{Promise.all(v.current[x].splice(0).map(([E,B])=>B)).then(()=>{var E;(E=g.current.shift())==null||E()}).then(()=>C(x))});return R.useMemo(()=>({children:u,register:m,unregister:p,onStart:P,onStop:j,wait:S,chains:v}),[m,p,u,P,j,v,S])}function yy(){}let vy=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Kf(r){var l;let i={};for(let u of vy)i[u]=(l=r[u])!=null?l:yy;return i}function wy(r){let l=R.useRef(Kf(r));return R.useEffect(()=>{l.current=Kf(r)},[r]),l}let Sy="div",Vd=Al.RenderStrategy;function ky(r,l){var i,u;let{beforeEnter:c,afterEnter:f,beforeLeave:p,afterLeave:m,enter:g,enterFrom:S,enterTo:v,entered:P,leave:j,leaveFrom:b,leaveTo:x,...C}=r,E=R.useRef(null),B=jt(E,l),Y=(i=C.unmount)==null||i?Sn.Unmount:Sn.Hidden,{show:z,appear:V,initial:ne}=hy(),[G,te]=R.useState(z?"visible":"hidden"),se=gy(),{register:ce,unregister:we}=se;R.useEffect(()=>ce(E),[ce,E]),R.useEffect(()=>{if(Y===Sn.Hidden&&E.current){if(z&&G!=="visible"){te("visible");return}return Je(G,{hidden:()=>we(E),visible:()=>ce(E)})}},[G,E,ce,we,z,Y]);let Ne=Xt({base:vn(C.className),enter:vn(g),enterFrom:vn(S),enterTo:vn(v),entered:vn(P),leave:vn(j),leaveFrom:vn(b),leaveTo:vn(x)}),ae=wy({beforeEnter:c,afterEnter:f,beforeLeave:p,afterLeave:m}),le=hr();R.useEffect(()=>{if(le&&G==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,G,le]);let ye=ne&&!V,ke=V&&z&&ne,de=!le||ye?"idle":z?"enter":"leave",ie=ay(0),I=Ue(J=>Je(J,{enter:()=>{ie.addFlag(mt.Opening),ae.current.beforeEnter()},leave:()=>{ie.addFlag(mt.Closing),ae.current.beforeLeave()},idle:()=>{}})),X=Ue(J=>Je(J,{enter:()=>{ie.removeFlag(mt.Opening),ae.current.afterEnter()},leave:()=>{ie.removeFlag(mt.Closing),ae.current.afterLeave()},idle:()=>{}})),$=Hd(()=>{te("hidden"),we(E)},se),k=R.useRef(!1);py({immediate:ke,container:E,classes:Ne,direction:de,onStart:Xt(J=>{k.current=!0,$.onStart(E,J,I)}),onStop:Xt(J=>{k.current=!1,$.onStop(E,J,X),J==="leave"&&!Ql($)&&(te("hidden"),we(E))})});let O=C,oe={ref:B};return ke?O={...O,className:Fl(C.className,...Ne.current.enter,...Ne.current.enterFrom)}:k.current&&(O.className=Fl(C.className,(u=E.current)==null?void 0:u.className),O.className===""&&delete O.className),pe.createElement(ql.Provider,{value:$},pe.createElement(Kg,{value:Je(G,{visible:mt.Open,hidden:mt.Closed})|ie.flags},Ct({ourProps:oe,theirProps:O,defaultTag:Sy,features:Vd,visible:G==="visible",name:"Transition.Child"})))}function xy(r,l){let{show:i,appear:u=!1,unmount:c=!0,...f}=r,p=R.useRef(null),m=jt(p,l);hr();let g=xu();if(i===void 0&&g!==null&&(i=(g&mt.Open)===mt.Open),![!0,!1].includes(i))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[S,v]=R.useState(i?"visible":"hidden"),P=Hd(()=>{v("hidden")}),[j,b]=R.useState(!0),x=R.useRef([i]);Et(()=>{j!==!1&&x.current[x.current.length-1]!==i&&(x.current.push(i),b(!1))},[x,i]);let C=R.useMemo(()=>({show:i,appear:u,initial:j}),[i,u,j]);R.useEffect(()=>{if(i)v("visible");else if(!Ql(P))v("hidden");else{let z=p.current;if(!z)return;let V=z.getBoundingClientRect();V.x===0&&V.y===0&&V.width===0&&V.height===0&&v("hidden")}},[i,P]);let E={unmount:c},B=Ue(()=>{var z;j&&b(!1),(z=r.beforeEnter)==null||z.call(r)}),Y=Ue(()=>{var z;j&&b(!1),(z=r.beforeLeave)==null||z.call(r)});return pe.createElement(ql.Provider,{value:P},pe.createElement(Wl.Provider,{value:C},Ct({ourProps:{...E,as:R.Fragment,children:pe.createElement(Wd,{ref:m,...E,...f,beforeEnter:B,beforeLeave:Y})},theirProps:{},defaultTag:R.Fragment,features:Vd,visible:S==="visible",name:"Transition"})))}function Ey(r,l){let i=R.useContext(Wl)!==null,u=xu()!==null;return pe.createElement(pe.Fragment,null,!i&&u?pe.createElement(pu,{ref:l,...r}):pe.createElement(Wd,{ref:l,...r}))}let pu=ht(xy),Wd=ht(ky),Cy=ht(Ey),nu=Object.assign(pu,{Child:Cy,Root:pu});function Cu({show:r,onClose:l,onSubmit:i,title:u,content:c,submitText:f,submitEnabled:p=!0}){return L.jsx(nu,{appear:!0,show:r,as:R.Fragment,children:L.jsxs(Zs,{as:"div",className:"relative z-[100]",onClose:l,children:[L.jsx(nu.Child,{as:R.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:L.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),L.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:L.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:L.jsx(nu.Child,{as:R.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:L.jsxs(Zs.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white dark:bg-github-secondary p-6 text-left align-middle shadow-xl transition-all",children:[L.jsx(Zs.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900 dark:text-github-text",children:u}),L.jsx("div",{className:"mt-3 text-sm text-gray-500 dark:text-github-muted",children:c}),L.jsxs("div",{className:"mt-4 flex flex-row-reverse",children:[f&&L.jsx("button",{type:"button",disabled:!p,className:`inline-flex ml-4 justify-center rounded-md border border-transparent ${p?"bg-indigo-600":"bg-grey-300"} px-4 py-2 text-sm font-medium text-indigo-100 ${p?"hover:bg-indigo-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2":""} transition-all duration-300`,onClick:i,children:f}),L.jsx("button",{type:"button",className:"inline-flex justify-center rounded-md border border-transparent bg-indigo-100 px-4 py-2 text-sm font-medium text-indigo-900 hover:bg-indigo-200 dark:bg-github-border dark:text-github-text dark:hover:bg-slate-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:l,children:"Close"})]})]})})})})]})})}function Ty(r){return L.jsx("div",{children:L.jsx("input",{...r,type:"url",className:"my-2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"www.example.com",required:!0})})}const Ry=R.forwardRef(function(l,i){const u=R.useRef(null);return R.useEffect(()=>{const c=i?.current;c&&u.current&&(u.current.src=l.audioUrl,c.load())},[l.audioUrl,i]),L.jsx("div",{className:"flex relative z-10 p-4 w-full",children:L.jsx("audio",{ref:i,controls:!0,className:"w-full h-14 rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",onTimeUpdate:c=>l.onTimeUpdate?.(c.target.currentTime),children:L.jsx("source",{ref:u,type:l.mimeType})})})});function Ny(r){const{isModelLoading:l,isTranscribing:i,onClick:u,onStop:c,...f}=r;return l?L.jsx("button",{...f,onClick:c,className:"text-white bg-red-600 hover:bg-red-700 focus:ring-4 focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800 inline-flex items-center",children:L.jsx(Gf,{text:"Wait model loaded"})}):i?L.jsx("button",{...f,onClick:c,className:"text-white bg-red-600 hover:bg-red-700 focus:ring-4 focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800 inline-flex items-center",children:L.jsx(Gf,{text:"Stop Transcribing"})}):L.jsx("button",{...f,onClick:u,className:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 inline-flex items-center",children:"Transcribe Audio"})}function Gf(r){return L.jsxs("div",{role:"status",children:[L.jsxs("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),L.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),r.text]})}function Ly(){let r=!1;return(function(l){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(l)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(l.substr(0,4)))&&(r=!0)})(navigator.userAgent||navigator.vendor||("opera"in window&&typeof window.opera=="string"?window.opera:"")),r}const Xf=Ly(),Kt={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:`https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/${Xf?"jfk":"ted_60_16k"}.wav`,DEFAULT_MODEL:"Xenova/whisper-tiny",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"english",DEFAULT_QUANTIZED:Xf,DEFAULT_MULTILINGUAL:!1};function Py({text:r,percentage:l}){return l=l??0,L.jsx("div",{className:"mt-0.5 w-full relative text-sm text-white background-bg-cyan-400 bg-gray-200 border-1 border-gray-400 rounded-lg text-left overflow-hidden",children:L.jsxs("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:`${l}%`},children:[r," (",`${l.toFixed(2)}%`,")"]})})}function Ll(r){return String(r).padStart(2,"0")}function qd(r){const l=r/3600|0;r-=l*3600;const i=r/60|0;r-=i*60;const u=Math.floor(r),c=Math.floor((r-u)*100);return`${l?Ll(l)+":":""}${Ll(i)}:${Ll(u)}.${Ll(c)}`}const _y={172351395:{name:"EBML",type:"Container"},646:{name:"EBMLVersion",type:"Uint"},759:{name:"EBMLReadVersion",type:"Uint"},754:{name:"EBMLMaxIDLength",type:"Uint"},755:{name:"EBMLMaxSizeLength",type:"Uint"},642:{name:"DocType",type:"String"},647:{name:"DocTypeVersion",type:"Uint"},645:{name:"DocTypeReadVersion",type:"Uint"},108:{name:"Void",type:"Binary"},63:{name:"CRC-32",type:"Binary"},190023271:{name:"SignatureSlot",type:"Container"},16010:{name:"SignatureAlgo",type:"Uint"},16026:{name:"SignatureHash",type:"Uint"},16037:{name:"SignaturePublicKey",type:"Binary"},16053:{name:"Signature",type:"Binary"},15963:{name:"SignatureElements",type:"Container"},15995:{name:"SignatureElementList",type:"Container"},9522:{name:"SignedElement",type:"Binary"},139690087:{name:"Segment",type:"Container"},21863284:{name:"SeekHead",type:"Container"},3515:{name:"Seek",type:"Container"},5035:{name:"SeekID",type:"Binary"},5036:{name:"SeekPosition",type:"Uint"},88713574:{name:"Info",type:"Container"},13220:{name:"SegmentUID",type:"Binary"},13188:{name:"SegmentFilename",type:"String"},1882403:{name:"PrevUID",type:"Binary"},1868715:{name:"PrevFilename",type:"String"},2013475:{name:"NextUID",type:"Binary"},1999803:{name:"NextFilename",type:"String"},1092:{name:"SegmentFamily",type:"Binary"},10532:{name:"ChapterTranslate",type:"Container"},10748:{name:"ChapterTranslateEditionUID",type:"Uint"},10687:{name:"ChapterTranslateCodec",type:"Uint"},10661:{name:"ChapterTranslateID",type:"Binary"},710577:{name:"TimecodeScale",type:"Uint"},1161:{name:"Duration",type:"Float"},1121:{name:"DateUTC",type:"Date"},15273:{name:"Title",type:"String"},3456:{name:"MuxingApp",type:"String"},5953:{name:"WritingApp",type:"String"},103:{name:"Timecode",type:"Uint"},6228:{name:"SilentTracks",type:"Container"},6359:{name:"SilentTrackNumber",type:"Uint"},39:{name:"Position",type:"Uint"},43:{name:"PrevSize",type:"Uint"},35:{name:"SimpleBlock",type:"Binary"},32:{name:"BlockGroup",type:"Container"},33:{name:"Block",type:"Binary"},34:{name:"BlockVirtual",type:"Binary"},13729:{name:"BlockAdditions",type:"Container"},38:{name:"BlockMore",type:"Container"},110:{name:"BlockAddID",type:"Uint"},37:{name:"BlockAdditional",type:"Binary"},27:{name:"BlockDuration",type:"Uint"},122:{name:"ReferencePriority",type:"Uint"},123:{name:"ReferenceBlock",type:"Int"},125:{name:"ReferenceVirtual",type:"Int"},36:{name:"CodecState",type:"Binary"},13730:{name:"DiscardPadding",type:"Int"},14:{name:"Slices",type:"Container"},104:{name:"TimeSlice",type:"Container"},76:{name:"LaceNumber",type:"Uint"},77:{name:"FrameNumber",type:"Uint"},75:{name:"BlockAdditionID",type:"Uint"},78:{name:"Delay",type:"Uint"},79:{name:"SliceDuration",type:"Uint"},72:{name:"ReferenceFrame",type:"Container"},73:{name:"ReferenceOffset",type:"Uint"},74:{name:"ReferenceTimeCode",type:"Uint"},47:{name:"EncryptedBlock",type:"Binary"},106212971:{name:"Tracks",type:"Container"},46:{name:"TrackEntry",type:"Container"},87:{name:"TrackNumber",type:"Uint"},13253:{name:"TrackUID",type:"Uint"},3:{name:"TrackType",type:"Uint"},57:{name:"FlagEnabled",type:"Uint"},8:{name:"FlagDefault",type:"Uint"},5546:{name:"FlagForced",type:"Uint"},28:{name:"FlagLacing",type:"Uint"},11751:{name:"MinCache",type:"Uint"},11768:{name:"MaxCache",type:"Uint"},254851:{name:"DefaultDuration",type:"Uint"},216698:{name:"DefaultDecodedFieldDuration",type:"Uint"},209231:{name:"TrackTimecodeScale",type:"Float"},4991:{name:"TrackOffset",type:"Int"},5614:{name:"MaxBlockAdditionID",type:"Uint"},4974:{name:"Name",type:"String"},177564:{name:"Language",type:"String"},6:{name:"CodecID",type:"String"},9122:{name:"CodecPrivate",type:"Binary"},362120:{name:"CodecName",type:"String"},13382:{name:"AttachmentLink",type:"Uint"},1742487:{name:"CodecSettings",type:"String"},1785920:{name:"CodecInfoURL",type:"String"},438848:{name:"CodecDownloadURL",type:"String"},42:{name:"CodecDecodeAll",type:"Uint"},12203:{name:"TrackOverlay",type:"Uint"},5802:{name:"CodecDelay",type:"Uint"},5819:{name:"SeekPreRoll",type:"Uint"},9764:{name:"TrackTranslate",type:"Container"},9980:{name:"TrackTranslateEditionUID",type:"Uint"},9919:{name:"TrackTranslateCodec",type:"Uint"},9893:{name:"TrackTranslateTrackID",type:"Binary"},96:{name:"Video",type:"Container"},26:{name:"FlagInterlaced",type:"Uint"},5048:{name:"StereoMode",type:"Uint"},5056:{name:"AlphaMode",type:"Uint"},5049:{name:"OldStereoMode",type:"Uint"},48:{name:"PixelWidth",type:"Uint"},58:{name:"PixelHeight",type:"Uint"},5290:{name:"PixelCropBottom",type:"Uint"},5307:{name:"PixelCropTop",type:"Uint"},5324:{name:"PixelCropLeft",type:"Uint"},5341:{name:"PixelCropRight",type:"Uint"},5296:{name:"DisplayWidth",type:"Uint"},5306:{name:"DisplayHeight",type:"Uint"},5298:{name:"DisplayUnit",type:"Uint"},5299:{name:"AspectRatioType",type:"Uint"},963876:{name:"ColourSpace",type:"Binary"},1029411:{name:"GammaValue",type:"Float"},230371:{name:"FrameRate",type:"Float"},97:{name:"Audio",type:"Container"},53:{name:"SamplingFrequency",type:"Float"},14517:{name:"OutputSamplingFrequency",type:"Float"},31:{name:"Channels",type:"Uint"},15739:{name:"ChannelPositions",type:"Binary"},8804:{name:"BitDepth",type:"Uint"},98:{name:"TrackOperation",type:"Container"},99:{name:"TrackCombinePlanes",type:"Container"},100:{name:"TrackPlane",type:"Container"},101:{name:"TrackPlaneUID",type:"Uint"},102:{name:"TrackPlaneType",type:"Uint"},105:{name:"TrackJoinBlocks",type:"Container"},109:{name:"TrackJoinUID",type:"Uint"},64:{name:"TrickTrackUID",type:"Uint"},65:{name:"TrickTrackSegmentUID",type:"Binary"},70:{name:"TrickTrackFlag",type:"Uint"},71:{name:"TrickMasterTrackUID",type:"Uint"},68:{name:"TrickMasterTrackSegmentUID",type:"Binary"},11648:{name:"ContentEncodings",type:"Container"},8768:{name:"ContentEncoding",type:"Container"},4145:{name:"ContentEncodingOrder",type:"Uint"},4146:{name:"ContentEncodingScope",type:"Uint"},4147:{name:"ContentEncodingType",type:"Uint"},4148:{name:"ContentCompression",type:"Container"},596:{name:"ContentCompAlgo",type:"Uint"},597:{name:"ContentCompSettings",type:"Binary"},4149:{name:"ContentEncryption",type:"Container"},2017:{name:"ContentEncAlgo",type:"Uint"},2018:{name:"ContentEncKeyID",type:"Binary"},2019:{name:"ContentSignature",type:"Binary"},2020:{name:"ContentSigKeyID",type:"Binary"},2021:{name:"ContentSigAlgo",type:"Uint"},2022:{name:"ContentSigHashAlgo",type:"Uint"},206814059:{name:"Cues",type:"Container"},59:{name:"CuePoint",type:"Container"},51:{name:"CueTime",type:"Uint"},55:{name:"CueTrackPositions",type:"Container"},119:{name:"CueTrack",type:"Uint"},113:{name:"CueClusterPosition",type:"Uint"},112:{name:"CueRelativePosition",type:"Uint"},50:{name:"CueDuration",type:"Uint"},4984:{name:"CueBlockNumber",type:"Uint"},106:{name:"CueCodecState",type:"Uint"},91:{name:"CueReference",type:"Container"},22:{name:"CueRefTime",type:"Uint"},23:{name:"CueRefCluster",type:"Uint"},4959:{name:"CueRefNumber",type:"Uint"},107:{name:"CueRefCodecState",type:"Uint"},155296873:{name:"Attachments",type:"Container"},8615:{name:"AttachedFile",type:"Container"},1662:{name:"FileDescription",type:"String"},1646:{name:"FileName",type:"String"},1632:{name:"FileMimeType",type:"String"},1628:{name:"FileData",type:"Binary"},1710:{name:"FileUID",type:"Uint"},1653:{name:"FileReferral",type:"Binary"},1633:{name:"FileUsedStartTime",type:"Uint"},1634:{name:"FileUsedEndTime",type:"Uint"},4433776:{name:"Chapters",type:"Container"},1465:{name:"EditionEntry",type:"Container"},1468:{name:"EditionUID",type:"Uint"},1469:{name:"EditionFlagHidden",type:"Uint"},1499:{name:"EditionFlagDefault",type:"Uint"},1501:{name:"EditionFlagOrdered",type:"Uint"},54:{name:"ChapterAtom",type:"Container"},13252:{name:"ChapterUID",type:"Uint"},5716:{name:"ChapterStringUID",type:"String"},17:{name:"ChapterTimeStart",type:"Uint"},18:{name:"ChapterTimeEnd",type:"Uint"},24:{name:"ChapterFlagHidden",type:"Uint"},1432:{name:"ChapterFlagEnabled",type:"Uint"},11879:{name:"ChapterSegmentUID",type:"Binary"},11964:{name:"ChapterSegmentEditionUID",type:"Uint"},9155:{name:"ChapterPhysicalEquiv",type:"Uint"},15:{name:"ChapterTrack",type:"Container"},9:{name:"ChapterTrackNumber",type:"Uint"},0:{name:"ChapterDisplay",type:"Container"},5:{name:"ChapString",type:"String"},892:{name:"ChapLanguage",type:"String"},894:{name:"ChapCountry",type:"String"},10564:{name:"ChapProcess",type:"Container"},10581:{name:"ChapProcessCodecID",type:"Uint"},1293:{name:"ChapProcessPrivate",type:"Binary"},10513:{name:"ChapProcessCommand",type:"Container"},10530:{name:"ChapProcessTime",type:"Uint"},10547:{name:"ChapProcessData",type:"Binary"},39109479:{name:"Tags",type:"Container"},13171:{name:"Tag",type:"Container"},9152:{name:"Targets",type:"Container"},10442:{name:"TargetTypeValue",type:"Uint"},9162:{name:"TargetType",type:"String"},9157:{name:"TagTrackUID",type:"Uint"},9161:{name:"TagEditionUID",type:"Uint"},9156:{name:"TagChapterUID",type:"Uint"},9158:{name:"TagAttachmentUID",type:"Uint"},10184:{name:"SimpleTag",type:"Container"},1443:{name:"TagName",type:"String"},1146:{name:"TagLanguage",type:"String"},1156:{name:"TagDefault",type:"Uint"},1159:{name:"TagString",type:"String"},1157:{name:"TagBinary",type:"Binary"}};class Ml{constructor(l="Unknown",i="Unknown"){this.name=l,this.type=i}source;data;updateBySource(){}setSource(l){this.source=l,this.updateBySource()}updateByData(){}setData(l){this.data=l,this.updateByData()}}class Uy extends Ml{constructor(l,i){super(l,i||"Uint")}updateBySource(){this.data="";for(let l=0;l=c&&u<8;u++,c*=128);if(!i){let f=c+l;for(let p=u-1;p>=0;p--){const m=f%256;this.source[this.offset+p]=m,f=(f-m)/256}}this.offset+=u}writeSections(l=!1){this.offset=0;for(let i=0;inew Promise((u,c)=>{try{const f=new FileReader;f.addEventListener("loadend",()=>{try{const p=f.result,m=new Oy(new Uint8Array(p));m.fixDuration(l)?u(m.toBlob(i)):u(r)}catch(p){c(p)}}),f.addEventListener("error",()=>c()),f.readAsArrayBuffer(r)}catch(f){c(f)}});function Fy(){const r=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let l=0;l{p(null);let x=Date.now();try{m.current||(m.current=await navigator.mediaDevices.getUserMedia({audio:!0}));const C=Fy(),E=new MediaRecorder(m.current,{mimeType:C});g.current=E,E.addEventListener("dataavailable",async B=>{if(B.data.size>0&&S.current.push(B.data),E.state==="inactive"){const Y=Date.now()-x;let z=new Blob(S.current,{type:C});C==="audio/webm"&&(z=await jy(z,Y,z.type)),p(z),r.onRecordingComplete(z),S.current=[]}}),E.start(),i(!0)}catch(C){console.error("Error accessing microphone:",C)}},j=()=>{g.current&&g.current.state==="recording"&&(g.current.stop(),c(0),i(!1))};R.useEffect(()=>{if(l){const x=setInterval(()=>{c(C=>C+1)},1e3);return()=>{clearInterval(x)}}return()=>{}},[l]);const b=()=>{l?j():P()};return L.jsxs("div",{className:"flex flex-col justify-center items-center",children:[L.jsx("button",{type:"button",className:`m-2 inline-flex justify-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-200 ${l?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"}`,onClick:b,children:l?`Stop Recording (${qd(u)})`:"Start Recording"}),f&&L.jsx("audio",{className:"w-full",ref:v,controls:!0,children:L.jsx("source",{src:URL.createObjectURL(f),type:f.type})})]})}function Dy(r){return r=r.toLowerCase(),(r.match(/\w+.?/g)||[]).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join("")}const Jf={en:"english",zh:"chinese",de:"german",es:"spanish/castilian",ru:"russian",ko:"korean",fr:"french",ja:"japanese",pt:"portuguese",tr:"turkish",pl:"polish",ca:"catalan/valencian",nl:"dutch/flemish",ar:"arabic",sv:"swedish",it:"italian",id:"indonesian",hi:"hindi",fi:"finnish",vi:"vietnamese",he:"hebrew",uk:"ukrainian",el:"greek",ms:"malay",cs:"czech",ro:"romanian/moldavian/moldovan",da:"danish",hu:"hungarian",ta:"tamil",no:"norwegian",th:"thai",ur:"urdu",hr:"croatian",bg:"bulgarian",lt:"lithuanian",la:"latin",mi:"maori",ml:"malayalam",cy:"welsh",sk:"slovak",te:"telugu",fa:"persian",lv:"latvian",bn:"bengali",sr:"serbian",az:"azerbaijani",sl:"slovenian",kn:"kannada",et:"estonian",mk:"macedonian",br:"breton",eu:"basque",is:"icelandic",hy:"armenian",ne:"nepali",mn:"mongolian",bs:"bosnian",kk:"kazakh",sq:"albanian",sw:"swahili",gl:"galician",mr:"marathi",pa:"punjabi/panjabi",si:"sinhala/sinhalese",km:"khmer",sn:"shona",yo:"yoruba",so:"somali",af:"afrikaans",oc:"occitan",ka:"georgian",be:"belarusian",tg:"tajik",sd:"sindhi",gu:"gujarati",am:"amharic",yi:"yiddish",lo:"lao",uz:"uzbek",fo:"faroese",ht:"haitian creole/haitian",ps:"pashto/pushto",tk:"turkmen",nn:"nynorsk",mt:"maltese",sa:"sanskrit",lb:"luxembourgish/letzeburgesch",my:"myanmar/burmese",bo:"tibetan",tl:"tagalog",mg:"malagasy",as:"assamese",tt:"tatar",haw:"hawaiian",ln:"lingala",ha:"hausa",ba:"bashkir",jw:"javanese",su:"sundanese"};function by(r){const[l,i]=R.useState(void 0),[u,c]=R.useState(void 0),[f,p]=R.useState(void 0),m=l!==void 0,g=()=>{c(void 0),p(void 0)},S=async(j,b)=>{const x=new AudioContext({sampleRate:Kt.SAMPLING_RATE}),C=URL.createObjectURL(new Blob([j],{type:"audio/*"})),E=await x.decodeAudioData(j);c({buffer:E,url:C,source:"URL",mimeType:b})},v=async j=>{g(),i(0);const b=URL.createObjectURL(j),x=new FileReader;x.onprogress=C=>{i(C.loaded/C.total||0)},x.onloadend=async()=>{const C=new AudioContext({sampleRate:Kt.SAMPLING_RATE}),E=x.result,B=await C.decodeAudioData(E);i(void 0),c({buffer:B,url:b,source:"RECORDING",mimeType:j.type})},x.readAsArrayBuffer(j)},P=async j=>{if(f)try{c(void 0),i(0);const{data:b,headers:x}=await be.get(f,{signal:j.signal,responseType:"arraybuffer",onDownloadProgress(E){i(E.progress||0)}});let C=x["content-type"];(!C||C==="audio/wave")&&(C="audio/wav"),S(b,C)}catch(b){console.log("Request failed or aborted",b)}finally{i(void 0)}};return R.useEffect(()=>{if(f){const j=new AbortController;return P(j),()=>{j.abort()}}},[f]),L.jsxs(L.Fragment,{children:[L.jsx("div",{className:"flex justify-center w-full",children:L.jsxs("div",{className:"flex flex-col justify-center items-center rounded-lg bg-white dark:bg-github-secondary shadow-xl shadow-black/5 ring-1 ring-slate-700/10 dark:ring-github-border",children:[L.jsxs("div",{className:"flex flex-row flex-wrap justify-center items-center gap-2 py-2 px-2",children:[L.jsx($y,{icon:L.jsx(Qy,{}),text:"From URL",onUrlUpdate:j=>{r.transcriber.onInputChange(),r.transcriber.setSourceName(j.split("/").pop()??"audio"),p(j)}}),L.jsx("div",{className:"hidden sm:block",children:L.jsx(Zf,{})}),L.jsx(Vy,{icon:L.jsx(Ky,{}),text:"From file",onFileUpdate:(j,b,x,C)=>{r.transcriber.onInputChange(),r.transcriber.setSourceName(C),c({buffer:j,url:b,source:"FILE",mimeType:x})}}),navigator.mediaDevices&&L.jsxs(L.Fragment,{children:[L.jsx("div",{className:"hidden sm:block",children:L.jsx(Zf,{})}),L.jsx(Wy,{icon:L.jsx(Xy,{}),text:"Record",setAudioData:j=>{r.transcriber.onInputChange(),r.transcriber.setSourceName("recording"),v(j)}})]})]}),L.jsx(zy,{progress:m?l:+!!u})]})}),u&&L.jsxs(L.Fragment,{children:[L.jsx(Ry,{ref:r.audioRef,audioUrl:u.url,mimeType:u.mimeType,onTimeUpdate:r.onTimeUpdate}),L.jsxs("div",{className:"relative w-full flex justify-center items-center",children:[L.jsx(Ny,{onClick:()=>{r.transcriber.start(u.buffer)},isModelLoading:r.transcriber.isModelLoading,isTranscribing:r.transcriber.isBusy,onStop:r.transcriber.stop}),L.jsx(My,{className:"absolute right-4",transcriber:r.transcriber,icon:L.jsx(Gy,{})})]}),r.transcriber.progressItems.length>0&&L.jsxs("div",{className:"relative z-10 p-4 w-full",children:[L.jsx("label",{children:"Loading model files... (only run once)"}),r.transcriber.progressItems.map(j=>L.jsx("div",{children:L.jsx(Py,{text:j.file,percentage:j.progress})},j.file))]})]})]})}function My(r){const[l,i]=R.useState(!1),u=()=>{i(!0)},c=()=>{i(!1)},f=p=>{c()};return L.jsxs("div",{className:r.className,children:[L.jsx(Kl,{icon:r.icon,onClick:u}),L.jsx(Iy,{show:l,onSubmit:f,onClose:c,transcriber:r.transcriber})]})}function Iy(r){const l=Object.values(Jf).map(Dy),i={"Xenova/whisper-tiny":[41,152],"Xenova/whisper-base":[77,291],"Xenova/whisper-small":[249],"Xenova/whisper-medium":[776],"distil-whisper/distil-medium.en":[402],"distil-whisper/distil-large-v2":[767]};return L.jsx(Cu,{show:r.show,title:"Settings",content:L.jsxs(L.Fragment,{children:[L.jsx("label",{children:"Select the model to use."}),L.jsx("select",{className:"mt-1 mb-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-github-bg dark:border-github-border dark:placeholder-github-muted dark:text-github-text dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:r.transcriber.model,onChange:u=>{r.transcriber.setModel(u.target.value)},children:Object.keys(i).filter(u=>r.transcriber.quantized||i[u].length==2).filter(u=>!r.transcriber.multilingual||!u.startsWith("distil-whisper/")).map(u=>L.jsx("option",{value:u,children:`${u}${r.transcriber.multilingual||u.startsWith("distil-whisper/")?"":".en"} (${i[u][r.transcriber.quantized?0:1]}MB)`},u))}),L.jsxs("div",{className:"flex justify-between items-center mb-3 px-1",children:[L.jsxs("div",{className:"flex",children:[L.jsx("input",{id:"multilingual",type:"checkbox",checked:r.transcriber.multilingual,onChange:u=>{r.transcriber.setMultilingual(u.target.checked)}}),L.jsx("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual"})]}),L.jsxs("div",{className:"flex",children:[L.jsx("input",{id:"quantize",type:"checkbox",checked:r.transcriber.quantized,onChange:u=>{r.transcriber.setQuantized(u.target.checked)}}),L.jsx("label",{htmlFor:"quantize",className:"ms-1",children:"Quantized"})]})]}),r.transcriber.multilingual&&L.jsxs(L.Fragment,{children:[L.jsx("label",{children:"Select the source language."}),L.jsx("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-github-bg dark:border-github-border dark:placeholder-github-muted dark:text-github-text dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:r.transcriber.language,onChange:u=>{r.transcriber.setLanguage(u.target.value)},children:Object.keys(Jf).map((u,c)=>L.jsx("option",{value:u,children:l[c]},u))}),L.jsx("label",{children:"Select the task to perform."}),L.jsxs("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-github-bg dark:border-github-border dark:placeholder-github-muted dark:text-github-text dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:r.transcriber.subtask,onChange:u=>{r.transcriber.setSubtask(u.target.value)},children:[L.jsx("option",{value:"transcribe",children:"Transcribe"}),L.jsx("option",{value:"translate",children:"Translate (to English)"})]})]}),L.jsx("label",{children:"Select the timestamp granularity."}),L.jsxs("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-github-bg dark:border-github-border dark:placeholder-github-muted dark:text-github-text dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:r.transcriber.timestampGranularity,onChange:u=>{r.transcriber.setTimestampGranularity(u.target.value)},children:[L.jsx("option",{value:"segment",children:"Segment Level"}),L.jsx("option",{value:"word",children:"Word Level"})]})]}),onClose:r.onClose,onSubmit:()=>{}})}function Zf(){return L.jsx("div",{className:"w-[1px] bg-slate-200 dark:bg-github-border"})}function zy(r){return L.jsx(By,{progress:`${Math.round(r.progress*100)}%`})}function By(r){return L.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1 dark:bg-github-border",children:L.jsx("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:r.progress}})})}function $y(r){const[l,i]=R.useState(!1),u=()=>{i(!0)},c=()=>{i(!1)},f=p=>{r.onUrlUpdate(p),c()};return L.jsxs(L.Fragment,{children:[L.jsx(Kl,{icon:r.icon,text:r.text,onClick:u}),L.jsx(Hy,{show:l,onSubmit:f,onClose:c})]})}function Hy(r){const[l,i]=R.useState(Kt.DEFAULT_AUDIO_URL),u=f=>{i(f.target.value)},c=()=>{r.onSubmit(l)};return L.jsx(Cu,{show:r.show,title:"From URL",content:L.jsxs(L.Fragment,{children:["Enter the URL of the audio file you want to load.",L.jsx(Ty,{onChange:u,value:l})]}),onClose:r.onClose,submitText:"Load",onSubmit:c})}function Vy(r){let l=document.createElement("input");return l.type="file",l.oninput=i=>{let u=i.target.files;if(!u)return;const c=URL.createObjectURL(u[0]),f=u[0].type,p=u[0].name,m=new FileReader;m.addEventListener("load",async g=>{const S=g.target?.result;if(!S)return;const P=await new AudioContext({sampleRate:Kt.SAMPLING_RATE}).decodeAudioData(S);r.onFileUpdate(P,c,f,p)}),m.readAsArrayBuffer(u[0]),l.value=""},L.jsx(L.Fragment,{children:L.jsx(Kl,{icon:r.icon,text:r.text,onClick:()=>l.click()})})}function Wy(r){const[l,i]=R.useState(!1),u=()=>{i(!0)},c=()=>{i(!1)},f=p=>{p&&(r.setAudioData(p),c())};return L.jsxs(L.Fragment,{children:[L.jsx(Kl,{icon:r.icon,text:r.text,onClick:u}),L.jsx(qy,{show:l,onSubmit:f,onClose:c})]})}function qy(r){const[l,i]=R.useState(),u=p=>{i(p)},c=()=>{r.onSubmit(l),i(void 0)},f=()=>{r.onClose(),i(void 0)};return L.jsx(Cu,{show:r.show,title:"From Recording",content:L.jsxs(L.Fragment,{children:["Record audio using your microphone",L.jsx(Ay,{onRecordingComplete:u})]}),onClose:f,submitText:"Load",submitEnabled:l!==void 0,onSubmit:c})}function Kl(r){return L.jsxs("button",{onClick:r.onClick,className:"flex items-center justify-center rounded-lg p-2 bg-transparent text-slate-500 hover:text-indigo-600 hover:bg-indigo-50 dark:text-github-text dark:hover:text-indigo-300 dark:hover:bg-github-border transition-all duration-200",children:[L.jsx("div",{className:"w-7 h-7",children:r.icon}),r.text&&L.jsx("div",{className:"ml-2 break-text text-center text-md",children:r.text})]})}function Qy(){return L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})})}function Ky(){return L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 00-1.883 2.542l.857 6a2.25 2.25 0 002.227 1.932H19.05a2.25 2.25 0 002.227-1.932l.857-6a2.25 2.25 0 00-1.883-2.542m-16.5 0V6A2.25 2.25 0 016 3.75h3.879a1.5 1.5 0 011.06.44l2.122 2.12a1.5 1.5 0 001.06.44H18A2.25 2.25 0 0120.25 9v.776"})})}function Gy(){return L.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function Xy(){return L.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:L.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})})}function Yy({transcribedData:r,sourceName:l,onTimeStampClick:i,currentAudioTime:u}){const c=R.useRef(null),f=R.useRef(null),p=()=>l?l.replace(/\.[^/.]+$/,""):"transcript",m=(x,C)=>{const E=URL.createObjectURL(x),B=document.createElement("a");B.href=E,B.download=C,B.click(),URL.revokeObjectURL(E)},g=()=>{let C=(r?.chunks??[]).map(B=>B.text.trim()).join(` `).trim();const E=new Blob([C],{type:"text/plain"});m(E,`${p()}.txt`)},S=()=>{let x=JSON.stringify(r?.chunks??[],null,2);const C=/( "timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm;x=x.replace(C,"$1[$2 $3]");const E=new Blob([x],{type:"application/json"});m(E,`${p()}.json`)},v=()=>{let x=r?.chunks??[],C="";x.forEach(B=>{const Y=B.timestamp[0],z=Math.floor(Y/60),V=Math.floor(Y%60),ne=Math.floor(Y%1*100),G=`[${String(z).padStart(2,"0")}:${String(V).padStart(2,"0")}.${String(ne).padStart(2,"0")}]`;C+=`${G}${B.text.trim()} `});const E=new Blob([C],{type:"text/plain"});m(E,`${p()}.lrc`)},P=()=>{let x=r?.chunks??[],C="";x.forEach((B,Y)=>{const z=B.timestamp[0],V=B.timestamp[1]??B.timestamp[0],ne=G=>{const te=Math.floor(G/3600),se=Math.floor(G%3600/60),ce=Math.floor(G%60),we=Math.floor(G%1*1e3);return`${String(te).padStart(2,"0")}:${String(se).padStart(2,"0")}:${String(ce).padStart(2,"0")},${String(we).padStart(3,"0")}`};C+=`${Y+1} ${ne(z)} --> ${ne(V)} ${B.text.trim()} `});const E=new Blob([C],{type:"text/plain"});m(E,`${p()}.srt`)},j=()=>{let x=r?.chunks??[],C="";x.forEach((B,Y)=>{const z=B.timestamp[0];if(Y>0){const ce=x[Y-1].timestamp[1];if(ce!==null&&z-ce>4){const Ne=ce+4,ae=Math.floor(Ne/60),le=Math.floor(Ne%60),ye=Math.floor(Ne%1*100),ke=`[${String(ae).padStart(2,"0")}:${String(le).padStart(2,"0")}.${String(ye).padStart(2,"0")}]`;C+=`${ke} `}}const V=Math.floor(z/60),ne=Math.floor(z%60),G=Math.floor(z%1*100),te=`[${String(V).padStart(2,"0")}:${String(ne).padStart(2,"0")}.${String(G).padStart(2,"0")}]`;C+=`${te}${B.text.trim()} `});const E=new Blob([C],{type:"text/plain"});m(E,`${p()}_alt.lrc`)},b=()=>{let x=r?.chunks??[],C=`