diff --git "a/assets/index-DRZPpUuL.js" "b/assets/index-DRZPpUuL.js" deleted file mode 100644--- "a/assets/index-DRZPpUuL.js" +++ /dev/null @@ -1,49 +0,0 @@ -function Ep(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 dc={exports:{}},li={},fc={exports:{}},M={};/** - * @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"),xp=Symbol.for("react.portal"),Cp=Symbol.for("react.fragment"),Tp=Symbol.for("react.strict_mode"),Rp=Symbol.for("react.profiler"),Pp=Symbol.for("react.provider"),Np=Symbol.for("react.context"),Lp=Symbol.for("react.forward_ref"),_p=Symbol.for("react.suspense"),Fp=Symbol.for("react.memo"),Op=Symbol.for("react.lazy"),_u=Symbol.iterator;function Up(e){return e===null||typeof e!="object"?null:(e=_u&&e[_u]||e["@@iterator"],typeof e=="function"?e:null)}var pc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mc=Object.assign,hc={};function Vn(e,t,n){this.props=e,this.context=t,this.refs=hc,this.updater=n||pc}Vn.prototype.isReactComponent={};Vn.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")};Vn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yc(){}yc.prototype=Vn.prototype;function xs(e,t,n){this.props=e,this.context=t,this.refs=hc,this.updater=n||pc}var Cs=xs.prototype=new yc;Cs.constructor=xs;mc(Cs,Vn.prototype);Cs.isPureReactComponent=!0;var Fu=Array.isArray,gc=Object.prototype.hasOwnProperty,Ts={current:null},vc={key:!0,ref:!0,__self:!0,__source:!0};function wc(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)gc.call(t,r)&&!vc.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,Y=L[z];if(0>>1;zo(lt,F))beo(st,lt)?(L[z]=st,L[be]=F,z=be):(L[z]=lt,L[it]=F,z=it);else if(beo(st,F))L[z]=st,L[be]=F,z=be;else break e}}return O}function o(L,O){var F=L.sortIndex-O.sortIndex;return F!==0?F: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,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],c=1,f=null,h=3,g=!1,y=!1,w=!1,x=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 m(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(u,O);else break;O=n(a)}}function k(L){if(w=!1,m(L),!y)if(n(u)!==null)y=!0,Et(C);else{var O=n(a);O!==null&&kt(k,O.startTime-L)}}function C(L,O){y=!1,w&&(w=!1,p(N),N=-1),g=!0;var F=h;try{for(m(O),f=n(u);f!==null&&(!(f.expirationTime>O)||L&&!ee());){var z=f.callback;if(typeof z=="function"){f.callback=null,h=f.priorityLevel;var Y=z(f.expirationTime<=O);O=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(u)&&r(u),m(O)}else r(u);f=n(u)}if(f!==null)var te=!0;else{var it=n(a);it!==null&&kt(k,it.startTime-O),te=!1}return te}finally{f=null,h=F,g=!1}}var P=!1,R=null,N=-1,D=5,U=-1;function ee(){return!(e.unstable_now()-UL||125z?(L.sortIndex=F,t(a,L),n(u)===null&&L===n(a)&&(w?(p(N),N=-1):w=!0,kt(k,F-z))):(L.sortIndex=Y,t(u,L),y||g||(y=!0,Et(C))),L},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(L){var O=h;return function(){var F=h;h=O;try{return L.apply(this,arguments)}finally{h=F}}}})(Cc);xc.exports=Cc;var Vp=xc.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 Wp=v,_e=Vp;function T(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"),vl=Object.prototype.hasOwnProperty,Qp=/^[: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]*$/,Au={},ju={};function Kp(e){return vl.call(ju,e)?!0:vl.call(Au,e)?!1:Qp.test(e)?ju[e]=!0:(Au[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 Gp(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 ge(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 ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ue[e]=new ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ue[t]=new ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ue[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ue[e]=new ge(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){ue[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ue[e]=new ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ue[e]=new ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ue[e]=new ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ue[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ps=/[\-:]([a-z])/g;function Ns(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(Ps,Ns);ue[t]=new ge(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(Ps,Ns);ue[t]=new ge(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(Ps,Ns);ue[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ue[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)});ue.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ue[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ls(e,t,n,r){var o=ue.hasOwnProperty(t)?ue[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{$i=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function Xp(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 kl(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 Sn:return"Fragment";case wn:return"Portal";case wl:return"Profiler";case _s:return"StrictMode";case Sl:return"Suspense";case El:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pc:return(e.displayName||"Context")+".Consumer";case Rc:return(e._context.displayName||"Context")+".Provider";case Fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Os:return t=e.displayName||null,t!==null?t:kl(e.type)||"Memo";case Tt:t=e._payload,e=e._init;try{return kl(e(t))}catch{}}return null}function Yp(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 kl(t);case 8:return t===_s?"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 Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jp(e){var t=Lc(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=Jp(e))}function _c(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _o(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 xl(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(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 Fc(e,t){t=t.checked,t!=null&&Ls(e,"checked",t,!1)}function Cl(e,t){Fc(e,t);var n=Bt(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")?Tl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tl(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $u(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 Tl(e,t,n){(t!=="number"||_o(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ur=Array.isArray;function Fn(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 fr={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},Zp=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){Zp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function jc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function Dc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=jc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var em=q({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 Nl(e,t){if(t){if(em[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Ll(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 Us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,On=null,Un=null;function Bu(e){if(e=Vr(e)){if(typeof Fl!="function")throw Error(T(280));var t=e.stateNode;t&&(t=di(t),Fl(e.stateNode,e.type,t))}}function Mc(e){On?Un?Un.push(e):Un=[e]:On=e}function $c(){if(On){var e=On,t=Un;if(Un=On=null,Bu(e),t)for(e=0;e>>=0,e===0?32:31-(dm(e)/fm|0)|0}var eo=64,to=4194304;function ar(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 Ao(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 s=l&~o;s!==0?r=ar(s):(i&=l,i!==0&&(r=ar(i)))}else l=n&~o,l!==0?r=ar(l):i!==0&&(r=ar(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 br(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 ym(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=mr),Xu=" ",Yu=!1;function od(e,t){switch(e){case"keyup":return Vm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function id(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function Qm(e,t){switch(e){case"compositionend":return id(t);case"keypress":return t.which!==32?null:(Yu=!0,Xu);case"textInput":return e=t.data,e===Xu&&Yu?null:e;default:return null}}function Km(e,t){if(En)return e==="compositionend"||!Bs&&od(e,t)?(e=nd(),vo=$s=_t=null,En=!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=ta(n)}}function ad(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ad(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cd(){for(var e=window,t=_o();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_o(e.document)}return t}function bs(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 nh(e){var t=cd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ad(n.ownerDocument.documentElement,n)){if(r!==null&&bs(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=na(n,i);var l=na(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,kn=null,Ml=null,yr=null,$l=!1;function ra(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$l||kn==null||kn!==_o(r)||(r=kn,"selectionStart"in r&&bs(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}),yr&&_r(yr,r)||(yr=r,r=Mo(Ml,"onSelect"),0Tn||(e.current=Vl[Tn],Vl[Tn]=null,Tn--)}function B(e,t){Tn++,Vl[Tn]=e.current,e.current=t}var bt={},fe=Wt(bt),Se=Wt(!1),an=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 Ee(e){return e=e.childContextTypes,e!=null}function Io(){H(Se),H(fe)}function ca(e,t,n){if(fe.current!==bt)throw Error(T(168));B(fe,t),B(Se,n)}function wd(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(T(108,Yp(e)||"Unknown",o));return q({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,an=fe.current,B(fe,e),B(Se,Se.current),!0}function da(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=wd(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,H(Se),H(fe),B(fe,e)):H(Se),B(Se,n)}var at=null,fi=!1,Zi=!1;function Sd(e){at===null?at=[e]:at.push(e)}function mh(e){fi=!0,Sd(e)}function Qt(){if(!Zi&&at!==null){Zi=!0;var e=0,t=I;try{var n=at;for(I=1;e>=l,o-=l,dt=1<<32-qe(t)+o|n<N?(D=R,R=null):D=R.sibling;var U=h(p,R,m[N],k);if(U===null){R===null&&(R=D);break}e&&R&&U.alternate===null&&t(p,R),d=i(U,d,N),P===null?C=U:P.sibling=U,P=U,R=D}if(N===m.length)return n(p,R),V&&Gt(p,N),C;if(R===null){for(;NN?(D=R,R=null):D=R.sibling;var ee=h(p,R,U.value,k);if(ee===null){R===null&&(R=D);break}e&&R&&ee.alternate===null&&t(p,R),d=i(ee,d,N),P===null?C=ee:P.sibling=ee,P=ee,R=D}if(U.done)return n(p,R),V&&Gt(p,N),C;if(R===null){for(;!U.done;N++,U=m.next())U=f(p,U.value,k),U!==null&&(d=i(U,d,N),P===null?C=U:P.sibling=U,P=U);return V&&Gt(p,N),C}for(R=r(p,R);!U.done;N++,U=m.next())U=g(R,p,N,U.value,k),U!==null&&(e&&U.alternate!==null&&R.delete(U.key===null?N:U.key),d=i(U,d,N),P===null?C=U:P.sibling=U,P=U);return e&&R.forEach(function(Be){return t(p,Be)}),V&&Gt(p,N),C}function x(p,d,m,k){if(typeof m=="object"&&m!==null&&m.type===Sn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Yr:e:{for(var C=m.key,P=d;P!==null;){if(P.key===C){if(C=m.type,C===Sn){if(P.tag===7){n(p,P.sibling),d=o(P,m.props.children),d.return=p,p=d;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Tt&&ma(C)===P.type){n(p,P.sibling),d=o(P,m.props),d.ref=nr(p,P,m),d.return=p,p=d;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===Sn?(d=ln(m.props.children,p.mode,k,m.key),d.return=p,p=d):(k=Ro(m.type,m.key,m.props,null,p.mode,k),k.ref=nr(p,d,m),k.return=p,p=k)}return l(p);case wn:e:{for(P=m.key;d!==null;){if(d.key===P)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=o(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=sl(m,p.mode,k),d.return=p,p=d}return l(p);case Tt:return P=m._init,x(p,d,P(m._payload),k)}if(ur(m))return y(p,d,m,k);if(Yn(m))return w(p,d,m,k);uo(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,m),d.return=p,p=d):(n(p,d),d=ll(m,p.mode,k),d.return=p,p=d),l(p)):n(p,d)}return x}var zn=Cd(!0),Td=Cd(!1),Ho=Wt(null),Vo=null,Nn=null,Qs=null;function Ks(){Qs=Nn=Vo=null}function qs(e){var t=Ho.current;H(Ho),e._currentValue=t}function Kl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jn(e,t){Vo=e,Qs=Nn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(Qs!==e)if(e={context:e,memoizedValue:t,next:null},Nn===null){if(Vo===null)throw Error(T(308));Nn=e,Vo.dependencies={lanes:0,firstContext:e}}else Nn=Nn.next=e;return t}var en=null;function Gs(e){en===null?en=[e]:en.push(e)}function Rd(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Gs(t)):(n.next=o.next,o.next=n),t.interleaved=n,vt(e,r)}function vt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function Xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,vt(e,n)}return o=r.interleaved,o===null?(t.next=t,Gs(r)):(t.next=o.next,o.next=t),r.interleaved=t,vt(e,n)}function So(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,js(e,n)}}function ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wo(e,t,n,r){var o=e.updateQueue;Rt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?i=a:l.next=a,l=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=u))}if(i!==null){var f=o.baseState;l=0,c=a=u=null,s=i;do{var h=s.lane,g=s.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(h=t,g=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){f=y.call(g,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,h=typeof y=="function"?y.call(g,f,h):y,h==null)break e;f=q({},f,h);break e;case 2:Rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else g={eventTime:g,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=g,u=f):c=c.next=g,l|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(c===null&&(u=f),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);fn|=l,e.lanes=l,e.memoizedState=f}}function ya(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=tl.transition;tl.transition={};try{e(!1),t()}finally{I=n,tl.transition=r}}function Vd(){return Ie().memoizedState}function vh(e,t,n){var r=It(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wd(e))Qd(t,n);else if(n=Rd(e,t,n,r),n!==null){var o=me();Ge(n,e,r,o),Kd(n,t,r)}}function wh(e,t,n){var r=It(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wd(e))Qd(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,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Xe(s,l)){var u=t.interleaved;u===null?(o.next=o,Gs(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Rd(e,t,o,r),n!==null&&(o=me(),Ge(n,e,r,o),Kd(n,t,r))}}function Wd(e){var t=e.alternate;return e===K||t!==null&&t===K}function Qd(e,t){gr=Ko=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,js(e,n)}}var qo={readContext:$e,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useInsertionEffect:ae,useLayoutEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useMutableSource:ae,useSyncExternalStore:ae,useId:ae,unstable_isNewReconciler:!1},Sh={readContext:$e,useCallback:function(e,t){return Ze().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:va,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,Id.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=Ze();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ze();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=vh.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ze();return e={current:e},t.memoizedState=e},useState:ga,useDebugValue:ou,useDeferredValue:function(e){return Ze().memoizedState=e},useTransition:function(){var e=ga(!1),t=e[0];return e=gh.bind(null,e[1]),Ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,o=Ze();if(V){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ie===null)throw Error(T(349));dn&30||Fd(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,va(Ud.bind(null,r,i,e),[e]),r.flags|=2048,$r(9,Od.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ze(),t=ie.identifierPrefix;if(V){var n=ft,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[et]=t,e[Ur]=r,rf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ll(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;oHn&&(t.flags|=128,r=!0,rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Qo(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&&!V)return ce(t),null}else 2*X()-i.renderingStartTime>Hn&&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=X(),t.sibling=null,n=W.current,B(W,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return cu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Nh(e,t){switch(Vs(t),t.tag){case 1:return Ee(t.type)&&Io(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(),H(Se),H(fe),Zs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Js(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return Bn(),null;case 10:return qs(t.type._context),null;case 22:case 23:return cu(),null;case 24:return null;default:return null}}var co=!1,de=!1,Lh=typeof WeakSet=="function"?WeakSet:Set,_=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function ns(e,t,n){try{n()}catch(r){G(e,t,r)}}var La=!1;function _h(e,t){if(Il=jo,e=cd(),bs(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,s=-1,u=-1,a=0,c=0,f=e,h=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++a===o&&(s=l),h===i&&++c===r&&(u=l),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(zl={focusedElem:e,selectionRange:n},jo=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,x=y.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ve(t.type,w),x);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(k){G(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return y=La,La=!1,y}function vr(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&&ns(t,n,i)}o=o.next}while(o!==r)}}function hi(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 rs(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 sf(e){var t=e.alternate;t!==null&&(e.alternate=null,sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[et],delete t[Ur],delete t[Hl],delete t[fh],delete t[ph])),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 uf(e){return e.tag===5||e.tag===3||e.tag===4}function _a(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uf(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 os(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=$o));else if(r!==4&&(e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}function is(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(is(e,t,n),e=e.sibling;e!==null;)is(e,t,n),e=e.sibling}var le=null,We=!1;function xt(e,t,n){for(n=n.child;n!==null;)af(e,t,n),n=n.sibling}function af(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(si,n)}catch{}switch(n.tag){case 5:de||Ln(n,t);case 6:var r=le,o=We;le=null,xt(e,t,n),le=r,We=o,le!==null&&(We?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(We?(e=le,n=n.stateNode,e.nodeType===8?Ji(e.parentNode,n):e.nodeType===1&&Ji(e,n),Nr(e)):Ji(le,n.stateNode));break;case 4:r=le,o=We,le=n.stateNode.containerInfo,We=!0,xt(e,t,n),le=r,We=o;break;case 0:case 11:case 14:case 15:if(!de&&(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)&&ns(n,t,l),o=o.next}while(o!==r)}xt(e,t,n);break;case 1:if(!de&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){G(n,t,s)}xt(e,t,n);break;case 21:xt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,xt(e,t,n),de=r):xt(e,t,n);break;default:xt(e,t,n)}}function Fa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lh),t.forEach(function(r){var o=Ih.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function He(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Oh(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Yo=0,$&6)throw Error(T(331));var o=$;for($|=4,_=e.current;_!==null;){var i=_,l=i.child;if(_.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uX()-uu?on(e,0):su|=n),ke(e,t)}function gf(e,t){t===0&&(e.mode&1?(t=to,to<<=1,!(to&130023424)&&(to=4194304)):t=1);var n=me();e=vt(e,t),e!==null&&(br(e,t,n),ke(e,n))}function $h(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function Ih(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(T(314))}r!==null&&r.delete(t),gf(e,n)}var vf;vf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,Rh(e,t,n);we=!!(e.flags&131072)}else we=!1,V&&t.flags&1048576&&Ed(t,bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xo(e,t),e=t.pendingProps;var o=$n(t,fe.current);jn(t,n),o=tu(null,t,r,e,o,n);var i=nu();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,Ee(r)?(i=!0,zo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Xs(t),o.updater=mi,t.stateNode=o,o._reactInternals=t,Gl(t,r,e,n),t=Jl(null,t,r,!0,i,n)):(t.tag=0,V&&i&&Hs(t),pe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Bh(r),e=Ve(r,e),o){case 0:t=Yl(null,t,r,e,n);break e;case 1:t=Ra(null,t,r,e,n);break e;case 11:t=Ca(null,t,r,e,n);break e;case 14:t=Ta(null,t,r,Ve(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ve(r,o),Yl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ve(r,o),Ra(e,t,r,o,n);case 3:e:{if(ef(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Pd(e,t),Wo(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(T(423)),t),t=Pa(e,t,r,n,o);break e}else if(r!==o){o=bn(Error(T(424)),t),t=Pa(e,t,r,n,o);break e}else for(Pe=Dt(t.stateNode.containerInfo.firstChild),Ne=t,V=!0,Qe=null,n=Td(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(In(),r===o){t=wt(e,t,n);break e}pe(e,t,r,n)}t=t.child}return t;case 5:return Nd(t),e===null&&Ql(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Bl(r,o)?l=null:i!==null&&Bl(r,i)&&(t.flags|=32),Zd(e,t),pe(e,t,l,n),t.child;case 6:return e===null&&Ql(t),null;case 13:return tf(e,t,n);case 4:return Ys(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):pe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ve(r,o),Ca(e,t,r,o,n);case 7:return pe(e,t,t.pendingProps,n),t.child;case 8:return pe(e,t,t.pendingProps.children,n),t.child;case 12:return pe(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,B(Ho,r._currentValue),r._currentValue=l,i!==null)if(Xe(i.value,l)){if(i.children===o.children&&!Se.current){t=wt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=mt(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Kl(i.return,n,t),s.lanes|=n;break}u=u.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(T(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Kl(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}pe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jn(t,n),o=$e(o),r=r(o),t.flags|=1,pe(e,t,r,n),t.child;case 14:return r=t.type,o=Ve(r,t.pendingProps),o=Ve(r.type,o),Ta(e,t,r,o,n);case 15:return Yd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ve(r,o),xo(e,t),t.tag=1,Ee(r)?(e=!0,zo(t)):e=!1,jn(t,n),qd(t,r,o),Gl(t,r,o,n),Jl(null,t,r,!0,e,n);case 19:return nf(e,t,n);case 22:return Jd(e,t,n)}throw Error(T(156,t.tag))};function wf(e,t){return Wc(e,t)}function zh(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 De(e,t,n,r){return new zh(e,t,n,r)}function fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bh(e){if(typeof e=="function")return fu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fs)return 11;if(e===Os)return 14}return 2}function zt(e,t){var n=e.alternate;return n===null?(n=De(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")fu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Sn:return ln(n.children,o,i,t);case _s:l=8,o|=8;break;case wl:return e=De(12,n,t,o|2),e.elementType=wl,e.lanes=i,e;case Sl:return e=De(13,n,t,o),e.elementType=Sl,e.lanes=i,e;case El:return e=De(19,n,t,o),e.elementType=El,e.lanes=i,e;case Nc:return gi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rc:l=10;break e;case Pc:l=9;break e;case Fs:l=11;break e;case Os:l=14;break e;case Tt:l=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=De(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ln(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function gi(e,t,n,r){return e=De(22,e,r,t),e.elementType=Nc,e.lanes=n,e.stateNode={isHidden:!1},e}function ll(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function sl(e,t,n){return t=De(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 pu(e,t,n,r,o,i,l,s,u){return e=new bh(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=De(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xs(i),e}function Hh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xf)}catch(e){console.error(e)}}xf(),kc.exports=Fe;var Cf=kc.exports,Ia=Cf;gl.createRoot=Ia.createRoot,gl.hydrateRoot=Ia.hydrateRoot;function Tf(e,t){return function(){return e.apply(t,arguments)}}const{toString:qh}=Object.prototype,{getPrototypeOf:gu}=Object,ki=(e=>t=>{const n=qh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ye=e=>(e=e.toLowerCase(),t=>ki(t)===e),xi=e=>t=>typeof t===e,{isArray:Kn}=Array,zr=xi("undefined");function Gh(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&Le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rf=Ye("ArrayBuffer");function Xh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rf(e.buffer),t}const Yh=xi("string"),Le=xi("function"),Pf=xi("number"),Ci=e=>e!==null&&typeof e=="object",Jh=e=>e===!0||e===!1,Po=e=>{if(ki(e)!=="object")return!1;const t=gu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Zh=Ye("Date"),e0=Ye("File"),t0=Ye("Blob"),n0=Ye("FileList"),r0=e=>Ci(e)&&Le(e.pipe),o0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Le(e.append)&&((t=ki(e))==="formdata"||t==="object"&&Le(e.toString)&&e.toString()==="[object FormData]"))},i0=Ye("URLSearchParams"),[l0,s0,u0,a0]=["ReadableStream","Request","Response","Headers"].map(Ye),c0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Kn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lf=e=>!zr(e)&&e!==nn;function cs(){const{caseless:e}=Lf(this)&&this||{},t={},n=(r,o)=>{const i=e&&Nf(t,o)||o;Po(t[i])&&Po(r)?t[i]=cs(t[i],r):Po(r)?t[i]=cs({},r):Kn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Qr(t,(o,i)=>{n&&Le(o)?e[i]=Tf(o,n):e[i]=o},{allOwnKeys:r}),e),f0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),p0=(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)},m0=(e,t,n,r)=>{let o,i,l;const s={};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))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&gu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},h0=(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},y0=e=>{if(!e)return null;if(Kn(e))return e;let t=e.length;if(!Pf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},g0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gu(Uint8Array)),v0=(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])}},w0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},S0=Ye("HTMLFormElement"),E0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),za=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),k0=Ye("RegExp"),_f=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qr(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},x0=e=>{_f(e,(t,n)=>{if(Le(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Le(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+"'")})}})},C0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Kn(e)?r(e):r(String(e).split(t)),n},T0=()=>{},R0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ul="abcdefghijklmnopqrstuvwxyz",Ba="0123456789",Ff={DIGIT:Ba,ALPHA:ul,ALPHA_DIGIT:ul+ul.toUpperCase()+Ba},P0=(e=16,t=Ff.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function N0(e){return!!(e&&Le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const L0=e=>{const t=new Array(10),n=(r,o)=>{if(Ci(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Kn(r)?[]:{};return Qr(r,(l,s)=>{const u=n(l,o+1);!zr(u)&&(i[s]=u)}),t[o]=void 0,i}}return r};return n(e,0)},_0=Ye("AsyncFunction"),F0=e=>e&&(Ci(e)||Le(e))&&Le(e.then)&&Le(e.catch),Of=((e,t)=>e?setImmediate:t?((n,r)=>(nn.addEventListener("message",({source:o,data:i})=>{o===nn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),nn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Le(nn.postMessage)),O0=typeof queueMicrotask<"u"?queueMicrotask.bind(nn):typeof process<"u"&&process.nextTick||Of,E={isArray:Kn,isArrayBuffer:Rf,isBuffer:Gh,isFormData:o0,isArrayBufferView:Xh,isString:Yh,isNumber:Pf,isBoolean:Jh,isObject:Ci,isPlainObject:Po,isReadableStream:l0,isRequest:s0,isResponse:u0,isHeaders:a0,isUndefined:zr,isDate:Zh,isFile:e0,isBlob:t0,isRegExp:k0,isFunction:Le,isStream:r0,isURLSearchParams:i0,isTypedArray:g0,isFileList:n0,forEach:Qr,merge:cs,extend:d0,trim:c0,stripBOM:f0,inherits:p0,toFlatObject:m0,kindOf:ki,kindOfTest:Ye,endsWith:h0,toArray:y0,forEachEntry:v0,matchAll:w0,isHTMLForm:S0,hasOwnProperty:za,hasOwnProp:za,reduceDescriptors:_f,freezeMethods:x0,toObjectSet:C0,toCamelCase:E0,noop:T0,toFiniteNumber:R0,findKey:Nf,global:nn,isContextDefined:Lf,ALPHABET:Ff,generateString:P0,isSpecCompliantForm:N0,toJSONObject:L0,isAsyncFn:_0,isThenable:F0,setImmediate:Of,asap:O0};function j(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,this.status=o.status?o.status:null)}E.inherits(j,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:E.toJSONObject(this.config),code:this.code,status:this.status}}});const Uf=j.prototype,Af={};["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=>{Af[e]={value:e}});Object.defineProperties(j,Af);Object.defineProperty(Uf,"isAxiosError",{value:!0});j.from=(e,t,n,r,o,i)=>{const l=Object.create(Uf);return E.toFlatObject(e,l,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),j.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const U0=null;function ds(e){return E.isPlainObject(e)||E.isArray(e)}function jf(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function ba(e,t,n){return e?e.concat(t).map(function(o,i){return o=jf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function A0(e){return E.isArray(e)&&!e.some(ds)}const j0=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function Ti(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,x){return!E.isUndefined(x[w])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(E.isDate(y))return y.toISOString();if(!u&&E.isBlob(y))throw new j("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(y)||E.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,w,x){let p=y;if(y&&!x&&typeof y=="object"){if(E.endsWith(w,"{}"))w=r?w:w.slice(0,-2),y=JSON.stringify(y);else if(E.isArray(y)&&A0(y)||(E.isFileList(y)||E.endsWith(w,"[]"))&&(p=E.toArray(y)))return w=jf(w),p.forEach(function(m,k){!(E.isUndefined(m)||m===null)&&t.append(l===!0?ba([w],k,i):l===null?w:w+"[]",a(m))}),!1}return ds(y)?!0:(t.append(ba(x,w,i),a(y)),!1)}const f=[],h=Object.assign(j0,{defaultVisitor:c,convertValue:a,isVisitable:ds});function g(y,w){if(!E.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));f.push(y),E.forEach(y,function(p,d){(!(E.isUndefined(p)||p===null)&&o.call(t,p,E.isString(d)?d.trim():d,w,h))===!0&&g(p,w?w.concat(d):[d])}),f.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ha(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function vu(e,t){this._pairs=[],e&&Ti(e,this,t)}const Df=vu.prototype;Df.append=function(t,n){this._pairs.push([t,n])};Df.toString=function(t){const n=t?function(r){return t.call(this,r,Ha)}:Ha;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function D0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mf(e,t,n){if(!t)return e;const r=n&&n.encode||D0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new vu(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Va{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){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $f={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M0=typeof URLSearchParams<"u"?URLSearchParams:vu,$0=typeof FormData<"u"?FormData:null,I0=typeof Blob<"u"?Blob:null,z0={isBrowser:!0,classes:{URLSearchParams:M0,FormData:$0,Blob:I0},protocols:["http","https","file","blob","url","data"]},wu=typeof window<"u"&&typeof document<"u",fs=typeof navigator=="object"&&navigator||void 0,B0=wu&&(!fs||["ReactNative","NativeScript","NS"].indexOf(fs.product)<0),b0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",H0=wu&&window.location.href||"http://localhost",V0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wu,hasStandardBrowserEnv:B0,hasStandardBrowserWebWorkerEnv:b0,navigator:fs,origin:H0},Symbol.toStringTag,{value:"Module"})),xe={...V0,...z0};function W0(e,t){return Ti(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return xe.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Q0(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K0(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&E.isArray(o)?o.length:l,u?(E.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!E.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&E.isArray(o[l])&&(o[l]=K0(o[l])),!s)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(Q0(r),o,n,0)}),n}return null}function q0(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Kr={transitional:$f,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o?JSON.stringify(If(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return W0(t,this.formSerializer).toString();if((s=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ti(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),q0(t)):t}],transformResponse:[function(t){const n=this.transitional||Kr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?j.from(s,j.ERR_BAD_RESPONSE,this,null,this.response):s}}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}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});const G0=E.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"]),X0=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]&&G0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wa=Symbol("internals");function ir(e){return e&&String(e).trim().toLowerCase()}function No(e){return e===!1||e==null?e:E.isArray(e)?e.map(No):String(e)}function Y0(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 J0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function al(e,t,n,r,o){if(E.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function Z0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ey(e,t){const n=E.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 Ce{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,u,a){const c=ir(u);if(!c)throw new Error("header name must be a non-empty string");const f=E.findKey(o,c);(!f||o[f]===void 0||a===!0||a===void 0&&o[f]!==!1)&&(o[f||u]=No(s))}const l=(s,u)=>E.forEach(s,(a,c)=>i(a,c,u));if(E.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(E.isString(t)&&(t=t.trim())&&!J0(t))l(X0(t),n);else if(E.isHeaders(t))for(const[s,u]of t.entries())i(u,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=ir(t),t){const r=E.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Y0(o);if(E.isFunction(n))return n.call(this,o,r);if(E.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=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||al(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 s=E.findKey(r,l);s&&(!n||al(r,r[s],s,n))&&(delete r[s],o=!0)}}return E.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||al(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return E.forEach(this,(o,i)=>{const l=E.findKey(r,i);if(l){n[l]=No(o),delete n[i];return}const s=t?Z0(i):String(i).trim();s!==i&&delete n[i],n[s]=No(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&E.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[Wa]=this[Wa]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=ir(l);r[s]||(ey(o,l),r[s]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(Ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(Ce);function cl(e,t){const n=this||Kr,r=t||n,o=Ce.from(r.headers);let i=r.data;return E.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function zf(e){return!!(e&&e.__CANCEL__)}function qn(e,t,n){j.call(this,e??"canceled",j.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(qn,j,{__CANCEL__:!0});function Bf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new j("Request failed with status code "+n.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ty(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ny(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(u){const a=Date.now(),c=r[i];l||(l=a),n[o]=u,r[o]=a;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l{n=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),f=c-n;f>=r?l(a,c):(o=a,i||(i=setTimeout(()=>{i=null,l(o)},r-f)))},()=>o&&l(o)]}const ei=(e,t,n=3)=>{let r=0;const o=ny(50,250);return ry(i=>{const l=i.loaded,s=i.lengthComputable?i.total:void 0,u=l-r,a=o(u),c=l<=s;r=l;const f={loaded:l,total:s,progress:s?l/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&c?(s-l)/a:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Qa=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ka=e=>(...t)=>E.asap(()=>e(...t)),oy=xe.hasStandardBrowserEnv?function(){const t=xe.navigator&&/(msie|trident)/i.test(xe.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 s=E.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),iy=xe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),E.isString(r)&&l.push("path="+r),E.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 ly(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bf(e,t){return e&&!ly(t)?sy(e,t):t}const qa=e=>e instanceof Ce?{...e}:e;function mn(e,t){t=t||{};const n={};function r(a,c,f){return E.isPlainObject(a)&&E.isPlainObject(c)?E.merge.call({caseless:f},a,c):E.isPlainObject(c)?E.merge({},c):E.isArray(c)?c.slice():c}function o(a,c,f){if(E.isUndefined(c)){if(!E.isUndefined(a))return r(void 0,a,f)}else return r(a,c,f)}function i(a,c){if(!E.isUndefined(c))return r(void 0,c)}function l(a,c){if(E.isUndefined(c)){if(!E.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function s(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const u={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:s,headers:(a,c)=>o(qa(a),qa(c),!0)};return E.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||o,h=f(e[c],t[c],c);E.isUndefined(h)&&f!==s||(n[c]=h)}),n}const Hf=e=>{const t=mn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:s}=t;t.headers=l=Ce.from(l),t.url=Mf(bf(t.baseURL,t.url),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(E.isFormData(n)){if(xe.hasStandardBrowserEnv||xe.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[a,...c]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([a||"multipart/form-data",...c].join("; "))}}if(xe.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&oy(t.url))){const a=o&&i&&iy.read(i);a&&l.set(o,a)}return t},uy=typeof XMLHttpRequest<"u",ay=uy&&function(e){return new Promise(function(n,r){const o=Hf(e);let i=o.data;const l=Ce.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=o,c,f,h,g,y;function w(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function p(){if(!x)return;const m=Ce.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:m,config:e,request:x};Bf(function(R){n(R),w()},function(R){r(R),w()},C),x=null}"onloadend"in x?x.onloadend=p:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(p)},x.onabort=function(){x&&(r(new j("Request aborted",j.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new j("Network Error",j.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||$f;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new j(k,C.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,x)),x=null},i===void 0&&l.setContentType(null),"setRequestHeader"in x&&E.forEach(l.toJSON(),function(k,C){x.setRequestHeader(C,k)}),E.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),s&&s!=="json"&&(x.responseType=o.responseType),a&&([h,y]=ei(a,!0),x.addEventListener("progress",h)),u&&x.upload&&([f,g]=ei(u),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(c=m=>{x&&(r(!m||m.type?new qn(null,e,x):m),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const d=ty(o.url);if(d&&xe.protocols.indexOf(d)===-1){r(new j("Unsupported protocol "+d+":",j.ERR_BAD_REQUEST,e));return}x.send(i||null)})},cy=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(a){if(!o){o=!0,s();const c=a instanceof Error?a:this.reason;r.abort(c instanceof j?c:new qn(c instanceof Error?c.message:c))}};let l=t&&setTimeout(()=>{l=null,i(new j(`timeout ${t} of ms exceeded`,j.ETIMEDOUT))},t);const s=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(i):a.removeEventListener("abort",i)}),e=null)};e.forEach(a=>a.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>E.asap(s),u}},dy=function*(e,t){let n=e.byteLength;if(n{const o=fy(e,t);let i=0,l,s=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:c}=await o.next();if(a){s(),u.close();return}let f=c.byteLength;if(n){let h=i+=f;n(h)}u.enqueue(new Uint8Array(c))}catch(a){throw s(a),a}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},Ri=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vf=Ri&&typeof ReadableStream=="function",my=Ri&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},hy=Vf&&Wf(()=>{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}),Xa=64*1024,ps=Vf&&Wf(()=>E.isReadableStream(new Response("").body)),ti={stream:ps&&(e=>e.body)};Ri&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ti[t]&&(ti[t]=E.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new j(`Response type '${t}' is not supported`,j.ERR_NOT_SUPPORT,r)})})})(new Response);const yy=async e=>{if(e==null)return 0;if(E.isBlob(e))return e.size;if(E.isSpecCompliantForm(e))return(await new Request(xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E.isArrayBufferView(e)||E.isArrayBuffer(e))return e.byteLength;if(E.isURLSearchParams(e)&&(e=e+""),E.isString(e))return(await my(e)).byteLength},gy=async(e,t)=>{const n=E.toFiniteNumber(e.getContentLength());return n??yy(t)},vy=Ri&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:l,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:h}=Hf(e);a=a?(a+"").toLowerCase():"text";let g=cy([o,i&&i.toAbortSignal()],l),y;const w=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let x;try{if(u&&hy&&n!=="get"&&n!=="head"&&(x=await gy(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(E.isFormData(r)&&(P=C.headers.get("content-type"))&&c.setContentType(P),C.body){const[R,N]=Qa(x,ei(Ka(u)));r=Ga(C.body,Xa,R,N)}}E.isString(f)||(f=f?"include":"omit");const p="credentials"in Request.prototype;y=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:p?f:void 0});let d=await fetch(y);const m=ps&&(a==="stream"||a==="response");if(ps&&(s||m&&w)){const C={};["status","statusText","headers"].forEach(D=>{C[D]=d[D]});const P=E.toFiniteNumber(d.headers.get("content-length")),[R,N]=s&&Qa(P,ei(Ka(s),!0))||[];d=new Response(Ga(d.body,Xa,R,()=>{N&&N(),w&&w()}),C)}a=a||"text";let k=await ti[E.findKey(ti,a)||"text"](d,e);return!m&&w&&w(),await new Promise((C,P)=>{Bf(C,P,{data:k,headers:Ce.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:y})})}catch(p){throw w&&w(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,e,y),{cause:p.cause||p}):j.from(p,p&&p.code,e,y)}}),ms={http:U0,xhr:ay,fetch:vy};E.forEach(ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ya=e=>`- ${e}`,wy=e=>E.isFunction(e)||e===null||e===!1,Qf={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : -`+i.map(Ya).join(` -`):" "+Ya(i[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:ms};function dl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qn(null,e)}function Ja(e){return dl(e),e.headers=Ce.from(e.headers),e.data=cl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qf.getAdapter(e.adapter||Kr.adapter)(e).then(function(r){return dl(e),r.data=cl.call(e,e.transformResponse,r),r.headers=Ce.from(r.headers),r},function(r){return zf(r)||(dl(e),r&&r.response&&(r.response.data=cl.call(e,e.transformResponse,r.response),r.response.headers=Ce.from(r.response.headers))),Promise.reject(r)})}const Kf="1.7.7",Su={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Su[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Za={};Su.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Kf+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new j(o(l," has been removed"+(n?" in "+n:"")),j.ERR_DEPRECATED);return n&&!Za[l]&&(Za[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function Sy(e,t,n){if(typeof e!="object")throw new j("options must be an object",j.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 s=e[i],u=s===void 0||l(s,i,e);if(u!==!0)throw new j("option "+i+" must be "+u,j.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new j("Unknown option "+i,j.ERR_BAD_OPTION)}}const hs={assertOptions:Sy,validators:Su},Ct=hs.validators;class sn{constructor(t){this.defaults=t,this.interceptors={request:new Va,response:new Va}}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=mn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&hs.assertOptions(r,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:hs.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Ce.concat(l,i);const s=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(u=u&&w.synchronous,s.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let c,f=0,h;if(!u){const y=[Ja.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,a),h=y.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(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new qn(i,l,s),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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Eu(function(o){t=o}),cancel:t}}}function Ey(e){return function(n){return e.apply(null,n)}}function ky(e){return E.isObject(e)&&e.isAxiosError===!0}const ys={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(ys).forEach(([e,t])=>{ys[t]=e});function qf(e){const t=new sn(e),n=Tf(sn.prototype.request,t);return E.extend(n,sn.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return qf(mn(e,o))},n}const Z=qf(Kr);Z.Axios=sn;Z.CanceledError=qn;Z.CancelToken=Eu;Z.isCancel=zf;Z.VERSION=Kf;Z.toFormData=Ti;Z.AxiosError=j;Z.Cancel=Z.CanceledError;Z.all=function(t){return Promise.all(t)};Z.spread=Ey;Z.isAxiosError=ky;Z.mergeConfig=mn;Z.AxiosHeaders=Ce;Z.formToJSON=e=>If(E.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=Qf.getAdapter;Z.HttpStatusCode=ys;Z.default=Z;var xy=Object.defineProperty,Cy=(e,t,n)=>t in e?xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fl=(e,t,n)=>(Cy(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"}},un=new Ty;function Pi(e){return un.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Ni(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Kt(){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 Ni(()=>{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=Kt();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||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 ku(){let[e]=v.useState(Kt);return v.useEffect(()=>()=>e.dispose(),[e]),e}let he=(e,t)=>{un.isServer?v.useEffect(e,t):v.useLayoutEffect(e,t)};function gn(e){let t=v.useRef(e);return he(()=>{t.current=e},[e]),t}let Q=function(e){let t=gn(e);return A.useCallback((...n)=>t.current(...n),[t])},Ry=v.createContext(void 0);function Py(){return v.useContext(Ry)}function gs(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Ht(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,Ht),r}var ni=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ni||{}),Ot=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ot||{});function ze({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:s}){s=s??Ny;let u=Gf(t,e);if(i)return mo(u,n,r,l,s);let a=o??0;if(a&2){let{static:c=!1,...f}=u;if(c)return mo(f,n,r,l,s)}if(a&1){let{unmount:c=!0,...f}=u;return Ht(c?0:1,{0(){return null},1(){return mo({...f,hidden:!0,style:{display:"none"}},n,r,l,s)}})}return mo(u,n,r,l,s)}function mo(e,t={},n,r,o){let{as:i=n,children:l,refName:s="ref",...u}=pl(e,["unmount","static"]),a=e.ref!==void 0?{[s]:e.ref}:{},c=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t)),u["aria-labelledby"]&&u["aria-labelledby"]===u.id&&(u["aria-labelledby"]=void 0);let f={};if(t){let h=!1,g=[];for(let[y,w]of Object.entries(t))typeof w=="boolean"&&(h=!0),w===!0&&g.push(y.replace(/([A-Z])/g,x=>`-${x.toLowerCase()}`));if(h){f["data-headlessui-state"]=g.join(" ");for(let y of g)f[`data-${y}`]=""}}if(i===v.Fragment&&(Object.keys(Yt(u)).length>0||Object.keys(Yt(f)).length>0))if(!v.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Yt(u)).length>0)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(Yt(u)).concat(Object.keys(Yt(f))).map(h=>` - ${h}`).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(h=>` - ${h}`).join(` -`)].join(` -`))}else{let h=c.props,g=h==null?void 0:h.className,y=typeof g=="function"?(...p)=>gs(g(...p),u.className):gs(g,u.className),w=y?{className:y}:{},x=Gf(c.props,Yt(pl(u,["ref"])));for(let p in f)p in x&&delete f[p];return v.cloneElement(c,Object.assign({},x,f,a,{ref:o(c.ref,a.ref)},w))}return v.createElement(i,Object.assign({},pl(u,["ref"]),i!==v.Fragment&&a,i!==v.Fragment&&f),c)}function Ny(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Gf(...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"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let s of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function Te(e){var t;return Object.assign(v.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yt(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}let Ly="span";var ri=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ri||{});function _y(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ze({ourProps:i,theirProps:o,slot:{},defaultTag:Ly,name:"Hidden"})}let vs=Te(_y),Xf=Symbol();function Fy(e,t=!0){return Object.assign(e,{[Xf]:t})}function rt(...e){let t=v.useRef(e);v.useEffect(()=>{t.current=e},[e]);let n=Q(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[Xf]))?void 0:n}let xu=v.createContext(null);xu.displayName="DescriptionContext";function Yf(){let e=v.useContext(xu);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,Yf),t}return e}function Oy(){let[e,t]=v.useState([]);return[e.length>0?e.join(" "):void 0,v.useMemo(()=>function(n){let r=Q(i=>(t(l=>[...l,i]),()=>t(l=>{let s=l.slice(),u=s.indexOf(i);return u!==-1&&s.splice(u,1),s}))),o=v.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return A.createElement(xu.Provider,{value:o},n.children)},[t])]}let Uy="p";function Ay(e,t){let n=v.useId(),r=Py(),{id:o=`headlessui-description-${n}`,...i}=e,l=Yf(),s=rt(t);he(()=>l.register(o),[o,l.register]);let u=r||!1,a=v.useMemo(()=>({...l.slot,disabled:u}),[l.slot,u]),c={ref:s,...l.props,id:o};return ze({ourProps:c,theirProps:i,slot:a,defaultTag:Uy,name:l.name||"Description"})}let jy=Te(Ay),Dy=Object.assign(jy,{});var Jf=(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))(Jf||{});let My=v.createContext(()=>{});function $y({value:e,children:t}){return A.createElement(My.Provider,{value:e},t)}let Iy=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function Zf(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(s=>s()))}}}function ep(e){return v.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let zy=new Iy(()=>Zf(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Gn(e,t){let n=zy.get(t),r=v.useId(),o=ep(n);if(he(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let i=o.indexOf(r),l=o.length;return i===-1&&(i=l,l+=1),i===l-1}let ws=new Map,Er=new Map;function ec(e){var t;let n=(t=Er.get(e))!=null?t:0;return Er.set(e,n+1),n!==0?()=>tc(e):(ws.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>tc(e))}function tc(e){var t;let n=(t=Er.get(e))!=null?t:1;if(n===1?Er.delete(e):Er.set(e,n-1),n!==1)return;let r=ws.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,ws.delete(e))}function By(e,{allowed:t,disallowed:n}={}){let r=Gn(e,"inert-others");he(()=>{var o,i;if(!r)return;let l=Kt();for(let u of(o=n==null?void 0:n())!=null?o:[])u&&l.add(ec(u));let s=(i=t==null?void 0:t())!=null?i:[];for(let u of s){if(!u)continue;let a=Pi(u);if(!a)continue;let c=u.parentElement;for(;c&&c!==a.body;){for(let f of c.children)s.some(h=>f.contains(h))||l.add(ec(f));c=c.parentElement}}return l.dispose},[r,t,n])}function by(e,t,n){let r=gn(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});v.useEffect(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=Kt();if(typeof ResizeObserver<"u"){let l=new ResizeObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}if(typeof IntersectionObserver<"u"){let l=new IntersectionObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}return()=>i.dispose()},[t,r,e])}let oi=["[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(","),Hy=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ct=(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[e.AutoFocus=64]="AutoFocus",e))(ct||{}),Ss=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ss||{}),Vy=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Vy||{});function Wy(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(oi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Qy(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Hy)).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 Ky(e,t=0){var n;return e===((n=Pi(e))==null?void 0:n.body)?!1:Ht(t,{0(){return e.matches(oi)},1(){let r=e;for(;r!==null;){if(r.matches(oi))return!0;r=r.parentElement}return!1}})}var qy=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(qy||{});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 ht(e){e==null||e.focus({preventScroll:!0})}let Gy=["textarea","input"].join(",");function Xy(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Gy))!=null?n:!1}function Yy(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 kr(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?Yy(e):e:t&64?Qy(e):Wy(e);o.length>0&&l.length>1&&(l=l.filter(g=>!o.some(y=>y!=null&&"current"in y?(y==null?void 0:y.current)===g:y===g))),r=r??i.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{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,h;do{if(c>=f||c+f<=0)return 0;let g=u+c;if(t&16)g=(g+f)%f;else{if(g<0)return 3;if(g>=f)return 1}h=l[g],h==null||h.focus(a),c+=s}while(h!==i.activeElement);return t&6&&Xy(h)&&h.select(),2}function np(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Jy(){return/Android/gi.test(window.navigator.userAgent)}function Zy(){return np()||Jy()}function lr(e,t,n,r){let o=gn(n);v.useEffect(()=>{if(!e)return;function i(l){o.current(l)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function rp(e,t,n,r){let o=gn(n);v.useEffect(()=>{if(!e)return;function i(l){o.current(l)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const nc=30;function eg(e,t,n){let r=Gn(e,"outside-click"),o=gn(n),i=v.useCallback(function(u,a){if(u.defaultPrevented)return;let c=a(u);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function h(g){return typeof g=="function"?h(g()):Array.isArray(g)||g instanceof Set?g:[g]}(t);for(let h of f)if(h!==null&&(h.contains(c)||u.composed&&u.composedPath().includes(h)))return;return!Ky(c,tp.Loose)&&c.tabIndex!==-1&&u.preventDefault(),o.current(u,c)},[o,t]),l=v.useRef(null);lr(r,"pointerdown",u=>{var a,c;l.current=((c=(a=u.composedPath)==null?void 0:a.call(u))==null?void 0:c[0])||u.target},!0),lr(r,"mousedown",u=>{var a,c;l.current=((c=(a=u.composedPath)==null?void 0:a.call(u))==null?void 0:c[0])||u.target},!0),lr(r,"click",u=>{Zy()||l.current&&(i(u,()=>l.current),l.current=null)},!0);let s=v.useRef({x:0,y:0});lr(r,"touchstart",u=>{s.current.x=u.touches[0].clientX,s.current.y=u.touches[0].clientY},!0),lr(r,"touchend",u=>{let a={x:u.changedTouches[0].clientX,y:u.changedTouches[0].clientY};if(!(Math.abs(a.x-s.current.x)>=nc||Math.abs(a.y-s.current.y)>=nc))return i(u,()=>u.target instanceof HTMLElement?u.target:null)},!0),rp(r,"blur",u=>i(u,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function qr(...e){return v.useMemo(()=>Pi(...e),[...e])}function op(e,t,n,r){let o=gn(n);v.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 tg(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function ng(){return np()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Kt();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let u=s.target.closest("a");if(!u)return;let{hash:a}=new URL(u.href),c=e.querySelector(a);c&&!r(c)&&(l=c)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let u=s.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;t.style(u,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(r(s.target)){let u=s.target;for(;u.parentElement&&u.dataset.headlessuiPortal!==""&&!(u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth);)u=u.parentElement;u.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let u=(s=window.scrollY)!=null?s:window.pageYOffset;i!==u&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function rg(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function og(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let rn=Zf(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Kt(),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:og(n)},o=[ng(),tg(),rg()];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)}});rn.subscribe(()=>{let e=rn.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)&&rn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&rn.dispatch("TEARDOWN",n)}});function ig(e,t,n=()=>({containers:[]})){let r=ep(rn),o=t?r.get(t):void 0,i=o?o.count>0:!1;return he(()=>{if(!(!t||!e))return rn.dispatch("PUSH",t,n),()=>rn.dispatch("POP",t,n)},[e,t]),i}function lg(e,t,n=()=>[document.body]){let r=Gn(e,"scroll-lock");ig(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function sg(e=0){let[t,n]=v.useState(e),r=v.useCallback(u=>n(u),[t]),o=v.useCallback(u=>n(a=>a|u),[t]),i=v.useCallback(u=>(t&u)===u,[t]),l=v.useCallback(u=>n(a=>a&~u),[n]),s=v.useCallback(u=>n(a=>a^u),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:s}}var ug={},rc;typeof process<"u"&&typeof globalThis<"u"&&((rc=process==null?void 0:ug)==null?void 0:rc.NODE_ENV)==="test"&&typeof Element.prototype.getAnimations>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(` -`)),[]});var ag=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ag||{});function cg(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function dg(e,t,n,r){let[o,i]=v.useState(n),{hasFlag:l,addFlag:s,removeFlag:u}=sg(e&&o?3:0),a=v.useRef(!1),c=v.useRef(!1),f=ku();return he(()=>{var h;if(e){if(n&&i(!0),!t){n&&s(3);return}return(h=r==null?void 0:r.start)==null||h.call(r,n),fg(t,{inFlight:a,prepare(){c.current?c.current=!1:c.current=a.current,a.current=!0,!c.current&&(n?(s(3),u(4)):(s(4),u(2)))},run(){c.current?n?(u(3),s(4)):(u(4),s(3)):n?u(1):s(1)},done(){var g;c.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(a.current=!1,u(7),n||i(!1),(g=r==null?void 0:r.end)==null||g.call(r,n))}})}},[e,n,t,f]),e?[o,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function fg(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Kt();return mg(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(pg(e,r))})}),i.dispose}function pg(e,t){var n,r;let o=Kt();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(s=>s instanceof CSSTransition))!=null?r:[];return l.length===0?(t(),o.dispose):(Promise.allSettled(l.map(s=>s.finished)).then(()=>{i||t()}),o.dispose)}function mg(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Cu(e,t){let n=v.useRef([]),r=Q(e);v.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let s=r(t,o);return n.current=t,s}},[r,...t])}let Li=v.createContext(null);Li.displayName="OpenClosedContext";var Ke=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ke||{});function _i(){return v.useContext(Li)}function hg({value:e,children:t}){return A.createElement(Li.Provider,{value:e},t)}function yg({children:e}){return A.createElement(Li.Provider,{value:null},e)}function gg(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Lt=[];gg(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Lt[0]===t.target)return;let n=t.target;n=n.closest(oi),Lt.unshift(n??t.target),Lt=Lt.filter(r=>r!=null&&r.isConnected),Lt.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 ip(e){let t=Q(e),n=v.useRef(!1);v.useEffect(()=>(n.current=!1,()=>{n.current=!0,Ni(()=>{n.current&&t()})}),[t])}function vg(){let e=typeof document>"u";return"useSyncExternalStore"in Uu?(t=>t.useSyncExternalStore)(Uu)(()=>()=>{},()=>!1,()=>!e):!1}function Gr(){let e=vg(),[t,n]=v.useState(un.isHandoffComplete);return t&&un.isHandoffComplete===!1&&n(!1),v.useEffect(()=>{t!==!0&&n(!0)},[t]),v.useEffect(()=>un.handoff(),[]),e?!1:t}let lp=v.createContext(!1);function wg(){return v.useContext(lp)}function oc(e){return A.createElement(lp.Provider,{value:e.force},e.children)}function Sg(e){let t=wg(),n=v.useContext(up),r=qr(e),[o,i]=v.useState(()=>{var l;if(!t&&n!==null)return(l=n.current)!=null?l:null;if(un.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return v.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),v.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let sp=v.Fragment,Eg=Te(function(e,t){let n=e,r=v.useRef(null),o=rt(Fy(c=>{r.current=c}),t),i=qr(r),l=Sg(r),[s]=v.useState(()=>{var c;return un.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),u=v.useContext(Es),a=Gr();return he(()=>{!l||!s||l.contains(s)||(s.setAttribute("data-headlessui-portal",""),l.appendChild(s))},[l,s]),he(()=>{if(s&&u)return u.register(s)},[u,s]),ip(()=>{var c;!l||!s||(s instanceof Node&&l.contains(s)&&l.removeChild(s),l.childNodes.length<=0&&((c=l.parentElement)==null||c.removeChild(l)))}),a?!l||!s?null:Cf.createPortal(ze({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:sp,name:"Portal"}),s):null});function kg(e,t){let n=rt(t),{enabled:r=!0,...o}=e;return r?A.createElement(Eg,{...o,ref:n}):ze({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:sp,name:"Portal"})}let xg=v.Fragment,up=v.createContext(null);function Cg(e,t){let{target:n,...r}=e,o={ref:rt(t)};return A.createElement(up.Provider,{value:n},ze({ourProps:o,theirProps:r,defaultTag:xg,name:"Popover.Group"}))}let Es=v.createContext(null);function Tg(){let e=v.useContext(Es),t=v.useRef([]),n=Q(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Q(i=>{let l=t.current.indexOf(i);l!==-1&&t.current.splice(l,1),e&&e.unregister(i)}),o=v.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,v.useMemo(()=>function({children:i}){return A.createElement(Es.Provider,{value:o},i)},[o])]}let Rg=Te(kg),ap=Te(Cg),Pg=Object.assign(Rg,{Group:ap});function Ng(e,t=typeof document<"u"?document.defaultView:null,n){let r=Gn(e,"escape");op(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===Jf.Escape&&n(o))})}function Lg(){var e;let[t]=v.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=v.useState((e=t==null?void 0:t.matches)!=null?e:!1);return he(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function _g({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=qr(n),o=Q(()=>{var i,l;let s=[];for(let u of e)u!==null&&(u instanceof HTMLElement?s.push(u):"current"in u&&u.current instanceof HTMLElement&&s.push(u.current));if(t!=null&&t.current)for(let u of t.current)s.push(u);for(let u of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(n&&(u.contains(n)||u.contains((l=n==null?void 0:n.getRootNode())==null?void 0:l.host))||s.some(a=>u.contains(a))||s.push(u));return s});return{resolveContainers:o,contains:Q(i=>o().some(l=>l.contains(i)))}}let cp=v.createContext(null);function ic({children:e,node:t}){let[n,r]=v.useState(null),o=dp(t??n);return A.createElement(cp.Provider,{value:o},e,o===null&&A.createElement(vs,{features:ri.Hidden,ref:i=>{var l,s;if(i){for(let u of(s=(l=Pi(i))==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?s:[])if(u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u!=null&&u.contains(i)){r(u);break}}}}))}function dp(e=null){var t;return(t=v.useContext(cp))!=null?t:e}function Tu(){let e=v.useRef(!1);return he(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var dr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(dr||{});function Fg(){let e=v.useRef(0);return rp(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function fp(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 Og="div";var Jt=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Jt||{});function Ug(e,t){let n=v.useRef(null),r=rt(n,t),{initialFocus:o,initialFocusFallback:i,containers:l,features:s=15,...u}=e;Gr()||(s=0);let a=qr(n);Mg(s,{ownerDocument:a});let c=$g(s,{ownerDocument:a,container:n,initialFocus:o,initialFocusFallback:i});Ig(s,{ownerDocument:a,container:n,containers:l,previousActiveElement:c});let f=Fg(),h=Q(p=>{let d=n.current;d&&(m=>m())(()=>{Ht(f.current,{[dr.Forwards]:()=>{kr(d,ct.First,{skipElements:[p.relatedTarget,i]})},[dr.Backwards]:()=>{kr(d,ct.Last,{skipElements:[p.relatedTarget,i]})}})})}),g=Gn(!!(s&2),"focus-trap#tab-lock"),y=ku(),w=v.useRef(!1),x={ref:r,onKeyDown(p){p.key=="Tab"&&(w.current=!0,y.requestAnimationFrame(()=>{w.current=!1}))},onBlur(p){if(!(s&4))return;let d=fp(l);n.current instanceof HTMLElement&&d.add(n.current);let m=p.relatedTarget;m instanceof HTMLElement&&m.dataset.headlessuiFocusGuard!=="true"&&(pp(d,m)||(w.current?kr(n.current,Ht(f.current,{[dr.Forwards]:()=>ct.Next,[dr.Backwards]:()=>ct.Previous})|ct.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&ht(p.target)))}};return A.createElement(A.Fragment,null,g&&A.createElement(vs,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:ri.Focusable}),ze({ourProps:x,theirProps:u,defaultTag:Og,name:"FocusTrap"}),g&&A.createElement(vs,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:ri.Focusable}))}let Ag=Te(Ug),jg=Object.assign(Ag,{features:Jt});function Dg(e=!0){let t=v.useRef(Lt.slice());return Cu(([n],[r])=>{r===!0&&n===!1&&Ni(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Lt.slice())},[e,Lt,t]),Q(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Mg(e,{ownerDocument:t}){let n=!!(e&8),r=Dg(n);Cu(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&ht(r())},[n]),ip(()=>{n&&ht(r())})}function $g(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=v.useRef(null),l=Gn(!!(e&1),"focus-trap#initial-focus"),s=Tu();return Cu(()=>{if(e===0)return;if(!l){o!=null&&o.current&&ht(o.current);return}let u=n.current;u&&Ni(()=>{if(!s.current)return;let a=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===a){i.current=a;return}}else if(u.contains(a)){i.current=a;return}if(r!=null&&r.current)ht(r.current);else{if(e&16){if(kr(u,ct.First|ct.AutoFocus)!==Ss.Error)return}else if(kr(u,ct.First)!==Ss.Error)return;if(o!=null&&o.current&&(ht(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the ")}i.current=t==null?void 0:t.activeElement})},[o,l,e]),i}function Ig(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=Tu(),l=!!(e&4);op(t==null?void 0:t.defaultView,"focus",s=>{if(!l||!i.current)return;let u=fp(r);n.current instanceof HTMLElement&&u.add(n.current);let a=o.current;if(!a)return;let c=s.target;c&&c instanceof HTMLElement?pp(u,c)?(o.current=c,ht(c)):(s.preventDefault(),s.stopPropagation(),ht(a)):ht(o.current)},!0)}function pp(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function mp(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:yp)!==v.Fragment||A.Children.count(e.children)===1}let Fi=v.createContext(null);Fi.displayName="TransitionContext";var zg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zg||{});function Bg(){let e=v.useContext(Fi);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function bg(){let e=v.useContext(Oi);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let Oi=v.createContext(null);Oi.displayName="NestingContext";function Ui(e){return"children"in e?Ui(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function hp(e,t){let n=gn(e),r=v.useRef([]),o=Tu(),i=ku(),l=Q((g,y=Ot.Hidden)=>{let w=r.current.findIndex(({el:x})=>x===g);w!==-1&&(Ht(y,{[Ot.Unmount](){r.current.splice(w,1)},[Ot.Hidden](){r.current[w].state="hidden"}}),i.microTask(()=>{var x;!Ui(r)&&o.current&&((x=n.current)==null||x.call(n))}))}),s=Q(g=>{let y=r.current.find(({el:w})=>w===g);return y?y.state!=="visible"&&(y.state="visible"):r.current.push({el:g,state:"visible"}),()=>l(g,Ot.Unmount)}),u=v.useRef([]),a=v.useRef(Promise.resolve()),c=v.useRef({enter:[],leave:[]}),f=Q((g,y,w)=>{u.current.splice(0),t&&(t.chains.current[y]=t.chains.current[y].filter(([x])=>x!==g)),t==null||t.chains.current[y].push([g,new Promise(x=>{u.current.push(x)})]),t==null||t.chains.current[y].push([g,new Promise(x=>{Promise.all(c.current[y].map(([p,d])=>d)).then(()=>x())})]),y==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>w(y)):w(y)}),h=Q((g,y,w)=>{Promise.all(c.current[y].splice(0).map(([x,p])=>p)).then(()=>{var x;(x=u.current.shift())==null||x()}).then(()=>w(y))});return v.useMemo(()=>({children:r,register:s,unregister:l,onStart:f,onStop:h,wait:a,chains:c}),[s,l,r,f,h,c,a])}let yp=v.Fragment,gp=ni.RenderStrategy;function Hg(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:l,beforeLeave:s,afterLeave:u,enter:a,enterFrom:c,enterTo:f,entered:h,leave:g,leaveFrom:y,leaveTo:w,...x}=e,[p,d]=v.useState(null),m=v.useRef(null),k=mp(e),C=rt(...k?[m,t,d]:t===null?[]:[t]),P=(n=x.unmount)==null||n?Ot.Unmount:Ot.Hidden,{show:R,appear:N,initial:D}=Bg(),[U,ee]=v.useState(R?"visible":"hidden"),Be=bg(),{register:Ue,unregister:ot}=Be;he(()=>Ue(m),[Ue,m]),he(()=>{if(P===Ot.Hidden&&m.current){if(R&&U!=="visible"){ee("visible");return}return Ht(U,{hidden:()=>ot(m),visible:()=>Ue(m)})}},[U,m,Ue,ot,R,P]);let qt=Gr();he(()=>{if(k&&qt&&U==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,U,qt,k]);let Et=D&&!N,kt=N&&R&&D,L=v.useRef(!1),O=hp(()=>{L.current||(ee("hidden"),ot(m))},Be),F=Q(be=>{L.current=!0;let st=be?"enter":"leave";O.onStart(m,st,Xn=>{Xn==="enter"?i==null||i():Xn==="leave"&&(s==null||s())})}),z=Q(be=>{let st=be?"enter":"leave";L.current=!1,O.onStop(m,st,Xn=>{Xn==="enter"?l==null||l():Xn==="leave"&&(u==null||u())}),st==="leave"&&!Ui(O)&&(ee("hidden"),ot(m))});v.useEffect(()=>{k&&o||(F(R),z(R))},[R,k,o]);let Y=!(!o||!k||!qt||Et),[,te]=dg(Y,p,R,{start:F,end:z}),it=Yt({ref:C,className:((r=gs(x.className,kt&&a,kt&&c,te.enter&&a,te.enter&&te.closed&&c,te.enter&&!te.closed&&f,te.leave&&g,te.leave&&!te.closed&&y,te.leave&&te.closed&&w,!te.transition&&R&&h))==null?void 0:r.trim())||void 0,...cg(te)}),lt=0;return U==="visible"&&(lt|=Ke.Open),U==="hidden"&&(lt|=Ke.Closed),te.enter&&(lt|=Ke.Opening),te.leave&&(lt|=Ke.Closing),A.createElement(Oi.Provider,{value:O},A.createElement(hg,{value:lt},ze({ourProps:it,theirProps:x,defaultTag:yp,features:gp,visible:U==="visible",name:"Transition.Child"})))}function Vg(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,l=v.useRef(null),s=mp(e),u=rt(...s?[l,t]:t===null?[]:[t]);Gr();let a=_i();if(n===void 0&&a!==null&&(n=(a&Ke.Open)===Ke.Open),n===void 0)throw new Error("A is used but it is missing a `show={true | false}` prop.");let[c,f]=v.useState(n?"visible":"hidden"),h=hp(()=>{n||f("hidden")}),[g,y]=v.useState(!0),w=v.useRef([n]);he(()=>{g!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),y(!1))},[w,n]);let x=v.useMemo(()=>({show:n,appear:r,initial:g}),[n,r,g]);he(()=>{n?f("visible"):!Ui(h)&&l.current!==null&&f("hidden")},[n,h]);let p={unmount:o},d=Q(()=>{var k;g&&y(!1),(k=e.beforeEnter)==null||k.call(e)}),m=Q(()=>{var k;g&&y(!1),(k=e.beforeLeave)==null||k.call(e)});return A.createElement(Oi.Provider,{value:h},A.createElement(Fi.Provider,{value:x},ze({ourProps:{...p,as:v.Fragment,children:A.createElement(vp,{ref:u,...p,...i,beforeEnter:d,beforeLeave:m})},theirProps:{},defaultTag:v.Fragment,features:gp,visible:c==="visible",name:"Transition"})))}function Wg(e,t){let n=v.useContext(Fi)!==null,r=_i()!==null;return A.createElement(A.Fragment,null,!n&&r?A.createElement(ks,{ref:t,...e}):A.createElement(vp,{ref:t,...e}))}let ks=Te(Vg),vp=Te(Hg),Ru=Te(Wg),Lo=Object.assign(ks,{Child:Ru,Root:ks});var Qg=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Qg||{}),Kg=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Kg||{});let qg={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Pu=v.createContext(null);Pu.displayName="DialogContext";function Ai(e){let t=v.useContext(Pu);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ai),n}return t}function Gg(e,t){return Ht(t.type,qg,e,t)}let lc=Te(function(e,t){let n=v.useId(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:l,role:s="dialog",autoFocus:u=!0,__demoMode:a=!1,unmount:c=!1,...f}=e,h=v.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(h.current||(h.current=!0,console.warn(`Invalid role [${s}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let g=_i();o===void 0&&g!==null&&(o=(g&Ke.Open)===Ke.Open);let y=v.useRef(null),w=rt(y,t),x=qr(y),p=o?0:1,[d,m]=v.useReducer(Gg,{titleId:null,descriptionId:null,panelRef:v.createRef()}),k=Q(()=>i(!1)),C=Q(F=>m({type:0,id:F})),P=Gr()?p===0:!1,[R,N]=Tg(),D={get current(){var F;return(F=d.panelRef.current)!=null?F:y.current}},U=dp(),{resolveContainers:ee}=_g({mainTreeNode:U,portals:R,defaultContainers:[D]}),Be=g!==null?(g&Ke.Closing)===Ke.Closing:!1;By(a||Be?!1:P,{allowed:Q(()=>{var F,z;return[(z=(F=y.current)==null?void 0:F.closest("[data-headlessui-portal]"))!=null?z:null]}),disallowed:Q(()=>{var F;return[(F=U==null?void 0:U.closest("body > *:not(#headlessui-portal-root)"))!=null?F:null]})}),eg(P,ee,F=>{F.preventDefault(),k()}),Ng(P,x==null?void 0:x.defaultView,F=>{F.preventDefault(),F.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),k()}),lg(a||Be?!1:P,x,ee),by(P,y,k);let[Ue,ot]=Oy(),qt=v.useMemo(()=>[{dialogState:p,close:k,setTitleId:C,unmount:c},d],[p,d,k,C,c]),Et=v.useMemo(()=>({open:p===0}),[p]),kt={ref:w,id:r,role:s,tabIndex:-1,"aria-modal":a?void 0:p===0?!0:void 0,"aria-labelledby":d.titleId,"aria-describedby":Ue,unmount:c},L=!Lg(),O=Jt.None;return P&&!a&&(O|=Jt.RestoreFocus,O|=Jt.TabLock,u&&(O|=Jt.AutoFocus),L&&(O|=Jt.InitialFocus)),A.createElement(yg,null,A.createElement(oc,{force:!0},A.createElement(Pg,null,A.createElement(Pu.Provider,{value:qt},A.createElement(ap,{target:y},A.createElement(oc,{force:!1},A.createElement(ot,{slot:Et},A.createElement(N,null,A.createElement(jg,{initialFocus:l,initialFocusFallback:y,containers:ee,features:O},A.createElement($y,{value:k},ze({ourProps:kt,theirProps:f,slot:Et,defaultTag:Xg,features:Yg,visible:p===0,name:"Dialog"})))))))))))}),Xg="div",Yg=ni.RenderStrategy|ni.Static;function Jg(e,t){let{transition:n=!1,open:r,...o}=e,i=_i(),l=e.hasOwnProperty("open")||i!==null,s=e.hasOwnProperty("onClose");if(!l&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!l)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!o.static?A.createElement(ic,null,A.createElement(Lo,{show:r,transition:n,unmount:o.unmount},A.createElement(lc,{ref:t,...o}))):A.createElement(ic,null,A.createElement(lc,{ref:t,open:r,...o}))}let Zg="div";function e1(e,t){let n=v.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:l,unmount:s},u]=Ai("Dialog.Panel"),a=rt(t,u.panelRef),c=v.useMemo(()=>({open:l===0}),[l]),f=Q(g=>{g.stopPropagation()}),h={ref:a,id:r,onClick:f};return A.createElement(o?Ru:v.Fragment,{...o?{unmount:s}:{}},ze({ourProps:h,theirProps:i,slot:c,defaultTag:Zg,name:"Dialog.Panel"}))}let t1="div";function n1(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=Ai("Dialog.Backdrop"),l=v.useMemo(()=>({open:o===0}),[o]),s={ref:t,"aria-hidden":!0};return A.createElement(n?Ru:v.Fragment,{...n?{unmount:i}:{}},ze({ourProps:s,theirProps:r,slot:l,defaultTag:t1,name:"Dialog.Backdrop"}))}let r1="h2";function o1(e,t){let n=v.useId(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=Ai("Dialog.Title"),s=rt(t);v.useEffect(()=>(l(r),()=>l(null)),[r,l]);let u=v.useMemo(()=>({open:i===0}),[i]);return ze({ourProps:{ref:s,id:r},theirProps:o,slot:u,defaultTag:r1,name:"Dialog.Title"})}let i1=Te(Jg),l1=Te(e1);Te(n1);let s1=Te(o1),ml=Object.assign(i1,{Panel:l1,Title:s1,Description:Dy});function Nu({show:e,onClose:t,onSubmit:n,title:r,content:o,submitText:i,submitEnabled:l=!0}){return S.jsx(Lo,{appear:!0,show:e,as:v.Fragment,children:S.jsxs(ml,{as:"div",className:"relative z-10",onClose:t,children:[S.jsx(Lo.Child,{as:v.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:S.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),S.jsx("div",{className:"fixed inset-0 overflow-y-auto",children:S.jsx("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:S.jsx(Lo.Child,{as:v.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:S.jsxs(ml.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:[S.jsx(ml.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:r}),S.jsx("div",{className:"mt-3 text-sm text-gray-500",children:o}),S.jsxs("div",{className:"mt-4 flex flex-row-reverse",children:[i&&S.jsx("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}),S.jsx("button",{type:"button",className:"inline-flex justify-center rounded-md border border-transparent bg-indigo-100 px-4 py-2 text-sm font-medium text-indigo-900 hover:bg-indigo-200 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 u1(e){return S.jsx("div",{children:S.jsx("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 a1(e){const t=v.useRef(null),n=v.useRef(null);return v.useEffect(()=>{t.current&&n.current&&(n.current.src=e.audioUrl,t.current.load())},[e.audioUrl]),S.jsx("div",{className:"flex relative z-10 p-4 w-full mt-4",children:S.jsx("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:S.jsx("source",{ref:n,type:e.mimeType})})})}function c1(e){const{isModelLoading:t,isTranscribing:n,onClick:r,...o}=e;return S.jsx("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?S.jsx(sc,{text:"Loading model..."}):n?S.jsx(sc,{text:"Transcribing..."}):"Transcribe Audio"})}function sc(e){return S.jsxs("div",{role:"status",children:[S.jsxs("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 mr-3 text-white animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),S.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]}),e.text]})}function d1(){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.slice(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||("opera"in window&&typeof window.opera=="string"?window.opera:"")),e}const hl=d1(),pt={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:`https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/${hl?"jfk":"ted_60_16k"}.wav`,DEFAULT_MODEL:hl?"onnx-community/whisper-tiny":"onnx-community/whisper-base",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"english",DEFAULT_QUANTIZED:hl,DEFAULT_MULTILINGUAL:!0};function f1({text:e,percentage:t}){return t=t??0,S.jsx("div",{className:"mt-0.5 w-full relative text-sm text-white background-bg-cyan-400 bg-gray-200 border-1 border-gray-400 rounded-lg text-left overflow-hidden",children:S.jsxs("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:`${t}%`},children:[e," (",`${t.toFixed(2)}%`,")"]})})}function yl(e){return String(e).padStart(2,"0")}function wp(e){const t=e/3600|0;e-=t*(60*60);const n=e/60|0;e-=n*60;const r=e|0;return`${t?yl(t)+":":""}${yl(n)}:${yl(r)}`}const p1={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 ii{constructor(t="Unknown",n="Unknown"){this.name=t,this.type=n}updateBySource(){}setSource(t){this.source=t,this.updateBySource()}updateByData(){}setData(t){this.data=t,this.updateByData()}}class m1 extends ii{constructor(t,n){super(t,n||"Uint")}updateBySource(){this.data="";for(let t=0;t=o&&r<8;r++,o*=128);if(!n){let i=o+t;for(let l=r-1;l>=0;l--){const s=i%256;this.source[this.offset+l]=s,i=(i-s)/256}}this.offset+=r}writeSections(t=!1){this.offset=0;for(let n=0;nnew Promise((r,o)=>{try{const i=new FileReader;i.addEventListener("loadend",()=>{try{const l=i.result,s=new h1(new Uint8Array(l));s.fixDuration(t)?r(s.toBlob(n)):r(e)}catch(l){o(l)}}),i.addEventListener("error",()=>o()),i.readAsArrayBuffer(e)}catch(i){o(i)}});function g1(){const e=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let t=0;t{l(null);try{s.current||(s.current=await navigator.mediaDevices.getUserMedia({audio:!0}));const y=Date.now(),w=g1(),x=new MediaRecorder(s.current,{mimeType:w});u.current=x,x.addEventListener("dataavailable",async p=>{if(p.data.size===0)return;a.current.push(p.data);const d=Date.now()-y;let m=new Blob(a.current,{type:w});x.state==="inactive"?(w==="audio/webm"&&(m=await y1(m,d,m.type)),l(m),e.onRecordingComplete(m),a.current=[]):x.state==="recording"&&e.onRecordingProgress(m)}),x.start(),n(!0)}catch(y){console.error("Error accessing microphone:",y)}},h=()=>{var y;((y=u.current)==null?void 0:y.state)==="recording"&&(u.current.stop(),o(0),n(!1))};v.useEffect(()=>{if(t){const y=setInterval(()=>{o(w=>w+1)},1e3);return()=>{clearInterval(y)}}},[t]);const g=()=>{t?h():f()};return S.jsxs("div",{className:"flex flex-col justify-center items-center",children:[S.jsx("button",{type:"button",className:`m-2 inline-flex justify-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-200 ${t?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"}`,onClick:g,children:t?`Stop Recording (${wp(r)})`:"Start Recording"}),i&&S.jsx("audio",{className:"w-full",ref:c,controls:!0,children:S.jsx("source",{src:URL.createObjectURL(i),type:i.type})})]})}function w1(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const ac={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"},S1=Object.entries({"onnx-community/whisper-large-v3-turbo":1604});function E1(e){const[t,n]=v.useState(0),[r,o]=v.useState(void 0),[i,l]=v.useState(void 0),s=()=>{o(void 0),l(void 0)},u=async(f,h)=>{const g=new AudioContext({sampleRate:pt.SAMPLING_RATE}),y=URL.createObjectURL(new Blob([f],{type:"audio/*"})),w=await g.decodeAudioData(f);o({buffer:w,url:y,source:"URL",mimeType:h})},a=async f=>{s(),n(0);const h=URL.createObjectURL(f),g=new FileReader;g.onprogress=y=>{n(y.loaded/y.total||0)},g.onloadend=async()=>{const y=new AudioContext({sampleRate:pt.SAMPLING_RATE}),w=g.result,x=await y.decodeAudioData(w);n(void 0),o({buffer:x,url:h,source:"RECORDING",mimeType:f.type})},g.readAsArrayBuffer(f)},c=async f=>{if(i)try{o(void 0),n(0);const{data:h,headers:g}=await Z.get(i,{signal:f.signal,responseType:"arraybuffer",onDownloadProgress(w){n(w.progress||0)}});let y=g["content-type"];(!y||y==="audio/wave")&&(y="audio/wav"),u(h,y)}catch(h){console.log("Request failed or aborted",h),n(void 0)}};return v.useEffect(()=>{if(i){const f=new AbortController;return c(f),()=>{f.abort()}}},[i]),S.jsxs(S.Fragment,{children:[S.jsxs("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:[S.jsxs("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[S.jsx(R1,{icon:S.jsx(F1,{}),text:"From URL",onUrlUpdate:f=>{e.transcriber.onInputChange(),l(f)}}),S.jsx(cc,{}),S.jsx(N1,{icon:S.jsx(O1,{}),text:"From file",onFileUpdate:(f,h,g)=>{e.transcriber.onInputChange(),o({buffer:f,url:h,source:"FILE",mimeType:g})}}),navigator.mediaDevices&&S.jsxs(S.Fragment,{children:[S.jsx(cc,{}),S.jsx(L1,{icon:S.jsx(A1,{}),text:"Record",setAudioData:f=>{e.transcriber.onInputChange(),a(f)}})]})]}),S.jsx(C1,{progress:t!==void 0&&r?1:t??0})]}),r&&S.jsxs(S.Fragment,{children:[S.jsx(a1,{audioUrl:r.url,mimeType:r.mimeType}),S.jsx("div",{className:"relative w-full flex justify-center items-center",children:S.jsx(c1,{onClick:()=>{e.transcriber.start(r.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy})}),e.transcriber.progressItems.length>0&&S.jsxs("div",{className:"relative z-10 p-4 w-full text-center",children:[S.jsx("label",{children:"Loading model files... (only run once)"}),e.transcriber.progressItems.map(f=>S.jsx("div",{children:S.jsx(f1,{text:f.file,percentage:f.progress})},f.file))]})]}),S.jsx(k1,{className:"absolute bottom-4 right-4",transcriber:e.transcriber,icon:S.jsx(U1,{})})]})}function k1(e){const[t,n]=v.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=()=>{o()};return S.jsxs("div",{className:e.className,children:[S.jsx(ji,{icon:e.icon,onClick:r}),S.jsx(x1,{show:t,onSubmit:i,onClose:o,transcriber:e.transcriber})]})}function x1(e){const t=Object.values(ac).map(w1),n=S1.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 S.jsx(Nu,{show:e.show,title:"Settings",content:S.jsxs(S.Fragment,{children:[S.jsx("label",{children:"Select the model to use."}),S.jsx("select",{className:"mt-1 mb-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-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})=>S.jsx("option",{value:o,children:`${o} (${i}MB)`},r))}),S.jsx("div",{className:"flex justify-end items-center mb-3 px-1",children:S.jsxs("div",{className:"flex",children:[S.jsx("input",{id:"multilingual",type:"checkbox",checked:e.transcriber.multilingual,onChange:r=>{let o=pt.DEFAULT_MODEL;r.target.checked||(o+=".en"),e.transcriber.setModel(o),e.transcriber.setMultilingual(r.target.checked)}}),S.jsx("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual"})]})}),e.transcriber.multilingual&&S.jsxs(S.Fragment,{children:[S.jsx("label",{children:"Select the source language."}),S.jsx("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-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(ac).map((r,o)=>S.jsx("option",{value:r,children:t[o]},r))}),S.jsx("label",{children:"Select the task to perform."}),S.jsxs("select",{className:"mt-1 mb-3 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-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:[S.jsx("option",{value:"transcribe",children:"Transcribe"}),S.jsx("option",{value:"translate",children:"Translate (to English)"})]})]})]}),onClose:e.onClose,onSubmit:()=>{}})}function cc(){return S.jsx("div",{className:"w-[1px] bg-slate-200"})}function C1(e){return S.jsx(T1,{progress:`${Math.round(e.progress*100)}%`})}function T1(e){return S.jsx("div",{className:"w-full rounded-full h-1 bg-gray-200 dark:bg-gray-700",children:S.jsx("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:e.progress}})})}function R1(e){const[t,n]=v.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{e.onUrlUpdate(l),o()};return S.jsxs(S.Fragment,{children:[S.jsx(ji,{icon:e.icon,text:e.text,onClick:r}),S.jsx(P1,{show:t,onSubmit:i,onClose:o})]})}function P1(e){const[t,n]=v.useState(pt.DEFAULT_AUDIO_URL),r=i=>{n(i.target.value)},o=()=>{e.onSubmit(t)};return S.jsx(Nu,{show:e.show,title:"From URL",content:S.jsxs(S.Fragment,{children:["Enter the URL of the audio file you want to load.",S.jsx(u1,{onChange:r,value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:o})}function N1(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 s=>{var f;const u=(f=s.target)==null?void 0:f.result;if(!u)return;const c=await new AudioContext({sampleRate:pt.SAMPLING_RATE}).decodeAudioData(u);e.onFileUpdate(c,o,i)}),l.readAsArrayBuffer(r[0]),t.value=""},S.jsx(ji,{icon:e.icon,text:e.text,onClick:()=>t.click()})}function L1(e){const[t,n]=v.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{l&&(e.setAudioData(l),o())};return S.jsxs(S.Fragment,{children:[S.jsx(ji,{icon:e.icon,text:e.text,onClick:r}),S.jsx(_1,{show:t,onSubmit:i,onProgress:l=>{},onClose:o})]})}function _1(e){const[t,n]=v.useState(),r=l=>{n(l)},o=()=>{e.onSubmit(t),n(void 0)},i=()=>{e.onClose(),n(void 0)};return S.jsx(Nu,{show:e.show,title:"From Recording",content:S.jsxs(S.Fragment,{children:["Record audio using your microphone",S.jsx(v1,{onRecordingProgress:l=>{e.onProgress(l)},onRecordingComplete:r})]}),onClose:i,submitText:"Load",submitEnabled:t!==void 0,onSubmit:o})}function ji(e){return S.jsxs("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:[S.jsx("div",{className:"w-7 h-7",children:e.icon}),e.text&&S.jsx("div",{className:"ml-2 break-text text-center text-md w-30",children:e.text})]})}function F1(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})})}function O1(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 00-1.883 2.542l.857 6a2.25 2.25 0 002.227 1.932H19.05a2.25 2.25 0 002.227-1.932l.857-6a2.25 2.25 0 00-1.883-2.542m-16.5 0V6A2.25 2.25 0 016 3.75h3.879a1.5 1.5 0 011.06.44l2.122 2.12a1.5 1.5 0 001.06.44H18A2.25 2.25 0 0120.25 9v.776"})})}function U1(){return S.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z"}),S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function A1(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z"})})}function j1({transcribedData:e}){const t=v.useRef(null),n=(i,l)=>{const s=URL.createObjectURL(i),u=document.createElement("a");u.href=s,u.download=l,u.click(),URL.revokeObjectURL(s)},r=()=>{const l=((e==null?void 0:e.chunks)??[]).map(u=>u.text).join("").trim(),s=new Blob([l],{type:"text/plain"});n(s,"transcript.txt")},o=()=>{let i=JSON.stringify((e==null?void 0:e.chunks)??[],null,2);const l=/( {4}"timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm;i=i.replace(l,"$1[$2 $3]");const s=new Blob([i],{type:"application/json"});n(s,"transcript.json")};return v.useEffect(()=>{t.current&&Math.abs(t.current.offsetHeight+t.current.scrollTop-t.current.scrollHeight)<=100&&(t.current.scrollTop=t.current.scrollHeight)}),S.jsxs("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)=>S.jsxs("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:[S.jsx("div",{className:"mr-5",children:wp(i.timestamp[0])}),i.text]},`${l}-${i.text}`)),(e==null?void 0:e.tps)&&S.jsxs("p",{className:"text-sm text-center mt-4 mb-1",children:[S.jsx("span",{className:"font-semibold text-black",children:e==null?void 0:e.tps.toFixed(2)})," ",S.jsx("span",{className:"text-gray-500",children:"tokens/second"})]}),e&&!e.isBusy&&S.jsxs("div",{className:"w-full text-right",children:[S.jsx("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"}),S.jsx("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 D1(e){const[t]=v.useState(()=>M1(e));return t}function M1(e){const t=new Worker(new URL("/assets/worker-749W3JaX.js",import.meta.url),{type:"module"});return t.addEventListener("message",e),t}function $1(){const[e,t]=v.useState(void 0),[n,r]=v.useState(!1),[o,i]=v.useState(!1),[l,s]=v.useState([]),u=D1(k=>{const C=k.data;switch(C.status){case"progress":s(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;t({isBusy:P,text:R.data.text,tps:R.data.tps,chunks:R.data.chunks}),r(P);break;case"initiate":i(!0),s(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":s(N=>N.filter(D=>D.file!==C.file));break}}),[a,c]=v.useState(pt.DEFAULT_MODEL),[f,h]=v.useState(pt.DEFAULT_SUBTASK),[g,y]=v.useState(pt.DEFAULT_MULTILINGUAL),[w,x]=v.useState(pt.DEFAULT_LANGUAGE),p=v.useCallback(()=>{t(void 0)},[]),d=v.useCallback(async k=>{if(k){t(void 0),r(!0);let C;if(k.numberOfChannels===2){const P=Math.sqrt(2),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:g,setMultilingual:y,subtask:f,setSubtask:h,language:w,setLanguage:x}),[n,o,l,d,e,a,g,f,w])}const I1=!!navigator.gpu;function z1(){const e=$1();return I1?S.jsxs("div",{className:"flex justify-center items-center min-h-screen",children:[S.jsxs("div",{className:"container flex flex-col justify-center items-center",children:[S.jsx("h1",{className:"text-5xl font-extrabold tracking-tight text-slate-900 sm:text-7xl text-center",children:"Whisper WebGPU"}),S.jsx("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"}),S.jsx(E1,{transcriber:e}),S.jsx(j1,{transcribedData:e.output})]}),S.jsxs("div",{className:"absolute bottom-4",children:["Made with"," ",S.jsx("a",{className:"underline",href:"https://github.com/xenova/transformers.js",children:"🤗 Transformers.js"})]})]}):S.jsxs("div",{className:"fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] text-white text-2xl font-semibold flex justify-center items-center text-center",children:["WebGPU is not supported",S.jsx("br",{}),"by this browser :("]})}gl.createRoot(document.getElementById("root")).render(S.jsx(A.StrictMode,{children:S.jsx(z1,{})}));