diff --git "a/assets/index-9327913a.js" "b/assets/index-9327913a.js" new file mode 100644--- /dev/null +++ "b/assets/index-9327913a.js" @@ -0,0 +1,48 @@ +var vp=Object.defineProperty;var wp=(e,t,n)=>t in e?vp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xn=(e,t,n)=>(wp(e,typeof t!="symbol"?t+"":t,n),n);function Sp(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function kp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hc={exports:{}},si={},yc={exports:{}},$={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Br=Symbol.for("react.element"),Ep=Symbol.for("react.portal"),Cp=Symbol.for("react.fragment"),xp=Symbol.for("react.strict_mode"),Tp=Symbol.for("react.profiler"),Rp=Symbol.for("react.provider"),Pp=Symbol.for("react.context"),Np=Symbol.for("react.forward_ref"),Lp=Symbol.for("react.suspense"),_p=Symbol.for("react.memo"),Op=Symbol.for("react.lazy"),zs=Symbol.iterator;function Up(e){return e===null||typeof e!="object"?null:(e=zs&&e[zs]||e["@@iterator"],typeof e=="function"?e:null)}var gc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vc=Object.assign,wc={};function Hn(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}Hn.prototype.isReactComponent={};Hn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sc(){}Sc.prototype=Hn.prototype;function _u(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}var Ou=_u.prototype=new Sc;Ou.constructor=_u;vc(Ou,Hn.prototype);Ou.isPureReactComponent=!0;var Bs=Array.isArray,kc=Object.prototype.hasOwnProperty,Uu={current:null},Ec={key:!0,ref:!0,__self:!0,__source:!0};function Cc(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)kc.call(t,r)&&!Ec.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,Z=L[z];if(0>>1;zo(W,U))eeo(K,W)?(L[z]=K,L[ee]=U,z=ee):(L[z]=W,L[at]=U,z=at);else if(eeo(K,U))L[z]=K,L[ee]=U,z=ee;else break e}}return O}function o(L,O){var U=L.sortIndex-O.sortIndex;return U!==0?U:L.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var s=[],a=[],c=1,f=null,y=3,v=!1,m=!1,g=!1,T=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(L){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=L)r(a),O.sortIndex=O.expirationTime,t(s,O);else break;O=n(a)}}function k(L){if(g=!1,h(L),!m)if(n(s)!==null)m=!0,st(C);else{var O=n(a);O!==null&&Kt(k,O.startTime-L)}}function C(L,O){m=!1,g&&(g=!1,p(N),N=-1),v=!0;var U=y;try{for(h(O),f=n(s);f!==null&&(!(f.expirationTime>O)||L&&!re());){var z=f.callback;if(typeof z=="function"){f.callback=null,y=f.priorityLevel;var Z=z(f.expirationTime<=O);O=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(s)&&r(s),h(O)}else r(s);f=n(s)}if(f!==null)var qt=!0;else{var at=n(a);at!==null&&Kt(k,at.startTime-O),qt=!1}return qt}finally{f=null,y=U,v=!1}}var P=!1,R=null,N=-1,D=5,A=-1;function re(){return!(e.unstable_now()-AL||125z?(L.sortIndex=U,t(a,L),n(s)===null&&L===n(a)&&(g?(p(N),N=-1):g=!0,Kt(k,U-z))):(L.sortIndex=Z,t(s,L),m||v||(m=!0,st(C))),L},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(L){var O=y;return function(){var U=y;y=O;try{return L.apply(this,arguments)}finally{y=U}}}})(Pc);Rc.exports=Pc;var bp=Rc.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Nc=w,_e=bp;function E(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"),xl=Object.prototype.hasOwnProperty,Vp=/^[: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]*$/,Hs={},bs={};function Wp(e){return xl.call(bs,e)?!0:xl.call(Hs,e)?!1:Vp.test(e)?bs[e]=!0:(Hs[e]=!0,!1)}function Qp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Kp(e,t,n,r){if(t===null||typeof t>"u"||Qp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Se(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Se(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){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Du=/[\-:]([a-z])/g;function $u(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(Du,$u);fe[t]=new Se(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(Du,$u);fe[t]=new Se(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(Du,$u);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mu(e,t,n,r){var o=fe.hasOwnProperty(t)?fe[t]:null;(o!==null?o.type!==0:r||!(2u||o[l]!==i[u]){var s=` +`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=u);break}}}finally{Mi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function qp(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Ii(e.type,!1),e;case 11:return e=Ii(e.type.render,!1),e;case 1:return e=Ii(e.type,!0),e;default:return""}}function Nl(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 vn:return"Fragment";case gn:return"Portal";case Tl:return"Profiler";case Iu:return"StrictMode";case Rl:return"Suspense";case Pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oc:return(e.displayName||"Context")+".Consumer";case _c:return(e._context.displayName||"Context")+".Provider";case zu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bu:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case Pt:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function Gp(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 Nl(t);case 8:return t===Iu?"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 Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xp(e){var t=Fc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){e._valueTracker||(e._valueTracker=Xp(e))}function Ac(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oo(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 Ll(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ws(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Dc(e,t){t=t.checked,t!=null&&Mu(e,"checked",t,!1)}function _l(e,t){Dc(e,t);var n=Ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ol(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ol(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qs(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ol(e,t,n){(t!=="number"||Oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Ln(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Cr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pr={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},Yp=["Webkit","ms","Moz","O"];Object.keys(pr).forEach(function(e){Yp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pr[t]=pr[e]})});function zc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pr.hasOwnProperty(e)&&pr[e]?(""+t).trim():t+"px"}function Bc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=zc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Jp=X({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 Al(e,t){if(t){if(Jp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Dl(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 $l=null;function ju(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ml=null,_n=null,On=null;function Gs(e){if(e=br(e)){if(typeof Ml!="function")throw Error(E(280));var t=e.stateNode;t&&(t=pi(t),Ml(e.stateNode,e.type,t))}}function jc(e){_n?On?On.push(e):On=[e]:_n=e}function Hc(){if(_n){var e=_n,t=On;if(On=_n=null,Gs(e),t)for(e=0;e>>=0,e===0?32:31-(am(e)/cm|0)|0}var eo=64,to=4194304;function cr(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 Do(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~o;u!==0?r=cr(u):(i&=l,i!==0&&(r=cr(i)))}else l=n&~o,l!==0?r=cr(l):i!==0&&(r=cr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function jr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qe(t),e[t]=n}function mm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=hr),oa=String.fromCharCode(32),ia=!1;function af(e,t){switch(e){case"keyup":return Hm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function Vm(e,t){switch(e){case"compositionend":return cf(t);case"keypress":return t.which!==32?null:(ia=!0,oa);case"textInput":return e=t.data,e===oa&&ia?null:e;default:return null}}function Wm(e,t){if(wn)return e==="compositionend"||!Gu&&af(e,t)?(e=uf(),vo=Qu=Ut=null,wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aa(n)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hf(){for(var e=window,t=Oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oo(e.document)}return t}function Xu(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 eh(e){var t=hf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mf(n.ownerDocument.documentElement,n)){if(r!==null&&Xu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ca(n,i);var l=ca(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Sn=null,bl=null,gr=null,Vl=!1;function fa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vl||Sn==null||Sn!==Oo(r)||(r=Sn,"selectionStart"in r&&Xu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),gr&&Lr(gr,r)||(gr=r,r=Io(bl,"onSelect"),0Cn||(e.current=Xl[Cn],Xl[Cn]=null,Cn--)}function H(e,t){Cn++,Xl[Cn]=e.current,e.current=t}var bt={},ye=Wt(bt),Ce=Wt(!1),un=bt;function $n(e,t){var n=e.type.contextTypes;if(!n)return bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xe(e){return e=e.childContextTypes,e!=null}function Bo(){V(Ce),V(ye)}function va(e,t,n){if(ye.current!==bt)throw Error(E(168));H(ye,t),H(Ce,n)}function xf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(E(108,Gp(e)||"Unknown",o));return X({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,un=ye.current,H(ye,e),H(Ce,Ce.current),!0}function wa(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=xf(e,t,un),r.__reactInternalMemoizedMergedChildContext=e,V(Ce),V(ye),H(ye,e)):V(Ce),H(Ce,n)}var ft=null,mi=!1,Ji=!1;function Tf(e){ft===null?ft=[e]:ft.push(e)}function dh(e){mi=!0,Tf(e)}function Qt(){if(!Ji&&ft!==null){Ji=!0;var e=0,t=j;try{var n=ft;for(j=1;e>=l,o-=l,dt=1<<32-qe(t)+o|n<N?(D=R,R=null):D=R.sibling;var A=y(p,R,h[N],k);if(A===null){R===null&&(R=D);break}e&&R&&A.alternate===null&&t(p,R),d=i(A,d,N),P===null?C=A:P.sibling=A,P=A,R=D}if(N===h.length)return n(p,R),Q&&Xt(p,N),C;if(R===null){for(;NN?(D=R,R=null):D=R.sibling;var re=y(p,R,A.value,k);if(re===null){R===null&&(R=D);break}e&&R&&re.alternate===null&&t(p,R),d=i(re,d,N),P===null?C=re:P.sibling=re,P=re,R=D}if(A.done)return n(p,R),Q&&Xt(p,N),C;if(R===null){for(;!A.done;N++,A=h.next())A=f(p,A.value,k),A!==null&&(d=i(A,d,N),P===null?C=A:P.sibling=A,P=A);return Q&&Xt(p,N),C}for(R=r(p,R);!A.done;N++,A=h.next())A=v(R,p,N,A.value,k),A!==null&&(e&&A.alternate!==null&&R.delete(A.key===null?N:A.key),d=i(A,d,N),P===null?C=A:P.sibling=A,P=A);return e&&R.forEach(function(He){return t(p,He)}),Q&&Xt(p,N),C}function T(p,d,h,k){if(typeof h=="object"&&h!==null&&h.type===vn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Yr:e:{for(var C=h.key,P=d;P!==null;){if(P.key===C){if(C=h.type,C===vn){if(P.tag===7){n(p,P.sibling),d=o(P,h.props.children),d.return=p,p=d;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Pt&&Ra(C)===P.type){n(p,P.sibling),d=o(P,h.props),d.ref=nr(p,P,h),d.return=p,p=d;break e}n(p,P);break}else t(p,P);P=P.sibling}h.type===vn?(d=on(h.props.children,p.mode,k,h.key),d.return=p,p=d):(k=Ro(h.type,h.key,h.props,null,p.mode,k),k.ref=nr(p,d,h),k.return=p,p=k)}return l(p);case gn:e:{for(P=h.key;d!==null;){if(d.key===P)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(p,d.sibling),d=o(d,h.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=ll(h,p.mode,k),d.return=p,p=d}return l(p);case Pt:return P=h._init,T(p,d,P(h._payload),k)}if(ar(h))return m(p,d,h,k);if(Yn(h))return g(p,d,h,k);so(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,h),d.return=p,p=d):(n(p,d),d=il(h,p.mode,k),d.return=p,p=d),l(p)):n(p,d)}return T}var In=Ff(!0),Af=Ff(!1),Vr={},it=Wt(Vr),Fr=Wt(Vr),Ar=Wt(Vr);function tn(e){if(e===Vr)throw Error(E(174));return e}function is(e,t){switch(H(Ar,t),H(Fr,e),H(it,Vr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fl(t,e)}V(it),H(it,t)}function zn(){V(it),V(Fr),V(Ar)}function Df(e){tn(Ar.current);var t=tn(it.current),n=Fl(t,e.type);t!==n&&(H(Fr,e),H(it,n))}function ls(e){Fr.current===e&&(V(it),V(Fr))}var q=Wt(0);function Ko(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zi=[];function us(){for(var e=0;en?n:4,e(!0);var r=el.transition;el.transition={};try{e(!1),t()}finally{j=n,el.transition=r}}function Yf(){return Be().memoizedState}function yh(e,t,n){var r=Bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jf(e))Zf(t,n);else if(n=Lf(e,t,n,r),n!==null){var o=ve();Ge(n,e,r,o),ed(n,t,r)}}function gh(e,t,n){var r=Bt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jf(e))Zf(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,u=i(l,n);if(o.hasEagerState=!0,o.eagerState=u,Je(u,l)){var s=t.interleaved;s===null?(o.next=o,rs(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Lf(e,t,o,r),n!==null&&(o=ve(),Ge(n,e,r,o),ed(n,t,r))}}function Jf(e){var t=e.alternate;return e===G||t!==null&&t===G}function Zf(e,t){vr=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ed(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bu(e,n)}}var Go={readContext:ze,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},vh={readContext:ze,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:Na,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4194308,4,Qf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Eo(4,2,e,t)},useMemo:function(e,t){var n=nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=yh.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:Pa,useDebugValue:ds,useDeferredValue:function(e){return nt().memoizedState=e},useTransition:function(){var e=Pa(!1),t=e[0];return e=hh.bind(null,e[1]),nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,o=nt();if(Q){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),se===null)throw Error(E(349));an&30||If(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Na(Bf.bind(null,r,i,e),[e]),r.flags|=2048,Mr(9,zf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=nt(),t=se.identifierPrefix;if(Q){var n=pt,r=dt;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Dr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[rt]=t,e[Ur]=r,ad(e,t,!1,!1),t.stateNode=e;e:{switch(l=Dl(n,r),n){case"dialog":b("cancel",e),b("close",e),o=r;break;case"iframe":case"object":case"embed":b("load",e),o=r;break;case"video":case"audio":for(o=0;ojn&&(t.flags|=128,r=!0,rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ko(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Q)return pe(t),null}else 2*J()-i.renderingStartTime>jn&&n!==1073741824&&(t.flags|=128,r=!0,rr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=J(),t.sibling=null,n=q.current,H(q,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Rh(e,t){switch(Ju(t),t.tag){case 1:return xe(t.type)&&Bo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(),V(Ce),V(ye),us(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ls(t),null;case 13:if(V(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(q),null;case 4:return zn(),null;case 10:return ns(t.type._context),null;case 22:case 23:return vs(),null;case 24:return null;default:return null}}var co=!1,me=!1,Ph=typeof WeakSet=="function"?WeakSet:Set,_=null;function Pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function su(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Ma=!1;function Nh(e,t){if(Wl=$o,e=hf(),Xu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,u=-1,s=-1,a=0,c=0,f=e,y=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(u=l+o),f!==i||r!==0&&f.nodeType!==3||(s=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(v=f.firstChild)!==null;)y=f,f=v;for(;;){if(f===e)break t;if(y===n&&++a===o&&(u=l),y===i&&++c===r&&(s=l),(v=f.nextSibling)!==null)break;f=y,y=f.parentNode}f=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ql={focusedElem:e,selectionRange:n},$o=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,T=m.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:We(t.type,g),T);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(k){Y(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return m=Ma,Ma=!1,m}function wr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&su(t,n,i)}o=o.next}while(o!==r)}}function gi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function au(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dd(e){var t=e.alternate;t!==null&&(e.alternate=null,dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rt],delete t[Ur],delete t[Gl],delete t[ch],delete t[fh])),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 pd(e){return e.tag===5||e.tag===3||e.tag===4}function Ia(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pd(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 cu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zo));else if(r!==4&&(e=e.child,e!==null))for(cu(e,t,n),e=e.sibling;e!==null;)cu(e,t,n),e=e.sibling}function fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fu(e,t,n),e=e.sibling;e!==null;)fu(e,t,n),e=e.sibling}var ae=null,Qe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)md(e,t,n),n=n.sibling}function md(e,t,n){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(ai,n)}catch{}switch(n.tag){case 5:me||Pn(n,t);case 6:var r=ae,o=Qe;ae=null,Tt(e,t,n),ae=r,Qe=o,ae!==null&&(Qe?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Qe?(e=ae,n=n.stateNode,e.nodeType===8?Yi(e.parentNode,n):e.nodeType===1&&Yi(e,n),Pr(e)):Yi(ae,n.stateNode));break;case 4:r=ae,o=Qe,ae=n.stateNode.containerInfo,Qe=!0,Tt(e,t,n),ae=r,Qe=o;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&su(n,t,l),o=o.next}while(o!==r)}Tt(e,t,n);break;case 1:if(!me&&(Pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Y(n,t,u)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,Tt(e,t,n),me=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function za(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ph),t.forEach(function(r){var o=Mh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ve(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_h(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Jo=0,I&6)throw Error(E(331));var o=I;for(I|=4,_=e.current;_!==null;){var i=_,l=i.child;if(_.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sJ()-ys?rn(e,0):hs|=n),Te(e,t)}function Ed(e,t){t===0&&(e.mode&1?(t=to,to<<=1,!(to&130023424)&&(to=4194304)):t=1);var n=ve();e=Et(e,t),e!==null&&(jr(e,t,n),Te(e,n))}function $h(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ed(e,n)}function Mh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Ed(e,n)}var Cd;Cd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,xh(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,Q&&t.flags&1048576&&Rf(t,bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Co(e,t),e=t.pendingProps;var o=$n(t,ye.current);Fn(t,n),o=as(null,t,r,e,o,n);var i=cs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(i=!0,jo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,os(t),o.updater=hi,t.stateNode=o,o._reactInternals=t,tu(t,r,e,n),t=ou(null,t,r,!0,i,n)):(t.tag=0,Q&&i&&Yu(t),ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Co(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=zh(r),e=We(r,e),o){case 0:t=ru(null,t,r,e,n);break e;case 1:t=Aa(null,t,r,e,n);break e;case 11:t=Ua(null,t,r,e,n);break e;case 14:t=Fa(null,t,r,We(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),ru(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Aa(e,t,r,o,n);case 3:e:{if(ld(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,o=i.element,_f(e,t),Qo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Bn(Error(E(423)),t),t=Da(e,t,r,n,o);break e}else if(r!==o){o=Bn(Error(E(424)),t),t=Da(e,t,r,n,o);break e}else for(Ne=Mt(t.stateNode.containerInfo.firstChild),Le=t,Q=!0,Ke=null,n=Af(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===o){t=Ct(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return Df(t),e===null&&Jl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Kl(r,o)?l=null:i!==null&&Kl(r,i)&&(t.flags|=32),id(e,t),ge(e,t,l,n),t.child;case 6:return e===null&&Jl(t),null;case 13:return ud(e,t,n);case 4:return is(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=In(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Ua(e,t,r,o,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,H(Vo,r._currentValue),r._currentValue=l,i!==null)if(Je(i.value,l)){if(i.children===o.children&&!Ce.current){t=Ct(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){l=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=gt(-1,n&-n),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Zl(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(E(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Zl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fn(t,n),o=ze(o),r=r(o),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,o=We(r,t.pendingProps),o=We(r.type,o),Fa(e,t,r,o,n);case 15:return rd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Co(e,t),t.tag=1,xe(r)?(e=!0,jo(t)):e=!1,Fn(t,n),Uf(t,r,o),tu(t,r,o,n),ou(null,t,r,!0,e,n);case 19:return sd(e,t,n);case 22:return od(e,t,n)}throw Error(E(156,t.tag))};function xd(e,t){return Gc(e,t)}function Ih(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $e(e,t,n,r){return new Ih(e,t,n,r)}function Ss(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zh(e){if(typeof e=="function")return Ss(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zu)return 11;if(e===Bu)return 14}return 2}function jt(e,t){var n=e.alternate;return n===null?(n=$e(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 Ro(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Ss(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case vn:return on(n.children,o,i,t);case Iu:l=8,o|=8;break;case Tl:return e=$e(12,n,t,o|2),e.elementType=Tl,e.lanes=i,e;case Rl:return e=$e(13,n,t,o),e.elementType=Rl,e.lanes=i,e;case Pl:return e=$e(19,n,t,o),e.elementType=Pl,e.lanes=i,e;case Uc:return wi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _c:l=10;break e;case Oc:l=9;break e;case zu:l=11;break e;case Bu:l=14;break e;case Pt:l=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=$e(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function on(e,t,n,r){return e=$e(7,e,r,t),e.lanes=n,e}function wi(e,t,n,r){return e=$e(22,e,r,t),e.elementType=Uc,e.lanes=n,e.stateNode={isHidden:!1},e}function il(e,t,n){return e=$e(6,e,null,t),e.lanes=n,e}function ll(e,t,n){return t=$e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bh(e,t,n,r,o){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=Bi(0),this.expirationTimes=Bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ks(e,t,n,r,o,i,l,u,s){return e=new Bh(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$e(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},os(i),e}function jh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nd)}catch(e){console.error(e)}}Nd(),Tc.exports=Oe;var Ld=Tc.exports,Ka=Ld;Cl.createRoot=Ka.createRoot,Cl.hydrateRoot=Ka.hydrateRoot;function _d(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qh}=Object.prototype,{getPrototypeOf:Ts}=Object,xi=(e=>t=>{const n=Qh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),t=>xi(t)===e),Ti=e=>t=>typeof t===e,{isArray:Wn}=Array,zr=Ti("undefined");function Kh(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&Ie(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Od=Ze("ArrayBuffer");function qh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Od(e.buffer),t}const Gh=Ti("string"),Ie=Ti("function"),Ud=Ti("number"),Ri=e=>e!==null&&typeof e=="object",Xh=e=>e===!0||e===!1,Po=e=>{if(xi(e)!=="object")return!1;const t=Ts(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Yh=Ze("Date"),Jh=Ze("File"),Zh=Ze("Blob"),e0=Ze("FileList"),t0=e=>Ri(e)&&Ie(e.pipe),n0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ie(e.append)&&((t=xi(e))==="formdata"||t==="object"&&Ie(e.toString)&&e.toString()==="[object FormData]"))},r0=Ze("URLSearchParams"),[o0,i0,l0,u0]=["ReadableStream","Request","Response","Headers"].map(Ze),s0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Wn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ad=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Dd=e=>!zr(e)&&e!==Ad;function yu(){const{caseless:e}=Dd(this)&&this||{},t={},n=(r,o)=>{const i=e&&Fd(t,o)||o;Po(t[i])&&Po(r)?t[i]=yu(t[i],r):Po(r)?t[i]=yu({},r):Wn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Wr(t,(o,i)=>{n&&Ie(o)?e[i]=_d(o,n):e[i]=o},{allOwnKeys:r}),e),c0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),f0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},d0=(e,t,n,r)=>{let o,i,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Ts(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},p0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},m0=e=>{if(!e)return null;if(Wn(e))return e;let t=e.length;if(!Ud(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},h0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ts(Uint8Array)),y0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},g0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},v0=Ze("HTMLFormElement"),w0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),qa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),S0=Ze("RegExp"),$d=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wr(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},k0=e=>{$d(e,(t,n)=>{if(Ie(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ie(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},E0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Wn(e)?r(e):r(String(e).split(t)),n},C0=()=>{},x0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ul="abcdefghijklmnopqrstuvwxyz",Ga="0123456789",Md={DIGIT:Ga,ALPHA:ul,ALPHA_DIGIT:ul+ul.toUpperCase()+Ga},T0=(e=16,t=Md.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function R0(e){return!!(e&&Ie(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const P0=e=>{const t=new Array(10),n=(r,o)=>{if(Ri(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Wn(r)?[]:{};return Wr(r,(l,u)=>{const s=n(l,o+1);!zr(s)&&(i[u]=s)}),t[o]=void 0,i}}return r};return n(e,0)},N0=Ze("AsyncFunction"),L0=e=>e&&(Ri(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),S={isArray:Wn,isArrayBuffer:Od,isBuffer:Kh,isFormData:n0,isArrayBufferView:qh,isString:Gh,isNumber:Ud,isBoolean:Xh,isObject:Ri,isPlainObject:Po,isReadableStream:o0,isRequest:i0,isResponse:l0,isHeaders:u0,isUndefined:zr,isDate:Yh,isFile:Jh,isBlob:Zh,isRegExp:S0,isFunction:Ie,isStream:t0,isURLSearchParams:r0,isTypedArray:h0,isFileList:e0,forEach:Wr,merge:yu,extend:a0,trim:s0,stripBOM:c0,inherits:f0,toFlatObject:d0,kindOf:xi,kindOfTest:Ze,endsWith:p0,toArray:m0,forEachEntry:y0,matchAll:g0,isHTMLForm:v0,hasOwnProperty:qa,hasOwnProp:qa,reduceDescriptors:$d,freezeMethods:k0,toObjectSet:E0,toCamelCase:w0,noop:C0,toFiniteNumber:x0,findKey:Fd,global:Ad,isContextDefined:Dd,ALPHABET:Md,generateString:T0,isSpecCompliantForm:R0,toJSONObject:P0,isAsyncFn:N0,isThenable:L0};function F(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}S.inherits(F,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:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Id=F.prototype,zd={};["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(e=>{zd[e]={value:e}});Object.defineProperties(F,zd);Object.defineProperty(Id,"isAxiosError",{value:!0});F.from=(e,t,n,r,o,i)=>{const l=Object.create(Id);return S.toFlatObject(e,l,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),F.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const _0=null;function gu(e){return S.isPlainObject(e)||S.isArray(e)}function Bd(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Xa(e,t,n){return e?e.concat(t).map(function(o,i){return o=Bd(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function O0(e){return S.isArray(e)&&!e.some(gu)}const U0=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Pi(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,T){return!S.isUndefined(T[g])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function a(m){if(m===null)return"";if(S.isDate(m))return m.toISOString();if(!s&&S.isBlob(m))throw new F("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(m)||S.isTypedArray(m)?s&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,T){let p=m;if(m&&!T&&typeof m=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(S.isArray(m)&&O0(m)||(S.isFileList(m)||S.endsWith(g,"[]"))&&(p=S.toArray(m)))return g=Bd(g),p.forEach(function(h,k){!(S.isUndefined(h)||h===null)&&t.append(l===!0?Xa([g],k,i):l===null?g:g+"[]",a(h))}),!1}return gu(m)?!0:(t.append(Xa(T,g,i),a(m)),!1)}const f=[],y=Object.assign(U0,{defaultVisitor:c,convertValue:a,isVisitable:gu});function v(m,g){if(!S.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),S.forEach(m,function(p,d){(!(S.isUndefined(p)||p===null)&&o.call(t,p,S.isString(d)?d.trim():d,g,y))===!0&&v(p,g?g.concat(d):[d])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ya(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Rs(e,t){this._pairs=[],e&&Pi(e,this,t)}const jd=Rs.prototype;jd.append=function(t,n){this._pairs.push([t,n])};jd.toString=function(t){const n=t?function(r){return t.call(this,r,Ya)}:Ya;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function F0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hd(e,t,n){if(!t)return e;const r=n&&n.encode||F0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=S.isURLSearchParams(t)?t.toString():new Rs(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class A0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ja=A0,bd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},D0=typeof URLSearchParams<"u"?URLSearchParams:Rs,$0=typeof FormData<"u"?FormData:null,M0=typeof Blob<"u"?Blob:null,I0={isBrowser:!0,classes:{URLSearchParams:D0,FormData:$0,Blob:M0},protocols:["http","https","file","blob","url","data"]},Ps=typeof window<"u"&&typeof document<"u",z0=(e=>Ps&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),B0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),j0=Ps&&window.location.href||"http://localhost",H0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ps,hasStandardBrowserEnv:z0,hasStandardBrowserWebWorkerEnv:B0,origin:j0},Symbol.toStringTag,{value:"Module"})),Xe={...H0,...I0};function b0(e,t){return Pi(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Xe.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function V0(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function W0(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&S.isArray(o)?o.length:l,s?(S.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!S.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&S.isArray(o[l])&&(o[l]=W0(o[l])),!u)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(V0(r),o,n,0)}),n}return null}function Q0(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ns={transitional:bd,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Vd(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return b0(t,this.formSerializer).toString();if((u=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Pi(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Q0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ns.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?F.from(u,F.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Ns.headers[e]={}});const Ls=Ns,K0=S.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"]),q0=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&K0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Za=Symbol("internals");function ir(e){return e&&String(e).trim().toLowerCase()}function No(e){return e===!1||e==null?e:S.isArray(e)?e.map(No):String(e)}function G0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const X0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sl(e,t,n,r,o){if(S.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function Y0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function J0(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class Ni{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,s,a){const c=ir(s);if(!c)throw new Error("header name must be a non-empty string");const f=S.findKey(o,c);(!f||o[f]===void 0||a===!0||a===void 0&&o[f]!==!1)&&(o[f||s]=No(u))}const l=(u,s)=>S.forEach(u,(a,c)=>i(a,c,s));if(S.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(S.isString(t)&&(t=t.trim())&&!X0(t))l(q0(t),n);else if(S.isHeaders(t))for(const[u,s]of t.entries())i(s,u,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ir(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return G0(o);if(S.isFunction(n))return n.call(this,o,r);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ir(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||sl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=ir(l),l){const u=S.findKey(r,l);u&&(!n||sl(r,r[u],u,n))&&(delete r[u],o=!0)}}return S.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||sl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return S.forEach(this,(o,i)=>{const l=S.findKey(r,i);if(l){n[l]=No(o),delete n[i];return}const u=t?Y0(i):String(i).trim();u!==i&&delete n[i],n[u]=No(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Za]=this[Za]={accessors:{}}).accessors,o=this.prototype;function i(l){const u=ir(l);r[u]||(J0(o,l),r[u]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}}Ni.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Ni.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Ni);const Ye=Ni;function al(e,t){const n=this||Ls,r=t||n,o=Ye.from(r.headers);let i=r.data;return S.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Wd(e){return!!(e&&e.__CANCEL__)}function Qn(e,t,n){F.call(this,e??"canceled",F.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Qn,F,{__CANCEL__:!0});function Qd(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Z0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ey(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),c=r[i];l||(l=a),n[o]=s,r[o]=a;let f=i,y=0;for(;f!==o;)y+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-lr)return o&&(clearTimeout(o),o=null),n=u,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(u-n)))}}const ti=(e,t,n=3)=>{let r=0;const o=ey(50,250);return ty(i=>{const l=i.loaded,u=i.lengthComputable?i.total:void 0,s=l-r,a=o(s),c=l<=u;r=l;const f={loaded:l,total:u,progress:u?l/u:void 0,bytes:s,rate:a||void 0,estimated:a&&u&&c?(u-l)/a:void 0,event:i,lengthComputable:u!=null};f[t?"download":"upload"]=!0,e(f)},n)},ny=Xe.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const u=S.isString(l)?o(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),ry=Xe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),S.isString(r)&&l.push("path="+r),S.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Kd(e,t){return e&&!oy(t)?iy(e,t):t}const ec=e=>e instanceof Ye?{...e}:e;function dn(e,t){t=t||{};const n={};function r(a,c,f){return S.isPlainObject(a)&&S.isPlainObject(c)?S.merge.call({caseless:f},a,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function o(a,c,f){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a,f)}else return r(a,c,f)}function i(a,c){if(!S.isUndefined(c))return r(void 0,c)}function l(a,c){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function u(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const s={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(a,c)=>o(ec(a),ec(c),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||o,y=f(e[c],t[c],c);S.isUndefined(y)&&f!==u||(n[c]=y)}),n}const qd=e=>{const t=dn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:u}=t;t.headers=l=Ye.from(l),t.url=Hd(Kd(t.baseURL,t.url),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let s;if(S.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((s=l.getContentType())!==!1){const[a,...c]=s?s.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([a||"multipart/form-data",...c].join("; "))}}if(Xe.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&ny(t.url))){const a=o&&i&&ry.read(i);a&&l.set(o,a)}return t},ly=typeof XMLHttpRequest<"u",uy=ly&&function(e){return new Promise(function(n,r){const o=qd(e);let i=o.data;const l=Ye.from(o.headers).normalize();let{responseType:u}=o,s;function a(){o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let c=new XMLHttpRequest;c.open(o.method.toUpperCase(),o.url,!0),c.timeout=o.timeout;function f(){if(!c)return;const v=Ye.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!u||u==="text"||u==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};Qd(function(p){n(p),a()},function(p){r(p),a()},g),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new F("Request aborted",F.ECONNABORTED,o,c)),c=null)},c.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,o,c)),c=null},c.ontimeout=function(){let m=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const g=o.transitional||bd;o.timeoutErrorMessage&&(m=o.timeoutErrorMessage),r(new F(m,g.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,o,c)),c=null},i===void 0&&l.setContentType(null),"setRequestHeader"in c&&S.forEach(l.toJSON(),function(m,g){c.setRequestHeader(g,m)}),S.isUndefined(o.withCredentials)||(c.withCredentials=!!o.withCredentials),u&&u!=="json"&&(c.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&c.addEventListener("progress",ti(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ti(o.onUploadProgress)),(o.cancelToken||o.signal)&&(s=v=>{c&&(r(!v||v.type?new Qn(null,e,c):v),c.abort(),c=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const y=Z0(o.url);if(y&&Xe.protocols.indexOf(y)===-1){r(new F("Unsupported protocol "+y+":",F.ERR_BAD_REQUEST,e));return}c.send(i||null)})},sy=(e,t)=>{let n=new AbortController,r;const o=function(s){if(!r){r=!0,l();const a=s instanceof Error?s:this.reason;n.abort(a instanceof F?a:new Qn(a instanceof Error?a.message:a))}};let i=t&&setTimeout(()=>{o(new F(`timeout ${t} of ms exceeded`,F.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s&&(s.removeEventListener?s.removeEventListener("abort",o):s.unsubscribe(o))}),e=null)};e.forEach(s=>s&&s.addEventListener&&s.addEventListener("abort",o));const{signal:u}=n;return u.unsubscribe=l,[u,()=>{i&&clearTimeout(i),i=null}]},ay=sy,cy=function*(e,t){let n=e.byteLength;if(!t||n{const i=fy(e,t,o);let l=0;return new ReadableStream({type:"bytes",async pull(u){const{done:s,value:a}=await i.next();if(s){u.close(),r();return}let c=a.byteLength;n&&n(l+=c),u.enqueue(new Uint8Array(a))},cancel(u){return r(u),i.return()}},{highWaterMark:2})},nc=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Li=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gd=Li&&typeof ReadableStream=="function",vu=Li&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dy=Gd&&(()=>{let e=!1;const t=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),rc=64*1024,wu=Gd&&!!(()=>{try{return S.isReadableStream(new Response("").body)}catch{}})(),ni={stream:wu&&(e=>e.body)};Li&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ni[t]&&(ni[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new F(`Response type '${t}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const py=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await vu(e)).byteLength},my=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??py(t)},hy=Li&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:l,onDownloadProgress:u,onUploadProgress:s,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:y}=qd(e);a=a?(a+"").toLowerCase():"text";let[v,m]=o||i||l?ay([o,i],l):[],g,T;const p=()=>{!g&&setTimeout(()=>{v&&v.unsubscribe()}),g=!0};let d;try{if(s&&dy&&n!=="get"&&n!=="head"&&(d=await my(c,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),R;S.isFormData(r)&&(R=P.headers.get("content-type"))&&c.setContentType(R),P.body&&(r=tc(P.body,rc,nc(d,ti(s)),null,vu))}S.isString(f)||(f=f?"cors":"omit"),T=new Request(t,{...y,signal:v,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let h=await fetch(T);const k=wu&&(a==="stream"||a==="response");if(wu&&(u||k)){const P={};["status","statusText","headers"].forEach(N=>{P[N]=h[N]});const R=S.toFiniteNumber(h.headers.get("content-length"));h=new Response(tc(h.body,rc,u&&nc(R,ti(u,!0)),k&&p,vu),P)}a=a||"text";let C=await ni[S.findKey(ni,a)||"text"](h,e);return!k&&p(),m&&m(),await new Promise((P,R)=>{Qd(P,R,{data:C,headers:Ye.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:T})})}catch(h){throw p(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,e,T),{cause:h.cause||h}):F.from(h,h&&h.code,e,T)}}),Su={http:_0,xhr:uy,fetch:hy};S.forEach(Su,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const oc=e=>`- ${e}`,yy=e=>S.isFunction(e)||e===null||e===!1,Xd={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : +`+i.map(oc).join(` +`):" "+oc(i[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Su};function cl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qn(null,e)}function ic(e){return cl(e),e.headers=Ye.from(e.headers),e.data=al.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xd.getAdapter(e.adapter||Ls.adapter)(e).then(function(r){return cl(e),r.data=al.call(e,e.transformResponse,r),r.headers=Ye.from(r.headers),r},function(r){return Wd(r)||(cl(e),r&&r.response&&(r.response.data=al.call(e,e.transformResponse,r.response),r.response.headers=Ye.from(r.response.headers))),Promise.reject(r)})}const Yd="1.7.2",_s={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_s[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const lc={};_s.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Yd+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,u)=>{if(t===!1)throw new F(o(l," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!lc[l]&&(lc[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,u):!0}};function gy(e,t,n){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const u=e[i],s=u===void 0||l(u,i,e);if(s!==!0)throw new F("option "+i+" must be "+s,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+i,F.ERR_BAD_OPTION)}}const ku={assertOptions:gy,validators:_s},Rt=ku.validators;class ri{constructor(t){this.defaults=t,this.interceptors={request:new Ja,response:new Ja}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=dn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ku.assertOptions(r,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:ku.assertOptions(o,{encode:Rt.function,serialize:Rt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&S.merge(i.common,i[n.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Ye.concat(l,i);const u=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let c,f=0,y;if(!s){const m=[ic.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,a),y=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(u=>{r.subscribe(u),i=u}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,u){r.reason||(r.reason=new Qn(i,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Os(function(o){t=o}),cancel:t}}}const vy=Os;function wy(e){return function(n){return e.apply(null,n)}}function Sy(e){return S.isObject(e)&&e.isAxiosError===!0}const Eu={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};Object.entries(Eu).forEach(([e,t])=>{Eu[t]=e});const ky=Eu;function Jd(e){const t=new Lo(e),n=_d(Lo.prototype.request,t);return S.extend(n,Lo.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Jd(dn(e,o))},n}const ne=Jd(Ls);ne.Axios=Lo;ne.CanceledError=Qn;ne.CancelToken=vy;ne.isCancel=Wd;ne.VERSION=Yd;ne.toFormData=Pi;ne.AxiosError=F;ne.Cancel=ne.CanceledError;ne.all=function(t){return Promise.all(t)};ne.spread=wy;ne.isAxiosError=Sy;ne.mergeConfig=dn;ne.AxiosHeaders=Ye;ne.formToJSON=e=>Vd(S.isHTMLForm(e)?new FormData(e):e);ne.getAdapter=Xd.getAdapter;ne.HttpStatusCode=ky;ne.default=ne;const Ey=ne;var Cy=Object.defineProperty,xy=(e,t,n)=>t in e?Cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fl=(e,t,n)=>(xy(e,typeof t!="symbol"?t+"":t,n),n);let Ty=class{constructor(){fl(this,"current",this.detect()),fl(this,"handoffState","pending"),fl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}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"}},vt=new Ty,lt=(e,t)=>{vt.isServer?w.useEffect(e,t):w.useLayoutEffect(e,t)};function wt(e){let t=w.useRef(e);return lt(()=>{t.current=e},[e]),t}function Qr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Kn(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Qr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Kn();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Us(){let[e]=w.useState(Kn);return w.useEffect(()=>()=>e.dispose(),[e]),e}let ue=function(e){let t=wt(e);return M.useCallback((...n)=>t.current(...n),[t])};function qn(){let[e,t]=w.useState(vt.isHandoffComplete);return e&&vt.isHandoffComplete===!1&&t(!1),w.useEffect(()=>{e!==!0&&t(!0)},[e]),w.useEffect(()=>vt.handoff(),[]),e}var uc;let Gn=(uc=M.useId)!=null?uc:function(){let e=qn(),[t,n]=M.useState(e?()=>vt.nextId():null);return lt(()=>{t===null&&n(vt.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,he),r}function Zd(e){return vt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Cu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Jt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Jt||{}),ep=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ep||{}),Ry=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ry||{});function Py(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Cu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var tp=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(tp||{});function Ny(e,t=0){var n;return e===((n=Zd(e))==null?void 0:n.body)?!1:he(t,{0(){return e.matches(Cu)},1(){let r=e;for(;r!==null;){if(r.matches(Cu))return!0;r=r.parentElement}return!1}})}var Ly=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ly||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ln(e){e==null||e.focus({preventScroll:!0})}let _y=["textarea","input"].join(",");function Oy(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,_y))!=null?n:!1}function Uy(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _o(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?Uy(e):e:Py(e);o.length>0&&l.length>1&&(l=l.filter(v=>!o.includes(v))),r=r??i.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},c=0,f=l.length,y;do{if(c>=f||c+f<=0)return 0;let v=s+c;if(t&16)v=(v+f)%f;else{if(v<0)return 3;if(v>=f)return 1}y=l[v],y==null||y.focus(a),c+=u}while(y!==i.activeElement);return t&6&&Oy(y)&&y.select(),2}function dl(e,t,n){let r=wt(t);w.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Fy(e,t,n=!0){let r=w.useRef(!1);w.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(l,u){if(!r.current||l.defaultPrevented)return;let s=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e),a=u(l);if(a!==null&&a.getRootNode().contains(a)){for(let c of s){if(c===null)continue;let f=c instanceof HTMLElement?c:c.current;if(f!=null&&f.contains(a)||l.composed&&l.composedPath().includes(f))return}return!Ny(a,tp.Loose)&&a.tabIndex!==-1&&l.preventDefault(),t(l,a)}}let i=w.useRef(null);dl("mousedown",l=>{var u,s;r.current&&(i.current=((s=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:s[0])||l.target)},!0),dl("click",l=>{i.current&&(o(l,()=>i.current),i.current=null)},!0),dl("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let np=Symbol();function Ay(e,t=!0){return Object.assign(e,{[np]:t})}function et(...e){let t=w.useRef(e);w.useEffect(()=>{t.current=e},[e]);let n=ue(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[np]))?void 0:n}function xu(...e){return e.filter(Boolean).join(" ")}var oi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(oi||{}),mt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(mt||{});function je({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l}){let u=rp(t,e);if(i)return mo(u,n,r,l);let s=o??0;if(s&2){let{static:a=!1,...c}=u;if(a)return mo(c,n,r,l)}if(s&1){let{unmount:a=!0,...c}=u;return he(a?0:1,{0(){return null},1(){return mo({...c,hidden:!0,style:{display:"none"}},n,r,l)}})}return mo(u,n,r,l)}function mo(e,t={},n,r){let{as:o=n,children:i,refName:l="ref",...u}=pl(e,["unmount","static"]),s=e.ref!==void 0?{[l]:e.ref}:{},a=typeof i=="function"?i(t):i;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let c={};if(t){let f=!1,y=[];for(let[v,m]of Object.entries(t))typeof m=="boolean"&&(f=!0),m===!0&&y.push(v);f&&(c["data-headlessui-state"]=y.join(" "))}if(o===w.Fragment&&Object.keys(sc(u)).length>0){if(!w.isValidElement(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(m=>` - ${m}`).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(m=>` - ${m}`).join(` +`)].join(` +`));let f=a.props,y=typeof(f==null?void 0:f.className)=="function"?(...m)=>xu(f==null?void 0:f.className(...m),u.className):xu(f==null?void 0:f.className,u.className),v=y?{className:y}:{};return w.cloneElement(a,Object.assign({},rp(a.props,sc(pl(u,["ref"]))),c,s,Dy(a.ref,s.ref),v))}return w.createElement(o,Object.assign({},pl(u,["ref"]),o!==w.Fragment&&s,o!==w.Fragment&&c),a)}function Dy(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function rp(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let u of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;u(o,...i)}}});return t}function Fe(e){var t;return Object.assign(w.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function sc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function pl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function $y(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&My(n)?!1:r}function My(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Iy="div";var ii=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ii||{});function zy(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!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",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return je({ourProps:o,theirProps:r,slot:{},defaultTag:Iy,name:"Hidden"})}let Tu=Fe(zy),Fs=w.createContext(null);Fs.displayName="OpenClosedContext";var Pe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pe||{});function As(){return w.useContext(Fs)}function By({value:e,children:t}){return M.createElement(Fs.Provider,{value:e},t)}var op=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(op||{});function Ds(e,t){let n=w.useRef([]),r=ue(e);w.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let u=r(t,o);return n.current=t,u}},[r,...t])}function jy(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Hy(e,t,n){let r=wt(t);w.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}var dr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(dr||{});function by(){let e=w.useRef(0);return Hy("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Kr(){let e=w.useRef(!1);return lt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _i(...e){return w.useMemo(()=>Zd(...e),[...e])}function ip(e,t,n,r){let o=wt(n);w.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Vy(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function lp(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Wy="div";var up=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(up||{});function Qy(e,t){let n=w.useRef(null),r=et(n,t),{initialFocus:o,containers:i,features:l=30,...u}=e;qn()||(l=1);let s=_i(n);Gy({ownerDocument:s},!!(l&16));let a=Xy({ownerDocument:s,container:n,initialFocus:o},!!(l&2));Yy({ownerDocument:s,container:n,containers:i,previousActiveElement:a},!!(l&8));let c=by(),f=ue(g=>{let T=n.current;T&&(p=>p())(()=>{he(c.current,{[dr.Forwards]:()=>{_o(T,Jt.First,{skipElements:[g.relatedTarget]})},[dr.Backwards]:()=>{_o(T,Jt.Last,{skipElements:[g.relatedTarget]})}})})}),y=Us(),v=w.useRef(!1),m={ref:r,onKeyDown(g){g.key=="Tab"&&(v.current=!0,y.requestAnimationFrame(()=>{v.current=!1}))},onBlur(g){let T=lp(i);n.current instanceof HTMLElement&&T.add(n.current);let p=g.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(sp(T,p)||(v.current?_o(n.current,he(c.current,{[dr.Forwards]:()=>Jt.Next,[dr.Backwards]:()=>Jt.Previous})|Jt.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&ln(g.target)))}};return M.createElement(M.Fragment,null,!!(l&4)&&M.createElement(Tu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:ii.Focusable}),je({ourProps:m,theirProps:u,defaultTag:Wy,name:"FocusTrap"}),!!(l&4)&&M.createElement(Tu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:ii.Focusable}))}let Ky=Fe(Qy),lr=Object.assign(Ky,{features:up}),Ot=[];Vy(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ot[0]!==t.target&&(Ot.unshift(t.target),Ot=Ot.filter(n=>n!=null&&n.isConnected),Ot.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function qy(e=!0){let t=w.useRef(Ot.slice());return Ds(([n],[r])=>{r===!0&&n===!1&&Qr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ot.slice())},[e,Ot,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Gy({ownerDocument:e},t){let n=qy(t);Ds(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ln(n())},[t]);let r=w.useRef(!1);w.useEffect(()=>(r.current=!1,()=>{r.current=!0,Qr(()=>{r.current&&ln(n())})}),[])}function Xy({ownerDocument:e,container:t,initialFocus:n},r){let o=w.useRef(null),i=Kr();return Ds(()=>{if(!r)return;let l=t.current;l&&Qr(()=>{if(!i.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}n!=null&&n.current?ln(n.current):_o(l,Jt.First)===ep.Error&&console.warn("There are no focusable elements inside the "),o.current=e==null?void 0:e.activeElement})},[r]),o}function Yy({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Kr();ip(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let u=lp(n);t.current instanceof HTMLElement&&u.add(t.current);let s=r.current;if(!s)return;let a=l.target;a&&a instanceof HTMLElement?sp(u,a)?(r.current=a,ln(a)):(l.preventDefault(),l.stopPropagation(),ln(s)):ln(r.current)},!0)}function sp(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let ap=w.createContext(!1);function Jy(){return w.useContext(ap)}function Ru(e){return M.createElement(ap.Provider,{value:e.force},e.children)}function Zy(e){let t=Jy(),n=w.useContext(cp),r=_i(e),[o,i]=w.useState(()=>{if(!t&&n!==null||vt.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return w.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),w.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let eg=w.Fragment;function tg(e,t){let n=e,r=w.useRef(null),o=et(Ay(c=>{r.current=c}),t),i=_i(r),l=Zy(r),[u]=w.useState(()=>{var c;return vt.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),s=qn(),a=w.useRef(!1);return lt(()=>{if(a.current=!1,!(!l||!u))return l.contains(u)||(u.setAttribute("data-headlessui-portal",""),l.appendChild(u)),()=>{a.current=!0,Qr(()=>{var c;a.current&&(!l||!u||(u instanceof Node&&l.contains(u)&&l.removeChild(u),l.childNodes.length<=0&&((c=l.parentElement)==null||c.removeChild(l))))})}},[l,u]),s?!l||!u?null:Ld.createPortal(je({ourProps:{ref:o},theirProps:n,defaultTag:eg,name:"Portal"}),u):null}let ng=w.Fragment,cp=w.createContext(null);function rg(e,t){let{target:n,...r}=e,o={ref:et(t)};return M.createElement(cp.Provider,{value:n},je({ourProps:o,theirProps:r,defaultTag:ng,name:"Popover.Group"}))}let og=Fe(tg),ig=Fe(rg),Pu=Object.assign(og,{Group:ig}),fp=w.createContext(null);function dp(){let e=w.useContext(fp);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,dp),t}return e}function lg(){let[e,t]=w.useState([]);return[e.length>0?e.join(" "):void 0,w.useMemo(()=>function(n){let r=ue(i=>(t(l=>[...l,i]),()=>t(l=>{let u=l.slice(),s=u.indexOf(i);return s!==-1&&u.splice(s,1),u}))),o=w.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return M.createElement(fp.Provider,{value:o},n.children)},[t])]}let ug="p";function sg(e,t){let n=Gn(),{id:r=`headlessui-description-${n}`,...o}=e,i=dp(),l=et(t);lt(()=>i.register(r),[r,i.register]);let u={ref:l,...i.props,id:r};return je({ourProps:u,theirProps:o,slot:i.slot||{},defaultTag:ug,name:i.name||"Description"})}let ag=Fe(sg),cg=Object.assign(ag,{}),$s=w.createContext(()=>{});$s.displayName="StackContext";var Nu=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Nu||{});function fg(){return w.useContext($s)}function dg({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=fg(),l=ue((...u)=>{t==null||t(...u),i(...u)});return lt(()=>{let u=o===void 0||o===!0;return u&&l(0,n,r),()=>{u&&l(1,n,r)}},[l,n,r,o]),M.createElement($s.Provider,{value:l},e)}function pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const mg=typeof Object.is=="function"?Object.is:pg,{useState:hg,useEffect:yg,useLayoutEffect:gg,useDebugValue:vg}=El;function wg(e,t,n){const r=t(),[{inst:o},i]=hg({inst:{value:r,getSnapshot:t}});return gg(()=>{o.value=r,o.getSnapshot=t,ml(o)&&i({inst:o})},[e,r,t]),yg(()=>(ml(o)&&i({inst:o}),e(()=>{ml(o)&&i({inst:o})})),[e]),vg(r),r}function ml(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!mg(n,r)}catch{return!0}}function Sg(e,t,n){return t()}const kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eg=!kg,Cg=Eg?Sg:wg,xg="useSyncExternalStore"in El?(e=>e.useSyncExternalStore)(El):Cg;function Tg(e){return xg(e.subscribe,e.getSnapshot,e.getSnapshot)}function Rg(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(u=>u()))}}}function Pg(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function Ng(){if(!jy())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(l){return r.containers.flatMap(u=>u()).some(u=>u.contains(l))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let u=l.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),a=t.querySelector(s);a&&!o(a)&&(i=a)}catch{}},!0),n.addEventListener(t,"touchmove",l=>{l.target instanceof HTMLElement&&!o(l.target)&&l.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function Lg(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function _g(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let nn=Rg(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Kn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:_g(n)},o=[Ng(),Pg(),Lg()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});nn.subscribe(()=>{let e=nn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&nn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&nn.dispatch("TEARDOWN",n)}});function Og(e,t,n){let r=Tg(nn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return lt(()=>{if(!(!e||!t))return nn.dispatch("PUSH",e,n),()=>nn.dispatch("POP",e,n)},[t,e]),i}let hl=new Map,ur=new Map;function ac(e,t=!0){lt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let u=(l=ur.get(r))!=null?l:1;if(u===1?ur.delete(r):ur.set(r,u-1),u!==1)return;let s=hl.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,hl.delete(r))}let i=(n=ur.get(r))!=null?n:0;return ur.set(r,i+1),i!==0||(hl.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}var Ug=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ug||{}),Fg=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Fg||{});let Ag={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},li=w.createContext(null);li.displayName="DialogContext";function qr(e){let t=w.useContext(li);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qr),n}return t}function Dg(e,t,n=()=>[document.body]){Og(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function $g(e,t){return he(t.type,Ag,e,t)}let Mg="div",Ig=oi.RenderStrategy|oi.Static;function zg(e,t){let n=Gn(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:l,__demoMode:u=!1,...s}=e,[a,c]=w.useState(0),f=As();o===void 0&&f!==null&&(o=(f&Pe.Open)===Pe.Open);let y=w.useRef(null),v=et(y,t),m=w.useRef(null),g=_i(y),T=e.hasOwnProperty("open")||f!==null,p=e.hasOwnProperty("onClose");if(!T&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!T)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let d=o?0:1,[h,k]=w.useReducer($g,{titleId:null,descriptionId:null,panelRef:w.createRef()}),C=ue(()=>i(!1)),P=ue(W=>k({type:0,id:W})),R=qn()?u?!1:d===0:!1,N=a>1,D=w.useContext(li)!==null,A=N?"parent":"leaf",re=f!==null?(f&Pe.Closing)===Pe.Closing:!1,He=(()=>D||re?!1:R)(),be=w.useCallback(()=>{var W,ee;return(ee=Array.from((W=g==null?void 0:g.querySelectorAll("body > *"))!=null?W:[]).find(K=>K.id==="headlessui-portal-root"?!1:K.contains(m.current)&&K instanceof HTMLElement))!=null?ee:null},[m]);ac(be,He);let hn=(()=>N?!0:R)(),ut=w.useCallback(()=>{var W,ee;return(ee=Array.from((W=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?W:[]).find(K=>K.contains(m.current)&&K instanceof HTMLElement))!=null?ee:null},[m]);ac(ut,hn);let st=ue(()=>{var W,ee;return[...Array.from((W=g==null?void 0:g.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?W:[]).filter(K=>!(K===document.body||K===document.head||!(K instanceof HTMLElement)||K.contains(m.current)||h.panelRef.current&&K.contains(h.panelRef.current))),(ee=h.panelRef.current)!=null?ee:y.current]}),Kt=(()=>!(!R||N))();Fy(()=>st(),C,Kt);let L=(()=>!(N||d!==0))();ip(g==null?void 0:g.defaultView,"keydown",W=>{L&&(W.defaultPrevented||W.key===op.Escape&&(W.preventDefault(),W.stopPropagation(),C()))});let O=(()=>!(re||d!==0||D))();Dg(g,O,st),w.useEffect(()=>{if(d!==0||!y.current)return;let W=new ResizeObserver(ee=>{for(let K of ee){let Gr=K.target.getBoundingClientRect();Gr.x===0&&Gr.y===0&&Gr.width===0&&Gr.height===0&&C()}});return W.observe(y.current),()=>W.disconnect()},[d,y,C]);let[U,z]=lg(),Z=w.useMemo(()=>[{dialogState:d,close:C,setTitleId:P},h],[d,h,C,P]),qt=w.useMemo(()=>({open:d===0}),[d]),at={ref:v,id:r,role:"dialog","aria-modal":d===0?!0:void 0,"aria-labelledby":h.titleId,"aria-describedby":U};return M.createElement(dg,{type:"Dialog",enabled:d===0,element:y,onUpdate:ue((W,ee)=>{ee==="Dialog"&&he(W,{[Nu.Add]:()=>c(K=>K+1),[Nu.Remove]:()=>c(K=>K-1)})})},M.createElement(Ru,{force:!0},M.createElement(Pu,null,M.createElement(li.Provider,{value:Z},M.createElement(Pu.Group,{target:y},M.createElement(Ru,{force:!1},M.createElement(z,{slot:qt,name:"Dialog.Description"},M.createElement(lr,{initialFocus:l,containers:st,features:R?he(A,{parent:lr.features.RestoreFocus,leaf:lr.features.All&~lr.features.FocusLock}):lr.features.None},je({ourProps:at,theirProps:s,slot:qt,defaultTag:Mg,features:Ig,visible:d===0,name:"Dialog"})))))))),M.createElement(Tu,{features:ii.Hidden,ref:m}))}let Bg="div";function jg(e,t){let n=Gn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:l}]=qr("Dialog.Overlay"),u=et(t),s=ue(c=>{if(c.target===c.currentTarget){if($y(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),l()}}),a=w.useMemo(()=>({open:i===0}),[i]);return je({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:a,defaultTag:Bg,name:"Dialog.Overlay"})}let Hg="div";function bg(e,t){let n=Gn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},l]=qr("Dialog.Backdrop"),u=et(t);w.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[l.panelRef]);let s=w.useMemo(()=>({open:i===0}),[i]);return M.createElement(Ru,{force:!0},M.createElement(Pu,null,je({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:Hg,name:"Dialog.Backdrop"})))}let Vg="div";function Wg(e,t){let n=Gn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},l]=qr("Dialog.Panel"),u=et(t,l.panelRef),s=w.useMemo(()=>({open:i===0}),[i]),a=ue(c=>{c.stopPropagation()});return je({ourProps:{ref:u,id:r,onClick:a},theirProps:o,slot:s,defaultTag:Vg,name:"Dialog.Panel"})}let Qg="h2";function Kg(e,t){let n=Gn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=qr("Dialog.Title"),u=et(t);w.useEffect(()=>(l(r),()=>l(null)),[r,l]);let s=w.useMemo(()=>({open:i===0}),[i]);return je({ourProps:{ref:u,id:r},theirProps:o,slot:s,defaultTag:Qg,name:"Dialog.Title"})}let qg=Fe(zg),Gg=Fe(bg),Xg=Fe(Wg),Yg=Fe(jg),Jg=Fe(Kg),yl=Object.assign(qg,{Backdrop:Gg,Panel:Xg,Overlay:Yg,Title:Jg,Description:cg});function Zg(e=0){let[t,n]=w.useState(e),r=Kr(),o=w.useCallback(s=>{r.current&&n(a=>a|s)},[t,r]),i=w.useCallback(s=>!!(t&s),[t]),l=w.useCallback(s=>{r.current&&n(a=>a&~s)},[n,r]),u=w.useCallback(s=>{r.current&&n(a=>a^s)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:u}}function e1(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function gl(e,...t){e&&t.length>0&&e.classList.add(...t)}function vl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function t1(e,t){let n=Kn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(s=>{let[a=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,f)=>f-c);return a}),u=i+l;if(u!==0){n.group(a=>{a.setTimeout(()=>{t(),a.dispose()},u),a.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&a.dispose()})});let s=n.addEventListener(e,"transitionend",a=>{a.target===a.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function n1(e,t,n,r){let o=n?"enter":"leave",i=Kn(),l=r!==void 0?e1(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=he(o,{enter:()=>t.enter,leave:()=>t.leave}),s=he(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=he(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return vl(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),gl(e,...u,...a),i.nextFrame(()=>{vl(e,...a),gl(e,...s),t1(e,()=>(vl(e,...u),gl(e,...t.entered),l()))}),i.dispose}function r1({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Kr(),l=Us(),u=wt(t);lt(()=>{let s=Kn();l.add(s.dispose);let a=e.current;if(a&&u.current!=="idle"&&i.current)return s.dispose(),r.current(u.current),s.add(n1(a,n.current,u.current==="enter",()=>{s.dispose(),o.current(u.current)})),s.dispose},[t])}function Gt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Oi=w.createContext(null);Oi.displayName="TransitionContext";var o1=(e=>(e.Visible="visible",e.Hidden="hidden",e))(o1||{});function i1(){let e=w.useContext(Oi);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function l1(){let e=w.useContext(Ui);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Ui=w.createContext(null);Ui.displayName="NestingContext";function Fi(e){return"children"in e?Fi(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function pp(e,t){let n=wt(e),r=w.useRef([]),o=Kr(),i=Us(),l=ue((v,m=mt.Hidden)=>{let g=r.current.findIndex(({el:T})=>T===v);g!==-1&&(he(m,{[mt.Unmount](){r.current.splice(g,1)},[mt.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var T;!Fi(r)&&o.current&&((T=n.current)==null||T.call(n))}))}),u=ue(v=>{let m=r.current.find(({el:g})=>g===v);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:v,state:"visible"}),()=>l(v,mt.Unmount)}),s=w.useRef([]),a=w.useRef(Promise.resolve()),c=w.useRef({enter:[],leave:[],idle:[]}),f=ue((v,m,g)=>{s.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([T])=>T!==v)),t==null||t.chains.current[m].push([v,new Promise(T=>{s.current.push(T)})]),t==null||t.chains.current[m].push([v,new Promise(T=>{Promise.all(c.current[m].map(([p,d])=>d)).then(()=>T())})]),m==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(m)):g(m)}),y=ue((v,m,g)=>{Promise.all(c.current[m].splice(0).map(([T,p])=>p)).then(()=>{var T;(T=s.current.shift())==null||T()}).then(()=>g(m))});return w.useMemo(()=>({children:r,register:u,unregister:l,onStart:f,onStop:y,wait:a,chains:c}),[u,l,r,f,y,c,a])}function u1(){}let s1=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function cc(e){var t;let n={};for(let r of s1)n[r]=(t=e[r])!=null?t:u1;return n}function a1(e){let t=w.useRef(cc(e));return w.useEffect(()=>{t.current=cc(e)},[e]),t}let c1="div",mp=oi.RenderStrategy;function f1(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:l,enterFrom:u,enterTo:s,entered:a,leave:c,leaveFrom:f,leaveTo:y,...v}=e,m=w.useRef(null),g=et(m,t),T=v.unmount?mt.Unmount:mt.Hidden,{show:p,appear:d,initial:h}=i1(),[k,C]=w.useState(p?"visible":"hidden"),P=l1(),{register:R,unregister:N}=P,D=w.useRef(null);w.useEffect(()=>R(m),[R,m]),w.useEffect(()=>{if(T===mt.Hidden&&m.current){if(p&&k!=="visible"){C("visible");return}return he(k,{hidden:()=>N(m),visible:()=>R(m)})}},[k,m,R,N,p,T]);let A=wt({enter:Gt(l),enterFrom:Gt(u),enterTo:Gt(s),entered:Gt(a),leave:Gt(c),leaveFrom:Gt(f),leaveTo:Gt(y)}),re=a1({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),He=qn();w.useEffect(()=>{if(He&&k==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,k,He]);let be=h&&!d,hn=(()=>!He||be||D.current===p?"idle":p?"enter":"leave")(),ut=Zg(0),st=ue(z=>he(z,{enter:()=>{ut.addFlag(Pe.Opening),re.current.beforeEnter()},leave:()=>{ut.addFlag(Pe.Closing),re.current.beforeLeave()},idle:()=>{}})),Kt=ue(z=>he(z,{enter:()=>{ut.removeFlag(Pe.Opening),re.current.afterEnter()},leave:()=>{ut.removeFlag(Pe.Closing),re.current.afterLeave()},idle:()=>{}})),L=pp(()=>{C("hidden"),N(m)},P);r1({container:m,classes:A,direction:hn,onStart:wt(z=>{L.onStart(m,z,st)}),onStop:wt(z=>{L.onStop(m,z,Kt),z==="leave"&&!Fi(L)&&(C("hidden"),N(m))})}),w.useEffect(()=>{be&&(T===mt.Hidden?D.current=null:D.current=p)},[p,be,k]);let O=v,U={ref:g};return d&&p&&(O={...O,className:xu(v.className,...A.current.enter,...A.current.enterFrom)}),M.createElement(Ui.Provider,{value:L},M.createElement(By,{value:he(k,{visible:Pe.Open,hidden:Pe.Closed})|ut.flags},je({ourProps:U,theirProps:O,defaultTag:c1,features:mp,visible:k==="visible",name:"Transition.Child"})))}function d1(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,l=w.useRef(null),u=et(l,t);qn();let s=As();if(n===void 0&&s!==null&&(n=(s&Pe.Open)===Pe.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[a,c]=w.useState(n?"visible":"hidden"),f=pp(()=>{c("hidden")}),[y,v]=w.useState(!0),m=w.useRef([n]);lt(()=>{y!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),v(!1))},[m,n]);let g=w.useMemo(()=>({show:n,appear:r,initial:y}),[n,r,y]);w.useEffect(()=>{if(n)c("visible");else if(!Fi(f))c("hidden");else{let p=l.current;if(!p)return;let d=p.getBoundingClientRect();d.x===0&&d.y===0&&d.width===0&&d.height===0&&c("hidden")}},[n,f]);let T={unmount:o};return M.createElement(Ui.Provider,{value:f},M.createElement(Oi.Provider,{value:g},je({ourProps:{...T,as:w.Fragment,children:M.createElement(hp,{ref:u,...T,...i})},theirProps:{},defaultTag:w.Fragment,features:mp,visible:a==="visible",name:"Transition"})))}function p1(e,t){let n=w.useContext(Oi)!==null,r=As()!==null;return M.createElement(M.Fragment,null,!n&&r?M.createElement(Lu,{ref:t,...e}):M.createElement(hp,{ref:t,...e}))}let Lu=Fe(d1),hp=Fe(f1),m1=Fe(p1),wl=Object.assign(Lu,{Child:m1,Root:Lu});function Ms({show:e,onClose:t,onSubmit:n,title:r,content:o,submitText:i,submitEnabled:l=!0}){return x(wl,{appear:!0,show:e,as:w.Fragment,children:B(yl,{as:"div",className:"relative z-10",onClose:t,children:[x(wl.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:x("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),x("div",{className:"fixed inset-0 overflow-y-auto",children:x("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:x(wl.Child,{as:w.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:B(yl.Panel,{className:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white p-6 text-left align-middle shadow-xl transition-all",children:[x(yl.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:r}),x("div",{className:"mt-3 text-sm text-gray-500",children:o}),B("div",{className:"mt-4 flex flex-row-reverse",children:[i&&x("button",{type:"button",disabled:!l,className:`inline-flex ml-4 justify-center rounded-md border border-transparent ${l?"bg-indigo-600":"bg-grey-300"} px-4 py-2 text-sm font-medium text-indigo-100 ${l?"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:n,children:i}),x("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 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-300",onClick:t,children:"Close"})]})]})})})})]})})}function h1(e){return x("div",{children:x("input",{...e,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})})}function y1(e){const t=w.useRef(null),n=w.useRef(null);return w.useEffect(()=>{t.current&&n.current&&(n.current.src=e.audioUrl,t.current.load())},[e.audioUrl]),x("div",{className:"flex relative z-10 p-4 w-full mt-4",children:x("audio",{ref:t,controls:!0,className:"w-full h-14 rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:x("source",{ref:n,type:e.mimeType})})})}function g1(e){const{isModelLoading:t,isTranscribing:n,onClick:r,...o}=e;return x("button",{...o,onClick:i=>{r&&!n&&!t&&r(i)},disabled:n,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:t?x(fc,{text:"Loading model..."}):n?x(fc,{text:"Transcribing..."}):"Transcribe Audio"})}function fc(e){return B("div",{role:"status",children:[B("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:[x("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"}),x("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"})]}),e.text]})}function v1(){let e=!1;return function(t){(/(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(t)||/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(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||("opera"in window&&typeof window.opera=="string"?window.opera:"")),e}const Sl=v1(),ht={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:`https://huggingface.co./datasets/Xenova/transformers.js-docs/resolve/main/${Sl?"jfk":"ted_60_16k"}.wav`,DEFAULT_MODEL:Sl?"onnx-community/whisper-tiny":"onnx-community/whisper-base",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"english",DEFAULT_QUANTIZED:Sl,DEFAULT_MULTILINGUAL:!0};function w1({text:e,percentage:t}){return t=t??0,x("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:B("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:`${t}%`},children:[e," (",`${t.toFixed(2)}%`,")"]})})}function kl(e){return String(e).padStart(2,"0")}function yp(e){const t=e/3600|0;e-=t*(60*60);const n=e/60|0;e-=n*60;const r=e|0;return`${t?kl(t)+":":""}${kl(n)}:${kl(r)}`}const S1={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 ui{constructor(t="Unknown",n="Unknown"){Xn(this,"source");Xn(this,"data");this.name=t,this.type=n}updateBySource(){}setSource(t){this.source=t,this.updateBySource()}updateByData(){}setData(t){this.data=t,this.updateByData()}}class k1 extends ui{constructor(t,n){super(t,n||"Uint")}updateBySource(){this.data="";for(let t=0;t=i&&o<8;o++,i*=128);if(!r){let l=i+n;for(let u=o-1;u>=0;u--){const s=l%256;this.source[this.offset+u]=s,l=(l-s)/256}}this.offset+=o}writeSections(n=!1){this.offset=0;for(let r=0;rnew Promise((r,o)=>{try{const i=new FileReader;i.addEventListener("loadend",()=>{try{const l=i.result,u=new E1(new Uint8Array(l));u.fixDuration(t)?r(u.toBlob(n)):r(e)}catch(l){o(l)}}),i.addEventListener("error",()=>o()),i.readAsArrayBuffer(e)}catch(i){o(i)}});function x1(){const e=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let t=0;t{l(null);try{u.current||(u.current=await navigator.mediaDevices.getUserMedia({audio:!0}));let m=Date.now();const g=x1(),T=new MediaRecorder(u.current,{mimeType:g});s.current=T,T.addEventListener("dataavailable",async p=>{if(p.data.size===0)return;a.current.push(p.data);const d=Date.now()-m;let h=new Blob(a.current,{type:g});console.log("mediaRecorder.state",T.state),console.log("chunksRef.current.length",a.current.length),T.state==="inactive"?(g==="audio/webm"&&(h=await C1(h,d,h.type)),l(h),e.onRecordingComplete(h),a.current=[]):T.state==="recording"&&e.onRecordingProgress(h)}),T.start(500),n(!0)}catch(m){console.error("Error accessing microphone:",m)}},y=()=>{var m;((m=s.current)==null?void 0:m.state)==="recording"&&(s.current.stop(),o(0),n(!1))};return w.useEffect(()=>{if(t){const m=setInterval(()=>{o(g=>g+1)},1e3);return()=>{clearInterval(m)}}},[t]),B("div",{className:"flex flex-col justify-center items-center",children:[x("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 ${t?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"}`,onClick:()=>{t?y():f()},children:t?`Stop Recording (${yp(r)})`:"Start Recording"}),i&&x("audio",{className:"w-full",ref:c,controls:!0,children:x("source",{src:URL.createObjectURL(i),type:i.type})})]})}function R1(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const pc={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"},P1=Object.entries({"onnx-community/whisper-tiny":120,"onnx-community/whisper-base":206,"onnx-community/whisper-small":586,"onnx-community/distil-small.en":538});function N1(e){const[t,n]=w.useState(0),[r,o]=w.useState(void 0),[i,l]=w.useState(void 0),u=()=>{o(void 0),l(void 0)},s=async(f,y)=>{const v=new AudioContext({sampleRate:ht.SAMPLING_RATE}),m=URL.createObjectURL(new Blob([f],{type:"audio/*"})),g=await v.decodeAudioData(f);o({buffer:g,url:m,source:"URL",mimeType:y})},a=async f=>{u(),n(0);const y=URL.createObjectURL(f),v=new FileReader;v.onprogress=m=>{n(m.loaded/m.total||0)},v.onloadend=async()=>{const m=new AudioContext({sampleRate:ht.SAMPLING_RATE}),g=v.result,T=await m.decodeAudioData(g);n(void 0),o({buffer:T,url:y,source:"RECORDING",mimeType:f.type})},v.readAsArrayBuffer(f)},c=async f=>{if(i)try{o(void 0),n(0);const{data:y,headers:v}=await Ey.get(i,{signal:f.signal,responseType:"arraybuffer",onDownloadProgress(g){n(g.progress||0)}});let m=v["content-type"];(!m||m==="audio/wave")&&(m="audio/wav"),s(y,m)}catch(y){console.log("Request failed or aborted",y),n(void 0)}};return w.useEffect(()=>{if(i){const f=new AbortController;return c(f),()=>{f.abort()}}},[i]),B(yt,{children:[B("div",{className:"flex flex-col justify-center items-center rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[B("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[x(F1,{icon:x(I1,{}),text:"From URL",onUrlUpdate:f=>{e.transcriber.onInputChange(),l(f)}}),x(mc,{}),x(D1,{icon:x(z1,{}),text:"From file",onFileUpdate:(f,y,v)=>{e.transcriber.onInputChange(),o({buffer:f,url:y,source:"FILE",mimeType:v})}}),navigator.mediaDevices&&B(yt,{children:[x(mc,{}),x($1,{icon:x(j1,{}),text:"Record",setAudioData:f=>{e.transcriber.onInputChange(),a(f)}})]})]}),x(O1,{progress:t!==void 0&&r?1:t??0,pulse:t===void 0})]}),r&&B(yt,{children:[x(y1,{audioUrl:r.url,mimeType:r.mimeType}),x("div",{className:"relative w-full flex justify-center items-center",children:x(g1,{onClick:()=>{e.transcriber.start(r.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy})}),e.transcriber.progressItems.length>0&&B("div",{className:"relative z-10 p-4 w-full",children:[x("label",{children:"Loading model files... (only run once)"}),e.transcriber.progressItems.map(f=>x("div",{children:x(w1,{text:f.file,percentage:f.progress})},f.file))]})]}),x(L1,{className:"absolute bottom-4 right-4",transcriber:e.transcriber,icon:x(B1,{})})]})}function L1(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{o()};return B("div",{className:e.className,children:[x(Ai,{icon:e.icon,onClick:r}),x(_1,{show:t,onSubmit:i,onClose:o,transcriber:e.transcriber})]})}function _1(e){const t=Object.values(pc).map(R1),n=P1.filter(([r,o])=>!e.transcriber.multilingual||!r.includes("/distil-")).map(([r,o])=>({key:r,size:o,id:`${r}${e.transcriber.multilingual||r.includes("/distil-")?"":".en"}`}));return x(Ms,{show:e.show,title:"Settings",content:B(yt,{children:[x("label",{children:"Select the model to use."}),x("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-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",value:e.transcriber.model,onChange:r=>{e.transcriber.setModel(r.target.value)},children:n.map(({key:r,id:o,size:i})=>x("option",{value:o,children:`${o} (${i}MB)`},r))}),x("div",{className:"flex justify-end items-center mb-3 px-1",children:B("div",{className:"flex",children:[x("input",{id:"multilingual",type:"checkbox",checked:e.transcriber.multilingual,onChange:r=>{let o=ht.DEFAULT_MODEL;r.target.checked||(o+=".en"),e.transcriber.setModel(o),e.transcriber.setMultilingual(r.target.checked)}}),x("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual"})]})}),e.transcriber.multilingual&&B(yt,{children:[x("label",{children:"Select the source language."}),x("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-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.language,onChange:r=>{e.transcriber.setLanguage(r.target.value)},children:Object.keys(pc).map((r,o)=>x("option",{value:r,children:t[o]},r))}),x("label",{children:"Select the task to perform."}),B("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-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:e.transcriber.subtask,onChange:r=>{e.transcriber.setSubtask(r.target.value)},children:[x("option",{value:"transcribe",children:"Transcribe"}),x("option",{value:"translate",children:"Translate (to English)"})]})]})]}),onClose:e.onClose,onSubmit:()=>{}})}function mc(){return x("div",{className:"w-[1px] bg-slate-200"})}function O1(e){return x(U1,{progress:`${Math.round(e.progress*100)}%`,pulse:e.pulse})}function U1(e){return x("div",{className:`w-full rounded-full h-1 ${e.pulse?"bg-red-400 dark:bg-red-700 animate-pulse":"bg-gray-200 dark:bg-gray-700"}`,children:x("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:e.progress}})})}function F1(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{e.onUrlUpdate(l),o()};return B(yt,{children:[x(Ai,{icon:e.icon,text:e.text,onClick:r}),x(A1,{show:t,onSubmit:i,onClose:o})]})}function A1(e){const[t,n]=w.useState(ht.DEFAULT_AUDIO_URL),r=i=>{n(i.target.value)},o=()=>{e.onSubmit(t)};return x(Ms,{show:e.show,title:"From URL",content:B(yt,{children:["Enter the URL of the audio file you want to load.",x(h1,{onChange:r,value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:o})}function D1(e){const t=document.createElement("input");return t.type="file",t.oninput=n=>{const r=n.target.files;if(!r)return;const o=URL.createObjectURL(r[0]),i=r[0].type,l=new FileReader;l.addEventListener("load",async u=>{var f;const s=(f=u.target)==null?void 0:f.result;if(!s)return;const c=await new AudioContext({sampleRate:ht.SAMPLING_RATE}).decodeAudioData(s);e.onFileUpdate(c,o,i)}),l.readAsArrayBuffer(r[0]),t.value=""},x(Ai,{icon:e.icon,text:e.text,onClick:()=>t.click()})}function $1(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{l&&(e.setAudioData(l),o())};return B(yt,{children:[x(Ai,{icon:e.icon,text:e.text,onClick:r}),x(M1,{show:t,onSubmit:i,onProgress:l=>{},onClose:o})]})}function M1(e){const[t,n]=w.useState(),r=l=>{n(l)},o=()=>{e.onSubmit(t),n(void 0)},i=()=>{e.onClose(),n(void 0)};return x(Ms,{show:e.show,title:"From Recording",content:B(yt,{children:["Record audio using your microphone",x(T1,{onRecordingProgress:l=>{e.onProgress(l)},onRecordingComplete:r})]}),onClose:i,submitText:"Load",submitEnabled:t!==void 0,onSubmit:o})}function Ai(e){return B("button",{onClick:e.onClick,className:"flex items-center justify-center rounded-lg p-2 bg-blue text-slate-500 hover:text-indigo-600 hover:bg-indigo-50 transition-all duration-200",children:[x("div",{className:"w-7 h-7",children:e.icon}),e.text&&x("div",{className:"ml-2 break-text text-center text-md w-30",children:e.text})]})}function I1(){return x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:x("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 z1(){return x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:x("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 B1(){return B("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[x("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"}),x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function j1(){return x("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:x("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 H1({transcribedData:e}){const t=w.useRef(null),n=(i,l)=>{const u=URL.createObjectURL(i),s=document.createElement("a");s.href=u,s.download=l,s.click(),URL.revokeObjectURL(u)},r=()=>{let l=((e==null?void 0:e.chunks)??[]).map(s=>s.text).join("").trim();const u=new Blob([l],{type:"text/plain"});n(u,"transcript.txt")},o=()=>{let i=JSON.stringify((e==null?void 0:e.chunks)??[],null,2);const l=/( "timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm;i=i.replace(l,"$1[$2 $3]");const u=new Blob([i],{type:"application/json"});n(u,"transcript.json")};return w.useEffect(()=>{t.current&&Math.abs(t.current.offsetHeight+t.current.scrollTop-t.current.scrollHeight)<=64&&(t.current.scrollTop=t.current.scrollHeight)}),B("div",{ref:t,className:"w-full flex flex-col my-2 p-4 max-h-[20rem] overflow-y-auto",children:[(e==null?void 0:e.chunks)&&e.chunks.map((i,l)=>B("div",{className:`w-full flex flex-row mb-2 ${e!=null&&e.isBusy?"bg-gray-100":"bg-white"} rounded-lg p-4 shadow-xl shadow-black/5 ring-1 ring-slate-700/10`,children:[x("div",{className:"mr-5",children:yp(i.timestamp[0])}),i.text]},`${l}-${i.text}`)),(e==null?void 0:e.tps)&&B("p",{className:"text-sm text-center mt-4 mb-1",children:[x("span",{className:"font-semibold text-black",children:e==null?void 0:e.tps.toFixed(2)})," ",x("span",{className:"text-gray-500",children:"tokens/second"})]}),e&&!e.isBusy&&B("div",{className:"w-full text-right",children:[x("button",{onClick:r,className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export TXT"}),x("button",{onClick:o,className:"text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:ring-green-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-2 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800 inline-flex items-center",children:"Export JSON"})]})]})}function b1(e){const[t]=w.useState(()=>V1(e));return t}function V1(e){const t=new Worker(new URL("/assets/worker-8d454cd4.js",self.location),{type:"module"});return t.addEventListener("message",e),t}function W1(){const[e,t]=w.useState(void 0),[n,r]=w.useState(!1),[o,i]=w.useState(!1),[l,u]=w.useState([]),s=b1(k=>{const C=k.data;switch(C.status){case"progress":u(N=>N.map(D=>D.file===C.file?{...D,progress:C.progress}:D));break;case"update":case"complete":const P=C.status==="update",R=C;console.log("updateMessage",R),t({isBusy:P,text:R.data.text,tps:R.data.tps,chunks:R.data.chunks}),r(P);break;case"initiate":i(!0),u(N=>[...N,C]);break;case"ready":i(!1);break;case"error":r(!1),alert(`An error occurred: "${C.data.message}". Please file a bug report.`);break;case"done":u(N=>N.filter(D=>D.file!==C.file));break}}),[a,c]=w.useState(ht.DEFAULT_MODEL),[f,y]=w.useState(ht.DEFAULT_SUBTASK),[v,m]=w.useState(ht.DEFAULT_MULTILINGUAL),[g,T]=w.useState(ht.DEFAULT_LANGUAGE),p=w.useCallback(()=>{t(void 0)},[]),d=w.useCallback(async k=>{if(k){t(void 0),r(!0);let C;if(k.numberOfChannels===2){const P=Math.sqrt(2);let R=k.getChannelData(0),N=k.getChannelData(1);C=new Float32Array(R.length);for(let D=0;D({onInputChange:p,isBusy:n,isModelLoading:o,progressItems:l,start:d,output:e,model:a,setModel:c,multilingual:v,setMultilingual:m,subtask:f,setSubtask:y,language:g,setLanguage:T}),[n,o,l,d,e,a,v,f,g])}function Q1(){const e=W1();return B("div",{className:"flex justify-center items-center min-h-screen",children:[B("div",{className:"container flex flex-col justify-center items-center",children:[x("h1",{className:"text-5xl font-extrabold tracking-tight text-slate-900 sm:text-7xl text-center",children:"Whisper WebGPU"}),x("h2",{className:"mt-3 mb-5 px-4 text-center text-1xl font-semibold tracking-tight text-slate-900 sm:text-2xl",children:"ML-powered speech recognition directly in your browser"}),x(N1,{transcriber:e}),x(H1,{transcribedData:e.output})]}),B("div",{className:"absolute bottom-4",children:["Made with"," ",x("a",{className:"underline",href:"https://github.com/xenova/transformers.js",children:"🤗 Transformers.js"})]})]})}Cl.createRoot(document.getElementById("root")).render(x(M.StrictMode,{children:x(Q1,{})}));