Spaces:
Running
Running
function qd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const o=Object.getOwnPropertyDescriptor(r,l);o&&Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Zd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ba={exports:{}},lo={},ec={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 jr=Symbol.for("react.element"),bd=Symbol.for("react.portal"),ep=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),np=Symbol.for("react.profiler"),rp=Symbol.for("react.provider"),lp=Symbol.for("react.context"),op=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),up=Symbol.for("react.memo"),sp=Symbol.for("react.lazy"),_s=Symbol.iterator;function ap(e){return e===null||typeof e!="object"?null:(e=_s&&e[_s]||e["@@iterator"],typeof e=="function"?e:null)}var tc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nc=Object.assign,rc={};function Hn(e,t,n){this.props=e,this.context=t,this.refs=rc,this.updater=n||tc}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 lc(){}lc.prototype=Hn.prototype;function ku(e,t,n){this.props=e,this.context=t,this.refs=rc,this.updater=n||tc}var xu=ku.prototype=new lc;xu.constructor=ku;nc(xu,Hn.prototype);xu.isPureReactComponent=!0;var Ls=Array.isArray,oc=Object.prototype.hasOwnProperty,Cu={current:null},ic={key:!0,ref:!0,__self:!0,__source:!0};function uc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)oc.call(t,r)&&!ic.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:jr,type:e,key:o,ref:i,props:l,_owner:Cu.current}}function cp(e,t){return{$$typeof:jr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===jr}function fp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rs=/\/+/g;function Oo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fp(""+e.key):t.toString(36)}function pl(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case jr:case bd:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+Oo(i,0):r,Ls(l)?(n="",e!=null&&(n=e.replace(Rs,"$&/")+"/"),pl(l,t,n,"",function(a){return a})):l!=null&&(Tu(l)&&(l=cp(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(Rs,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",Ls(e))for(var u=0;u<e.length;u++){o=e[u];var s=r+Oo(o,u);i+=pl(o,t,n,s,l)}else if(s=ap(e),typeof s=="function")for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=r+Oo(o,u++),i+=pl(o,t,n,s,l);else if(o==="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 i}function Xr(e,t,n){if(e==null)return e;var r=[],l=0;return pl(e,r,"","",function(o){return t.call(n,o,l++)}),r}function dp(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},ml={transition:null},pp={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:ml,ReactCurrentOwner:Cu};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(!Tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};D.Component=Hn;D.Fragment=ep;D.Profiler=np;D.PureComponent=ku;D.StrictMode=tp;D.Suspense=ip;D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pp;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=nc({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Cu.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)oc.call(t,s)&&!ic.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:jr,type:e.type,key:l,ref:o,props:r,_owner:i}};D.createContext=function(e){return e={$$typeof:lp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rp,_context:e},e.Consumer=e};D.createElement=uc;D.createFactory=function(e){var t=uc.bind(null,e);return t.type=e,t};D.createRef=function(){return{current:null}};D.forwardRef=function(e){return{$$typeof:op,render:e}};D.isValidElement=Tu;D.lazy=function(e){return{$$typeof:sp,_payload:{_status:-1,_result:e},_init:dp}};D.memo=function(e,t){return{$$typeof:up,type:e,compare:t===void 0?null:t}};D.startTransition=function(e){var t=ml.transition;ml.transition={};try{e()}finally{ml.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";ec.exports=D;var w=ec.exports;const $=Zd(w),gi=qd({__proto__:null,default:$},[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 mp=w,hp=Symbol.for("react.element"),vp=Symbol.for("react.fragment"),gp=Object.prototype.hasOwnProperty,yp=mp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wp={key:!0,ref:!0,__self:!0,__source:!0};function sc(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)gp.call(t,r)&&!wp.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:hp,type:e,key:o,ref:i,props:l,_owner:yp.current}}lo.Fragment=vp;lo.jsx=sc;lo.jsxs=sc;ba.exports=lo;var Nu=ba.exports;const yt=Nu.Fragment,C=Nu.jsx,Y=Nu.jsxs;var yi={},ac={exports:{}},Oe={},cc={exports:{}},fc={};/** | |
* @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(T,O){var F=T.length;T.push(O);e:for(;0<F;){var j=F-1>>>1,b=T[j];if(0<l(b,O))T[j]=O,T[F]=b,F=j;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var O=T[0],F=T.pop();if(F!==O){T[0]=F;e:for(var j=0,b=T.length,Gt=b>>>1;j<Gt;){var st=2*(j+1)-1,W=T[st],ee=st+1,K=T[ee];if(0>l(W,F))ee<b&&0>l(K,W)?(T[j]=K,T[ee]=F,j=ee):(T[j]=W,T[st]=F,j=st);else if(ee<b&&0>l(K,F))T[j]=K,T[ee]=F,j=ee;else break e}}return O}function l(T,O){var F=T.sortIndex-O.sortIndex;return F!==0?F:T.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],c=1,d=null,v=3,y=!1,h=!1,g=!1,N=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(T){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=T)r(a),O.sortIndex=O.expirationTime,t(s,O);else break;O=n(a)}}function E(T){if(g=!1,m(T),!h)if(n(s)!==null)h=!0,ut(x);else{var O=n(a);O!==null&&Kt(E,O.startTime-T)}}function x(T,O){h=!1,g&&(g=!1,p(R),R=-1),y=!0;var F=v;try{for(m(O),d=n(s);d!==null&&(!(d.expirationTime>O)||T&&!ne());){var j=d.callback;if(typeof j=="function"){d.callback=null,v=d.priorityLevel;var b=j(d.expirationTime<=O);O=e.unstable_now(),typeof b=="function"?d.callback=b:d===n(s)&&r(s),m(O)}else r(s);d=n(s)}if(d!==null)var Gt=!0;else{var st=n(a);st!==null&&Kt(E,st.startTime-O),Gt=!1}return Gt}finally{d=null,v=F,y=!1}}var _=!1,P=null,R=-1,I=5,A=-1;function ne(){return!(e.unstable_now()-A<I)}function He(){if(P!==null){var T=e.unstable_now();A=T;var O=!0;try{O=P(!0,T)}finally{O?Ve():(_=!1,P=null)}}else _=!1}var Ve;if(typeof f=="function")Ve=function(){f(He)};else if(typeof MessageChannel<"u"){var pn=new MessageChannel,it=pn.port2;pn.port1.onmessage=He,Ve=function(){it.postMessage(null)}}else Ve=function(){N(He,0)};function ut(T){P=T,_||(_=!0,Ve())}function Kt(T,O){R=N(function(){T(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(T){T.callback=null},e.unstable_continueExecution=function(){h||y||(h=!0,ut(x))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(T){switch(v){case 1:case 2:case 3:var O=3;break;default:O=v}var F=v;v=O;try{return T()}finally{v=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,O){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var F=v;v=T;try{return O()}finally{v=F}},e.unstable_scheduleCallback=function(T,O,F){var j=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?j+F:j):F=j,T){case 1:var b=-1;break;case 2:b=250;break;case 5:b=1073741823;break;case 4:b=1e4;break;default:b=5e3}return b=F+b,T={id:c++,callback:O,priorityLevel:T,startTime:F,expirationTime:b,sortIndex:-1},F>j?(T.sortIndex=F,t(a,T),n(s)===null&&T===n(a)&&(g?(p(R),R=-1):g=!0,Kt(E,F-j))):(T.sortIndex=b,t(s,T),h||y||(h=!0,ut(x))),T},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(T){var O=v;return function(){var F=v;v=O;try{return T.apply(this,arguments)}finally{v=F}}}})(fc);cc.exports=fc;var Sp=cc.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 dc=w,Re=Sp;function k(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 pc=new Set,Sr={};function fn(e,t){Dn(e,t),Dn(e+"Capture",t)}function Dn(e,t){for(Sr[e]=t,e=0;e<t.length;e++)pc.add(t[e])}var wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=Object.prototype.hasOwnProperty,Ep=/^[: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]*$/,Os={},Fs={};function kp(e){return wi.call(Fs,e)?!0:wi.call(Os,e)?!1:Ep.test(e)?Fs[e]=!0:(Os[e]=!0,!1)}function xp(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 Cp(e,t,n,r){if(t===null||typeof t>"u"||xp(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,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fe[e]=new Se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pu=/[\-:]([a-z])/g;function _u(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pu,_u);fe[t]=new Se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pu,_u);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pu,_u);fe[t]=new Se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lu(e,t,n,r){var l=fe.hasOwnProperty(t)?fe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Cp(t,n,l,r)&&(n=null),r||l===null?kp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var xt=dc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jr=Symbol.for("react.element"),hn=Symbol.for("react.portal"),vn=Symbol.for("react.fragment"),Ru=Symbol.for("react.strict_mode"),Si=Symbol.for("react.profiler"),mc=Symbol.for("react.provider"),hc=Symbol.for("react.context"),Ou=Symbol.for("react.forward_ref"),Ei=Symbol.for("react.suspense"),ki=Symbol.for("react.suspense_list"),Fu=Symbol.for("react.memo"),Nt=Symbol.for("react.lazy"),vc=Symbol.for("react.offscreen"),As=Symbol.iterator;function Xn(e){return e===null||typeof e!="object"?null:(e=As&&e[As]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,Fo;function ir(e){if(Fo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fo=t&&t[1]||""}return` | |
`+Fo+e}var Ao=!1;function Do(e,t){if(!e||Ao)return"";Ao=!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 l=a.stack.split(` | |
`),o=r.stack.split(` | |
`),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var s=` | |
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Ao=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ir(e):""}function Tp(e){switch(e.tag){case 5:return ir(e.type);case 16:return ir("Lazy");case 13:return ir("Suspense");case 19:return ir("SuspenseList");case 0:case 2:case 15:return e=Do(e.type,!1),e;case 11:return e=Do(e.type.render,!1),e;case 1:return e=Do(e.type,!0),e;default:return""}}function xi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vn:return"Fragment";case hn:return"Portal";case Si:return"Profiler";case Ru:return"StrictMode";case Ei:return"Suspense";case ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hc:return(e.displayName||"Context")+".Consumer";case mc:return(e._context.displayName||"Context")+".Provider";case Ou:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fu:return t=e.displayName||null,t!==null?t:xi(e.type)||"Memo";case Nt:t=e._payload,e=e._init;try{return xi(e(t))}catch{}}return null}function Np(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 xi(t);case 8:return t===Ru?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pp(e){var t=gc(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qr(e){e._valueTracker||(e._valueTracker=Pp(e))}function yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rl(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 Ci(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ds(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wc(e,t){t=t.checked,t!=null&&Lu(e,"checked",t,!1)}function Ti(e,t){wc(e,t);var n=Bt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ni(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ni(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $s(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 Ni(e,t,n){(t!=="number"||Rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ur=Array.isArray;function Pn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Pi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ms(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(ur(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Bt(n)}}function Sc(e,t){var n=Bt(t.value),r=Bt(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 zs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ec(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 _i(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ec(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zr,kc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}: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 xc(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 Cc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=xc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Lp=J({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 Li(e,t){if(t){if(Lp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ri(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 Oi=null;function Au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fi=null,_n=null,Ln=null;function js(e){if(e=Br(e)){if(typeof Fi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=ao(t),Fi(e.stateNode,e.type,t))}}function Tc(e){_n?Ln?Ln.push(e):Ln=[e]:_n=e}function Nc(){if(_n){var e=_n,t=Ln;if(Ln=_n=null,js(e),t)for(e=0;e<t.length;e++)js(t[e])}}function Pc(e,t){return e(t)}function _c(){}var $o=!1;function Lc(e,t,n){if($o)return e(t,n);$o=!0;try{return Pc(e,t,n)}finally{$o=!1,(_n!==null||Ln!==null)&&(_c(),Nc())}}function kr(e,t){var n=e.stateNode;if(n===null)return null;var r=ao(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(k(231,t,typeof n));return n}var Ai=!1;if(wt)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){Ai=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{Ai=!1}function Rp(e,t,n,r,l,o,i,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(c){this.onError(c)}}var dr=!1,Ol=null,Fl=!1,Di=null,Op={onError:function(e){dr=!0,Ol=e}};function Fp(e,t,n,r,l,o,i,u,s){dr=!1,Ol=null,Rp.apply(Op,arguments)}function Ap(e,t,n,r,l,o,i,u,s){if(Fp.apply(this,arguments),dr){if(dr){var a=Ol;dr=!1,Ol=null}else throw Error(k(198));Fl||(Fl=!0,Di=a)}}function dn(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 Rc(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 Us(e){if(dn(e)!==e)throw Error(k(188))}function Dp(e){var t=e.alternate;if(!t){if(t=dn(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Us(l),e;if(o===r)return Us(l),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Oc(e){return e=Dp(e),e!==null?Fc(e):null}function Fc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fc(e);if(t!==null)return t;e=e.sibling}return null}var Ac=Re.unstable_scheduleCallback,Is=Re.unstable_cancelCallback,$p=Re.unstable_shouldYield,Mp=Re.unstable_requestPaint,Z=Re.unstable_now,zp=Re.unstable_getCurrentPriorityLevel,Du=Re.unstable_ImmediatePriority,Dc=Re.unstable_UserBlockingPriority,Al=Re.unstable_NormalPriority,jp=Re.unstable_LowPriority,$c=Re.unstable_IdlePriority,oo=null,nt=null;function Up(e){if(nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(oo,e,void 0,(e.current.flags&128)===128)}catch{}}var Ye=Math.clz32?Math.clz32:Hp,Ip=Math.log,Bp=Math.LN2;function Hp(e){return e>>>=0,e===0?32:31-(Ip(e)/Bp|0)|0}var br=64,el=4194304;function sr(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 Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=sr(u):(o&=i,o!==0&&(r=sr(o)))}else i=n&~l,i!==0?r=sr(i):o!==0&&(r=sr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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-Ye(t),l=1<<n,r|=e[n],t&=~l;return r}function Vp(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 Wp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Ye(o),u=1<<i,s=l[i];s===-1?(!(u&n)||u&r)&&(l[i]=Vp(u,t)):s<=t&&(e.expiredLanes|=u),o&=~u}}function $i(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mc(){var e=br;return br<<=1,!(br&4194240)&&(br=64),e}function Mo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ye(t),e[t]=n}function Qp(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 l=31-Ye(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function $u(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var U=0;function zc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var jc,Mu,Uc,Ic,Bc,Mi=!1,tl=[],At=null,Dt=null,$t=null,xr=new Map,Cr=new Map,_t=[],Kp="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 Bs(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cr.delete(t.pointerId)}}function qn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Br(t),t!==null&&Mu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Gp(e,t,n,r,l){switch(t){case"focusin":return At=qn(At,e,t,n,r,l),!0;case"dragenter":return Dt=qn(Dt,e,t,n,r,l),!0;case"mouseover":return $t=qn($t,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return xr.set(o,qn(xr.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Cr.set(o,qn(Cr.get(o)||null,e,t,n,r,l)),!0}return!1}function Hc(e){var t=Zt(e.target);if(t!==null){var n=dn(t);if(n!==null){if(t=n.tag,t===13){if(t=Rc(n),t!==null){e.blockedOn=t,Bc(e.priority,function(){Uc(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 hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Oi=r,n.target.dispatchEvent(r),Oi=null}else return t=Br(n),t!==null&&Mu(t),e.blockedOn=n,!1;t.shift()}return!0}function Hs(e,t,n){hl(e)&&n.delete(t)}function Yp(){Mi=!1,At!==null&&hl(At)&&(At=null),Dt!==null&&hl(Dt)&&(Dt=null),$t!==null&&hl($t)&&($t=null),xr.forEach(Hs),Cr.forEach(Hs)}function Zn(e,t){e.blockedOn===t&&(e.blockedOn=null,Mi||(Mi=!0,Re.unstable_scheduleCallback(Re.unstable_NormalPriority,Yp)))}function Tr(e){function t(l){return Zn(l,e)}if(0<tl.length){Zn(tl[0],e);for(var n=1;n<tl.length;n++){var r=tl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(At!==null&&Zn(At,e),Dt!==null&&Zn(Dt,e),$t!==null&&Zn($t,e),xr.forEach(t),Cr.forEach(t),n=0;n<_t.length;n++)r=_t[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_t.length&&(n=_t[0],n.blockedOn===null);)Hc(n),n.blockedOn===null&&_t.shift()}var Rn=xt.ReactCurrentBatchConfig,$l=!0;function Xp(e,t,n,r){var l=U,o=Rn.transition;Rn.transition=null;try{U=1,zu(e,t,n,r)}finally{U=l,Rn.transition=o}}function Jp(e,t,n,r){var l=U,o=Rn.transition;Rn.transition=null;try{U=4,zu(e,t,n,r)}finally{U=l,Rn.transition=o}}function zu(e,t,n,r){if($l){var l=zi(e,t,n,r);if(l===null)Ko(e,t,r,Ml,n),Bs(e,r);else if(Gp(l,e,t,n,r))r.stopPropagation();else if(Bs(e,r),t&4&&-1<Kp.indexOf(e)){for(;l!==null;){var o=Br(l);if(o!==null&&jc(o),o=zi(e,t,n,r),o===null&&Ko(e,t,r,Ml,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Ko(e,t,r,null,n)}}var Ml=null;function zi(e,t,n,r){if(Ml=null,e=Au(r),e=Zt(e),e!==null)if(t=dn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Rc(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 Ml=e,null}function Vc(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(zp()){case Du:return 1;case Dc:return 4;case Al:case jp:return 16;case $c:return 536870912;default:return 16}default:return 16}}var Ot=null,ju=null,vl=null;function Wc(){if(vl)return vl;var e,t=ju,n=t.length,r,l="value"in Ot?Ot.value:Ot.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return vl=l.slice(e,1<r?1-r:void 0)}function gl(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 nl(){return!0}function Vs(){return!1}function Fe(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?nl:Vs,this.isPropagationStopped=Vs,this}return J(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=nl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nl)},persist:function(){},isPersistent:nl}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uu=Fe(Vn),Ir=J({},Vn,{view:0,detail:0}),qp=Fe(Ir),zo,jo,bn,io=J({},Ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,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!==bn&&(bn&&e.type==="mousemove"?(zo=e.screenX-bn.screenX,jo=e.screenY-bn.screenY):jo=zo=0,bn=e),zo)},movementY:function(e){return"movementY"in e?e.movementY:jo}}),Ws=Fe(io),Zp=J({},io,{dataTransfer:0}),bp=Fe(Zp),em=J({},Ir,{relatedTarget:0}),Uo=Fe(em),tm=J({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),nm=Fe(tm),rm=J({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lm=Fe(rm),om=J({},Vn,{data:0}),Qs=Fe(om),im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},um={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"},sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function am(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sm[e])?!!t[e]:!1}function Iu(){return am}var cm=J({},Ir,{key:function(e){if(e.key){var t=im[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?um[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(e){return e.type==="keypress"?gl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=Fe(cm),dm=J({},io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ks=Fe(dm),pm=J({},Ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),mm=Fe(pm),hm=J({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),vm=Fe(hm),gm=J({},io,{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}),ym=Fe(gm),wm=[9,13,27,32],Bu=wt&&"CompositionEvent"in window,pr=null;wt&&"documentMode"in document&&(pr=document.documentMode);var Sm=wt&&"TextEvent"in window&&!pr,Qc=wt&&(!Bu||pr&&8<pr&&11>=pr),Gs=String.fromCharCode(32),Ys=!1;function Kc(e,t){switch(e){case"keyup":return wm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function Em(e,t){switch(e){case"compositionend":return Gc(t);case"keypress":return t.which!==32?null:(Ys=!0,Gs);case"textInput":return e=t.data,e===Gs&&Ys?null:e;default:return null}}function km(e,t){if(gn)return e==="compositionend"||!Bu&&Kc(e,t)?(e=Wc(),vl=ju=Ot=null,gn=!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 Qc&&t.locale!=="ko"?null:t.data;default:return null}}var xm={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 Xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xm[e.type]:t==="textarea"}function Yc(e,t,n,r){Tc(r),t=zl(t,"onChange"),0<t.length&&(n=new Uu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var mr=null,Nr=null;function Cm(e){of(e,0)}function uo(e){var t=Sn(e);if(yc(t))return e}function Tm(e,t){if(e==="change")return t}var Xc=!1;if(wt){var Io;if(wt){var Bo="oninput"in document;if(!Bo){var Js=document.createElement("div");Js.setAttribute("oninput","return;"),Bo=typeof Js.oninput=="function"}Io=Bo}else Io=!1;Xc=Io&&(!document.documentMode||9<document.documentMode)}function qs(){mr&&(mr.detachEvent("onpropertychange",Jc),Nr=mr=null)}function Jc(e){if(e.propertyName==="value"&&uo(Nr)){var t=[];Yc(t,Nr,e,Au(e)),Lc(Cm,t)}}function Nm(e,t,n){e==="focusin"?(qs(),mr=t,Nr=n,mr.attachEvent("onpropertychange",Jc)):e==="focusout"&&qs()}function Pm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uo(Nr)}function _m(e,t){if(e==="click")return uo(t)}function Lm(e,t){if(e==="input"||e==="change")return uo(t)}function Rm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Je=typeof Object.is=="function"?Object.is:Rm;function Pr(e,t){if(Je(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 l=n[r];if(!wi.call(t,l)||!Je(e[l],t[l]))return!1}return!0}function Zs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bs(e,t){var n=Zs(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=Zs(n)}}function qc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zc(){for(var e=window,t=Rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rl(e.document)}return t}function Hu(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 Om(e){var t=Zc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qc(n.ownerDocument.documentElement,n)){if(r!==null&&Hu(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=bs(n,o);var i=bs(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 Fm=wt&&"documentMode"in document&&11>=document.documentMode,yn=null,ji=null,hr=null,Ui=!1;function ea(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ui||yn==null||yn!==Rl(r)||(r=yn,"selectionStart"in r&&Hu(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}),hr&&Pr(hr,r)||(hr=r,r=zl(ji,"onSelect"),0<r.length&&(t=new Uu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yn)))}function rl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wn={animationend:rl("Animation","AnimationEnd"),animationiteration:rl("Animation","AnimationIteration"),animationstart:rl("Animation","AnimationStart"),transitionend:rl("Transition","TransitionEnd")},Ho={},bc={};wt&&(bc=document.createElement("div").style,"AnimationEvent"in window||(delete wn.animationend.animation,delete wn.animationiteration.animation,delete wn.animationstart.animation),"TransitionEvent"in window||delete wn.transitionend.transition);function so(e){if(Ho[e])return Ho[e];if(!wn[e])return e;var t=wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bc)return Ho[e]=t[n];return e}var ef=so("animationend"),tf=so("animationiteration"),nf=so("animationstart"),rf=so("transitionend"),lf=new Map,ta="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 Vt(e,t){lf.set(e,t),fn(t,[e])}for(var Vo=0;Vo<ta.length;Vo++){var Wo=ta[Vo],Am=Wo.toLowerCase(),Dm=Wo[0].toUpperCase()+Wo.slice(1);Vt(Am,"on"+Dm)}Vt(ef,"onAnimationEnd");Vt(tf,"onAnimationIteration");Vt(nf,"onAnimationStart");Vt("dblclick","onDoubleClick");Vt("focusin","onFocus");Vt("focusout","onBlur");Vt(rf,"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 ar="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(" "),$m=new Set("cancel close invalid load scroll toggle".split(" ").concat(ar));function na(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ap(r,t,void 0,e),e.currentTarget=null}function of(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==o&&l.isPropagationStopped())break e;na(l,u,a),o=s}else for(i=0;i<r.length;i++){if(u=r[i],s=u.instance,a=u.currentTarget,u=u.listener,s!==o&&l.isPropagationStopped())break e;na(l,u,a),o=s}}}if(Fl)throw e=Di,Fl=!1,Di=null,e}function H(e,t){var n=t[Wi];n===void 0&&(n=t[Wi]=new Set);var r=e+"__bubble";n.has(r)||(uf(t,e,2,!1),n.add(r))}function Qo(e,t,n){var r=0;t&&(r|=4),uf(n,e,r,t)}var ll="_reactListening"+Math.random().toString(36).slice(2);function _r(e){if(!e[ll]){e[ll]=!0,pc.forEach(function(n){n!=="selectionchange"&&($m.has(n)||Qo(n,!1,e),Qo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ll]||(t[ll]=!0,Qo("selectionchange",!1,t))}}function uf(e,t,n,r){switch(Vc(t)){case 1:var l=Xp;break;case 4:l=Jp;break;default:l=zu}n=l.bind(null,t,n,e),l=void 0,!Ai||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ko(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;i=i.return}for(;u!==null;){if(i=Zt(u),i===null)return;if(s=i.tag,s===5||s===6){r=o=i;continue e}u=u.parentNode}}r=r.return}Lc(function(){var a=o,c=Au(n),d=[];e:{var v=lf.get(e);if(v!==void 0){var y=Uu,h=e;switch(e){case"keypress":if(gl(n)===0)break e;case"keydown":case"keyup":y=fm;break;case"focusin":h="focus",y=Uo;break;case"focusout":h="blur",y=Uo;break;case"beforeblur":case"afterblur":y=Uo;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":y=Ws;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=bp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=mm;break;case ef:case tf:case nf:y=nm;break;case rf:y=vm;break;case"scroll":y=qp;break;case"wheel":y=ym;break;case"copy":case"cut":case"paste":y=lm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Ks}var g=(t&4)!==0,N=!g&&e==="scroll",p=g?v!==null?v+"Capture":null:v;g=[];for(var f=a,m;f!==null;){m=f;var E=m.stateNode;if(m.tag===5&&E!==null&&(m=E,p!==null&&(E=kr(f,p),E!=null&&g.push(Lr(f,E,m)))),N)break;f=f.return}0<g.length&&(v=new y(v,h,null,n,c),d.push({event:v,listeners:g}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&n!==Oi&&(h=n.relatedTarget||n.fromElement)&&(Zt(h)||h[St]))break e;if((y||v)&&(v=c.window===c?c:(v=c.ownerDocument)?v.defaultView||v.parentWindow:window,y?(h=n.relatedTarget||n.toElement,y=a,h=h?Zt(h):null,h!==null&&(N=dn(h),h!==N||h.tag!==5&&h.tag!==6)&&(h=null)):(y=null,h=a),y!==h)){if(g=Ws,E="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(g=Ks,E="onPointerLeave",p="onPointerEnter",f="pointer"),N=y==null?v:Sn(y),m=h==null?v:Sn(h),v=new g(E,f+"leave",y,n,c),v.target=N,v.relatedTarget=m,E=null,Zt(c)===a&&(g=new g(p,f+"enter",h,n,c),g.target=m,g.relatedTarget=N,E=g),N=E,y&&h)t:{for(g=y,p=h,f=0,m=g;m;m=mn(m))f++;for(m=0,E=p;E;E=mn(E))m++;for(;0<f-m;)g=mn(g),f--;for(;0<m-f;)p=mn(p),m--;for(;f--;){if(g===p||p!==null&&g===p.alternate)break t;g=mn(g),p=mn(p)}g=null}else g=null;y!==null&&ra(d,v,y,g,!1),h!==null&&N!==null&&ra(d,N,h,g,!0)}}e:{if(v=a?Sn(a):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var x=Tm;else if(Xs(v))if(Xc)x=Lm;else{x=Pm;var _=Nm}else(y=v.nodeName)&&y.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(x=_m);if(x&&(x=x(e,a))){Yc(d,x,n,c);break e}_&&_(e,v,a),e==="focusout"&&(_=v._wrapperState)&&_.controlled&&v.type==="number"&&Ni(v,"number",v.value)}switch(_=a?Sn(a):window,e){case"focusin":(Xs(_)||_.contentEditable==="true")&&(yn=_,ji=a,hr=null);break;case"focusout":hr=ji=yn=null;break;case"mousedown":Ui=!0;break;case"contextmenu":case"mouseup":case"dragend":Ui=!1,ea(d,n,c);break;case"selectionchange":if(Fm)break;case"keydown":case"keyup":ea(d,n,c)}var P;if(Bu)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else gn?Kc(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Qc&&n.locale!=="ko"&&(gn||R!=="onCompositionStart"?R==="onCompositionEnd"&&gn&&(P=Wc()):(Ot=c,ju="value"in Ot?Ot.value:Ot.textContent,gn=!0)),_=zl(a,R),0<_.length&&(R=new Qs(R,e,null,n,c),d.push({event:R,listeners:_}),P?R.data=P:(P=Gc(n),P!==null&&(R.data=P)))),(P=Sm?Em(e,n):km(e,n))&&(a=zl(a,"onBeforeInput"),0<a.length&&(c=new Qs("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:a}),c.data=P))}of(d,t)})}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=kr(e,n),o!=null&&r.unshift(Lr(e,o,l)),o=kr(e,t),o!=null&&r.push(Lr(e,o,l))),e=e.return}return r}function mn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ra(e,t,n,r,l){for(var o=t._reactName,i=[];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,l?(s=kr(n,o),s!=null&&i.unshift(Lr(n,s,u))):l||(s=kr(n,o),s!=null&&i.push(Lr(n,s,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Mm=/\r\n?/g,zm=/\u0000|\uFFFD/g;function la(e){return(typeof e=="string"?e:""+e).replace(Mm,` | |
`).replace(zm,"")}function ol(e,t,n){if(t=la(t),la(e)!==t&&n)throw Error(k(425))}function jl(){}var Ii=null,Bi=null;function Hi(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 Vi=typeof setTimeout=="function"?setTimeout:void 0,jm=typeof clearTimeout=="function"?clearTimeout:void 0,oa=typeof Promise=="function"?Promise:void 0,Um=typeof queueMicrotask=="function"?queueMicrotask:typeof oa<"u"?function(e){return oa.resolve(null).then(e).catch(Im)}:Vi;function Im(e){setTimeout(function(){throw e})}function Go(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Tr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Tr(t)}function Mt(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 ia(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 Wn=Math.random().toString(36).slice(2),et="__reactFiber$"+Wn,Rr="__reactProps$"+Wn,St="__reactContainer$"+Wn,Wi="__reactEvents$"+Wn,Bm="__reactListeners$"+Wn,Hm="__reactHandles$"+Wn;function Zt(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[St]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ia(e);e!==null;){if(n=e[et])return n;e=ia(e)}return t}e=n,n=e.parentNode}return null}function Br(e){return e=e[et]||e[St],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function ao(e){return e[Rr]||null}var Qi=[],En=-1;function Wt(e){return{current:e}}function V(e){0>En||(e.current=Qi[En],Qi[En]=null,En--)}function B(e,t){En++,Qi[En]=e.current,e.current=t}var Ht={},ve=Wt(Ht),xe=Wt(!1),on=Ht;function $n(e,t){var n=e.type.contextTypes;if(!n)return Ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ce(e){return e=e.childContextTypes,e!=null}function Ul(){V(xe),V(ve)}function ua(e,t,n){if(ve.current!==Ht)throw Error(k(168));B(ve,t),B(xe,n)}function sf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Np(e)||"Unknown",l));return J({},n,r)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ht,on=ve.current,B(ve,e),B(xe,xe.current),!0}function sa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=sf(e,t,on),r.__reactInternalMemoizedMergedChildContext=e,V(xe),V(ve),B(ve,e)):V(xe),B(xe,n)}var ct=null,co=!1,Yo=!1;function af(e){ct===null?ct=[e]:ct.push(e)}function Vm(e){co=!0,af(e)}function Qt(){if(!Yo&&ct!==null){Yo=!0;var e=0,t=U;try{var n=ct;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ct=null,co=!1}catch(l){throw ct!==null&&(ct=ct.slice(e+1)),Ac(Du,Qt),l}finally{U=t,Yo=!1}}return null}var kn=[],xn=0,Bl=null,Hl=0,De=[],$e=0,un=null,ft=1,dt="";function Xt(e,t){kn[xn++]=Hl,kn[xn++]=Bl,Bl=e,Hl=t}function cf(e,t,n){De[$e++]=ft,De[$e++]=dt,De[$e++]=un,un=e;var r=ft;e=dt;var l=32-Ye(r)-1;r&=~(1<<l),n+=1;var o=32-Ye(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,ft=1<<32-Ye(t)+l|n<<l|r,dt=o+e}else ft=1<<o|n<<l|r,dt=e}function Vu(e){e.return!==null&&(Xt(e,1),cf(e,1,0))}function Wu(e){for(;e===Bl;)Bl=kn[--xn],kn[xn]=null,Hl=kn[--xn],kn[xn]=null;for(;e===un;)un=De[--$e],De[$e]=null,dt=De[--$e],De[$e]=null,ft=De[--$e],De[$e]=null}var Le=null,_e=null,Q=!1,Ge=null;function ff(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 aa(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,_e=Mt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Le=e,_e=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=un!==null?{id:ft,overflow:dt}: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,_e=null,!0):!1;default:return!1}}function Ki(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gi(e){if(Q){var t=_e;if(t){var n=t;if(!aa(e,t)){if(Ki(e))throw Error(k(418));t=Mt(n.nextSibling);var r=Le;t&&aa(e,t)?ff(r,n):(e.flags=e.flags&-4097|2,Q=!1,Le=e)}}else{if(Ki(e))throw Error(k(418));e.flags=e.flags&-4097|2,Q=!1,Le=e}}}function ca(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Le=e}function il(e){if(e!==Le)return!1;if(!Q)return ca(e),Q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hi(e.type,e.memoizedProps)),t&&(t=_e)){if(Ki(e))throw df(),Error(k(418));for(;t;)ff(e,t),t=Mt(t.nextSibling)}if(ca(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_e=Mt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_e=null}}else _e=Le?Mt(e.stateNode.nextSibling):null;return!0}function df(){for(var e=_e;e;)e=Mt(e.nextSibling)}function Mn(){_e=Le=null,Q=!1}function Qu(e){Ge===null?Ge=[e]:Ge.push(e)}var Wm=xt.ReactCurrentBatchConfig;function Qe(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Vl=Wt(null),Wl=null,Cn=null,Ku=null;function Gu(){Ku=Cn=Wl=null}function Yu(e){var t=Vl.current;V(Vl),e._currentValue=t}function Yi(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){Wl=e,Ku=Cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Ku!==e)if(e={context:e,memoizedValue:t,next:null},Cn===null){if(Wl===null)throw Error(k(308));Cn=e,Wl.dependencies={lanes:0,firstContext:e}}else Cn=Cn.next=e;return t}var bt=null;function Xu(e){bt===null?bt=[e]:bt.push(e)}function pf(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Xu(t)):(n.next=l.next,l.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 Pt=!1;function Ju(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Et(e,n)}return l=r.interleaved,l===null?(t.next=t,Xu(r)):(t.next=l.next,l.next=t),r.interleaved=t,Et(e,n)}function yl(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,$u(e,n)}}function fa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 Ql(e,t,n,r){var l=e.updateQueue;Pt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==i&&(u===null?c.firstBaseUpdate=a:u.next=a,c.lastBaseUpdate=s))}if(o!==null){var d=l.baseState;i=0,c=a=s=null,u=o;do{var v=u.lane,y=u.eventTime;if((r&v)===v){c!==null&&(c=c.next={eventTime:y,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,g=u;switch(v=t,y=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){d=h.call(y,d,v);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,v=typeof h=="function"?h.call(y,d,v):h,v==null)break e;d=J({},d,v);break e;case 2:Pt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,v=l.effects,v===null?l.effects=[u]:v.push(u))}else y={eventTime:y,lane:v,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(a=c=y,s=d):c=c.next=y,i|=v;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;v=u,u=v.next,v.next=null,l.lastBaseUpdate=v,l.shared.pending=null}}while(1);if(c===null&&(s=d),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=c,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);an|=i,e.lanes=i,e.memoizedState=d}}function da(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(k(191,l));l.call(r)}}}var hf=new dc.Component().refs;function Xi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fo={isMounted:function(e){return(e=e._reactInternals)?dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ye(),l=Ut(e),o=mt(r,l);o.payload=t,n!=null&&(o.callback=n),t=zt(e,o,l),t!==null&&(Xe(t,e,l,r),yl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ye(),l=Ut(e),o=mt(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=zt(e,o,l),t!==null&&(Xe(t,e,l,r),yl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ye(),r=Ut(e),l=mt(n,r);l.tag=2,t!=null&&(l.callback=t),t=zt(e,l,r),t!==null&&(Xe(t,e,r,n),yl(t,e,r))}};function pa(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(l,o):!0}function vf(e,t,n){var r=!1,l=Ht,o=t.contextType;return typeof o=="object"&&o!==null?o=Ue(o):(l=Ce(t)?on:ve.current,r=t.contextTypes,o=(r=r!=null)?$n(e,l):Ht),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function ma(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&&fo.enqueueReplaceState(t,t.state,null)}function Ji(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=hf,Ju(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Ue(o):(o=Ce(t)?on:ve.current,l.context=$n(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Xi(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&fo.enqueueReplaceState(l,l.state,null),Ql(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function er(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var u=l.refs;u===hf&&(u=l.refs={}),i===null?delete u[o]:u[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function ul(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ha(e){var t=e._init;return t(e._payload)}function gf(e){function t(p,f){if(e){var m=p.deletions;m===null?(p.deletions=[f],p.flags|=16):m.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function l(p,f){return p=It(p,f),p.index=0,p.sibling=null,p}function o(p,f,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<f?(p.flags|=2,f):m):(p.flags|=2,f)):(p.flags|=1048576,f)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function u(p,f,m,E){return f===null||f.tag!==6?(f=ti(m,p.mode,E),f.return=p,f):(f=l(f,m),f.return=p,f)}function s(p,f,m,E){var x=m.type;return x===vn?c(p,f,m.props.children,E,m.key):f!==null&&(f.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nt&&ha(x)===f.type)?(E=l(f,m.props),E.ref=er(p,f,m),E.return=p,E):(E=Cl(m.type,m.key,m.props,null,p.mode,E),E.ref=er(p,f,m),E.return=p,E)}function a(p,f,m,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=ni(m,p.mode,E),f.return=p,f):(f=l(f,m.children||[]),f.return=p,f)}function c(p,f,m,E,x){return f===null||f.tag!==7?(f=rn(m,p.mode,E,x),f.return=p,f):(f=l(f,m),f.return=p,f)}function d(p,f,m){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ti(""+f,p.mode,m),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Jr:return m=Cl(f.type,f.key,f.props,null,p.mode,m),m.ref=er(p,null,f),m.return=p,m;case hn:return f=ni(f,p.mode,m),f.return=p,f;case Nt:var E=f._init;return d(p,E(f._payload),m)}if(ur(f)||Xn(f))return f=rn(f,p.mode,m,null),f.return=p,f;ul(p,f)}return null}function v(p,f,m,E){var x=f!==null?f.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return x!==null?null:u(p,f,""+m,E);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Jr:return m.key===x?s(p,f,m,E):null;case hn:return m.key===x?a(p,f,m,E):null;case Nt:return x=m._init,v(p,f,x(m._payload),E)}if(ur(m)||Xn(m))return x!==null?null:c(p,f,m,E,null);ul(p,m)}return null}function y(p,f,m,E,x){if(typeof E=="string"&&E!==""||typeof E=="number")return p=p.get(m)||null,u(f,p,""+E,x);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Jr:return p=p.get(E.key===null?m:E.key)||null,s(f,p,E,x);case hn:return p=p.get(E.key===null?m:E.key)||null,a(f,p,E,x);case Nt:var _=E._init;return y(p,f,m,_(E._payload),x)}if(ur(E)||Xn(E))return p=p.get(m)||null,c(f,p,E,x,null);ul(f,E)}return null}function h(p,f,m,E){for(var x=null,_=null,P=f,R=f=0,I=null;P!==null&&R<m.length;R++){P.index>R?(I=P,P=null):I=P.sibling;var A=v(p,P,m[R],E);if(A===null){P===null&&(P=I);break}e&&P&&A.alternate===null&&t(p,P),f=o(A,f,R),_===null?x=A:_.sibling=A,_=A,P=I}if(R===m.length)return n(p,P),Q&&Xt(p,R),x;if(P===null){for(;R<m.length;R++)P=d(p,m[R],E),P!==null&&(f=o(P,f,R),_===null?x=P:_.sibling=P,_=P);return Q&&Xt(p,R),x}for(P=r(p,P);R<m.length;R++)I=y(P,p,R,m[R],E),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?R:I.key),f=o(I,f,R),_===null?x=I:_.sibling=I,_=I);return e&&P.forEach(function(ne){return t(p,ne)}),Q&&Xt(p,R),x}function g(p,f,m,E){var x=Xn(m);if(typeof x!="function")throw Error(k(150));if(m=x.call(m),m==null)throw Error(k(151));for(var _=x=null,P=f,R=f=0,I=null,A=m.next();P!==null&&!A.done;R++,A=m.next()){P.index>R?(I=P,P=null):I=P.sibling;var ne=v(p,P,A.value,E);if(ne===null){P===null&&(P=I);break}e&&P&&ne.alternate===null&&t(p,P),f=o(ne,f,R),_===null?x=ne:_.sibling=ne,_=ne,P=I}if(A.done)return n(p,P),Q&&Xt(p,R),x;if(P===null){for(;!A.done;R++,A=m.next())A=d(p,A.value,E),A!==null&&(f=o(A,f,R),_===null?x=A:_.sibling=A,_=A);return Q&&Xt(p,R),x}for(P=r(p,P);!A.done;R++,A=m.next())A=y(P,p,R,A.value,E),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?R:A.key),f=o(A,f,R),_===null?x=A:_.sibling=A,_=A);return e&&P.forEach(function(He){return t(p,He)}),Q&&Xt(p,R),x}function N(p,f,m,E){if(typeof m=="object"&&m!==null&&m.type===vn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Jr:e:{for(var x=m.key,_=f;_!==null;){if(_.key===x){if(x=m.type,x===vn){if(_.tag===7){n(p,_.sibling),f=l(_,m.props.children),f.return=p,p=f;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nt&&ha(x)===_.type){n(p,_.sibling),f=l(_,m.props),f.ref=er(p,_,m),f.return=p,p=f;break e}n(p,_);break}else t(p,_);_=_.sibling}m.type===vn?(f=rn(m.props.children,p.mode,E,m.key),f.return=p,p=f):(E=Cl(m.type,m.key,m.props,null,p.mode,E),E.ref=er(p,f,m),E.return=p,p=E)}return i(p);case hn:e:{for(_=m.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=l(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=ni(m,p.mode,E),f.return=p,p=f}return i(p);case Nt:return _=m._init,N(p,f,_(m._payload),E)}if(ur(m))return h(p,f,m,E);if(Xn(m))return g(p,f,m,E);ul(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=l(f,m),f.return=p,p=f):(n(p,f),f=ti(m,p.mode,E),f.return=p,p=f),i(p)):n(p,f)}return N}var zn=gf(!0),yf=gf(!1),Hr={},rt=Wt(Hr),Or=Wt(Hr),Fr=Wt(Hr);function en(e){if(e===Hr)throw Error(k(174));return e}function qu(e,t){switch(B(Fr,t),B(Or,e),B(rt,Hr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_i(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_i(t,e)}V(rt),B(rt,t)}function jn(){V(rt),V(Or),V(Fr)}function wf(e){en(Fr.current);var t=en(rt.current),n=_i(t,e.type);t!==n&&(B(Or,e),B(rt,n))}function Zu(e){Or.current===e&&(V(rt),V(Or))}var G=Wt(0);function Kl(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 Xo=[];function bu(){for(var e=0;e<Xo.length;e++)Xo[e]._workInProgressVersionPrimary=null;Xo.length=0}var wl=xt.ReactCurrentDispatcher,Jo=xt.ReactCurrentBatchConfig,sn=0,X=null,re=null,ie=null,Gl=!1,vr=!1,Ar=0,Qm=0;function de(){throw Error(k(321))}function es(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Je(e[n],t[n]))return!1;return!0}function ts(e,t,n,r,l,o){if(sn=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wl.current=e===null||e.memoizedState===null?Xm:Jm,e=n(r,l),vr){o=0;do{if(vr=!1,Ar=0,25<=o)throw Error(k(301));o+=1,ie=re=null,t.updateQueue=null,wl.current=qm,e=n(r,l)}while(vr)}if(wl.current=Yl,t=re!==null&&re.next!==null,sn=0,ie=re=X=null,Gl=!1,t)throw Error(k(300));return e}function ns(){var e=Ar!==0;return Ar=0,e}function be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?X.memoizedState=ie=e:ie=ie.next=e,ie}function Ie(){if(re===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var t=ie===null?X.memoizedState:ie.next;if(t!==null)ie=t,re=e;else{if(e===null)throw Error(k(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},ie===null?X.memoizedState=ie=e:ie=ie.next=e}return ie}function Dr(e,t){return typeof t=="function"?t(e):t}function qo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=re,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=i=null,s=null,a=o;do{var c=a.lane;if((sn&c)===c)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 d={lane:c,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=d,i=r):s=s.next=d,X.lanes|=c,an|=c}a=a.next}while(a!==null&&a!==o);s===null?i=r:s.next=u,Je(r,t.memoizedState)||(ke=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,X.lanes|=o,an|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Je(o,t.memoizedState)||(ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Sf(){}function Ef(e,t){var n=X,r=Ie(),l=t(),o=!Je(r.memoizedState,l);if(o&&(r.memoizedState=l,ke=!0),r=r.queue,rs(Cf.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ie!==null&&ie.memoizedState.tag&1){if(n.flags|=2048,$r(9,xf.bind(null,n,r,l,t),void 0,null),se===null)throw Error(k(349));sn&30||kf(n,t,l)}return l}function kf(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 xf(e,t,n,r){t.value=n,t.getSnapshot=r,Tf(t)&&Nf(e)}function Cf(e,t,n){return n(function(){Tf(t)&&Nf(e)})}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Je(e,n)}catch{return!0}}function Nf(e){var t=Et(e,1);t!==null&&Xe(t,e,1,-1)}function va(e){var t=be();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dr,lastRenderedState:e},t.queue=e,e=e.dispatch=Ym.bind(null,X,e),[t.memoizedState,e]}function $r(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 Pf(){return Ie().memoizedState}function Sl(e,t,n,r){var l=be();X.flags|=e,l.memoizedState=$r(1|t,n,void 0,r===void 0?null:r)}function po(e,t,n,r){var l=Ie();r=r===void 0?null:r;var o=void 0;if(re!==null){var i=re.memoizedState;if(o=i.destroy,r!==null&&es(r,i.deps)){l.memoizedState=$r(t,n,o,r);return}}X.flags|=e,l.memoizedState=$r(1|t,n,o,r)}function ga(e,t){return Sl(8390656,8,e,t)}function rs(e,t){return po(2048,8,e,t)}function _f(e,t){return po(4,2,e,t)}function Lf(e,t){return po(4,4,e,t)}function Rf(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 Of(e,t,n){return n=n!=null?n.concat([e]):null,po(4,4,Rf.bind(null,t,e),n)}function ls(){}function Ff(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&es(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Af(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&es(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Df(e,t,n){return sn&21?(Je(n,t)||(n=Mc(),X.lanes|=n,an|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ke=!0),e.memoizedState=n)}function Km(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=Jo.transition;Jo.transition={};try{e(!1),t()}finally{U=n,Jo.transition=r}}function $f(){return Ie().memoizedState}function Gm(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mf(e))zf(t,n);else if(n=pf(e,t,n,r),n!==null){var l=ye();Xe(n,e,r,l),jf(n,t,r)}}function Ym(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mf(e))zf(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Je(u,i)){var s=t.interleaved;s===null?(l.next=l,Xu(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=pf(e,t,l,r),n!==null&&(l=ye(),Xe(n,e,r,l),jf(n,t,r))}}function Mf(e){var t=e.alternate;return e===X||t!==null&&t===X}function zf(e,t){vr=Gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$u(e,n)}}var Yl={readContext:Ue,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Xm={readContext:Ue,useCallback:function(e,t){return be().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:ga,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sl(4194308,4,Rf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sl(4,2,e,t)},useMemo:function(e,t){var n=be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=be();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=Gm.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=be();return e={current:e},t.memoizedState=e},useState:va,useDebugValue:ls,useDeferredValue:function(e){return be().memoizedState=e},useTransition:function(){var e=va(!1),t=e[0];return e=Km.bind(null,e[1]),be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,l=be();if(Q){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),se===null)throw Error(k(349));sn&30||kf(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ga(Cf.bind(null,r,o,e),[e]),r.flags|=2048,$r(9,xf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=be(),t=se.identifierPrefix;if(Q){var n=dt,r=ft;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ar++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Qm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Jm={readContext:Ue,useCallback:Ff,useContext:Ue,useEffect:rs,useImperativeHandle:Of,useInsertionEffect:_f,useLayoutEffect:Lf,useMemo:Af,useReducer:qo,useRef:Pf,useState:function(){return qo(Dr)},useDebugValue:ls,useDeferredValue:function(e){var t=Ie();return Df(t,re.memoizedState,e)},useTransition:function(){var e=qo(Dr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:$f,unstable_isNewReconciler:!1},qm={readContext:Ue,useCallback:Ff,useContext:Ue,useEffect:rs,useImperativeHandle:Of,useInsertionEffect:_f,useLayoutEffect:Lf,useMemo:Af,useReducer:Zo,useRef:Pf,useState:function(){return Zo(Dr)},useDebugValue:ls,useDeferredValue:function(e){var t=Ie();return re===null?t.memoizedState=e:Df(t,re.memoizedState,e)},useTransition:function(){var e=Zo(Dr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:Sf,useSyncExternalStore:Ef,useId:$f,unstable_isNewReconciler:!1};function Un(e,t){try{var n="",r=t;do n+=Tp(r),r=r.return;while(r);var l=n}catch(o){l=` | |
Error generating stack: `+o.message+` | |
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function bo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function qi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Zm=typeof WeakMap=="function"?WeakMap:Map;function Uf(e,t,n){n=mt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jl||(Jl=!0,uu=r),qi(e,t)},n}function If(e,t,n){n=mt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){qi(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){qi(e,t),typeof r!="function"&&(jt===null?jt=new Set([this]):jt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function ya(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Zm;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=dh.bind(null,e,t,n),t.then(e,e))}function wa(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 Sa(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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=mt(-1,1),t.tag=2,zt(n,t,1))),n.lanes|=1),e)}var bm=xt.ReactCurrentOwner,ke=!1;function ge(e,t,n,r){t.child=e===null?yf(t,null,n,r):zn(t,e.child,n,r)}function Ea(e,t,n,r,l){n=n.render;var o=t.ref;return On(t,l),r=ts(e,t,n,r,o,l),n=ns(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,kt(e,t,l)):(Q&&n&&Vu(t),t.flags|=1,ge(e,t,r,l),t.child)}function ka(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!ds(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Bf(e,t,o,r,l)):(e=Cl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Pr,n(i,r)&&e.ref===t.ref)return kt(e,t,l)}return t.flags|=1,e=It(o,r),e.ref=t.ref,e.return=t,t.child=e}function Bf(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Pr(o,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ke=!0);else return t.lanes=e.lanes,kt(e,t,l)}return Zi(e,t,n,r,l)}function Hf(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(Nn,Ne),Ne|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(Nn,Ne),Ne|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(Nn,Ne),Ne|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(Nn,Ne),Ne|=r;return ge(e,t,l,n),t.child}function Vf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zi(e,t,n,r,l){var o=Ce(n)?on:ve.current;return o=$n(t,o),On(t,l),n=ts(e,t,n,r,o,l),r=ns(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,kt(e,t,l)):(Q&&r&&Vu(t),t.flags|=1,ge(e,t,n,l),t.child)}function xa(e,t,n,r,l){if(Ce(n)){var o=!0;Il(t)}else o=!1;if(On(t,l),t.stateNode===null)El(e,t),vf(t,n,r),Ji(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=Ue(a):(a=Ce(n)?on:ve.current,a=$n(t,a));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&ma(t,i,r,a),Pt=!1;var v=t.memoizedState;i.state=v,Ql(t,r,i,l),s=t.memoizedState,u!==r||v!==s||xe.current||Pt?(typeof c=="function"&&(Xi(t,n,c,r),s=t.memoizedState),(u=Pt||pa(t,n,u,r,v,s,a))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,mf(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:Qe(t.type,u),i.props=a,d=t.pendingProps,v=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ue(s):(s=Ce(n)?on:ve.current,s=$n(t,s));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==d||v!==s)&&ma(t,i,r,s),Pt=!1,v=t.memoizedState,i.state=v,Ql(t,r,i,l);var h=t.memoizedState;u!==d||v!==h||xe.current||Pt?(typeof y=="function"&&(Xi(t,n,y,r),h=t.memoizedState),(a=Pt||pa(t,n,a,r,v,h,s)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,h,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,h,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return bi(e,t,n,r,o,l)}function bi(e,t,n,r,l,o){Vf(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&sa(t,n,!1),kt(e,t,o);r=t.stateNode,bm.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=zn(t,e.child,null,o),t.child=zn(t,null,u,o)):ge(e,t,u,o),t.memoizedState=r.state,l&&sa(t,n,!0),t.child}function Wf(e){var t=e.stateNode;t.pendingContext?ua(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ua(e,t.context,!1),qu(e,t.containerInfo)}function Ca(e,t,n,r,l){return Mn(),Qu(l),t.flags|=256,ge(e,t,n,r),t.child}var eu={dehydrated:null,treeContext:null,retryLane:0};function tu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qf(e,t,n){var r=t.pendingProps,l=G.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),B(G,l&1),e===null)return Gi(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):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=vo(i,r,0,null),e=rn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=tu(n),t.memoizedState=eu,e):os(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return eh(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=It(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=It(u,o):(o=rn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?tu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=eu,r}return o=e.child,e=o.sibling,r=It(o,{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 os(e,t){return t=vo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sl(e,t,n,r){return r!==null&&Qu(r),zn(t,e.child,null,n),e=os(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eh(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=bo(Error(k(422))),sl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=vo({mode:"visible",children:r.children},l,0,null),o=rn(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&zn(t,e.child,null,i),t.child.memoizedState=tu(i),t.memoizedState=eu,o);if(!(t.mode&1))return sl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=bo(o,r,void 0),sl(e,t,i,r)}if(u=(i&e.childLanes)!==0,ke||u){if(r=se,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Et(e,l),Xe(r,e,l,-1))}return fs(),r=bo(Error(k(421))),sl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=ph.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,_e=Mt(l.nextSibling),Le=t,Q=!0,Ge=null,e!==null&&(De[$e++]=ft,De[$e++]=dt,De[$e++]=un,ft=e.id,dt=e.overflow,un=t),t=os(t,r.children),t.flags|=4096,t)}function Ta(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yi(e.return,t,n)}function ei(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Kf(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ge(e,t,r.children,n),r=G.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&&Ta(e,n,t);else if(e.tag===19)Ta(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(B(G,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Kl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ei(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Kl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ei(t,!0,n,null,o);break;case"together":ei(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),an|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function th(e,t,n){switch(t.tag){case 3:Wf(t),Mn();break;case 5:wf(t);break;case 1:Ce(t.type)&&Il(t);break;case 4:qu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;B(Vl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?Qf(e,t,n):(B(G,G.current&1),e=kt(e,t,n),e!==null?e.sibling:null);B(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Kf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),B(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,Hf(e,t,n)}return kt(e,t,n)}var Gf,nu,Yf,Xf;Gf=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}};nu=function(){};Yf=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,en(rt.current);var o=null;switch(n){case"input":l=Ci(e,l),r=Ci(e,r),o=[];break;case"select":l=J({},l,{value:void 0}),r=J({},r,{value:void 0}),o=[];break;case"textarea":l=Pi(e,l),r=Pi(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=jl)}Li(n,r);var i;n=null;for(a in l)if(!r.hasOwnProperty(a)&&l.hasOwnProperty(a)&&l[a]!=null)if(a==="style"){var u=l[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Sr.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var s=r[a];if(u=l!=null?l[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Sr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&H("scroll",e),o||u===s||(o=[])):(o=o||[]).push(a,s))}n&&(o=o||[]).push("style",n);var a=o;(t.updateQueue=a)&&(t.flags|=4)}};Xf=function(e,t,n,r){n!==r&&(t.flags|=4)};function tr(e,t){if(!Q)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 l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nh(e,t,n){var r=t.pendingProps;switch(Wu(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 Ce(t.type)&&Ul(),pe(t),null;case 3:return r=t.stateNode,jn(),V(xe),V(ve),bu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(il(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ge!==null&&(cu(Ge),Ge=null))),nu(e,t),pe(t),null;case 5:Zu(t);var l=en(Fr.current);if(n=t.type,e!==null&&t.stateNode!=null)Yf(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return pe(t),null}if(e=en(rt.current),il(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[et]=t,r[Rr]=o,e=(t.mode&1)!==0,n){case"dialog":H("cancel",r),H("close",r);break;case"iframe":case"object":case"embed":H("load",r);break;case"video":case"audio":for(l=0;l<ar.length;l++)H(ar[l],r);break;case"source":H("error",r);break;case"img":case"image":case"link":H("error",r),H("load",r);break;case"details":H("toggle",r);break;case"input":Ds(r,o),H("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},H("invalid",r);break;case"textarea":Ms(r,o),H("invalid",r)}Li(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&ol(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&ol(r.textContent,u,e),l=["children",""+u]):Sr.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&H("scroll",r)}switch(n){case"input":qr(r),$s(r,o,!0);break;case"textarea":qr(r),zs(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=jl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ec(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[et]=t,e[Rr]=r,Gf(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ri(n,r),n){case"dialog":H("cancel",e),H("close",e),l=r;break;case"iframe":case"object":case"embed":H("load",e),l=r;break;case"video":case"audio":for(l=0;l<ar.length;l++)H(ar[l],e);l=r;break;case"source":H("error",e),l=r;break;case"img":case"image":case"link":H("error",e),H("load",e),l=r;break;case"details":H("toggle",e),l=r;break;case"input":Ds(e,r),l=Ci(e,r),H("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=J({},r,{value:void 0}),H("invalid",e);break;case"textarea":Ms(e,r),l=Pi(e,r),H("invalid",e);break;default:l=r}Li(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o==="style"?Cc(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&kc(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Er(e,s):typeof s=="number"&&Er(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Sr.hasOwnProperty(o)?s!=null&&o==="onScroll"&&H("scroll",e):s!=null&&Lu(e,o,s,i))}switch(n){case"input":qr(e),$s(e,r,!1);break;case"textarea":qr(e),zs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Bt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Pn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Pn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=jl)}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)Xf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=en(Fr.current),en(rt.current),il(t)){if(r=t.stateNode,n=t.memoizedProps,r[et]=t,(o=r.nodeValue!==n)&&(e=Le,e!==null))switch(e.tag){case 3:ol(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ol(r.nodeValue,n,(e.mode&1)!==0)}o&&(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(V(G),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&_e!==null&&t.mode&1&&!(t.flags&128))df(),Mn(),t.flags|=98560,o=!1;else if(o=il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[et]=t}else Mn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pe(t),o=!1}else Ge!==null&&(cu(Ge),Ge=null),o=!0;if(!o)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||G.current&1?le===0&&(le=3):fs())),t.updateQueue!==null&&(t.flags|=4),pe(t),null);case 4:return jn(),nu(e,t),e===null&&_r(t.stateNode.containerInfo),pe(t),null;case 10:return Yu(t.type._context),pe(t),null;case 17:return Ce(t.type)&&Ul(),pe(t),null;case 19:if(V(G),o=t.memoizedState,o===null)return pe(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)tr(o,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Kl(e),i!==null){for(t.flags|=128,tr(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(G,G.current&1|2),t.child}e=e.sibling}o.tail!==null&&Z()>In&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304)}else{if(!r)if(e=Kl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Q)return pe(t),null}else 2*Z()-o.renderingStartTime>In&&n!==1073741824&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=G.current,B(G,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return cs(),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(k(156,t.tag))}function rh(e,t){switch(Wu(t),t.tag){case 1:return Ce(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return jn(),V(xe),V(ve),bu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zu(t),null;case 13:if(V(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(G),null;case 4:return jn(),null;case 10:return Yu(t.type._context),null;case 22:case 23:return cs(),null;case 24:return null;default:return null}}var al=!1,me=!1,lh=typeof WeakSet=="function"?WeakSet:Set,L=null;function Tn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function ru(e,t,n){try{n()}catch(r){q(e,t,r)}}var Na=!1;function oh(e,t){if(Ii=$l,e=Zc(),Hu(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,c=0,d=e,v=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(u=i+l),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)v=d,d=y;for(;;){if(d===e)break t;if(v===n&&++a===l&&(u=i),v===o&&++c===r&&(s=i),(y=d.nextSibling)!==null)break;d=v,v=d.parentNode}d=y}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bi={focusedElem:e,selectionRange:n},$l=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;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,N=h.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:Qe(t.type,g),N);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(E){q(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return h=Na,Na=!1,h}function gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ru(t,n,o)}l=l.next}while(l!==r)}}function mo(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 lu(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 Jf(e){var t=e.alternate;t!==null&&(e.alternate=null,Jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[et],delete t[Rr],delete t[Wi],delete t[Bm],delete t[Hm])),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 qf(e){return e.tag===5||e.tag===3||e.tag===4}function Pa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qf(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 ou(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=jl));else if(r!==4&&(e=e.child,e!==null))for(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}function iu(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(iu(e,t,n),e=e.sibling;e!==null;)iu(e,t,n),e=e.sibling}var ae=null,Ke=!1;function Ct(e,t,n){for(n=n.child;n!==null;)Zf(e,t,n),n=n.sibling}function Zf(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(oo,n)}catch{}switch(n.tag){case 5:me||Tn(n,t);case 6:var r=ae,l=Ke;ae=null,Ct(e,t,n),ae=r,Ke=l,ae!==null&&(Ke?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(Ke?(e=ae,n=n.stateNode,e.nodeType===8?Go(e.parentNode,n):e.nodeType===1&&Go(e,n),Tr(e)):Go(ae,n.stateNode));break;case 4:r=ae,l=Ke,ae=n.stateNode.containerInfo,Ke=!0,Ct(e,t,n),ae=r,Ke=l;break;case 0:case 11:case 14:case 15:if(!me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ru(n,t,i),l=l.next}while(l!==r)}Ct(e,t,n);break;case 1:if(!me&&(Tn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){q(n,t,u)}Ct(e,t,n);break;case 21:Ct(e,t,n);break;case 22:n.mode&1?(me=(r=me)||n.memoizedState!==null,Ct(e,t,n),me=r):Ct(e,t,n);break;default:Ct(e,t,n)}}function _a(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lh),t.forEach(function(r){var l=mh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:ae=u.stateNode,Ke=!1;break e;case 3:ae=u.stateNode.containerInfo,Ke=!0;break e;case 4:ae=u.stateNode.containerInfo,Ke=!0;break e}u=u.return}if(ae===null)throw Error(k(160));Zf(o,i,l),ae=null,Ke=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(a){q(l,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bf(t,e),t=t.sibling}function bf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(We(t,e),Ze(e),r&4){try{gr(3,e,e.return),mo(3,e)}catch(g){q(e,e.return,g)}try{gr(5,e,e.return)}catch(g){q(e,e.return,g)}}break;case 1:We(t,e),Ze(e),r&512&&n!==null&&Tn(n,n.return);break;case 5:if(We(t,e),Ze(e),r&512&&n!==null&&Tn(n,n.return),e.flags&32){var l=e.stateNode;try{Er(l,"")}catch(g){q(e,e.return,g)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&wc(l,o),Ri(u,i);var a=Ri(u,o);for(i=0;i<s.length;i+=2){var c=s[i],d=s[i+1];c==="style"?Cc(l,d):c==="dangerouslySetInnerHTML"?kc(l,d):c==="children"?Er(l,d):Lu(l,c,d,a)}switch(u){case"input":Ti(l,o);break;case"textarea":Sc(l,o);break;case"select":var v=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Pn(l,!!o.multiple,y,!1):v!==!!o.multiple&&(o.defaultValue!=null?Pn(l,!!o.multiple,o.defaultValue,!0):Pn(l,!!o.multiple,o.multiple?[]:"",!1))}l[Rr]=o}catch(g){q(e,e.return,g)}}break;case 6:if(We(t,e),Ze(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(g){q(e,e.return,g)}}break;case 3:if(We(t,e),Ze(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Tr(t.containerInfo)}catch(g){q(e,e.return,g)}break;case 4:We(t,e),Ze(e);break;case 13:We(t,e),Ze(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(ss=Z())),r&4&&_a(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(me=(a=me)||c,We(t,e),me=a):We(t,e),Ze(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!c&&e.mode&1)for(L=e,c=e.child;c!==null;){for(d=L=c;L!==null;){switch(v=L,y=v.child,v.tag){case 0:case 11:case 14:case 15:gr(4,v,v.return);break;case 1:Tn(v,v.return);var h=v.stateNode;if(typeof h.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(g){q(r,n,g)}}break;case 5:Tn(v,v.return);break;case 22:if(v.memoizedState!==null){Ra(d);continue}}y!==null?(y.return=v,L=y):Ra(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{l=d.stateNode,a?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=d.stateNode,s=d.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=xc("display",i))}catch(g){q(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=a?"":d.memoizedProps}catch(g){q(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:We(t,e),Ze(e),r&4&&_a(e);break;case 21:break;default:We(t,e),Ze(e)}}function Ze(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(qf(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Er(l,""),r.flags&=-33);var o=Pa(e);iu(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Pa(e);ou(e,u,i);break;default:throw Error(k(161))}}catch(s){q(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ih(e,t,n){L=e,ed(e)}function ed(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var l=L,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||al;if(!i){var u=l.alternate,s=u!==null&&u.memoizedState!==null||me;u=al;var a=me;if(al=i,(me=s)&&!a)for(L=l;L!==null;)i=L,s=i.child,i.tag===22&&i.memoizedState!==null?Oa(l):s!==null?(s.return=i,L=s):Oa(l);for(;o!==null;)L=o,ed(o),o=o.sibling;L=l,al=u,me=a}La(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,L=o):La(e)}}function La(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:me||mo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!me)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Qe(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&da(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}da(t,i,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 c=a.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Tr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}me||t.flags&512&&lu(t)}catch(v){q(t,t.return,v)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function Ra(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function Oa(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mo(4,t)}catch(s){q(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){q(t,l,s)}}var o=t.return;try{lu(t)}catch(s){q(t,o,s)}break;case 5:var i=t.return;try{lu(t)}catch(s){q(t,i,s)}}}catch(s){q(t,t.return,s)}if(t===e){L=null;break}var u=t.sibling;if(u!==null){u.return=t.return,L=u;break}L=t.return}}var uh=Math.ceil,Xl=xt.ReactCurrentDispatcher,is=xt.ReactCurrentOwner,ze=xt.ReactCurrentBatchConfig,z=0,se=null,te=null,ce=0,Ne=0,Nn=Wt(0),le=0,Mr=null,an=0,ho=0,us=0,yr=null,Ee=null,ss=0,In=1/0,at=null,Jl=!1,uu=null,jt=null,cl=!1,Ft=null,ql=0,wr=0,su=null,kl=-1,xl=0;function ye(){return z&6?Z():kl!==-1?kl:kl=Z()}function Ut(e){return e.mode&1?z&2&&ce!==0?ce&-ce:Wm.transition!==null?(xl===0&&(xl=Mc()),xl):(e=U,e!==0||(e=window.event,e=e===void 0?16:Vc(e.type)),e):1}function Xe(e,t,n,r){if(50<wr)throw wr=0,su=null,Error(k(185));Ur(e,n,r),(!(z&2)||e!==se)&&(e===se&&(!(z&2)&&(ho|=n),le===4&&Lt(e,ce)),Te(e,r),n===1&&z===0&&!(t.mode&1)&&(In=Z()+500,co&&Qt()))}function Te(e,t){var n=e.callbackNode;Wp(e,t);var r=Dl(e,e===se?ce:0);if(r===0)n!==null&&Is(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Is(n),t===1)e.tag===0?Vm(Fa.bind(null,e)):af(Fa.bind(null,e)),Um(function(){!(z&6)&&Qt()}),n=null;else{switch(zc(r)){case 1:n=Du;break;case 4:n=Dc;break;case 16:n=Al;break;case 536870912:n=$c;break;default:n=Al}n=sd(n,td.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function td(e,t){if(kl=-1,xl=0,z&6)throw Error(k(327));var n=e.callbackNode;if(Fn()&&e.callbackNode!==n)return null;var r=Dl(e,e===se?ce:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zl(e,r);else{t=r;var l=z;z|=2;var o=rd();(se!==e||ce!==t)&&(at=null,In=Z()+500,nn(e,t));do try{ch();break}catch(u){nd(e,u)}while(1);Gu(),Xl.current=o,z=l,te!==null?t=0:(se=null,ce=0,t=le)}if(t!==0){if(t===2&&(l=$i(e),l!==0&&(r=l,t=au(e,l))),t===1)throw n=Mr,nn(e,0),Lt(e,r),Te(e,Z()),n;if(t===6)Lt(e,r);else{if(l=e.current.alternate,!(r&30)&&!sh(l)&&(t=Zl(e,r),t===2&&(o=$i(e),o!==0&&(r=o,t=au(e,o))),t===1))throw n=Mr,nn(e,0),Lt(e,r),Te(e,Z()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:Jt(e,Ee,at);break;case 3:if(Lt(e,r),(r&130023424)===r&&(t=ss+500-Z(),10<t)){if(Dl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ye(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Vi(Jt.bind(null,e,Ee,at),t);break}Jt(e,Ee,at);break;case 4:if(Lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-Ye(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uh(r/1960))-r,10<r){e.timeoutHandle=Vi(Jt.bind(null,e,Ee,at),r);break}Jt(e,Ee,at);break;case 5:Jt(e,Ee,at);break;default:throw Error(k(329))}}}return Te(e,Z()),e.callbackNode===n?td.bind(null,e):null}function au(e,t){var n=yr;return e.current.memoizedState.isDehydrated&&(nn(e,t).flags|=256),e=Zl(e,t),e!==2&&(t=Ee,Ee=n,t!==null&&cu(t)),e}function cu(e){Ee===null?Ee=e:Ee.push.apply(Ee,e)}function sh(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 l=n[r],o=l.getSnapshot;l=l.value;try{if(!Je(o(),l))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 Lt(e,t){for(t&=~us,t&=~ho,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ye(t),r=1<<n;e[n]=-1,t&=~r}}function Fa(e){if(z&6)throw Error(k(327));Fn();var t=Dl(e,0);if(!(t&1))return Te(e,Z()),null;var n=Zl(e,t);if(e.tag!==0&&n===2){var r=$i(e);r!==0&&(t=r,n=au(e,r))}if(n===1)throw n=Mr,nn(e,0),Lt(e,t),Te(e,Z()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jt(e,Ee,at),Te(e,Z()),null}function as(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(In=Z()+500,co&&Qt())}}function cn(e){Ft!==null&&Ft.tag===0&&!(z&6)&&Fn();var t=z;z|=1;var n=ze.transition,r=U;try{if(ze.transition=null,U=1,e)return e()}finally{U=r,ze.transition=n,z=t,!(z&6)&&Qt()}}function cs(){Ne=Nn.current,V(Nn)}function nn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,jm(n)),te!==null)for(n=te.return;n!==null;){var r=n;switch(Wu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ul();break;case 3:jn(),V(xe),V(ve),bu();break;case 5:Zu(r);break;case 4:jn();break;case 13:V(G);break;case 19:V(G);break;case 10:Yu(r.type._context);break;case 22:case 23:cs()}n=n.return}if(se=e,te=e=It(e.current,null),ce=Ne=t,le=0,Mr=null,us=ho=an=0,Ee=yr=null,bt!==null){for(t=0;t<bt.length;t++)if(n=bt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}bt=null}return e}function nd(e,t){do{var n=te;try{if(Gu(),wl.current=Yl,Gl){for(var r=X.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Gl=!1}if(sn=0,ie=re=X=null,vr=!1,Ar=0,is.current=null,n===null||n.return===null){le=1,Mr=t,te=null;break}e:{var o=e,i=n.return,u=n,s=t;if(t=ce,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,c=u,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var v=c.alternate;v?(c.updateQueue=v.updateQueue,c.memoizedState=v.memoizedState,c.lanes=v.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=wa(i);if(y!==null){y.flags&=-257,Sa(y,i,u,o,t),y.mode&1&&ya(o,a,t),t=y,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)){ya(o,a,t),fs();break e}s=Error(k(426))}}else if(Q&&u.mode&1){var N=wa(i);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Sa(N,i,u,o,t),Qu(Un(s,u));break e}}o=s=Un(s,u),le!==4&&(le=2),yr===null?yr=[o]:yr.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Uf(o,s,t);fa(o,p);break e;case 1:u=s;var f=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(jt===null||!jt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=If(o,u,t);fa(o,E);break e}}o=o.return}while(o!==null)}od(n)}catch(x){t=x,te===n&&n!==null&&(te=n=n.return);continue}break}while(1)}function rd(){var e=Xl.current;return Xl.current=Yl,e===null?Yl:e}function fs(){(le===0||le===3||le===2)&&(le=4),se===null||!(an&268435455)&&!(ho&268435455)||Lt(se,ce)}function Zl(e,t){var n=z;z|=2;var r=rd();(se!==e||ce!==t)&&(at=null,nn(e,t));do try{ah();break}catch(l){nd(e,l)}while(1);if(Gu(),z=n,Xl.current=r,te!==null)throw Error(k(261));return se=null,ce=0,le}function ah(){for(;te!==null;)ld(te)}function ch(){for(;te!==null&&!$p();)ld(te)}function ld(e){var t=ud(e.alternate,e,Ne);e.memoizedProps=e.pendingProps,t===null?od(e):te=t,is.current=null}function od(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=rh(n,t),n!==null){n.flags&=32767,te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,te=null;return}}else if(n=nh(n,t,Ne),n!==null){te=n;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);le===0&&(le=5)}function Jt(e,t,n){var r=U,l=ze.transition;try{ze.transition=null,U=1,fh(e,t,n,r)}finally{ze.transition=l,U=r}return null}function fh(e,t,n,r){do Fn();while(Ft!==null);if(z&6)throw Error(k(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Qp(e,o),e===se&&(te=se=null,ce=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||cl||(cl=!0,sd(Al,function(){return Fn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ze.transition,ze.transition=null;var i=U;U=1;var u=z;z|=4,is.current=null,oh(e,n),bf(n,e),Om(Bi),$l=!!Ii,Bi=Ii=null,e.current=n,ih(n),Mp(),z=u,U=i,ze.transition=o}else e.current=n;if(cl&&(cl=!1,Ft=e,ql=l),o=e.pendingLanes,o===0&&(jt=null),Up(n.stateNode),Te(e,Z()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Jl)throw Jl=!1,e=uu,uu=null,e;return ql&1&&e.tag!==0&&Fn(),o=e.pendingLanes,o&1?e===su?wr++:(wr=0,su=e):wr=0,Qt(),null}function Fn(){if(Ft!==null){var e=zc(ql),t=ze.transition,n=U;try{if(ze.transition=null,U=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,ql=0,z&6)throw Error(k(331));var l=z;for(z|=4,L=e.current;L!==null;){var o=L,i=o.child;if(L.flags&16){var u=o.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(L=a;L!==null;){var c=L;switch(c.tag){case 0:case 11:case 15:gr(8,c,o)}var d=c.child;if(d!==null)d.return=c,L=d;else for(;L!==null;){c=L;var v=c.sibling,y=c.return;if(Jf(c),c===a){L=null;break}if(v!==null){v.return=y,L=v;break}L=y}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var N=g.sibling;g.sibling=null,g=N}while(g!==null)}}L=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,L=i;else e:for(;L!==null;){if(o=L,o.flags&2048)switch(o.tag){case 0:case 11:case 15:gr(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,L=p;break e}L=o.return}}var f=e.current;for(L=f;L!==null;){i=L;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,L=m;else e:for(i=f;L!==null;){if(u=L,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:mo(9,u)}}catch(x){q(u,u.return,x)}if(u===i){L=null;break e}var E=u.sibling;if(E!==null){E.return=u.return,L=E;break e}L=u.return}}if(z=l,Qt(),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(oo,e)}catch{}r=!0}return r}finally{U=n,ze.transition=t}}return!1}function Aa(e,t,n){t=Un(n,t),t=Uf(e,t,1),e=zt(e,t,1),t=ye(),e!==null&&(Ur(e,1,t),Te(e,t))}function q(e,t,n){if(e.tag===3)Aa(e,e,n);else for(;t!==null;){if(t.tag===3){Aa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jt===null||!jt.has(r))){e=Un(n,e),e=If(t,e,1),t=zt(t,e,1),e=ye(),t!==null&&(Ur(t,1,e),Te(t,e));break}}t=t.return}}function dh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ye(),e.pingedLanes|=e.suspendedLanes&n,se===e&&(ce&n)===n&&(le===4||le===3&&(ce&130023424)===ce&&500>Z()-ss?nn(e,0):us|=n),Te(e,t)}function id(e,t){t===0&&(e.mode&1?(t=el,el<<=1,!(el&130023424)&&(el=4194304)):t=1);var n=ye();e=Et(e,t),e!==null&&(Ur(e,t,n),Te(e,n))}function ph(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function mh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),id(e,n)}var ud;ud=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,th(e,t,n);ke=!!(e.flags&131072)}else ke=!1,Q&&t.flags&1048576&&cf(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var l=$n(t,ve.current);On(t,n),l=ts(null,t,r,e,l,n);var o=ns();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ce(r)?(o=!0,Il(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ju(t),l.updater=fo,t.stateNode=l,l._reactInternals=t,Ji(t,r,e,n),t=bi(null,t,r,!0,o,n)):(t.tag=0,Q&&o&&Vu(t),ge(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=vh(r),e=Qe(r,e),l){case 0:t=Zi(null,t,r,e,n);break e;case 1:t=xa(null,t,r,e,n);break e;case 11:t=Ea(null,t,r,e,n);break e;case 14:t=ka(null,t,r,Qe(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),Zi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),xa(e,t,r,l,n);case 3:e:{if(Wf(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,mf(e,t),Ql(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Un(Error(k(423)),t),t=Ca(e,t,r,n,l);break e}else if(r!==l){l=Un(Error(k(424)),t),t=Ca(e,t,r,n,l);break e}else for(_e=Mt(t.stateNode.containerInfo.firstChild),Le=t,Q=!0,Ge=null,n=yf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===l){t=kt(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return wf(t),e===null&&Gi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Hi(r,l)?i=null:o!==null&&Hi(r,o)&&(t.flags|=32),Vf(e,t),ge(e,t,i,n),t.child;case 6:return e===null&&Gi(t),null;case 13:return Qf(e,t,n);case 4:return qu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),Ea(e,t,r,l,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,l=t.pendingProps,o=t.memoizedProps,i=l.value,B(Vl,r._currentValue),r._currentValue=i,o!==null)if(Je(o.value,i)){if(o.children===l.children&&!xe.current){t=kt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=mt(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Yi(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Yi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ge(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,On(t,n),l=Ue(l),r=r(l),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,l=Qe(r,t.pendingProps),l=Qe(r.type,l),ka(e,t,r,l,n);case 15:return Bf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qe(r,l),El(e,t),t.tag=1,Ce(r)?(e=!0,Il(t)):e=!1,On(t,n),vf(t,r,l),Ji(t,r,l,n),bi(null,t,r,!0,e,n);case 19:return Kf(e,t,n);case 22:return Hf(e,t,n)}throw Error(k(156,t.tag))};function sd(e,t){return Ac(e,t)}function hh(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 hh(e,t,n,r)}function ds(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vh(e){if(typeof e=="function")return ds(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ou)return 11;if(e===Fu)return 14}return 2}function It(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 Cl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ds(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case vn:return rn(n.children,l,o,t);case Ru:i=8,l|=8;break;case Si:return e=Me(12,n,t,l|2),e.elementType=Si,e.lanes=o,e;case Ei:return e=Me(13,n,t,l),e.elementType=Ei,e.lanes=o,e;case ki:return e=Me(19,n,t,l),e.elementType=ki,e.lanes=o,e;case vc:return vo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mc:i=10;break e;case hc:i=9;break e;case Ou:i=11;break e;case Fu:i=14;break e;case Nt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Me(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function rn(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function vo(e,t,n,r){return e=Me(22,e,r,t),e.elementType=vc,e.lanes=n,e.stateNode={isHidden:!1},e}function ti(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function ni(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 gh(e,t,n,r,l){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=Mo(0),this.expirationTimes=Mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ps(e,t,n,r,l,o,i,u,s){return e=new gh(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Me(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ju(o),e}function yh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ad(e){if(!e)return Ht;e=e._reactInternals;e:{if(dn(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ce(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(Ce(n))return sf(e,n,t)}return t}function cd(e,t,n,r,l,o,i,u,s){return e=ps(n,r,!0,e,l,o,i,u,s),e.context=ad(null),n=e.current,r=ye(),l=Ut(n),o=mt(r,l),o.callback=t??null,zt(n,o,l),e.current.lanes=l,Ur(e,l,r),Te(e,r),e}function go(e,t,n,r){var l=t.current,o=ye(),i=Ut(l);return n=ad(n),t.context===null?t.context=n:t.pendingContext=n,t=mt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zt(l,t,i),e!==null&&(Xe(e,l,i,o),yl(e,l,i)),i}function bl(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 Da(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ms(e,t){Da(e,t),(e=e.alternate)&&Da(e,t)}function wh(){return null}var fd=typeof reportError=="function"?reportError:function(e){console.error(e)};function hs(e){this._internalRoot=e}yo.prototype.render=hs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));go(e,t,null,null)};yo.prototype.unmount=hs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cn(function(){go(null,e,null,null)}),t[St]=null}};function yo(e){this._internalRoot=e}yo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ic();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_t.length&&t!==0&&t<_t[n].priority;n++);_t.splice(n,0,e),n===0&&Hc(e)}};function vs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $a(){}function Sh(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var a=bl(i);o.call(a)}}var i=cd(t,r,e,0,null,!1,!1,"",$a);return e._reactRootContainer=i,e[St]=i.current,_r(e.nodeType===8?e.parentNode:e),cn(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var a=bl(s);u.call(a)}}var s=ps(e,0,!1,null,null,!1,!1,"",$a);return e._reactRootContainer=s,e[St]=s.current,_r(e.nodeType===8?e.parentNode:e),cn(function(){go(t,s,n,r)}),s}function So(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var s=bl(i);u.call(s)}}go(t,i,e,l)}else i=Sh(n,t,e,l,r);return bl(i)}jc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sr(t.pendingLanes);n!==0&&($u(t,n|1),Te(t,Z()),!(z&6)&&(In=Z()+500,Qt()))}break;case 13:cn(function(){var r=Et(e,1);if(r!==null){var l=ye();Xe(r,e,1,l)}}),ms(e,1)}};Mu=function(e){if(e.tag===13){var t=Et(e,134217728);if(t!==null){var n=ye();Xe(t,e,134217728,n)}ms(e,134217728)}};Uc=function(e){if(e.tag===13){var t=Ut(e),n=Et(e,t);if(n!==null){var r=ye();Xe(n,e,t,r)}ms(e,t)}};Ic=function(){return U};Bc=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};Fi=function(e,t,n){switch(t){case"input":if(Ti(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 l=ao(r);if(!l)throw Error(k(90));yc(r),Ti(r,l)}}}break;case"textarea":Sc(e,n);break;case"select":t=n.value,t!=null&&Pn(e,!!n.multiple,t,!1)}};Pc=as;_c=cn;var Eh={usingClientEntryPoint:!1,Events:[Br,Sn,ao,Tc,Nc,as]},nr={findFiberByHostInstance:Zt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},kh={bundleType:nr.bundleType,version:nr.version,rendererPackageName:nr.rendererPackageName,rendererConfig:nr.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=Oc(e),e===null?null:e.stateNode},findFiberByHostInstance:nr.findFiberByHostInstance||wh,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 fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{oo=fl.inject(kh),nt=fl}catch{}}Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Eh;Oe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vs(t))throw Error(k(200));return yh(e,t,null,n)};Oe.createRoot=function(e,t){if(!vs(e))throw Error(k(299));var n=!1,r="",l=fd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=ps(e,1,!1,null,null,n,!1,r,l),e[St]=t.current,_r(e.nodeType===8?e.parentNode:e),new hs(t)};Oe.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Oc(t),e=e===null?null:e.stateNode,e};Oe.flushSync=function(e){return cn(e)};Oe.hydrate=function(e,t,n){if(!wo(t))throw Error(k(200));return So(null,e,t,!0,n)};Oe.hydrateRoot=function(e,t,n){if(!vs(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=fd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=cd(t,null,e,1,n??null,l,!1,o,i),e[St]=t.current,_r(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new yo(t)};Oe.render=function(e,t,n){if(!wo(t))throw Error(k(200));return So(null,e,t,!1,n)};Oe.unmountComponentAtNode=function(e){if(!wo(e))throw Error(k(40));return e._reactRootContainer?(cn(function(){So(null,null,e,!1,function(){e._reactRootContainer=null,e[St]=null})}),!0):!1};Oe.unstable_batchedUpdates=as;Oe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wo(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return So(e,t,n,!1,r)};Oe.version="18.2.0-next-9e3b772b8-20220608";function dd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dd)}catch(e){console.error(e)}}dd(),ac.exports=Oe;var pd=ac.exports,Ma=pd;yi.createRoot=Ma.createRoot,yi.hydrateRoot=Ma.hydrateRoot;const An={SAMPLING_RATE:16e3,DEFAULT_AUDIO_URL:"https://xenova.github.io/transformers.js/audio/jfk.wav",DEFAULT_MODEL:"whisper-tiny.en",DEFAULT_SUBTASK:"transcribe",DEFAULT_LANGUAGE:"english"};var xh=Object.defineProperty,Ch=(e,t,n)=>t in e?xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ri=(e,t,n)=>(Ch(e,typeof t!="symbol"?t+"":t,n),n);let Th=class{constructor(){ri(this,"current",this.detect()),ri(this,"handoffState","pending"),ri(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"}},ht=new Th,lt=(e,t)=>{ht.isServer?w.useEffect(e,t):w.useLayoutEffect(e,t)};function vt(e){let t=w.useRef(e);return lt(()=>{t.current=e},[e]),t}function Vr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Qn(){let e=[],t={addEventListener(n,r,l,o){return n.addEventListener(r,l,o),t.add(()=>n.removeEventListener(r,l,o))},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 Vr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,l){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:l}),this.add(()=>{Object.assign(n.style,{[r]:o})})},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 l of e.splice(r,1))l()}},dispose(){for(let n of e.splice(0))n()}};return t}function gs(){let[e]=w.useState(Qn);return w.useEffect(()=>()=>e.dispose(),[e]),e}let ue=function(e){let t=vt(e);return $.useCallback((...n)=>t.current(...n),[t])};function Kn(){let[e,t]=w.useState(ht.isHandoffComplete);return e&&ht.isHandoffComplete===!1&&t(!1),w.useEffect(()=>{e!==!0&&t(!0)},[e]),w.useEffect(()=>ht.handoff(),[]),e}var za;let Gn=(za=$.useId)!=null?za:function(){let e=Kn(),[t,n]=$.useState(e?()=>ht.nextId():null);return lt(()=>{t===null&&n(ht.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...n){if(e in t){let l=t[e];return typeof l=="function"?l(...n):l}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(l=>`"${l}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,he),r}function md(e){return ht.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let fu=["[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 qt=(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))(qt||{}),hd=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(hd||{}),Nh=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Nh||{});function Ph(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(fu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var vd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(vd||{});function _h(e,t=0){var n;return e===((n=md(e))==null?void 0:n.body)?!1:he(t,{[0](){return e.matches(fu)},[1](){let r=e;for(;r!==null;){if(r.matches(fu))return!0;r=r.parentElement}return!1}})}var Lh=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Lh||{});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 Rh=["textarea","input"].join(",");function Oh(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Rh))!=null?n:!1}function Fh(e,t=n=>n){return e.slice().sort((n,r)=>{let l=t(n),o=t(r);if(l===null||o===null)return 0;let i=l.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Tl(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?n?Fh(e):e:Ph(e);l.length>0&&i.length>1&&(i=i.filter(y=>!l.includes(y))),r=r??o.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,i.indexOf(r))-1;if(t&4)return Math.max(0,i.indexOf(r))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},c=0,d=i.length,v;do{if(c>=d||c+d<=0)return 0;let y=s+c;if(t&16)y=(y+d)%d;else{if(y<0)return 3;if(y>=d)return 1}v=i[y],v==null||v.focus(a),c+=u}while(v!==o.activeElement);return t&6&&Oh(v)&&v.select(),2}function li(e,t,n){let r=vt(t);w.useEffect(()=>{function l(o){r.current(o)}return document.addEventListener(e,l,n),()=>document.removeEventListener(e,l,n)},[e,n])}function Ah(e,t,n=!0){let r=w.useRef(!1);w.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function l(i,u){if(!r.current||i.defaultPrevented)return;let s=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e),a=u(i);if(a!==null&&a.getRootNode().contains(a)){for(let c of s){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(a)||i.composed&&i.composedPath().includes(d))return}return!_h(a,vd.Loose)&&a.tabIndex!==-1&&i.preventDefault(),t(i,a)}}let o=w.useRef(null);li("mousedown",i=>{var u,s;r.current&&(o.current=((s=(u=i.composedPath)==null?void 0:u.call(i))==null?void 0:s[0])||i.target)},!0),li("click",i=>{o.current&&(l(i,()=>o.current),o.current=null)},!0),li("blur",i=>l(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let gd=Symbol();function Dh(e,t=!0){return Object.assign(e,{[gd]:t})}function qe(...e){let t=w.useRef(e);w.useEffect(()=>{t.current=e},[e]);let n=ue(r=>{for(let l of t.current)l!=null&&(typeof l=="function"?l(r):l.current=r)});return e.every(r=>r==null||(r==null?void 0:r[gd]))?void 0:n}function du(...e){return e.filter(Boolean).join(" ")}var eo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(eo||{}),pt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pt||{});function Be({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:l,visible:o=!0,name:i}){let u=yd(t,e);if(o)return dl(u,n,r,i);let s=l??0;if(s&2){let{static:a=!1,...c}=u;if(a)return dl(c,n,r,i)}if(s&1){let{unmount:a=!0,...c}=u;return he(a?0:1,{[0](){return null},[1](){return dl({...c,hidden:!0,style:{display:"none"}},n,r,i)}})}return dl(u,n,r,i)}function dl(e,t={},n,r){let{as:l=n,children:o,refName:i="ref",...u}=oi(e,["unmount","static"]),s=e.ref!==void 0?{[i]:e.ref}:{},a=typeof o=="function"?o(t):o;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let c={};if(t){let d=!1,v=[];for(let[y,h]of Object.entries(t))typeof h=="boolean"&&(d=!0),h===!0&&v.push(y);d&&(c["data-headlessui-state"]=v.join(" "))}if(l===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 d=a.props,v=typeof(d==null?void 0:d.className)=="function"?(...h)=>du(d==null?void 0:d.className(...h),u.className):du(d==null?void 0:d.className,u.className),y=v?{className:v}:{};return w.cloneElement(a,Object.assign({},yd(a.props,ja(oi(u,["ref"]))),c,s,$h(a.ref,s.ref),y))}return w.createElement(l,Object.assign({},oi(u,["ref"]),l!==w.Fragment&&s,l!==w.Fragment&&c),a)}function $h(...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 yd(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let l in r)l.startsWith("on")&&typeof r[l]=="function"?(n[l]!=null||(n[l]=[]),n[l].push(r[l])):t[l]=r[l];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](l,...o){let i=n[r];for(let u of i){if((l instanceof Event||(l==null?void 0:l.nativeEvent)instanceof Event)&&l.defaultPrevented)return;u(l,...o)}}});return t}function Ae(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 oi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Mh(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&&zh(n)?!1:r}function zh(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let jh="div";var to=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(to||{});function Uh(e,t){let{features:n=1,...r}=e,l={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 Be({ourProps:l,theirProps:r,slot:{},defaultTag:jh,name:"Hidden"})}let pu=Ae(Uh),ys=w.createContext(null);ys.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 ws(){return w.useContext(ys)}function Ih({value:e,children:t}){return $.createElement(ys.Provider,{value:e},t)}var wd=(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))(wd||{});function Ss(e,t){let n=w.useRef([]),r=ue(e);w.useEffect(()=>{let l=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let u=r(t,l);return n.current=t,u}},[r,...t])}function Bh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Hh(e,t,n){let r=vt(t);w.useEffect(()=>{function l(o){r.current(o)}return window.addEventListener(e,l,n),()=>window.removeEventListener(e,l,n)},[e,n])}var cr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(cr||{});function Vh(){let e=w.useRef(0);return Hh("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Wr(){let e=w.useRef(!1);return lt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Eo(...e){return w.useMemo(()=>md(...e),[...e])}function Sd(e,t,n,r){let l=vt(n);w.useEffect(()=>{e=e??window;function o(i){l.current(i)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function Wh(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Ed(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 Qh="div";var kd=(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))(kd||{});function Kh(e,t){let n=w.useRef(null),r=qe(n,t),{initialFocus:l,containers:o,features:i=30,...u}=e;Kn()||(i=1);let s=Eo(n);Xh({ownerDocument:s},!!(i&16));let a=Jh({ownerDocument:s,container:n,initialFocus:l},!!(i&2));qh({ownerDocument:s,container:n,containers:o,previousActiveElement:a},!!(i&8));let c=Vh(),d=ue(g=>{let N=n.current;N&&(p=>p())(()=>{he(c.current,{[cr.Forwards]:()=>{Tl(N,qt.First,{skipElements:[g.relatedTarget]})},[cr.Backwards]:()=>{Tl(N,qt.Last,{skipElements:[g.relatedTarget]})}})})}),v=gs(),y=w.useRef(!1),h={ref:r,onKeyDown(g){g.key=="Tab"&&(y.current=!0,v.requestAnimationFrame(()=>{y.current=!1}))},onBlur(g){let N=Ed(o);n.current instanceof HTMLElement&&N.add(n.current);let p=g.relatedTarget;p instanceof HTMLElement&&p.dataset.headlessuiFocusGuard!=="true"&&(xd(N,p)||(y.current?Tl(n.current,he(c.current,{[cr.Forwards]:()=>qt.Next,[cr.Backwards]:()=>qt.Previous})|qt.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&ln(g.target)))}};return $.createElement($.Fragment,null,!!(i&4)&&$.createElement(pu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:to.Focusable}),Be({ourProps:h,theirProps:u,defaultTag:Qh,name:"FocusTrap"}),!!(i&4)&&$.createElement(pu,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:to.Focusable}))}let Gh=Ae(Kh),rr=Object.assign(Gh,{features:kd}),Rt=[];Wh(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Rt[0]!==t.target&&(Rt.unshift(t.target),Rt=Rt.filter(n=>n!=null&&n.isConnected),Rt.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 Yh(e=!0){let t=w.useRef(Rt.slice());return Ss(([n],[r])=>{r===!0&&n===!1&&Vr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Rt.slice())},[e,Rt,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Xh({ownerDocument:e},t){let n=Yh(t);Ss(()=>{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,Vr(()=>{r.current&&ln(n())})}),[])}function Jh({ownerDocument:e,container:t,initialFocus:n},r){let l=w.useRef(null),o=Wr();return Ss(()=>{if(!r)return;let i=t.current;i&&Vr(()=>{if(!o.current)return;let u=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===u){l.current=u;return}}else if(i.contains(u)){l.current=u;return}n!=null&&n.current?ln(n.current):Tl(i,qt.First)===hd.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=e==null?void 0:e.activeElement})},[r]),l}function qh({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){let o=Wr();Sd(e==null?void 0:e.defaultView,"focus",i=>{if(!l||!o.current)return;let u=Ed(n);t.current instanceof HTMLElement&&u.add(t.current);let s=r.current;if(!s)return;let a=i.target;a&&a instanceof HTMLElement?xd(u,a)?(r.current=a,ln(a)):(i.preventDefault(),i.stopPropagation(),ln(s)):ln(r.current)},!0)}function xd(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Cd=w.createContext(!1);function Zh(){return w.useContext(Cd)}function mu(e){return $.createElement(Cd.Provider,{value:e.force},e.children)}function bh(e){let t=Zh(),n=w.useContext(Td),r=Eo(e),[l,o]=w.useState(()=>{if(!t&&n!==null||ht.isServer)return null;let i=r==null?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(r===null)return null;let u=r.createElement("div");return u.setAttribute("id","headlessui-portal-root"),r.body.appendChild(u)});return w.useEffect(()=>{l!==null&&(r!=null&&r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),w.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),l}let e0=w.Fragment;function t0(e,t){let n=e,r=w.useRef(null),l=qe(Dh(c=>{r.current=c}),t),o=Eo(r),i=bh(r),[u]=w.useState(()=>{var c;return ht.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),s=Kn(),a=w.useRef(!1);return lt(()=>{if(a.current=!1,!(!i||!u))return i.contains(u)||(u.setAttribute("data-headlessui-portal",""),i.appendChild(u)),()=>{a.current=!0,Vr(()=>{var c;a.current&&(!i||!u||(u instanceof Node&&i.contains(u)&&i.removeChild(u),i.childNodes.length<=0&&((c=i.parentElement)==null||c.removeChild(i))))})}},[i,u]),s?!i||!u?null:pd.createPortal(Be({ourProps:{ref:l},theirProps:n,defaultTag:e0,name:"Portal"}),u):null}let n0=w.Fragment,Td=w.createContext(null);function r0(e,t){let{target:n,...r}=e,l={ref:qe(t)};return $.createElement(Td.Provider,{value:n},Be({ourProps:l,theirProps:r,defaultTag:n0,name:"Popover.Group"}))}let l0=Ae(t0),o0=Ae(r0),hu=Object.assign(l0,{Group:o0}),Nd=w.createContext(null);function Pd(){let e=w.useContext(Nd);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,Pd),t}return e}function i0(){let[e,t]=w.useState([]);return[e.length>0?e.join(" "):void 0,w.useMemo(()=>function(n){let r=ue(o=>(t(i=>[...i,o]),()=>t(i=>{let u=i.slice(),s=u.indexOf(o);return s!==-1&&u.splice(s,1),u}))),l=w.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return $.createElement(Nd.Provider,{value:l},n.children)},[t])]}let u0="p";function s0(e,t){let n=Gn(),{id:r=`headlessui-description-${n}`,...l}=e,o=Pd(),i=qe(t);lt(()=>o.register(r),[r,o.register]);let u={ref:i,...o.props,id:r};return Be({ourProps:u,theirProps:l,slot:o.slot||{},defaultTag:u0,name:o.name||"Description"})}let a0=Ae(s0),c0=Object.assign(a0,{}),Es=w.createContext(()=>{});Es.displayName="StackContext";var vu=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(vu||{});function f0(){return w.useContext(Es)}function d0({children:e,onUpdate:t,type:n,element:r,enabled:l}){let o=f0(),i=ue((...u)=>{t==null||t(...u),o(...u)});return lt(()=>{let u=l===void 0||l===!0;return u&&i(0,n,r),()=>{u&&i(1,n,r)}},[i,n,r,l]),$.createElement(Es.Provider,{value:i},e)}function p0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const m0=typeof Object.is=="function"?Object.is:p0,{useState:h0,useEffect:v0,useLayoutEffect:g0,useDebugValue:y0}=gi;function w0(e,t,n){const r=t(),[{inst:l},o]=h0({inst:{value:r,getSnapshot:t}});return g0(()=>{l.value=r,l.getSnapshot=t,ii(l)&&o({inst:l})},[e,r,t]),v0(()=>(ii(l)&&o({inst:l}),e(()=>{ii(l)&&o({inst:l})})),[e]),y0(r),r}function ii(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!m0(n,r)}catch{return!0}}function S0(e,t,n){return t()}const E0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",k0=!E0,x0=k0?S0:w0,C0="useSyncExternalStore"in gi?(e=>e.useSyncExternalStore)(gi):x0;function T0(e){return C0(e.subscribe,e.getSnapshot,e.getSnapshot)}function N0(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...o){let i=t[l].call(n,...o);i&&(n=i,r.forEach(u=>u()))}}}function P0(){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,l=r.clientWidth-r.offsetWidth,o=e-l;n.style(r,"paddingRight",`${o}px`)}}}function _0(){if(!Bh())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function l(i){return r.containers.flatMap(u=>u()).some(u=>u.contains(i))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let o=null;n.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{let u=i.target.closest("a");if(!u)return;let{hash:s}=new URL(u.href),a=t.querySelector(s);a&&!l(a)&&(o=a)}catch{}},!0),n.addEventListener(t,"touchmove",i=>{i.target instanceof HTMLElement&&!l(i.target)&&i.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})}}}function L0(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function R0(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let tn=N0(()=>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:R0(n)},l=[_0(),P0(),L0()];l.forEach(({before:o})=>o==null?void 0:o(r)),l.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});tn.subscribe(()=>{let e=tn.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",l=n.count!==0;(l&&!r||!l&&r)&&tn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&tn.dispatch("TEARDOWN",n)}});function O0(e,t,n){let r=T0(tn),l=e?r.get(e):void 0,o=l?l.count>0:!1;return lt(()=>{if(!(!e||!t))return tn.dispatch("PUSH",e,n),()=>tn.dispatch("POP",e,n)},[t,e]),o}let ui=new Map,lr=new Map;function Ua(e,t=!0){lt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var i;if(!r)return;let u=(i=lr.get(r))!=null?i:1;if(u===1?lr.delete(r):lr.set(r,u-1),u!==1)return;let s=ui.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,ui.delete(r))}let o=(n=lr.get(r))!=null?n:0;return lr.set(r,o+1),o!==0||(ui.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,t])}var F0=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(F0||{}),A0=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(A0||{});let D0={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},no=w.createContext(null);no.displayName="DialogContext";function Qr(e){let t=w.useContext(no);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qr),n}return t}function $0(e,t,n=()=>[document.body]){O0(e,t,r=>{var l;return{containers:[...(l=r.containers)!=null?l:[],n]}})}function M0(e,t){return he(t.type,D0,e,t)}let z0="div",j0=eo.RenderStrategy|eo.Static;function U0(e,t){let n=Gn(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:o,initialFocus:i,__demoMode:u=!1,...s}=e,[a,c]=w.useState(0),d=ws();l===void 0&&d!==null&&(l=(d&Pe.Open)===Pe.Open);let v=w.useRef(null),y=qe(v,t),h=w.useRef(null),g=Eo(v),N=e.hasOwnProperty("open")||d!==null,p=e.hasOwnProperty("onClose");if(!N&&!p)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!N)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!p)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof l!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let f=l?0:1,[m,E]=w.useReducer(M0,{titleId:null,descriptionId:null,panelRef:w.createRef()}),x=ue(()=>o(!1)),_=ue(W=>E({type:0,id:W})),P=Kn()?u?!1:f===0:!1,R=a>1,I=w.useContext(no)!==null,A=R?"parent":"leaf",ne=d!==null?(d&Pe.Closing)===Pe.Closing:!1,He=(()=>I||ne?!1:P)(),Ve=w.useCallback(()=>{var W,ee;return(ee=Array.from((W=g==null?void 0:g.querySelectorAll("body > *"))!=null?W:[]).find(K=>K.id==="headlessui-portal-root"?!1:K.contains(h.current)&&K instanceof HTMLElement))!=null?ee:null},[h]);Ua(Ve,He);let pn=(()=>R?!0:P)(),it=w.useCallback(()=>{var W,ee;return(ee=Array.from((W=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?W:[]).find(K=>K.contains(h.current)&&K instanceof HTMLElement))!=null?ee:null},[h]);Ua(it,pn);let ut=ue(()=>{var W,ee;return[...Array.from((W=g==null?void 0:g.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?W:[]).filter(K=>!(K===document.body||K===document.head||!(K instanceof HTMLElement)||K.contains(h.current)||m.panelRef.current&&K.contains(m.panelRef.current))),(ee=m.panelRef.current)!=null?ee:v.current]}),Kt=(()=>!(!P||R))();Ah(()=>ut(),x,Kt);let T=(()=>!(R||f!==0))();Sd(g==null?void 0:g.defaultView,"keydown",W=>{T&&(W.defaultPrevented||W.key===wd.Escape&&(W.preventDefault(),W.stopPropagation(),x()))});let O=(()=>!(ne||f!==0||I))();$0(g,O,ut),w.useEffect(()=>{if(f!==0||!v.current)return;let W=new ResizeObserver(ee=>{for(let K of ee){let Yr=K.target.getBoundingClientRect();Yr.x===0&&Yr.y===0&&Yr.width===0&&Yr.height===0&&x()}});return W.observe(v.current),()=>W.disconnect()},[f,v,x]);let[F,j]=i0(),b=w.useMemo(()=>[{dialogState:f,close:x,setTitleId:_},m],[f,m,x,_]),Gt=w.useMemo(()=>({open:f===0}),[f]),st={ref:y,id:r,role:"dialog","aria-modal":f===0?!0:void 0,"aria-labelledby":m.titleId,"aria-describedby":F};return $.createElement(d0,{type:"Dialog",enabled:f===0,element:v,onUpdate:ue((W,ee)=>{ee==="Dialog"&&he(W,{[vu.Add]:()=>c(K=>K+1),[vu.Remove]:()=>c(K=>K-1)})})},$.createElement(mu,{force:!0},$.createElement(hu,null,$.createElement(no.Provider,{value:b},$.createElement(hu.Group,{target:v},$.createElement(mu,{force:!1},$.createElement(j,{slot:Gt,name:"Dialog.Description"},$.createElement(rr,{initialFocus:i,containers:ut,features:P?he(A,{parent:rr.features.RestoreFocus,leaf:rr.features.All&~rr.features.FocusLock}):rr.features.None},Be({ourProps:st,theirProps:s,slot:Gt,defaultTag:z0,features:j0,visible:f===0,name:"Dialog"})))))))),$.createElement(pu,{features:to.Hidden,ref:h}))}let I0="div";function B0(e,t){let n=Gn(),{id:r=`headlessui-dialog-overlay-${n}`,...l}=e,[{dialogState:o,close:i}]=Qr("Dialog.Overlay"),u=qe(t),s=ue(c=>{if(c.target===c.currentTarget){if(Mh(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),i()}}),a=w.useMemo(()=>({open:o===0}),[o]);return Be({ourProps:{ref:u,id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:a,defaultTag:I0,name:"Dialog.Overlay"})}let H0="div";function V0(e,t){let n=Gn(),{id:r=`headlessui-dialog-backdrop-${n}`,...l}=e,[{dialogState:o},i]=Qr("Dialog.Backdrop"),u=qe(t);w.useEffect(()=>{if(i.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[i.panelRef]);let s=w.useMemo(()=>({open:o===0}),[o]);return $.createElement(mu,{force:!0},$.createElement(hu,null,Be({ourProps:{ref:u,id:r,"aria-hidden":!0},theirProps:l,slot:s,defaultTag:H0,name:"Dialog.Backdrop"})))}let W0="div";function Q0(e,t){let n=Gn(),{id:r=`headlessui-dialog-panel-${n}`,...l}=e,[{dialogState:o},i]=Qr("Dialog.Panel"),u=qe(t,i.panelRef),s=w.useMemo(()=>({open:o===0}),[o]),a=ue(c=>{c.stopPropagation()});return Be({ourProps:{ref:u,id:r,onClick:a},theirProps:l,slot:s,defaultTag:W0,name:"Dialog.Panel"})}let K0="h2";function G0(e,t){let n=Gn(),{id:r=`headlessui-dialog-title-${n}`,...l}=e,[{dialogState:o,setTitleId:i}]=Qr("Dialog.Title"),u=qe(t);w.useEffect(()=>(i(r),()=>i(null)),[r,i]);let s=w.useMemo(()=>({open:o===0}),[o]);return Be({ourProps:{ref:u,id:r},theirProps:l,slot:s,defaultTag:K0,name:"Dialog.Title"})}let Y0=Ae(U0),X0=Ae(V0),J0=Ae(Q0),q0=Ae(B0),Z0=Ae(G0),si=Object.assign(Y0,{Backdrop:X0,Panel:J0,Overlay:q0,Title:Z0,Description:c0});function b0(e=0){let[t,n]=w.useState(e),r=Wr(),l=w.useCallback(s=>{r.current&&n(a=>a|s)},[t,r]),o=w.useCallback(s=>!!(t&s),[t]),i=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:l,hasFlag:o,removeFlag:i,toggleFlag:u}}function e1(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ai(e,...t){e&&t.length>0&&e.classList.add(...t)}function ci(e,...t){e&&t.length>0&&e.classList.remove(...t)}function t1(e,t){let n=Qn();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:l}=getComputedStyle(e),[o,i]=[r,l].map(s=>{let[a=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return a}),u=o+i;if(u!==0){n.group(a=>{a.setTimeout(()=>{t(),a.dispose()},u),a.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&a.dispose()})});let s=n.addEventListener(e,"transitionend",a=>{a.target===a.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function n1(e,t,n,r){let l=n?"enter":"leave",o=Qn(),i=r!==void 0?e1(r):()=>{};l==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=he(l,{enter:()=>t.enter,leave:()=>t.leave}),s=he(l,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=he(l,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ci(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ai(e,...u,...a),o.nextFrame(()=>{ci(e,...a),ai(e,...s),t1(e,()=>(ci(e,...u),ai(e,...t.entered),i()))}),o.dispose}function r1({container:e,direction:t,classes:n,onStart:r,onStop:l}){let o=Wr(),i=gs(),u=vt(t);lt(()=>{let s=Qn();i.add(s.dispose);let a=e.current;if(a&&u.current!=="idle"&&o.current)return s.dispose(),r.current(u.current),s.add(n1(a,n.current,u.current==="enter",()=>{s.dispose(),l.current(u.current)})),s.dispose},[t])}function Yt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let ko=w.createContext(null);ko.displayName="TransitionContext";var l1=(e=>(e.Visible="visible",e.Hidden="hidden",e))(l1||{});function o1(){let e=w.useContext(ko);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function i1(){let e=w.useContext(xo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let xo=w.createContext(null);xo.displayName="NestingContext";function Co(e){return"children"in e?Co(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function _d(e,t){let n=vt(e),r=w.useRef([]),l=Wr(),o=gs(),i=ue((y,h=pt.Hidden)=>{let g=r.current.findIndex(({el:N})=>N===y);g!==-1&&(he(h,{[pt.Unmount](){r.current.splice(g,1)},[pt.Hidden](){r.current[g].state="hidden"}}),o.microTask(()=>{var N;!Co(r)&&l.current&&((N=n.current)==null||N.call(n))}))}),u=ue(y=>{let h=r.current.find(({el:g})=>g===y);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:y,state:"visible"}),()=>i(y,pt.Unmount)}),s=w.useRef([]),a=w.useRef(Promise.resolve()),c=w.useRef({enter:[],leave:[],idle:[]}),d=ue((y,h,g)=>{s.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([N])=>N!==y)),t==null||t.chains.current[h].push([y,new Promise(N=>{s.current.push(N)})]),t==null||t.chains.current[h].push([y,new Promise(N=>{Promise.all(c.current[h].map(([p,f])=>f)).then(()=>N())})]),h==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(h)):g(h)}),v=ue((y,h,g)=>{Promise.all(c.current[h].splice(0).map(([N,p])=>p)).then(()=>{var N;(N=s.current.shift())==null||N()}).then(()=>g(h))});return w.useMemo(()=>({children:r,register:u,unregister:i,onStart:d,onStop:v,wait:a,chains:c}),[u,i,r,d,v,c,a])}function u1(){}let s1=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ia(e){var t;let n={};for(let r of s1)n[r]=(t=e[r])!=null?t:u1;return n}function a1(e){let t=w.useRef(Ia(e));return w.useEffect(()=>{t.current=Ia(e)},[e]),t}let c1="div",Ld=eo.RenderStrategy;function f1(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o,enter:i,enterFrom:u,enterTo:s,entered:a,leave:c,leaveFrom:d,leaveTo:v,...y}=e,h=w.useRef(null),g=qe(h,t),N=y.unmount?pt.Unmount:pt.Hidden,{show:p,appear:f,initial:m}=o1(),[E,x]=w.useState(p?"visible":"hidden"),_=i1(),{register:P,unregister:R}=_,I=w.useRef(null);w.useEffect(()=>P(h),[P,h]),w.useEffect(()=>{if(N===pt.Hidden&&h.current){if(p&&E!=="visible"){x("visible");return}return he(E,{hidden:()=>R(h),visible:()=>P(h)})}},[E,h,P,R,p,N]);let A=vt({enter:Yt(i),enterFrom:Yt(u),enterTo:Yt(s),entered:Yt(a),leave:Yt(c),leaveFrom:Yt(d),leaveTo:Yt(v)}),ne=a1({beforeEnter:n,afterEnter:r,beforeLeave:l,afterLeave:o}),He=Kn();w.useEffect(()=>{if(He&&E==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,E,He]);let Ve=m&&!f,pn=(()=>!He||Ve||I.current===p?"idle":p?"enter":"leave")(),it=b0(0),ut=ue(j=>he(j,{enter:()=>{it.addFlag(Pe.Opening),ne.current.beforeEnter()},leave:()=>{it.addFlag(Pe.Closing),ne.current.beforeLeave()},idle:()=>{}})),Kt=ue(j=>he(j,{enter:()=>{it.removeFlag(Pe.Opening),ne.current.afterEnter()},leave:()=>{it.removeFlag(Pe.Closing),ne.current.afterLeave()},idle:()=>{}})),T=_d(()=>{x("hidden"),R(h)},_);r1({container:h,classes:A,direction:pn,onStart:vt(j=>{T.onStart(h,j,ut)}),onStop:vt(j=>{T.onStop(h,j,Kt),j==="leave"&&!Co(T)&&(x("hidden"),R(h))})}),w.useEffect(()=>{Ve&&(N===pt.Hidden?I.current=null:I.current=p)},[p,Ve,E]);let O=y,F={ref:g};return f&&p&&(O={...O,className:du(y.className,...A.current.enter,...A.current.enterFrom)}),$.createElement(xo.Provider,{value:T},$.createElement(Ih,{value:he(E,{visible:Pe.Open,hidden:Pe.Closed})|it.flags},Be({ourProps:F,theirProps:O,defaultTag:c1,features:Ld,visible:E==="visible",name:"Transition.Child"})))}function d1(e,t){let{show:n,appear:r=!1,unmount:l,...o}=e,i=w.useRef(null),u=qe(i,t);Kn();let s=ws();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,c]=w.useState(n?"visible":"hidden"),d=_d(()=>{c("hidden")}),[v,y]=w.useState(!0),h=w.useRef([n]);lt(()=>{v!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),y(!1))},[h,n]);let g=w.useMemo(()=>({show:n,appear:r,initial:v}),[n,r,v]);w.useEffect(()=>{if(n)c("visible");else if(!Co(d))c("hidden");else{let p=i.current;if(!p)return;let f=p.getBoundingClientRect();f.x===0&&f.y===0&&f.width===0&&f.height===0&&c("hidden")}},[n,d]);let N={unmount:l};return $.createElement(xo.Provider,{value:d},$.createElement(ko.Provider,{value:g},Be({ourProps:{...N,as:w.Fragment,children:$.createElement(Rd,{ref:u,...N,...o})},theirProps:{},defaultTag:w.Fragment,features:Ld,visible:a==="visible",name:"Transition"})))}function p1(e,t){let n=w.useContext(ko)!==null,r=ws()!==null;return $.createElement($.Fragment,null,!n&&r?$.createElement(gu,{ref:t,...e}):$.createElement(Rd,{ref:t,...e}))}let gu=Ae(d1),Rd=Ae(f1),m1=Ae(p1),fi=Object.assign(gu,{Child:m1,Root:gu});function Od({show:e,onClose:t,onSubmit:n,title:r,content:l,submitText:o}){return C(fi,{appear:!0,show:e,as:w.Fragment,children:Y(si,{as:"div",className:"relative z-10",onClose:t,children:[C(fi.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(fi.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:Y(si.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(si.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:l}),Y("div",{className:"mt-4 flex flex-row-reverse",children:[o&&C("button",{type:"button",className:"inline-flex ml-4 justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-indigo-100 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:o}),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 h1(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 v1(e){return Y(yt,{children:[C("label",{children:"Select the model to use."}),Y("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.model,onChange:t=>{e.transcriber.onModelChange(t.target.value)},children:[C("option",{value:"whisper-tiny.en",children:"whisper-tiny.en (61MB)"}),C("option",{value:"whisper-tiny",children:"whisper-tiny (61MB)"}),C("option",{value:"whisper-base.en",children:"whisper-base.en (103MB)"}),C("option",{value:"whisper-base",children:"whisper-base (103MB)"}),C("option",{value:"whisper-small.en",children:"whisper-small.en (290MB)"}),C("option",{value:"whisper-small",children:"whisper-small (290MB)"})]})]})}function g1(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}const Ba={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 y1(e){const t=Object.values(Ba).map(g1);return Y(yt,{children:[C("label",{children:"Select the task to perform. (Coming soon)"}),Y("select",{disabled:!0,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:n=>{e.transcriber.onSubtaskChange(n.target.value)},children:[C("option",{children:"Transcribe"}),C("option",{children:"Translate"})]}),e.transcriber.subtask==="Translate"&&Y(yt,{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:n=>{e.transcriber.onLanguageChange(n.target.value)},children:Object.keys(Ba).map((n,r)=>C("option",{value:n,children:t[r]},n))})]})]})}function Fd(e,t){return function(){return e.apply(t,arguments)}}const{toString:w1}=Object.prototype,{getPrototypeOf:ks}=Object,To=(e=>t=>{const n=w1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ot=e=>(e=e.toLowerCase(),t=>To(t)===e),No=e=>t=>typeof t===e,{isArray:Yn}=Array,zr=No("undefined");function S1(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ad=ot("ArrayBuffer");function E1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ad(e.buffer),t}const k1=No("string"),je=No("function"),Dd=No("number"),Po=e=>e!==null&&typeof e=="object",x1=e=>e===!0||e===!1,Nl=e=>{if(To(e)!=="object")return!1;const t=ks(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},C1=ot("Date"),T1=ot("File"),N1=ot("Blob"),P1=ot("FileList"),_1=e=>Po(e)&&je(e.pipe),L1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||je(e.append)&&((t=To(e))==="formdata"||t==="object"&&je(e.toString)&&e.toString()==="[object FormData]"))},R1=ot("URLSearchParams"),O1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Yn(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function $d(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,l;for(;r-- >0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Md=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),zd=e=>!zr(e)&&e!==Md;function yu(){const{caseless:e}=zd(this)&&this||{},t={},n=(r,l)=>{const o=e&&$d(t,l)||l;Nl(t[o])&&Nl(r)?t[o]=yu(t[o],r):Nl(r)?t[o]=yu({},r):Yn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r<l;r++)arguments[r]&&Kr(arguments[r],n);return t}const F1=(e,t,n,{allOwnKeys:r}={})=>(Kr(t,(l,o)=>{n&&je(l)?e[o]=Fd(l,n):e[o]=l},{allOwnKeys:r}),e),A1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),D1=(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)},$1=(e,t,n,r)=>{let l,o,i;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&ks(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},M1=(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},z1=e=>{if(!e)return null;if(Yn(e))return e;let t=e.length;if(!Dd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},j1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ks(Uint8Array)),U1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},I1=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},B1=ot("HTMLFormElement"),H1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Ha=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),V1=ot("RegExp"),jd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kr(n,(l,o)=>{t(l,o,e)!==!1&&(r[o]=l)}),Object.defineProperties(e,r)},W1=e=>{jd(e,(t,n)=>{if(je(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(je(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+"'")})}})},Q1=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Yn(e)?r(e):r(String(e).split(t)),n},K1=()=>{},G1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),di="abcdefghijklmnopqrstuvwxyz",Va="0123456789",Ud={DIGIT:Va,ALPHA:di,ALPHA_DIGIT:di+di.toUpperCase()+Va},Y1=(e=16,t=Ud.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function X1(e){return!!(e&&je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const J1=e=>{const t=new Array(10),n=(r,l)=>{if(Po(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=Yn(r)?[]:{};return Kr(r,(i,u)=>{const s=n(i,l+1);!zr(s)&&(o[u]=s)}),t[l]=void 0,o}}return r};return n(e,0)},q1=ot("AsyncFunction"),Z1=e=>e&&(Po(e)||je(e))&&je(e.then)&&je(e.catch),S={isArray:Yn,isArrayBuffer:Ad,isBuffer:S1,isFormData:L1,isArrayBufferView:E1,isString:k1,isNumber:Dd,isBoolean:x1,isObject:Po,isPlainObject:Nl,isUndefined:zr,isDate:C1,isFile:T1,isBlob:N1,isRegExp:V1,isFunction:je,isStream:_1,isURLSearchParams:R1,isTypedArray:j1,isFileList:P1,forEach:Kr,merge:yu,extend:F1,trim:O1,stripBOM:A1,inherits:D1,toFlatObject:$1,kindOf:To,kindOfTest:ot,endsWith:M1,toArray:z1,forEachEntry:U1,matchAll:I1,isHTMLForm:B1,hasOwnProperty:Ha,hasOwnProp:Ha,reduceDescriptors:jd,freezeMethods:W1,toObjectSet:Q1,toCamelCase:H1,noop:K1,toFiniteNumber:G1,findKey:$d,global:Md,isContextDefined:zd,ALPHABET:Ud,generateString:Y1,isSpecCompliantForm:X1,toJSONObject:J1,isAsyncFn:q1,isThenable:Z1};function M(e,t,n,r,l){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),l&&(this.response=l)}S.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Id=M.prototype,Bd={};["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=>{Bd[e]={value:e}});Object.defineProperties(M,Bd);Object.defineProperty(Id,"isAxiosError",{value:!0});M.from=(e,t,n,r,l,o)=>{const i=Object.create(Id);return S.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),M.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const b1=null;function wu(e){return S.isPlainObject(e)||S.isArray(e)}function Hd(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Wa(e,t,n){return e?e.concat(t).map(function(l,o){return l=Hd(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function ev(e){return S.isArray(e)&&!e.some(wu)}const tv=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function _o(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,N){return!S.isUndefined(N[g])});const r=n.metaTokens,l=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(l))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 M("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 c(h,g,N){let p=h;if(h&&!N&&typeof h=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(S.isArray(h)&&ev(h)||(S.isFileList(h)||S.endsWith(g,"[]"))&&(p=S.toArray(h)))return g=Hd(g),p.forEach(function(m,E){!(S.isUndefined(m)||m===null)&&t.append(i===!0?Wa([g],E,o):i===null?g:g+"[]",a(m))}),!1}return wu(h)?!0:(t.append(Wa(N,g,o),a(h)),!1)}const d=[],v=Object.assign(tv,{defaultVisitor:c,convertValue:a,isVisitable:wu});function y(h,g){if(!S.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(h),S.forEach(h,function(p,f){(!(S.isUndefined(p)||p===null)&&l.call(t,p,S.isString(f)?f.trim():f,g,v))===!0&&y(p,g?g.concat(f):[f])}),d.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Qa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function xs(e,t){this._pairs=[],e&&_o(e,this,t)}const Vd=xs.prototype;Vd.append=function(t,n){this._pairs.push([t,n])};Vd.toString=function(t){const n=t?function(r){return t.call(this,r,Qa)}:Qa;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function nv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wd(e,t,n){if(!t)return e;const r=n&&n.encode||nv,l=n&&n.serialize;let o;if(l?o=l(t,n):o=S.isURLSearchParams(t)?t.toString():new xs(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class rv{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 Ka=rv,Qd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lv=typeof URLSearchParams<"u"?URLSearchParams:xs,ov=typeof FormData<"u"?FormData:null,iv=typeof Blob<"u"?Blob:null,uv=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),sv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),tt={isBrowser:!0,classes:{URLSearchParams:lv,FormData:ov,Blob:iv},isStandardBrowserEnv:uv,isStandardBrowserWebWorkerEnv:sv,protocols:["http","https","file","blob","url","data"]};function av(e,t){return _o(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return tt.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function cv(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fv(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r<l;r++)o=n[r],t[o]=e[o];return t}function Kd(e){function t(n,r,l,o){let i=n[o++];const u=Number.isFinite(+i),s=o>=n.length;return i=!i&&S.isArray(l)?l.length:i,s?(S.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!u):((!l[i]||!S.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&S.isArray(l[i])&&(l[i]=fv(l[i])),!u)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,l)=>{t(cv(r),l,n,0)}),n}return null}const dv={"Content-Type":void 0};function pv(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 Lo={transitional:Qd,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return l&&l?JSON.stringify(Kd(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(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return av(t,this.formSerializer).toString();if((u=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return _o(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),pv(t)):t}],transformResponse:[function(t){const n=this.transitional||Lo.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(t&&S.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?M.from(u,M.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){Lo.headers[t]={}});S.forEach(["post","put","patch"],function(t){Lo.headers[t]=S.merge(dv)});const Cs=Lo,mv=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"]),hv=e=>{const t={};let n,r,l;return e&&e.split(` | |
`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&mv[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ga=Symbol("internals");function or(e){return e&&String(e).trim().toLowerCase()}function Pl(e){return e===!1||e==null?e:S.isArray(e)?e.map(Pl):String(e)}function vv(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 gv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pi(e,t,n,r,l){if(S.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function yv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function wv(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class Ro{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(u,s,a){const c=or(s);if(!c)throw new Error("header name must be a non-empty string");const d=S.findKey(l,c);(!d||l[d]===void 0||a===!0||a===void 0&&l[d]!==!1)&&(l[d||s]=Pl(u))}const i=(u,s)=>S.forEach(u,(a,c)=>o(a,c,s));return S.isPlainObject(t)||t instanceof this.constructor?i(t,n):S.isString(t)&&(t=t.trim())&&!gv(t)?i(hv(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=or(t),t){const r=S.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return vv(l);if(S.isFunction(n))return n.call(this,l,r);if(S.isRegExp(n))return n.exec(l);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||pi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=or(i),i){const u=S.findKey(r,i);u&&(!n||pi(r,r[u],u,n))&&(delete r[u],l=!0)}}return S.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||pi(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return S.forEach(this,(l,o)=>{const i=S.findKey(r,o);if(i){n[i]=Pl(l),delete n[o];return}const u=t?yv(o):String(o).trim();u!==o&&delete n[o],n[u]=Pl(l),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=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(l=>r.set(l)),r}static accessor(t){const r=(this[Ga]=this[Ga]={accessors:{}}).accessors,l=this.prototype;function o(i){const u=or(i);r[u]||(wv(l,i),r[u]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}}Ro.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.freezeMethods(Ro.prototype);S.freezeMethods(Ro);const gt=Ro;function mi(e,t){const n=this||Cs,r=t||n,l=gt.from(r.headers);let o=r.data;return S.forEach(e,function(u){o=u.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Gd(e){return!!(e&&e.__CANCEL__)}function Gr(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Gr,M,{__CANCEL__:!0});function Sv(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ev=tt.isStandardBrowserEnv?function(){return{write:function(n,r,l,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),S.isNumber(l)&&s.push("expires="+new Date(l).toGMTString()),S.isString(o)&&s.push("path="+o),S.isString(i)&&s.push("domain="+i),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 kv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xv(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Yd(e,t){return e&&!kv(t)?xv(e,t):t}const Cv=tt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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=l(window.location.href),function(i){const u=S.isString(i)?l(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Tv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),c=r[o];i||(i=a),n[l]=s,r[l]=a;let d=o,v=0;for(;d!==l;)v+=n[d++],d=d%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i<t)return;const y=c&&a-c;return y?Math.round(v*1e3/y):void 0}}function Ya(e,t){let n=0;const r=Nv(50,250);return l=>{const o=l.loaded,i=l.lengthComputable?l.total:void 0,u=o-n,s=r(u),a=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&a?(i-o)/s:void 0,event:l};c[t?"download":"upload"]=!0,e(c)}}const Pv=typeof XMLHttpRequest<"u",_v=Pv&&function(e){return new Promise(function(n,r){let l=e.data;const o=gt.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}S.isFormData(l)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let a=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+h))}const c=Yd(e.baseURL,e.url);a.open(e.method.toUpperCase(),Wd(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const y=gt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:y,config:e,request:a};Sv(function(p){n(p),s()},function(p){r(p),s()},g),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(r(new M("Request aborted",M.ECONNABORTED,e,a)),a=null)},a.onerror=function(){r(new M("Network Error",M.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||Qd;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new M(h,g.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,a)),a=null},tt.isStandardBrowserEnv){const y=(e.withCredentials||Cv(c))&&e.xsrfCookieName&&Ev.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}l===void 0&&o.setContentType(null),"setRequestHeader"in a&&S.forEach(o.toJSON(),function(h,g){a.setRequestHeader(g,h)}),S.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Ya(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Ya(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{a&&(r(!y||y.type?new Gr(null,e,a):y),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const v=Tv(c);if(v&&tt.protocols.indexOf(v)===-1){r(new M("Unsupported protocol "+v+":",M.ERR_BAD_REQUEST,e));return}a.send(l||null)})},_l={http:b1,xhr:_v};S.forEach(_l,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Lv={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let l=0;l<t&&(n=e[l],!(r=S.isString(n)?_l[n.toLowerCase()]:n));l++);if(!r)throw r===!1?new M(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(S.hasOwnProp(_l,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:_l};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gr(null,e)}function Xa(e){return hi(e),e.headers=gt.from(e.headers),e.data=mi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lv.getAdapter(e.adapter||Cs.adapter)(e).then(function(r){return hi(e),r.data=mi.call(e,e.transformResponse,r),r.headers=gt.from(r.headers),r},function(r){return Gd(r)||(hi(e),r&&r.response&&(r.response.data=mi.call(e,e.transformResponse,r.response),r.response.headers=gt.from(r.response.headers))),Promise.reject(r)})}const Ja=e=>e instanceof gt?e.toJSON():e;function Bn(e,t){t=t||{};const n={};function r(a,c,d){return S.isPlainObject(a)&&S.isPlainObject(c)?S.merge.call({caseless:d},a,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function l(a,c,d){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a,d)}else return r(a,c,d)}function o(a,c){if(!S.isUndefined(c))return r(void 0,c)}function i(a,c){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function u(a,c,d){if(d in t)return r(a,c);if(d in e)return r(void 0,a)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(a,c)=>l(Ja(a),Ja(c),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||l,v=d(e[c],t[c],c);S.isUndefined(v)&&d!==u||(n[c]=v)}),n}const Xd="1.4.0",Ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ts[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qa={};Ts.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Xd+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new M(l(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!qa[i]&&(qa[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function Rv(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new M("option "+o+" must be "+s,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+o,M.ERR_BAD_OPTION)}}const Su={assertOptions:Rv,validators:Ts},Tt=Su.validators;class ro{constructor(t){this.defaults=t,this.interceptors={request:new Ka,response:new Ka}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bn(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Su.assertOptions(r,{silentJSONParsing:Tt.transitional(Tt.boolean),forcedJSONParsing:Tt.transitional(Tt.boolean),clarifyTimeoutError:Tt.transitional(Tt.boolean)},!1),l!=null&&(S.isFunction(l)?n.paramsSerializer={serialize:l}:Su.assertOptions(l,{encode:Tt.function,serialize:Tt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&S.merge(o.common,o[n.method]),i&&S.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=gt.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let c,d=0,v;if(!s){const h=[Xa.bind(this),void 0];for(h.unshift.apply(h,u),h.push.apply(h,a),v=h.length,c=Promise.resolve(n);d<v;)c=c.then(h[d++],h[d++]);return c}v=u.length;let y=n;for(d=0;d<v;){const h=u[d++],g=u[d++];try{y=h(y)}catch(N){g.call(this,N);break}}try{c=Xa.call(this,y)}catch(h){return Promise.reject(h)}for(d=0,v=a.length;d<v;)c=c.then(a[d++],a[d++]);return c}getUri(t){t=Bn(this.defaults,t);const n=Yd(t.baseURL,t.url);return Wd(n,t.params,t.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(t){ro.prototype[t]=function(n,r){return this.request(Bn(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(Bn(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}ro.prototype[t]=n(),ro.prototype[t+"Form"]=n(!0)});const Ll=ro;class Ns{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(l=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new Gr(o,i,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 Ns(function(l){t=l}),cancel:t}}}const Ov=Ns;function Fv(e){return function(n){return e.apply(null,n)}}function Av(e){return S.isObject(e)&&e.isAxiosError===!0}const Eu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Eu).forEach(([e,t])=>{Eu[t]=e});const Dv=Eu;function Jd(e){const t=new Ll(e),n=Fd(Ll.prototype.request,t);return S.extend(n,Ll.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Jd(Bn(e,l))},n}const oe=Jd(Cs);oe.Axios=Ll;oe.CanceledError=Gr;oe.CancelToken=Ov;oe.isCancel=Gd;oe.VERSION=Xd;oe.toFormData=_o;oe.AxiosError=M;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=Fv;oe.isAxiosError=Av;oe.mergeConfig=Bn;oe.AxiosHeaders=gt;oe.formToJSON=e=>Kd(S.isHTMLForm(e)?new FormData(e):e);oe.HttpStatusCode=Dv;oe.default=oe;const $v=oe;function Mv(e){const{isModelLoading:t,isTranscribing:n,onClick:r,...l}=e;return C("button",{...l,onClick:o=>{r&&!n&&!t&&r(o)},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(Za,{text:"Loading model..."}):n?C(Za,{text:"Transcribing..."}):"Transcribe Audio"})}function Za(e){return Y("div",{role:"status",children:[Y("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 zv(e){const[t,n]=w.useState("INIT"),r=w.useRef(null);return w.useEffect(()=>{r.current&&(r.current.src=e.audioUrl,r.current.load()),n("INIT")},[e.audioUrl]),w.useEffect(()=>{if(r.current===null)return;let l=r.current;if(t==="ENDED"){l.currentTime=0,n("RESET");return}},[t]),C("div",{className:"flex relative z-10 p-4 w-full",children:C("audio",{ref:r,controls:!0,className:"w-full h-14 rounded-lg bg-white shadow-xl shadow-black/5 ring-1 ring-slate-700/10"})})}function jv(e){const[t,n]=w.useState(void 0),[r,l]=w.useState(void 0),[o,i]=w.useState(void 0),u=t!==void 0,s=async c=>{const d=new AudioContext({sampleRate:An.SAMPLING_RATE}),v=URL.createObjectURL(new Blob([c],{type:"audio/*"})),y=await d.decodeAudioData(c);l({buffer:y,url:v,source:"URL"})},a=async c=>{if(o)try{l(void 0),n(0);const{data:d}=await $v.get(o,{signal:c.signal,responseType:"arraybuffer",onDownloadProgress(v){n(v.progress||0)}});s(d)}catch(d){console.log("Request failed or aborted",d)}finally{n(void 0)}};return w.useEffect(()=>{if(o){const c=new AbortController;return a(c),()=>{c.abort()}}},[o]),Y(yt,{children:[Y("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:[Y("div",{className:"flex flex-row space-x-2 py-2 w-full px-2",children:[C(Wv,{icon:C(Gv,{}),text:"From URL",onUrlUpdate:c=>{e.transcriber.onInputChange(),i(c)}}),C(Bv,{}),C(Kv,{icon:C(Yv,{}),text:"From file",onFileUpdate:(c,d)=>{e.transcriber.onInputChange(),l({buffer:c,url:d,source:"FILE"})}})]}),C(Hv,{progress:u?t:+!!r})]}),r&&Y(yt,{children:[C(zv,{audioUrl:r.url}),Y("div",{className:"relative w-full flex justify-center items-center",children:[C(Mv,{onClick:()=>{e.transcriber.start(r.buffer)},isModelLoading:e.transcriber.isModelLoading,isTranscribing:e.transcriber.isBusy}),C(Uv,{className:"absolute right-4",transcriber:e.transcriber,icon:C(Xv,{})})]})]})]})}function Uv(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},l=()=>{n(!1)},o=i=>{l()};return Y("div",{className:e.className,children:[C(Ps,{icon:e.icon,onClick:r}),C(Iv,{show:t,onSubmit:o,onClose:l,transcriber:e.transcriber})]})}function Iv(e){return C(Od,{show:e.show,title:"Settings",content:Y(yt,{children:[C(v1,{transcriber:e.transcriber}),C(y1,{transcriber:e.transcriber})]}),onClose:e.onClose,onSubmit:()=>{}})}function Bv(){return C("div",{className:"w-[1px] bg-slate-200"})}function Hv(e){return C(Vv,{progress:`${Math.round(e.progress*100)}%`})}function Vv(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 Wv(e){const[t,n]=w.useState(!1),r=()=>{n(!0)},l=()=>{n(!1)},o=i=>{e.onUrlUpdate(i),l()};return Y(yt,{children:[C(Ps,{icon:e.icon,text:e.text,onClick:r}),C(Qv,{show:t,onSubmit:o,onClose:l})]})}function Qv(e){const[t,n]=w.useState(An.DEFAULT_AUDIO_URL),r=o=>{n(o.target.value)},l=()=>{e.onSubmit(t)};return C(Od,{show:e.show,title:"From URL",content:Y(yt,{children:["Enter the URL of the audio file you want to load.",C(h1,{onChange:r,value:t})]}),onClose:e.onClose,submitText:"Load",onSubmit:l})}function Kv(e){let t=document.createElement("input");return t.type="file",t.oninput=n=>{let r=n.target.files;if(!r)return;const l=URL.createObjectURL(r[0]),o=new FileReader;o.addEventListener("load",async i=>{var c;const u=(c=i.target)==null?void 0:c.result;if(!u)return;const a=await new AudioContext({sampleRate:An.SAMPLING_RATE}).decodeAudioData(u);e.onFileUpdate(a,l)}),o.readAsArrayBuffer(r[0]),t.value=""},C(yt,{children:C(Ps,{icon:e.icon,text:e.text,onClick:()=>t.click()})})}function Ps(e){return Y("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 Gv(){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 Yv(){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 Xv(){return Y("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 vi(e){return String(e).padStart(2,"0")}function Jv(e){const t=e/3600|0;e-=t*(60*60);const n=e/60|0;e-=n*60;const r=e|0;return`${t?vi(t)+":":""}${vi(n)}:${vi(r)}`}function qv({transcribedData:e}){return C("div",{className:"w-full flex flex-col my-2 p-4 max-h-[20rem] overflow-y-auto",children:e&&e.chunks.map(t=>Y("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:Jv(t.timestamp[0])}),t.text]},t.text))})}function Zv(e){const[t]=w.useState(()=>bv(e));return t}function bv(e){const t=new Worker(new URL("/assets/worker-aae0055c.js",self.location),{type:"module"});return t.addEventListener("message",e),t}function eg(){const[e,t]=w.useState(void 0),[n,r]=w.useState(!1),[l,o]=w.useState(!1),i=Zv(m=>{const E=m.data;switch(E.status){case"progress":break;case"update":const x=E;t({text:x.data[0],chunks:x.data[1].chunks});break;case"complete":const _=E;t({text:_.data.text,chunks:_.data.chunks}),r(!1);break;case"initiate":o(!0);break;case"ready":o(!1);break}}),[u,s]=w.useState(An.DEFAULT_MODEL),[a,c]=w.useState(An.DEFAULT_SUBTASK),[d,v]=w.useState(An.DEFAULT_LANGUAGE),y=w.useCallback(m=>{s(m)},[]),h=w.useCallback(m=>{c(m)},[]),g=w.useCallback(m=>{v(m)},[]),N=w.useCallback(()=>{t(void 0)},[]),p=w.useCallback(async m=>{m&&(t(void 0),r(!0),i.postMessage({audio:m.getChannelData(0),model:u,subtask:a,language:d}))},[i,u,a,d]);return w.useMemo(()=>({onInputChange:N,isBusy:n,isModelLoading:l,start:p,output:e,model:u,onModelChange:y,subtask:a,onSubtaskChange:h,language:d,onLanguageChange:g}),[n,l,p,e,u,a,d])}function tg(){const e=eg();return C("div",{className:"flex justify-center items-center min-h-screen",children:Y("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-7xl",children:"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(jv,{transcriber:e}),C(qv,{transcribedData:e.output})]})})}yi.createRoot(document.getElementById("root")).render(C($.StrictMode,{children:C(tg,{})})); | |