File size: 244,844 Bytes
3500b4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var op=Object.defineProperty;var ip=(e,t,n)=>t in e?op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qn=(e,t,n)=>(ip(e,typeof t!="symbol"?t+"":t,n),n);function lp(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[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 up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ic={exports:{}},ui={},lc={exports:{}},D={};/**
 * @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 zr=Symbol.for("react.element"),sp=Symbol.for("react.portal"),ap=Symbol.for("react.fragment"),cp=Symbol.for("react.strict_mode"),dp=Symbol.for("react.profiler"),fp=Symbol.for("react.provider"),pp=Symbol.for("react.context"),mp=Symbol.for("react.forward_ref"),hp=Symbol.for("react.suspense"),yp=Symbol.for("react.memo"),gp=Symbol.for("react.lazy"),Os=Symbol.iterator;function vp(e){return e===null||typeof e!="object"?null:(e=Os&&e[Os]||e["@@iterator"],typeof e=="function"?e:null)}var uc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sc=Object.assign,ac={};function Hn(e,t,n){this.props=e,this.context=t,this.refs=ac,this.updater=n||uc}Hn.prototype.isReactComponent={};Hn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cc(){}cc.prototype=Hn.prototype;function Tu(e,t,n){this.props=e,this.context=t,this.refs=ac,this.updater=n||uc}var Nu=Tu.prototype=new cc;Nu.constructor=Tu;sc(Nu,Hn.prototype);Nu.isPureReactComponent=!0;var Fs=Array.isArray,dc=Object.prototype.hasOwnProperty,Pu={current:null},fc={key:!0,ref:!0,__self:!0,__source:!0};function pc(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)dc.call(t,r)&&!fc.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:zr,type:e,key:i,ref:l,props:o,_owner:Pu.current}}function wp(e,t){return{$$typeof:zr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ru(e){return typeof e=="object"&&e!==null&&e.$$typeof===zr}function Sp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ds=/\/+/g;function Di(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Sp(""+e.key):t.toString(36)}function ho(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case zr:case sp:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Di(l,0):r,Fs(o)?(n="",e!=null&&(n=e.replace(Ds,"$&/")+"/"),ho(o,t,n,"",function(a){return a})):o!=null&&(Ru(o)&&(o=wp(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Ds,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Fs(e))for(var u=0;u<e.length;u++){i=e[u];var s=r+Di(i,u);l+=ho(i,t,n,s,o)}else if(s=vp(e),typeof s=="function")for(e=s.call(e),u=0;!(i=e.next()).done;)i=i.value,s=r+Di(i,u++),l+=ho(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Xr(e,t,n){if(e==null)return e;var r=[],o=0;return ho(e,r,"","",function(i){return t.call(n,i,o++)}),r}function kp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var we={current:null},yo={transition:null},Ep={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:yo,ReactCurrentOwner:Pu};D.Children={map:Xr,forEach:function(e,t,n){Xr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xr(e,function(){t++}),t},toArray:function(e){return Xr(e,function(t){return t})||[]},only:function(e){if(!Ru(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};D.Component=Hn;D.Fragment=ap;D.Profiler=dp;D.PureComponent=Tu;D.StrictMode=cp;D.Suspense=hp;D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ep;D.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=sc({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Pu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)dc.call(t,s)&&!fc.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var a=0;a<s;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:zr,type:e.type,key:o,ref:i,props:r,_owner:l}};D.createContext=function(e){return e={$$typeof:pp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fp,_context:e},e.Consumer=e};D.createElement=pc;D.createFactory=function(e){var t=pc.bind(null,e);return t.type=e,t};D.createRef=function(){return{current:null}};D.forwardRef=function(e){return{$$typeof:mp,render:e}};D.isValidElement=Ru;D.lazy=function(e){return{$$typeof:gp,_payload:{_status:-1,_result:e},_init:kp}};D.memo=function(e,t){return{$$typeof:yp,type:e,compare:t===void 0?null:t}};D.startTransition=function(e){var t=yo.transition;yo.transition={};try{e()}finally{yo.transition=t}};D.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};D.useCallback=function(e,t){return we.current.useCallback(e,t)};D.useContext=function(e){return we.current.useContext(e)};D.useDebugValue=function(){};D.useDeferredValue=function(e){return we.current.useDeferredValue(e)};D.useEffect=function(e,t){return we.current.useEffect(e,t)};D.useId=function(){return we.current.useId()};D.useImperativeHandle=function(e,t,n){return we.current.useImperativeHandle(e,t,n)};D.useInsertionEffect=function(e,t){return we.current.useInsertionEffect(e,t)};D.useLayoutEffect=function(e,t){return we.current.useLayoutEffect(e,t)};D.useMemo=function(e,t){return we.current.useMemo(e,t)};D.useReducer=function(e,t,n){return we.current.useReducer(e,t,n)};D.useRef=function(e){return we.current.useRef(e)};D.useState=function(e){return we.current.useState(e)};D.useSyncExternalStore=function(e,t,n){return we.current.useSyncExternalStore(e,t,n)};D.useTransition=function(){return we.current.useTransition()};D.version="18.2.0";lc.exports=D;var w=lc.exports;const M=up(w),Sl=lp({__proto__:null,default:M},[w]);/**
 * @license React
 * react-jsx-runtime.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 Cp=w,xp=Symbol.for("react.element"),Tp=Symbol.for("react.fragment"),Np=Object.prototype.hasOwnProperty,Pp=Cp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rp={key:!0,ref:!0,__self:!0,__source:!0};function mc(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Np.call(t,r)&&!Rp.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:xp,type:e,key:i,ref:l,props:o,_owner:Pp.current}}ui.Fragment=Tp;ui.jsx=mc;ui.jsxs=mc;ic.exports=ui;var Lu=ic.exports;const nt=Lu.Fragment,C=Lu.jsx,I=Lu.jsxs;var kl={},hc={exports:{}},Ue={},yc={exports:{}},gc={};/**
 * @license React
 * scheduler.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.
 */(function(e){function t(R,O){var F=R.length;R.push(O);e:for(;0<F;){var B=F-1>>>1,ee=R[B];if(0<o(ee,O))R[B]=O,R[F]=ee,F=B;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var O=R[0],F=R.pop();if(F!==O){R[0]=F;e:for(var B=0,ee=R.length,Gt=ee>>>1;B<Gt;){var at=2*(B+1)-1,Q=R[at],te=at+1,G=R[te];if(0>o(Q,F))te<ee&&0>o(G,Q)?(R[B]=G,R[te]=F,B=te):(R[B]=Q,R[at]=F,B=at);else if(te<ee&&0>o(G,F))R[B]=G,R[te]=F,B=te;else break e}}return O}function o(R,O){var F=R.sortIndex-O.sortIndex;return F!==0?F:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var s=[],a=[],d=1,p=null,m=3,v=!1,h=!1,g=!1,T=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=R)r(a),O.sortIndex=O.expirationTime,t(s,O);else break;O=n(a)}}function k(R){if(g=!1,y(R),!h)if(n(s)!==null)h=!0,st(N);else{var O=n(a);O!==null&&Kt(k,O.startTime-R)}}function N(R,O){h=!1,g&&(g=!1,f(L),L=-1),v=!0;var F=m;try{for(y(O),p=n(s);p!==null&&(!(p.expirationTime>O)||R&&!j());){var B=p.callback;if(typeof B=="function"){p.callback=null,m=p.priorityLevel;var ee=B(p.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(s)&&r(s),y(O)}else r(s);p=n(s)}if(p!==null)var Gt=!0;else{var at=n(a);at!==null&&Kt(k,at.startTime-O),Gt=!1}return Gt}finally{p=null,m=F,v=!1}}var P=!1,x=null,L=-1,A=5,U=-1;function j(){return!(e.unstable_now()-U<A)}function He(){if(x!==null){var R=e.unstable_now();U=R;var O=!0;try{O=x(!0,R)}finally{O?Ve():(P=!1,x=null)}}else P=!1}var Ve;if(typeof c=="function")Ve=function(){c(He)};else if(typeof MessageChannel<"u"){var mn=new MessageChannel,ut=mn.port2;mn.port1.onmessage=He,Ve=function(){ut.postMessage(null)}}else Ve=function(){T(He,0)};function st(R){x=R,P||(P=!0,Ve())}function Kt(R,O){L=T(function(){R(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){h||v||(h=!0,st(N))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(R){switch(m){case 1:case 2:case 3:var O=3;break;default:O=m}var F=m;m=O;try{return R()}finally{m=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,O){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var F=m;m=R;try{return O()}finally{m=F}},e.unstable_scheduleCallback=function(R,O,F){var B=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?B+F:B):F=B,R){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=F+ee,R={id:d++,callback:O,priorityLevel:R,startTime:F,expirationTime:ee,sortIndex:-1},F>B?(R.sortIndex=F,t(a,R),n(s)===null&&R===n(a)&&(g?(f(L),L=-1):g=!0,Kt(k,F-B))):(R.sortIndex=ee,t(s,R),h||v||(h=!0,st(N))),R},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(R){var O=m;return function(){var F=m;m=O;try{return R.apply(this,arguments)}finally{m=F}}}})(gc);yc.exports=gc;var Lp=yc.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 vc=w,_e=Lp;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var wc=new Set,kr={};function fn(e,t){Dn(e,t),Dn(e+"Capture",t)}function Dn(e,t){for(kr[e]=t,e=0;e<t.length;e++)wc.add(t[e])}var St=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),El=Object.prototype.hasOwnProperty,_p=/^[: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]*$/,As={},Ms={};function Up(e){return El.call(Ms,e)?!0:El.call(As,e)?!1:_p.test(e)?Ms[e]=!0:(As[e]=!0,!1)}function Op(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 Fp(e,t,n,r){if(t===null||typeof t>"u"||Op(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Se(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new Se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var _u=/[\-:]([a-z])/g;function Uu(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(_u,Uu);de[t]=new Se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_u,Uu);de[t]=new Se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_u,Uu);de[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ou(e,t,n,r){var o=de.hasOwnProperty(t)?de[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Fp(t,n,o,r)&&(n=null),r||o===null?Up(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var xt=vc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yr=Symbol.for("react.element"),yn=Symbol.for("react.portal"),gn=Symbol.for("react.fragment"),Fu=Symbol.for("react.strict_mode"),Cl=Symbol.for("react.profiler"),Sc=Symbol.for("react.provider"),kc=Symbol.for("react.context"),Du=Symbol.for("react.forward_ref"),xl=Symbol.for("react.suspense"),Tl=Symbol.for("react.suspense_list"),Au=Symbol.for("react.memo"),Pt=Symbol.for("react.lazy"),Ec=Symbol.for("react.offscreen"),$s=Symbol.iterator;function Xn(e){return e===null||typeof e!="object"?null:(e=$s&&e[$s]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,Ai;function ur(e){if(Ai===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ai=t&&t[1]||""}return`
`+Ai+e}var Mi=!1;function $i(e,t){if(!e||Mi)return"";Mi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var o=a.stack.split(`
`),i=r.stack.split(`
`),l=o.length-1,u=i.length-1;1<=l&&0<=u&&o[l]!==i[u];)u--;for(;1<=l&&0<=u;l--,u--)if(o[l]!==i[u]){if(l!==1||u!==1)do if(l--,u--,0>u||o[l]!==i[u]){var s=`
`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=u);break}}}finally{Mi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ur(e):""}function Dp(e){switch(e.tag){case 5:return ur(e.type);case 16:return ur("Lazy");case 13:return ur("Suspense");case 19:return ur("SuspenseList");case 0:case 2:case 15:return e=$i(e.type,!1),e;case 11:return e=$i(e.type.render,!1),e;case 1:return e=$i(e.type,!0),e;default:return""}}function Nl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case gn:return"Fragment";case yn:return"Portal";case Cl:return"Profiler";case Fu:return"StrictMode";case xl:return"Suspense";case Tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kc:return(e.displayName||"Context")+".Consumer";case Sc:return(e._context.displayName||"Context")+".Provider";case Du:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Au:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case Pt:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function Ap(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nl(t);case 8:return t===Fu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mp(e){var t=Cc(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=Mp(e))}function xc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pl(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Is(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Tc(e,t){t=t.checked,t!=null&&Ou(e,"checked",t,!1)}function Rl(e,t){Tc(e,t);var n=Ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ll(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zs(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 Ll(e,t,n){(t!=="number"||Oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sr=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function _l(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bs(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(sr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ht(n)}}function Nc(e,t){var n=Ht(t.value),r=Ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function js(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Pc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ul(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Pc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zr,Rc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zr=Zr||document.createElement("div"),Zr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Er(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},$p=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){$p.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function Lc(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 _c(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Lc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ip=Y({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 Ol(e,t){if(t){if(Ip[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Fl(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 Dl=null;function Mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Al=null,Ln=null,_n=null;function Hs(e){if(e=Hr(e)){if(typeof Al!="function")throw Error(E(280));var t=e.stateNode;t&&(t=fi(t),Al(e.stateNode,e.type,t))}}function Uc(e){Ln?_n?_n.push(e):_n=[e]:Ln=e}function Oc(){if(Ln){var e=Ln,t=_n;if(_n=Ln=null,Hs(e),t)for(e=0;e<t.length;e++)Hs(t[e])}}function Fc(e,t){return e(t)}function Dc(){}var Ii=!1;function Ac(e,t,n){if(Ii)return e(t,n);Ii=!0;try{return Fc(e,t,n)}finally{Ii=!1,(Ln!==null||_n!==null)&&(Dc(),Oc())}}function Cr(e,t){var n=e.stateNode;if(n===null)return null;var r=fi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Ml=!1;if(St)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Ml=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch{Ml=!1}function zp(e,t,n,r,o,i,l,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(d){this.onError(d)}}var pr=!1,Fo=null,Do=!1,$l=null,Bp={onError:function(e){pr=!0,Fo=e}};function jp(e,t,n,r,o,i,l,u,s){pr=!1,Fo=null,zp.apply(Bp,arguments)}function Hp(e,t,n,r,o,i,l,u,s){if(jp.apply(this,arguments),pr){if(pr){var a=Fo;pr=!1,Fo=null}else throw Error(E(198));Do||(Do=!0,$l=a)}}function pn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Mc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vs(e){if(pn(e)!==e)throw Error(E(188))}function Vp(e){var t=e.alternate;if(!t){if(t=pn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Vs(o),e;if(i===r)return Vs(o),t;i=i.sibling}throw Error(E(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function $c(e){return e=Vp(e),e!==null?Ic(e):null}function Ic(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ic(e);if(t!==null)return t;e=e.sibling}return null}var zc=_e.unstable_scheduleCallback,bs=_e.unstable_cancelCallback,bp=_e.unstable_shouldYield,Wp=_e.unstable_requestPaint,Z=_e.unstable_now,Qp=_e.unstable_getCurrentPriorityLevel,$u=_e.unstable_ImmediatePriority,Bc=_e.unstable_UserBlockingPriority,Ao=_e.unstable_NormalPriority,Kp=_e.unstable_LowPriority,jc=_e.unstable_IdlePriority,si=null,rt=null;function Gp(e){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(si,e,void 0,(e.current.flags&128)===128)}catch{}}var Ge=Math.clz32?Math.clz32:Yp,qp=Math.log,Xp=Math.LN2;function Yp(e){return e>>>=0,e===0?32:31-(qp(e)/Xp|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 Mo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~o;u!==0?r=ar(u):(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;0<t;)n=31-Ge(t),o=1<<n,r|=e[n],t&=~o;return r}function Jp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-Ge(i),u=1<<l,s=o[l];s===-1?(!(u&n)||u&r)&&(o[l]=Jp(u,t)):s<=t&&(e.expiredLanes|=u),i&=~u}}function Il(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hc(){var e=eo;return eo<<=1,!(eo&4194240)&&(eo=64),e}function zi(e){for(var t=[],n=0;31>n;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-Ge(t),e[t]=n}function em(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<n;){var o=31-Ge(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Iu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ge(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var H=0;function Vc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var bc,zu,Wc,Qc,Kc,zl=!1,no=[],Dt=null,At=null,Mt=null,xr=new Map,Tr=new Map,Lt=[],tm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ws(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tr.delete(t.pointerId)}}function Jn(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Hr(t),t!==null&&zu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function nm(e,t,n,r,o){switch(t){case"focusin":return Dt=Jn(Dt,e,t,n,r,o),!0;case"dragenter":return At=Jn(At,e,t,n,r,o),!0;case"mouseover":return Mt=Jn(Mt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return xr.set(i,Jn(xr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Tr.set(i,Jn(Tr.get(i)||null,e,t,n,r,o)),!0}return!1}function Gc(e){var t=Zt(e.target);if(t!==null){var n=pn(t);if(n!==null){if(t=n.tag,t===13){if(t=Mc(n),t!==null){e.blockedOn=t,Kc(e.priority,function(){Wc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function go(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dl=r,n.target.dispatchEvent(r),Dl=null}else return t=Hr(n),t!==null&&zu(t),e.blockedOn=n,!1;t.shift()}return!0}function Qs(e,t,n){go(e)&&n.delete(t)}function rm(){zl=!1,Dt!==null&&go(Dt)&&(Dt=null),At!==null&&go(At)&&(At=null),Mt!==null&&go(Mt)&&(Mt=null),xr.forEach(Qs),Tr.forEach(Qs)}function Zn(e,t){e.blockedOn===t&&(e.blockedOn=null,zl||(zl=!0,_e.unstable_scheduleCallback(_e.unstable_NormalPriority,rm)))}function Nr(e){function t(o){return Zn(o,e)}if(0<no.length){Zn(no[0],e);for(var n=1;n<no.length;n++){var r=no[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dt!==null&&Zn(Dt,e),At!==null&&Zn(At,e),Mt!==null&&Zn(Mt,e),xr.forEach(t),Tr.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],n.blockedOn===null);)Gc(n),n.blockedOn===null&&Lt.shift()}var Un=xt.ReactCurrentBatchConfig,$o=!0;function om(e,t,n,r){var o=H,i=Un.transition;Un.transition=null;try{H=1,Bu(e,t,n,r)}finally{H=o,Un.transition=i}}function im(e,t,n,r){var o=H,i=Un.transition;Un.transition=null;try{H=4,Bu(e,t,n,r)}finally{H=o,Un.transition=i}}function Bu(e,t,n,r){if($o){var o=Bl(e,t,n,r);if(o===null)qi(e,t,r,Io,n),Ws(e,r);else if(nm(o,e,t,n,r))r.stopPropagation();else if(Ws(e,r),t&4&&-1<tm.indexOf(e)){for(;o!==null;){var i=Hr(o);if(i!==null&&bc(i),i=Bl(e,t,n,r),i===null&&qi(e,t,r,Io,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else qi(e,t,r,null,n)}}var Io=null;function Bl(e,t,n,r){if(Io=null,e=Mu(r),e=Zt(e),e!==null)if(t=pn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Mc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Io=e,null}function qc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qp()){case $u:return 1;case Bc:return 4;case Ao:case Kp:return 16;case jc:return 536870912;default:return 16}default:return 16}}var Ot=null,ju=null,vo=null;function Xc(){if(vo)return vo;var e,t=ju,n=t.length,r,o="value"in Ot?Ot.value:Ot.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return vo=o.slice(e,1<r?1-r:void 0)}function wo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ro(){return!0}function Ks(){return!1}function Oe(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ro:Ks,this.isPropagationStopped=Ks,this}return Y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=Oe(Vn),jr=Y({},Vn,{view:0,detail:0}),lm=Oe(jr),Bi,ji,er,ai=Y({},jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==er&&(er&&e.type==="mousemove"?(Bi=e.screenX-er.screenX,ji=e.screenY-er.screenY):ji=Bi=0,er=e),Bi)},movementY:function(e){return"movementY"in e?e.movementY:ji}}),Gs=Oe(ai),um=Y({},ai,{dataTransfer:0}),sm=Oe(um),am=Y({},jr,{relatedTarget:0}),Hi=Oe(am),cm=Y({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),dm=Oe(cm),fm=Y({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pm=Oe(fm),mm=Y({},Vn,{data:0}),qs=Oe(mm),hm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ym={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gm[e])?!!t[e]:!1}function Vu(){return vm}var wm=Y({},jr,{key:function(e){if(e.key){var t=hm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ym[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(e){return e.type==="keypress"?wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sm=Oe(wm),km=Y({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xs=Oe(km),Em=Y({},jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),Cm=Oe(Em),xm=Y({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tm=Oe(xm),Nm=Y({},ai,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pm=Oe(Nm),Rm=[9,13,27,32],bu=St&&"CompositionEvent"in window,mr=null;St&&"documentMode"in document&&(mr=document.documentMode);var Lm=St&&"TextEvent"in window&&!mr,Yc=St&&(!bu||mr&&8<mr&&11>=mr),Ys=String.fromCharCode(32),Js=!1;function Jc(e,t){switch(e){case"keyup":return Rm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vn=!1;function _m(e,t){switch(e){case"compositionend":return Zc(t);case"keypress":return t.which!==32?null:(Js=!0,Ys);case"textInput":return e=t.data,e===Ys&&Js?null:e;default:return null}}function Um(e,t){if(vn)return e==="compositionend"||!bu&&Jc(e,t)?(e=Xc(),vo=ju=Ot=null,vn=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yc&&t.locale!=="ko"?null:t.data;default:return null}}var Om={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Om[e.type]:t==="textarea"}function ed(e,t,n,r){Uc(r),t=zo(t,"onChange"),0<t.length&&(n=new Hu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hr=null,Pr=null;function Fm(e){dd(e,0)}function ci(e){var t=kn(e);if(xc(t))return e}function Dm(e,t){if(e==="change")return t}var td=!1;if(St){var Vi;if(St){var bi="oninput"in document;if(!bi){var ea=document.createElement("div");ea.setAttribute("oninput","return;"),bi=typeof ea.oninput=="function"}Vi=bi}else Vi=!1;td=Vi&&(!document.documentMode||9<document.documentMode)}function ta(){hr&&(hr.detachEvent("onpropertychange",nd),Pr=hr=null)}function nd(e){if(e.propertyName==="value"&&ci(Pr)){var t=[];ed(t,Pr,e,Mu(e)),Ac(Fm,t)}}function Am(e,t,n){e==="focusin"?(ta(),hr=t,Pr=n,hr.attachEvent("onpropertychange",nd)):e==="focusout"&&ta()}function Mm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ci(Pr)}function $m(e,t){if(e==="click")return ci(t)}function Im(e,t){if(e==="input"||e==="change")return ci(t)}function zm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xe=typeof Object.is=="function"?Object.is:zm;function Rr(e,t){if(Xe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!El.call(t,o)||!Xe(e[o],t[o]))return!1}return!0}function na(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ra(e,t){var n=na(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=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=na(n)}}function rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(){for(var e=window,t=Oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oo(e.document)}return t}function Wu(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 Bm(e){var t=od(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rd(n.ownerDocument.documentElement,n)){if(r!==null&&Wu(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=ra(n,i);var l=ra(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<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var jm=St&&"documentMode"in document&&11>=document.documentMode,wn=null,jl=null,yr=null,Hl=!1;function oa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hl||wn==null||wn!==Oo(r)||(r=wn,"selectionStart"in r&&Wu(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&&Rr(yr,r)||(yr=r,r=zo(jl,"onSelect"),0<r.length&&(t=new Hu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wn)))}function oo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sn={animationend:oo("Animation","AnimationEnd"),animationiteration:oo("Animation","AnimationIteration"),animationstart:oo("Animation","AnimationStart"),transitionend:oo("Transition","TransitionEnd")},Wi={},id={};St&&(id=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);function di(e){if(Wi[e])return Wi[e];if(!Sn[e])return e;var t=Sn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in id)return Wi[e]=t[n];return e}var ld=di("animationend"),ud=di("animationiteration"),sd=di("animationstart"),ad=di("transitionend"),cd=new Map,ia="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function bt(e,t){cd.set(e,t),fn(t,[e])}for(var Qi=0;Qi<ia.length;Qi++){var Ki=ia[Qi],Hm=Ki.toLowerCase(),Vm=Ki[0].toUpperCase()+Ki.slice(1);bt(Hm,"on"+Vm)}bt(ld,"onAnimationEnd");bt(ud,"onAnimationIteration");bt(sd,"onAnimationStart");bt("dblclick","onDoubleClick");bt("focusin","onFocus");bt("focusout","onBlur");bt(ad,"onTransitionEnd");Dn("onMouseEnter",["mouseout","mouseover"]);Dn("onMouseLeave",["mouseout","mouseover"]);Dn("onPointerEnter",["pointerout","pointerover"]);Dn("onPointerLeave",["pointerout","pointerover"]);fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bm=new Set("cancel close invalid load scroll toggle".split(" ").concat(cr));function la(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Hp(r,t,void 0,e),e.currentTarget=null}function dd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var u=r[l],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==i&&o.isPropagationStopped())break e;la(o,u,a),i=s}else for(l=0;l<r.length;l++){if(u=r[l],s=u.instance,a=u.currentTarget,u=u.listener,s!==i&&o.isPropagationStopped())break e;la(o,u,a),i=s}}}if(Do)throw e=$l,Do=!1,$l=null,e}function b(e,t){var n=t[Kl];n===void 0&&(n=t[Kl]=new Set);var r=e+"__bubble";n.has(r)||(fd(t,e,2,!1),n.add(r))}function Gi(e,t,n){var r=0;t&&(r|=4),fd(n,e,r,t)}var io="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){if(!e[io]){e[io]=!0,wc.forEach(function(n){n!=="selectionchange"&&(bm.has(n)||Gi(n,!1,e),Gi(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[io]||(t[io]=!0,Gi("selectionchange",!1,t))}}function fd(e,t,n,r){switch(qc(t)){case 1:var o=om;break;case 4:o=im;break;default:o=Bu}n=o.bind(null,t,n,e),o=void 0,!Ml||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qi(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;l=l.return}for(;u!==null;){if(l=Zt(u),l===null)return;if(s=l.tag,s===5||s===6){r=i=l;continue e}u=u.parentNode}}r=r.return}Ac(function(){var a=i,d=Mu(n),p=[];e:{var m=cd.get(e);if(m!==void 0){var v=Hu,h=e;switch(e){case"keypress":if(wo(n)===0)break e;case"keydown":case"keyup":v=Sm;break;case"focusin":h="focus",v=Hi;break;case"focusout":h="blur",v=Hi;break;case"beforeblur":case"afterblur":v=Hi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Gs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=sm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Cm;break;case ld:case ud:case sd:v=dm;break;case ad:v=Tm;break;case"scroll":v=lm;break;case"wheel":v=Pm;break;case"copy":case"cut":case"paste":v=pm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Xs}var g=(t&4)!==0,T=!g&&e==="scroll",f=g?m!==null?m+"Capture":null:m;g=[];for(var c=a,y;c!==null;){y=c;var k=y.stateNode;if(y.tag===5&&k!==null&&(y=k,f!==null&&(k=Cr(c,f),k!=null&&g.push(_r(c,k,y)))),T)break;c=c.return}0<g.length&&(m=new v(m,h,null,n,d),p.push({event:m,listeners:g}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==Dl&&(h=n.relatedTarget||n.fromElement)&&(Zt(h)||h[kt]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(h=n.relatedTarget||n.toElement,v=a,h=h?Zt(h):null,h!==null&&(T=pn(h),h!==T||h.tag!==5&&h.tag!==6)&&(h=null)):(v=null,h=a),v!==h)){if(g=Gs,k="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(g=Xs,k="onPointerLeave",f="onPointerEnter",c="pointer"),T=v==null?m:kn(v),y=h==null?m:kn(h),m=new g(k,c+"leave",v,n,d),m.target=T,m.relatedTarget=y,k=null,Zt(d)===a&&(g=new g(f,c+"enter",h,n,d),g.target=y,g.relatedTarget=T,k=g),T=k,v&&h)t:{for(g=v,f=h,c=0,y=g;y;y=hn(y))c++;for(y=0,k=f;k;k=hn(k))y++;for(;0<c-y;)g=hn(g),c--;for(;0<y-c;)f=hn(f),y--;for(;c--;){if(g===f||f!==null&&g===f.alternate)break t;g=hn(g),f=hn(f)}g=null}else g=null;v!==null&&ua(p,m,v,g,!1),h!==null&&T!==null&&ua(p,T,h,g,!0)}}e:{if(m=a?kn(a):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var N=Dm;else if(Zs(m))if(td)N=Im;else{N=Mm;var P=Am}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(N=$m);if(N&&(N=N(e,a))){ed(p,N,n,d);break e}P&&P(e,m,a),e==="focusout"&&(P=m._wrapperState)&&P.controlled&&m.type==="number"&&Ll(m,"number",m.value)}switch(P=a?kn(a):window,e){case"focusin":(Zs(P)||P.contentEditable==="true")&&(wn=P,jl=a,yr=null);break;case"focusout":yr=jl=wn=null;break;case"mousedown":Hl=!0;break;case"contextmenu":case"mouseup":case"dragend":Hl=!1,oa(p,n,d);break;case"selectionchange":if(jm)break;case"keydown":case"keyup":oa(p,n,d)}var x;if(bu)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else vn?Jc(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Yc&&n.locale!=="ko"&&(vn||L!=="onCompositionStart"?L==="onCompositionEnd"&&vn&&(x=Xc()):(Ot=d,ju="value"in Ot?Ot.value:Ot.textContent,vn=!0)),P=zo(a,L),0<P.length&&(L=new qs(L,e,null,n,d),p.push({event:L,listeners:P}),x?L.data=x:(x=Zc(n),x!==null&&(L.data=x)))),(x=Lm?_m(e,n):Um(e,n))&&(a=zo(a,"onBeforeInput"),0<a.length&&(d=new qs("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:a}),d.data=x))}dd(p,t)})}function _r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zo(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Cr(e,n),i!=null&&r.unshift(_r(e,i,o)),i=Cr(e,t),i!=null&&r.push(_r(e,i,o))),e=e.return}return r}function hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ua(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,o?(s=Cr(n,i),s!=null&&l.unshift(_r(n,s,u))):o||(s=Cr(n,i),s!=null&&l.push(_r(n,s,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Wm=/\r\n?/g,Qm=/\u0000|\uFFFD/g;function sa(e){return(typeof e=="string"?e:""+e).replace(Wm,`
`).replace(Qm,"")}function lo(e,t,n){if(t=sa(t),sa(e)!==t&&n)throw Error(E(425))}function Bo(){}var Vl=null,bl=null;function Wl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ql=typeof setTimeout=="function"?setTimeout:void 0,Km=typeof clearTimeout=="function"?clearTimeout:void 0,aa=typeof Promise=="function"?Promise:void 0,Gm=typeof queueMicrotask=="function"?queueMicrotask:typeof aa<"u"?function(e){return aa.resolve(null).then(e).catch(qm)}:Ql;function qm(e){setTimeout(function(){throw e})}function Xi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Nr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Nr(t)}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ca(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var bn=Math.random().toString(36).slice(2),et="__reactFiber$"+bn,Ur="__reactProps$"+bn,kt="__reactContainer$"+bn,Kl="__reactEvents$"+bn,Xm="__reactListeners$"+bn,Ym="__reactHandles$"+bn;function Zt(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kt]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ca(e);e!==null;){if(n=e[et])return n;e=ca(e)}return t}e=n,n=e.parentNode}return null}function Hr(e){return e=e[et]||e[kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function fi(e){return e[Ur]||null}var Gl=[],En=-1;function Wt(e){return{current:e}}function W(e){0>En||(e.current=Gl[En],Gl[En]=null,En--)}function V(e,t){En++,Gl[En]=e.current,e.current=t}var Vt={},ye=Wt(Vt),Ce=Wt(!1),un=Vt;function An(e,t){var n=e.type.contextTypes;if(!n)return Vt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xe(e){return e=e.childContextTypes,e!=null}function jo(){W(Ce),W(ye)}function da(e,t,n){if(ye.current!==Vt)throw Error(E(168));V(ye,t),V(Ce,n)}function pd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(E(108,Ap(e)||"Unknown",o));return Y({},n,r)}function Ho(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vt,un=ye.current,V(ye,e),V(Ce,Ce.current),!0}function fa(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=pd(e,t,un),r.__reactInternalMemoizedMergedChildContext=e,W(Ce),W(ye),V(ye,e)):W(Ce),V(Ce,n)}var dt=null,pi=!1,Yi=!1;function md(e){dt===null?dt=[e]:dt.push(e)}function Jm(e){pi=!0,md(e)}function Qt(){if(!Yi&&dt!==null){Yi=!0;var e=0,t=H;try{var n=dt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dt=null,pi=!1}catch(o){throw dt!==null&&(dt=dt.slice(e+1)),zc($u,Qt),o}finally{H=t,Yi=!1}}return null}var Cn=[],xn=0,Vo=null,bo=0,De=[],Ae=0,sn=null,pt=1,mt="";function Xt(e,t){Cn[xn++]=bo,Cn[xn++]=Vo,Vo=e,bo=t}function hd(e,t,n){De[Ae++]=pt,De[Ae++]=mt,De[Ae++]=sn,sn=e;var r=pt;e=mt;var o=32-Ge(r)-1;r&=~(1<<o),n+=1;var i=32-Ge(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,pt=1<<32-Ge(t)+o|n<<o|r,mt=i+e}else pt=1<<i|n<<o|r,mt=e}function Qu(e){e.return!==null&&(Xt(e,1),hd(e,1,0))}function Ku(e){for(;e===Vo;)Vo=Cn[--xn],Cn[xn]=null,bo=Cn[--xn],Cn[xn]=null;for(;e===sn;)sn=De[--Ae],De[Ae]=null,mt=De[--Ae],De[Ae]=null,pt=De[--Ae],De[Ae]=null}var Le=null,Re=null,K=!1,Ke=null;function yd(e,t){var n=Me(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function pa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Le=e,Re=$t(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Le=e,Re=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sn!==null?{id:pt,overflow:mt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Me(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Le=e,Re=null,!0):!1;default:return!1}}function ql(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xl(e){if(K){var t=Re;if(t){var n=t;if(!pa(e,t)){if(ql(e))throw Error(E(418));t=$t(n.nextSibling);var r=Le;t&&pa(e,t)?yd(r,n):(e.flags=e.flags&-4097|2,K=!1,Le=e)}}else{if(ql(e))throw Error(E(418));e.flags=e.flags&-4097|2,K=!1,Le=e}}}function ma(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Le=e}function uo(e){if(e!==Le)return!1;if(!K)return ma(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wl(e.type,e.memoizedProps)),t&&(t=Re)){if(ql(e))throw gd(),Error(E(418));for(;t;)yd(e,t),t=$t(t.nextSibling)}if(ma(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Re=$t(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Re=null}}else Re=Le?$t(e.stateNode.nextSibling):null;return!0}function gd(){for(var e=Re;e;)e=$t(e.nextSibling)}function Mn(){Re=Le=null,K=!1}function Gu(e){Ke===null?Ke=[e]:Ke.push(e)}var Zm=xt.ReactCurrentBatchConfig;function We(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Wo=Wt(null),Qo=null,Tn=null,qu=null;function Xu(){qu=Tn=Qo=null}function Yu(e){var t=Wo.current;W(Wo),e._currentValue=t}function Yl(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 On(e,t){Qo=e,qu=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ee=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(qu!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Qo===null)throw Error(E(308));Tn=e,Qo.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var en=null;function Ju(e){en===null?en=[e]:en.push(e)}function vd(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ju(t)):(n.next=o.next,o.next=n),t.interleaved=n,Et(e,r)}function Et(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 Zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wd(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 yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function It(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Et(e,n)}return o=r.interleaved,o===null?(t.next=t,Ju(r)):(t.next=o.next,o.next=t),r.interleaved=t,Et(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,Iu(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 Ko(e,t,n,r){var o=e.updateQueue;Rt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var s=u,a=s.next;s.next=null,l===null?i=a:l.next=a,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==l&&(u===null?d.firstBaseUpdate=a:u.next=a,d.lastBaseUpdate=s))}if(i!==null){var p=o.baseState;l=0,d=a=s=null,u=i;do{var m=u.lane,v=u.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,g=u;switch(m=t,v=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){p=h.call(v,p,m);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,m=typeof h=="function"?h.call(v,p,m):h,m==null)break e;p=Y({},p,m);break e;case 2:Rt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else v={eventTime:v,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(a=d=v,s=p):d=d.next=v,l|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(1);if(d===null&&(s=p),o.baseState=s,o.firstBaseUpdate=a,o.lastBaseUpdate=d,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);cn|=l,e.lanes=l,e.memoizedState=p}}function ya(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(E(191,o));o.call(r)}}}var Sd=new vc.Component().refs;function Jl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return(e=e._reactInternals)?pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ve(),o=Bt(e),i=yt(r,o);i.payload=t,n!=null&&(i.callback=n),t=It(e,i,o),t!==null&&(qe(t,e,o,r),So(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ve(),o=Bt(e),i=yt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=It(e,i,o),t!==null&&(qe(t,e,o,r),So(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ve(),r=Bt(e),o=yt(n,r);o.tag=2,t!=null&&(o.callback=t),t=It(e,o,r),t!==null&&(qe(t,e,r,n),So(t,e,r))}};function ga(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Rr(n,r)||!Rr(o,i):!0}function kd(e,t,n){var r=!1,o=Vt,i=t.contextType;return typeof i=="object"&&i!==null?i=ze(i):(o=xe(t)?un:ye.current,r=t.contextTypes,i=(r=r!=null)?An(e,o):Vt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function va(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function Zl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Sd,Zu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=ze(i):(i=xe(t)?un:ye.current,o.context=An(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Jl(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&mi.enqueueReplaceState(o,o.state,null),Ko(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function tr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var u=o.refs;u===Sd&&(u=o.refs={}),l===null?delete u[i]:u[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function so(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wa(e){var t=e._init;return t(e._payload)}function Ed(e){function t(f,c){if(e){var y=f.deletions;y===null?(f.deletions=[c],f.flags|=16):y.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function o(f,c){return f=jt(f,c),f.index=0,f.sibling=null,f}function i(f,c,y){return f.index=y,e?(y=f.alternate,y!==null?(y=y.index,y<c?(f.flags|=2,c):y):(f.flags|=2,c)):(f.flags|=1048576,c)}function l(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,c,y,k){return c===null||c.tag!==6?(c=ol(y,f.mode,k),c.return=f,c):(c=o(c,y),c.return=f,c)}function s(f,c,y,k){var N=y.type;return N===gn?d(f,c,y.props.children,k,y.key):c!==null&&(c.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Pt&&wa(N)===c.type)?(k=o(c,y.props),k.ref=tr(f,c,y),k.return=f,k):(k=No(y.type,y.key,y.props,null,f.mode,k),k.ref=tr(f,c,y),k.return=f,k)}function a(f,c,y,k){return c===null||c.tag!==4||c.stateNode.containerInfo!==y.containerInfo||c.stateNode.implementation!==y.implementation?(c=il(y,f.mode,k),c.return=f,c):(c=o(c,y.children||[]),c.return=f,c)}function d(f,c,y,k,N){return c===null||c.tag!==7?(c=on(y,f.mode,k,N),c.return=f,c):(c=o(c,y),c.return=f,c)}function p(f,c,y){if(typeof c=="string"&&c!==""||typeof c=="number")return c=ol(""+c,f.mode,y),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Yr:return y=No(c.type,c.key,c.props,null,f.mode,y),y.ref=tr(f,null,c),y.return=f,y;case yn:return c=il(c,f.mode,y),c.return=f,c;case Pt:var k=c._init;return p(f,k(c._payload),y)}if(sr(c)||Xn(c))return c=on(c,f.mode,y,null),c.return=f,c;so(f,c)}return null}function m(f,c,y,k){var N=c!==null?c.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return N!==null?null:u(f,c,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Yr:return y.key===N?s(f,c,y,k):null;case yn:return y.key===N?a(f,c,y,k):null;case Pt:return N=y._init,m(f,c,N(y._payload),k)}if(sr(y)||Xn(y))return N!==null?null:d(f,c,y,k,null);so(f,y)}return null}function v(f,c,y,k,N){if(typeof k=="string"&&k!==""||typeof k=="number")return f=f.get(y)||null,u(c,f,""+k,N);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Yr:return f=f.get(k.key===null?y:k.key)||null,s(c,f,k,N);case yn:return f=f.get(k.key===null?y:k.key)||null,a(c,f,k,N);case Pt:var P=k._init;return v(f,c,y,P(k._payload),N)}if(sr(k)||Xn(k))return f=f.get(y)||null,d(c,f,k,N,null);so(c,k)}return null}function h(f,c,y,k){for(var N=null,P=null,x=c,L=c=0,A=null;x!==null&&L<y.length;L++){x.index>L?(A=x,x=null):A=x.sibling;var U=m(f,x,y[L],k);if(U===null){x===null&&(x=A);break}e&&x&&U.alternate===null&&t(f,x),c=i(U,c,L),P===null?N=U:P.sibling=U,P=U,x=A}if(L===y.length)return n(f,x),K&&Xt(f,L),N;if(x===null){for(;L<y.length;L++)x=p(f,y[L],k),x!==null&&(c=i(x,c,L),P===null?N=x:P.sibling=x,P=x);return K&&Xt(f,L),N}for(x=r(f,x);L<y.length;L++)A=v(x,f,L,y[L],k),A!==null&&(e&&A.alternate!==null&&x.delete(A.key===null?L:A.key),c=i(A,c,L),P===null?N=A:P.sibling=A,P=A);return e&&x.forEach(function(j){return t(f,j)}),K&&Xt(f,L),N}function g(f,c,y,k){var N=Xn(y);if(typeof N!="function")throw Error(E(150));if(y=N.call(y),y==null)throw Error(E(151));for(var P=N=null,x=c,L=c=0,A=null,U=y.next();x!==null&&!U.done;L++,U=y.next()){x.index>L?(A=x,x=null):A=x.sibling;var j=m(f,x,U.value,k);if(j===null){x===null&&(x=A);break}e&&x&&j.alternate===null&&t(f,x),c=i(j,c,L),P===null?N=j:P.sibling=j,P=j,x=A}if(U.done)return n(f,x),K&&Xt(f,L),N;if(x===null){for(;!U.done;L++,U=y.next())U=p(f,U.value,k),U!==null&&(c=i(U,c,L),P===null?N=U:P.sibling=U,P=U);return K&&Xt(f,L),N}for(x=r(f,x);!U.done;L++,U=y.next())U=v(x,f,L,U.value,k),U!==null&&(e&&U.alternate!==null&&x.delete(U.key===null?L:U.key),c=i(U,c,L),P===null?N=U:P.sibling=U,P=U);return e&&x.forEach(function(He){return t(f,He)}),K&&Xt(f,L),N}function T(f,c,y,k){if(typeof y=="object"&&y!==null&&y.type===gn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Yr:e:{for(var N=y.key,P=c;P!==null;){if(P.key===N){if(N=y.type,N===gn){if(P.tag===7){n(f,P.sibling),c=o(P,y.props.children),c.return=f,f=c;break e}}else if(P.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Pt&&wa(N)===P.type){n(f,P.sibling),c=o(P,y.props),c.ref=tr(f,P,y),c.return=f,f=c;break e}n(f,P);break}else t(f,P);P=P.sibling}y.type===gn?(c=on(y.props.children,f.mode,k,y.key),c.return=f,f=c):(k=No(y.type,y.key,y.props,null,f.mode,k),k.ref=tr(f,c,y),k.return=f,f=k)}return l(f);case yn:e:{for(P=y.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===y.containerInfo&&c.stateNode.implementation===y.implementation){n(f,c.sibling),c=o(c,y.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=il(y,f.mode,k),c.return=f,f=c}return l(f);case Pt:return P=y._init,T(f,c,P(y._payload),k)}if(sr(y))return h(f,c,y,k);if(Xn(y))return g(f,c,y,k);so(f,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,c!==null&&c.tag===6?(n(f,c.sibling),c=o(c,y),c.return=f,f=c):(n(f,c),c=ol(y,f.mode,k),c.return=f,f=c),l(f)):n(f,c)}return T}var $n=Ed(!0),Cd=Ed(!1),Vr={},ot=Wt(Vr),Or=Wt(Vr),Fr=Wt(Vr);function tn(e){if(e===Vr)throw Error(E(174));return e}function es(e,t){switch(V(Fr,t),V(Or,e),V(ot,Vr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ul(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ul(t,e)}W(ot),V(ot,t)}function In(){W(ot),W(Or),W(Fr)}function xd(e){tn(Fr.current);var t=tn(ot.current),n=Ul(t,e.type);t!==n&&(V(Or,e),V(ot,n))}function ts(e){Or.current===e&&(W(ot),W(Or))}var q=Wt(0);function Go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ji=[];function ns(){for(var e=0;e<Ji.length;e++)Ji[e]._workInProgressVersionPrimary=null;Ji.length=0}var ko=xt.ReactCurrentDispatcher,Zi=xt.ReactCurrentBatchConfig,an=0,X=null,re=null,le=null,qo=!1,gr=!1,Dr=0,eh=0;function fe(){throw Error(E(321))}function rs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xe(e[n],t[n]))return!1;return!0}function os(e,t,n,r,o,i){if(an=i,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ko.current=e===null||e.memoizedState===null?oh:ih,e=n(r,o),gr){i=0;do{if(gr=!1,Dr=0,25<=i)throw Error(E(301));i+=1,le=re=null,t.updateQueue=null,ko.current=lh,e=n(r,o)}while(gr)}if(ko.current=Xo,t=re!==null&&re.next!==null,an=0,le=re=X=null,qo=!1,t)throw Error(E(300));return e}function is(){var e=Dr!==0;return Dr=0,e}function Ze(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?X.memoizedState=le=e:le=le.next=e,le}function Be(){if(re===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var t=le===null?X.memoizedState:le.next;if(t!==null)le=t,re=e;else{if(e===null)throw Error(E(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},le===null?X.memoizedState=le=e:le=le.next=e}return le}function Ar(e,t){return typeof t=="function"?t(e):t}function el(e){var t=Be(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=re,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var u=l=null,s=null,a=i;do{var d=a.lane;if((an&d)===d)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var p={lane:d,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=p,l=r):s=s.next=p,X.lanes|=d,cn|=d}a=a.next}while(a!==null&&a!==i);s===null?l=r:s.next=u,Xe(r,t.memoizedState)||(Ee=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,X.lanes|=i,cn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function tl(e){var t=Be(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Xe(i,t.memoizedState)||(Ee=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Td(){}function Nd(e,t){var n=X,r=Be(),o=t(),i=!Xe(r.memoizedState,o);if(i&&(r.memoizedState=o,Ee=!0),r=r.queue,ls(Ld.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,Mr(9,Rd.bind(null,n,r,o,t),void 0,null),se===null)throw Error(E(349));an&30||Pd(n,t,o)}return o}function Pd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Rd(e,t,n,r){t.value=n,t.getSnapshot=r,_d(t)&&Ud(e)}function Ld(e,t,n){return n(function(){_d(t)&&Ud(e)})}function _d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xe(e,n)}catch{return!0}}function Ud(e){var t=Et(e,1);t!==null&&qe(t,e,1,-1)}function Sa(e){var t=Ze();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},t.queue=e,e=e.dispatch=rh.bind(null,X,e),[t.memoizedState,e]}function Mr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Od(){return Be().memoizedState}function Eo(e,t,n,r){var o=Ze();X.flags|=e,o.memoizedState=Mr(1|t,n,void 0,r===void 0?null:r)}function hi(e,t,n,r){var o=Be();r=r===void 0?null:r;var i=void 0;if(re!==null){var l=re.memoizedState;if(i=l.destroy,r!==null&&rs(r,l.deps)){o.memoizedState=Mr(t,n,i,r);return}}X.flags|=e,o.memoizedState=Mr(1|t,n,i,r)}function ka(e,t){return Eo(8390656,8,e,t)}function ls(e,t){return hi(2048,8,e,t)}function Fd(e,t){return hi(4,2,e,t)}function Dd(e,t){return hi(4,4,e,t)}function Ad(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Md(e,t,n){return n=n!=null?n.concat([e]):null,hi(4,4,Ad.bind(null,t,e),n)}function us(){}function $d(e,t){var n=Be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Id(e,t){var n=Be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&rs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zd(e,t,n){return an&21?(Xe(n,t)||(n=Hc(),X.lanes|=n,cn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ee=!0),e.memoizedState=n)}function th(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Zi.transition;Zi.transition={};try{e(!1),t()}finally{H=n,Zi.transition=r}}function Bd(){return Be().memoizedState}function nh(e,t,n){var r=Bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jd(e))Hd(t,n);else if(n=vd(e,t,n,r),n!==null){var o=ve();qe(n,e,r,o),Vd(n,t,r)}}function rh(e,t,n){var r=Bt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jd(e))Hd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,u=i(l,n);if(o.hasEagerState=!0,o.eagerState=u,Xe(u,l)){var s=t.interleaved;s===null?(o.next=o,Ju(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=vd(e,t,o,r),n!==null&&(o=ve(),qe(n,e,r,o),Vd(n,t,r))}}function jd(e){var t=e.alternate;return e===X||t!==null&&t===X}function Hd(e,t){gr=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Iu(e,n)}}var Xo={readContext:ze,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},oh={readContext:ze,useCallback:function(e,t){return Ze().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4194308,4,Ad.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Eo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Eo(4,2,e,t)},useMemo:function(e,t){var n=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=nh.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=Ze();return e={current:e},t.memoizedState=e},useState:Sa,useDebugValue:us,useDeferredValue:function(e){return Ze().memoizedState=e},useTransition:function(){var e=Sa(!1),t=e[0];return e=th.bind(null,e[1]),Ze().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,o=Ze();if(K){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),se===null)throw Error(E(349));an&30||Pd(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ka(Ld.bind(null,r,i,e),[e]),r.flags|=2048,Mr(9,Rd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ze(),t=se.identifierPrefix;if(K){var n=mt,r=pt;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Dr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=eh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ih={readContext:ze,useCallback:$d,useContext:ze,useEffect:ls,useImperativeHandle:Md,useInsertionEffect:Fd,useLayoutEffect:Dd,useMemo:Id,useReducer:el,useRef:Od,useState:function(){return el(Ar)},useDebugValue:us,useDeferredValue:function(e){var t=Be();return zd(t,re.memoizedState,e)},useTransition:function(){var e=el(Ar)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Td,useSyncExternalStore:Nd,useId:Bd,unstable_isNewReconciler:!1},lh={readContext:ze,useCallback:$d,useContext:ze,useEffect:ls,useImperativeHandle:Md,useInsertionEffect:Fd,useLayoutEffect:Dd,useMemo:Id,useReducer:tl,useRef:Od,useState:function(){return tl(Ar)},useDebugValue:us,useDeferredValue:function(e){var t=Be();return re===null?t.memoizedState=e:zd(t,re.memoizedState,e)},useTransition:function(){var e=tl(Ar)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Td,useSyncExternalStore:Nd,useId:Bd,unstable_isNewReconciler:!1};function zn(e,t){try{var n="",r=t;do n+=Dp(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function eu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uh=typeof WeakMap=="function"?WeakMap:Map;function bd(e,t,n){n=yt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jo||(Jo=!0,cu=r),eu(e,t)},n}function Wd(e,t,n){n=yt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){eu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){eu(e,t),typeof r!="function"&&(zt===null?zt=new Set([this]):zt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Ea(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uh;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kh.bind(null,e,t,n),t.then(e,e))}function Ca(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xa(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=yt(-1,1),t.tag=2,It(n,t,1))),n.lanes|=1),e)}var sh=xt.ReactCurrentOwner,Ee=!1;function ge(e,t,n,r){t.child=e===null?Cd(t,null,n,r):$n(t,e.child,n,r)}function Ta(e,t,n,r,o){n=n.render;var i=t.ref;return On(t,o),r=os(e,t,n,r,i,o),n=is(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ct(e,t,o)):(K&&n&&Qu(t),t.flags|=1,ge(e,t,r,o),t.child)}function Na(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!hs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Qd(e,t,i,r,o)):(e=No(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Rr,n(l,r)&&e.ref===t.ref)return Ct(e,t,o)}return t.flags|=1,e=jt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Qd(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Rr(i,r)&&e.ref===t.ref)if(Ee=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ee=!0);else return t.lanes=e.lanes,Ct(e,t,o)}return tu(e,t,n,r,o)}function Kd(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(Pn,Ne),Ne|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(Pn,Ne),Ne|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,V(Pn,Ne),Ne|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,V(Pn,Ne),Ne|=r;return ge(e,t,o,n),t.child}function Gd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tu(e,t,n,r,o){var i=xe(n)?un:ye.current;return i=An(t,i),On(t,o),n=os(e,t,n,r,i,o),r=is(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ct(e,t,o)):(K&&r&&Qu(t),t.flags|=1,ge(e,t,n,o),t.child)}function Pa(e,t,n,r,o){if(xe(n)){var i=!0;Ho(t)}else i=!1;if(On(t,o),t.stateNode===null)Co(e,t),kd(t,n,r),Zl(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,u=t.memoizedProps;l.props=u;var s=l.context,a=n.contextType;typeof a=="object"&&a!==null?a=ze(a):(a=xe(n)?un:ye.current,a=An(t,a));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==r||s!==a)&&va(t,l,r,a),Rt=!1;var m=t.memoizedState;l.state=m,Ko(t,r,l,o),s=t.memoizedState,u!==r||m!==s||Ce.current||Rt?(typeof d=="function"&&(Jl(t,n,d,r),s=t.memoizedState),(u=Rt||ga(t,n,u,r,m,s,a))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=a,r=u):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,wd(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:We(t.type,u),l.props=a,p=t.pendingProps,m=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=ze(s):(s=xe(n)?un:ye.current,s=An(t,s));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==p||m!==s)&&va(t,l,r,s),Rt=!1,m=t.memoizedState,l.state=m,Ko(t,r,l,o);var h=t.memoizedState;u!==p||m!==h||Ce.current||Rt?(typeof v=="function"&&(Jl(t,n,v,r),h=t.memoizedState),(a=Rt||ga(t,n,a,r,m,h,s)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=a):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return nu(e,t,n,r,i,o)}function nu(e,t,n,r,o,i){Gd(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&fa(t,n,!1),Ct(e,t,i);r=t.stateNode,sh.current=t;var u=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=$n(t,e.child,null,i),t.child=$n(t,null,u,i)):ge(e,t,u,i),t.memoizedState=r.state,o&&fa(t,n,!0),t.child}function qd(e){var t=e.stateNode;t.pendingContext?da(e,t.pendingContext,t.pendingContext!==t.context):t.context&&da(e,t.context,!1),es(e,t.containerInfo)}function Ra(e,t,n,r,o){return Mn(),Gu(o),t.flags|=256,ge(e,t,n,r),t.child}var ru={dehydrated:null,treeContext:null,retryLane:0};function ou(e){return{baseLanes:e,cachePool:null,transitions:null}}function Xd(e,t,n){var r=t.pendingProps,o=q.current,i=!1,l=(t.flags&128)!==0,u;if((u=l)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),V(q,o&1),e===null)return Xl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=vi(l,r,0,null),e=on(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ou(n),t.memoizedState=ru,e):ss(t,l));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return ah(e,t,l,r,u,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,u=o.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=jt(o,s),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=jt(u,i):(i=on(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?ou(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ru,r}return i=e.child,e=i.sibling,r=jt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ss(e,t){return t=vi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ao(e,t,n,r){return r!==null&&Gu(r),$n(t,e.child,null,n),e=ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ah(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=nl(Error(E(422))),ao(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=vi({mode:"visible",children:r.children},o,0,null),i=on(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&$n(t,e.child,null,l),t.child.memoizedState=ou(l),t.memoizedState=ru,i);if(!(t.mode&1))return ao(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(E(419)),r=nl(i,r,void 0),ao(e,t,l,r)}if(u=(l&e.childLanes)!==0,Ee||u){if(r=se,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Et(e,o),qe(r,e,o,-1))}return ms(),r=nl(Error(E(421))),ao(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Eh.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Re=$t(o.nextSibling),Le=t,K=!0,Ke=null,e!==null&&(De[Ae++]=pt,De[Ae++]=mt,De[Ae++]=sn,pt=e.id,mt=e.overflow,sn=t),t=ss(t,r.children),t.flags|=4096,t)}function La(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yl(e.return,t,n)}function rl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Yd(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ge(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&La(e,n,t);else if(e.tag===19)La(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(V(q,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Go(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Go(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rl(t,!0,n,null,i);break;case"together":rl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Co(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ct(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ch(e,t,n){switch(t.tag){case 3:qd(t),Mn();break;case 5:xd(t);break;case 1:xe(t.type)&&Ho(t);break;case 4:es(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;V(Wo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?Xd(e,t,n):(V(q,q.current&1),e=Ct(e,t,n),e!==null?e.sibling:null);V(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Yd(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),V(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,Kd(e,t,n)}return Ct(e,t,n)}var Jd,iu,Zd,ef;Jd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};iu=function(){};Zd=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,tn(ot.current);var i=null;switch(n){case"input":o=Pl(e,o),r=Pl(e,r),i=[];break;case"select":o=Y({},o,{value:void 0}),r=Y({},r,{value:void 0}),i=[];break;case"textarea":o=_l(e,o),r=_l(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bo)}Ol(n,r);var l;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var u=o[a];for(l in u)u.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(kr.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var s=r[a];if(u=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(l in u)!u.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&u[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(i||(i=[]),i.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(i=i||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(kr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&b("scroll",e),i||u===s||(i=[])):(i=i||[]).push(a,s))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};ef=function(e,t,n,r){n!==r&&(t.flags|=4)};function nr(e,t){if(!K)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dh(e,t,n){var r=t.pendingProps;switch(Ku(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return xe(t.type)&&jo(),pe(t),null;case 3:return r=t.stateNode,In(),W(Ce),W(ye),ns(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(uo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ke!==null&&(pu(Ke),Ke=null))),iu(e,t),pe(t),null;case 5:ts(t);var o=tn(Fr.current);if(n=t.type,e!==null&&t.stateNode!=null)Zd(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return pe(t),null}if(e=tn(ot.current),uo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[et]=t,r[Ur]=i,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(o=0;o<cr.length;o++)b(cr[o],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":Is(r,i),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},b("invalid",r);break;case"textarea":Bs(r,i),b("invalid",r)}Ol(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var u=i[l];l==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&lo(r.textContent,u,e),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&lo(r.textContent,u,e),o=["children",""+u]):kr.hasOwnProperty(l)&&u!=null&&l==="onScroll"&&b("scroll",r)}switch(n){case"input":Jr(r),zs(r,i,!0);break;case"textarea":Jr(r),js(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Bo)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Pc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/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,Jd(e,t,!1,!1),t.stateNode=e;e:{switch(l=Fl(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;o<cr.length;o++)b(cr[o],e);o=r;break;case"source":b("error",e),o=r;break;case"img":case"image":case"link":b("error",e),b("load",e),o=r;break;case"details":b("toggle",e),o=r;break;case"input":Is(e,r),o=Pl(e,r),b("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Y({},r,{value:void 0}),b("invalid",e);break;case"textarea":Bs(e,r),o=_l(e,r),b("invalid",e);break;default:o=r}Ol(n,o),u=o;for(i in u)if(u.hasOwnProperty(i)){var s=u[i];i==="style"?_c(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Rc(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Er(e,s):typeof s=="number"&&Er(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(kr.hasOwnProperty(i)?s!=null&&i==="onScroll"&&b("scroll",e):s!=null&&Ou(e,i,s,l))}switch(n){case"input":Jr(e),zs(e,r,!1);break;case"textarea":Jr(e),js(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ht(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Rn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Rn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Bo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pe(t),null;case 6:if(e&&t.stateNode!=null)ef(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=tn(Fr.current),tn(ot.current),uo(t)){if(r=t.stateNode,n=t.memoizedProps,r[et]=t,(i=r.nodeValue!==n)&&(e=Le,e!==null))switch(e.tag){case 3:lo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&lo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[et]=t,t.stateNode=r}return pe(t),null;case 13:if(W(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&Re!==null&&t.mode&1&&!(t.flags&128))gd(),Mn(),t.flags|=98560,i=!1;else if(i=uo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[et]=t}else Mn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pe(t),i=!1}else Ke!==null&&(pu(Ke),Ke=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||q.current&1?oe===0&&(oe=3):ms())),t.updateQueue!==null&&(t.flags|=4),pe(t),null);case 4:return In(),iu(e,t),e===null&&Lr(t.stateNode.containerInfo),pe(t),null;case 10:return Yu(t.type._context),pe(t),null;case 17:return xe(t.type)&&jo(),pe(t),null;case 19:if(W(q),i=t.memoizedState,i===null)return pe(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)nr(i,!1);else{if(oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Go(e),l!==null){for(t.flags|=128,nr(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return V(q,q.current&1|2),t.child}e=e.sibling}i.tail!==null&&Z()>Bn&&(t.flags|=128,r=!0,nr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Go(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),nr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!K)return pe(t),null}else 2*Z()-i.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,nr(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=Z(),t.sibling=null,n=q.current,V(q,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function fh(e,t){switch(Ku(t),t.tag){case 1:return xe(t.type)&&jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return In(),W(Ce),W(ye),ns(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ts(t),null;case 13:if(W(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(q),null;case 4:return In(),null;case 10:return Yu(t.type._context),null;case 22:case 23:return ps(),null;case 24:return null;default:return null}}var co=!1,me=!1,ph=typeof WeakSet=="function"?WeakSet:Set,_=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function lu(e,t,n){try{n()}catch(r){J(e,t,r)}}var _a=!1;function mh(e,t){if(Vl=$o,e=od(),Wu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,u=-1,s=-1,a=0,d=0,p=e,m=null;t:for(;;){for(var v;p!==n||o!==0&&p.nodeType!==3||(u=l+o),p!==i||r!==0&&p.nodeType!==3||(s=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(v=p.firstChild)!==null;)m=p,p=v;for(;;){if(p===e)break t;if(m===n&&++a===o&&(u=l),m===i&&++d===r&&(s=l),(v=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(bl={focusedElem:e,selectionRange:n},$o=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,T=h.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:We(t.type,g),T);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(k){J(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return h=_a,_a=!1,h}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&&lu(t,n,i)}o=o.next}while(o!==r)}}function yi(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 uu(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 tf(e){var t=e.alternate;t!==null&&(e.alternate=null,tf(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[Kl],delete t[Xm],delete t[Ym])),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 nf(e){return e.tag===5||e.tag===3||e.tag===4}function Ua(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nf(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 su(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=Bo));else if(r!==4&&(e=e.child,e!==null))for(su(e,t,n),e=e.sibling;e!==null;)su(e,t,n),e=e.sibling}function au(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(au(e,t,n),e=e.sibling;e!==null;)au(e,t,n),e=e.sibling}var ae=null,Qe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)rf(e,t,n),n=n.sibling}function rf(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(si,n)}catch{}switch(n.tag){case 5:me||Nn(n,t);case 6:var r=ae,o=Qe;ae=null,Tt(e,t,n),ae=r,Qe=o,ae!==null&&(Qe?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Qe?(e=ae,n=n.stateNode,e.nodeType===8?Xi(e.parentNode,n):e.nodeType===1&&Xi(e,n),Nr(e)):Xi(ae,n.stateNode));break;case 4:r=ae,o=Qe,ae=n.stateNode.containerInfo,Qe=!0,Tt(e,t,n),ae=r,Qe=o;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&lu(n,t,l),o=o.next}while(o!==r)}Tt(e,t,n);break;case 1:if(!me&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){J(n,t,u)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,Tt(e,t,n),me=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Oa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ph),t.forEach(function(r){var o=Ch.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function be(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,u=l;e:for(;u!==null;){switch(u.tag){case 5:ae=u.stateNode,Qe=!1;break e;case 3:ae=u.stateNode.containerInfo,Qe=!0;break e;case 4:ae=u.stateNode.containerInfo,Qe=!0;break e}u=u.return}if(ae===null)throw Error(E(160));rf(i,l,o),ae=null,Qe=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(a){J(o,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)of(t,e),t=t.sibling}function of(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(be(t,e),Je(e),r&4){try{vr(3,e,e.return),yi(3,e)}catch(g){J(e,e.return,g)}try{vr(5,e,e.return)}catch(g){J(e,e.return,g)}}break;case 1:be(t,e),Je(e),r&512&&n!==null&&Nn(n,n.return);break;case 5:if(be(t,e),Je(e),r&512&&n!==null&&Nn(n,n.return),e.flags&32){var o=e.stateNode;try{Er(o,"")}catch(g){J(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&Tc(o,i),Fl(u,l);var a=Fl(u,i);for(l=0;l<s.length;l+=2){var d=s[l],p=s[l+1];d==="style"?_c(o,p):d==="dangerouslySetInnerHTML"?Rc(o,p):d==="children"?Er(o,p):Ou(o,d,p,a)}switch(u){case"input":Rl(o,i);break;case"textarea":Nc(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Rn(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?Rn(o,!!i.multiple,i.defaultValue,!0):Rn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ur]=i}catch(g){J(e,e.return,g)}}break;case 6:if(be(t,e),Je(e),r&4){if(e.stateNode===null)throw Error(E(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){J(e,e.return,g)}}break;case 3:if(be(t,e),Je(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Nr(t.containerInfo)}catch(g){J(e,e.return,g)}break;case 4:be(t,e),Je(e);break;case 13:be(t,e),Je(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ds=Z())),r&4&&Oa(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(me=(a=me)||d,be(t,e),me=a):be(t,e),Je(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!d&&e.mode&1)for(_=e,d=e.child;d!==null;){for(p=_=d;_!==null;){switch(m=_,v=m.child,m.tag){case 0:case 11:case 14:case 15:vr(4,m,m.return);break;case 1:Nn(m,m.return);var h=m.stateNode;if(typeof h.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){J(r,n,g)}}break;case 5:Nn(m,m.return);break;case 22:if(m.memoizedState!==null){Da(p);continue}}v!==null?(v.return=m,_=v):Da(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{o=p.stateNode,a?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=p.stateNode,s=p.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Lc("display",l))}catch(g){J(e,e.return,g)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=a?"":p.memoizedProps}catch(g){J(e,e.return,g)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:be(t,e),Je(e),r&4&&Oa(e);break;case 21:break;default:be(t,e),Je(e)}}function Je(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(nf(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Er(o,""),r.flags&=-33);var i=Ua(e);au(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,u=Ua(e);su(e,u,l);break;default:throw Error(E(161))}}catch(s){J(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hh(e,t,n){_=e,lf(e)}function lf(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var o=_,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||co;if(!l){var u=o.alternate,s=u!==null&&u.memoizedState!==null||me;u=co;var a=me;if(co=l,(me=s)&&!a)for(_=o;_!==null;)l=_,s=l.child,l.tag===22&&l.memoizedState!==null?Aa(o):s!==null?(s.return=l,_=s):Aa(o);for(;i!==null;)_=i,lf(i),i=i.sibling;_=o,co=u,me=a}Fa(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,_=i):Fa(e)}}function Fa(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:me||yi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!me)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:We(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ya(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ya(t,l,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var d=a.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&Nr(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}me||t.flags&512&&uu(t)}catch(m){J(t,t.return,m)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Da(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function Aa(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yi(4,t)}catch(s){J(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){J(t,o,s)}}var i=t.return;try{uu(t)}catch(s){J(t,i,s)}break;case 5:var l=t.return;try{uu(t)}catch(s){J(t,l,s)}}}catch(s){J(t,t.return,s)}if(t===e){_=null;break}var u=t.sibling;if(u!==null){u.return=t.return,_=u;break}_=t.return}}var yh=Math.ceil,Yo=xt.ReactCurrentDispatcher,as=xt.ReactCurrentOwner,$e=xt.ReactCurrentBatchConfig,z=0,se=null,ne=null,ce=0,Ne=0,Pn=Wt(0),oe=0,$r=null,cn=0,gi=0,cs=0,wr=null,ke=null,ds=0,Bn=1/0,ct=null,Jo=!1,cu=null,zt=null,fo=!1,Ft=null,Zo=0,Sr=0,du=null,xo=-1,To=0;function ve(){return z&6?Z():xo!==-1?xo:xo=Z()}function Bt(e){return e.mode&1?z&2&&ce!==0?ce&-ce:Zm.transition!==null?(To===0&&(To=Hc()),To):(e=H,e!==0||(e=window.event,e=e===void 0?16:qc(e.type)),e):1}function qe(e,t,n,r){if(50<Sr)throw Sr=0,du=null,Error(E(185));Br(e,n,r),(!(z&2)||e!==se)&&(e===se&&(!(z&2)&&(gi|=n),oe===4&&_t(e,ce)),Te(e,r),n===1&&z===0&&!(t.mode&1)&&(Bn=Z()+500,pi&&Qt()))}function Te(e,t){var n=e.callbackNode;Zp(e,t);var r=Mo(e,e===se?ce:0);if(r===0)n!==null&&bs(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&bs(n),t===1)e.tag===0?Jm(Ma.bind(null,e)):md(Ma.bind(null,e)),Gm(function(){!(z&6)&&Qt()}),n=null;else{switch(Vc(r)){case 1:n=$u;break;case 4:n=Bc;break;case 16:n=Ao;break;case 536870912:n=jc;break;default:n=Ao}n=mf(n,uf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function uf(e,t){if(xo=-1,To=0,z&6)throw Error(E(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=Mo(e,e===se?ce:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ei(e,r);else{t=r;var o=z;z|=2;var i=af();(se!==e||ce!==t)&&(ct=null,Bn=Z()+500,rn(e,t));do try{wh();break}catch(u){sf(e,u)}while(1);Xu(),Yo.current=i,z=o,ne!==null?t=0:(se=null,ce=0,t=oe)}if(t!==0){if(t===2&&(o=Il(e),o!==0&&(r=o,t=fu(e,o))),t===1)throw n=$r,rn(e,0),_t(e,r),Te(e,Z()),n;if(t===6)_t(e,r);else{if(o=e.current.alternate,!(r&30)&&!gh(o)&&(t=ei(e,r),t===2&&(i=Il(e),i!==0&&(r=i,t=fu(e,i))),t===1))throw n=$r,rn(e,0),_t(e,r),Te(e,Z()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:Yt(e,ke,ct);break;case 3:if(_t(e,r),(r&130023424)===r&&(t=ds+500-Z(),10<t)){if(Mo(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ve(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ql(Yt.bind(null,e,ke,ct),t);break}Yt(e,ke,ct);break;case 4:if(_t(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-Ge(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yh(r/1960))-r,10<r){e.timeoutHandle=Ql(Yt.bind(null,e,ke,ct),r);break}Yt(e,ke,ct);break;case 5:Yt(e,ke,ct);break;default:throw Error(E(329))}}}return Te(e,Z()),e.callbackNode===n?uf.bind(null,e):null}function fu(e,t){var n=wr;return e.current.memoizedState.isDehydrated&&(rn(e,t).flags|=256),e=ei(e,t),e!==2&&(t=ke,ke=n,t!==null&&pu(t)),e}function pu(e){ke===null?ke=e:ke.push.apply(ke,e)}function gh(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Xe(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _t(e,t){for(t&=~cs,t&=~gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ge(t),r=1<<n;e[n]=-1,t&=~r}}function Ma(e){if(z&6)throw Error(E(327));Fn();var t=Mo(e,0);if(!(t&1))return Te(e,Z()),null;var n=ei(e,t);if(e.tag!==0&&n===2){var r=Il(e);r!==0&&(t=r,n=fu(e,r))}if(n===1)throw n=$r,rn(e,0),_t(e,t),Te(e,Z()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yt(e,ke,ct),Te(e,Z()),null}function fs(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(Bn=Z()+500,pi&&Qt())}}function dn(e){Ft!==null&&Ft.tag===0&&!(z&6)&&Fn();var t=z;z|=1;var n=$e.transition,r=H;try{if($e.transition=null,H=1,e)return e()}finally{H=r,$e.transition=n,z=t,!(z&6)&&Qt()}}function ps(){Ne=Pn.current,W(Pn)}function rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Km(n)),ne!==null)for(n=ne.return;n!==null;){var r=n;switch(Ku(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&jo();break;case 3:In(),W(Ce),W(ye),ns();break;case 5:ts(r);break;case 4:In();break;case 13:W(q);break;case 19:W(q);break;case 10:Yu(r.type._context);break;case 22:case 23:ps()}n=n.return}if(se=e,ne=e=jt(e.current,null),ce=Ne=t,oe=0,$r=null,cs=gi=cn=0,ke=wr=null,en!==null){for(t=0;t<en.length;t++)if(n=en[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}en=null}return e}function sf(e,t){do{var n=ne;try{if(Xu(),ko.current=Xo,qo){for(var r=X.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}qo=!1}if(an=0,le=re=X=null,gr=!1,Dr=0,as.current=null,n===null||n.return===null){oe=1,$r=t,ne=null;break}e:{var i=e,l=n.return,u=n,s=t;if(t=ce,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,d=u,p=d.tag;if(!(d.mode&1)&&(p===0||p===11||p===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=Ca(l);if(v!==null){v.flags&=-257,xa(v,l,u,i,t),v.mode&1&&Ea(i,a,t),t=v,s=a;var h=t.updateQueue;if(h===null){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}else{if(!(t&1)){Ea(i,a,t),ms();break e}s=Error(E(426))}}else if(K&&u.mode&1){var T=Ca(l);if(T!==null){!(T.flags&65536)&&(T.flags|=256),xa(T,l,u,i,t),Gu(zn(s,u));break e}}i=s=zn(s,u),oe!==4&&(oe=2),wr===null?wr=[i]:wr.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var f=bd(i,s,t);ha(i,f);break e;case 1:u=s;var c=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof c.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(zt===null||!zt.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=Wd(i,u,t);ha(i,k);break e}}i=i.return}while(i!==null)}df(n)}catch(N){t=N,ne===n&&n!==null&&(ne=n=n.return);continue}break}while(1)}function af(){var e=Yo.current;return Yo.current=Xo,e===null?Xo:e}function ms(){(oe===0||oe===3||oe===2)&&(oe=4),se===null||!(cn&268435455)&&!(gi&268435455)||_t(se,ce)}function ei(e,t){var n=z;z|=2;var r=af();(se!==e||ce!==t)&&(ct=null,rn(e,t));do try{vh();break}catch(o){sf(e,o)}while(1);if(Xu(),z=n,Yo.current=r,ne!==null)throw Error(E(261));return se=null,ce=0,oe}function vh(){for(;ne!==null;)cf(ne)}function wh(){for(;ne!==null&&!bp();)cf(ne)}function cf(e){var t=pf(e.alternate,e,Ne);e.memoizedProps=e.pendingProps,t===null?df(e):ne=t,as.current=null}function df(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=fh(n,t),n!==null){n.flags&=32767,ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{oe=6,ne=null;return}}else if(n=dh(n,t,Ne),n!==null){ne=n;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);oe===0&&(oe=5)}function Yt(e,t,n){var r=H,o=$e.transition;try{$e.transition=null,H=1,Sh(e,t,n,r)}finally{$e.transition=o,H=r}return null}function Sh(e,t,n,r){do Fn();while(Ft!==null);if(z&6)throw Error(E(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(em(e,i),e===se&&(ne=se=null,ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fo||(fo=!0,mf(Ao,function(){return Fn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=$e.transition,$e.transition=null;var l=H;H=1;var u=z;z|=4,as.current=null,mh(e,n),of(n,e),Bm(bl),$o=!!Vl,bl=Vl=null,e.current=n,hh(n),Wp(),z=u,H=l,$e.transition=i}else e.current=n;if(fo&&(fo=!1,Ft=e,Zo=o),i=e.pendingLanes,i===0&&(zt=null),Gp(n.stateNode),Te(e,Z()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Jo)throw Jo=!1,e=cu,cu=null,e;return Zo&1&&e.tag!==0&&Fn(),i=e.pendingLanes,i&1?e===du?Sr++:(Sr=0,du=e):Sr=0,Qt(),null}function Fn(){if(Ft!==null){var e=Vc(Zo),t=$e.transition,n=H;try{if($e.transition=null,H=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Zo=0,z&6)throw Error(E(331));var o=z;for(z|=4,_=e.current;_!==null;){var i=_,l=i.child;if(_.flags&16){var u=i.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(_=a;_!==null;){var d=_;switch(d.tag){case 0:case 11:case 15:vr(8,d,i)}var p=d.child;if(p!==null)p.return=d,_=p;else for(;_!==null;){d=_;var m=d.sibling,v=d.return;if(tf(d),d===a){_=null;break}if(m!==null){m.return=v,_=m;break}_=v}}}var h=i.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var T=g.sibling;g.sibling=null,g=T}while(g!==null)}}_=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,_=l;else e:for(;_!==null;){if(i=_,i.flags&2048)switch(i.tag){case 0:case 11:case 15:vr(9,i,i.return)}var f=i.sibling;if(f!==null){f.return=i.return,_=f;break e}_=i.return}}var c=e.current;for(_=c;_!==null;){l=_;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,_=y;else e:for(l=c;_!==null;){if(u=_,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:yi(9,u)}}catch(N){J(u,u.return,N)}if(u===l){_=null;break e}var k=u.sibling;if(k!==null){k.return=u.return,_=k;break e}_=u.return}}if(z=o,Qt(),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(si,e)}catch{}r=!0}return r}finally{H=n,$e.transition=t}}return!1}function $a(e,t,n){t=zn(n,t),t=bd(e,t,1),e=It(e,t,1),t=ve(),e!==null&&(Br(e,1,t),Te(e,t))}function J(e,t,n){if(e.tag===3)$a(e,e,n);else for(;t!==null;){if(t.tag===3){$a(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zt===null||!zt.has(r))){e=zn(n,e),e=Wd(t,e,1),t=It(t,e,1),e=ve(),t!==null&&(Br(t,1,e),Te(t,e));break}}t=t.return}}function kh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ve(),e.pingedLanes|=e.suspendedLanes&n,se===e&&(ce&n)===n&&(oe===4||oe===3&&(ce&130023424)===ce&&500>Z()-ds?rn(e,0):cs|=n),Te(e,t)}function ff(e,t){t===0&&(e.mode&1?(t=to,to<<=1,!(to&130023424)&&(to=4194304)):t=1);var n=ve();e=Et(e,t),e!==null&&(Br(e,t,n),Te(e,n))}function Eh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ff(e,n)}function Ch(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),ff(e,n)}var pf;pf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ce.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,ch(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,K&&t.flags&1048576&&hd(t,bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Co(e,t),e=t.pendingProps;var o=An(t,ye.current);On(t,n),o=os(null,t,r,e,o,n);var i=is();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(i=!0,Ho(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zu(t),o.updater=mi,t.stateNode=o,o._reactInternals=t,Zl(t,r,e,n),t=nu(null,t,r,!0,i,n)):(t.tag=0,K&&i&&Qu(t),ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Co(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Th(r),e=We(r,e),o){case 0:t=tu(null,t,r,e,n);break e;case 1:t=Pa(null,t,r,e,n);break e;case 11:t=Ta(null,t,r,e,n);break e;case 14:t=Na(null,t,r,We(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),tu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Pa(e,t,r,o,n);case 3:e:{if(qd(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,o=i.element,wd(e,t),Ko(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=zn(Error(E(423)),t),t=Ra(e,t,r,n,o);break e}else if(r!==o){o=zn(Error(E(424)),t),t=Ra(e,t,r,n,o);break e}else for(Re=$t(t.stateNode.containerInfo.firstChild),Le=t,K=!0,Ke=null,n=Cd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===o){t=Ct(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return xd(t),e===null&&Xl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Wl(r,o)?l=null:i!==null&&Wl(r,i)&&(t.flags|=32),Gd(e,t),ge(e,t,l,n),t.child;case 6:return e===null&&Xl(t),null;case 13:return Xd(e,t,n);case 4:return es(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$n(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Ta(e,t,r,o,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,V(Wo,r._currentValue),r._currentValue=l,i!==null)if(Xe(i.value,l)){if(i.children===o.children&&!Ce.current){t=Ct(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){l=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=yt(-1,n&-n),s.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Yl(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(E(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Yl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,On(t,n),o=ze(o),r=r(o),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,o=We(r,t.pendingProps),o=We(r.type,o),Na(e,t,r,o,n);case 15:return Qd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:We(r,o),Co(e,t),t.tag=1,xe(r)?(e=!0,Ho(t)):e=!1,On(t,n),kd(t,r,o),Zl(t,r,o,n),nu(null,t,r,!0,e,n);case 19:return Yd(e,t,n);case 22:return Kd(e,t,n)}throw Error(E(156,t.tag))};function mf(e,t){return zc(e,t)}function xh(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 Me(e,t,n,r){return new xh(e,t,n,r)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Th(e){if(typeof e=="function")return hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Du)return 11;if(e===Au)return 14}return 2}function jt(e,t){var n=e.alternate;return n===null?(n=Me(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 No(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")hs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case gn:return on(n.children,o,i,t);case Fu:l=8,o|=8;break;case Cl:return e=Me(12,n,t,o|2),e.elementType=Cl,e.lanes=i,e;case xl:return e=Me(13,n,t,o),e.elementType=xl,e.lanes=i,e;case Tl:return e=Me(19,n,t,o),e.elementType=Tl,e.lanes=i,e;case Ec:return vi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sc:l=10;break e;case kc:l=9;break e;case Du:l=11;break e;case Au:l=14;break e;case Pt:l=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Me(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function on(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function vi(e,t,n,r){return e=Me(22,e,r,t),e.elementType=Ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ol(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function il(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nh(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=zi(0),this.expirationTimes=zi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ys(e,t,n,r,o,i,l,u,s){return e=new Nh(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Me(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zu(i),e}function Ph(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function hf(e){if(!e)return Vt;e=e._reactInternals;e:{if(pn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(xe(n))return pd(e,n,t)}return t}function yf(e,t,n,r,o,i,l,u,s){return e=ys(n,r,!0,e,o,i,l,u,s),e.context=hf(null),n=e.current,r=ve(),o=Bt(n),i=yt(r,o),i.callback=t??null,It(n,i,o),e.current.lanes=o,Br(e,o,r),Te(e,r),e}function wi(e,t,n,r){var o=t.current,i=ve(),l=Bt(o);return n=hf(n),t.context===null?t.context=n:t.pendingContext=n,t=yt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=It(o,t,l),e!==null&&(qe(e,o,l,i),So(e,o,l)),l}function ti(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gs(e,t){Ia(e,t),(e=e.alternate)&&Ia(e,t)}function Rh(){return null}var gf=typeof reportError=="function"?reportError:function(e){console.error(e)};function vs(e){this._internalRoot=e}Si.prototype.render=vs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));wi(e,t,null,null)};Si.prototype.unmount=vs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dn(function(){wi(null,e,null,null)}),t[kt]=null}};function Si(e){this._internalRoot=e}Si.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&t!==0&&t<Lt[n].priority;n++);Lt.splice(n,0,e),n===0&&Gc(e)}};function ws(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ki(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function za(){}function Lh(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var a=ti(l);i.call(a)}}var l=yf(t,r,e,0,null,!1,!1,"",za);return e._reactRootContainer=l,e[kt]=l.current,Lr(e.nodeType===8?e.parentNode:e),dn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var a=ti(s);u.call(a)}}var s=ys(e,0,!1,null,null,!1,!1,"",za);return e._reactRootContainer=s,e[kt]=s.current,Lr(e.nodeType===8?e.parentNode:e),dn(function(){wi(t,s,n,r)}),s}function Ei(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var u=o;o=function(){var s=ti(l);u.call(s)}}wi(t,l,e,o)}else l=Lh(n,t,e,o,r);return ti(l)}bc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ar(t.pendingLanes);n!==0&&(Iu(t,n|1),Te(t,Z()),!(z&6)&&(Bn=Z()+500,Qt()))}break;case 13:dn(function(){var r=Et(e,1);if(r!==null){var o=ve();qe(r,e,1,o)}}),gs(e,1)}};zu=function(e){if(e.tag===13){var t=Et(e,134217728);if(t!==null){var n=ve();qe(t,e,134217728,n)}gs(e,134217728)}};Wc=function(e){if(e.tag===13){var t=Bt(e),n=Et(e,t);if(n!==null){var r=ve();qe(n,e,t,r)}gs(e,t)}};Qc=function(){return H};Kc=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};Al=function(e,t,n){switch(t){case"input":if(Rl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=fi(r);if(!o)throw Error(E(90));xc(r),Rl(r,o)}}}break;case"textarea":Nc(e,n);break;case"select":t=n.value,t!=null&&Rn(e,!!n.multiple,t,!1)}};Fc=fs;Dc=dn;var _h={usingClientEntryPoint:!1,Events:[Hr,kn,fi,Uc,Oc,fs]},rr={findFiberByHostInstance:Zt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Uh={bundleType:rr.bundleType,version:rr.version,rendererPackageName:rr.rendererPackageName,rendererConfig:rr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$c(e),e===null?null:e.stateNode},findFiberByHostInstance:rr.findFiberByHostInstance||Rh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!po.isDisabled&&po.supportsFiber)try{si=po.inject(Uh),rt=po}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_h;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ws(t))throw Error(E(200));return Ph(e,t,null,n)};Ue.createRoot=function(e,t){if(!ws(e))throw Error(E(299));var n=!1,r="",o=gf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ys(e,1,!1,null,null,n,!1,r,o),e[kt]=t.current,Lr(e.nodeType===8?e.parentNode:e),new vs(t)};Ue.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=$c(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return dn(e)};Ue.hydrate=function(e,t,n){if(!ki(t))throw Error(E(200));return Ei(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!ws(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=gf;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=yf(t,null,e,1,n??null,o,!1,i,l),e[kt]=t.current,Lr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Si(t)};Ue.render=function(e,t,n){if(!ki(t))throw Error(E(200));return Ei(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!ki(e))throw Error(E(40));return e._reactRootContainer?(dn(function(){Ei(null,null,e,!1,function(){e._reactRootContainer=null,e[kt]=null})}),!0):!1};Ue.unstable_batchedUpdates=fs;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ki(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return Ei(e,t,n,!1,r)};Ue.version="18.2.0-next-9e3b772b8-20220608";function vf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vf)}catch(e){console.error(e)}}vf(),hc.exports=Ue;var wf=hc.exports,Ba=wf;kl.createRoot=Ba.createRoot,kl.hydrateRoot=Ba.hydrateRoot;function Sf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Oh}=Object.prototype,{getPrototypeOf:Ss}=Object,Ci=(e=>t=>{const n=Oh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>Ci(t)===e),xi=e=>t=>typeof t===e,{isArray:Wn}=Array,Ir=xi("undefined");function Fh(e){return e!==null&&!Ir(e)&&e.constructor!==null&&!Ir(e.constructor)&&Ie(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kf=it("ArrayBuffer");function Dh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kf(e.buffer),t}const Ah=xi("string"),Ie=xi("function"),Ef=xi("number"),Ti=e=>e!==null&&typeof e=="object",Mh=e=>e===!0||e===!1,Po=e=>{if(Ci(e)!=="object")return!1;const t=Ss(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$h=it("Date"),Ih=it("File"),zh=it("Blob"),Bh=it("FileList"),jh=e=>Ti(e)&&Ie(e.pipe),Hh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ie(e.append)&&((t=Ci(e))==="formdata"||t==="object"&&Ie(e.toString)&&e.toString()==="[object FormData]"))},Vh=it("URLSearchParams"),bh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function br(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Wn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let u;for(r=0;r<l;r++)u=i[r],t.call(null,e[u],u,e)}}function Cf(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const xf=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Tf=e=>!Ir(e)&&e!==xf;function mu(){const{caseless:e}=Tf(this)&&this||{},t={},n=(r,o)=>{const i=e&&Cf(t,o)||o;Po(t[i])&&Po(r)?t[i]=mu(t[i],r):Po(r)?t[i]=mu({},r):Wn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&br(arguments[r],n);return t}const Wh=(e,t,n,{allOwnKeys:r}={})=>(br(t,(o,i)=>{n&&Ie(o)?e[i]=Sf(o,n):e[i]=o},{allOwnKeys:r}),e),Qh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kh=(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)},Gh=(e,t,n,r)=>{let o,i,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Ss(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qh=(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},Xh=e=>{if(!e)return null;if(Wn(e))return e;let t=e.length;if(!Ef(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Yh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ss(Uint8Array)),Jh=(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])}},Zh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},e0=it("HTMLFormElement"),t0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),n0=it("RegExp"),Nf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};br(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},r0=e=>{Nf(e,(t,n)=>{if(Ie(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ie(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},o0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Wn(e)?r(e):r(String(e).split(t)),n},i0=()=>{},l0=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ll="abcdefghijklmnopqrstuvwxyz",Ha="0123456789",Pf={DIGIT:Ha,ALPHA:ll,ALPHA_DIGIT:ll+ll.toUpperCase()+Ha},u0=(e=16,t=Pf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function s0(e){return!!(e&&Ie(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const a0=e=>{const t=new Array(10),n=(r,o)=>{if(Ti(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Wn(r)?[]:{};return br(r,(l,u)=>{const s=n(l,o+1);!Ir(s)&&(i[u]=s)}),t[o]=void 0,i}}return r};return n(e,0)},c0=it("AsyncFunction"),d0=e=>e&&(Ti(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),S={isArray:Wn,isArrayBuffer:kf,isBuffer:Fh,isFormData:Hh,isArrayBufferView:Dh,isString:Ah,isNumber:Ef,isBoolean:Mh,isObject:Ti,isPlainObject:Po,isUndefined:Ir,isDate:$h,isFile:Ih,isBlob:zh,isRegExp:n0,isFunction:Ie,isStream:jh,isURLSearchParams:Vh,isTypedArray:Yh,isFileList:Bh,forEach:br,merge:mu,extend:Wh,trim:bh,stripBOM:Qh,inherits:Kh,toFlatObject:Gh,kindOf:Ci,kindOfTest:it,endsWith:qh,toArray:Xh,forEachEntry:Jh,matchAll:Zh,isHTMLForm:e0,hasOwnProperty:ja,hasOwnProp:ja,reduceDescriptors:Nf,freezeMethods:r0,toObjectSet:o0,toCamelCase:t0,noop:i0,toFiniteNumber:l0,findKey:Cf,global:xf,isContextDefined:Tf,ALPHABET:Pf,generateString:u0,isSpecCompliantForm:s0,toJSONObject:a0,isAsyncFn:c0,isThenable:d0};function $(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}S.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Rf=$.prototype,Lf={};["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=>{Lf[e]={value:e}});Object.defineProperties($,Lf);Object.defineProperty(Rf,"isAxiosError",{value:!0});$.from=(e,t,n,r,o,i)=>{const l=Object.create(Rf);return S.toFlatObject(e,l,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),$.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const f0=null;function hu(e){return S.isPlainObject(e)||S.isArray(e)}function _f(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Va(e,t,n){return e?e.concat(t).map(function(o,i){return o=_f(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function p0(e){return S.isArray(e)&&!e.some(hu)}const m0=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Ni(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,T){return!S.isUndefined(T[g])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,l=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function a(h){if(h===null)return"";if(S.isDate(h))return h.toISOString();if(!s&&S.isBlob(h))throw new $("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(h)||S.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,g,T){let f=h;if(h&&!T&&typeof h=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(S.isArray(h)&&p0(h)||(S.isFileList(h)||S.endsWith(g,"[]"))&&(f=S.toArray(h)))return g=_f(g),f.forEach(function(y,k){!(S.isUndefined(y)||y===null)&&t.append(l===!0?Va([g],k,i):l===null?g:g+"[]",a(y))}),!1}return hu(h)?!0:(t.append(Va(T,g,i),a(h)),!1)}const p=[],m=Object.assign(m0,{defaultVisitor:d,convertValue:a,isVisitable:hu});function v(h,g){if(!S.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));p.push(h),S.forEach(h,function(f,c){(!(S.isUndefined(f)||f===null)&&o.call(t,f,S.isString(c)?c.trim():c,g,m))===!0&&v(f,g?g.concat(c):[c])}),p.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return v(e),t}function ba(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ks(e,t){this._pairs=[],e&&Ni(e,this,t)}const Uf=ks.prototype;Uf.append=function(t,n){this._pairs.push([t,n])};Uf.toString=function(t){const n=t?function(r){return t.call(this,r,ba)}:ba;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function h0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Of(e,t,n){if(!t)return e;const r=n&&n.encode||h0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=S.isURLSearchParams(t)?t.toString():new ks(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class y0{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Wa=y0,Ff={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g0=typeof URLSearchParams<"u"?URLSearchParams:ks,v0=typeof FormData<"u"?FormData:null,w0=typeof Blob<"u"?Blob:null,S0=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),k0=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),tt={isBrowser:!0,classes:{URLSearchParams:g0,FormData:v0,Blob:w0},isStandardBrowserEnv:S0,isStandardBrowserWebWorkerEnv:k0,protocols:["http","https","file","blob","url","data"]};function E0(e,t){return Ni(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return tt.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function C0(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function x0(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Df(e){function t(n,r,o,i){let l=n[i++];const u=Number.isFinite(+l),s=i>=n.length;return l=!l&&S.isArray(o)?o.length:l,s?(S.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!u):((!o[l]||!S.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&S.isArray(o[l])&&(o[l]=x0(o[l])),!u)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(C0(r),o,n,0)}),n}return null}const T0={"Content-Type":void 0};function N0(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Pi={transitional:Ff,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o&&o?JSON.stringify(Df(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return E0(t,this.formSerializer).toString();if((u=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ni(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),N0(t)):t}],transformResponse:[function(t){const n=this.transitional||Pi.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&S.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?$.from(u,$.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],function(t){Pi.headers[t]={}});S.forEach(["post","put","patch"],function(t){Pi.headers[t]=S.merge(T0)});const Es=Pi,P0=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),R0=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]&&P0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Qa=Symbol("internals");function or(e){return e&&String(e).trim().toLowerCase()}function Ro(e){return e===!1||e==null?e:S.isArray(e)?e.map(Ro):String(e)}function L0(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 _0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ul(e,t,n,r,o){if(S.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function U0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function O0(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class Ri{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,s,a){const d=or(s);if(!d)throw new Error("header name must be a non-empty string");const p=S.findKey(o,d);(!p||o[p]===void 0||a===!0||a===void 0&&o[p]!==!1)&&(o[p||s]=Ro(u))}const l=(u,s)=>S.forEach(u,(a,d)=>i(a,d,s));return S.isPlainObject(t)||t instanceof this.constructor?l(t,n):S.isString(t)&&(t=t.trim())&&!_0(t)?l(R0(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=or(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return L0(o);if(S.isFunction(n))return n.call(this,o,r);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=or(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ul(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=or(l),l){const u=S.findKey(r,l);u&&(!n||ul(r,r[u],u,n))&&(delete r[u],o=!0)}}return S.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ul(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return S.forEach(this,(o,i)=>{const l=S.findKey(r,i);if(l){n[l]=Ro(o),delete n[i];return}const u=t?U0(i):String(i).trim();u!==i&&delete n[i],n[u]=Ro(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Qa]=this[Qa]={accessors:{}}).accessors,o=this.prototype;function i(l){const u=or(l);r[u]||(O0(o,l),r[u]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}}Ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.freezeMethods(Ri.prototype);S.freezeMethods(Ri);const gt=Ri;function sl(e,t){const n=this||Es,r=t||n,o=gt.from(r.headers);let i=r.data;return S.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Af(e){return!!(e&&e.__CANCEL__)}function Wr(e,t,n){$.call(this,e??"canceled",$.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Wr,$,{__CANCEL__:!0});function F0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const D0=tt.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,u){const s=[];s.push(n+"="+encodeURIComponent(r)),S.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),S.isString(i)&&s.push("path="+i),S.isString(l)&&s.push("domain="+l),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function A0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function M0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Mf(e,t){return e&&!A0(t)?M0(e,t):t}const $0=tt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const u=S.isString(l)?o(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function I0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function z0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),d=r[i];l||(l=a),n[o]=s,r[o]=a;let p=i,m=0;for(;p!==o;)m+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l<t)return;const v=d&&a-d;return v?Math.round(m*1e3/v):void 0}}function Ka(e,t){let n=0;const r=z0(50,250);return o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,u=i-n,s=r(u),a=i<=l;n=i;const d={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:s||void 0,estimated:s&&l&&a?(l-i)/s:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const B0=typeof XMLHttpRequest<"u",j0=B0&&function(e){return new Promise(function(n,r){let o=e.data;const i=gt.from(e.headers).normalize(),l=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}S.isFormData(o)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let a=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(v+":"+h))}const d=Mf(e.baseURL,e.url);a.open(e.method.toUpperCase(),Of(d,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function p(){if(!a)return;const v=gt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:v,config:e,request:a};F0(function(f){n(f),s()},function(f){r(f),s()},g),a=null}if("onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(p)},a.onabort=function(){a&&(r(new $("Request aborted",$.ECONNABORTED,e,a)),a=null)},a.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Ff;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new $(h,g.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,a)),a=null},tt.isStandardBrowserEnv){const v=(e.withCredentials||$0(d))&&e.xsrfCookieName&&D0.read(e.xsrfCookieName);v&&i.set(e.xsrfHeaderName,v)}o===void 0&&i.setContentType(null),"setRequestHeader"in a&&S.forEach(i.toJSON(),function(h,g){a.setRequestHeader(g,h)}),S.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),l&&l!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Ka(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Ka(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=v=>{a&&(r(!v||v.type?new Wr(null,e,a):v),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const m=I0(d);if(m&&tt.protocols.indexOf(m)===-1){r(new $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,e));return}a.send(o||null)})},Lo={http:f0,xhr:j0};S.forEach(Lo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const H0={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=S.isString(n)?Lo[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new $(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(S.hasOwnProp(Lo,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!S.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Lo};function al(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wr(null,e)}function Ga(e){return al(e),e.headers=gt.from(e.headers),e.data=sl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),H0.getAdapter(e.adapter||Es.adapter)(e).then(function(r){return al(e),r.data=sl.call(e,e.transformResponse,r),r.headers=gt.from(r.headers),r},function(r){return Af(r)||(al(e),r&&r.response&&(r.response.data=sl.call(e,e.transformResponse,r.response),r.response.headers=gt.from(r.response.headers))),Promise.reject(r)})}const qa=e=>e instanceof gt?e.toJSON():e;function jn(e,t){t=t||{};const n={};function r(a,d,p){return S.isPlainObject(a)&&S.isPlainObject(d)?S.merge.call({caseless:p},a,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function o(a,d,p){if(S.isUndefined(d)){if(!S.isUndefined(a))return r(void 0,a,p)}else return r(a,d,p)}function i(a,d){if(!S.isUndefined(d))return r(void 0,d)}function l(a,d){if(S.isUndefined(d)){if(!S.isUndefined(a))return r(void 0,a)}else return r(void 0,d)}function u(a,d,p){if(p in t)return r(a,d);if(p in e)return r(void 0,a)}const s={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(a,d)=>o(qa(a),qa(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=s[d]||o,m=p(e[d],t[d],d);S.isUndefined(m)&&p!==u||(n[d]=m)}),n}const $f="1.4.0",Cs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xa={};Cs.transitional=function(t,n,r){function o(i,l){return"[Axios v"+$f+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,u)=>{if(t===!1)throw new $(o(l," has been removed"+(n?" in "+n:"")),$.ERR_DEPRECATED);return n&&!Xa[l]&&(Xa[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,u):!0}};function V0(e,t,n){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const u=e[i],s=u===void 0||l(u,i,e);if(s!==!0)throw new $("option "+i+" must be "+s,$.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}}const yu={assertOptions:V0,validators:Cs},Nt=yu.validators;class ni{constructor(t){this.defaults=t,this.interceptors={request:new Wa,response:new Wa}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=jn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&yu.assertOptions(r,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:yu.assertOptions(o,{encode:Nt.function,serialize:Nt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=i&&S.merge(i.common,i[n.method]),l&&S.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=gt.concat(l,i);const u=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let d,p=0,m;if(!s){const h=[Ga.bind(this),void 0];for(h.unshift.apply(h,u),h.push.apply(h,a),m=h.length,d=Promise.resolve(n);p<m;)d=d.then(h[p++],h[p++]);return d}m=u.length;let v=n;for(p=0;p<m;){const h=u[p++],g=u[p++];try{v=h(v)}catch(T){g.call(this,T);break}}try{d=Ga.call(this,v)}catch(h){return Promise.reject(h)}for(p=0,m=a.length;p<m;)d=d.then(a[p++],a[p++]);return d}getUri(t){t=jn(this.defaults,t);const n=Mf(t.baseURL,t.url);return Of(n,t.params,t.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(t){ni.prototype[t]=function(n,r){return this.request(jn(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,u){return this.request(jn(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}ni.prototype[t]=n(),ni.prototype[t+"Form"]=n(!0)});const _o=ni;class xs{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(u=>{r.subscribe(u),i=u}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,u){r.reason||(r.reason=new Wr(i,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xs(function(o){t=o}),cancel:t}}}const b0=xs;function W0(e){return function(n){return e.apply(null,n)}}function Q0(e){return S.isObject(e)&&e.isAxiosError===!0}const gu={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(gu).forEach(([e,t])=>{gu[t]=e});const K0=gu;function If(e){const t=new _o(e),n=Sf(_o.prototype.request,t);return S.extend(n,_o.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return If(jn(e,o))},n}const ie=If(Es);ie.Axios=_o;ie.CanceledError=Wr;ie.CancelToken=b0;ie.isCancel=Af;ie.VERSION=$f;ie.toFormData=Ni;ie.AxiosError=$;ie.Cancel=ie.CanceledError;ie.all=function(t){return Promise.all(t)};ie.spread=W0;ie.isAxiosError=Q0;ie.mergeConfig=jn;ie.AxiosHeaders=gt;ie.formToJSON=e=>Df(S.isHTMLForm(e)?new FormData(e):e);ie.HttpStatusCode=K0;ie.default=ie;const G0=ie;var q0=Object.defineProperty,X0=(e,t,n)=>t in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cl=(e,t,n)=>(X0(e,typeof t!="symbol"?t+"":t,n),n);let Y0=class{constructor(){cl(this,"current",this.detect()),cl(this,"handoffState","pending"),cl(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},vt=new Y0,lt=(e,t)=>{vt.isServer?w.useEffect(e,t):w.useLayoutEffect(e,t)};function wt(e){let t=w.useRef(e);return lt(()=>{t.current=e},[e]),t}function Qr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Qn(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Qr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Qn();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ts(){let[e]=w.useState(Qn);return w.useEffect(()=>()=>e.dispose(),[e]),e}let ue=function(e){let t=wt(e);return M.useCallback((...n)=>t.current(...n),[t])};function Kn(){let[e,t]=w.useState(vt.isHandoffComplete);return e&&vt.isHandoffComplete===!1&&t(!1),w.useEffect(()=>{e!==!0&&t(!0)},[e]),w.useEffect(()=>vt.handoff(),[]),e}var Ya;let Gn=(Ya=M.useId)!=null?Ya:function(){let e=Kn(),[t,n]=M.useState(e?()=>vt.nextId():null);return lt(()=>{t===null&&n(vt.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,he),r}function zf(e){return vt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let vu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Jt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Jt||{}),Bf=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Bf||{}),J0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(J0||{});function Z0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(vu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var jf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(jf||{});function ey(e,t=0){var n;return e===((n=zf(e))==null?void 0:n.body)?!1:he(t,{[0](){return e.matches(vu)},[1](){let r=e;for(;r!==null;){if(r.matches(vu))return!0;r=r.parentElement}return!1}})}var ty=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ty||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ln(e){e==null||e.focus({preventScroll:!0})}let ny=["textarea","input"].join(",");function ry(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,ny))!=null?n:!1}function oy(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 Uo(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?oy(e):e:Z0(e);o.length>0&&l.length>1&&(l=l.filter(v=>!o.includes(v))),r=r??i.activeElement;let u=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},d=0,p=l.length,m;do{if(d>=p||d+p<=0)return 0;let v=s+d;if(t&16)v=(v+p)%p;else{if(v<0)return 3;if(v>=p)return 1}m=l[v],m==null||m.focus(a),d+=u}while(m!==i.activeElement);return t&6&&ry(m)&&m.select(),2}function dl(e,t,n){let r=wt(t);w.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function iy(e,t,n=!0){let r=w.useRef(!1);w.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(l,u){if(!r.current||l.defaultPrevented)return;let s=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e),a=u(l);if(a!==null&&a.getRootNode().contains(a)){for(let d of s){if(d===null)continue;let p=d instanceof HTMLElement?d:d.current;if(p!=null&&p.contains(a)||l.composed&&l.composedPath().includes(p))return}return!ey(a,jf.Loose)&&a.tabIndex!==-1&&l.preventDefault(),t(l,a)}}let i=w.useRef(null);dl("mousedown",l=>{var u,s;r.current&&(i.current=((s=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:s[0])||l.target)},!0),dl("click",l=>{i.current&&(o(l,()=>i.current),i.current=null)},!0),dl("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let Hf=Symbol();function ly(e,t=!0){return Object.assign(e,{[Hf]:t})}function Ye(...e){let t=w.useRef(e);w.useEffect(()=>{t.current=e},[e]);let n=ue(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Hf]))?void 0:n}function wu(...e){return e.filter(Boolean).join(" ")}var ri=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ri||{}),ht=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ht||{});function je({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l}){let u=Vf(t,e);if(i)return mo(u,n,r,l);let s=o??0;if(s&2){let{static:a=!1,...d}=u;if(a)return mo(d,n,r,l)}if(s&1){let{unmount:a=!0,...d}=u;return he(a?0:1,{[0](){return null},[1](){return mo({...d,hidden:!0,style:{display:"none"}},n,r,l)}})}return mo(u,n,r,l)}function mo(e,t={},n,r){let{as:o=n,children:i,refName:l="ref",...u}=fl(e,["unmount","static"]),s=e.ref!==void 0?{[l]:e.ref}:{},a=typeof i=="function"?i(t):i;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let d={};if(t){let p=!1,m=[];for(let[v,h]of Object.entries(t))typeof h=="boolean"&&(p=!0),h===!0&&m.push(v);p&&(d["data-headlessui-state"]=m.join(" "))}if(o===w.Fragment&&Object.keys(Ja(u)).length>0){if(!w.isValidElement(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(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(`
`));let p=a.props,m=typeof(p==null?void 0:p.className)=="function"?(...h)=>wu(p==null?void 0:p.className(...h),u.className):wu(p==null?void 0:p.className,u.className),v=m?{className:m}:{};return w.cloneElement(a,Object.assign({},Vf(a.props,Ja(fl(u,["ref"]))),d,s,uy(a.ref,s.ref),v))}return w.createElement(o,Object.assign({},fl(u,["ref"]),o!==w.Fragment&&s,o!==w.Fragment&&d),a)}function uy(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Vf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let u of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;u(o,...i)}}});return t}function Fe(e){var t;return Object.assign(w.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Ja(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function fl(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function sy(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&ay(n)?!1:r}function ay(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let cy="div";var oi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(oi||{});function dy(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return je({ourProps:o,theirProps:r,slot:{},defaultTag:cy,name:"Hidden"})}let Su=Fe(dy),Ns=w.createContext(null);Ns.displayName="OpenClosedContext";var Pe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pe||{});function Ps(){return w.useContext(Ns)}function fy({value:e,children:t}){return M.createElement(Ns.Provider,{value:e},t)}var bf=(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))(bf||{});function Rs(e,t){let n=w.useRef([]),r=ue(e);w.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let u=r(t,o);return n.current=t,u}},[r,...t])}function py(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function my(e,t,n){let r=wt(t);w.useEffect(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}var dr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(dr||{});function hy(){let e=w.useRef(0);return my("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Kr(){let e=w.useRef(!1);return lt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Li(...e){return w.useMemo(()=>zf(...e),[...e])}function Wf(e,t,n,r){let o=wt(n);w.useEffect(()=>{e=e??window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function yy(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Qf(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 gy="div";var Kf=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Kf||{});function vy(e,t){let n=w.useRef(null),r=Ye(n,t),{initialFocus:o,containers:i,features:l=30,...u}=e;Kn()||(l=1);let s=Li(n);ky({ownerDocument:s},!!(l&16));let a=Ey({ownerDocument:s,container:n,initialFocus:o},!!(l&2));Cy({ownerDocument:s,container:n,containers:i,previousActiveElement:a},!!(l&8));let d=hy(),p=ue(g=>{let T=n.current;T&&(f=>f())(()=>{he(d.current,{[dr.Forwards]:()=>{Uo(T,Jt.First,{skipElements:[g.relatedTarget]})},[dr.Backwards]:()=>{Uo(T,Jt.Last,{skipElements:[g.relatedTarget]})}})})}),m=Ts(),v=w.useRef(!1),h={ref:r,onKeyDown(g){g.key=="Tab"&&(v.current=!0,m.requestAnimationFrame(()=>{v.current=!1}))},onBlur(g){let T=Qf(i);n.current instanceof HTMLElement&&T.add(n.current);let f=g.relatedTarget;f instanceof HTMLElement&&f.dataset.headlessuiFocusGuard!=="true"&&(Gf(T,f)||(v.current?Uo(n.current,he(d.current,{[dr.Forwards]:()=>Jt.Next,[dr.Backwards]:()=>Jt.Previous})|Jt.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&ln(g.target)))}};return M.createElement(M.Fragment,null,!!(l&4)&&M.createElement(Su,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:oi.Focusable}),je({ourProps:h,theirProps:u,defaultTag:gy,name:"FocusTrap"}),!!(l&4)&&M.createElement(Su,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:oi.Focusable}))}let wy=Fe(vy),ir=Object.assign(wy,{features:Kf}),Ut=[];yy(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Ut[0]!==t.target&&(Ut.unshift(t.target),Ut=Ut.filter(n=>n!=null&&n.isConnected),Ut.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 Sy(e=!0){let t=w.useRef(Ut.slice());return Rs(([n],[r])=>{r===!0&&n===!1&&Qr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ut.slice())},[e,Ut,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function ky({ownerDocument:e},t){let n=Sy(t);Rs(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&ln(n())},[t]);let r=w.useRef(!1);w.useEffect(()=>(r.current=!1,()=>{r.current=!0,Qr(()=>{r.current&&ln(n())})}),[])}function Ey({ownerDocument:e,container:t,initialFocus:n},r){let o=w.useRef(null),i=Kr();return Rs(()=>{if(!r)return;let l=t.current;l&&Qr(()=>{if(!i.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}n!=null&&n.current?ln(n.current):Uo(l,Jt.First)===Bf.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Cy({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Kr();Wf(e==null?void 0:e.defaultView,"focus",l=>{if(!o||!i.current)return;let u=Qf(n);t.current instanceof HTMLElement&&u.add(t.current);let s=r.current;if(!s)return;let a=l.target;a&&a instanceof HTMLElement?Gf(u,a)?(r.current=a,ln(a)):(l.preventDefault(),l.stopPropagation(),ln(s)):ln(r.current)},!0)}function Gf(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let qf=w.createContext(!1);function xy(){return w.useContext(qf)}function ku(e){return M.createElement(qf.Provider,{value:e.force},e.children)}function Ty(e){let t=xy(),n=w.useContext(Xf),r=Li(e),[o,i]=w.useState(()=>{if(!t&&n!==null||vt.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return w.useEffect(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),w.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let Ny=w.Fragment;function Py(e,t){let n=e,r=w.useRef(null),o=Ye(ly(d=>{r.current=d}),t),i=Li(r),l=Ty(r),[u]=w.useState(()=>{var d;return vt.isServer?null:(d=i==null?void 0:i.createElement("div"))!=null?d:null}),s=Kn(),a=w.useRef(!1);return lt(()=>{if(a.current=!1,!(!l||!u))return l.contains(u)||(u.setAttribute("data-headlessui-portal",""),l.appendChild(u)),()=>{a.current=!0,Qr(()=>{var d;a.current&&(!l||!u||(u instanceof Node&&l.contains(u)&&l.removeChild(u),l.childNodes.length<=0&&((d=l.parentElement)==null||d.removeChild(l))))})}},[l,u]),s?!l||!u?null:wf.createPortal(je({ourProps:{ref:o},theirProps:n,defaultTag:Ny,name:"Portal"}),u):null}let Ry=w.Fragment,Xf=w.createContext(null);function Ly(e,t){let{target:n,...r}=e,o={ref:Ye(t)};return M.createElement(Xf.Provider,{value:n},je({ourProps:o,theirProps:r,defaultTag:Ry,name:"Popover.Group"}))}let _y=Fe(Py),Uy=Fe(Ly),Eu=Object.assign(_y,{Group:Uy}),Yf=w.createContext(null);function Jf(){let e=w.useContext(Yf);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Jf),t}return e}function Oy(){let[e,t]=w.useState([]);return[e.length>0?e.join(" "):void 0,w.useMemo(()=>function(n){let r=ue(i=>(t(l=>[...l,i]),()=>t(l=>{let u=l.slice(),s=u.indexOf(i);return s!==-1&&u.splice(s,1),u}))),o=w.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return M.createElement(Yf.Provider,{value:o},n.children)},[t])]}let Fy="p";function Dy(e,t){let n=Gn(),{id:r=`headlessui-description-${n}`,...o}=e,i=Jf(),l=Ye(t);lt(()=>i.register(r),[r,i.register]);let u={ref:l,...i.props,id:r};return je({ourProps:u,theirProps:o,slot:i.slot||{},defaultTag:Fy,name:i.name||"Description"})}let Ay=Fe(Dy),My=Object.assign(Ay,{}),Ls=w.createContext(()=>{});Ls.displayName="StackContext";var Cu=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Cu||{});function $y(){return w.useContext(Ls)}function Iy({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=$y(),l=ue((...u)=>{t==null||t(...u),i(...u)});return lt(()=>{let u=o===void 0||o===!0;return u&&l(0,n,r),()=>{u&&l(1,n,r)}},[l,n,r,o]),M.createElement(Ls.Provider,{value:l},e)}function zy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const By=typeof Object.is=="function"?Object.is:zy,{useState:jy,useEffect:Hy,useLayoutEffect:Vy,useDebugValue:by}=Sl;function Wy(e,t,n){const r=t(),[{inst:o},i]=jy({inst:{value:r,getSnapshot:t}});return Vy(()=>{o.value=r,o.getSnapshot=t,pl(o)&&i({inst:o})},[e,r,t]),Hy(()=>(pl(o)&&i({inst:o}),e(()=>{pl(o)&&i({inst:o})})),[e]),by(r),r}function pl(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!By(n,r)}catch{return!0}}function Qy(e,t,n){return t()}const Ky=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gy=!Ky,qy=Gy?Qy:Wy,Xy="useSyncExternalStore"in Sl?(e=>e.useSyncExternalStore)(Sl):qy;function Yy(e){return Xy(e.subscribe,e.getSnapshot,e.getSnapshot)}function Jy(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(u=>u()))}}}function Zy(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function e1(){if(!py())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(l){return r.containers.flatMap(u=>u()).some(u=>u.contains(l))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",l=>{if(l.target instanceof HTMLElement)try{let u=l.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),a=t.querySelector(s);a&&!o(a)&&(i=a)}catch{}},!0),n.addEventListener(t,"touchmove",l=>{l.target instanceof HTMLElement&&!o(l.target)&&l.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function t1(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function n1(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let nn=Jy(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Qn(),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:n1(n)},o=[e1(),Zy(),t1()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});nn.subscribe(()=>{let e=nn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&nn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&nn.dispatch("TEARDOWN",n)}});function r1(e,t,n){let r=Yy(nn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return lt(()=>{if(!(!e||!t))return nn.dispatch("PUSH",e,n),()=>nn.dispatch("POP",e,n)},[t,e]),i}let ml=new Map,lr=new Map;function Za(e,t=!0){lt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var l;if(!r)return;let u=(l=lr.get(r))!=null?l:1;if(u===1?lr.delete(r):lr.set(r,u-1),u!==1)return;let s=ml.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,ml.delete(r))}let i=(n=lr.get(r))!=null?n:0;return lr.set(r,i+1),i!==0||(ml.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}var o1=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(o1||{}),i1=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(i1||{});let l1={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ii=w.createContext(null);ii.displayName="DialogContext";function Gr(e){let t=w.useContext(ii);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gr),n}return t}function u1(e,t,n=()=>[document.body]){r1(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function s1(e,t){return he(t.type,l1,e,t)}let a1="div",c1=ri.RenderStrategy|ri.Static;function d1(e,t){let n=Gn(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:l,__demoMode:u=!1,...s}=e,[a,d]=w.useState(0),p=Ps();o===void 0&&p!==null&&(o=(p&Pe.Open)===Pe.Open);let m=w.useRef(null),v=Ye(m,t),h=w.useRef(null),g=Li(m),T=e.hasOwnProperty("open")||p!==null,f=e.hasOwnProperty("onClose");if(!T&&!f)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!T)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!f)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof i!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${i}`);let c=o?0:1,[y,k]=w.useReducer(s1,{titleId:null,descriptionId:null,panelRef:w.createRef()}),N=ue(()=>i(!1)),P=ue(Q=>k({type:0,id:Q})),x=Kn()?u?!1:c===0:!1,L=a>1,A=w.useContext(ii)!==null,U=L?"parent":"leaf",j=p!==null?(p&Pe.Closing)===Pe.Closing:!1,He=(()=>A||j?!1:x)(),Ve=w.useCallback(()=>{var Q,te;return(te=Array.from((Q=g==null?void 0:g.querySelectorAll("body > *"))!=null?Q:[]).find(G=>G.id==="headlessui-portal-root"?!1:G.contains(h.current)&&G instanceof HTMLElement))!=null?te:null},[h]);Za(Ve,He);let mn=(()=>L?!0:x)(),ut=w.useCallback(()=>{var Q,te;return(te=Array.from((Q=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?Q:[]).find(G=>G.contains(h.current)&&G instanceof HTMLElement))!=null?te:null},[h]);Za(ut,mn);let st=ue(()=>{var Q,te;return[...Array.from((Q=g==null?void 0:g.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?Q:[]).filter(G=>!(G===document.body||G===document.head||!(G instanceof HTMLElement)||G.contains(h.current)||y.panelRef.current&&G.contains(y.panelRef.current))),(te=y.panelRef.current)!=null?te:m.current]}),Kt=(()=>!(!x||L))();iy(()=>st(),N,Kt);let R=(()=>!(L||c!==0))();Wf(g==null?void 0:g.defaultView,"keydown",Q=>{R&&(Q.defaultPrevented||Q.key===bf.Escape&&(Q.preventDefault(),Q.stopPropagation(),N()))});let O=(()=>!(j||c!==0||A))();u1(g,O,st),w.useEffect(()=>{if(c!==0||!m.current)return;let Q=new ResizeObserver(te=>{for(let G of te){let qr=G.target.getBoundingClientRect();qr.x===0&&qr.y===0&&qr.width===0&&qr.height===0&&N()}});return Q.observe(m.current),()=>Q.disconnect()},[c,m,N]);let[F,B]=Oy(),ee=w.useMemo(()=>[{dialogState:c,close:N,setTitleId:P},y],[c,y,N,P]),Gt=w.useMemo(()=>({open:c===0}),[c]),at={ref:v,id:r,role:"dialog","aria-modal":c===0?!0:void 0,"aria-labelledby":y.titleId,"aria-describedby":F};return M.createElement(Iy,{type:"Dialog",enabled:c===0,element:m,onUpdate:ue((Q,te)=>{te==="Dialog"&&he(Q,{[Cu.Add]:()=>d(G=>G+1),[Cu.Remove]:()=>d(G=>G-1)})})},M.createElement(ku,{force:!0},M.createElement(Eu,null,M.createElement(ii.Provider,{value:ee},M.createElement(Eu.Group,{target:m},M.createElement(ku,{force:!1},M.createElement(B,{slot:Gt,name:"Dialog.Description"},M.createElement(ir,{initialFocus:l,containers:st,features:x?he(U,{parent:ir.features.RestoreFocus,leaf:ir.features.All&~ir.features.FocusLock}):ir.features.None},je({ourProps:at,theirProps:s,slot:Gt,defaultTag:a1,features:c1,visible:c===0,name:"Dialog"})))))))),M.createElement(Su,{features:oi.Hidden,ref:h}))}let f1="div";function p1(e,t){let n=Gn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:l}]=Gr("Dialog.Overlay"),u=Ye(t),s=ue(d=>{if(d.target===d.currentTarget){if(sy(d.currentTarget))return d.preventDefault();d.preventDefault(),d.stopPropagation(),l()}}),a=w.useMemo(()=>({open:i===0}),[i]);return je({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:s},theirProps:o,slot:a,defaultTag:f1,name:"Dialog.Overlay"})}let m1="div";function h1(e,t){let n=Gn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},l]=Gr("Dialog.Backdrop"),u=Ye(t);w.useEffect(()=>{if(l.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[l.panelRef]);let s=w.useMemo(()=>({open:i===0}),[i]);return M.createElement(ku,{force:!0},M.createElement(Eu,null,je({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:o,slot:s,defaultTag:m1,name:"Dialog.Backdrop"})))}let y1="div";function g1(e,t){let n=Gn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},l]=Gr("Dialog.Panel"),u=Ye(t,l.panelRef),s=w.useMemo(()=>({open:i===0}),[i]),a=ue(d=>{d.stopPropagation()});return je({ourProps:{ref:u,id:r,onClick:a},theirProps:o,slot:s,defaultTag:y1,name:"Dialog.Panel"})}let v1="h2";function w1(e,t){let n=Gn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=Gr("Dialog.Title"),u=Ye(t);w.useEffect(()=>(l(r),()=>l(null)),[r,l]);let s=w.useMemo(()=>({open:i===0}),[i]);return je({ourProps:{ref:u,id:r},theirProps:o,slot:s,defaultTag:v1,name:"Dialog.Title"})}let S1=Fe(d1),k1=Fe(h1),E1=Fe(g1),C1=Fe(p1),x1=Fe(w1),hl=Object.assign(S1,{Backdrop:k1,Panel:E1,Overlay:C1,Title:x1,Description:My});function T1(e=0){let[t,n]=w.useState(e),r=Kr(),o=w.useCallback(s=>{r.current&&n(a=>a|s)},[t,r]),i=w.useCallback(s=>!!(t&s),[t]),l=w.useCallback(s=>{r.current&&n(a=>a&~s)},[n,r]),u=w.useCallback(s=>{r.current&&n(a=>a^s)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:u}}function N1(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function yl(e,...t){e&&t.length>0&&e.classList.add(...t)}function gl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function P1(e,t){let n=Qn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(s=>{let[a=0]=s.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return a}),u=i+l;if(u!==0){n.group(a=>{a.setTimeout(()=>{t(),a.dispose()},u),a.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&a.dispose()})});let s=n.addEventListener(e,"transitionend",a=>{a.target===a.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function R1(e,t,n,r){let o=n?"enter":"leave",i=Qn(),l=r!==void 0?N1(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=he(o,{enter:()=>t.enter,leave:()=>t.leave}),s=he(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=he(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return gl(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),yl(e,...u,...a),i.nextFrame(()=>{gl(e,...a),yl(e,...s),P1(e,()=>(gl(e,...u),yl(e,...t.entered),l()))}),i.dispose}function L1({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Kr(),l=Ts(),u=wt(t);lt(()=>{let s=Qn();l.add(s.dispose);let a=e.current;if(a&&u.current!=="idle"&&i.current)return s.dispose(),r.current(u.current),s.add(R1(a,n.current,u.current==="enter",()=>{s.dispose(),o.current(u.current)})),s.dispose},[t])}function qt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let _i=w.createContext(null);_i.displayName="TransitionContext";var _1=(e=>(e.Visible="visible",e.Hidden="hidden",e))(_1||{});function U1(){let e=w.useContext(_i);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function O1(){let e=w.useContext(Ui);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ui=w.createContext(null);Ui.displayName="NestingContext";function Oi(e){return"children"in e?Oi(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Zf(e,t){let n=wt(e),r=w.useRef([]),o=Kr(),i=Ts(),l=ue((v,h=ht.Hidden)=>{let g=r.current.findIndex(({el:T})=>T===v);g!==-1&&(he(h,{[ht.Unmount](){r.current.splice(g,1)},[ht.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var T;!Oi(r)&&o.current&&((T=n.current)==null||T.call(n))}))}),u=ue(v=>{let h=r.current.find(({el:g})=>g===v);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:v,state:"visible"}),()=>l(v,ht.Unmount)}),s=w.useRef([]),a=w.useRef(Promise.resolve()),d=w.useRef({enter:[],leave:[],idle:[]}),p=ue((v,h,g)=>{s.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([T])=>T!==v)),t==null||t.chains.current[h].push([v,new Promise(T=>{s.current.push(T)})]),t==null||t.chains.current[h].push([v,new Promise(T=>{Promise.all(d.current[h].map(([f,c])=>c)).then(()=>T())})]),h==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(h)):g(h)}),m=ue((v,h,g)=>{Promise.all(d.current[h].splice(0).map(([T,f])=>f)).then(()=>{var T;(T=s.current.shift())==null||T()}).then(()=>g(h))});return w.useMemo(()=>({children:r,register:u,unregister:l,onStart:p,onStop:m,wait:a,chains:d}),[u,l,r,p,m,d,a])}function F1(){}let D1=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ec(e){var t;let n={};for(let r of D1)n[r]=(t=e[r])!=null?t:F1;return n}function A1(e){let t=w.useRef(ec(e));return w.useEffect(()=>{t.current=ec(e)},[e]),t}let M1="div",ep=ri.RenderStrategy;function $1(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:l,enterFrom:u,enterTo:s,entered:a,leave:d,leaveFrom:p,leaveTo:m,...v}=e,h=w.useRef(null),g=Ye(h,t),T=v.unmount?ht.Unmount:ht.Hidden,{show:f,appear:c,initial:y}=U1(),[k,N]=w.useState(f?"visible":"hidden"),P=O1(),{register:x,unregister:L}=P,A=w.useRef(null);w.useEffect(()=>x(h),[x,h]),w.useEffect(()=>{if(T===ht.Hidden&&h.current){if(f&&k!=="visible"){N("visible");return}return he(k,{hidden:()=>L(h),visible:()=>x(h)})}},[k,h,x,L,f,T]);let U=wt({enter:qt(l),enterFrom:qt(u),enterTo:qt(s),entered:qt(a),leave:qt(d),leaveFrom:qt(p),leaveTo:qt(m)}),j=A1({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),He=Kn();w.useEffect(()=>{if(He&&k==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,k,He]);let Ve=y&&!c,mn=(()=>!He||Ve||A.current===f?"idle":f?"enter":"leave")(),ut=T1(0),st=ue(B=>he(B,{enter:()=>{ut.addFlag(Pe.Opening),j.current.beforeEnter()},leave:()=>{ut.addFlag(Pe.Closing),j.current.beforeLeave()},idle:()=>{}})),Kt=ue(B=>he(B,{enter:()=>{ut.removeFlag(Pe.Opening),j.current.afterEnter()},leave:()=>{ut.removeFlag(Pe.Closing),j.current.afterLeave()},idle:()=>{}})),R=Zf(()=>{N("hidden"),L(h)},P);L1({container:h,classes:U,direction:mn,onStart:wt(B=>{R.onStart(h,B,st)}),onStop:wt(B=>{R.onStop(h,B,Kt),B==="leave"&&!Oi(R)&&(N("hidden"),L(h))})}),w.useEffect(()=>{Ve&&(T===ht.Hidden?A.current=null:A.current=f)},[f,Ve,k]);let O=v,F={ref:g};return c&&f&&(O={...O,className:wu(v.className,...U.current.enter,...U.current.enterFrom)}),M.createElement(Ui.Provider,{value:R},M.createElement(fy,{value:he(k,{visible:Pe.Open,hidden:Pe.Closed})|ut.flags},je({ourProps:F,theirProps:O,defaultTag:M1,features:ep,visible:k==="visible",name:"Transition.Child"})))}function I1(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,l=w.useRef(null),u=Ye(l,t);Kn();let s=Ps();if(n===void 0&&s!==null&&(n=(s&Pe.Open)===Pe.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[a,d]=w.useState(n?"visible":"hidden"),p=Zf(()=>{d("hidden")}),[m,v]=w.useState(!0),h=w.useRef([n]);lt(()=>{m!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),v(!1))},[h,n]);let g=w.useMemo(()=>({show:n,appear:r,initial:m}),[n,r,m]);w.useEffect(()=>{if(n)d("visible");else if(!Oi(p))d("hidden");else{let f=l.current;if(!f)return;let c=f.getBoundingClientRect();c.x===0&&c.y===0&&c.width===0&&c.height===0&&d("hidden")}},[n,p]);let T={unmount:o};return M.createElement(Ui.Provider,{value:p},M.createElement(_i.Provider,{value:g},je({ourProps:{...T,as:w.Fragment,children:M.createElement(tp,{ref:u,...T,...i})},theirProps:{},defaultTag:w.Fragment,features:ep,visible:a==="visible",name:"Transition"})))}function z1(e,t){let n=w.useContext(_i)!==null,r=Ps()!==null;return M.createElement(M.Fragment,null,!n&&r?M.createElement(xu,{ref:t,...e}):M.createElement(tp,{ref:t,...e}))}let xu=Fe(I1),tp=Fe($1),B1=Fe(z1),vl=Object.assign(xu,{Child:B1,Root:xu});function _s({show:e,onClose:t,onSubmit:n,title:r,content:o,submitText:i,submitEnabled:l=!0}){return C(vl,{appear:!0,show:e,as:w.Fragment,children:I(hl,{as:"div",className:"relative z-10",onClose:t,children:[C(vl.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:C("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),C("div",{className:"fixed inset-0 overflow-y-auto",children:C("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:C(vl.Child,{as:w.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:I(hl.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:[C(hl.Title,{as:"h3",className:"text-lg font-medium leading-6 text-gray-900",children:r}),C("div",{className:"mt-3 text-sm text-gray-500",children:o}),I("div",{className:"mt-4 flex flex-row-reverse",children:[i&&C("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}),C("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 j1(e){return C("div",{children:C("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 H1(e){const t=w.useRef(null),n=w.useRef(null);return w.useEffect(()=>{t.current&&n.current&&(n.current.src=e.audioUrl,t.current.load())},[e.audioUrl]),C("div",{className:"flex relative z-10 p-4 w-full",children:C("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:C("source",{ref:n,type:e.mimeType})})})}function V1(e){const{isModelLoading:t,isTranscribing:n,onClick:r,...o}=e;return C("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?C(tc,{text:"Loading model..."}):n?C(tc,{text:"Transcribing..."}):"Transcribe Audio"})}function tc(e){return I("div",{role:"status",children:[I("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:[C("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"}),C("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 b1(){let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||("opera"in window&&typeof window.opera=="string"?window.opera:"")),e}const W1=b1(),ft={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:`https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/${W1?"jfk":"ted_60_16k"}.wav`,DEFAULT_MODEL:"distil-whisper/distil-medium.en",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"english",DEFAULT_QUANTIZED:!0,DEFAULT_MULTILINGUAL:!1};function Q1({text:e,percentage:t}){return t=t??0,C("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:I("div",{className:"top-0 h-full bg-blue-500 whitespace-nowrap px-2",style:{width:`${t}%`},children:[e," (",`${t.toFixed(2)}%`,")"]})})}function wl(e){return String(e).padStart(2,"0")}function np(e){const t=e/3600|0;e-=t*(60*60);const n=e/60|0;e-=n*60;const r=e|0;return`${t?wl(t)+":":""}${wl(n)}:${wl(r)}`}const K1={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 li{constructor(t="Unknown",n="Unknown"){qn(this,"source");qn(this,"data");this.name=t,this.type=n}updateBySource(){}setSource(t){this.source=t,this.updateBySource()}updateByData(){}setData(t){this.data=t,this.updateByData()}}class G1 extends li{constructor(t,n){super(t,n||"Uint")}updateBySource(){this.data="";for(let t=0;t<this.source.length;t++){const n=this.source[t].toString(16);this.data+=nc(n)}}updateByData(){const t=this.data.length/2;this.source=new Uint8Array(t);for(let n=0;n<t;n++){const r=this.data.substr(n*2,2);this.source[n]=parseInt(r,16)}}getValue(){return parseInt(this.data,16)}setValue(t){this.setData(nc(t.toString(16)))}}function nc(e){return e.length%2===1?"0"+e:e}class rp extends li{constructor(t,n){super(t,n||"Float")}getFloatArrayType(){return this.source&&this.source.length===4?Float32Array:Float64Array}updateBySource(){const t=this.source.reverse(),n=this.getFloatArrayType(),r=new n(t.buffer);this.data=r[0]}updateByData(){const t=this.getFloatArrayType(),n=new t([this.data]),r=new Uint8Array(n.buffer);this.source=r.reverse()}getValue(){return this.data}setValue(t){this.setData(t)}}class Us extends li{constructor(n,r){super(n,r||"Container");qn(this,"offset",0);qn(this,"data",[])}readByte(){return this.source[this.offset++]}readUint(){const n=this.readByte(),r=8-n.toString(2).length;let o=n-(1<<7-r);for(let i=0;i<r;i++)o*=256,o+=this.readByte();return o}updateBySource(){let n;for(this.data=[],this.offset=0;this.offset<this.source.length;this.offset=n){const r=this.readUint(),o=this.readUint();n=Math.min(this.offset+o,this.source.length);const i=this.source.slice(this.offset,n),l=K1[r]||{name:"Unknown",type:"Unknown"};let u=li;switch(l.type){case"Container":u=Us;break;case"Uint":u=G1;break;case"Float":u=rp;break}const s=new u(l.name,l.type);s.setSource(i),this.data.push({id:r,idHex:r.toString(16),data:s})}}writeUint(n,r=!1){for(var o=1,i=128;n>=i&&o<8;o++,i*=128);if(!r){let l=i+n;for(let u=o-1;u>=0;u--){const s=l%256;this.source[this.offset+u]=s,l=(l-s)/256}}this.offset+=o}writeSections(n=!1){this.offset=0;for(let r=0;r<this.data.length;r++){const o=this.data[r],i=o.data.source,l=i.length;this.writeUint(o.id,n),this.writeUint(l,n),n||this.source.set(i,this.offset),this.offset+=l}return this.offset}updateByData(){const n=this.writeSections(!0);this.source=new Uint8Array(n),this.writeSections()}getSectionById(n){for(let r=0;r<this.data.length;r++){const o=this.data[r];if(o.id===n)return o.data}}}class q1 extends Us{constructor(t){super("File","File"),this.setSource(t)}fixDuration(t){const n=this.getSectionById(139690087);if(!n)return!1;const r=n.getSectionById(88713574);if(!r)return!1;const o=r.getSectionById(710577);if(!o)return!1;let i=r.getSectionById(1161);if(i)if(i.getValue()<=0)i.setValue(t);else return!1;else i=new rp("Duration","Float"),i.setValue(t),r.data.push({id:1161,data:i});return o.setValue(1e6),r.updateByData(),n.updateByData(),this.updateByData(),!0}toBlob(t="video/webm"){return new Blob([this.source.buffer],{type:t})}}const X1=(e,t,n="video/webm")=>new Promise((r,o)=>{try{const i=new FileReader;i.addEventListener("loadend",()=>{try{const l=i.result,u=new q1(new Uint8Array(l));u.fixDuration(t)?r(u.toBlob(n)):r(e)}catch(l){o(l)}}),i.addEventListener("error",()=>o()),i.readAsArrayBuffer(e)}catch(i){o(i)}});function Y1(){const e=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let t=0;t<e.length;t++)if(MediaRecorder.isTypeSupported(e[t]))return e[t]}function J1(e){const[t,n]=w.useState(!1),[r,o]=w.useState(0),[i,l]=w.useState(null),u=w.useRef(null),s=w.useRef(null),a=w.useRef([]),d=w.useRef(null),p=async()=>{l(null);let h=Date.now();try{u.current||(u.current=await navigator.mediaDevices.getUserMedia({audio:!0}));const g=Y1(),T=new MediaRecorder(u.current,{mimeType:g});s.current=T,T.addEventListener("dataavailable",async f=>{if(f.data.size>0&&a.current.push(f.data),T.state==="inactive"){const c=Date.now()-h;let y=new Blob(a.current,{type:g});g==="audio/webm"&&(y=await X1(y,c,y.type)),l(y),e.onRecordingComplete(y),a.current=[]}}),T.start(),n(!0)}catch(g){console.error("Error accessing microphone:",g)}},m=()=>{s.current&&s.current.state==="recording"&&(s.current.stop(),o(0),n(!1))};return w.useEffect(()=>{if(t){const h=setInterval(()=>{o(g=>g+1)},1e3);return()=>{clearInterval(h)}}return()=>{}},[t]),I("div",{className:"flex flex-col justify-center items-center",children:[C("button",{type:"button",className:`m-2 inline-flex justify-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 transition-all duration-200 ${t?"bg-red-500 hover:bg-red-600":"bg-green-500 hover:bg-green-600"}`,onClick:()=>{t?m():p()},children:t?`Stop Recording (${np(r)})`:"Start Recording"}),i&&C("audio",{className:"w-full",ref:d,controls:!0,children:C("source",{src:URL.createObjectURL(i),type:i.type})})]})}function Z1(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const rc={en:"english",zh:"chinese",de:"german",es:"spanish/castilian",ru:"russian",ko:"korean",fr:"french",ja:"japanese",pt:"portuguese",tr:"turkish",pl:"polish",ca:"catalan/valencian",nl:"dutch/flemish",ar:"arabic",sv:"swedish",it:"italian",id:"indonesian",hi:"hindi",fi:"finnish",vi:"vietnamese",he:"hebrew",uk:"ukrainian",el:"greek",ms:"malay",cs:"czech",ro:"romanian/moldavian/moldovan",da:"danish",hu:"hungarian",ta:"tamil",no:"norwegian",th:"thai",ur:"urdu",hr:"croatian",bg:"bulgarian",lt:"lithuanian",la:"latin",mi:"maori",ml:"malayalam",cy:"welsh",sk:"slovak",te:"telugu",fa:"persian",lv:"latvian",bn:"bengali",sr:"serbian",az:"azerbaijani",sl:"slovenian",kn:"kannada",et:"estonian",mk:"macedonian",br:"breton",eu:"basque",is:"icelandic",hy:"armenian",ne:"nepali",mn:"mongolian",bs:"bosnian",kk:"kazakh",sq:"albanian",sw:"swahili",gl:"galician",mr:"marathi",pa:"punjabi/panjabi",si:"sinhala/sinhalese",km:"khmer",sn:"shona",yo:"yoruba",so:"somali",af:"afrikaans",oc:"occitan",ka:"georgian",be:"belarusian",tg:"tajik",sd:"sindhi",gu:"gujarati",am:"amharic",yi:"yiddish",lo:"lao",uz:"uzbek",fo:"faroese",ht:"haitian creole/haitian",ps:"pashto/pushto",tk:"turkmen",nn:"nynorsk",mt:"maltese",sa:"sanskrit",lb:"luxembourgish/letzeburgesch",my:"myanmar/burmese",bo:"tibetan",tl:"tagalog",mg:"malagasy",as:"assamese",tt:"tatar",haw:"hawaiian",ln:"lingala",ha:"hausa",ba:"bashkir",jw:"javanese",su:"sundanese"};function eg(e){const[t,n]=w.useState(void 0),[r,o]=w.useState(void 0),[i,l]=w.useState(void 0),u=t!==void 0,s=()=>{o(void 0),l(void 0)},a=async(m,v)=>{const h=new AudioContext({sampleRate:ft.SAMPLING_RATE}),g=URL.createObjectURL(new Blob([m],{type:"audio/*"})),T=await h.decodeAudioData(m);o({buffer:T,url:g,source:"URL",mimeType:v})},d=async m=>{s(),n(0);const v=URL.createObjectURL(m),h=new FileReader;h.onprogress=g=>{n(g.loaded/g.total||0)},h.onloadend=async()=>{const g=new AudioContext({sampleRate:ft.SAMPLING_RATE}),T=h.result,f=await g.decodeAudioData(T);n(void 0),o({buffer:f,url:v,source:"RECORDING",mimeType:m.type})},h.readAsArrayBuffer(m)},p=async m=>{if(i)try{o(void 0),n(0);const{data:v,headers:h}=await G0.get(i,{signal:m.signal,responseType:"arraybuffer",onDownloadProgress(T){n(T.progress||0)}});let g=h["content-type"];(!g||g==="audio/wave")&&(g="audio/wav"),a(v,g)}catch(v){console.log("Request failed or aborted",v)}finally{n(void 0)}};return w.useEffect(()=>{if(i){const m=new AbortController;return p(m),()=>{m.abort()}}},[i]),I(nt,{children:[I("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:[I("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[C(ig,{icon:C(cg,{}),text:"From URL",onUrlUpdate:m=>{e.transcriber.onInputChange(),l(m)}}),C(oc,{}),C(ug,{icon:C(dg,{}),text:"From file",onFileUpdate:(m,v,h)=>{e.transcriber.onInputChange(),o({buffer:m,url:v,source:"FILE",mimeType:h})}}),navigator.mediaDevices&&I(nt,{children:[C(oc,{}),C(sg,{icon:C(pg,{}),text:"Record",setAudioData:m=>{e.transcriber.onInputChange(),d(m)}})]})]}),C(rg,{progress:u?t:+!!r})]}),r&&I(nt,{children:[C(H1,{audioUrl:r.url,mimeType:r.mimeType}),I("div",{className:"relative w-full flex justify-center items-center",children:[C(V1,{onClick:()=>{e.transcriber.start(r.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy}),C(tg,{className:"absolute right-4",transcriber:e.transcriber,icon:C(fg,{})})]}),e.transcriber.progressItems.length>0&&I("div",{className:"relative z-10 p-4 w-full",children:[C("label",{children:"Loading model files... (only run once)"}),e.transcriber.progressItems.map(m=>C("div",{children:C(Q1,{text:m.file,percentage:m.progress})},m.file))]})]})]})}function tg(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{o()};return I("div",{className:e.className,children:[C(Fi,{icon:e.icon,onClick:r}),C(ng,{show:t,onSubmit:i,onClose:o,transcriber:e.transcriber})]})}function ng(e){const t=Object.values(rc).map(Z1),n={"distil-whisper/distil-medium.en":[402],"distil-whisper/distil-large-v2":[767]};return C(_s,{show:e.show,title:"Settings",content:I(nt,{children:[C("label",{children:"Select the model to use."}),C("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",defaultValue:e.transcriber.model,onChange:r=>{e.transcriber.setModel(r.target.value)},children:Object.keys(n).map(r=>C("option",{value:r,children:`${r} (${n[r][0]}MB)`},r))}),I("div",{className:"flex justify-between items-center mb-3 px-1",children:[I("div",{className:"flex",children:[C("input",{id:"multilingual",type:"checkbox",disabled:!0,checked:e.transcriber.multilingual,onChange:r=>{e.transcriber.setMultilingual(r.target.checked)}}),C("label",{htmlFor:"multilingual",className:"ms-1",children:"Multilingual (coming soon)"})]}),I("div",{className:"flex",children:[C("input",{id:"quantize",type:"checkbox",disabled:!0,checked:e.transcriber.quantized,onChange:r=>{e.transcriber.setQuantized(r.target.checked)}}),C("label",{htmlFor:"quantize",className:"ms-1",children:"Quantized"})]})]}),e.transcriber.multilingual&&I(nt,{children:[C("label",{children:"Select the source language."}),C("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(rc).map((r,o)=>C("option",{value:r,children:t[o]},r))}),C("label",{children:"Select the task to perform."}),I("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:[C("option",{value:"transcribe",children:"Transcribe"}),C("option",{value:"translate",children:"Translate (to English)"})]})]})]}),onClose:e.onClose,onSubmit:()=>{}})}function oc(){return C("div",{className:"w-[1px] bg-slate-200"})}function rg(e){return C(og,{progress:`${Math.round(e.progress*100)}%`})}function og(e){return C("div",{className:"w-full bg-gray-200 rounded-full h-1 dark:bg-gray-700",children:C("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-100",style:{width:e.progress}})})}function ig(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{e.onUrlUpdate(l),o()};return I(nt,{children:[C(Fi,{icon:e.icon,text:e.text,onClick:r}),C(lg,{show:t,onSubmit:i,onClose:o})]})}function lg(e){const[t,n]=w.useState(ft.DEFAULT_AUDIO_URL),r=i=>{n(i.target.value)},o=()=>{e.onSubmit(t)};return C(_s,{show:e.show,title:"From URL",content:I(nt,{children:["Enter the URL of the audio file you want to load.",C(j1,{onChange:r,value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:o})}function ug(e){let t=document.createElement("input");return t.type="file",t.oninput=n=>{let r=n.target.files;if(!r)return;const o=URL.createObjectURL(r[0]),i=r[0].type,l=new FileReader;l.addEventListener("load",async u=>{var p;const s=(p=u.target)==null?void 0:p.result;if(!s)return;const d=await new AudioContext({sampleRate:ft.SAMPLING_RATE}).decodeAudioData(s);e.onFileUpdate(d,o,i)}),l.readAsArrayBuffer(r[0]),t.value=""},C(nt,{children:C(Fi,{icon:e.icon,text:e.text,onClick:()=>t.click()})})}function sg(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},o=()=>{n(!1)},i=l=>{l&&(e.setAudioData(l),o())};return I(nt,{children:[C(Fi,{icon:e.icon,text:e.text,onClick:r}),C(ag,{show:t,onSubmit:i,onClose:o})]})}function ag(e){const[t,n]=w.useState(),r=l=>{n(l)},o=()=>{e.onSubmit(t),n(void 0)},i=()=>{e.onClose(),n(void 0)};return C(_s,{show:e.show,title:"From Recording",content:I(nt,{children:["Record audio using your microphone",C(J1,{onRecordingComplete:r})]}),onClose:i,submitText:"Load",submitEnabled:t!==void 0,onSubmit:o})}function Fi(e){return I("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:[C("div",{className:"w-7 h-7",children:e.icon}),e.text&&C("div",{className:"ml-2 break-text text-center text-md w-30",children:e.text})]})}function cg(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:C("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 dg(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:C("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 fg(){return I("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.25",stroke:"currentColor",children:[C("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"}),C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}function pg(){return C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:C("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 mg({transcribedData:e}){const t=w.useRef(null),n=(i,l)=>{const u=URL.createObjectURL(i),s=document.createElement("a");s.href=u,s.download=l,s.click(),URL.revokeObjectURL(u)},r=()=>{let l=((e==null?void 0:e.chunks)??[]).map(s=>s.text).join("").trim();const u=new Blob([l],{type:"text/plain"});n(u,"transcript.txt")},o=()=>{let i=JSON.stringify((e==null?void 0:e.chunks)??[],null,2);const l=/(    "timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm;i=i.replace(l,"$1[$2 $3]");const u=new Blob([i],{type:"application/json"});n(u,"transcript.json")};return w.useEffect(()=>{t.current&&Math.abs(t.current.offsetHeight+t.current.scrollTop-t.current.scrollHeight)<=64&&(t.current.scrollTop=t.current.scrollHeight)}),I("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)=>I("div",{className:"w-full flex flex-row mb-2 bg-white rounded-lg p-4 shadow-xl shadow-black/5 ring-1 ring-slate-700/10",children:[C("div",{className:"mr-5",children:np(i.timestamp[0])}),i.text]},`${l}-${i.text}`)),e&&!e.isBusy&&I("div",{className:"w-full text-right",children:[C("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"}),C("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 hg(e){const[t]=w.useState(()=>yg(e));return t}function yg(e){const t=new Worker(new URL("/assets/worker-437c363b.js",self.location),{type:"module"});return t.addEventListener("message",e),t}function gg(){const[e,t]=w.useState(void 0),[n,r]=w.useState(!1),[o,i]=w.useState(!1),[l,u]=w.useState([]),s=hg(P=>{const x=P.data;switch(x.status){case"progress":u(U=>U.map(j=>j.file===x.file?{...j,progress:x.progress}:j));break;case"update":const L=x;t({isBusy:!0,text:L.data[0],chunks:L.data[1].chunks});break;case"complete":const A=x;t({isBusy:!1,text:A.data.text,chunks:A.data.chunks}),r(!1);break;case"initiate":i(!0),u(U=>[...U,x]);break;case"ready":i(!1);break;case"error":r(!1),alert(`${x.data.message} This is most likely because you are using Safari on an M1/M2 Mac. Please try again from Chrome, Firefox, or Edge.

If this is not the case, please file a bug report.`);break;case"done":u(U=>U.filter(j=>j.file!==x.file));break}}),[a,d]=w.useState(ft.DEFAULT_MODEL),[p,m]=w.useState(ft.DEFAULT_SUBTASK),[v,h]=w.useState(ft.DEFAULT_QUANTIZED),[g,T]=w.useState(ft.DEFAULT_MULTILINGUAL),[f,c]=w.useState(ft.DEFAULT_LANGUAGE),y=w.useCallback(()=>{t(void 0)},[]),k=w.useCallback(async P=>{if(P){t(void 0),r(!0);let x;if(P.numberOfChannels===2){const L=Math.sqrt(2);let A=P.getChannelData(0),U=P.getChannelData(1);x=new Float32Array(A.length);for(let j=0;j<P.length;++j)x[j]=L*(A[j]+U[j])/2}else x=P.getChannelData(0);s.postMessage({audio:x,model:a,multilingual:g,quantized:v,subtask:g?p:null,language:g&&f!=="auto"?f:null})}},[s,a,g,v,p,f]);return w.useMemo(()=>({onInputChange:y,isBusy:n,isModelLoading:o,progressItems:l,start:k,output:e,model:a,setModel:d,multilingual:g,setMultilingual:T,quantized:v,setQuantized:h,subtask:p,setSubtask:m,language:f,setLanguage:c}),[n,o,l,k,e,a,g,v,p,f])}function vg(){const e=gg();return I("div",{className:"flex justify-center items-center min-h-screen",children:[I("div",{className:"container flex flex-col justify-center items-center",children:[C("h1",{className:"text-5xl font-extrabold tracking-tight text-slate-900 sm:text-6xl text-center",children:"Distil-Whisper Web"}),C("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"}),C(eg,{transcriber:e}),C(mg,{transcribedData:e.output})]}),I("div",{className:"absolute bottom-4",children:["Made with"," ",C("a",{className:"underline",href:"https://github.com/xenova/transformers.js",children:"🤗 Transformers.js"})]})]})}kl.createRoot(document.getElementById("root")).render(C(M.StrictMode,{children:C(vg,{})}));